(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6980],{9996:function(e){"use strict";var t=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==r},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s(Array.isArray(e)?[]:{},e,t):e}function o(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function a(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function i(e,t){try{return t in e}catch(e){return!1}}function s(e,r,l){(l=l||{}).arrayMerge=l.arrayMerge||o,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=n;var c,u,p=Array.isArray(r);return p!==Array.isArray(e)?n(r,l):p?l.arrayMerge(e,r,l):(u={},(c=l).isMergeableObject(e)&&a(e).forEach(function(t){u[t]=n(e[t],c)}),a(r).forEach(function(t){(!i(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(i(e,t)&&c.isMergeableObject(r[t])?u[t]=(function(e,t){if(!t.customMerge)return s;var r=t.customMerge(e);return"function"==typeof r?r:s})(t,c)(e[t],r[t],c):u[t]=n(r[t],c))}),u)}s.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return s(e,r,t)},{})},e.exports=s},49090:function(e){function t(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(Error("Failed to load "+this.src),e)}}e.exports=function(e,r,n){var o=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");"function"==typeof r&&(n=r,r={}),r=r||{},n=n||function(){},a.type=r.type||"text/javascript",a.charset=r.charset||"utf8",a.async=!("async"in r)||!!r.async,a.src=e,r.attrs&&function(e,t){for(var r in t)e.setAttribute(r,t[r])}(a,r.attrs),r.text&&(a.text=""+r.text),("onload"in a?t:function(e,t){e.onreadystatechange=function(){("complete"==this.readyState||"loaded"==this.readyState)&&(this.onreadystatechange=null,t(null,e))}})(a,n),a.onload||t(a,n),o.appendChild(a)}},30845:function(e,t,r){"use strict";r.r(t);var n=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function o(e,t){if(e.length!==t.length)return!1;for(var r,o,a=0;at in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,u=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of i(t))l.call(e,s)||s===r||o(e,s,{get:()=>t[s],enumerable:!(n=a(t,s))||n.enumerable});return e},p=(e,t,r)=>(r=null!=e?n(s(e)):{},u(!t&&e&&e.__esModule?r:o(r,"default",{value:e,enumerable:!0}),e)),d=(e,t,r)=>(c(e,"symbol"!=typeof t?t+"":t,r),r),h={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(h,{default:()=>b}),e.exports=u(o({},"__esModule",{value:!0}),h);var f=p(r(67294)),y=p(r(53741)),m=r(85741),g=r(38045);class b extends f.Component{constructor(){super(...arguments),d(this,"mounted",!1),d(this,"isReady",!1),d(this,"isPlaying",!1),d(this,"isLoading",!0),d(this,"loadOnReady",null),d(this,"startOnPlay",!0),d(this,"seekOnPlay",null),d(this,"onDurationCalled",!1),d(this,"handlePlayerMount",e=>{if(this.player){this.progress();return}this.player=e,this.player.load(this.props.url),this.progress()}),d(this,"getInternalPlayer",e=>this.player?this.player[e]:null),d(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){let e=this.getCurrentTime()||0,t=this.getSecondsLoaded(),r=this.getDuration();if(r){let n={playedSeconds:e,played:e/r};null!==t&&(n.loadedSeconds=t,n.loaded=t/r),(n.playedSeconds!==this.prevPlayed||n.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(n),this.prevPlayed=n.playedSeconds,this.prevLoaded=n.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),d(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;let{onReady:e,playing:t,volume:r,muted:n}=this.props;e(),n||null===r||this.player.setVolume(r),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):t&&this.player.play(),this.handleDurationCheck()}),d(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;let{onStart:e,onPlay:t,playbackRate:r}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&1!==r&&this.player.setPlaybackRate(r),e(),this.startOnPlay=!1),t(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),d(this,"handlePause",e=>{this.isPlaying=!1,this.isLoading||this.props.onPause(e)}),d(this,"handleEnded",()=>{let{activePlayer:e,loop:t,onEnded:r}=this.props;e.loopOnEnded&&t&&this.seekTo(0),t||(this.isPlaying=!1,r())}),d(this,"handleError",(...e)=>{this.isLoading=!1,this.props.onError(...e)}),d(this,"handleDurationCheck",()=>{clearTimeout(this.durationCheckTimeout);let e=this.getDuration();e?this.onDurationCalled||(this.props.onDuration(e),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)}),d(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(e){if(!this.player)return;let{url:t,playing:r,volume:n,muted:o,playbackRate:a,pip:i,loop:s,activePlayer:l,disableDeferredLoading:c}=this.props;if(!(0,y.default)(e.url,t)){if(this.isLoading&&!l.forceLoad&&!c&&!(0,g.isMediaStream)(t)){console.warn(`ReactPlayer: the attempt to load ${t} is being deferred until the player has loaded`),this.loadOnReady=t;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(t,this.isReady)}e.playing||!r||this.isPlaying||this.player.play(),e.playing&&!r&&this.isPlaying&&this.player.pause(),!e.pip&&i&&this.player.enablePIP&&this.player.enablePIP(),e.pip&&!i&&this.player.disablePIP&&this.player.disablePIP(),e.volume!==n&&null!==n&&this.player.setVolume(n),e.muted!==o&&(o?this.player.mute():(this.player.unmute(),null!==n&&setTimeout(()=>this.player.setVolume(n)))),e.playbackRate!==a&&this.player.setPlaybackRate&&this.player.setPlaybackRate(a),e.loop!==s&&this.player.setLoop&&this.player.setLoop(s)}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(e,t,r){if(!this.isReady){0!==e&&(this.seekOnPlay=e,setTimeout(()=>{this.seekOnPlay=null},5e3));return}if(t?"fraction"===t:e>0&&e<1){let t=this.player.getDuration();if(!t){console.warn("ReactPlayer: could not seek using fraction –\xa0duration not yet available");return}this.player.seekTo(t*e,r);return}this.player.seekTo(e,r)}render(){let e=this.props.activePlayer;return e?f.default.createElement(e,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}d(b,"displayName","Player"),d(b,"propTypes",m.propTypes),d(b,"defaultProps",m.defaultProps)},70390:function(e,t,r){var n=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,c=(e,t,r)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,u=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of i(t))l.call(e,s)||s===r||o(e,s,{get:()=>t[s],enumerable:!(n=a(t,s))||n.enumerable});return e},p=(e,t,r)=>(r=null!=e?n(s(e)):{},u(!t&&e&&e.__esModule?r:o(r,"default",{value:e,enumerable:!0}),e)),d=(e,t,r)=>(c(e,"symbol"!=typeof t?t+"":t,r),r),h={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(h,{createReactPlayer:()=>A}),e.exports=u(o({},"__esModule",{value:!0}),h);var f=p(r(67294)),y=p(r(9996)),m=p(r(30845)),g=p(r(53741)),b=r(85741),v=r(38045),w=p(r(60722));let P=(0,v.lazy)(()=>r.e(7664).then(r.t.bind(r,83855,23))),k="undefined"!=typeof window&&window.document&&"undefined"!=typeof document,O=void 0!==r.g&&r.g.window&&r.g.window.document,x=Object.keys(b.propTypes),S=k||O?f.Suspense:()=>null,E=[],A=(e,t)=>{var r;return r=class extends f.Component{constructor(){super(...arguments),d(this,"state",{showPreview:!!this.props.light}),d(this,"references",{wrapper:e=>{this.wrapper=e},player:e=>{this.player=e}}),d(this,"handleClickPreview",e=>{this.setState({showPreview:!1}),this.props.onClickPreview(e)}),d(this,"showPreview",()=>{this.setState({showPreview:!0})}),d(this,"getDuration",()=>this.player?this.player.getDuration():null),d(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),d(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),d(this,"getInternalPlayer",(e="player")=>this.player?this.player.getInternalPlayer(e):null),d(this,"seekTo",(e,t,r)=>{if(!this.player)return null;this.player.seekTo(e,t,r)}),d(this,"handleReady",()=>{this.props.onReady(this)}),d(this,"getActivePlayer",(0,m.default)(r=>{for(let t of[...E,...e])if(t.canPlay(r))return t;return t||null})),d(this,"getConfig",(0,m.default)((e,t)=>{let{config:r}=this.props;return y.default.all([b.defaultProps.config,b.defaultProps.config[t]||{},r,r[t]||{}])})),d(this,"getAttributes",(0,m.default)(e=>(0,v.omit)(this.props,x))),d(this,"renderActivePlayer",e=>{if(!e)return null;let t=this.getActivePlayer(e);if(!t)return null;let r=this.getConfig(e,t.key);return f.default.createElement(w.default,{...this.props,key:t.key,ref:this.references.player,config:r,activePlayer:t.lazyPlayer||t,onReady:this.handleReady})})}shouldComponentUpdate(e,t){return!(0,g.default)(this.props,e)||!(0,g.default)(this.state,t)}componentDidUpdate(e){let{light:t}=this.props;!e.light&&t&&this.setState({showPreview:!0}),e.light&&!t&&this.setState({showPreview:!1})}renderPreview(e){if(!e)return null;let{light:t,playIcon:r,previewTabIndex:n,oEmbedUrl:o,previewAriaLabel:a}=this.props;return f.default.createElement(P,{url:e,light:t,playIcon:r,previewTabIndex:n,previewAriaLabel:a,oEmbedUrl:o,onClick:this.handleClickPreview})}render(){let{url:e,style:t,width:r,height:n,fallback:o,wrapper:a}=this.props,{showPreview:i}=this.state,s=this.getAttributes(e),l="string"==typeof a?this.references.wrapper:void 0;return f.default.createElement(a,{ref:l,style:{...t,width:r,height:n},...s},f.default.createElement(S,{fallback:o},i?this.renderPreview(e):this.renderActivePlayer(e)))}},d(r,"displayName","ReactPlayer"),d(r,"propTypes",b.propTypes),d(r,"defaultProps",b.defaultProps),d(r,"addCustomPlayer",e=>{E.push(e)}),d(r,"removeCustomPlayers",()=>{E.length=0}),d(r,"canPlay",t=>{for(let r of[...E,...e])if(r.canPlay(t))return!0;return!1}),d(r,"canEnablePIP",t=>{for(let r of[...E,...e])if(r.canEnablePIP&&r.canEnablePIP(t))return!0;return!1}),r}},22004:function(e,t,r){var n,o,a=Object.create,i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,p=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of l(t))u.call(e,o)||o===r||i(e,o,{get:()=>t[o],enumerable:!(n=s(t,o))||n.enumerable});return e},d={};((e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})})(d,{default:()=>m}),e.exports=p(i({},"__esModule",{value:!0}),d);var h=(o=null!=(n=r(86497))?a(c(n)):{},p(n&&n.__esModule?o:i(o,"default",{value:n,enumerable:!0}),n)),f=r(70390);let y=h.default[h.default.length-1];var m=(0,f.createReactPlayer)(h.default,y)},71776:function(e,t,r){var n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,s={};((e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})})(s,{AUDIO_EXTENSIONS:()=>O,DASH_EXTENSIONS:()=>E,FLV_EXTENSIONS:()=>A,HLS_EXTENSIONS:()=>S,MATCH_URL_DAILYMOTION:()=>v,MATCH_URL_FACEBOOK:()=>h,MATCH_URL_FACEBOOK_WATCH:()=>f,MATCH_URL_KALTURA:()=>k,MATCH_URL_MIXCLOUD:()=>w,MATCH_URL_MUX:()=>d,MATCH_URL_SOUNDCLOUD:()=>u,MATCH_URL_STREAMABLE:()=>y,MATCH_URL_TWITCH_CHANNEL:()=>b,MATCH_URL_TWITCH_VIDEO:()=>g,MATCH_URL_VIDYARD:()=>P,MATCH_URL_VIMEO:()=>p,MATCH_URL_WISTIA:()=>m,MATCH_URL_YOUTUBE:()=>c,VIDEO_EXTENSIONS:()=>x,canPlay:()=>C}),e.exports=((e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of a(t))i.call(e,r)||void 0===r||n(e,r,{get:()=>t[r],enumerable:!(s=o(t,r))||s.enumerable});return e})(n({},"__esModule",{value:!0}),s);var l=r(38045);let c=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,u=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,p=/vimeo\.com\/(?!progressive_redirect).+/,d=/stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/,h=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,f=/^https?:\/\/fb\.watch\/.+$/,y=/streamable\.com\/([a-z0-9]+)$/,m=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,g=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,b=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,v=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,w=/mixcloud\.com\/([^/]+\/[^/]+)/,P=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,k=/^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-_].*)$/,O=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,x=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,S=/\.(m3u8)($|\?)/i,E=/\.(mpd)($|\?)/i,A=/\.(flv)($|\?)/i,T=e=>{if(e instanceof Array){for(let t of e)if("string"==typeof t&&T(t)||T(t.src))return!0;return!1}return!!((0,l.isMediaStream)(e)||(0,l.isBlobUrl)(e))||O.test(e)||x.test(e)||S.test(e)||E.test(e)||A.test(e)},C={youtube:e=>e instanceof Array?e.every(e=>c.test(e)):c.test(e),soundcloud:e=>u.test(e)&&!O.test(e),vimeo:e=>p.test(e)&&!x.test(e)&&!S.test(e),mux:e=>d.test(e),facebook:e=>h.test(e)||f.test(e),streamable:e=>y.test(e),wistia:e=>m.test(e),twitch:e=>g.test(e)||b.test(e),dailymotion:e=>v.test(e),mixcloud:e=>w.test(e),vidyard:e=>P.test(e),kaltura:e=>k.test(e),file:T}},86497:function(e,t,r){var n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,s={};((e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})})(s,{default:()=>u}),e.exports=((e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of a(t))i.call(e,r)||void 0===r||n(e,r,{get:()=>t[r],enumerable:!(s=o(t,r))||s.enumerable});return e})(n({},"__esModule",{value:!0}),s);var l=r(38045),c=r(71776),u=[{key:"youtube",name:"YouTube",canPlay:c.canPlay.youtube,lazyPlayer:(0,l.lazy)(()=>r.e(4439).then(r.t.bind(r,60356,23)))},{key:"soundcloud",name:"SoundCloud",canPlay:c.canPlay.soundcloud,lazyPlayer:(0,l.lazy)(()=>r.e(6125).then(r.t.bind(r,72648,23)))},{key:"vimeo",name:"Vimeo",canPlay:c.canPlay.vimeo,lazyPlayer:(0,l.lazy)(()=>r.e(3743).then(r.t.bind(r,80868,23)))},{key:"mux",name:"Mux",canPlay:c.canPlay.mux,lazyPlayer:(0,l.lazy)(()=>r.e(4258).then(r.t.bind(r,58376,23)))},{key:"facebook",name:"Facebook",canPlay:c.canPlay.facebook,lazyPlayer:(0,l.lazy)(()=>r.e(2121).then(r.t.bind(r,31972,23)))},{key:"streamable",name:"Streamable",canPlay:c.canPlay.streamable,lazyPlayer:(0,l.lazy)(()=>r.e(2546).then(r.t.bind(r,50993,23)))},{key:"wistia",name:"Wistia",canPlay:c.canPlay.wistia,lazyPlayer:(0,l.lazy)(()=>r.e(8055).then(r.t.bind(r,8018,23)))},{key:"twitch",name:"Twitch",canPlay:c.canPlay.twitch,lazyPlayer:(0,l.lazy)(()=>r.e(6216).then(r.t.bind(r,29482,23)))},{key:"dailymotion",name:"DailyMotion",canPlay:c.canPlay.dailymotion,lazyPlayer:(0,l.lazy)(()=>r.e(7596).then(r.t.bind(r,36807,23)))},{key:"mixcloud",name:"Mixcloud",canPlay:c.canPlay.mixcloud,lazyPlayer:(0,l.lazy)(()=>r.e(4667).then(r.t.bind(r,50143,23)))},{key:"vidyard",name:"Vidyard",canPlay:c.canPlay.vidyard,lazyPlayer:(0,l.lazy)(()=>r.e(8888).then(r.t.bind(r,36596,23)))},{key:"kaltura",name:"Kaltura",canPlay:c.canPlay.kaltura,lazyPlayer:(0,l.lazy)(()=>r.e(261).then(r.t.bind(r,73911,23)))},{key:"file",name:"FilePlayer",canPlay:c.canPlay.file,canEnablePIP:e=>c.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,l.supportsWebKitPresentationMode)())&&!c.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,l.lazy)(()=>r.e(6011).then(r.t.bind(r,14926,23)))}]},85741:function(e,t,r){var n,o,a=Object.create,i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,p=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of l(t))u.call(e,o)||o===r||i(e,o,{get:()=>t[o],enumerable:!(n=s(t,o))||n.enumerable});return e},d={};((e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})})(d,{defaultProps:()=>x,propTypes:()=>k}),e.exports=p(i({},"__esModule",{value:!0}),d);let{string:h,bool:f,number:y,array:m,oneOfType:g,shape:b,object:v,func:w,node:P}=(o=null!=(n=r(45697))?a(c(n)):{},p(n&&n.__esModule?o:i(o,"default",{value:n,enumerable:!0}),n)).default,k={url:g([h,m,v]),playing:f,loop:f,controls:f,volume:y,muted:f,playbackRate:y,width:g([h,y]),height:g([h,y]),style:v,progressInterval:y,playsinline:f,pip:f,stopOnUnmount:f,light:g([f,h,v]),playIcon:P,previewTabIndex:y,previewAriaLabel:h,fallback:P,oEmbedUrl:h,wrapper:g([h,w,b({render:w.isRequired})]),config:b({soundcloud:b({options:v}),youtube:b({playerVars:v,embedOptions:v,onUnstarted:w}),facebook:b({appId:h,version:h,playerId:h,attributes:v}),dailymotion:b({params:v}),vimeo:b({playerOptions:v,title:h}),mux:b({attributes:v,version:h}),file:b({attributes:v,tracks:m,forceVideo:f,forceAudio:f,forceHLS:f,forceSafariHLS:f,forceDisableHls:f,forceDASH:f,forceFLV:f,hlsOptions:v,hlsVersion:h,dashVersion:h,flvVersion:h}),wistia:b({options:v,playerId:h,customControls:m}),mixcloud:b({options:v}),twitch:b({options:v,playerId:h}),vidyard:b({options:v})}),onReady:w,onStart:w,onPlay:w,onPause:w,onBuffer:w,onBufferEnd:w,onEnded:w,onError:w,onDuration:w,onSeek:w,onPlaybackRateChange:w,onPlaybackQualityChange:w,onProgress:w,onClickPreview:w,onEnablePIP:w,onDisablePIP:w},O=()=>{},x={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,previewAriaLabel:"",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:O},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},mux:{attributes:{},version:"2"},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:O,onStart:O,onPlay:O,onPause:O,onBuffer:O,onBufferEnd:O,onEnded:O,onError:O,onDuration:O,onSeek:O,onPlaybackRateChange:O,onPlaybackQualityChange:O,onProgress:O,onClickPreview:O,onEnablePIP:O,onDisablePIP:O}},38045:function(e,t,r){var n=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,c=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of i(t))l.call(e,s)||s===r||o(e,s,{get:()=>t[s],enumerable:!(n=a(t,s))||n.enumerable});return e},u=(e,t,r)=>(r=null!=e?n(s(e)):{},c(!t&&e&&e.__esModule?r:o(r,"default",{value:e,enumerable:!0}),e)),p={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(p,{callPlayer:()=>D,getConfig:()=>T,getSDK:()=>A,isBlobUrl:()=>L,isMediaStream:()=>R,lazy:()=>y,omit:()=>C,parseEndTime:()=>k,parseStartTime:()=>P,queryString:()=>x,randomString:()=>O,supportsWebKitPresentationMode:()=>I}),e.exports=c(o({},"__esModule",{value:!0}),p);var d=u(r(67294)),h=u(r(49090)),f=u(r(9996));let y=e=>d.default.lazy(async()=>{let t=await e();return"function"==typeof t.default?t:t.default}),m=/[?&#](?:start|t)=([0-9hms]+)/,g=/[?&#]end=([0-9hms]+)/,b=/(\d+)(h|m|s)/g,v=/^\d+$/;function w(e,t){if(e instanceof Array)return;let r=e.match(t);if(r){let e=r[1];if(e.match(b))return function(e){let t=0,r=b.exec(e);for(;null!==r;){let[,n,o]=r;"h"===o&&(t+=3600*parseInt(n,10)),"m"===o&&(t+=60*parseInt(n,10)),"s"===o&&(t+=parseInt(n,10)),r=b.exec(e)}return t}(e);if(v.test(e))return parseInt(e)}}function P(e){return w(e,m)}function k(e){return w(e,g)}function O(){return Math.random().toString(36).substr(2,5)}function x(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function S(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}let E={},A=function(e,t,r=null,n=()=>!0,o=h.default){let a=S(t);return a&&n(a)?Promise.resolve(a):new Promise((n,a)=>{if(E[e]){E[e].push({resolve:n,reject:a});return}E[e]=[{resolve:n,reject:a}];let i=t=>{E[e].forEach(e=>e.resolve(t))};if(r){let e=window[r];window[r]=function(){e&&e(),i(S(t))}}o(e,n=>{n?(E[e].forEach(e=>e.reject(n)),E[e]=null):r||i(S(t))})})};function T(e,t){return(0,f.default)(t.config,e.config)}function C(e,...t){let r=[].concat(...t),n={};for(let t of Object.keys(e))-1===r.indexOf(t)&&(n[t]=e[t]);return n}function D(e,...t){if(!this.player||!this.player[e]){let t=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c \u2013 `;return this.player?this.player[e]||(t+="The method was not available"):t+="The player was not available",console.warn(t,"font-weight: bold",""),null}return this.player[e](...t)}function R(e){return"undefined"!=typeof window&&void 0!==window.MediaStream&&e instanceof window.MediaStream}function L(e){return/^blob:/.test(e)}function I(e=document.createElement("video")){let t=!1===/iPhone|iPod/.test(navigator.userAgent);return e.webkitSupportsPresentationMode&&"function"==typeof e.webkitSetPresentationMode&&t}},53741:function(e){var t="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,a){try{return function e(a,i){if(a===i)return!0;if(a&&i&&"object"==typeof a&&"object"==typeof i){var s,l,c,u;if(a.constructor!==i.constructor)return!1;if(Array.isArray(a)){if((s=a.length)!=i.length)return!1;for(l=s;0!=l--;)if(!e(a[l],i[l]))return!1;return!0}if(r&&a instanceof Map&&i instanceof Map){if(a.size!==i.size)return!1;for(u=a.entries();!(l=u.next()).done;)if(!i.has(l.value[0]))return!1;for(u=a.entries();!(l=u.next()).done;)if(!e(l.value[1],i.get(l.value[0])))return!1;return!0}if(n&&a instanceof Set&&i instanceof Set){if(a.size!==i.size)return!1;for(u=a.entries();!(l=u.next()).done;)if(!i.has(l.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(i)){if((s=a.length)!=i.length)return!1;for(l=s;0!=l--;)if(a[l]!==i[l])return!1;return!0}if(a.constructor===RegExp)return a.source===i.source&&a.flags===i.flags;if(a.valueOf!==Object.prototype.valueOf&&"function"==typeof a.valueOf&&"function"==typeof i.valueOf)return a.valueOf()===i.valueOf();if(a.toString!==Object.prototype.toString&&"function"==typeof a.toString&&"function"==typeof i.toString)return a.toString()===i.toString();if((s=(c=Object.keys(a)).length)!==Object.keys(i).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(i,c[l]))return!1;if(t&&a instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!a.$$typeof)&&!e(a[c[l]],i[c[l]]))return!1;return!0}return a!=a&&i!=i}(e,a)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},36830:function(e,t){"use strict";t.Z=function(e,t){for(var r=-1,n=null==e?0:e.length;++r0){if(++i>=800)return arguments[0]}else i=0;return y.apply(void 0,arguments)}),b=r(38070),v=r(84458),w=r(74637),P=r(63937),k=Object.prototype.hasOwnProperty,O=(l=function(e,t){if((0,w.Z)(t)||(0,v.Z)(t)){(0,u.Z)(t,(0,P.Z)(t),e);return}for(var r in t)k.call(t,r)&&(0,c.Z)(e,r,t[r])},n=function(e,t){var r=-1,n=t.length,o=n>1?t[n-1]:void 0,a=n>2?t[2]:void 0;for(o=l.length>3&&"function"==typeof o?(n--,o):void 0,a&&(0,b.Z)(t[0],t[1],a)&&(o=n<3?void 0:o,n=1),e=Object(e);++r-1:!!u&&(0,n.Z)(e,t,r)>-1}},69070:function(e,t,r){"use strict";var n=r(51466),o=r(9864),a=r(39838),i=Object.prototype,s=Function.prototype.toString,l=i.hasOwnProperty,c=s.call(Object);t.Z=function(e){if(!(0,a.Z)(e)||"[object Object]"!=(0,n.Z)(e))return!1;var t=(0,o.Z)(e);if(null===t)return!0;var r=l.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&s.call(r)==c}},20089:function(e,t,r){"use strict";var n=r(51466),o=r(33770),a=r(39838);t.Z=function(e){return"string"==typeof e||!(0,o.Z)(e)&&(0,a.Z)(e)&&"[object String]"==(0,n.Z)(e)}},19978:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var n,o,a=r(61486),i=function(e,t,r,n){for(var o=-1,a=null==e?0:e.length;++o"string"!=typeof e?{}:e.split(/ ?; ?/).reduce((e,t)=>{let[r,n]=t.split(/ ?: ?/).map((e,t)=>0===t?e.replace(/\s+/g,""):e.trim());if(r&&n){let t=r.replace(/(\w)-(\w)/g,(e,t,r)=>`${t}${r.toUpperCase()}`),o=n.trim();Number.isNaN(Number(n))||(o=Number(n)),e[r.startsWith("-")?r:t]=o}return e},{}),i=["br","col","colgroup","dl","hr","iframe","img","input","link","menuitem","meta","ol","param","select","table","tbody","tfoot","thead","tr","ul","wbr"],s={"accept-charset":"acceptCharset",acceptcharset:"acceptCharset",accesskey:"accessKey",allowfullscreen:"allowFullScreen",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classID",classname:"className",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",controlslist:"controlsList",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",datetime:"dateTime",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",enctype:"encType",for:"htmlFor",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",innerhtml:"innerHTML",inputmode:"inputMode",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",marginwidth:"marginWidth",marginheight:"marginHeight",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",nomodule:"noModule",novalidate:"noValidate",playsinline:"playsInline",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",typemustmatch:"typeMustMatch",usemap:"useMap",accentheight:"accentHeight","accent-height":"accentHeight",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",arabicform:"arabicForm","arabic-form":"arabicForm",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",diffuseconstant:"diffuseConstant",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",edgemode:"edgeMode",enablebackground:"enableBackground","enable-background":"enableBackground",externalresourcesrequired:"externalResourcesRequired",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",imagerendering:"imageRendering","image-rendering":"imageRendering",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",vmathematical:"vMathematical","v-mathematical":"vMathematical",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan",onblur:"onBlur",onchange:"onChange",onclick:"onClick",oncontextmenu:"onContextMenu",ondoubleclick:"onDoubleClick",ondrag:"onDrag",ondragend:"onDragEnd",ondragenter:"onDragEnter",ondragexit:"onDragExit",ondragleave:"onDragLeave",ondragover:"onDragOver",ondragstart:"onDragStart",ondrop:"onDrop",onerror:"onError",onfocus:"onFocus",oninput:"onInput",oninvalid:"onInvalid",onkeydown:"onKeyDown",onkeypress:"onKeyPress",onkeyup:"onKeyUp",onload:"onLoad",onmousedown:"onMouseDown",onmouseenter:"onMouseEnter",onmouseleave:"onMouseLeave",onmousemove:"onMouseMove",onmouseout:"onMouseOut",onmouseover:"onMouseOver",onmouseup:"onMouseUp",onscroll:"onScroll",onsubmit:"onSubmit",ontouchcancel:"onTouchCancel",ontouchend:"onTouchEnd",ontouchmove:"onTouchMove",ontouchstart:"onTouchStart",onwheel:"onWheel"};function l(e,t,r){let n=[...e].map((e,n)=>c(e,{...r,index:n,level:t+1})).filter(Boolean);return n.length?n:null}function c(e,t={}){if(!e||!(e instanceof Node))return null;let{actions:r=[],index:n=0,level:c=0,randomKey:u}=t,p=e,d=`${c}-${n}`,h=[];return(u&&0===c&&(d=`${function(e=6){let t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",r="";for(let n=e;n>0;--n)r+=t[Math.round(Math.random()*(t.length-1))];return r}()}-${d}`),Array.isArray(r)&&r.forEach(t=>{t.condition(p,d,c)&&("function"!=typeof t.pre||(p=t.pre(p,d,c))instanceof Node||(p=e),"function"==typeof t.post&&h.push(t.post(p,d,c)))}),h.length)?h:function(e,t){let{key:r,level:n,...c}=t;switch(e.nodeType){case 1:var u;return o.createElement((u=e.nodeName,/[a-z]+[A-Z]+[a-z]+/.test(u)?u:u.toLowerCase()),function(e,t){let r={key:t};if(e instanceof Element){let t=e.getAttribute("class");t&&(r.className=t),[...e.attributes].forEach(e=>{switch(e.name){case"class":break;case"style":r[e.name]=a(e.value);break;case"allowfullscreen":case"allowpaymentrequest":case"async":case"autofocus":case"autoplay":case"checked":case"controls":case"default":case"defer":case"disabled":case"formnovalidate":case"hidden":case"ismap":case"itemscope":case"loop":case"multiple":case"muted":case"nomodule":case"novalidate":case"open":case"readonly":case"required":case"reversed":case"selected":case"typemustmatch":r[s[e.name]||e.name]=!0;break;default:r[s[e.name]||e.name]=e.value}})}return r}(e,r),l(e.childNodes,n,c));case 3:{let t=e.nodeValue?.toString()??"";if(!c.allowWhiteSpaces&&/^\s+$/.test(t)&&!/[\u00A0\u202F]/.test(t))return null;if(!e.parentNode)return t;let r=e.parentNode.nodeName.toLowerCase();if(i.includes(r))return/\S/.test(t)&&console.warn(`A textNode is not allowed inside '${r}'. Your text "${t}" will be ignored`),null;return t}case 8:default:return null;case 11:return l(e.childNodes,n,t)}}(p,{key:d,level:c,...t})}function u(e,t={}){return"string"==typeof e?function(e,t={}){if(!e||"string"!=typeof e)return null;let{includeAllNodes:r=!1,nodeOnly:n=!1,selector:o="body > *",type:a="text/html"}=t;try{let i=new DOMParser().parseFromString(e,a);if(r){let{childNodes:e}=i.body;if(n)return e;return[...e].map(e=>c(e,t))}let s=i.querySelector(o)||i.body.childNodes[0];if(!(s instanceof Node))throw TypeError("Error parsing input");if(n)return s;return c(s,t)}catch(e){}return null}(e,t):e instanceof Node?c(e,t):null}var p=r(85893),d=Object.defineProperty,h=(e,t,r)=>t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f=(e,t,r)=>(h(e,"symbol"!=typeof t?t+"":t,r),r),y="react-inlinesvg",m={IDLE:"idle",LOADING:"loading",LOADED:"loaded",FAILED:"failed",READY:"ready",UNSUPPORTED:"unsupported"};function g(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}async function b(e,t){let r=await fetch(e,t),[n]=(r.headers.get("content-type")??"").split(/ ?; ?/);if(r.status>299)throw Error("Not found");if(!["image/svg+xml","text/plain"].some(e=>n.includes(e)))throw Error(`Content type isn't valid: ${n}`);return r.text()}var v=class{constructor(){f(this,"cacheApi"),f(this,"cacheStore"),f(this,"subscribers",[]),f(this,"isReady",!1),this.cacheStore=new Map;let e=y,t=!1;g()&&(e=window.REACT_INLINESVG_CACHE_NAME??y,t=!!window.REACT_INLINESVG_PERSISTENT_CACHE&&"caches"in window),t?caches.open(e).then(e=>{this.cacheApi=e,this.isReady=!0,this.subscribers.forEach(e=>e())}).catch(e=>{this.isReady=!0,console.error(`Failed to open cache: ${e.message}`)}):this.isReady=!0}onReady(e){this.isReady?e():this.subscribers.push(e)}async get(e,t){return await (this.cacheApi?this.fetchAndAddToPersistentCache(e,t):this.fetchAndAddToInternalCache(e,t)),this.cacheStore.get(e)?.content??""}set(e,t){this.cacheStore.set(e,t)}isCached(e){return this.cacheStore.get(e)?.status===m.LOADED}async fetchAndAddToInternalCache(e,t){let r=this.cacheStore.get(e);if(r?.status===m.LOADING){await this.handleLoading(e,async()=>{this.cacheStore.set(e,{content:"",status:m.IDLE}),await this.fetchAndAddToInternalCache(e,t)});return}if(!r?.content){this.cacheStore.set(e,{content:"",status:m.LOADING});try{let r=await b(e,t);this.cacheStore.set(e,{content:r,status:m.LOADED})}catch(t){throw this.cacheStore.set(e,{content:"",status:m.FAILED}),t}}}async fetchAndAddToPersistentCache(e,t){let r=this.cacheStore.get(e);if(r?.status===m.LOADED)return;if(r?.status===m.LOADING){await this.handleLoading(e,async()=>{this.cacheStore.set(e,{content:"",status:m.IDLE}),await this.fetchAndAddToPersistentCache(e,t)});return}this.cacheStore.set(e,{content:"",status:m.LOADING});let n=await this.cacheApi?.match(e);if(n){let t=await n.text();this.cacheStore.set(e,{content:t,status:m.LOADED});return}try{await this.cacheApi?.add(new Request(e,t));let r=await this.cacheApi?.match(e),n=await r?.text()??"";this.cacheStore.set(e,{content:n,status:m.LOADED})}catch(t){throw this.cacheStore.set(e,{content:"",status:m.FAILED}),t}}async handleLoading(e,t){let r=0;for(;this.cacheStore.get(e)?.status===m.LOADING&&r<10;)await function(e=1){return new Promise(t=>{setTimeout(t,1e3*e)})}(.1),r+=1;r>=10&&await t()}keys(){return[...this.cacheStore.keys()]}data(){return[...this.cacheStore.entries()].map(([e,t])=>({[e]:t}))}async delete(e){this.cacheApi&&await this.cacheApi.delete(e),this.cacheStore.delete(e)}async clear(){if(this.cacheApi)for(let e of(await this.cacheApi.keys()))await this.cacheApi.delete(e);this.cacheStore.clear()}};function w(e){let t=(0,o.useRef)();return(0,o.useEffect)(()=>{t.current=e}),t.current}function P(e){let{cacheRequests:t=!0,children:r=null,description:a,fetchOptions:i,innerRef:s,loader:l=null,onError:c,onLoad:p,src:d,title:h,uniqueHash:f}=e,[y,v]=(0,o.useReducer)((e,t)=>({...e,...t}),{content:"",element:null,isCached:t&&n.isCached(e.src),status:m.IDLE}),{content:P,element:k,isCached:O,status:x}=y,S=w(e),E=w(y),A=(0,o.useRef)(f??function(e){let t="abcdefghijklmnopqrstuvwxyz",r=`${t}${t.toUpperCase()}1234567890`,n="";for(let e=0;e<8;e++)n+=r[Math.floor(Math.random()*r.length)];return n}(0)),T=(0,o.useRef)(!1),C=(0,o.useRef)(!1),D=(0,o.useCallback)(e=>{T.current&&(v({status:"Browser does not support SVG"===e.message?m.UNSUPPORTED:m.FAILED}),c?.(e))},[c]),R=(0,o.useCallback)((e,t=!1)=>{T.current&&v({content:e,isCached:t,status:m.LOADED})},[]),L=(0,o.useCallback)(async()=>{R(await b(d,i))},[i,R,d]),I=(0,o.useCallback)(()=>{try{let t=function(e){let{baseURL:t,content:r,description:n,handleError:o,hash:a,preProcessor:i,title:s,uniquifyIDs:l=!1}=e;try{let e=i?i(r):r,o=u(e,{nodeOnly:!0});if(!o||!(o instanceof SVGSVGElement))throw Error("Could not convert the src to a DOM Node");let c=function e(t,r){let{baseURL:n="",hash:o,uniquifyIDs:a}=r,i=["id","href","xlink:href","xlink:role","xlink:arcrole"],s=["href","xlink:href"],l=(e,t)=>s.includes(e)&&!!t&&!t.includes("#");return a&&[...t.children].forEach(t=>{if(t.attributes?.length){let e=Object.values(t.attributes).map(e=>{let t=/url\((.*?)\)/.exec(e.value);return t?.[1]&&(e.value=e.value.replace(t[0],`url(${n}${t[1]}__${o})`)),e});i.forEach(t=>{let r=e.find(e=>e.name===t);r&&!l(t,r.value)&&(r.value=`${r.value}__${o}`)})}return t.children.length?e(t,r):t}),t}(o,{baseURL:t,hash:a,uniquifyIDs:l});if(n){let e=c.querySelector("desc");e?.parentNode&&e.parentNode.removeChild(e);let t=document.createElementNS("http://www.w3.org/2000/svg","desc");t.innerHTML=n,c.prepend(t)}if(void 0!==s){let e=c.querySelector("title");if(e?.parentNode&&e.parentNode.removeChild(e),s){let e=document.createElementNS("http://www.w3.org/2000/svg","title");e.innerHTML=s,c.prepend(e)}}return c}catch(e){return o(e)}}({...e,handleError:D,hash:A.current,content:P}),r=u(t);if(!r||!(0,o.isValidElement)(r))throw Error("Could not convert the src to a React element");v({element:r,status:m.READY})}catch(e){D(Error(e.message))}},[P,D,e]),M=(0,o.useCallback)(async()=>{let e;let r=/^data:image\/svg[^,]*?(;base64)?,(.*)/u.exec(d);if(r?e=r[1]?window.atob(r[2]):decodeURIComponent(r[2]):d.includes("{T.current&&v({content:"",element:null,isCached:!1,status:m.LOADING})},[]);(0,o.useEffect)(()=>{if(T.current=!0,!g()||C.current)return()=>void 0;try{if(x===m.IDLE){if(!(function(){if(!document)return!1;let e=document.createElement("div");e.innerHTML="";let t=e.firstChild;return!!t&&"http://www.w3.org/2000/svg"===t.namespaceURI}()&&"undefined"!=typeof window&&null!==window))throw Error("Browser does not support SVG");if(!d)throw Error("Missing src");_()}}catch(e){D(e)}return C.current=!0,()=>{T.current=!1}},[]),(0,o.useEffect)(()=>{if(g()&&S){if(S.src!==d){if(!d){D(Error("Missing src"));return}_()}else(S.title!==h||S.description!==a)&&I()}},[a,I,D,_,S,d,h]),(0,o.useEffect)(()=>{E&&(E.status!==m.LOADING&&x===m.LOADING&&M(),E.status!==m.LOADED&&x===m.LOADED&&I(),E.status!==m.READY&&x===m.READY&&p?.(d,O))},[M,I,O,p,E,d,x]);let j=function(e,...t){let r={};for(let n in e)({}).hasOwnProperty.call(e,n)&&!t.includes(n)&&(r[n]=e[n]);return r}(e,"baseURL","cacheRequests","children","description","fetchOptions","innerRef","loader","onError","onLoad","preProcessor","src","title","uniqueHash","uniquifyIDs");return g()?k?(0,o.cloneElement)(k,{ref:s,...j}):[m.UNSUPPORTED,m.FAILED].includes(x)?r:l:l}function k(e){n||(n=new v);let{loader:t}=e,r=(0,o.useRef)(!1),[a,i]=(0,o.useState)(n.isReady);return((0,o.useEffect)(()=>{r.current||(n.onReady(()=>{i(!0)}),r.current=!0)},[]),a)?(0,p.jsx)(P,{...e}):t}}}]);