From 0c2c0b4f0519d7d676e1d1b39aed46f86c1a805d Mon Sep 17 00:00:00 2001 From: Lewis Hunt Date: Thu, 7 Dec 2023 17:16:40 +0000 Subject: [PATCH] Updates --- .../{index-7c5bb701.js => index-8563f8f6.js} | 30 +++++++++---------- index.html | 2 +- 2 files changed, 16 insertions(+), 16 deletions(-) rename assets/{index-7c5bb701.js => index-8563f8f6.js} (74%) diff --git a/assets/index-7c5bb701.js b/assets/index-8563f8f6.js similarity index 74% rename from assets/index-7c5bb701.js rename to assets/index-8563f8f6.js index 8537d64..5b834e8 100644 --- a/assets/index-7c5bb701.js +++ b/assets/index-8563f8f6.js @@ -14,7 +14,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Vw=ne,Ww=Symbol.for("react.element"),Yw=Symbol.for("react.fragment"),Gw=Object.prototype.hasOwnProperty,Xw=Vw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Qw={key:!0,ref:!0,__self:!0,__source:!0};function Wg(e,t,n){var r,a={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Gw.call(t,r)&&!Qw.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)a[r]===void 0&&(a[r]=t[r]);return{$$typeof:Ww,type:e,key:i,ref:o,props:a,_owner:Xw.current}}bo.Fragment=Yw;bo.jsx=Wg;bo.jsxs=Wg;jg.exports=bo;var fe=jg.exports,$c={},Yg={exports:{}},yt={},Gg={exports:{}},Xg={};/** + */var Vw=ne,Ww=Symbol.for("react.element"),Yw=Symbol.for("react.fragment"),Gw=Object.prototype.hasOwnProperty,Xw=Vw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Qw={key:!0,ref:!0,__self:!0,__source:!0};function Wg(e,t,n){var r,a={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Gw.call(t,r)&&!Qw.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)a[r]===void 0&&(a[r]=t[r]);return{$$typeof:Ww,type:e,key:i,ref:o,props:a,_owner:Xw.current}}bo.Fragment=Yw;bo.jsx=Wg;bo.jsxs=Wg;jg.exports=bo;var ce=jg.exports,$c={},Yg={exports:{}},yt={},Gg={exports:{}},Xg={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(O,D){var x=O.length;O.push(D);e:for(;0>>1,j=O[T];if(0>>1;Ta(ee,x))rea(oe,ee)?(O[T]=oe,O[re]=x,T=re):(O[T]=ee,O[B]=x,T=B);else if(rea(oe,x))O[T]=oe,O[re]=x,T=re;else break e}}return D}function a(O,D){var x=O.sortIndex-D.sortIndex;return x!==0?x:O.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var s=[],p=[],m=1,w=null,P=3,S=!1,I=!1,L=!1,A=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(O){for(var D=n(p);D!==null;){if(D.callback===null)r(p);else if(D.startTime<=O)r(p),D.sortIndex=D.expirationTime,t(s,D);else break;D=n(p)}}function R(O){if(L=!1,v(O),!I)if(n(s)!==null)I=!0,q(_);else{var D=n(p);D!==null&&N(R,D.startTime-O)}}function _(O,D){I=!1,L&&(L=!1,g(u),u=-1),S=!0;var x=P;try{for(v(D),w=n(s);w!==null&&(!(w.expirationTime>D)||O&&!y());){var T=w.callback;if(typeof T=="function"){w.callback=null,P=w.priorityLevel;var j=T(w.expirationTime<=D);D=e.unstable_now(),typeof j=="function"?w.callback=j:w===n(s)&&r(s),v(D)}else r(s);w=n(s)}if(w!==null)var V=!0;else{var B=n(p);B!==null&&N(R,B.startTime-D),V=!1}return V}finally{w=null,P=x,S=!1}}var b=!1,d=null,u=-1,f=5,c=-1;function y(){return!(e.unstable_now()-cO||125T?(O.sortIndex=x,t(p,O),n(s)===null&&O===n(p)&&(L?(g(u),u=-1):L=!0,N(R,x-T))):(O.sortIndex=j,t(s,O),I||S||(I=!0,q(_))),O},e.unstable_shouldYield=y,e.unstable_wrapCallback=function(O){var D=P;return function(){var x=P;P=D;try{return O.apply(this,arguments)}finally{P=x}}}})(Xg);Gg.exports=Xg;var Zw=Gg.exports;/** + */(function(e){function t(k,I){var x=k.length;k.push(I);e:for(;0>>1,j=k[T];if(0>>1;Ta(ee,x))oea(ie,ee)?(k[T]=ie,k[oe]=x,T=oe):(k[T]=ee,k[B]=x,T=B);else if(oea(ie,x))k[T]=ie,k[oe]=x,T=oe;else break e}}return I}function a(k,I){var x=k.sortIndex-I.sortIndex;return x!==0?x:k.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var s=[],p=[],m=1,w=null,P=3,S=!1,L=!1,D=!1,A=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(k){for(var I=n(p);I!==null;){if(I.callback===null)r(p);else if(I.startTime<=k)r(p),I.sortIndex=I.expirationTime,t(s,I);else break;I=n(p)}}function R(k){if(D=!1,v(k),!L)if(n(s)!==null)L=!0,q(_);else{var I=n(p);I!==null&&N(R,I.startTime-k)}}function _(k,I){L=!1,D&&(D=!1,g(u),u=-1),S=!0;var x=P;try{for(v(I),w=n(s);w!==null&&(!(w.expirationTime>I)||k&&!y());){var T=w.callback;if(typeof T=="function"){w.callback=null,P=w.priorityLevel;var j=T(w.expirationTime<=I);I=e.unstable_now(),typeof j=="function"?w.callback=j:w===n(s)&&r(s),v(I)}else r(s);w=n(s)}if(w!==null)var V=!0;else{var B=n(p);B!==null&&N(R,B.startTime-I),V=!1}return V}finally{w=null,P=x,S=!1}}var b=!1,d=null,u=-1,f=5,c=-1;function y(){return!(e.unstable_now()-ck||125T?(k.sortIndex=x,t(p,k),n(s)===null&&k===n(p)&&(D?(g(u),u=-1):D=!0,N(R,x-T))):(k.sortIndex=j,t(s,k),L||S||(L=!0,q(_))),k},e.unstable_shouldYield=y,e.unstable_wrapCallback=function(k){var I=P;return function(){var x=P;P=I;try{return k.apply(this,arguments)}finally{P=x}}}})(Xg);Gg.exports=Xg;var Zw=Gg.exports;/** * @license React * react-dom.production.min.js * @@ -34,19 +34,19 @@ `+Qo+e}var Zo=!1;function Jo(e,t){if(!e||Zo)return"";Zo=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(p){var r=p}Reflect.construct(e,[],t)}else{try{t.call()}catch(p){r=p}e.call(t.prototype)}else{try{throw Error()}catch(p){r=p}e()}}catch(p){if(p&&r&&typeof p.stack=="string"){for(var a=p.stack.split(` `),i=r.stack.split(` `),o=a.length-1,l=i.length-1;1<=o&&0<=l&&a[o]!==i[l];)l--;for(;1<=o&&0<=l;o--,l--)if(a[o]!==i[l]){if(o!==1||l!==1)do if(o--,l--,0>l||a[o]!==i[l]){var s=` -`+a[o].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=l);break}}}finally{Zo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Xr(e):""}function rb(e){switch(e.tag){case 5:return Xr(e.type);case 16:return Xr("Lazy");case 13:return Xr("Suspense");case 19:return Xr("SuspenseList");case 0:case 2:case 15:return e=Jo(e.type,!1),e;case 11:return e=Jo(e.type.render,!1),e;case 1:return e=Jo(e.type,!0),e;default:return""}}function Gc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case rr:return"Fragment";case nr:return"Portal";case Vc:return"Profiler";case sd:return"StrictMode";case Wc:return"Suspense";case Yc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case e1:return(e.displayName||"Context")+".Consumer";case Jg:return(e._context.displayName||"Context")+".Provider";case cd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fd:return t=e.displayName||null,t!==null?t:Gc(e.type)||"Memo";case un:t=e._payload,e=e._init;try{return Gc(e(t))}catch{}}return null}function ab(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Gc(t);case 8:return t===sd?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Sn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function n1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ib(e){var t=n1(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ai(e){e._valueTracker||(e._valueTracker=ib(e))}function r1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=n1(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Hi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Xc(e,t){var n=t.checked;return Ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Sn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function a1(e,t){t=t.checked,t!=null&&ld(e,"checked",t,!1)}function Qc(e,t){a1(e,t);var n=Sn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Zc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Zc(e,t.type,Sn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ip(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Zc(e,t,n){(t!=="number"||Hi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Qr=Array.isArray;function mr(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=ii.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ga(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var aa={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},ob=["Webkit","ms","Moz","O"];Object.keys(aa).forEach(function(e){ob.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),aa[t]=aa[e]})});function l1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||aa.hasOwnProperty(e)&&aa[e]?(""+t).trim():t+"px"}function s1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,a=l1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}var ub=Ce({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 tf(e,t){if(t){if(ub[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error($(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error($(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error($(61))}if(t.style!=null&&typeof t.style!="object")throw Error($(62))}}function nf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 rf=null;function dd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var af=null,gr=null,_r=null;function Np(e){if(e=Ba(e)){if(typeof af!="function")throw Error($(280));var t=e.stateNode;t&&(t=Co(t),af(e.stateNode,e.type,t))}}function c1(e){gr?_r?_r.push(e):_r=[e]:gr=e}function f1(){if(gr){var e=gr,t=_r;if(_r=gr=null,Np(e),t)for(e=0;e>>=0,e===0?32:31-(gb(e)/_b|0)|0}var oi=64,ui=4194304;function Zr(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Wi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,a=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~a;l!==0?r=Zr(l):(i&=o,i!==0&&(r=Zr(i)))}else o=n&~a,o!==0?r=Zr(o):i!==0&&(r=Zr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&a)&&(a=r&-r,i=t&-t,a>=i||a===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ha(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Lt(t),e[t]=n}function Sb(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=oa),Bp=String.fromCharCode(32),Vp=!1;function A1(e,t){switch(e){case"keyup":return Qb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function L1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ar=!1;function Jb(e,t){switch(e){case"compositionend":return L1(t);case"keypress":return t.which!==32?null:(Vp=!0,Bp);case"textInput":return e=t.data,e===Bp&&Vp?null:e;default:return null}}function eP(e,t){if(ar)return e==="compositionend"||!wd&&A1(e,t)?(e=T1(),Ai=md=dn=null,ar=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Xp(n)}}function N1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?N1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function F1(){for(var e=window,t=Hi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Hi(e.document)}return t}function bd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function sP(e){var t=F1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&N1(n.ownerDocument.documentElement,n)){if(r!==null&&bd(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=n.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!e.extend&&i>r&&(a=r,r=i,i=a),a=Qp(n,i);var o=Qp(n,r);a&&o&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ir=null,ff=null,la=null,df=!1;function Zp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;df||ir==null||ir!==Hi(r)||(r=ir,"selectionStart"in r&&bd(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),la&&Oa(la,r)||(la=r,r=Xi(ff,"onSelect"),0lr||(e.current=gf[lr],gf[lr]=null,lr--)}function ge(e,t){lr++,gf[lr]=e.current,e.current=t}var On={},Ge=Tn(On),ot=Tn(!1),Un=On;function kr(e,t){var n=e.type.contextTypes;if(!n)return On;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in n)a[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function ut(e){return e=e.childContextTypes,e!=null}function Zi(){Pe(ot),Pe(Ge)}function iy(e,t,n){if(Ge.current!==On)throw Error($(168));ge(Ge,t),ge(ot,n)}function V1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var a in r)if(!(a in t))throw Error($(108,ab(e)||"Unknown",a));return Ce({},n,r)}function Ji(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||On,Un=Ge.current,ge(Ge,e),ge(ot,ot.current),!0}function oy(e,t,n){var r=e.stateNode;if(!r)throw Error($(169));n?(e=V1(e,t,Un),r.__reactInternalMemoizedMergedChildContext=e,Pe(ot),Pe(Ge),ge(Ge,e)):Pe(ot),ge(ot,n)}var $t=null,Ro=!1,pu=!1;function W1(e){$t===null?$t=[e]:$t.push(e)}function bP(e){Ro=!0,W1(e)}function xn(){if(!pu&&$t!==null){pu=!0;var e=0,t=he;try{var n=$t;for(he=1;e>=o,a-=o,Bt=1<<32-Lt(t)+a|n<u?(f=d,d=null):f=d.sibling;var c=P(g,d,v[u],R);if(c===null){d===null&&(d=f);break}e&&d&&c.alternate===null&&t(g,d),h=i(c,h,u),b===null?_=c:b.sibling=c,b=c,d=f}if(u===v.length)return n(g,d),Oe&&An(g,u),_;if(d===null){for(;uu?(f=d,d=null):f=d.sibling;var y=P(g,d,c.value,R);if(y===null){d===null&&(d=f);break}e&&d&&y.alternate===null&&t(g,d),h=i(y,h,u),b===null?_=y:b.sibling=y,b=y,d=f}if(c.done)return n(g,d),Oe&&An(g,u),_;if(d===null){for(;!c.done;u++,c=v.next())c=w(g,c.value,R),c!==null&&(h=i(c,h,u),b===null?_=c:b.sibling=c,b=c);return Oe&&An(g,u),_}for(d=r(g,d);!c.done;u++,c=v.next())c=S(d,g,u,c.value,R),c!==null&&(e&&c.alternate!==null&&d.delete(c.key===null?u:c.key),h=i(c,h,u),b===null?_=c:b.sibling=c,b=c);return e&&d.forEach(function(E){return t(g,E)}),Oe&&An(g,u),_}function A(g,h,v,R){if(typeof v=="object"&&v!==null&&v.type===rr&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case ri:e:{for(var _=v.key,b=h;b!==null;){if(b.key===_){if(_=v.type,_===rr){if(b.tag===7){n(g,b.sibling),h=a(b,v.props.children),h.return=g,g=h;break e}}else if(b.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===un&&py(_)===b.type){n(g,b.sibling),h=a(b,v.props),h.ref=$r(g,b,v),h.return=g,g=h;break e}n(g,b);break}else t(g,b);b=b.sibling}v.type===rr?(h=zn(v.props.children,g.mode,R,v.key),h.return=g,g=h):(R=qi(v.type,v.key,v.props,null,g.mode,R),R.ref=$r(g,h,v),R.return=g,g=R)}return o(g);case nr:e:{for(b=v.key;h!==null;){if(h.key===b)if(h.tag===4&&h.stateNode.containerInfo===v.containerInfo&&h.stateNode.implementation===v.implementation){n(g,h.sibling),h=a(h,v.children||[]),h.return=g,g=h;break e}else{n(g,h);break}else t(g,h);h=h.sibling}h=bu(v,g.mode,R),h.return=g,g=h}return o(g);case un:return b=v._init,A(g,h,b(v._payload),R)}if(Qr(v))return I(g,h,v,R);if(qr(v))return L(g,h,v,R);yi(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,h!==null&&h.tag===6?(n(g,h.sibling),h=a(h,v),h.return=g,g=h):(n(g,h),h=wu(v,g.mode,R),h.return=g,g=h),o(g)):n(g,h)}return A}var Cr=t0(!0),n0=t0(!1),Va={},zt=Tn(Va),Ra=Tn(Va),Ta=Tn(Va);function Nn(e){if(e===Va)throw Error($(174));return e}function xd(e,t){switch(ge(Ta,t),ge(Ra,e),ge(zt,Va),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ef(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ef(t,e)}Pe(zt),ge(zt,t)}function Rr(){Pe(zt),Pe(Ra),Pe(Ta)}function r0(e){Nn(Ta.current);var t=Nn(zt.current),n=ef(t,e.type);t!==n&&(ge(Ra,e),ge(zt,n))}function Ad(e){Ra.current===e&&(Pe(zt),Pe(Ra))}var ke=Tn(0);function io(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var yu=[];function Ld(){for(var e=0;en?n:4,e(!0);var r=hu.transition;hu.transition={};try{e(!1),t()}finally{he=n,hu.transition=r}}function _0(){return Ot().memoizedState}function kP(e,t,n){var r=bn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},w0(e))b0(t,n);else if(n=Q1(e,t,n,r),n!==null){var a=tt();It(n,e,r,a),P0(n,t,r)}}function EP(e,t,n){var r=bn(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(w0(e))b0(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,l=i(o,n);if(a.hasEagerState=!0,a.eagerState=l,Dt(l,o)){var s=t.interleaved;s===null?(a.next=a,Rd(t)):(a.next=s.next,s.next=a),t.interleaved=a;return}}catch{}finally{}n=Q1(e,t,a,r),n!==null&&(a=tt(),It(n,e,r,a),P0(n,t,r))}}function w0(e){var t=e.alternate;return e===Ee||t!==null&&t===Ee}function b0(e,t){sa=oo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function P0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,yd(e,n)}}var uo={readContext:St,useCallback:Be,useContext:Be,useEffect:Be,useImperativeHandle:Be,useInsertionEffect:Be,useLayoutEffect:Be,useMemo:Be,useReducer:Be,useRef:Be,useState:Be,useDebugValue:Be,useDeferredValue:Be,useTransition:Be,useMutableSource:Be,useSyncExternalStore:Be,useId:Be,unstable_isNewReconciler:!1},CP={readContext:St,useCallback:function(e,t){return Nt().memoizedState=[e,t===void 0?null:t],e},useContext:St,useEffect:hy,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Mi(4194308,4,y0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Mi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Mi(4,2,e,t)},useMemo:function(e,t){var n=Nt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Nt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=kP.bind(null,Ee,e),[r.memoizedState,e]},useRef:function(e){var t=Nt();return e={current:e},t.memoizedState=e},useState:yy,useDebugValue:Fd,useDeferredValue:function(e){return Nt().memoizedState=e},useTransition:function(){var e=yy(!1),t=e[0];return e=OP.bind(null,e[1]),Nt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ee,a=Nt();if(Oe){if(n===void 0)throw Error($(407));n=n()}else{if(n=t(),ze===null)throw Error($(349));Hn&30||o0(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,hy(l0.bind(null,r,i,e),[e]),r.flags|=2048,La(9,u0.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Nt(),t=ze.identifierPrefix;if(Oe){var n=Vt,r=Bt;n=(r&~(1<<32-Lt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=xa++,0")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=l);break}}}finally{Zo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Xr(e):""}function rb(e){switch(e.tag){case 5:return Xr(e.type);case 16:return Xr("Lazy");case 13:return Xr("Suspense");case 19:return Xr("SuspenseList");case 0:case 2:case 15:return e=Jo(e.type,!1),e;case 11:return e=Jo(e.type.render,!1),e;case 1:return e=Jo(e.type,!0),e;default:return""}}function Gc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case rr:return"Fragment";case nr:return"Portal";case Vc:return"Profiler";case sd:return"StrictMode";case Wc:return"Suspense";case Yc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case e1:return(e.displayName||"Context")+".Consumer";case Jg:return(e._context.displayName||"Context")+".Provider";case cd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fd:return t=e.displayName||null,t!==null?t:Gc(e.type)||"Memo";case un:t=e._payload,e=e._init;try{return Gc(e(t))}catch{}}return null}function ab(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Gc(t);case 8:return t===sd?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Sn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function n1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ib(e){var t=n1(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ai(e){e._valueTracker||(e._valueTracker=ib(e))}function r1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=n1(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Hi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Xc(e,t){var n=t.checked;return Ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Sn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function a1(e,t){t=t.checked,t!=null&&ld(e,"checked",t,!1)}function Qc(e,t){a1(e,t);var n=Sn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Zc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Zc(e,t.type,Sn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ip(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Zc(e,t,n){(t!=="number"||Hi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Qr=Array.isArray;function mr(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=ii.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ga(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var aa={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},ob=["Webkit","ms","Moz","O"];Object.keys(aa).forEach(function(e){ob.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),aa[t]=aa[e]})});function l1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||aa.hasOwnProperty(e)&&aa[e]?(""+t).trim():t+"px"}function s1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,a=l1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}var ub=Ce({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 tf(e,t){if(t){if(ub[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error($(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error($(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error($(61))}if(t.style!=null&&typeof t.style!="object")throw Error($(62))}}function nf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 rf=null;function dd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var af=null,gr=null,_r=null;function Np(e){if(e=Ba(e)){if(typeof af!="function")throw Error($(280));var t=e.stateNode;t&&(t=Co(t),af(e.stateNode,e.type,t))}}function c1(e){gr?_r?_r.push(e):_r=[e]:gr=e}function f1(){if(gr){var e=gr,t=_r;if(_r=gr=null,Np(e),t)for(e=0;e>>=0,e===0?32:31-(gb(e)/_b|0)|0}var oi=64,ui=4194304;function Zr(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Wi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,a=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~a;l!==0?r=Zr(l):(i&=o,i!==0&&(r=Zr(i)))}else o=n&~a,o!==0?r=Zr(o):i!==0&&(r=Zr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&a)&&(a=r&-r,i=t&-t,a>=i||a===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ha(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Lt(t),e[t]=n}function Sb(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=oa),Bp=String.fromCharCode(32),Vp=!1;function A1(e,t){switch(e){case"keyup":return Qb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function L1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ar=!1;function Jb(e,t){switch(e){case"compositionend":return L1(t);case"keypress":return t.which!==32?null:(Vp=!0,Bp);case"textInput":return e=t.data,e===Bp&&Vp?null:e;default:return null}}function eP(e,t){if(ar)return e==="compositionend"||!wd&&A1(e,t)?(e=T1(),Ai=md=dn=null,ar=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Xp(n)}}function N1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?N1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function F1(){for(var e=window,t=Hi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Hi(e.document)}return t}function bd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function sP(e){var t=F1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&N1(n.ownerDocument.documentElement,n)){if(r!==null&&bd(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=n.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!e.extend&&i>r&&(a=r,r=i,i=a),a=Qp(n,i);var o=Qp(n,r);a&&o&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ir=null,ff=null,la=null,df=!1;function Zp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;df||ir==null||ir!==Hi(r)||(r=ir,"selectionStart"in r&&bd(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),la&&Oa(la,r)||(la=r,r=Xi(ff,"onSelect"),0lr||(e.current=gf[lr],gf[lr]=null,lr--)}function ge(e,t){lr++,gf[lr]=e.current,e.current=t}var On={},Ge=Tn(On),ot=Tn(!1),Un=On;function kr(e,t){var n=e.type.contextTypes;if(!n)return On;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in n)a[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function ut(e){return e=e.childContextTypes,e!=null}function Zi(){Pe(ot),Pe(Ge)}function iy(e,t,n){if(Ge.current!==On)throw Error($(168));ge(Ge,t),ge(ot,n)}function V1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var a in r)if(!(a in t))throw Error($(108,ab(e)||"Unknown",a));return Ce({},n,r)}function Ji(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||On,Un=Ge.current,ge(Ge,e),ge(ot,ot.current),!0}function oy(e,t,n){var r=e.stateNode;if(!r)throw Error($(169));n?(e=V1(e,t,Un),r.__reactInternalMemoizedMergedChildContext=e,Pe(ot),Pe(Ge),ge(Ge,e)):Pe(ot),ge(ot,n)}var $t=null,Ro=!1,pu=!1;function W1(e){$t===null?$t=[e]:$t.push(e)}function bP(e){Ro=!0,W1(e)}function xn(){if(!pu&&$t!==null){pu=!0;var e=0,t=he;try{var n=$t;for(he=1;e>=o,a-=o,Bt=1<<32-Lt(t)+a|n<u?(f=d,d=null):f=d.sibling;var c=P(g,d,v[u],R);if(c===null){d===null&&(d=f);break}e&&d&&c.alternate===null&&t(g,d),h=i(c,h,u),b===null?_=c:b.sibling=c,b=c,d=f}if(u===v.length)return n(g,d),Oe&&An(g,u),_;if(d===null){for(;uu?(f=d,d=null):f=d.sibling;var y=P(g,d,c.value,R);if(y===null){d===null&&(d=f);break}e&&d&&y.alternate===null&&t(g,d),h=i(y,h,u),b===null?_=y:b.sibling=y,b=y,d=f}if(c.done)return n(g,d),Oe&&An(g,u),_;if(d===null){for(;!c.done;u++,c=v.next())c=w(g,c.value,R),c!==null&&(h=i(c,h,u),b===null?_=c:b.sibling=c,b=c);return Oe&&An(g,u),_}for(d=r(g,d);!c.done;u++,c=v.next())c=S(d,g,u,c.value,R),c!==null&&(e&&c.alternate!==null&&d.delete(c.key===null?u:c.key),h=i(c,h,u),b===null?_=c:b.sibling=c,b=c);return e&&d.forEach(function(E){return t(g,E)}),Oe&&An(g,u),_}function A(g,h,v,R){if(typeof v=="object"&&v!==null&&v.type===rr&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case ri:e:{for(var _=v.key,b=h;b!==null;){if(b.key===_){if(_=v.type,_===rr){if(b.tag===7){n(g,b.sibling),h=a(b,v.props.children),h.return=g,g=h;break e}}else if(b.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===un&&py(_)===b.type){n(g,b.sibling),h=a(b,v.props),h.ref=$r(g,b,v),h.return=g,g=h;break e}n(g,b);break}else t(g,b);b=b.sibling}v.type===rr?(h=zn(v.props.children,g.mode,R,v.key),h.return=g,g=h):(R=qi(v.type,v.key,v.props,null,g.mode,R),R.ref=$r(g,h,v),R.return=g,g=R)}return o(g);case nr:e:{for(b=v.key;h!==null;){if(h.key===b)if(h.tag===4&&h.stateNode.containerInfo===v.containerInfo&&h.stateNode.implementation===v.implementation){n(g,h.sibling),h=a(h,v.children||[]),h.return=g,g=h;break e}else{n(g,h);break}else t(g,h);h=h.sibling}h=bu(v,g.mode,R),h.return=g,g=h}return o(g);case un:return b=v._init,A(g,h,b(v._payload),R)}if(Qr(v))return L(g,h,v,R);if(qr(v))return D(g,h,v,R);yi(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,h!==null&&h.tag===6?(n(g,h.sibling),h=a(h,v),h.return=g,g=h):(n(g,h),h=wu(v,g.mode,R),h.return=g,g=h),o(g)):n(g,h)}return A}var Cr=t0(!0),n0=t0(!1),Va={},zt=Tn(Va),Ra=Tn(Va),Ta=Tn(Va);function Nn(e){if(e===Va)throw Error($(174));return e}function xd(e,t){switch(ge(Ta,t),ge(Ra,e),ge(zt,Va),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ef(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ef(t,e)}Pe(zt),ge(zt,t)}function Rr(){Pe(zt),Pe(Ra),Pe(Ta)}function r0(e){Nn(Ta.current);var t=Nn(zt.current),n=ef(t,e.type);t!==n&&(ge(Ra,e),ge(zt,n))}function Ad(e){Ra.current===e&&(Pe(zt),Pe(Ra))}var ke=Tn(0);function io(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var yu=[];function Ld(){for(var e=0;en?n:4,e(!0);var r=hu.transition;hu.transition={};try{e(!1),t()}finally{he=n,hu.transition=r}}function _0(){return Ot().memoizedState}function kP(e,t,n){var r=bn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},w0(e))b0(t,n);else if(n=Q1(e,t,n,r),n!==null){var a=tt();It(n,e,r,a),P0(n,t,r)}}function EP(e,t,n){var r=bn(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(w0(e))b0(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,l=i(o,n);if(a.hasEagerState=!0,a.eagerState=l,Dt(l,o)){var s=t.interleaved;s===null?(a.next=a,Rd(t)):(a.next=s.next,s.next=a),t.interleaved=a;return}}catch{}finally{}n=Q1(e,t,a,r),n!==null&&(a=tt(),It(n,e,r,a),P0(n,t,r))}}function w0(e){var t=e.alternate;return e===Ee||t!==null&&t===Ee}function b0(e,t){sa=oo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function P0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,yd(e,n)}}var uo={readContext:St,useCallback:Be,useContext:Be,useEffect:Be,useImperativeHandle:Be,useInsertionEffect:Be,useLayoutEffect:Be,useMemo:Be,useReducer:Be,useRef:Be,useState:Be,useDebugValue:Be,useDeferredValue:Be,useTransition:Be,useMutableSource:Be,useSyncExternalStore:Be,useId:Be,unstable_isNewReconciler:!1},CP={readContext:St,useCallback:function(e,t){return Nt().memoizedState=[e,t===void 0?null:t],e},useContext:St,useEffect:hy,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Mi(4194308,4,y0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Mi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Mi(4,2,e,t)},useMemo:function(e,t){var n=Nt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Nt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=kP.bind(null,Ee,e),[r.memoizedState,e]},useRef:function(e){var t=Nt();return e={current:e},t.memoizedState=e},useState:yy,useDebugValue:Fd,useDeferredValue:function(e){return Nt().memoizedState=e},useTransition:function(){var e=yy(!1),t=e[0];return e=OP.bind(null,e[1]),Nt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ee,a=Nt();if(Oe){if(n===void 0)throw Error($(407));n=n()}else{if(n=t(),ze===null)throw Error($(349));Hn&30||o0(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,hy(l0.bind(null,r,i,e),[e]),r.flags|=2048,La(9,u0.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Nt(),t=ze.identifierPrefix;if(Oe){var n=Vt,r=Bt;n=(r&~(1<<32-Lt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=xa++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Ft]=t,e[Ca]=r,A0(e,t,!1,!1),t.stateNode=e;e:{switch(o=nf(n,r),n){case"dialog":we("cancel",e),we("close",e),a=r;break;case"iframe":case"object":case"embed":we("load",e),a=r;break;case"video":case"audio":for(a=0;axr&&(t.flags|=128,r=!0,Br(i,!1),t.lanes=4194304)}else{if(!r)if(e=io(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Br(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Oe)return Ve(t),null}else 2*Le()-i.renderingStartTime>xr&&n!==1073741824&&(t.flags|=128,r=!0,Br(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Le(),t.sibling=null,n=ke.current,ge(ke,r?n&1|2:n&1),t):(Ve(t),null);case 22:case 23:return Hd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ct&1073741824&&(Ve(t),t.subtreeFlags&6&&(t.flags|=8192)):Ve(t),null;case 24:return null;case 25:return null}throw Error($(156,t.tag))}function MP(e,t){switch(Sd(t),t.tag){case 1:return ut(t.type)&&Zi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Rr(),Pe(ot),Pe(Ge),Ld(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ad(t),null;case 13:if(Pe(ke),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error($(340));Er()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Pe(ke),null;case 4:return Rr(),null;case 10:return Cd(t.type._context),null;case 22:case 23:return Hd(),null;case 24:return null;default:return null}}var vi=!1,Ye=!1,NP=typeof WeakSet=="function"?WeakSet:Set,G=null;function dr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){xe(e,t,r)}else n.current=null}function xf(e,t,n){try{n()}catch(r){xe(e,t,r)}}var Oy=!1;function FP(e,t){if(pf=Yi,e=F1(),bd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,l=-1,s=-1,p=0,m=0,w=e,P=null;t:for(;;){for(var S;w!==n||a!==0&&w.nodeType!==3||(l=o+a),w!==i||r!==0&&w.nodeType!==3||(s=o+r),w.nodeType===3&&(o+=w.nodeValue.length),(S=w.firstChild)!==null;)P=w,w=S;for(;;){if(w===e)break t;if(P===n&&++p===a&&(l=o),P===i&&++m===r&&(s=o),(S=w.nextSibling)!==null)break;w=P,P=w.parentNode}w=S}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(yf={focusedElem:e,selectionRange:n},Yi=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var I=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(I!==null){var L=I.memoizedProps,A=I.memoizedState,g=t.stateNode,h=g.getSnapshotBeforeUpdate(t.elementType===t.type?L:Rt(t.type,L),A);g.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error($(163))}}catch(R){xe(t,t.return,R)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return I=Oy,Oy=!1,I}function ca(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&xf(t,n,i)}a=a.next}while(a!==r)}}function Ao(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Af(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function D0(e){var t=e.alternate;t!==null&&(e.alternate=null,D0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ft],delete t[Ca],delete t[mf],delete t[_P],delete t[wP])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function M0(e){return e.tag===5||e.tag===3||e.tag===4}function ky(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||M0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Lf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Qi));else if(r!==4&&(e=e.child,e!==null))for(Lf(e,t,n),e=e.sibling;e!==null;)Lf(e,t,n),e=e.sibling}function If(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(If(e,t,n),e=e.sibling;e!==null;)If(e,t,n),e=e.sibling}var Ke=null,Tt=!1;function an(e,t,n){for(n=n.child;n!==null;)N0(e,t,n),n=n.sibling}function N0(e,t,n){if(qt&&typeof qt.onCommitFiberUnmount=="function")try{qt.onCommitFiberUnmount(So,n)}catch{}switch(n.tag){case 5:Ye||dr(n,t);case 6:var r=Ke,a=Tt;Ke=null,an(e,t,n),Ke=r,Tt=a,Ke!==null&&(Tt?(e=Ke,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ke.removeChild(n.stateNode));break;case 18:Ke!==null&&(Tt?(e=Ke,n=n.stateNode,e.nodeType===8?du(e.parentNode,n):e.nodeType===1&&du(e,n),Pa(e)):du(Ke,n.stateNode));break;case 4:r=Ke,a=Tt,Ke=n.stateNode.containerInfo,Tt=!0,an(e,t,n),Ke=r,Tt=a;break;case 0:case 11:case 14:case 15:if(!Ye&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&xf(n,t,o),a=a.next}while(a!==r)}an(e,t,n);break;case 1:if(!Ye&&(dr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){xe(n,t,l)}an(e,t,n);break;case 21:an(e,t,n);break;case 22:n.mode&1?(Ye=(r=Ye)||n.memoizedState!==null,an(e,t,n),Ye=r):an(e,t,n);break;default:an(e,t,n)}}function Ey(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new NP),t.forEach(function(r){var a=VP.bind(null,e,r);n.has(r)||(n.add(r),r.then(a,a))})}}function Ct(e,t){var n=t.deletions;if(n!==null)for(var r=0;ra&&(a=o),r&=~i}if(r=a,r=Le()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*qP(r/1960))-r,10e?16:e,pn===null)var r=!1;else{if(e=pn,pn=null,co=0,pe&6)throw Error($(331));var a=pe;for(pe|=4,G=e.current;G!==null;){var i=G,o=i.child;if(G.flags&16){var l=i.deletions;if(l!==null){for(var s=0;sLe()-Ud?qn(e,0):zd|=n),lt(e,t)}function $0(e,t){t===0&&(e.mode&1?(t=ui,ui<<=1,!(ui&130023424)&&(ui=4194304)):t=1);var n=tt();e=Xt(e,t),e!==null&&(Ha(e,t,n),lt(e,n))}function BP(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$0(e,n)}function VP(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error($(314))}r!==null&&r.delete(t),$0(e,n)}var B0;B0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ot.current)it=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return it=!1,IP(e,t,n);it=!!(e.flags&131072)}else it=!1,Oe&&t.flags&1048576&&Y1(t,to,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ni(e,t),e=t.pendingProps;var a=kr(t,Ge.current);br(t,n),a=Dd(null,t,r,e,a,n);var i=Md();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ut(r)?(i=!0,Ji(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Td(t),a.updater=To,t.stateNode=a,a._reactInternals=t,Sf(t,r,e,n),t=Ef(null,t,r,!0,i,n)):(t.tag=0,Oe&&i&&Pd(t),et(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ni(e,t),e=t.pendingProps,a=r._init,r=a(r._payload),t.type=r,a=t.tag=YP(r),e=Rt(r,e),a){case 0:t=kf(null,t,r,e,n);break e;case 1:t=by(null,t,r,e,n);break e;case 11:t=_y(null,t,r,e,n);break e;case 14:t=wy(null,t,r,Rt(r.type,e),n);break e}throw Error($(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Rt(r,a),kf(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Rt(r,a),by(e,t,r,a,n);case 3:e:{if(R0(t),e===null)throw Error($(387));r=t.pendingProps,i=t.memoizedState,a=i.element,Z1(e,t),ao(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=Tr(Error($(423)),t),t=Py(e,t,r,n,a);break e}else if(r!==a){a=Tr(Error($(424)),t),t=Py(e,t,r,n,a);break e}else for(ft=gn(t.stateNode.containerInfo.firstChild),dt=t,Oe=!0,xt=null,n=n0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Er(),r===a){t=Qt(e,t,n);break e}et(e,t,r,n)}t=t.child}return t;case 5:return r0(t),e===null&&wf(t),r=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,o=a.children,hf(r,a)?o=null:i!==null&&hf(r,i)&&(t.flags|=32),C0(e,t),et(e,t,o,n),t.child;case 6:return e===null&&wf(t),null;case 13:return T0(e,t,n);case 4:return xd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Cr(t,null,r,n):et(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Rt(r,a),_y(e,t,r,a,n);case 7:return et(e,t,t.pendingProps,n),t.child;case 8:return et(e,t,t.pendingProps.children,n),t.child;case 12:return et(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,i=t.memoizedProps,o=a.value,ge(no,r._currentValue),r._currentValue=o,i!==null)if(Dt(i.value,o)){if(i.children===a.children&&!ot.current){t=Qt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){o=i.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Wt(-1,n&-n),s.tag=2;var p=i.updateQueue;if(p!==null){p=p.shared;var m=p.pending;m===null?s.next=s:(s.next=m.next,m.next=s),p.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),bf(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error($(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),bf(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}et(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,br(t,n),a=St(a),r=r(a),t.flags|=1,et(e,t,r,n),t.child;case 14:return r=t.type,a=Rt(r,t.pendingProps),a=Rt(r.type,a),wy(e,t,r,a,n);case 15:return k0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Rt(r,a),Ni(e,t),t.tag=1,ut(r)?(e=!0,Ji(t)):e=!1,br(t,n),e0(t,r,a),Sf(t,r,a,n),Ef(null,t,r,!0,e,n);case 19:return x0(e,t,n);case 22:return E0(e,t,n)}throw Error($(156,t.tag))};function V0(e,t){return g1(e,t)}function WP(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bt(e,t,n,r){return new WP(e,t,n,r)}function Bd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function YP(e){if(typeof e=="function")return Bd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===cd)return 11;if(e===fd)return 14}return 2}function Pn(e,t){var n=e.alternate;return n===null?(n=bt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function qi(e,t,n,r,a,i){var o=2;if(r=e,typeof e=="function")Bd(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case rr:return zn(n.children,a,i,t);case sd:o=8,a|=8;break;case Vc:return e=bt(12,n,t,a|2),e.elementType=Vc,e.lanes=i,e;case Wc:return e=bt(13,n,t,a),e.elementType=Wc,e.lanes=i,e;case Yc:return e=bt(19,n,t,a),e.elementType=Yc,e.lanes=i,e;case t1:return Io(n,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Jg:o=10;break e;case e1:o=9;break e;case cd:o=11;break e;case fd:o=14;break e;case un:o=16,r=null;break e}throw Error($(130,e==null?e:typeof e,""))}return t=bt(o,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function zn(e,t,n,r){return e=bt(7,e,r,t),e.lanes=n,e}function Io(e,t,n,r){return e=bt(22,e,r,t),e.elementType=t1,e.lanes=n,e.stateNode={isHidden:!1},e}function wu(e,t,n){return e=bt(6,e,null,t),e.lanes=n,e}function bu(e,t,n){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function GP(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=tu(0),this.expirationTimes=tu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tu(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Vd(e,t,n,r,a,i,o,l,s){return e=new GP(e,t,n,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=bt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Td(i),e}function XP(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(X0)}catch(e){console.error(e)}}X0(),Yg.exports=yt;var t2=Yg.exports,Dy=t2;$c.createRoot=Dy.createRoot,$c.hydrateRoot=Dy.hydrateRoot;var Q0={exports:{}};/*! +`+i.stack}return{value:e,source:t,stack:a,digest:null}}function gu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Of(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var xP=typeof WeakMap=="function"?WeakMap:Map;function S0(e,t,n){n=Wt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){so||(so=!0,Df=r),Of(e,t)},n}function O0(e,t,n){n=Wt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){Of(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Of(e,t),typeof r!="function"&&(wn===null?wn=new Set([this]):wn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function vy(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new xP;var a=new Set;r.set(t,a)}else a=r.get(t),a===void 0&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=$P.bind(null,e,t,n),t.then(e,e))}function my(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function gy(e,t,n,r,a){return e.mode&1?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Wt(-1,1),t.tag=2,_n(n,t,1))),n.lanes|=1),e)}var AP=tn.ReactCurrentOwner,it=!1;function et(e,t,n,r){t.child=e===null?n0(t,null,n,r):Cr(t,e.child,n,r)}function _y(e,t,n,r,a){n=n.render;var i=t.ref;return br(t,a),r=Dd(e,t,n,r,i,a),n=Md(),e!==null&&!it?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Qt(e,t,a)):(Oe&&n&&Pd(t),t.flags|=1,et(e,t,r,a),t.child)}function wy(e,t,n,r,a){if(e===null){var i=n.type;return typeof i=="function"&&!Bd(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,k0(e,t,i,r,a)):(e=qi(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&a)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Oa,n(o,r)&&e.ref===t.ref)return Qt(e,t,a)}return t.flags|=1,e=Pn(i,r),e.ref=t.ref,e.return=t,t.child=e}function k0(e,t,n,r,a){if(e!==null){var i=e.memoizedProps;if(Oa(i,r)&&e.ref===t.ref)if(it=!1,t.pendingProps=r=i,(e.lanes&a)!==0)e.flags&131072&&(it=!0);else return t.lanes=e.lanes,Qt(e,t,a)}return kf(e,t,n,r,a)}function E0(e,t,n){var r=t.pendingProps,a=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ge(pr,ct),ct|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ge(pr,ct),ct|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ge(pr,ct),ct|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ge(pr,ct),ct|=r;return et(e,t,a,n),t.child}function C0(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function kf(e,t,n,r,a){var i=ut(n)?Un:Ge.current;return i=kr(t,i),br(t,a),n=Dd(e,t,n,r,i,a),r=Md(),e!==null&&!it?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Qt(e,t,a)):(Oe&&r&&Pd(t),t.flags|=1,et(e,t,n,a),t.child)}function by(e,t,n,r,a){if(ut(n)){var i=!0;Ji(t)}else i=!1;if(br(t,a),t.stateNode===null)Ni(e,t),e0(t,n,r),Sf(t,n,r,a),r=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var s=o.context,p=n.contextType;typeof p=="object"&&p!==null?p=St(p):(p=ut(n)?Un:Ge.current,p=kr(t,p));var m=n.getDerivedStateFromProps,w=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function";w||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||s!==p)&&dy(t,o,r,p),ln=!1;var P=t.memoizedState;o.state=P,ao(t,r,o,a),s=t.memoizedState,l!==r||P!==s||ot.current||ln?(typeof m=="function"&&(Pf(t,n,m,r),s=t.memoizedState),(l=ln||fy(t,n,l,r,P,s,p))?(w||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=p,r=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Z1(e,t),l=t.memoizedProps,p=t.type===t.elementType?l:Rt(t.type,l),o.props=p,w=t.pendingProps,P=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=St(s):(s=ut(n)?Un:Ge.current,s=kr(t,s));var S=n.getDerivedStateFromProps;(m=typeof S=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==w||P!==s)&&dy(t,o,r,s),ln=!1,P=t.memoizedState,o.state=P,ao(t,r,o,a);var L=t.memoizedState;l!==w||P!==L||ot.current||ln?(typeof S=="function"&&(Pf(t,n,S,r),L=t.memoizedState),(p=ln||fy(t,n,p,r,P,L,s)||!1)?(m||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,L,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,L,s)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&P===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&P===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=L),o.props=r,o.state=L,o.context=s,r=p):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&P===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&P===e.memoizedState||(t.flags|=1024),r=!1)}return Ef(e,t,n,r,i,a)}function Ef(e,t,n,r,a,i){C0(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return a&&oy(t,n,!1),Qt(e,t,i);r=t.stateNode,AP.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Cr(t,e.child,null,i),t.child=Cr(t,null,l,i)):et(e,t,l,i),t.memoizedState=r.state,a&&oy(t,n,!0),t.child}function R0(e){var t=e.stateNode;t.pendingContext?iy(e,t.pendingContext,t.pendingContext!==t.context):t.context&&iy(e,t.context,!1),xd(e,t.containerInfo)}function Py(e,t,n,r,a){return Er(),Od(a),t.flags|=256,et(e,t,n,r),t.child}var Cf={dehydrated:null,treeContext:null,retryLane:0};function Rf(e){return{baseLanes:e,cachePool:null,transitions:null}}function T0(e,t,n){var r=t.pendingProps,a=ke.current,i=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(a&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),ge(ke,a&1),e===null)return wf(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Io(o,r,0,null),e=zn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Rf(n),t.memoizedState=Cf,e):jd(t,o));if(a=e.memoizedState,a!==null&&(l=a.dehydrated,l!==null))return LP(e,t,o,r,l,a,n);if(i){i=r.fallback,o=t.mode,a=e.child,l=a.sibling;var s={mode:"hidden",children:r.children};return!(o&1)&&t.child!==a?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=Pn(a,s),r.subtreeFlags=a.subtreeFlags&14680064),l!==null?i=Pn(l,i):(i=zn(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?Rf(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=Cf,r}return i=e.child,e=i.sibling,r=Pn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function jd(e,t){return t=Io({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function hi(e,t,n,r){return r!==null&&Od(r),Cr(t,e.child,null,n),e=jd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function LP(e,t,n,r,a,i,o){if(n)return t.flags&256?(t.flags&=-257,r=gu(Error($(422))),hi(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,a=t.mode,r=Io({mode:"visible",children:r.children},a,0,null),i=zn(i,a,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Cr(t,e.child,null,o),t.child.memoizedState=Rf(o),t.memoizedState=Cf,i);if(!(t.mode&1))return hi(e,t,o,null);if(a.data==="$!"){if(r=a.nextSibling&&a.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error($(419)),r=gu(i,r,void 0),hi(e,t,o,r)}if(l=(o&e.childLanes)!==0,it||l){if(r=ze,r!==null){switch(o&-o){case 4:a=2;break;case 16:a=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:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(r.suspendedLanes|o)?0:a,a!==0&&a!==i.retryLane&&(i.retryLane=a,Xt(e,a),It(r,e,a,-1))}return $d(),r=gu(Error($(421))),hi(e,t,o,r)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=BP.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,ft=gn(a.nextSibling),dt=t,Oe=!0,xt=null,e!==null&&(_t[wt++]=Bt,_t[wt++]=Vt,_t[wt++]=Kn,Bt=e.id,Vt=e.overflow,Kn=t),t=jd(t,r.children),t.flags|=4096,t)}function Sy(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),bf(e.return,t,n)}function _u(e,t,n,r,a){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=a)}function x0(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;if(et(e,t,r.children,n),r=ke.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Sy(e,n,t);else if(e.tag===19)Sy(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ge(ke,r),!(t.mode&1))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&io(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),_u(t,!1,a,n,i);break;case"backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&io(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}_u(t,!0,n,null,i);break;case"together":_u(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ni(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Qt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),$n|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error($(153));if(t.child!==null){for(e=t.child,n=Pn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Pn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function IP(e,t,n){switch(t.tag){case 3:R0(t),Er();break;case 5:r0(t);break;case 1:ut(t.type)&&Ji(t);break;case 4:xd(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;ge(no,r._currentValue),r._currentValue=a;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ge(ke,ke.current&1),t.flags|=128,null):n&t.child.childLanes?T0(e,t,n):(ge(ke,ke.current&1),e=Qt(e,t,n),e!==null?e.sibling:null);ge(ke,ke.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return x0(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),ge(ke,ke.current),r)break;return null;case 22:case 23:return t.lanes=0,E0(e,t,n)}return Qt(e,t,n)}var A0,Tf,L0,I0;A0=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Tf=function(){};L0=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,Nn(zt.current);var i=null;switch(n){case"input":a=Xc(e,a),r=Xc(e,r),i=[];break;case"select":a=Ce({},a,{value:void 0}),r=Ce({},r,{value:void 0}),i=[];break;case"textarea":a=Jc(e,a),r=Jc(e,r),i=[];break;default:typeof a.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Qi)}tf(n,r);var o;n=null;for(p in a)if(!r.hasOwnProperty(p)&&a.hasOwnProperty(p)&&a[p]!=null)if(p==="style"){var l=a[p];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else p!=="dangerouslySetInnerHTML"&&p!=="children"&&p!=="suppressContentEditableWarning"&&p!=="suppressHydrationWarning"&&p!=="autoFocus"&&(ma.hasOwnProperty(p)?i||(i=[]):(i=i||[]).push(p,null));for(p in r){var s=r[p];if(l=a!=null?a[p]:void 0,r.hasOwnProperty(p)&&s!==l&&(s!=null||l!=null))if(p==="style")if(l){for(o in l)!l.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in s)s.hasOwnProperty(o)&&l[o]!==s[o]&&(n||(n={}),n[o]=s[o])}else n||(i||(i=[]),i.push(p,n)),n=s;else p==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(i=i||[]).push(p,s)):p==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(p,""+s):p!=="suppressContentEditableWarning"&&p!=="suppressHydrationWarning"&&(ma.hasOwnProperty(p)?(s!=null&&p==="onScroll"&&we("scroll",e),i||l===s||(i=[])):(i=i||[]).push(p,s))}n&&(i=i||[]).push("style",n);var p=i;(t.updateQueue=p)&&(t.flags|=4)}};I0=function(e,t,n,r){n!==r&&(t.flags|=4)};function Br(e,t){if(!Oe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ve(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&14680064,r|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function DP(e,t,n){var r=t.pendingProps;switch(Sd(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ve(t),null;case 1:return ut(t.type)&&Zi(),Ve(t),null;case 3:return r=t.stateNode,Rr(),Pe(ot),Pe(Ge),Ld(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(pi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,xt!==null&&(Ff(xt),xt=null))),Tf(e,t),Ve(t),null;case 5:Ad(t);var a=Nn(Ta.current);if(n=t.type,e!==null&&t.stateNode!=null)L0(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error($(166));return Ve(t),null}if(e=Nn(zt.current),pi(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Ft]=t,r[Ca]=i,e=(t.mode&1)!==0,n){case"dialog":we("cancel",r),we("close",r);break;case"iframe":case"object":case"embed":we("load",r);break;case"video":case"audio":for(a=0;a<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Ft]=t,e[Ca]=r,A0(e,t,!1,!1),t.stateNode=e;e:{switch(o=nf(n,r),n){case"dialog":we("cancel",e),we("close",e),a=r;break;case"iframe":case"object":case"embed":we("load",e),a=r;break;case"video":case"audio":for(a=0;axr&&(t.flags|=128,r=!0,Br(i,!1),t.lanes=4194304)}else{if(!r)if(e=io(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Br(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Oe)return Ve(t),null}else 2*Le()-i.renderingStartTime>xr&&n!==1073741824&&(t.flags|=128,r=!0,Br(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Le(),t.sibling=null,n=ke.current,ge(ke,r?n&1|2:n&1),t):(Ve(t),null);case 22:case 23:return Hd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ct&1073741824&&(Ve(t),t.subtreeFlags&6&&(t.flags|=8192)):Ve(t),null;case 24:return null;case 25:return null}throw Error($(156,t.tag))}function MP(e,t){switch(Sd(t),t.tag){case 1:return ut(t.type)&&Zi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Rr(),Pe(ot),Pe(Ge),Ld(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ad(t),null;case 13:if(Pe(ke),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error($(340));Er()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Pe(ke),null;case 4:return Rr(),null;case 10:return Cd(t.type._context),null;case 22:case 23:return Hd(),null;case 24:return null;default:return null}}var vi=!1,Ye=!1,NP=typeof WeakSet=="function"?WeakSet:Set,G=null;function dr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){xe(e,t,r)}else n.current=null}function xf(e,t,n){try{n()}catch(r){xe(e,t,r)}}var Oy=!1;function FP(e,t){if(pf=Yi,e=F1(),bd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,l=-1,s=-1,p=0,m=0,w=e,P=null;t:for(;;){for(var S;w!==n||a!==0&&w.nodeType!==3||(l=o+a),w!==i||r!==0&&w.nodeType!==3||(s=o+r),w.nodeType===3&&(o+=w.nodeValue.length),(S=w.firstChild)!==null;)P=w,w=S;for(;;){if(w===e)break t;if(P===n&&++p===a&&(l=o),P===i&&++m===r&&(s=o),(S=w.nextSibling)!==null)break;w=P,P=w.parentNode}w=S}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(yf={focusedElem:e,selectionRange:n},Yi=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var L=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(L!==null){var D=L.memoizedProps,A=L.memoizedState,g=t.stateNode,h=g.getSnapshotBeforeUpdate(t.elementType===t.type?D:Rt(t.type,D),A);g.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error($(163))}}catch(R){xe(t,t.return,R)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return L=Oy,Oy=!1,L}function ca(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&xf(t,n,i)}a=a.next}while(a!==r)}}function Ao(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Af(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function D0(e){var t=e.alternate;t!==null&&(e.alternate=null,D0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ft],delete t[Ca],delete t[mf],delete t[_P],delete t[wP])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function M0(e){return e.tag===5||e.tag===3||e.tag===4}function ky(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||M0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Lf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Qi));else if(r!==4&&(e=e.child,e!==null))for(Lf(e,t,n),e=e.sibling;e!==null;)Lf(e,t,n),e=e.sibling}function If(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(If(e,t,n),e=e.sibling;e!==null;)If(e,t,n),e=e.sibling}var Ke=null,Tt=!1;function an(e,t,n){for(n=n.child;n!==null;)N0(e,t,n),n=n.sibling}function N0(e,t,n){if(qt&&typeof qt.onCommitFiberUnmount=="function")try{qt.onCommitFiberUnmount(So,n)}catch{}switch(n.tag){case 5:Ye||dr(n,t);case 6:var r=Ke,a=Tt;Ke=null,an(e,t,n),Ke=r,Tt=a,Ke!==null&&(Tt?(e=Ke,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ke.removeChild(n.stateNode));break;case 18:Ke!==null&&(Tt?(e=Ke,n=n.stateNode,e.nodeType===8?du(e.parentNode,n):e.nodeType===1&&du(e,n),Pa(e)):du(Ke,n.stateNode));break;case 4:r=Ke,a=Tt,Ke=n.stateNode.containerInfo,Tt=!0,an(e,t,n),Ke=r,Tt=a;break;case 0:case 11:case 14:case 15:if(!Ye&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&xf(n,t,o),a=a.next}while(a!==r)}an(e,t,n);break;case 1:if(!Ye&&(dr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){xe(n,t,l)}an(e,t,n);break;case 21:an(e,t,n);break;case 22:n.mode&1?(Ye=(r=Ye)||n.memoizedState!==null,an(e,t,n),Ye=r):an(e,t,n);break;default:an(e,t,n)}}function Ey(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new NP),t.forEach(function(r){var a=VP.bind(null,e,r);n.has(r)||(n.add(r),r.then(a,a))})}}function Ct(e,t){var n=t.deletions;if(n!==null)for(var r=0;ra&&(a=o),r&=~i}if(r=a,r=Le()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*qP(r/1960))-r,10e?16:e,pn===null)var r=!1;else{if(e=pn,pn=null,co=0,pe&6)throw Error($(331));var a=pe;for(pe|=4,G=e.current;G!==null;){var i=G,o=i.child;if(G.flags&16){var l=i.deletions;if(l!==null){for(var s=0;sLe()-Ud?qn(e,0):zd|=n),lt(e,t)}function $0(e,t){t===0&&(e.mode&1?(t=ui,ui<<=1,!(ui&130023424)&&(ui=4194304)):t=1);var n=tt();e=Xt(e,t),e!==null&&(Ha(e,t,n),lt(e,n))}function BP(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$0(e,n)}function VP(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error($(314))}r!==null&&r.delete(t),$0(e,n)}var B0;B0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ot.current)it=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return it=!1,IP(e,t,n);it=!!(e.flags&131072)}else it=!1,Oe&&t.flags&1048576&&Y1(t,to,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ni(e,t),e=t.pendingProps;var a=kr(t,Ge.current);br(t,n),a=Dd(null,t,r,e,a,n);var i=Md();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ut(r)?(i=!0,Ji(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Td(t),a.updater=To,t.stateNode=a,a._reactInternals=t,Sf(t,r,e,n),t=Ef(null,t,r,!0,i,n)):(t.tag=0,Oe&&i&&Pd(t),et(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ni(e,t),e=t.pendingProps,a=r._init,r=a(r._payload),t.type=r,a=t.tag=YP(r),e=Rt(r,e),a){case 0:t=kf(null,t,r,e,n);break e;case 1:t=by(null,t,r,e,n);break e;case 11:t=_y(null,t,r,e,n);break e;case 14:t=wy(null,t,r,Rt(r.type,e),n);break e}throw Error($(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Rt(r,a),kf(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Rt(r,a),by(e,t,r,a,n);case 3:e:{if(R0(t),e===null)throw Error($(387));r=t.pendingProps,i=t.memoizedState,a=i.element,Z1(e,t),ao(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=Tr(Error($(423)),t),t=Py(e,t,r,n,a);break e}else if(r!==a){a=Tr(Error($(424)),t),t=Py(e,t,r,n,a);break e}else for(ft=gn(t.stateNode.containerInfo.firstChild),dt=t,Oe=!0,xt=null,n=n0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Er(),r===a){t=Qt(e,t,n);break e}et(e,t,r,n)}t=t.child}return t;case 5:return r0(t),e===null&&wf(t),r=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,o=a.children,hf(r,a)?o=null:i!==null&&hf(r,i)&&(t.flags|=32),C0(e,t),et(e,t,o,n),t.child;case 6:return e===null&&wf(t),null;case 13:return T0(e,t,n);case 4:return xd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Cr(t,null,r,n):et(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Rt(r,a),_y(e,t,r,a,n);case 7:return et(e,t,t.pendingProps,n),t.child;case 8:return et(e,t,t.pendingProps.children,n),t.child;case 12:return et(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,i=t.memoizedProps,o=a.value,ge(no,r._currentValue),r._currentValue=o,i!==null)if(Dt(i.value,o)){if(i.children===a.children&&!ot.current){t=Qt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){o=i.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Wt(-1,n&-n),s.tag=2;var p=i.updateQueue;if(p!==null){p=p.shared;var m=p.pending;m===null?s.next=s:(s.next=m.next,m.next=s),p.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),bf(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error($(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),bf(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}et(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,br(t,n),a=St(a),r=r(a),t.flags|=1,et(e,t,r,n),t.child;case 14:return r=t.type,a=Rt(r,t.pendingProps),a=Rt(r.type,a),wy(e,t,r,a,n);case 15:return k0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Rt(r,a),Ni(e,t),t.tag=1,ut(r)?(e=!0,Ji(t)):e=!1,br(t,n),e0(t,r,a),Sf(t,r,a,n),Ef(null,t,r,!0,e,n);case 19:return x0(e,t,n);case 22:return E0(e,t,n)}throw Error($(156,t.tag))};function V0(e,t){return g1(e,t)}function WP(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bt(e,t,n,r){return new WP(e,t,n,r)}function Bd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function YP(e){if(typeof e=="function")return Bd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===cd)return 11;if(e===fd)return 14}return 2}function Pn(e,t){var n=e.alternate;return n===null?(n=bt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function qi(e,t,n,r,a,i){var o=2;if(r=e,typeof e=="function")Bd(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case rr:return zn(n.children,a,i,t);case sd:o=8,a|=8;break;case Vc:return e=bt(12,n,t,a|2),e.elementType=Vc,e.lanes=i,e;case Wc:return e=bt(13,n,t,a),e.elementType=Wc,e.lanes=i,e;case Yc:return e=bt(19,n,t,a),e.elementType=Yc,e.lanes=i,e;case t1:return Io(n,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Jg:o=10;break e;case e1:o=9;break e;case cd:o=11;break e;case fd:o=14;break e;case un:o=16,r=null;break e}throw Error($(130,e==null?e:typeof e,""))}return t=bt(o,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function zn(e,t,n,r){return e=bt(7,e,r,t),e.lanes=n,e}function Io(e,t,n,r){return e=bt(22,e,r,t),e.elementType=t1,e.lanes=n,e.stateNode={isHidden:!1},e}function wu(e,t,n){return e=bt(6,e,null,t),e.lanes=n,e}function bu(e,t,n){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function GP(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=tu(0),this.expirationTimes=tu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tu(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Vd(e,t,n,r,a,i,o,l,s){return e=new GP(e,t,n,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=bt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Td(i),e}function XP(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(X0)}catch(e){console.error(e)}}X0(),Yg.exports=yt;var t2=Yg.exports,Dy=t2;$c.createRoot=Dy.createRoot,$c.hydrateRoot=Dy.hydrateRoot;var Q0={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,a=!1,i=void 0;try{for(var o=e[Symbol.iterator](),l;!(r=(l=o.next()).done)&&(n.push(l.value),!(t&&n.length===t));r=!0);}catch(s){a=!0,i=s}finally{try{!r&&o.return!=null&&o.return()}finally{if(a)throw i}}return n}}function k2(e){if(Array.isArray(e))return e}var E2=/[?&#](?:start|t)=([0-9hms]+)/,C2=/[?&#]end=([0-9hms]+)/,jf=/(\d+)(h|m|s)/g,R2=/^\d+$/;function r_(e,t){if(!(e instanceof Array)){var n=e.match(t);if(n){var r=n[1];if(r.match(jf))return T2(r);if(R2.test(r))return parseInt(r)}}}function T2(e){for(var t=0,n=jf.exec(e);n!==null;){var r=n,a=b2(r,3),i=a[1],o=a[2];o==="h"&&(t+=parseInt(i,10)*60*60),o==="m"&&(t+=parseInt(i,10)*60),o==="s"&&(t+=parseInt(i,10)),n=jf.exec(e)}return t}function x2(e){return r_(e,E2)}function A2(e){return r_(e,C2)}function L2(){return Math.random().toString(36).substr(2,5)}function I2(e){return Object.keys(e).map(function(t){return"".concat(t,"=").concat(e[t])}).join("&")}function Pu(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}var er={};function D2(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){return!0},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:_2.default,i=Pu(t);return i&&r(i)?Promise.resolve(i):new Promise(function(o,l){if(er[e]){er[e].push({resolve:o,reject:l});return}er[e]=[{resolve:o,reject:l}];var s=function(w){er[e].forEach(function(P){return P.resolve(w)})};if(n){var p=window[n];window[n]=function(){p&&p(),s(Pu(t))}}a(e,function(m){m?(er[e].forEach(function(w){return w.reject(m)}),er[e]=null):n||s(Pu(t))})})}function M2(e,t){return(0,w2.default)(t.config,e.config)}function N2(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),a=1;a1?r-1:0),i=1;i0&&arguments[0]!==void 0?arguments[0]:document.createElement("video"),t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var te={};Object.defineProperty(te,"__esModule",{value:!0});te.canPlay=te.FLV_EXTENSIONS=te.DASH_EXTENSIONS=te.HLS_EXTENSIONS=te.VIDEO_EXTENSIONS=te.AUDIO_EXTENSIONS=te.MATCH_URL_KALTURA=te.MATCH_URL_VIDYARD=te.MATCH_URL_MIXCLOUD=te.MATCH_URL_DAILYMOTION=te.MATCH_URL_TWITCH_CHANNEL=te.MATCH_URL_TWITCH_VIDEO=te.MATCH_URL_WISTIA=te.MATCH_URL_STREAMABLE=te.MATCH_URL_FACEBOOK_WATCH=te.MATCH_URL_FACEBOOK=te.MATCH_URL_VIMEO=te.MATCH_URL_SOUNDCLOUD=te.MATCH_URL_YOUTUBE=void 0;var jy=me;function U2(e,t){var n;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=K2(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(p){throw p},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,l;return{s:function(){n=e[Symbol.iterator]()},n:function(){var p=n.next();return i=p.done,p},e:function(p){o=!0,l=p},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(o)throw l}}}}function K2(e,t){if(e){if(typeof e=="string")return qy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qy(e,t)}}function qy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nO.length)&&(D=O.length);for(var x=0,T=new Array(D);x"u"||!(Symbol.iterator in Object(O)))){var x=[],T=!0,j=!1,V=void 0;try{for(var B=O[Symbol.iterator](),ee;!(T=(ee=B.next()).done)&&(x.push(ee.value),!(D&&x.length===D));T=!0);}catch(re){j=!0,V=re}finally{try{!T&&B.return!=null&&B.return()}finally{if(j)throw V}}return x}}function I(O){if(Array.isArray(O))return O}function L(O,D){if(!(O instanceof D))throw new TypeError("Cannot call a class as a function")}function A(O,D){for(var x=0;x"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function u(O){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(x){return x.__proto__||Object.getPrototypeOf(x)},u(O)}function f(O,D,x){return D in O?Object.defineProperty(O,D,{value:x,enumerable:!0,configurable:!0,writable:!0}):O[D]=x,O}var c="https://www.youtube.com/iframe_api",y="YT",E="onYouTubeIframeAPIReady",k=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,C=/user\/([a-zA-Z0-9_-]+)\/?/,F=/youtube-nocookie\.com/,q="https://www.youtube-nocookie.com",N=function(O){h(x,O);var D=R(x);function x(){var T;L(this,x);for(var j=arguments.length,V=new Array(j),B=0;B1&&arguments[1]!==void 0?arguments[1]:!1;this.callPlayer("seekTo",j),!V&&!this.props.playing&&this.pause()}},{key:"setVolume",value:function(j){this.callPlayer("setVolume",j*100)}},{key:"setPlaybackRate",value:function(j){this.callPlayer("setPlaybackRate",j)}},{key:"setLoop",value:function(j){this.callPlayer("setLoop",j)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentTime")}},{key:"getSecondsLoaded",value:function(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}},{key:"render",value:function(){var j=this.props.display,V={width:"100%",height:"100%",display:j};return n.default.createElement("div",{style:V},n.default.createElement("div",{ref:this.ref}))}}]),x}(n.Component);e.default=N,f(N,"displayName","YouTube"),f(N,"canPlay",a.canPlay.youtube)}(Su)),Su}var Ou={},Uy;function V2(){return Uy||(Uy=1,function(e){function t(d){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(f){return typeof f}:t=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},t(d)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(ne),r=me,a=te;function i(){if(typeof WeakMap!="function")return null;var d=new WeakMap;return i=function(){return d},d}function o(d){if(d&&d.__esModule)return d;if(d===null||t(d)!=="object"&&typeof d!="function")return{default:d};var u=i();if(u&&u.has(d))return u.get(d);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in d)if(Object.prototype.hasOwnProperty.call(d,y)){var E=c?Object.getOwnPropertyDescriptor(d,y):null;E&&(E.get||E.set)?Object.defineProperty(f,y,E):f[y]=d[y]}return f.default=d,u&&u.set(d,f),f}function l(d,u){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(d);u&&(c=c.filter(function(y){return Object.getOwnPropertyDescriptor(d,y).enumerable})),f.push.apply(f,c)}return f}function s(d){for(var u=1;u"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function h(d){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(f){return f.__proto__||Object.getPrototypeOf(f)},h(d)}function v(d,u,f){return u in d?Object.defineProperty(d,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[u]=f,d}var R="https://w.soundcloud.com/player/api.js",_="SC",b=function(d){P(f,d);var u=I(f);function f(){var c;p(this,f);for(var y=arguments.length,E=new Array(y),k=0;k1&&arguments[1]!==void 0?arguments[1]:!0;this.callPlayer("seekTo",y*1e3),E||this.pause()}},{key:"setVolume",value:function(y){this.callPlayer("setVolume",y*100)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.fractionLoaded*this.duration}},{key:"render",value:function(){var y=this.props.display,E={width:"100%",height:"100%",display:y};return n.default.createElement("iframe",{ref:this.ref,src:"https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),style:E,frameBorder:0,allow:"autoplay"})}}]),f}(n.Component);e.default=b,v(b,"displayName","SoundCloud"),v(b,"canPlay",a.canPlay.soundcloud),v(b,"loopOnEnded",!0)}(Ou)),Ou}var ku={},Ky;function W2(){return Ky||(Ky=1,function(e){function t(u){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(c){return typeof c}:t=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},t(u)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(ne),r=me,a=te;function i(){if(typeof WeakMap!="function")return null;var u=new WeakMap;return i=function(){return u},u}function o(u){if(u&&u.__esModule)return u;if(u===null||t(u)!=="object"&&typeof u!="function")return{default:u};var f=i();if(f&&f.has(u))return f.get(u);var c={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in u)if(Object.prototype.hasOwnProperty.call(u,E)){var k=y?Object.getOwnPropertyDescriptor(u,E):null;k&&(k.get||k.set)?Object.defineProperty(c,E,k):c[E]=u[E]}return c.default=u,f&&f.set(u,c),c}function l(u,f){var c=Object.keys(u);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(u);f&&(y=y.filter(function(E){return Object.getOwnPropertyDescriptor(u,E).enumerable})),c.push.apply(c,y)}return c}function s(u){for(var f=1;f"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function h(u){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},h(u)}function v(u,f,c){return f in u?Object.defineProperty(u,f,{value:c,enumerable:!0,configurable:!0,writable:!0}):u[f]=c,u}var R="https://player.vimeo.com/api/player.js",_="Vimeo",b=function(f){return f.replace("/manage/videos","")},d=function(u){P(c,u);var f=I(c);function c(){var y;p(this,c);for(var E=arguments.length,k=new Array(E),C=0;C1&&arguments[1]!==void 0?arguments[1]:!0;this.callPlayer("setCurrentTime",E),k||this.pause()}},{key:"setVolume",value:function(E){this.callPlayer("setVolume",E)}},{key:"setMuted",value:function(E){this.callPlayer("setMuted",E)}},{key:"setLoop",value:function(E){this.callPlayer("setLoop",E)}},{key:"setPlaybackRate",value:function(E){this.callPlayer("setPlaybackRate",E)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){var E=this.props.display,k={width:"100%",height:"100%",overflow:"hidden",display:E};return n.default.createElement("div",{key:this.props.url,ref:this.ref,style:k})}}]),c}(n.Component);e.default=d,v(d,"displayName","Vimeo"),v(d,"canPlay",a.canPlay.vimeo),v(d,"forceLoad",!0)}(ku)),ku}var Eu={},Hy;function Y2(){return Hy||(Hy=1,function(e){function t(u){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(c){return typeof c}:t=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},t(u)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(ne),r=me,a=te;function i(){if(typeof WeakMap!="function")return null;var u=new WeakMap;return i=function(){return u},u}function o(u){if(u&&u.__esModule)return u;if(u===null||t(u)!=="object"&&typeof u!="function")return{default:u};var f=i();if(f&&f.has(u))return f.get(u);var c={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in u)if(Object.prototype.hasOwnProperty.call(u,E)){var k=y?Object.getOwnPropertyDescriptor(u,E):null;k&&(k.get||k.set)?Object.defineProperty(c,E,k):c[E]=u[E]}return c.default=u,f&&f.set(u,c),c}function l(){return l=Object.assign||function(u){for(var f=1;f"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function g(u){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},g(u)}function h(u,f,c){return f in u?Object.defineProperty(u,f,{value:c,enumerable:!0,configurable:!0,writable:!0}):u[f]=c,u}var v="https://connect.facebook.net/en_US/sdk.js",R="FB",_="fbAsyncInit",b="facebook-player-",d=function(u){w(c,u);var f=S(c);function c(){var y;s(this,c);for(var E=arguments.length,k=new Array(E),C=0;C1&&arguments[1]!==void 0?arguments[1]:!0;this.callPlayer("seek",E),k||this.pause()}},{key:"setVolume",value:function(E){this.callPlayer("setVolume",E)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentPosition")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var E=this.props.config.attributes,k={width:"100%",height:"100%"};return n.default.createElement("div",l({style:k,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))}}]),c}(n.Component);e.default=d,h(d,"displayName","Facebook"),h(d,"canPlay",a.canPlay.facebook),h(d,"loopOnEnded",!0)}(Eu)),Eu}var Cu={},$y;function G2(){return $y||($y=1,function(e){function t(_){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(d){return typeof d}:t=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},t(_)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(ne),r=me,a=te;function i(){if(typeof WeakMap!="function")return null;var _=new WeakMap;return i=function(){return _},_}function o(_){if(_&&_.__esModule)return _;if(_===null||t(_)!=="object"&&typeof _!="function")return{default:_};var b=i();if(b&&b.has(_))return b.get(_);var d={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in _)if(Object.prototype.hasOwnProperty.call(_,f)){var c=u?Object.getOwnPropertyDescriptor(_,f):null;c&&(c.get||c.set)?Object.defineProperty(d,f,c):d[f]=_[f]}return d.default=_,b&&b.set(_,d),d}function l(_,b){if(!(_ instanceof b))throw new TypeError("Cannot call a class as a function")}function s(_,b){for(var d=0;d"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function A(_){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)},A(_)}function g(_,b,d){return b in _?Object.defineProperty(_,b,{value:d,enumerable:!0,configurable:!0,writable:!0}):_[b]=d,_}var h="https://cdn.embed.ly/player-0.1.0.min.js",v="playerjs",R=function(_){m(d,_);var b=P(d);function d(){var u;l(this,d);for(var f=arguments.length,c=new Array(f),y=0;y1&&arguments[1]!==void 0?arguments[1]:!0;this.callPlayer("setCurrentTime",f),c||this.pause()}},{key:"setVolume",value:function(f){this.callPlayer("setVolume",f*100)}},{key:"setLoop",value:function(f){this.callPlayer("setLoop",f)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){var f=this.props.url.match(a.MATCH_URL_STREAMABLE)[1],c={width:"100%",height:"100%"};return n.default.createElement("iframe",{ref:this.ref,src:"https://streamable.com/o/".concat(f),frameBorder:"0",scrolling:"no",style:c,allow:"encrypted-media; autoplay; fullscreen;"})}}]),d}(n.Component);e.default=R,g(R,"displayName","Streamable"),g(R,"canPlay",a.canPlay.streamable)}(Cu)),Cu}var Ru={},By;function X2(){return By||(By=1,function(e){function t(u){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(c){return typeof c}:t=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},t(u)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(ne),r=me,a=te;function i(){if(typeof WeakMap!="function")return null;var u=new WeakMap;return i=function(){return u},u}function o(u){if(u&&u.__esModule)return u;if(u===null||t(u)!=="object"&&typeof u!="function")return{default:u};var f=i();if(f&&f.has(u))return f.get(u);var c={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in u)if(Object.prototype.hasOwnProperty.call(u,E)){var k=y?Object.getOwnPropertyDescriptor(u,E):null;k&&(k.get||k.set)?Object.defineProperty(c,E,k):c[E]=u[E]}return c.default=u,f&&f.set(u,c),c}function l(u,f){var c=Object.keys(u);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(u);f&&(y=y.filter(function(E){return Object.getOwnPropertyDescriptor(u,E).enumerable})),c.push.apply(c,y)}return c}function s(u){for(var f=1;f"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function h(u){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},h(u)}function v(u,f,c){return f in u?Object.defineProperty(u,f,{value:c,enumerable:!0,configurable:!0,writable:!0}):u[f]=c,u}var R="https://fast.wistia.com/assets/external/E-v1.js",_="Wistia",b="wistia-player-",d=function(u){P(c,u);var f=I(c);function c(){var y;p(this,c);for(var E=arguments.length,k=new Array(E),C=0;C1&&arguments[1]!==void 0?arguments[1]:!0;this.callPlayer("time",E),k||this.pause()}},{key:"setVolume",value:function(E){this.callPlayer("volume",E)}},{key:"setPlaybackRate",value:function(E){this.callPlayer("playbackRate",E)}},{key:"getDuration",value:function(){return this.callPlayer("duration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("time")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var E=this.props.url,k=E&&E.match(a.MATCH_URL_WISTIA)[1],C="wistia_embed wistia_async_".concat(k),F={width:"100%",height:"100%"};return n.default.createElement("div",{id:this.playerID,key:k,className:C,style:F})}}]),c}(n.Component);e.default=d,v(d,"displayName","Wistia"),v(d,"canPlay",a.canPlay.wistia),v(d,"loopOnEnded",!0)}(Ru)),Ru}var Tu={},Vy;function Q2(){return Vy||(Vy=1,function(e){function t(u){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(c){return typeof c}:t=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},t(u)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(ne),r=me,a=te;function i(){if(typeof WeakMap!="function")return null;var u=new WeakMap;return i=function(){return u},u}function o(u){if(u&&u.__esModule)return u;if(u===null||t(u)!=="object"&&typeof u!="function")return{default:u};var f=i();if(f&&f.has(u))return f.get(u);var c={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in u)if(Object.prototype.hasOwnProperty.call(u,E)){var k=y?Object.getOwnPropertyDescriptor(u,E):null;k&&(k.get||k.set)?Object.defineProperty(c,E,k):c[E]=u[E]}return c.default=u,f&&f.set(u,c),c}function l(u,f){var c=Object.keys(u);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(u);f&&(y=y.filter(function(E){return Object.getOwnPropertyDescriptor(u,E).enumerable})),c.push.apply(c,y)}return c}function s(u){for(var f=1;f"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function h(u){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},h(u)}function v(u,f,c){return f in u?Object.defineProperty(u,f,{value:c,enumerable:!0,configurable:!0,writable:!0}):u[f]=c,u}var R="https://player.twitch.tv/js/embed/v1.js",_="Twitch",b="twitch-player-",d=function(u){P(c,u);var f=I(c);function c(){var y;p(this,c);for(var E=arguments.length,k=new Array(E),C=0;C1&&arguments[1]!==void 0?arguments[1]:!0;this.callPlayer("seek",E),k||this.pause()}},{key:"setVolume",value:function(E){this.callPlayer("setVolume",E)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentTime")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var E={width:"100%",height:"100%"};return n.default.createElement("div",{style:E,id:this.playerID})}}]),c}(n.Component);e.default=d,v(d,"displayName","Twitch"),v(d,"canPlay",a.canPlay.twitch),v(d,"loopOnEnded",!0)}(Tu)),Tu}var xu={},Wy;function Z2(){return Wy||(Wy=1,function(e){function t(C){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(q){return typeof q}:t=function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},t(C)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(ne),r=me,a=te;function i(){if(typeof WeakMap!="function")return null;var C=new WeakMap;return i=function(){return C},C}function o(C){if(C&&C.__esModule)return C;if(C===null||t(C)!=="object"&&typeof C!="function")return{default:C};var F=i();if(F&&F.has(C))return F.get(C);var q={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in C)if(Object.prototype.hasOwnProperty.call(C,O)){var D=N?Object.getOwnPropertyDescriptor(C,O):null;D&&(D.get||D.set)?Object.defineProperty(q,O,D):q[O]=C[O]}return q.default=C,F&&F.set(C,q),q}function l(C,F){var q=Object.keys(C);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(C);F&&(N=N.filter(function(O){return Object.getOwnPropertyDescriptor(C,O).enumerable})),q.push.apply(q,N)}return q}function s(C){for(var F=1;FC.length)&&(F=C.length);for(var q=0,N=new Array(F);q"u"||!(Symbol.iterator in Object(C)))){var q=[],N=!0,O=!1,D=void 0;try{for(var x=C[Symbol.iterator](),T;!(N=(T=x.next()).done)&&(q.push(T.value),!(F&&q.length===F));N=!0);}catch(j){O=!0,D=j}finally{try{!N&&x.return!=null&&x.return()}finally{if(O)throw D}}return q}}function I(C){if(Array.isArray(C))return C}function L(C,F){if(!(C instanceof F))throw new TypeError("Cannot call a class as a function")}function A(C,F){for(var q=0;q"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function u(C){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(q){return q.__proto__||Object.getPrototypeOf(q)},u(C)}function f(C,F,q){return F in C?Object.defineProperty(C,F,{value:q,enumerable:!0,configurable:!0,writable:!0}):C[F]=q,C}var c="https://api.dmcdn.net/all.js",y="DM",E="dmAsyncInit",k=function(C){h(q,C);var F=R(q);function q(){var N;L(this,q);for(var O=arguments.length,D=new Array(O),x=0;x1&&arguments[1]!==void 0?arguments[1]:!0;this.callPlayer("seek",O),D||this.pause()}},{key:"setVolume",value:function(O){this.callPlayer("setVolume",O)}},{key:"getDuration",value:function(){return this.player.duration||null}},{key:"getCurrentTime",value:function(){return this.player.currentTime}},{key:"getSecondsLoaded",value:function(){return this.player.bufferedTime}},{key:"render",value:function(){var O=this.props.display,D={width:"100%",height:"100%",display:O};return n.default.createElement("div",{style:D},n.default.createElement("div",{ref:this.ref}))}}]),q}(n.Component);e.default=k,f(k,"displayName","DailyMotion"),f(k,"canPlay",a.canPlay.dailymotion),f(k,"loopOnEnded",!0)}(xu)),xu}var Au={},Yy;function J2(){return Yy||(Yy=1,function(e){function t(d){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(f){return typeof f}:t=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},t(d)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(ne),r=me,a=te;function i(){if(typeof WeakMap!="function")return null;var d=new WeakMap;return i=function(){return d},d}function o(d){if(d&&d.__esModule)return d;if(d===null||t(d)!=="object"&&typeof d!="function")return{default:d};var u=i();if(u&&u.has(d))return u.get(d);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in d)if(Object.prototype.hasOwnProperty.call(d,y)){var E=c?Object.getOwnPropertyDescriptor(d,y):null;E&&(E.get||E.set)?Object.defineProperty(f,y,E):f[y]=d[y]}return f.default=d,u&&u.set(d,f),f}function l(d,u){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(d);u&&(c=c.filter(function(y){return Object.getOwnPropertyDescriptor(d,y).enumerable})),f.push.apply(f,c)}return f}function s(d){for(var u=1;u"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function h(d){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(f){return f.__proto__||Object.getPrototypeOf(f)},h(d)}function v(d,u,f){return u in d?Object.defineProperty(d,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[u]=f,d}var R="https://widget.mixcloud.com/media/js/widgetApi.js",_="Mixcloud",b=function(d){P(f,d);var u=I(f);function f(){var c;p(this,f);for(var y=arguments.length,E=new Array(y),k=0;k1&&arguments[1]!==void 0?arguments[1]:!0;this.callPlayer("seek",y),E||this.pause()}},{key:"setVolume",value:function(y){}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var y=this.props,E=y.url,k=y.config,C=E.match(a.MATCH_URL_MIXCLOUD)[1],F={width:"100%",height:"100%"},q=(0,r.queryString)(s(s({},k.options),{},{feed:"/".concat(C,"/")}));return n.default.createElement("iframe",{key:C,ref:this.ref,style:F,src:"https://www.mixcloud.com/widget/iframe/?".concat(q),frameBorder:"0",allow:"autoplay"})}}]),f}(n.Component);e.default=b,v(b,"displayName","Mixcloud"),v(b,"canPlay",a.canPlay.mixcloud),v(b,"loopOnEnded",!0)}(Au)),Au}var Lu={},Gy;function eS(){return Gy||(Gy=1,function(e){function t(u){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(c){return typeof c}:t=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},t(u)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(ne),r=me,a=te;function i(){if(typeof WeakMap!="function")return null;var u=new WeakMap;return i=function(){return u},u}function o(u){if(u&&u.__esModule)return u;if(u===null||t(u)!=="object"&&typeof u!="function")return{default:u};var f=i();if(f&&f.has(u))return f.get(u);var c={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in u)if(Object.prototype.hasOwnProperty.call(u,E)){var k=y?Object.getOwnPropertyDescriptor(u,E):null;k&&(k.get||k.set)?Object.defineProperty(c,E,k):c[E]=u[E]}return c.default=u,f&&f.set(u,c),c}function l(u,f){var c=Object.keys(u);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(u);f&&(y=y.filter(function(E){return Object.getOwnPropertyDescriptor(u,E).enumerable})),c.push.apply(c,y)}return c}function s(u){for(var f=1;f"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function h(u){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},h(u)}function v(u,f,c){return f in u?Object.defineProperty(u,f,{value:c,enumerable:!0,configurable:!0,writable:!0}):u[f]=c,u}var R="https://play.vidyard.com/embed/v4.js",_="VidyardV4",b="onVidyardAPI",d=function(u){P(c,u);var f=I(c);function c(){var y;p(this,c);for(var E=arguments.length,k=new Array(E),C=0;C1&&arguments[1]!==void 0?arguments[1]:!0;this.callPlayer("seek",E),k||this.pause()}},{key:"setVolume",value:function(E){this.callPlayer("setVolume",E)}},{key:"setPlaybackRate",value:function(E){this.callPlayer("setPlaybackSpeed",E)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.callPlayer("currentTime")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var E=this.props.display,k={width:"100%",height:"100%",display:E};return n.default.createElement("div",{style:k},n.default.createElement("div",{ref:this.ref}))}}]),c}(n.Component);e.default=d,v(d,"displayName","Vidyard"),v(d,"canPlay",a.canPlay.vidyard)}(Lu)),Lu}var Iu={},Xy;function tS(){return Xy||(Xy=1,function(e){function t(_){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(d){return typeof d}:t=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},t(_)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(ne),r=me,a=te;function i(){if(typeof WeakMap!="function")return null;var _=new WeakMap;return i=function(){return _},_}function o(_){if(_&&_.__esModule)return _;if(_===null||t(_)!=="object"&&typeof _!="function")return{default:_};var b=i();if(b&&b.has(_))return b.get(_);var d={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in _)if(Object.prototype.hasOwnProperty.call(_,f)){var c=u?Object.getOwnPropertyDescriptor(_,f):null;c&&(c.get||c.set)?Object.defineProperty(d,f,c):d[f]=_[f]}return d.default=_,b&&b.set(_,d),d}function l(_,b){if(!(_ instanceof b))throw new TypeError("Cannot call a class as a function")}function s(_,b){for(var d=0;d"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function A(_){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)},A(_)}function g(_,b,d){return b in _?Object.defineProperty(_,b,{value:d,enumerable:!0,configurable:!0,writable:!0}):_[b]=d,_}var h="https://cdn.embed.ly/player-0.1.0.min.js",v="playerjs",R=function(_){m(d,_);var b=P(d);function d(){var u;l(this,d);for(var f=arguments.length,c=new Array(f),y=0;y1&&arguments[1]!==void 0?arguments[1]:!0;this.callPlayer("setCurrentTime",f),c||this.pause()}},{key:"setVolume",value:function(f){this.callPlayer("setVolume",f)}},{key:"setLoop",value:function(f){this.callPlayer("setLoop",f)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){var f={width:"100%",height:"100%"};return n.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:f,allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}]),d}(n.Component);e.default=R,g(R,"displayName","Kaltura"),g(R,"canPlay",a.canPlay.kaltura)}(Iu)),Iu}var Du={},Qy;function nS(){return Qy||(Qy=1,function(e){function t(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(D){return typeof D}:t=function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},t(N)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(ne),r=me,a=te;function i(){if(typeof WeakMap!="function")return null;var N=new WeakMap;return i=function(){return N},N}function o(N){if(N&&N.__esModule)return N;if(N===null||t(N)!=="object"&&typeof N!="function")return{default:N};var O=i();if(O&&O.has(N))return O.get(N);var D={},x=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in N)if(Object.prototype.hasOwnProperty.call(N,T)){var j=x?Object.getOwnPropertyDescriptor(N,T):null;j&&(j.get||j.set)?Object.defineProperty(D,T,j):D[T]=N[T]}return D.default=N,O&&O.set(N,D),D}function l(){return l=Object.assign||function(N){for(var O=1;O"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function g(N){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(D){return D.__proto__||Object.getPrototypeOf(D)},g(N)}function h(N,O,D){return O in N?Object.defineProperty(N,O,{value:D,enumerable:!0,configurable:!0,writable:!0}):N[O]=D,N}var v=typeof navigator<"u",R=v&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,_=v&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||R)&&!window.MSStream,b=v&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,d="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",u="Hls",f="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",c="dashjs",y="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",E="flvjs",k=/www\.dropbox\.com\/.+/,C=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,F="https://videodelivery.net/{id}/manifest/video.m3u8",q=function(N){w(D,N);var O=S(D);function D(){var x;s(this,D);for(var T=arguments.length,j=new Array(T),V=0;V1&&arguments[1]!==void 0?arguments[1]:!0;this.player.currentTime=T,j||this.pause()}},{key:"setVolume",value:function(T){this.player.volume=T}},{key:"enablePIP",value:function(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,r.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}},{key:"disablePIP",value:function(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,r.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}},{key:"setPlaybackRate",value:function(T){try{this.player.playbackRate=T}catch(j){this.props.onError(j)}}},{key:"getDuration",value:function(){if(!this.player)return null;var T=this.player,j=T.duration,V=T.seekable;return j===1/0&&V.length>0?V.end(V.length-1):j}},{key:"getCurrentTime",value:function(){return this.player?this.player.currentTime:null}},{key:"getSecondsLoaded",value:function(){if(!this.player)return null;var T=this.player.buffered;if(T.length===0)return 0;var j=T.end(T.length-1),V=this.getDuration();return j>V?V:j}},{key:"getSource",value:function(T){var j=this.shouldUseHLS(T),V=this.shouldUseDASH(T),B=this.shouldUseFLV(T);if(!(T instanceof Array||(0,r.isMediaStream)(T)||j||V||B))return k.test(T)?T.replace("www.dropbox.com","dl.dropboxusercontent.com"):T}},{key:"render",value:function(){var T=this.props,j=T.url,V=T.playing,B=T.loop,ee=T.controls,re=T.muted,oe=T.config,X=T.width,se=T.height,K=this.shouldUseAudio(this.props),M=K?"audio":"video",z={width:X==="auto"?X:"100%",height:se==="auto"?se:"100%"};return n.default.createElement(M,l({ref:this.ref,src:this.getSource(j),style:z,preload:"auto",autoPlay:V||void 0,controls:ee,muted:re,loop:B},oe.attributes),j instanceof Array&&j.map(this.renderSourceElement),oe.tracks.map(this.renderTrack))}}]),D}(n.Component);e.default=q,h(q,"displayName","FilePlayer"),h(q,"canPlay",a.canPlay.file)}(Du)),Du}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=ne,n=me,r=te;function a(s){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?a=function(m){return typeof m}:a=function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},a(s)}function i(){if(typeof WeakMap!="function")return null;var s=new WeakMap;return i=function(){return s},s}function o(s){if(s&&s.__esModule)return s;if(s===null||a(s)!=="object"&&typeof s!="function")return{default:s};var p=i();if(p&&p.has(s))return p.get(s);var m={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var P in s)if(Object.prototype.hasOwnProperty.call(s,P)){var S=w?Object.getOwnPropertyDescriptor(s,P):null;S&&(S.get||S.set)?Object.defineProperty(m,P,S):m[P]=s[P]}return m.default=s,p&&p.set(s,m),m}var l=[{key:"youtube",name:"YouTube",canPlay:r.canPlay.youtube,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return o(B2())})})},{key:"soundcloud",name:"SoundCloud",canPlay:r.canPlay.soundcloud,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return o(V2())})})},{key:"vimeo",name:"Vimeo",canPlay:r.canPlay.vimeo,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return o(W2())})})},{key:"facebook",name:"Facebook",canPlay:r.canPlay.facebook,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return o(Y2())})})},{key:"streamable",name:"Streamable",canPlay:r.canPlay.streamable,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return o(G2())})})},{key:"wistia",name:"Wistia",canPlay:r.canPlay.wistia,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return o(X2())})})},{key:"twitch",name:"Twitch",canPlay:r.canPlay.twitch,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return o(Q2())})})},{key:"dailymotion",name:"DailyMotion",canPlay:r.canPlay.dailymotion,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return o(Z2())})})},{key:"mixcloud",name:"Mixcloud",canPlay:r.canPlay.mixcloud,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return o(J2())})})},{key:"vidyard",name:"Vidyard",canPlay:r.canPlay.vidyard,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return o(eS())})})},{key:"kaltura",name:"Kaltura",canPlay:r.canPlay.kaltura,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return o(tS())})})},{key:"file",name:"FilePlayer",canPlay:r.canPlay.file,canEnablePIP:function(p){return r.canPlay.file(p)&&(document.pictureInPictureEnabled||(0,n.supportsWebKitPresentationMode)())&&!r.AUDIO_EXTENSIONS.test(p)},lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return o(nS())})})}];e.default=l})(J0);var jo={},Zy=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function rS(e,t){return!!(e===t||Zy(e)&&Zy(t))}function aS(e,t){if(e.length!==t.length)return!1;for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function v(d){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(f){return f.__proto__||Object.getPrototypeOf(f)},v(d)}function R(d,u,f){return u in d?Object.defineProperty(d,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[u]=f,d}var _=5e3,b=function(d){S(f,d);var u=L(f);function f(){var c;m(this,f);for(var y=arguments.length,E=new Array(y),k=0;k0&&y<1;if(F){var q=this.player.getDuration();if(!q){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(q*y,k);return}this.player.seekTo(y,k)}},{key:"render",value:function(){var y=this.props.activePlayer;return y?n.default.createElement(y,p({},this.props,{onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError})):null}}]),f}(n.Component);e.default=b,R(b,"displayName","Player"),R(b,"propTypes",a.propTypes),R(b,"defaultProps",a.defaultProps)})(S_);var Nu={},eh;function _S(){return eh||(eh=1,function(e){function t(_){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(d){return typeof d}:t=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},t(_)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(ne);function r(){if(typeof WeakMap!="function")return null;var _=new WeakMap;return r=function(){return _},_}function a(_){if(_&&_.__esModule)return _;if(_===null||t(_)!=="object"&&typeof _!="function")return{default:_};var b=r();if(b&&b.has(_))return b.get(_);var d={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in _)if(Object.prototype.hasOwnProperty.call(_,f)){var c=u?Object.getOwnPropertyDescriptor(_,f):null;c&&(c.get||c.set)?Object.defineProperty(d,f,c):d[f]=_[f]}return d.default=_,b&&b.set(_,d),d}function i(_,b){var d=Object.keys(_);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(_);b&&(u=u.filter(function(f){return Object.getOwnPropertyDescriptor(_,f).enumerable})),d.push.apply(d,u)}return d}function o(_){for(var b=1;b"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function A(_){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)},A(_)}function g(_,b,d){return b in _?Object.defineProperty(_,b,{value:d,enumerable:!0,configurable:!0,writable:!0}):_[b]=d,_}var h="64px",v={},R=function(_){m(d,_);var b=P(d);function d(){var u;l(this,d);for(var f=arguments.length,c=new Array(f),y=0;ye.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function ho(e){return ho=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ho(e)}function Te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O_(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return O_=function(){return e},e}function k_(e){if(e&&e.__esModule)return e;if(e===null||pa(e)!=="object"&&typeof e!="function")return{default:e};var t=O_();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i=r?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}var IS=(0,In.lazy)(function(){return Promise.resolve().then(function(){return k_(_S())})}),DS=typeof window<"u"&&window.document,MS=typeof fn<"u"&&fn.window&&fn.window.document,NS=Object.keys(ea.propTypes),FS=DS||MS?In.Suspense:function(){return null},Yr=[],jS=function(t,n){var r,a;return a=r=function(i){TS(l,i);var o=xS(l);function l(){var s;CS(this,l);for(var p=arguments.length,m=new Array(p),w=0;w0&&arguments[0]!==void 0?arguments[0]:"player";return s.player?s.player.getInternalPlayer(P):null}),Te(We(s),"seekTo",function(P,S,I){if(!s.player)return null;s.player.seekTo(P,S,I)}),Te(We(s),"handleReady",function(){s.props.onReady(We(s))}),Te(We(s),"getActivePlayer",(0,Fu.default)(function(P){for(var S=0,I=[].concat(Yr,ju(t));S=s||C<0||h&&F>=P}function u(){var k=t();if(d(k))return f(k);I=setTimeout(u,b(k))}function f(k){return I=void 0,v&&m?R(k):(m=w=void 0,S)}function c(){I!==void 0&&clearTimeout(I),A=0,m=L=w=I=void 0}function y(){return I===void 0?S:f(t())}function E(){var k=t(),C=d(k);if(m=arguments,w=this,L=k,C){if(I===void 0)return _(L);if(h)return clearTimeout(I),I=setTimeout(u,s),R(L)}return I===void 0&&(I=setTimeout(u,s)),S}return E.cancel=c,E.flush=y,E}return Zu=o,Zu}var Ju,_h;function T_(){if(_h)return Ju;_h=1;var e=Ya(),t=Qn(),n="[object AsyncFunction]",r="[object Function]",a="[object GeneratorFunction]",i="[object Proxy]";function o(l){if(!t(l))return!1;var s=e(l);return s==r||s==a||s==n||s==i}return Ju=o,Ju}var el,wh;function VS(){if(wh)return el;wh=1;var e=Ut(),t=e["__core-js_shared__"];return el=t,el}var tl,bh;function WS(){if(bh)return tl;bh=1;var e=VS(),t=function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function n(r){return!!t&&t in r}return tl=n,tl}var nl,Ph;function x_(){if(Ph)return nl;Ph=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return nl=n,nl}var rl,Sh;function YS(){if(Sh)return rl;Sh=1;var e=T_(),t=WS(),n=Qn(),r=x_(),a=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,o=Function.prototype,l=Object.prototype,s=o.toString,p=l.hasOwnProperty,m=RegExp("^"+s.call(p).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function w(P){if(!n(P)||t(P))return!1;var S=e(P)?m:i;return S.test(r(P))}return rl=w,rl}var al,Oh;function GS(){if(Oh)return al;Oh=1;function e(t,n){return t==null?void 0:t[n]}return al=e,al}var il,kh;function Zn(){if(kh)return il;kh=1;var e=YS(),t=GS();function n(r,a){var i=t(r,a);return e(i)?i:void 0}return il=n,il}var ol,Eh;function zo(){if(Eh)return ol;Eh=1;var e=Zn(),t=e(Object,"create");return ol=t,ol}var ul,Ch;function XS(){if(Ch)return ul;Ch=1;var e=zo();function t(){this.__data__=e?e(null):{},this.size=0}return ul=t,ul}var ll,Rh;function QS(){if(Rh)return ll;Rh=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return ll=e,ll}var sl,Th;function ZS(){if(Th)return sl;Th=1;var e=zo(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function a(i){var o=this.__data__;if(e){var l=o[i];return l===t?void 0:l}return r.call(o,i)?o[i]:void 0}return sl=a,sl}var cl,xh;function JS(){if(xh)return cl;xh=1;var e=zo(),t=Object.prototype,n=t.hasOwnProperty;function r(a){var i=this.__data__;return e?i[a]!==void 0:n.call(i,a)}return cl=r,cl}var fl,Ah;function eO(){if(Ah)return fl;Ah=1;var e=zo(),t="__lodash_hash_undefined__";function n(r,a){var i=this.__data__;return this.size+=this.has(r)?0:1,i[r]=e&&a===void 0?t:a,this}return fl=n,fl}var dl,Lh;function tO(){if(Lh)return dl;Lh=1;var e=XS(),t=QS(),n=ZS(),r=JS(),a=eO();function i(o){var l=-1,s=o==null?0:o.length;for(this.clear();++l-1}return gl=t,gl}var _l,qh;function oO(){if(qh)return _l;qh=1;var e=Uo();function t(n,r){var a=this.__data__,i=e(a,n);return i<0?(++this.size,a.push([n,r])):a[i][1]=r,this}return _l=t,_l}var wl,zh;function Ko(){if(zh)return wl;zh=1;var e=nO(),t=rO(),n=aO(),r=iO(),a=oO();function i(o){var l=-1,s=o==null?0:o.length;for(this.clear();++l-1}return Fl=t,Fl}var jl,av;function wO(){if(av)return jl;av=1;function e(t,n,r){for(var a=-1,i=t==null?0:t.length;++a=o&&(S=i,I=!1,p=new e(p));e:for(;++P0&&i(m)?a>1?n(m,a-1,i,o,l):e(l,m):o||(l[l.length]=m)}return l}return Yl=n,Yl}var Gl,hv;function Xa(){if(hv)return Gl;hv=1;function e(t){return t}return Gl=e,Gl}var Xl,vv;function OO(){if(vv)return Xl;vv=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return Xl=e,Xl}var Ql,mv;function kO(){if(mv)return Ql;mv=1;var e=OO(),t=Math.max;function n(r,a,i){return a=t(a===void 0?r.length-1:a,0),function(){for(var o=arguments,l=-1,s=t(o.length-a,0),p=Array(s);++l0){if(++i>=e)return arguments[0]}else i=0;return a.apply(void 0,arguments)}}return ts=r,ts}var ns,Pv;function xO(){if(Pv)return ns;Pv=1;var e=RO(),t=TO(),n=t(e);return ns=n,ns}var rs,Sv;function M_(){if(Sv)return rs;Sv=1;var e=Xa(),t=kO(),n=xO();function r(a,i){return n(t(a,i,e),a+"")}return rs=r,rs}var as,Ov;function ip(){if(Ov)return as;Ov=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return as=t,as}var is,kv;function Qa(){if(kv)return is;kv=1;var e=T_(),t=ip();function n(r){return r!=null&&t(r.length)&&!e(r)}return is=n,is}var os,Ev;function AO(){if(Ev)return os;Ev=1;var e=Qa(),t=Fr();function n(r){return t(r)&&e(r)}return os=n,os}var us,Cv;function LO(){if(Cv)return us;Cv=1;var e=bO(),t=D_(),n=M_(),r=AO(),a=n(function(i,o){return r(i)?e(i,t(o,1,r,!0)):[]});return us=a,us}var ls,Rv;function N_(){if(Rv)return ls;Rv=1;function e(t,n){for(var r=-1,a=t==null?0:t.length,i=0,o=[];++r-1&&r%1==0&&rS))return!1;var L=w.get(o),A=w.get(l);if(L&&A)return L==l&&A==o;var g=-1,h=!0,v=s&a?new e:void 0;for(w.set(o,l),w.set(l,o);++gr||l&&s&&m&&!p&&!w||i&&s&&m||!a&&m||!o)return 1;if(!i&&!l&&!w&&n=p)return m;var w=a[i];return m*(w=="desc"?-1:1)}}return n.index-r.index}return Lc=t,Lc}var Ic,tg;function Uk(){if(tg)return Ic;tg=1;var e=np(),t=fp(),n=dp(),r=Fk(),a=jk(),i=rp(),o=zk(),l=Xa(),s=kt();function p(m,w,P){w.length?w=e(w,function(L){return s(L)?function(A){return t(A,L.length===1?L[0]:L)}:L}):w=[l];var S=-1;w=e(w,i(n));var I=r(m,function(L,A,g){var h=e(w,function(v){return v(L)});return{criteria:h,index:++S,value:L}});return a(I,function(L,A){return o(L,A,P)})}return Ic=p,Ic}var Dc,ng;function Kk(){if(ng)return Dc;ng=1;var e=Jd(),t=Qa(),n=op(),r=Qn();function a(i,o,l){if(!r(l))return!1;var s=typeof o;return(s=="number"?t(l)&&n(o,l.length):s=="string"&&o in l)?e(l[o],i):!1}return Dc=a,Dc}var Mc,rg;function Hk(){if(rg)return Mc;rg=1;var e=D_(),t=Uk(),n=M_(),r=Kk(),a=n(function(i,o){if(i==null)return[];var l=o.length;return l>1&&r(i,o[0],o[1])?o=[]:l>2&&r(o[0],o[1],o[2])&&(o=[o[0]]),t(i,e(o,1),[])});return Mc=a,Mc}var Nc,ag;function $k(){if(ag)return Nc;ag=1;var e=R_(),t=Qn(),n="Expected a function";function r(a,i,o){var l=!0,s=!0;if(typeof a!="function")throw new TypeError(n);return t(o)&&(l="leading"in o?!!o.leading:l,s="trailing"in o?!!o.trailing:s),e(a,i,{leading:l,maxWait:i,trailing:s})}return Nc=r,Nc}var Fc,ig;function Bk(){if(ig)return Fc;ig=1;var e=$_(),t=0;function n(r){var a=++t;return e(r)+a}return Fc=n,Fc}(function(e,t){(function(n,r){e.exports=r(R_(),LO(),Rk(),xk(),Lk(),Dk(),Mk(),Nk(),Hk(),$k(),Bk(),ne)})(fn,function(n,r,a,i,o,l,s,p,m,w,P,S){return function(){var I={654:function(A,g,h){var v,R=this&&this.__assign||function(){return R=Object.assign||function(K){for(var M,z=1,U=arguments.length;z=_e},K.getPrimaryAxisDistance=function(M,z,U){var H=M.a,W=z.a,J=U?"y":"x";return Math.abs(W[J]-H[J])},K.getSecondaryAxisDistance=function(M,z,U){var H=M.a,W=M.b,J=z.a,ie=z.b,Q=U?"x":"y",ae=H[Q],ue=W[Q],ye=J[Q],le=ie[Q],_e=[];return _e.push(Math.abs(ye-ae)),_e.push(Math.abs(ye-ue)),_e.push(Math.abs(le-ae)),_e.push(Math.abs(le-ue)),Math.min.apply(Math,_e)},K.prototype.sortSiblingsByPriority=function(M,z,U,H){var W=this,J=U===B||U===V,ie=K.getRefCorners(U,!1,z);return(0,E.default)(M,function(Q){var ae=K.getRefCorners(U,!0,Q.layout),ue=K.isAdjacentSlice(ie,ae,J),ye=ue?K.getPrimaryAxisDistance:K.getSecondaryAxisDistance,le=ue?K.getSecondaryAxisDistance:K.getPrimaryAxisDistance,_e=ye(ie,ae,J),mt=le(ie,ae,J),De=5*_e+mt,Et=(De+1)/(ue?5:1);return W.log("smartNavigate","distance (primary, secondary, total weighted) for ".concat(Q.focusKey," relative to ").concat(H," is"),_e,mt,De),W.log("smartNavigate","priority for ".concat(Q.focusKey," relative to ").concat(H," is"),Et),W.visualDebugger&&(W.visualDebugger.drawPoint(ae.a.x,ae.a.y,"yellow",6),W.visualDebugger.drawPoint(ae.b.x,ae.b.y,"yellow",6)),Et})},K.prototype.init=function(M){var z=M===void 0?{}:M,U=z.debug,H=U!==void 0&&U,W=z.visualDebug,J=W!==void 0&&W,ie=z.nativeMode,Q=ie!==void 0&&ie,ae=z.throttle,ue=ae===void 0?0:ae,ye=z.throttleKeypresses,le=ye!==void 0&&ye,_e=z.useGetBoundingClientRect,mt=_e!==void 0&&_e,De=z.shouldFocusDOMNode,Et=De!==void 0&&De;this.enabled||(this.enabled=!0,this.nativeMode=Q,this.throttleKeypresses=le,this.useGetBoundingClientRect=mt,this.shouldFocusDOMNode=Et&&!Q,this.debug=H,this.nativeMode||(Number.isInteger(ue)&&ue>0&&(this.throttle=ue),this.bindEventHandlers(),J&&(this.visualDebugger=new x.default,this.startDrawLayouts())))},K.prototype.setThrottle=function(M){var z=M===void 0?{}:M,U=z.throttle,H=U===void 0?0:U,W=z.throttleKeypresses,J=W!==void 0&&W;this.throttleKeypresses=J,this.nativeMode||(this.unbindEventHandlers(),Number.isInteger(H)&&(this.throttle=H),this.bindEventHandlers())},K.prototype.startDrawLayouts=function(){var M=this,z=function(){requestAnimationFrame(function(){M.visualDebugger.clearLayouts(),(0,F.default)(M.focusableComponents,function(U,H){M.visualDebugger.drawLayout(U.layout,H,U.parentFocusKey)}),z()})};z()},K.prototype.destroy=function(){this.enabled&&(this.enabled=!1,this.nativeMode=!1,this.throttle=0,this.throttleKeypresses=!1,this.focusKey=null,this.parentsHavingFocusedChild=[],this.focusableComponents={},this.paused=!1,this.keyMap=re,this.unbindEventHandlers())},K.prototype.getEventType=function(M){return(0,k.default)(this.getKeyMap(),function(z){return z.includes(M)})},K.prototype.bindEventHandlers=function(){var M=this;typeof window<"u"&&window.addEventListener&&(this.keyDownEventListener=function(z){if(M.paused!==!0){M.debug&&(M.logIndex+=1);var U=M.getEventType(z.keyCode);if(U){M.pressedKeys[U]=M.pressedKeys[U]?M.pressedKeys[U]+1:1,z.preventDefault(),z.stopPropagation();var H={pressedKeys:M.pressedKeys};U===ee&&M.focusKey?M.onEnterPress(H):M.onArrowPress(U,H)===!1?(M.log("keyDownEventListener","default navigation prevented"),M.visualDebugger&&M.visualDebugger.clear()):M.onKeyEvent(z)}}},this.throttle&&(this.keyDownEventListenerThrottled=(0,q.default)(this.keyDownEventListener.bind(this),this.throttle,X)),this.keyUpEventListener=function(z){var U=M.getEventType(z.keyCode);delete M.pressedKeys[U],M.throttle&&!M.throttleKeypresses&&M.keyDownEventListenerThrottled.cancel(),U===ee&&M.focusKey&&M.onEnterRelease()},window.addEventListener("keyup",this.keyUpEventListener),window.addEventListener("keydown",this.throttle?this.keyDownEventListenerThrottled:this.keyDownEventListener))},K.prototype.unbindEventHandlers=function(){if(typeof window<"u"&&window.removeEventListener){window.removeEventListener("keyup",this.keyUpEventListener),this.keyUpEventListener=null;var M=this.throttle?this.keyDownEventListenerThrottled:this.keyDownEventListener;window.removeEventListener("keydown",M),this.keyDownEventListener=null}},K.prototype.onEnterPress=function(M){var z=this.focusableComponents[this.focusKey];z?z.focusable?z.onEnterPress&&z.onEnterPress(M):this.log("onEnterPress","componentNotFocusable"):this.log("onEnterPress","noComponent")},K.prototype.onEnterRelease=function(){var M=this.focusableComponents[this.focusKey];M?M.focusable?M.onEnterRelease&&M.onEnterRelease():this.log("onEnterRelease","componentNotFocusable"):this.log("onEnterRelease","noComponent")},K.prototype.onArrowPress=function(M,z){var U=this.focusableComponents[this.focusKey];if(U)return U&&U.onArrowPress&&U.onArrowPress(M,z);this.log("onArrowPress","noComponent")},K.prototype.navigateByDirection=function(M,z){if(this.paused!==!0&&!this.nativeMode){var U=[B,V,T,j];U.includes(M)?(this.log("navigateByDirection","direction",M),this.smartNavigate(M,null,z)):this.log("navigateByDirection","Invalid direction. You passed: `".concat(M,"`, but you can use only these: "),U)}},K.prototype.onKeyEvent=function(M){this.visualDebugger&&this.visualDebugger.clear();var z=(0,k.default)(this.getKeyMap(),function(U){return U.includes(M.keyCode)});this.smartNavigate(z,null,{event:M})},K.prototype.smartNavigate=function(M,z,U){var H=this;if(!this.nativeMode){this.log("smartNavigate","direction",M),this.log("smartNavigate","fromParentFocusKey",z),this.log("smartNavigate","this.focusKey",this.focusKey),z||(0,F.default)(this.focusableComponents,function(Re){Re.layoutUpdated=!1});var W=this.focusableComponents[z||this.focusKey];if(this.log("smartNavigate","currentComponent",W?W.focusKey:void 0,W?W.node:void 0,W),W){this.updateLayout(W.focusKey);var J=W.parentFocusKey,ie=W.focusKey,Q=W.layout,ae=M===B||M===V,ue=M===B||M===j,ye=K.getCutoffCoordinate(ae,ue,!1,Q),le=(0,c.default)(this.focusableComponents,function(Re){if(Re.parentFocusKey===J&&Re.focusable){H.updateLayout(Re.focusKey);var Kt=K.getCutoffCoordinate(ae,ue,!0,Re.layout);return ue?Kt>=ye:Kt<=ye}return!1});if(this.debug&&(this.log("smartNavigate","currentCutoffCoordinate",ye),this.log("smartNavigate","siblings","".concat(le.length," elements:"),le.map(function(Re){return Re.focusKey}).join(", "),le.map(function(Re){return Re.node}),le.map(function(Re){return Re}))),this.visualDebugger){var _e=K.getRefCorners(M,!1,Q);this.visualDebugger.drawPoint(_e.a.x,_e.a.y),this.visualDebugger.drawPoint(_e.b.x,_e.b.y)}var mt=this.sortSiblingsByPriority(le,Q,M,ie),De=(0,y.default)(mt);if(this.log("smartNavigate","nextComponent",De?De.focusKey:void 0,De?De.node:void 0,De),De)this.setFocus(De.focusKey,U);else{var Et=this.focusableComponents[J];Et&&Et.isFocusBoundary||this.smartNavigate(M,J,U)}}}},K.prototype.saveLastFocusedChildKey=function(M,z){M&&(this.log("saveLastFocusedChildKey","".concat(M.focusKey," lastFocusedChildKey set"),z),M.lastFocusedChildKey=z)},K.prototype.log=function(M,z){for(var U=[],H=2;H0){var W=U.lastFocusedChildKey,J=U.preferredChildFocusKey;if(this.log("getNextFocusKey","lastFocusedChildKey is",W),this.log("getNextFocusKey","preferredChildFocusKey is",J),W&&U.saveLastFocusedChild&&this.isParticipatingFocusableComponent(W))return this.log("getNextFocusKey","lastFocusedChildKey will be focused",W),this.getNextFocusKey(W);if(J&&this.isParticipatingFocusableComponent(J))return this.log("getNextFocusKey","preferredChildFocusKey will be focused",J),this.getNextFocusKey(J);H.forEach(function(Q){return z.updateLayout(Q.focusKey)});var ie=function(Q){var ae=(0,E.default)(Q,function(ue){var ye=ue.layout;return Math.abs(ye.left)+Math.abs(ye.top)});return(0,y.default)(ae)}(H).focusKey;return this.log("getNextFocusKey","childKey will be focused",ie),this.getNextFocusKey(ie)}return this.log("getNextFocusKey","targetFocusKey",M),M},K.prototype.addFocusable=function(M){var z=M.focusKey,U=M.node,H=M.parentFocusKey,W=M.onEnterPress,J=M.onEnterRelease,ie=M.onArrowPress,Q=M.onFocus,ae=M.onBlur,ue=M.saveLastFocusedChild,ye=M.trackChildren,le=M.onUpdateFocus,_e=M.onUpdateHasFocusedChild,mt=M.preferredChildFocusKey,De=M.autoRestoreFocus,Et=M.focusable,Re=M.isFocusBoundary;if(this.focusableComponents[z]={focusKey:z,node:U,parentFocusKey:H,onEnterPress:W,onEnterRelease:J,onArrowPress:ie,onFocus:Q,onBlur:ae,onUpdateFocus:le,onUpdateHasFocusedChild:_e,saveLastFocusedChild:ue,trackChildren:ye,preferredChildFocusKey:mt,focusable:Et,isFocusBoundary:Re,autoRestoreFocus:De,lastFocusedChildKey:null,layout:{x:0,y:0,width:0,height:0,left:0,top:0,node:U},layoutUpdated:!1},!this.nativeMode){this.updateLayout(z),this.log("addFocusable","Component added: ",this.focusableComponents[z]),z===this.focusKey&&this.setFocus(z);for(var Kt=this.focusableComponents[this.focusKey];Kt;){if(Kt.parentFocusKey===z){this.updateParentsHasFocusedChild(this.focusKey,{});break}Kt=this.focusableComponents[Kt.parentFocusKey]}}},K.prototype.removeFocusable=function(M){var z=M.focusKey,U=this.focusableComponents[z];if(U){var H=U.parentFocusKey;(0,U.onUpdateFocus)(!1),this.log("removeFocusable","Component removed: ",U),delete this.focusableComponents[z];var W=this.parentsHavingFocusedChild.includes(z);this.parentsHavingFocusedChild=this.parentsHavingFocusedChild.filter(function(Q){return Q!==z});var J=this.focusableComponents[H],ie=z===this.focusKey;if(J&&J.lastFocusedChildKey===z&&(J.lastFocusedChildKey=null),this.nativeMode)return;(ie||W)&&J&&J.autoRestoreFocus&&(this.log("removeFocusable","Component removed: ",ie?"Leaf component":"Container component","Auto restoring focus to: ",H),this.setFocusDebounced(H))}},K.prototype.getNodeLayoutByFocusKey=function(M){var z=this.focusableComponents[M];return z?(this.updateLayout(z.focusKey),z.layout):null},K.prototype.setCurrentFocusedKey=function(M,z){if(this.isFocusableComponent(this.focusKey)&&M!==this.focusKey){var U=this.focusableComponents[this.focusKey];U.onUpdateFocus(!1),U.onBlur(this.getNodeLayoutByFocusKey(this.focusKey),z),this.log("setCurrentFocusedKey","onBlur",U)}if(this.focusKey=M,this.isFocusableComponent(this.focusKey)){var H=this.focusableComponents[this.focusKey];this.shouldFocusDOMNode&&H.node&&H.node.focus(),H.onUpdateFocus(!0),H.onFocus(this.getNodeLayoutByFocusKey(this.focusKey),z),this.log("setCurrentFocusedKey","onFocus",H)}},K.prototype.updateParentsHasFocusedChild=function(M,z){for(var U=this,H=[],W=this.focusableComponents[M];W;){var J=W.parentFocusKey,ie=this.focusableComponents[J];if(ie){var Q=ie.focusKey;H.push(Q)}W=ie}var ae=(0,O.default)(this.parentsHavingFocusedChild,H),ue=(0,O.default)(H,this.parentsHavingFocusedChild);(0,C.default)(ae,function(ye){var le=U.focusableComponents[ye];le&&le.trackChildren&&le.onUpdateHasFocusedChild(!1),U.onIntermediateNodeBecameBlurred(ye,z)}),(0,C.default)(ue,function(ye){var le=U.focusableComponents[ye];le&&le.trackChildren&&le.onUpdateHasFocusedChild(!0),U.onIntermediateNodeBecameFocused(ye,z)}),this.parentsHavingFocusedChild=H},K.prototype.updateParentsLastFocusedChild=function(M){for(var z=this.focusableComponents[M];z;){var U=z.parentFocusKey,H=this.focusableComponents[U];H&&this.saveLastFocusedChildKey(H,z.focusKey),z=H}},K.prototype.getKeyMap=function(){return this.keyMap},K.prototype.setKeyMap=function(M){this.keyMap=R(R({},this.getKeyMap()),function(z){var U={};return Object.entries(z).forEach(function(H){var W=H[0],J=H[1];typeof J=="number"?U[W]=[J]:Array.isArray(J)&&(U[W]=J)}),U}(M))},K.prototype.isFocusableComponent=function(M){return!!this.focusableComponents[M]},K.prototype.isParticipatingFocusableComponent=function(M){return this.isFocusableComponent(M)&&this.focusableComponents[M].focusable},K.prototype.onIntermediateNodeBecameFocused=function(M,z){this.isParticipatingFocusableComponent(M)&&this.focusableComponents[M].onFocus(this.getNodeLayoutByFocusKey(M),z)},K.prototype.onIntermediateNodeBecameBlurred=function(M,z){this.isParticipatingFocusableComponent(M)&&this.focusableComponents[M].onBlur(this.getNodeLayoutByFocusKey(M),z)},K.prototype.pause=function(){this.paused=!0},K.prototype.resume=function(){this.paused=!1},K.prototype.setFocus=function(M,z){if(z===void 0&&(z={}),this.setFocusDebounced.cancel(),this.enabled){this.log("setFocus","focusKey",M);var U=this.getNextFocusKey(M);this.log("setFocus","newFocusKey",U),this.setCurrentFocusedKey(U,z),this.updateParentsHasFocusedChild(U,z),this.updateParentsLastFocusedChild(U)}},K.prototype.updateAllLayouts=function(){var M=this;this.nativeMode||(0,F.default)(this.focusableComponents,function(z,U){M.updateLayout(U)})},K.prototype.updateLayout=function(M){var z=this.focusableComponents[M];if(z&&!this.nativeMode&&!z.layoutUpdated){var U=z.node,H=this.useGetBoundingClientRect?(0,D.getBoundingClientRect)(U):(0,D.default)(U);z.layout=R(R({},H),{node:U})}},K.prototype.updateFocusable=function(M,z){var U=z.node,H=z.preferredChildFocusKey,W=z.focusable,J=z.isFocusBoundary,ie=z.onEnterPress,Q=z.onEnterRelease,ae=z.onArrowPress,ue=z.onFocus,ye=z.onBlur;if(!this.nativeMode){var le=this.focusableComponents[M];le&&(le.preferredChildFocusKey=H,le.focusable=W,le.isFocusBoundary=J,le.onEnterPress=ie,le.onEnterRelease=Q,le.onArrowPress=ae,le.onFocus=ue,le.onBlur=ye,U&&(le.node=U))}},K.prototype.isNativeMode=function(){return this.nativeMode},K}();g.SpatialNavigation=new se,g.init=g.SpatialNavigation.init,g.setThrottle=g.SpatialNavigation.setThrottle,g.destroy=g.SpatialNavigation.destroy,g.setKeyMap=g.SpatialNavigation.setKeyMap},35:function(A,g){Object.defineProperty(g,"__esModule",{value:!0});var h=typeof window<"u"&&window.document,v=h?window.innerWidth:0,R=h?window.innerHeight:0,_=function(){function b(){h&&(this.debugCtx=b.createCanvas("sn-debug","1010"),this.layoutsCtx=b.createCanvas("sn-layouts","1000"))}return b.createCanvas=function(d,u){var f=document.querySelector("#".concat(d))||document.createElement("canvas");f.setAttribute("id",d);var c=f.getContext("2d");return f.style.zIndex=u,f.style.position="fixed",f.style.top="0",f.style.left="0",document.body.appendChild(f),f.width=v,f.height=R,c},b.prototype.clear=function(){h&&this.debugCtx.clearRect(0,0,v,R)},b.prototype.clearLayouts=function(){h&&this.layoutsCtx.clearRect(0,0,v,R)},b.prototype.drawLayout=function(d,u,f){h&&(this.layoutsCtx.strokeStyle="green",this.layoutsCtx.strokeRect(d.left,d.top,d.width,d.height),this.layoutsCtx.font="8px monospace",this.layoutsCtx.fillStyle="red",this.layoutsCtx.fillText(u,d.left,d.top+10),this.layoutsCtx.fillText(f,d.left,d.top+25),this.layoutsCtx.fillText("left: ".concat(d.left),d.left,d.top+40),this.layoutsCtx.fillText("top: ".concat(d.top),d.left,d.top+55))},b.prototype.drawPoint=function(d,u,f,c){f===void 0&&(f="blue"),c===void 0&&(c=10),h&&(this.debugCtx.strokeStyle=f,this.debugCtx.lineWidth=3,this.debugCtx.strokeRect(d-c/2,u-c/2,c,c))},b}();g.default=_},607:function(A,g,h){var v=this&&this.__createBinding||(Object.create?function(_,b,d,u){u===void 0&&(u=d);var f=Object.getOwnPropertyDescriptor(b,d);f&&!("get"in f?!b.__esModule:f.writable||f.configurable)||(f={enumerable:!0,get:function(){return b[d]}}),Object.defineProperty(_,u,f)}:function(_,b,d,u){u===void 0&&(u=d),_[u]=b[d]}),R=this&&this.__exportStar||function(_,b){for(var d in _)d==="default"||Object.prototype.hasOwnProperty.call(b,d)||v(b,_,d)};Object.defineProperty(g,"__esModule",{value:!0}),R(h(79),g),R(h(445),g),R(h(654),g)},964:function(A,g){Object.defineProperty(g,"__esModule",{value:!0}),g.getBoundingClientRect=void 0;var h=function(v){for(var R=v.offsetParent,_=v.offsetHeight,b=v.offsetWidth,d=v.offsetLeft,u=v.offsetTop;R&&R.nodeType===1;)d+=R.offsetLeft-R.scrollLeft,u+=R.offsetTop-R.scrollTop,R=R.offsetParent;return{height:_,left:d,top:u,width:b}};g.default=function(v){var R=v&&v.parentElement;if(v&&R){var _=h(R),b=h(v),d=b.height,u=b.left,f=b.top,c=b.width;return{x:u-_.left,y:f-_.top,width:c,height:d,left:u,top:f}}return{x:0,y:0,width:0,height:0,left:0,top:0}},g.getBoundingClientRect=function(v){if(v&&v.getBoundingClientRect){var R=v.getBoundingClientRect();return{x:R.x,y:R.y,width:R.width,height:R.height,left:R.left,top:R.top}}return{x:0,y:0,width:0,height:0,left:0,top:0}}},445:function(A,g,h){Object.defineProperty(g,"__esModule",{value:!0}),g.useFocusContext=g.FocusContext=void 0;var v=h(156),R=h(654);g.FocusContext=(0,v.createContext)(R.ROOT_FOCUS_KEY),g.useFocusContext=function(){return(0,v.useContext)(g.FocusContext)}},79:function(A,g,h){var v=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(g,"__esModule",{value:!0}),g.useFocusable=void 0;var R=h(156),_=v(h(604)),b=v(h(461)),d=h(654),u=h(445);g.useFocusable=function(f){var c=f===void 0?{}:f,y=c.focusable,E=y===void 0||y,k=c.saveLastFocusedChild,C=k===void 0||k,F=c.trackChildren,q=F!==void 0&&F,N=c.autoRestoreFocus,O=N===void 0||N,D=c.isFocusBoundary,x=D!==void 0&&D,T=c.focusKey,j=c.preferredChildFocusKey,V=c.onEnterPress,B=V===void 0?_.default:V,ee=c.onEnterRelease,re=ee===void 0?_.default:ee,oe=c.onArrowPress,X=oe===void 0?function(){return!0}:oe,se=c.onFocus,K=se===void 0?_.default:se,M=c.onBlur,z=M===void 0?_.default:M,U=c.extraProps,H=(0,R.useCallback)(function(Xe){B(U,Xe)},[B,U]),W=(0,R.useCallback)(function(){re(U)},[re,U]),J=(0,R.useCallback)(function(Xe,st){return X(Xe,U,st)},[U,X]),ie=(0,R.useCallback)(function(Xe,st){K(Xe,U,st)},[U,K]),Q=(0,R.useCallback)(function(Xe,st){z(Xe,U,st)},[U,z]),ae=(0,R.useRef)(null),ue=(0,R.useState)(!1),ye=ue[0],le=ue[1],_e=(0,R.useState)(!1),mt=_e[0],De=_e[1],Et=(0,u.useFocusContext)(),Re=(0,R.useMemo)(function(){return T||(0,b.default)("sn:focusable-item-")},[T]),Kt=(0,R.useCallback)(function(Xe){Xe===void 0&&(Xe={}),d.SpatialNavigation.setFocus(Re,Xe)},[Re]);return(0,R.useEffect)(function(){var Xe=ae.current;return d.SpatialNavigation.addFocusable({focusKey:Re,node:Xe,parentFocusKey:Et,preferredChildFocusKey:j,onEnterPress:H,onEnterRelease:W,onArrowPress:J,onFocus:ie,onBlur:Q,onUpdateFocus:function(st){return st===void 0&&(st=!1),le(st)},onUpdateHasFocusedChild:function(st){return st===void 0&&(st=!1),De(st)},saveLastFocusedChild:C,trackChildren:q,isFocusBoundary:x,autoRestoreFocus:O,focusable:E}),function(){d.SpatialNavigation.removeFocusable({focusKey:Re})}},[]),(0,R.useEffect)(function(){var Xe=ae.current;d.SpatialNavigation.updateFocusable(Re,{node:Xe,preferredChildFocusKey:j,focusable:E,isFocusBoundary:x,onEnterPress:H,onEnterRelease:W,onArrowPress:J,onFocus:ie,onBlur:Q})},[Re,j,E,x,H,W,J,ie,Q]),{ref:ae,focusSelf:Kt,focused:ye,hasFocusedChild:mt,focusKey:Re,setFocus:d.SpatialNavigation.isNativeMode()?_.default:d.SpatialNavigation.setFocus,navigateByDirection:d.SpatialNavigation.navigateByDirection,pause:d.SpatialNavigation.pause,resume:d.SpatialNavigation.resume,updateAllLayouts:d.SpatialNavigation.updateAllLayouts,getCurrentFocusKey:d.SpatialNavigation.getCurrentFocusKey}}},150:function(A){A.exports=n},117:function(A){A.exports=r},747:function(A){A.exports=a},23:function(A){A.exports=i},842:function(A){A.exports=o},682:function(A){A.exports=l},784:function(A){A.exports=s},604:function(A){A.exports=p},432:function(A){A.exports=m},67:function(A){A.exports=w},461:function(A){A.exports=P},156:function(A){A.exports=S}},L={};return function A(g){var h=L[g];if(h!==void 0)return h.exports;var v=L[g]={exports:{}};return I[g].call(v.exports,v,v.exports,A),v.exports}(607)}()})})(E_);var vo=E_.exports;const og=e=>{let t;const n=new Set,r=(s,p)=>{const m=typeof s=="function"?s(t):s;if(!Object.is(m,t)){const w=t;t=p??typeof m!="object"?m:Object.assign({},t,m),n.forEach(P=>P(t,w))}},a=()=>t,l={setState:r,getState:a,subscribe:s=>(n.add(s),()=>n.delete(s)),destroy:()=>{n.clear()}};return t=e(r,a,l),l},Vk=e=>e?og(e):og;var W_={exports:{}},Y_={},G_={exports:{}},X_={};/** +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,l;return{s:function(){n=e[Symbol.iterator]()},n:function(){var p=n.next();return i=p.done,p},e:function(p){o=!0,l=p},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(o)throw l}}}}function K2(e,t){if(e){if(typeof e=="string")return qy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qy(e,t)}}function qy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nk.length)&&(I=k.length);for(var x=0,T=new Array(I);x"u"||!(Symbol.iterator in Object(k)))){var x=[],T=!0,j=!1,V=void 0;try{for(var B=k[Symbol.iterator](),ee;!(T=(ee=B.next()).done)&&(x.push(ee.value),!(I&&x.length===I));T=!0);}catch(oe){j=!0,V=oe}finally{try{!T&&B.return!=null&&B.return()}finally{if(j)throw V}}return x}}function L(k){if(Array.isArray(k))return k}function D(k,I){if(!(k instanceof I))throw new TypeError("Cannot call a class as a function")}function A(k,I){for(var x=0;x"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function u(k){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(x){return x.__proto__||Object.getPrototypeOf(x)},u(k)}function f(k,I,x){return I in k?Object.defineProperty(k,I,{value:x,enumerable:!0,configurable:!0,writable:!0}):k[I]=x,k}var c="https://www.youtube.com/iframe_api",y="YT",E="onYouTubeIframeAPIReady",O=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,C=/user\/([a-zA-Z0-9_-]+)\/?/,F=/youtube-nocookie\.com/,q="https://www.youtube-nocookie.com",N=function(k){h(x,k);var I=R(x);function x(){var T;D(this,x);for(var j=arguments.length,V=new Array(j),B=0;B1&&arguments[1]!==void 0?arguments[1]:!1;this.callPlayer("seekTo",j),!V&&!this.props.playing&&this.pause()}},{key:"setVolume",value:function(j){this.callPlayer("setVolume",j*100)}},{key:"setPlaybackRate",value:function(j){this.callPlayer("setPlaybackRate",j)}},{key:"setLoop",value:function(j){this.callPlayer("setLoop",j)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentTime")}},{key:"getSecondsLoaded",value:function(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}},{key:"render",value:function(){var j=this.props.display,V={width:"100%",height:"100%",display:j};return n.default.createElement("div",{style:V},n.default.createElement("div",{ref:this.ref}))}}]),x}(n.Component);e.default=N,f(N,"displayName","YouTube"),f(N,"canPlay",a.canPlay.youtube)}(Su)),Su}var Ou={},Uy;function V2(){return Uy||(Uy=1,function(e){function t(d){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(f){return typeof f}:t=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},t(d)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(ne),r=me,a=te;function i(){if(typeof WeakMap!="function")return null;var d=new WeakMap;return i=function(){return d},d}function o(d){if(d&&d.__esModule)return d;if(d===null||t(d)!=="object"&&typeof d!="function")return{default:d};var u=i();if(u&&u.has(d))return u.get(d);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in d)if(Object.prototype.hasOwnProperty.call(d,y)){var E=c?Object.getOwnPropertyDescriptor(d,y):null;E&&(E.get||E.set)?Object.defineProperty(f,y,E):f[y]=d[y]}return f.default=d,u&&u.set(d,f),f}function l(d,u){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(d);u&&(c=c.filter(function(y){return Object.getOwnPropertyDescriptor(d,y).enumerable})),f.push.apply(f,c)}return f}function s(d){for(var u=1;u"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function h(d){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(f){return f.__proto__||Object.getPrototypeOf(f)},h(d)}function v(d,u,f){return u in d?Object.defineProperty(d,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[u]=f,d}var R="https://w.soundcloud.com/player/api.js",_="SC",b=function(d){P(f,d);var u=L(f);function f(){var c;p(this,f);for(var y=arguments.length,E=new Array(y),O=0;O1&&arguments[1]!==void 0?arguments[1]:!0;this.callPlayer("seekTo",y*1e3),E||this.pause()}},{key:"setVolume",value:function(y){this.callPlayer("setVolume",y*100)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.fractionLoaded*this.duration}},{key:"render",value:function(){var y=this.props.display,E={width:"100%",height:"100%",display:y};return n.default.createElement("iframe",{ref:this.ref,src:"https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),style:E,frameBorder:0,allow:"autoplay"})}}]),f}(n.Component);e.default=b,v(b,"displayName","SoundCloud"),v(b,"canPlay",a.canPlay.soundcloud),v(b,"loopOnEnded",!0)}(Ou)),Ou}var ku={},Ky;function W2(){return Ky||(Ky=1,function(e){function t(u){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(c){return typeof c}:t=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},t(u)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(ne),r=me,a=te;function i(){if(typeof WeakMap!="function")return null;var u=new WeakMap;return i=function(){return u},u}function o(u){if(u&&u.__esModule)return u;if(u===null||t(u)!=="object"&&typeof u!="function")return{default:u};var f=i();if(f&&f.has(u))return f.get(u);var c={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in u)if(Object.prototype.hasOwnProperty.call(u,E)){var O=y?Object.getOwnPropertyDescriptor(u,E):null;O&&(O.get||O.set)?Object.defineProperty(c,E,O):c[E]=u[E]}return c.default=u,f&&f.set(u,c),c}function l(u,f){var c=Object.keys(u);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(u);f&&(y=y.filter(function(E){return Object.getOwnPropertyDescriptor(u,E).enumerable})),c.push.apply(c,y)}return c}function s(u){for(var f=1;f"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function h(u){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},h(u)}function v(u,f,c){return f in u?Object.defineProperty(u,f,{value:c,enumerable:!0,configurable:!0,writable:!0}):u[f]=c,u}var R="https://player.vimeo.com/api/player.js",_="Vimeo",b=function(f){return f.replace("/manage/videos","")},d=function(u){P(c,u);var f=L(c);function c(){var y;p(this,c);for(var E=arguments.length,O=new Array(E),C=0;C1&&arguments[1]!==void 0?arguments[1]:!0;this.callPlayer("setCurrentTime",E),O||this.pause()}},{key:"setVolume",value:function(E){this.callPlayer("setVolume",E)}},{key:"setMuted",value:function(E){this.callPlayer("setMuted",E)}},{key:"setLoop",value:function(E){this.callPlayer("setLoop",E)}},{key:"setPlaybackRate",value:function(E){this.callPlayer("setPlaybackRate",E)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){var E=this.props.display,O={width:"100%",height:"100%",overflow:"hidden",display:E};return n.default.createElement("div",{key:this.props.url,ref:this.ref,style:O})}}]),c}(n.Component);e.default=d,v(d,"displayName","Vimeo"),v(d,"canPlay",a.canPlay.vimeo),v(d,"forceLoad",!0)}(ku)),ku}var Eu={},Hy;function Y2(){return Hy||(Hy=1,function(e){function t(u){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(c){return typeof c}:t=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},t(u)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(ne),r=me,a=te;function i(){if(typeof WeakMap!="function")return null;var u=new WeakMap;return i=function(){return u},u}function o(u){if(u&&u.__esModule)return u;if(u===null||t(u)!=="object"&&typeof u!="function")return{default:u};var f=i();if(f&&f.has(u))return f.get(u);var c={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in u)if(Object.prototype.hasOwnProperty.call(u,E)){var O=y?Object.getOwnPropertyDescriptor(u,E):null;O&&(O.get||O.set)?Object.defineProperty(c,E,O):c[E]=u[E]}return c.default=u,f&&f.set(u,c),c}function l(){return l=Object.assign||function(u){for(var f=1;f"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function g(u){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},g(u)}function h(u,f,c){return f in u?Object.defineProperty(u,f,{value:c,enumerable:!0,configurable:!0,writable:!0}):u[f]=c,u}var v="https://connect.facebook.net/en_US/sdk.js",R="FB",_="fbAsyncInit",b="facebook-player-",d=function(u){w(c,u);var f=S(c);function c(){var y;s(this,c);for(var E=arguments.length,O=new Array(E),C=0;C1&&arguments[1]!==void 0?arguments[1]:!0;this.callPlayer("seek",E),O||this.pause()}},{key:"setVolume",value:function(E){this.callPlayer("setVolume",E)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentPosition")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var E=this.props.config.attributes,O={width:"100%",height:"100%"};return n.default.createElement("div",l({style:O,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))}}]),c}(n.Component);e.default=d,h(d,"displayName","Facebook"),h(d,"canPlay",a.canPlay.facebook),h(d,"loopOnEnded",!0)}(Eu)),Eu}var Cu={},$y;function G2(){return $y||($y=1,function(e){function t(_){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(d){return typeof d}:t=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},t(_)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(ne),r=me,a=te;function i(){if(typeof WeakMap!="function")return null;var _=new WeakMap;return i=function(){return _},_}function o(_){if(_&&_.__esModule)return _;if(_===null||t(_)!=="object"&&typeof _!="function")return{default:_};var b=i();if(b&&b.has(_))return b.get(_);var d={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in _)if(Object.prototype.hasOwnProperty.call(_,f)){var c=u?Object.getOwnPropertyDescriptor(_,f):null;c&&(c.get||c.set)?Object.defineProperty(d,f,c):d[f]=_[f]}return d.default=_,b&&b.set(_,d),d}function l(_,b){if(!(_ instanceof b))throw new TypeError("Cannot call a class as a function")}function s(_,b){for(var d=0;d"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function A(_){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)},A(_)}function g(_,b,d){return b in _?Object.defineProperty(_,b,{value:d,enumerable:!0,configurable:!0,writable:!0}):_[b]=d,_}var h="https://cdn.embed.ly/player-0.1.0.min.js",v="playerjs",R=function(_){m(d,_);var b=P(d);function d(){var u;l(this,d);for(var f=arguments.length,c=new Array(f),y=0;y1&&arguments[1]!==void 0?arguments[1]:!0;this.callPlayer("setCurrentTime",f),c||this.pause()}},{key:"setVolume",value:function(f){this.callPlayer("setVolume",f*100)}},{key:"setLoop",value:function(f){this.callPlayer("setLoop",f)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){var f=this.props.url.match(a.MATCH_URL_STREAMABLE)[1],c={width:"100%",height:"100%"};return n.default.createElement("iframe",{ref:this.ref,src:"https://streamable.com/o/".concat(f),frameBorder:"0",scrolling:"no",style:c,allow:"encrypted-media; autoplay; fullscreen;"})}}]),d}(n.Component);e.default=R,g(R,"displayName","Streamable"),g(R,"canPlay",a.canPlay.streamable)}(Cu)),Cu}var Ru={},By;function X2(){return By||(By=1,function(e){function t(u){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(c){return typeof c}:t=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},t(u)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(ne),r=me,a=te;function i(){if(typeof WeakMap!="function")return null;var u=new WeakMap;return i=function(){return u},u}function o(u){if(u&&u.__esModule)return u;if(u===null||t(u)!=="object"&&typeof u!="function")return{default:u};var f=i();if(f&&f.has(u))return f.get(u);var c={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in u)if(Object.prototype.hasOwnProperty.call(u,E)){var O=y?Object.getOwnPropertyDescriptor(u,E):null;O&&(O.get||O.set)?Object.defineProperty(c,E,O):c[E]=u[E]}return c.default=u,f&&f.set(u,c),c}function l(u,f){var c=Object.keys(u);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(u);f&&(y=y.filter(function(E){return Object.getOwnPropertyDescriptor(u,E).enumerable})),c.push.apply(c,y)}return c}function s(u){for(var f=1;f"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function h(u){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},h(u)}function v(u,f,c){return f in u?Object.defineProperty(u,f,{value:c,enumerable:!0,configurable:!0,writable:!0}):u[f]=c,u}var R="https://fast.wistia.com/assets/external/E-v1.js",_="Wistia",b="wistia-player-",d=function(u){P(c,u);var f=L(c);function c(){var y;p(this,c);for(var E=arguments.length,O=new Array(E),C=0;C1&&arguments[1]!==void 0?arguments[1]:!0;this.callPlayer("time",E),O||this.pause()}},{key:"setVolume",value:function(E){this.callPlayer("volume",E)}},{key:"setPlaybackRate",value:function(E){this.callPlayer("playbackRate",E)}},{key:"getDuration",value:function(){return this.callPlayer("duration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("time")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var E=this.props.url,O=E&&E.match(a.MATCH_URL_WISTIA)[1],C="wistia_embed wistia_async_".concat(O),F={width:"100%",height:"100%"};return n.default.createElement("div",{id:this.playerID,key:O,className:C,style:F})}}]),c}(n.Component);e.default=d,v(d,"displayName","Wistia"),v(d,"canPlay",a.canPlay.wistia),v(d,"loopOnEnded",!0)}(Ru)),Ru}var Tu={},Vy;function Q2(){return Vy||(Vy=1,function(e){function t(u){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(c){return typeof c}:t=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},t(u)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(ne),r=me,a=te;function i(){if(typeof WeakMap!="function")return null;var u=new WeakMap;return i=function(){return u},u}function o(u){if(u&&u.__esModule)return u;if(u===null||t(u)!=="object"&&typeof u!="function")return{default:u};var f=i();if(f&&f.has(u))return f.get(u);var c={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in u)if(Object.prototype.hasOwnProperty.call(u,E)){var O=y?Object.getOwnPropertyDescriptor(u,E):null;O&&(O.get||O.set)?Object.defineProperty(c,E,O):c[E]=u[E]}return c.default=u,f&&f.set(u,c),c}function l(u,f){var c=Object.keys(u);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(u);f&&(y=y.filter(function(E){return Object.getOwnPropertyDescriptor(u,E).enumerable})),c.push.apply(c,y)}return c}function s(u){for(var f=1;f"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function h(u){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},h(u)}function v(u,f,c){return f in u?Object.defineProperty(u,f,{value:c,enumerable:!0,configurable:!0,writable:!0}):u[f]=c,u}var R="https://player.twitch.tv/js/embed/v1.js",_="Twitch",b="twitch-player-",d=function(u){P(c,u);var f=L(c);function c(){var y;p(this,c);for(var E=arguments.length,O=new Array(E),C=0;C1&&arguments[1]!==void 0?arguments[1]:!0;this.callPlayer("seek",E),O||this.pause()}},{key:"setVolume",value:function(E){this.callPlayer("setVolume",E)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentTime")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var E={width:"100%",height:"100%"};return n.default.createElement("div",{style:E,id:this.playerID})}}]),c}(n.Component);e.default=d,v(d,"displayName","Twitch"),v(d,"canPlay",a.canPlay.twitch),v(d,"loopOnEnded",!0)}(Tu)),Tu}var xu={},Wy;function Z2(){return Wy||(Wy=1,function(e){function t(C){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(q){return typeof q}:t=function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},t(C)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(ne),r=me,a=te;function i(){if(typeof WeakMap!="function")return null;var C=new WeakMap;return i=function(){return C},C}function o(C){if(C&&C.__esModule)return C;if(C===null||t(C)!=="object"&&typeof C!="function")return{default:C};var F=i();if(F&&F.has(C))return F.get(C);var q={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in C)if(Object.prototype.hasOwnProperty.call(C,k)){var I=N?Object.getOwnPropertyDescriptor(C,k):null;I&&(I.get||I.set)?Object.defineProperty(q,k,I):q[k]=C[k]}return q.default=C,F&&F.set(C,q),q}function l(C,F){var q=Object.keys(C);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(C);F&&(N=N.filter(function(k){return Object.getOwnPropertyDescriptor(C,k).enumerable})),q.push.apply(q,N)}return q}function s(C){for(var F=1;FC.length)&&(F=C.length);for(var q=0,N=new Array(F);q"u"||!(Symbol.iterator in Object(C)))){var q=[],N=!0,k=!1,I=void 0;try{for(var x=C[Symbol.iterator](),T;!(N=(T=x.next()).done)&&(q.push(T.value),!(F&&q.length===F));N=!0);}catch(j){k=!0,I=j}finally{try{!N&&x.return!=null&&x.return()}finally{if(k)throw I}}return q}}function L(C){if(Array.isArray(C))return C}function D(C,F){if(!(C instanceof F))throw new TypeError("Cannot call a class as a function")}function A(C,F){for(var q=0;q"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function u(C){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(q){return q.__proto__||Object.getPrototypeOf(q)},u(C)}function f(C,F,q){return F in C?Object.defineProperty(C,F,{value:q,enumerable:!0,configurable:!0,writable:!0}):C[F]=q,C}var c="https://api.dmcdn.net/all.js",y="DM",E="dmAsyncInit",O=function(C){h(q,C);var F=R(q);function q(){var N;D(this,q);for(var k=arguments.length,I=new Array(k),x=0;x1&&arguments[1]!==void 0?arguments[1]:!0;this.callPlayer("seek",k),I||this.pause()}},{key:"setVolume",value:function(k){this.callPlayer("setVolume",k)}},{key:"getDuration",value:function(){return this.player.duration||null}},{key:"getCurrentTime",value:function(){return this.player.currentTime}},{key:"getSecondsLoaded",value:function(){return this.player.bufferedTime}},{key:"render",value:function(){var k=this.props.display,I={width:"100%",height:"100%",display:k};return n.default.createElement("div",{style:I},n.default.createElement("div",{ref:this.ref}))}}]),q}(n.Component);e.default=O,f(O,"displayName","DailyMotion"),f(O,"canPlay",a.canPlay.dailymotion),f(O,"loopOnEnded",!0)}(xu)),xu}var Au={},Yy;function J2(){return Yy||(Yy=1,function(e){function t(d){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(f){return typeof f}:t=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},t(d)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(ne),r=me,a=te;function i(){if(typeof WeakMap!="function")return null;var d=new WeakMap;return i=function(){return d},d}function o(d){if(d&&d.__esModule)return d;if(d===null||t(d)!=="object"&&typeof d!="function")return{default:d};var u=i();if(u&&u.has(d))return u.get(d);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in d)if(Object.prototype.hasOwnProperty.call(d,y)){var E=c?Object.getOwnPropertyDescriptor(d,y):null;E&&(E.get||E.set)?Object.defineProperty(f,y,E):f[y]=d[y]}return f.default=d,u&&u.set(d,f),f}function l(d,u){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(d);u&&(c=c.filter(function(y){return Object.getOwnPropertyDescriptor(d,y).enumerable})),f.push.apply(f,c)}return f}function s(d){for(var u=1;u"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function h(d){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(f){return f.__proto__||Object.getPrototypeOf(f)},h(d)}function v(d,u,f){return u in d?Object.defineProperty(d,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[u]=f,d}var R="https://widget.mixcloud.com/media/js/widgetApi.js",_="Mixcloud",b=function(d){P(f,d);var u=L(f);function f(){var c;p(this,f);for(var y=arguments.length,E=new Array(y),O=0;O1&&arguments[1]!==void 0?arguments[1]:!0;this.callPlayer("seek",y),E||this.pause()}},{key:"setVolume",value:function(y){}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var y=this.props,E=y.url,O=y.config,C=E.match(a.MATCH_URL_MIXCLOUD)[1],F={width:"100%",height:"100%"},q=(0,r.queryString)(s(s({},O.options),{},{feed:"/".concat(C,"/")}));return n.default.createElement("iframe",{key:C,ref:this.ref,style:F,src:"https://www.mixcloud.com/widget/iframe/?".concat(q),frameBorder:"0",allow:"autoplay"})}}]),f}(n.Component);e.default=b,v(b,"displayName","Mixcloud"),v(b,"canPlay",a.canPlay.mixcloud),v(b,"loopOnEnded",!0)}(Au)),Au}var Lu={},Gy;function eS(){return Gy||(Gy=1,function(e){function t(u){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(c){return typeof c}:t=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},t(u)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(ne),r=me,a=te;function i(){if(typeof WeakMap!="function")return null;var u=new WeakMap;return i=function(){return u},u}function o(u){if(u&&u.__esModule)return u;if(u===null||t(u)!=="object"&&typeof u!="function")return{default:u};var f=i();if(f&&f.has(u))return f.get(u);var c={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in u)if(Object.prototype.hasOwnProperty.call(u,E)){var O=y?Object.getOwnPropertyDescriptor(u,E):null;O&&(O.get||O.set)?Object.defineProperty(c,E,O):c[E]=u[E]}return c.default=u,f&&f.set(u,c),c}function l(u,f){var c=Object.keys(u);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(u);f&&(y=y.filter(function(E){return Object.getOwnPropertyDescriptor(u,E).enumerable})),c.push.apply(c,y)}return c}function s(u){for(var f=1;f"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function h(u){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},h(u)}function v(u,f,c){return f in u?Object.defineProperty(u,f,{value:c,enumerable:!0,configurable:!0,writable:!0}):u[f]=c,u}var R="https://play.vidyard.com/embed/v4.js",_="VidyardV4",b="onVidyardAPI",d=function(u){P(c,u);var f=L(c);function c(){var y;p(this,c);for(var E=arguments.length,O=new Array(E),C=0;C1&&arguments[1]!==void 0?arguments[1]:!0;this.callPlayer("seek",E),O||this.pause()}},{key:"setVolume",value:function(E){this.callPlayer("setVolume",E)}},{key:"setPlaybackRate",value:function(E){this.callPlayer("setPlaybackSpeed",E)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.callPlayer("currentTime")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var E=this.props.display,O={width:"100%",height:"100%",display:E};return n.default.createElement("div",{style:O},n.default.createElement("div",{ref:this.ref}))}}]),c}(n.Component);e.default=d,v(d,"displayName","Vidyard"),v(d,"canPlay",a.canPlay.vidyard)}(Lu)),Lu}var Iu={},Xy;function tS(){return Xy||(Xy=1,function(e){function t(_){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(d){return typeof d}:t=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},t(_)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(ne),r=me,a=te;function i(){if(typeof WeakMap!="function")return null;var _=new WeakMap;return i=function(){return _},_}function o(_){if(_&&_.__esModule)return _;if(_===null||t(_)!=="object"&&typeof _!="function")return{default:_};var b=i();if(b&&b.has(_))return b.get(_);var d={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in _)if(Object.prototype.hasOwnProperty.call(_,f)){var c=u?Object.getOwnPropertyDescriptor(_,f):null;c&&(c.get||c.set)?Object.defineProperty(d,f,c):d[f]=_[f]}return d.default=_,b&&b.set(_,d),d}function l(_,b){if(!(_ instanceof b))throw new TypeError("Cannot call a class as a function")}function s(_,b){for(var d=0;d"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function A(_){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)},A(_)}function g(_,b,d){return b in _?Object.defineProperty(_,b,{value:d,enumerable:!0,configurable:!0,writable:!0}):_[b]=d,_}var h="https://cdn.embed.ly/player-0.1.0.min.js",v="playerjs",R=function(_){m(d,_);var b=P(d);function d(){var u;l(this,d);for(var f=arguments.length,c=new Array(f),y=0;y1&&arguments[1]!==void 0?arguments[1]:!0;this.callPlayer("setCurrentTime",f),c||this.pause()}},{key:"setVolume",value:function(f){this.callPlayer("setVolume",f)}},{key:"setLoop",value:function(f){this.callPlayer("setLoop",f)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){var f={width:"100%",height:"100%"};return n.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:f,allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}]),d}(n.Component);e.default=R,g(R,"displayName","Kaltura"),g(R,"canPlay",a.canPlay.kaltura)}(Iu)),Iu}var Du={},Qy;function nS(){return Qy||(Qy=1,function(e){function t(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(I){return typeof I}:t=function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},t(N)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(ne),r=me,a=te;function i(){if(typeof WeakMap!="function")return null;var N=new WeakMap;return i=function(){return N},N}function o(N){if(N&&N.__esModule)return N;if(N===null||t(N)!=="object"&&typeof N!="function")return{default:N};var k=i();if(k&&k.has(N))return k.get(N);var I={},x=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in N)if(Object.prototype.hasOwnProperty.call(N,T)){var j=x?Object.getOwnPropertyDescriptor(N,T):null;j&&(j.get||j.set)?Object.defineProperty(I,T,j):I[T]=N[T]}return I.default=N,k&&k.set(N,I),I}function l(){return l=Object.assign||function(N){for(var k=1;k"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function g(N){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(I){return I.__proto__||Object.getPrototypeOf(I)},g(N)}function h(N,k,I){return k in N?Object.defineProperty(N,k,{value:I,enumerable:!0,configurable:!0,writable:!0}):N[k]=I,N}var v=typeof navigator<"u",R=v&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,_=v&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||R)&&!window.MSStream,b=v&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,d="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",u="Hls",f="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",c="dashjs",y="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",E="flvjs",O=/www\.dropbox\.com\/.+/,C=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,F="https://videodelivery.net/{id}/manifest/video.m3u8",q=function(N){w(I,N);var k=S(I);function I(){var x;s(this,I);for(var T=arguments.length,j=new Array(T),V=0;V1&&arguments[1]!==void 0?arguments[1]:!0;this.player.currentTime=T,j||this.pause()}},{key:"setVolume",value:function(T){this.player.volume=T}},{key:"enablePIP",value:function(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,r.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}},{key:"disablePIP",value:function(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,r.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}},{key:"setPlaybackRate",value:function(T){try{this.player.playbackRate=T}catch(j){this.props.onError(j)}}},{key:"getDuration",value:function(){if(!this.player)return null;var T=this.player,j=T.duration,V=T.seekable;return j===1/0&&V.length>0?V.end(V.length-1):j}},{key:"getCurrentTime",value:function(){return this.player?this.player.currentTime:null}},{key:"getSecondsLoaded",value:function(){if(!this.player)return null;var T=this.player.buffered;if(T.length===0)return 0;var j=T.end(T.length-1),V=this.getDuration();return j>V?V:j}},{key:"getSource",value:function(T){var j=this.shouldUseHLS(T),V=this.shouldUseDASH(T),B=this.shouldUseFLV(T);if(!(T instanceof Array||(0,r.isMediaStream)(T)||j||V||B))return O.test(T)?T.replace("www.dropbox.com","dl.dropboxusercontent.com"):T}},{key:"render",value:function(){var T=this.props,j=T.url,V=T.playing,B=T.loop,ee=T.controls,oe=T.muted,ie=T.config,fe=T.width,J=T.height,K=this.shouldUseAudio(this.props),M=K?"audio":"video",z={width:fe==="auto"?fe:"100%",height:J==="auto"?J:"100%"};return n.default.createElement(M,l({ref:this.ref,src:this.getSource(j),style:z,preload:"auto",autoPlay:V||void 0,controls:ee,muted:oe,loop:B},ie.attributes),j instanceof Array&&j.map(this.renderSourceElement),ie.tracks.map(this.renderTrack))}}]),I}(n.Component);e.default=q,h(q,"displayName","FilePlayer"),h(q,"canPlay",a.canPlay.file)}(Du)),Du}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=ne,n=me,r=te;function a(s){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?a=function(m){return typeof m}:a=function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},a(s)}function i(){if(typeof WeakMap!="function")return null;var s=new WeakMap;return i=function(){return s},s}function o(s){if(s&&s.__esModule)return s;if(s===null||a(s)!=="object"&&typeof s!="function")return{default:s};var p=i();if(p&&p.has(s))return p.get(s);var m={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var P in s)if(Object.prototype.hasOwnProperty.call(s,P)){var S=w?Object.getOwnPropertyDescriptor(s,P):null;S&&(S.get||S.set)?Object.defineProperty(m,P,S):m[P]=s[P]}return m.default=s,p&&p.set(s,m),m}var l=[{key:"youtube",name:"YouTube",canPlay:r.canPlay.youtube,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return o(B2())})})},{key:"soundcloud",name:"SoundCloud",canPlay:r.canPlay.soundcloud,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return o(V2())})})},{key:"vimeo",name:"Vimeo",canPlay:r.canPlay.vimeo,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return o(W2())})})},{key:"facebook",name:"Facebook",canPlay:r.canPlay.facebook,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return o(Y2())})})},{key:"streamable",name:"Streamable",canPlay:r.canPlay.streamable,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return o(G2())})})},{key:"wistia",name:"Wistia",canPlay:r.canPlay.wistia,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return o(X2())})})},{key:"twitch",name:"Twitch",canPlay:r.canPlay.twitch,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return o(Q2())})})},{key:"dailymotion",name:"DailyMotion",canPlay:r.canPlay.dailymotion,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return o(Z2())})})},{key:"mixcloud",name:"Mixcloud",canPlay:r.canPlay.mixcloud,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return o(J2())})})},{key:"vidyard",name:"Vidyard",canPlay:r.canPlay.vidyard,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return o(eS())})})},{key:"kaltura",name:"Kaltura",canPlay:r.canPlay.kaltura,lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return o(tS())})})},{key:"file",name:"FilePlayer",canPlay:r.canPlay.file,canEnablePIP:function(p){return r.canPlay.file(p)&&(document.pictureInPictureEnabled||(0,n.supportsWebKitPresentationMode)())&&!r.AUDIO_EXTENSIONS.test(p)},lazyPlayer:(0,t.lazy)(function(){return Promise.resolve().then(function(){return o(nS())})})}];e.default=l})(J0);var jo={},Zy=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function rS(e,t){return!!(e===t||Zy(e)&&Zy(t))}function aS(e,t){if(e.length!==t.length)return!1;for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function v(d){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(f){return f.__proto__||Object.getPrototypeOf(f)},v(d)}function R(d,u,f){return u in d?Object.defineProperty(d,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[u]=f,d}var _=5e3,b=function(d){S(f,d);var u=D(f);function f(){var c;m(this,f);for(var y=arguments.length,E=new Array(y),O=0;O0&&y<1;if(F){var q=this.player.getDuration();if(!q){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(q*y,O);return}this.player.seekTo(y,O)}},{key:"render",value:function(){var y=this.props.activePlayer;return y?n.default.createElement(y,p({},this.props,{onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError})):null}}]),f}(n.Component);e.default=b,R(b,"displayName","Player"),R(b,"propTypes",a.propTypes),R(b,"defaultProps",a.defaultProps)})(S_);var Nu={},eh;function _S(){return eh||(eh=1,function(e){function t(_){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(d){return typeof d}:t=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},t(_)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(ne);function r(){if(typeof WeakMap!="function")return null;var _=new WeakMap;return r=function(){return _},_}function a(_){if(_&&_.__esModule)return _;if(_===null||t(_)!=="object"&&typeof _!="function")return{default:_};var b=r();if(b&&b.has(_))return b.get(_);var d={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in _)if(Object.prototype.hasOwnProperty.call(_,f)){var c=u?Object.getOwnPropertyDescriptor(_,f):null;c&&(c.get||c.set)?Object.defineProperty(d,f,c):d[f]=_[f]}return d.default=_,b&&b.set(_,d),d}function i(_,b){var d=Object.keys(_);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(_);b&&(u=u.filter(function(f){return Object.getOwnPropertyDescriptor(_,f).enumerable})),d.push.apply(d,u)}return d}function o(_){for(var b=1;b"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function A(_){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)},A(_)}function g(_,b,d){return b in _?Object.defineProperty(_,b,{value:d,enumerable:!0,configurable:!0,writable:!0}):_[b]=d,_}var h="64px",v={},R=function(_){m(d,_);var b=P(d);function d(){var u;l(this,d);for(var f=arguments.length,c=new Array(f),y=0;ye.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function ho(e){return ho=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ho(e)}function Te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O_(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return O_=function(){return e},e}function k_(e){if(e&&e.__esModule)return e;if(e===null||pa(e)!=="object"&&typeof e!="function")return{default:e};var t=O_();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i=r?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}var IS=(0,In.lazy)(function(){return Promise.resolve().then(function(){return k_(_S())})}),DS=typeof window<"u"&&window.document,MS=typeof fn<"u"&&fn.window&&fn.window.document,NS=Object.keys(ea.propTypes),FS=DS||MS?In.Suspense:function(){return null},Yr=[],jS=function(t,n){var r,a;return a=r=function(i){TS(l,i);var o=xS(l);function l(){var s;CS(this,l);for(var p=arguments.length,m=new Array(p),w=0;w0&&arguments[0]!==void 0?arguments[0]:"player";return s.player?s.player.getInternalPlayer(P):null}),Te(We(s),"seekTo",function(P,S,L){if(!s.player)return null;s.player.seekTo(P,S,L)}),Te(We(s),"handleReady",function(){s.props.onReady(We(s))}),Te(We(s),"getActivePlayer",(0,Fu.default)(function(P){for(var S=0,L=[].concat(Yr,ju(t));S=s||C<0||h&&F>=P}function u(){var O=t();if(d(O))return f(O);L=setTimeout(u,b(O))}function f(O){return L=void 0,v&&m?R(O):(m=w=void 0,S)}function c(){L!==void 0&&clearTimeout(L),A=0,m=D=w=L=void 0}function y(){return L===void 0?S:f(t())}function E(){var O=t(),C=d(O);if(m=arguments,w=this,D=O,C){if(L===void 0)return _(D);if(h)return clearTimeout(L),L=setTimeout(u,s),R(D)}return L===void 0&&(L=setTimeout(u,s)),S}return E.cancel=c,E.flush=y,E}return Zu=o,Zu}var Ju,_h;function T_(){if(_h)return Ju;_h=1;var e=Ya(),t=Qn(),n="[object AsyncFunction]",r="[object Function]",a="[object GeneratorFunction]",i="[object Proxy]";function o(l){if(!t(l))return!1;var s=e(l);return s==r||s==a||s==n||s==i}return Ju=o,Ju}var el,wh;function VS(){if(wh)return el;wh=1;var e=Ut(),t=e["__core-js_shared__"];return el=t,el}var tl,bh;function WS(){if(bh)return tl;bh=1;var e=VS(),t=function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function n(r){return!!t&&t in r}return tl=n,tl}var nl,Ph;function x_(){if(Ph)return nl;Ph=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return nl=n,nl}var rl,Sh;function YS(){if(Sh)return rl;Sh=1;var e=T_(),t=WS(),n=Qn(),r=x_(),a=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,o=Function.prototype,l=Object.prototype,s=o.toString,p=l.hasOwnProperty,m=RegExp("^"+s.call(p).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function w(P){if(!n(P)||t(P))return!1;var S=e(P)?m:i;return S.test(r(P))}return rl=w,rl}var al,Oh;function GS(){if(Oh)return al;Oh=1;function e(t,n){return t==null?void 0:t[n]}return al=e,al}var il,kh;function Zn(){if(kh)return il;kh=1;var e=YS(),t=GS();function n(r,a){var i=t(r,a);return e(i)?i:void 0}return il=n,il}var ol,Eh;function zo(){if(Eh)return ol;Eh=1;var e=Zn(),t=e(Object,"create");return ol=t,ol}var ul,Ch;function XS(){if(Ch)return ul;Ch=1;var e=zo();function t(){this.__data__=e?e(null):{},this.size=0}return ul=t,ul}var ll,Rh;function QS(){if(Rh)return ll;Rh=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return ll=e,ll}var sl,Th;function ZS(){if(Th)return sl;Th=1;var e=zo(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function a(i){var o=this.__data__;if(e){var l=o[i];return l===t?void 0:l}return r.call(o,i)?o[i]:void 0}return sl=a,sl}var cl,xh;function JS(){if(xh)return cl;xh=1;var e=zo(),t=Object.prototype,n=t.hasOwnProperty;function r(a){var i=this.__data__;return e?i[a]!==void 0:n.call(i,a)}return cl=r,cl}var fl,Ah;function eO(){if(Ah)return fl;Ah=1;var e=zo(),t="__lodash_hash_undefined__";function n(r,a){var i=this.__data__;return this.size+=this.has(r)?0:1,i[r]=e&&a===void 0?t:a,this}return fl=n,fl}var dl,Lh;function tO(){if(Lh)return dl;Lh=1;var e=XS(),t=QS(),n=ZS(),r=JS(),a=eO();function i(o){var l=-1,s=o==null?0:o.length;for(this.clear();++l-1}return gl=t,gl}var _l,qh;function oO(){if(qh)return _l;qh=1;var e=Uo();function t(n,r){var a=this.__data__,i=e(a,n);return i<0?(++this.size,a.push([n,r])):a[i][1]=r,this}return _l=t,_l}var wl,zh;function Ko(){if(zh)return wl;zh=1;var e=nO(),t=rO(),n=aO(),r=iO(),a=oO();function i(o){var l=-1,s=o==null?0:o.length;for(this.clear();++l-1}return Fl=t,Fl}var jl,av;function wO(){if(av)return jl;av=1;function e(t,n,r){for(var a=-1,i=t==null?0:t.length;++a=o&&(S=i,L=!1,p=new e(p));e:for(;++P0&&i(m)?a>1?n(m,a-1,i,o,l):e(l,m):o||(l[l.length]=m)}return l}return Yl=n,Yl}var Gl,hv;function Xa(){if(hv)return Gl;hv=1;function e(t){return t}return Gl=e,Gl}var Xl,vv;function OO(){if(vv)return Xl;vv=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return Xl=e,Xl}var Ql,mv;function kO(){if(mv)return Ql;mv=1;var e=OO(),t=Math.max;function n(r,a,i){return a=t(a===void 0?r.length-1:a,0),function(){for(var o=arguments,l=-1,s=t(o.length-a,0),p=Array(s);++l0){if(++i>=e)return arguments[0]}else i=0;return a.apply(void 0,arguments)}}return ts=r,ts}var ns,Pv;function xO(){if(Pv)return ns;Pv=1;var e=RO(),t=TO(),n=t(e);return ns=n,ns}var rs,Sv;function M_(){if(Sv)return rs;Sv=1;var e=Xa(),t=kO(),n=xO();function r(a,i){return n(t(a,i,e),a+"")}return rs=r,rs}var as,Ov;function ip(){if(Ov)return as;Ov=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return as=t,as}var is,kv;function Qa(){if(kv)return is;kv=1;var e=T_(),t=ip();function n(r){return r!=null&&t(r.length)&&!e(r)}return is=n,is}var os,Ev;function AO(){if(Ev)return os;Ev=1;var e=Qa(),t=Fr();function n(r){return t(r)&&e(r)}return os=n,os}var us,Cv;function LO(){if(Cv)return us;Cv=1;var e=bO(),t=D_(),n=M_(),r=AO(),a=n(function(i,o){return r(i)?e(i,t(o,1,r,!0)):[]});return us=a,us}var ls,Rv;function N_(){if(Rv)return ls;Rv=1;function e(t,n){for(var r=-1,a=t==null?0:t.length,i=0,o=[];++r-1&&r%1==0&&rS))return!1;var D=w.get(o),A=w.get(l);if(D&&A)return D==l&&A==o;var g=-1,h=!0,v=s&a?new e:void 0;for(w.set(o,l),w.set(l,o);++gr||l&&s&&m&&!p&&!w||i&&s&&m||!a&&m||!o)return 1;if(!i&&!l&&!w&&n=p)return m;var w=a[i];return m*(w=="desc"?-1:1)}}return n.index-r.index}return Lc=t,Lc}var Ic,tg;function Uk(){if(tg)return Ic;tg=1;var e=np(),t=fp(),n=dp(),r=Fk(),a=jk(),i=rp(),o=zk(),l=Xa(),s=kt();function p(m,w,P){w.length?w=e(w,function(D){return s(D)?function(A){return t(A,D.length===1?D[0]:D)}:D}):w=[l];var S=-1;w=e(w,i(n));var L=r(m,function(D,A,g){var h=e(w,function(v){return v(D)});return{criteria:h,index:++S,value:D}});return a(L,function(D,A){return o(D,A,P)})}return Ic=p,Ic}var Dc,ng;function Kk(){if(ng)return Dc;ng=1;var e=Jd(),t=Qa(),n=op(),r=Qn();function a(i,o,l){if(!r(l))return!1;var s=typeof o;return(s=="number"?t(l)&&n(o,l.length):s=="string"&&o in l)?e(l[o],i):!1}return Dc=a,Dc}var Mc,rg;function Hk(){if(rg)return Mc;rg=1;var e=D_(),t=Uk(),n=M_(),r=Kk(),a=n(function(i,o){if(i==null)return[];var l=o.length;return l>1&&r(i,o[0],o[1])?o=[]:l>2&&r(o[0],o[1],o[2])&&(o=[o[0]]),t(i,e(o,1),[])});return Mc=a,Mc}var Nc,ag;function $k(){if(ag)return Nc;ag=1;var e=R_(),t=Qn(),n="Expected a function";function r(a,i,o){var l=!0,s=!0;if(typeof a!="function")throw new TypeError(n);return t(o)&&(l="leading"in o?!!o.leading:l,s="trailing"in o?!!o.trailing:s),e(a,i,{leading:l,maxWait:i,trailing:s})}return Nc=r,Nc}var Fc,ig;function Bk(){if(ig)return Fc;ig=1;var e=$_(),t=0;function n(r){var a=++t;return e(r)+a}return Fc=n,Fc}(function(e,t){(function(n,r){e.exports=r(R_(),LO(),Rk(),xk(),Lk(),Dk(),Mk(),Nk(),Hk(),$k(),Bk(),ne)})(fn,function(n,r,a,i,o,l,s,p,m,w,P,S){return function(){var L={654:function(A,g,h){var v,R=this&&this.__assign||function(){return R=Object.assign||function(K){for(var M,z=1,U=arguments.length;z=_e},K.getPrimaryAxisDistance=function(M,z,U){var H=M.a,W=z.a,Z=U?"y":"x";return Math.abs(W[Z]-H[Z])},K.getSecondaryAxisDistance=function(M,z,U){var H=M.a,W=M.b,Z=z.a,ae=z.b,X=U?"x":"y",re=H[X],ue=W[X],ye=Z[X],le=ae[X],_e=[];return _e.push(Math.abs(ye-re)),_e.push(Math.abs(ye-ue)),_e.push(Math.abs(le-re)),_e.push(Math.abs(le-ue)),Math.min.apply(Math,_e)},K.prototype.sortSiblingsByPriority=function(M,z,U,H){var W=this,Z=U===B||U===V,ae=K.getRefCorners(U,!1,z);return(0,E.default)(M,function(X){var re=K.getRefCorners(U,!0,X.layout),ue=K.isAdjacentSlice(ae,re,Z),ye=ue?K.getPrimaryAxisDistance:K.getSecondaryAxisDistance,le=ue?K.getSecondaryAxisDistance:K.getPrimaryAxisDistance,_e=ye(ae,re,Z),mt=le(ae,re,Z),De=5*_e+mt,Et=(De+1)/(ue?5:1);return W.log("smartNavigate","distance (primary, secondary, total weighted) for ".concat(X.focusKey," relative to ").concat(H," is"),_e,mt,De),W.log("smartNavigate","priority for ".concat(X.focusKey," relative to ").concat(H," is"),Et),W.visualDebugger&&(W.visualDebugger.drawPoint(re.a.x,re.a.y,"yellow",6),W.visualDebugger.drawPoint(re.b.x,re.b.y,"yellow",6)),Et})},K.prototype.init=function(M){var z=M===void 0?{}:M,U=z.debug,H=U!==void 0&&U,W=z.visualDebug,Z=W!==void 0&&W,ae=z.nativeMode,X=ae!==void 0&&ae,re=z.throttle,ue=re===void 0?0:re,ye=z.throttleKeypresses,le=ye!==void 0&&ye,_e=z.useGetBoundingClientRect,mt=_e!==void 0&&_e,De=z.shouldFocusDOMNode,Et=De!==void 0&&De;this.enabled||(this.enabled=!0,this.nativeMode=X,this.throttleKeypresses=le,this.useGetBoundingClientRect=mt,this.shouldFocusDOMNode=Et&&!X,this.debug=H,this.nativeMode||(Number.isInteger(ue)&&ue>0&&(this.throttle=ue),this.bindEventHandlers(),Z&&(this.visualDebugger=new x.default,this.startDrawLayouts())))},K.prototype.setThrottle=function(M){var z=M===void 0?{}:M,U=z.throttle,H=U===void 0?0:U,W=z.throttleKeypresses,Z=W!==void 0&&W;this.throttleKeypresses=Z,this.nativeMode||(this.unbindEventHandlers(),Number.isInteger(H)&&(this.throttle=H),this.bindEventHandlers())},K.prototype.startDrawLayouts=function(){var M=this,z=function(){requestAnimationFrame(function(){M.visualDebugger.clearLayouts(),(0,F.default)(M.focusableComponents,function(U,H){M.visualDebugger.drawLayout(U.layout,H,U.parentFocusKey)}),z()})};z()},K.prototype.destroy=function(){this.enabled&&(this.enabled=!1,this.nativeMode=!1,this.throttle=0,this.throttleKeypresses=!1,this.focusKey=null,this.parentsHavingFocusedChild=[],this.focusableComponents={},this.paused=!1,this.keyMap=oe,this.unbindEventHandlers())},K.prototype.getEventType=function(M){return(0,O.default)(this.getKeyMap(),function(z){return z.includes(M)})},K.prototype.bindEventHandlers=function(){var M=this;typeof window<"u"&&window.addEventListener&&(this.keyDownEventListener=function(z){if(M.paused!==!0){M.debug&&(M.logIndex+=1);var U=M.getEventType(z.keyCode);if(U){M.pressedKeys[U]=M.pressedKeys[U]?M.pressedKeys[U]+1:1,z.preventDefault(),z.stopPropagation();var H={pressedKeys:M.pressedKeys};U===ee&&M.focusKey?M.onEnterPress(H):M.onArrowPress(U,H)===!1?(M.log("keyDownEventListener","default navigation prevented"),M.visualDebugger&&M.visualDebugger.clear()):M.onKeyEvent(z)}}},this.throttle&&(this.keyDownEventListenerThrottled=(0,q.default)(this.keyDownEventListener.bind(this),this.throttle,fe)),this.keyUpEventListener=function(z){var U=M.getEventType(z.keyCode);delete M.pressedKeys[U],M.throttle&&!M.throttleKeypresses&&M.keyDownEventListenerThrottled.cancel(),U===ee&&M.focusKey&&M.onEnterRelease()},window.addEventListener("keyup",this.keyUpEventListener),window.addEventListener("keydown",this.throttle?this.keyDownEventListenerThrottled:this.keyDownEventListener))},K.prototype.unbindEventHandlers=function(){if(typeof window<"u"&&window.removeEventListener){window.removeEventListener("keyup",this.keyUpEventListener),this.keyUpEventListener=null;var M=this.throttle?this.keyDownEventListenerThrottled:this.keyDownEventListener;window.removeEventListener("keydown",M),this.keyDownEventListener=null}},K.prototype.onEnterPress=function(M){var z=this.focusableComponents[this.focusKey];z?z.focusable?z.onEnterPress&&z.onEnterPress(M):this.log("onEnterPress","componentNotFocusable"):this.log("onEnterPress","noComponent")},K.prototype.onEnterRelease=function(){var M=this.focusableComponents[this.focusKey];M?M.focusable?M.onEnterRelease&&M.onEnterRelease():this.log("onEnterRelease","componentNotFocusable"):this.log("onEnterRelease","noComponent")},K.prototype.onArrowPress=function(M,z){var U=this.focusableComponents[this.focusKey];if(U)return U&&U.onArrowPress&&U.onArrowPress(M,z);this.log("onArrowPress","noComponent")},K.prototype.navigateByDirection=function(M,z){if(this.paused!==!0&&!this.nativeMode){var U=[B,V,T,j];U.includes(M)?(this.log("navigateByDirection","direction",M),this.smartNavigate(M,null,z)):this.log("navigateByDirection","Invalid direction. You passed: `".concat(M,"`, but you can use only these: "),U)}},K.prototype.onKeyEvent=function(M){this.visualDebugger&&this.visualDebugger.clear();var z=(0,O.default)(this.getKeyMap(),function(U){return U.includes(M.keyCode)});this.smartNavigate(z,null,{event:M})},K.prototype.smartNavigate=function(M,z,U){var H=this;if(!this.nativeMode){this.log("smartNavigate","direction",M),this.log("smartNavigate","fromParentFocusKey",z),this.log("smartNavigate","this.focusKey",this.focusKey),z||(0,F.default)(this.focusableComponents,function(Re){Re.layoutUpdated=!1});var W=this.focusableComponents[z||this.focusKey];if(this.log("smartNavigate","currentComponent",W?W.focusKey:void 0,W?W.node:void 0,W),W){this.updateLayout(W.focusKey);var Z=W.parentFocusKey,ae=W.focusKey,X=W.layout,re=M===B||M===V,ue=M===B||M===j,ye=K.getCutoffCoordinate(re,ue,!1,X),le=(0,c.default)(this.focusableComponents,function(Re){if(Re.parentFocusKey===Z&&Re.focusable){H.updateLayout(Re.focusKey);var Kt=K.getCutoffCoordinate(re,ue,!0,Re.layout);return ue?Kt>=ye:Kt<=ye}return!1});if(this.debug&&(this.log("smartNavigate","currentCutoffCoordinate",ye),this.log("smartNavigate","siblings","".concat(le.length," elements:"),le.map(function(Re){return Re.focusKey}).join(", "),le.map(function(Re){return Re.node}),le.map(function(Re){return Re}))),this.visualDebugger){var _e=K.getRefCorners(M,!1,X);this.visualDebugger.drawPoint(_e.a.x,_e.a.y),this.visualDebugger.drawPoint(_e.b.x,_e.b.y)}var mt=this.sortSiblingsByPriority(le,X,M,ae),De=(0,y.default)(mt);if(this.log("smartNavigate","nextComponent",De?De.focusKey:void 0,De?De.node:void 0,De),De)this.setFocus(De.focusKey,U);else{var Et=this.focusableComponents[Z];Et&&Et.isFocusBoundary||this.smartNavigate(M,Z,U)}}}},K.prototype.saveLastFocusedChildKey=function(M,z){M&&(this.log("saveLastFocusedChildKey","".concat(M.focusKey," lastFocusedChildKey set"),z),M.lastFocusedChildKey=z)},K.prototype.log=function(M,z){for(var U=[],H=2;H0){var W=U.lastFocusedChildKey,Z=U.preferredChildFocusKey;if(this.log("getNextFocusKey","lastFocusedChildKey is",W),this.log("getNextFocusKey","preferredChildFocusKey is",Z),W&&U.saveLastFocusedChild&&this.isParticipatingFocusableComponent(W))return this.log("getNextFocusKey","lastFocusedChildKey will be focused",W),this.getNextFocusKey(W);if(Z&&this.isParticipatingFocusableComponent(Z))return this.log("getNextFocusKey","preferredChildFocusKey will be focused",Z),this.getNextFocusKey(Z);H.forEach(function(X){return z.updateLayout(X.focusKey)});var ae=function(X){var re=(0,E.default)(X,function(ue){var ye=ue.layout;return Math.abs(ye.left)+Math.abs(ye.top)});return(0,y.default)(re)}(H).focusKey;return this.log("getNextFocusKey","childKey will be focused",ae),this.getNextFocusKey(ae)}return this.log("getNextFocusKey","targetFocusKey",M),M},K.prototype.addFocusable=function(M){var z=M.focusKey,U=M.node,H=M.parentFocusKey,W=M.onEnterPress,Z=M.onEnterRelease,ae=M.onArrowPress,X=M.onFocus,re=M.onBlur,ue=M.saveLastFocusedChild,ye=M.trackChildren,le=M.onUpdateFocus,_e=M.onUpdateHasFocusedChild,mt=M.preferredChildFocusKey,De=M.autoRestoreFocus,Et=M.focusable,Re=M.isFocusBoundary;if(this.focusableComponents[z]={focusKey:z,node:U,parentFocusKey:H,onEnterPress:W,onEnterRelease:Z,onArrowPress:ae,onFocus:X,onBlur:re,onUpdateFocus:le,onUpdateHasFocusedChild:_e,saveLastFocusedChild:ue,trackChildren:ye,preferredChildFocusKey:mt,focusable:Et,isFocusBoundary:Re,autoRestoreFocus:De,lastFocusedChildKey:null,layout:{x:0,y:0,width:0,height:0,left:0,top:0,node:U},layoutUpdated:!1},!this.nativeMode){this.updateLayout(z),this.log("addFocusable","Component added: ",this.focusableComponents[z]),z===this.focusKey&&this.setFocus(z);for(var Kt=this.focusableComponents[this.focusKey];Kt;){if(Kt.parentFocusKey===z){this.updateParentsHasFocusedChild(this.focusKey,{});break}Kt=this.focusableComponents[Kt.parentFocusKey]}}},K.prototype.removeFocusable=function(M){var z=M.focusKey,U=this.focusableComponents[z];if(U){var H=U.parentFocusKey;(0,U.onUpdateFocus)(!1),this.log("removeFocusable","Component removed: ",U),delete this.focusableComponents[z];var W=this.parentsHavingFocusedChild.includes(z);this.parentsHavingFocusedChild=this.parentsHavingFocusedChild.filter(function(X){return X!==z});var Z=this.focusableComponents[H],ae=z===this.focusKey;if(Z&&Z.lastFocusedChildKey===z&&(Z.lastFocusedChildKey=null),this.nativeMode)return;(ae||W)&&Z&&Z.autoRestoreFocus&&(this.log("removeFocusable","Component removed: ",ae?"Leaf component":"Container component","Auto restoring focus to: ",H),this.setFocusDebounced(H))}},K.prototype.getNodeLayoutByFocusKey=function(M){var z=this.focusableComponents[M];return z?(this.updateLayout(z.focusKey),z.layout):null},K.prototype.setCurrentFocusedKey=function(M,z){if(this.isFocusableComponent(this.focusKey)&&M!==this.focusKey){var U=this.focusableComponents[this.focusKey];U.onUpdateFocus(!1),U.onBlur(this.getNodeLayoutByFocusKey(this.focusKey),z),this.log("setCurrentFocusedKey","onBlur",U)}if(this.focusKey=M,this.isFocusableComponent(this.focusKey)){var H=this.focusableComponents[this.focusKey];this.shouldFocusDOMNode&&H.node&&H.node.focus(),H.onUpdateFocus(!0),H.onFocus(this.getNodeLayoutByFocusKey(this.focusKey),z),this.log("setCurrentFocusedKey","onFocus",H)}},K.prototype.updateParentsHasFocusedChild=function(M,z){for(var U=this,H=[],W=this.focusableComponents[M];W;){var Z=W.parentFocusKey,ae=this.focusableComponents[Z];if(ae){var X=ae.focusKey;H.push(X)}W=ae}var re=(0,k.default)(this.parentsHavingFocusedChild,H),ue=(0,k.default)(H,this.parentsHavingFocusedChild);(0,C.default)(re,function(ye){var le=U.focusableComponents[ye];le&&le.trackChildren&&le.onUpdateHasFocusedChild(!1),U.onIntermediateNodeBecameBlurred(ye,z)}),(0,C.default)(ue,function(ye){var le=U.focusableComponents[ye];le&&le.trackChildren&&le.onUpdateHasFocusedChild(!0),U.onIntermediateNodeBecameFocused(ye,z)}),this.parentsHavingFocusedChild=H},K.prototype.updateParentsLastFocusedChild=function(M){for(var z=this.focusableComponents[M];z;){var U=z.parentFocusKey,H=this.focusableComponents[U];H&&this.saveLastFocusedChildKey(H,z.focusKey),z=H}},K.prototype.getKeyMap=function(){return this.keyMap},K.prototype.setKeyMap=function(M){this.keyMap=R(R({},this.getKeyMap()),function(z){var U={};return Object.entries(z).forEach(function(H){var W=H[0],Z=H[1];typeof Z=="number"?U[W]=[Z]:Array.isArray(Z)&&(U[W]=Z)}),U}(M))},K.prototype.isFocusableComponent=function(M){return!!this.focusableComponents[M]},K.prototype.isParticipatingFocusableComponent=function(M){return this.isFocusableComponent(M)&&this.focusableComponents[M].focusable},K.prototype.onIntermediateNodeBecameFocused=function(M,z){this.isParticipatingFocusableComponent(M)&&this.focusableComponents[M].onFocus(this.getNodeLayoutByFocusKey(M),z)},K.prototype.onIntermediateNodeBecameBlurred=function(M,z){this.isParticipatingFocusableComponent(M)&&this.focusableComponents[M].onBlur(this.getNodeLayoutByFocusKey(M),z)},K.prototype.pause=function(){this.paused=!0},K.prototype.resume=function(){this.paused=!1},K.prototype.setFocus=function(M,z){if(z===void 0&&(z={}),this.setFocusDebounced.cancel(),this.enabled){this.log("setFocus","focusKey",M);var U=this.getNextFocusKey(M);this.log("setFocus","newFocusKey",U),this.setCurrentFocusedKey(U,z),this.updateParentsHasFocusedChild(U,z),this.updateParentsLastFocusedChild(U)}},K.prototype.updateAllLayouts=function(){var M=this;this.nativeMode||(0,F.default)(this.focusableComponents,function(z,U){M.updateLayout(U)})},K.prototype.updateLayout=function(M){var z=this.focusableComponents[M];if(z&&!this.nativeMode&&!z.layoutUpdated){var U=z.node,H=this.useGetBoundingClientRect?(0,I.getBoundingClientRect)(U):(0,I.default)(U);z.layout=R(R({},H),{node:U})}},K.prototype.updateFocusable=function(M,z){var U=z.node,H=z.preferredChildFocusKey,W=z.focusable,Z=z.isFocusBoundary,ae=z.onEnterPress,X=z.onEnterRelease,re=z.onArrowPress,ue=z.onFocus,ye=z.onBlur;if(!this.nativeMode){var le=this.focusableComponents[M];le&&(le.preferredChildFocusKey=H,le.focusable=W,le.isFocusBoundary=Z,le.onEnterPress=ae,le.onEnterRelease=X,le.onArrowPress=re,le.onFocus=ue,le.onBlur=ye,U&&(le.node=U))}},K.prototype.isNativeMode=function(){return this.nativeMode},K}();g.SpatialNavigation=new J,g.init=g.SpatialNavigation.init,g.setThrottle=g.SpatialNavigation.setThrottle,g.destroy=g.SpatialNavigation.destroy,g.setKeyMap=g.SpatialNavigation.setKeyMap},35:function(A,g){Object.defineProperty(g,"__esModule",{value:!0});var h=typeof window<"u"&&window.document,v=h?window.innerWidth:0,R=h?window.innerHeight:0,_=function(){function b(){h&&(this.debugCtx=b.createCanvas("sn-debug","1010"),this.layoutsCtx=b.createCanvas("sn-layouts","1000"))}return b.createCanvas=function(d,u){var f=document.querySelector("#".concat(d))||document.createElement("canvas");f.setAttribute("id",d);var c=f.getContext("2d");return f.style.zIndex=u,f.style.position="fixed",f.style.top="0",f.style.left="0",document.body.appendChild(f),f.width=v,f.height=R,c},b.prototype.clear=function(){h&&this.debugCtx.clearRect(0,0,v,R)},b.prototype.clearLayouts=function(){h&&this.layoutsCtx.clearRect(0,0,v,R)},b.prototype.drawLayout=function(d,u,f){h&&(this.layoutsCtx.strokeStyle="green",this.layoutsCtx.strokeRect(d.left,d.top,d.width,d.height),this.layoutsCtx.font="8px monospace",this.layoutsCtx.fillStyle="red",this.layoutsCtx.fillText(u,d.left,d.top+10),this.layoutsCtx.fillText(f,d.left,d.top+25),this.layoutsCtx.fillText("left: ".concat(d.left),d.left,d.top+40),this.layoutsCtx.fillText("top: ".concat(d.top),d.left,d.top+55))},b.prototype.drawPoint=function(d,u,f,c){f===void 0&&(f="blue"),c===void 0&&(c=10),h&&(this.debugCtx.strokeStyle=f,this.debugCtx.lineWidth=3,this.debugCtx.strokeRect(d-c/2,u-c/2,c,c))},b}();g.default=_},607:function(A,g,h){var v=this&&this.__createBinding||(Object.create?function(_,b,d,u){u===void 0&&(u=d);var f=Object.getOwnPropertyDescriptor(b,d);f&&!("get"in f?!b.__esModule:f.writable||f.configurable)||(f={enumerable:!0,get:function(){return b[d]}}),Object.defineProperty(_,u,f)}:function(_,b,d,u){u===void 0&&(u=d),_[u]=b[d]}),R=this&&this.__exportStar||function(_,b){for(var d in _)d==="default"||Object.prototype.hasOwnProperty.call(b,d)||v(b,_,d)};Object.defineProperty(g,"__esModule",{value:!0}),R(h(79),g),R(h(445),g),R(h(654),g)},964:function(A,g){Object.defineProperty(g,"__esModule",{value:!0}),g.getBoundingClientRect=void 0;var h=function(v){for(var R=v.offsetParent,_=v.offsetHeight,b=v.offsetWidth,d=v.offsetLeft,u=v.offsetTop;R&&R.nodeType===1;)d+=R.offsetLeft-R.scrollLeft,u+=R.offsetTop-R.scrollTop,R=R.offsetParent;return{height:_,left:d,top:u,width:b}};g.default=function(v){var R=v&&v.parentElement;if(v&&R){var _=h(R),b=h(v),d=b.height,u=b.left,f=b.top,c=b.width;return{x:u-_.left,y:f-_.top,width:c,height:d,left:u,top:f}}return{x:0,y:0,width:0,height:0,left:0,top:0}},g.getBoundingClientRect=function(v){if(v&&v.getBoundingClientRect){var R=v.getBoundingClientRect();return{x:R.x,y:R.y,width:R.width,height:R.height,left:R.left,top:R.top}}return{x:0,y:0,width:0,height:0,left:0,top:0}}},445:function(A,g,h){Object.defineProperty(g,"__esModule",{value:!0}),g.useFocusContext=g.FocusContext=void 0;var v=h(156),R=h(654);g.FocusContext=(0,v.createContext)(R.ROOT_FOCUS_KEY),g.useFocusContext=function(){return(0,v.useContext)(g.FocusContext)}},79:function(A,g,h){var v=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(g,"__esModule",{value:!0}),g.useFocusable=void 0;var R=h(156),_=v(h(604)),b=v(h(461)),d=h(654),u=h(445);g.useFocusable=function(f){var c=f===void 0?{}:f,y=c.focusable,E=y===void 0||y,O=c.saveLastFocusedChild,C=O===void 0||O,F=c.trackChildren,q=F!==void 0&&F,N=c.autoRestoreFocus,k=N===void 0||N,I=c.isFocusBoundary,x=I!==void 0&&I,T=c.focusKey,j=c.preferredChildFocusKey,V=c.onEnterPress,B=V===void 0?_.default:V,ee=c.onEnterRelease,oe=ee===void 0?_.default:ee,ie=c.onArrowPress,fe=ie===void 0?function(){return!0}:ie,J=c.onFocus,K=J===void 0?_.default:J,M=c.onBlur,z=M===void 0?_.default:M,U=c.extraProps,H=(0,R.useCallback)(function(Xe){B(U,Xe)},[B,U]),W=(0,R.useCallback)(function(){oe(U)},[oe,U]),Z=(0,R.useCallback)(function(Xe,st){return fe(Xe,U,st)},[U,fe]),ae=(0,R.useCallback)(function(Xe,st){K(Xe,U,st)},[U,K]),X=(0,R.useCallback)(function(Xe,st){z(Xe,U,st)},[U,z]),re=(0,R.useRef)(null),ue=(0,R.useState)(!1),ye=ue[0],le=ue[1],_e=(0,R.useState)(!1),mt=_e[0],De=_e[1],Et=(0,u.useFocusContext)(),Re=(0,R.useMemo)(function(){return T||(0,b.default)("sn:focusable-item-")},[T]),Kt=(0,R.useCallback)(function(Xe){Xe===void 0&&(Xe={}),d.SpatialNavigation.setFocus(Re,Xe)},[Re]);return(0,R.useEffect)(function(){var Xe=re.current;return d.SpatialNavigation.addFocusable({focusKey:Re,node:Xe,parentFocusKey:Et,preferredChildFocusKey:j,onEnterPress:H,onEnterRelease:W,onArrowPress:Z,onFocus:ae,onBlur:X,onUpdateFocus:function(st){return st===void 0&&(st=!1),le(st)},onUpdateHasFocusedChild:function(st){return st===void 0&&(st=!1),De(st)},saveLastFocusedChild:C,trackChildren:q,isFocusBoundary:x,autoRestoreFocus:k,focusable:E}),function(){d.SpatialNavigation.removeFocusable({focusKey:Re})}},[]),(0,R.useEffect)(function(){var Xe=re.current;d.SpatialNavigation.updateFocusable(Re,{node:Xe,preferredChildFocusKey:j,focusable:E,isFocusBoundary:x,onEnterPress:H,onEnterRelease:W,onArrowPress:Z,onFocus:ae,onBlur:X})},[Re,j,E,x,H,W,Z,ae,X]),{ref:re,focusSelf:Kt,focused:ye,hasFocusedChild:mt,focusKey:Re,setFocus:d.SpatialNavigation.isNativeMode()?_.default:d.SpatialNavigation.setFocus,navigateByDirection:d.SpatialNavigation.navigateByDirection,pause:d.SpatialNavigation.pause,resume:d.SpatialNavigation.resume,updateAllLayouts:d.SpatialNavigation.updateAllLayouts,getCurrentFocusKey:d.SpatialNavigation.getCurrentFocusKey}}},150:function(A){A.exports=n},117:function(A){A.exports=r},747:function(A){A.exports=a},23:function(A){A.exports=i},842:function(A){A.exports=o},682:function(A){A.exports=l},784:function(A){A.exports=s},604:function(A){A.exports=p},432:function(A){A.exports=m},67:function(A){A.exports=w},461:function(A){A.exports=P},156:function(A){A.exports=S}},D={};return function A(g){var h=D[g];if(h!==void 0)return h.exports;var v=D[g]={exports:{}};return L[g].call(v.exports,v,v.exports,A),v.exports}(607)}()})})(E_);var vo=E_.exports;const og=e=>{let t;const n=new Set,r=(s,p)=>{const m=typeof s=="function"?s(t):s;if(!Object.is(m,t)){const w=t;t=p??typeof m!="object"?m:Object.assign({},t,m),n.forEach(P=>P(t,w))}},a=()=>t,l={setState:r,getState:a,subscribe:s=>(n.add(s),()=>n.delete(s)),destroy:()=>{n.clear()}};return t=e(r,a,l),l},Vk=e=>e?og(e):og;var W_={exports:{}},Y_={},G_={exports:{}},X_={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -62,9 +62,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Bo=ne,rE=nE;function aE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var iE=typeof Object.is=="function"?Object.is:aE,oE=rE.useSyncExternalStore,uE=Bo.useRef,lE=Bo.useEffect,sE=Bo.useMemo,cE=Bo.useDebugValue;Y_.useSyncExternalStoreWithSelector=function(e,t,n,r,a){var i=uE(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=sE(function(){function s(S){if(!p){if(p=!0,m=S,S=r(S),a!==void 0&&o.hasValue){var I=o.value;if(a(I,S))return w=I}return w=S}if(I=w,iE(m,S))return I;var L=r(S);return a!==void 0&&a(I,L)?I:(m=S,w=L)}var p=!1,m,w,P=n===void 0?null:n;return[function(){return s(t())},P===null?void 0:function(){return s(P())}]},[t,n,r,a]);var l=oE(e,i[0],i[1]);return lE(function(){o.hasValue=!0,o.value=l},[l]),cE(l),l};W_.exports=Y_;var fE=W_.exports;const dE=Ua(fE),{useSyncExternalStoreWithSelector:pE}=dE;function yE(e,t=e.getState,n){const r=pE(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return ne.useDebugValue(r),r}const ug=e=>{const t=typeof e=="function"?Vk(e):e,n=(r,a)=>yE(t,r,a);return Object.assign(n,t),n},hE=e=>e?ug(e):ug,vE={activity:!0,duration:0,mediaIndex:0,mediaCount:0,progress:{playedSeconds:0}},ve=hE()(e=>({...vE,actions:{setActivity:t=>e({activity:t}),setCustomToggle:t=>e({customToggle:t}),setDuration:t=>e({duration:t}),setFullscreen:t=>e({fullscreen:t}),setLight:t=>e({light:t}),setLikeToggle:t=>e({likeToggle:t}),setLoop:t=>e({loop:t}),setMediaIndex:t=>e({mediaIndex:t}),setMediaCount:t=>e({mediaCount:t}),setMuted:t=>e({muted:t}),setPlayer:t=>e({player:t}),setPlaying:t=>e({playing:t}),setProgress:t=>e({progress:{playedSeconds:t}}),setSubTitle:t=>e({subTitle:t}),setTitle:t=>e({title:t})}}));var ya=globalThis&&globalThis.__assign||function(){return ya=Object.assign||function(e){for(var t,n=1,r=arguments.length;n overrides the height property of the style prop"));var i=ya(ya({},n),{height:a?a+"px":"100vh"});return Po.createElement("div",ya({ref:t,style:i},r))});gE.displayName="Div100vh";function Q_(){var e=ne.useState(sg),t=e[0],n=e[1],r=_E();return ne.useEffect(function(){if(!r)return;function a(){var i=sg();n(i)}return window.addEventListener("resize",a),function(){return window.removeEventListener("resize",a)}},[r]),r?t:null}function sg(){return Z_()?window.innerHeight:null}function _E(){var e=ne.useState(!1),t=e[0],n=e[1];return ne.useEffect(function(){Z_()&&n(!0)},[]),t}function Z_(){return typeof window<"u"&&typeof document<"u"}function cg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Y(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n{const t=typeof e=="function"?Vk(e):e,n=(r,a)=>yE(t,r,a);return Object.assign(n,t),n},hE=e=>e?ug(e):ug,vE={activity:!0,duration:0,mediaIndex:0,mediaCount:0,progress:{playedSeconds:0}},ve=hE()(e=>({...vE,actions:{setActivity:t=>e({activity:t}),setCustomToggle:t=>e({customToggle:t}),setDuration:t=>e({duration:t}),setFullscreen:t=>e({fullscreen:t}),setLight:t=>e({light:t}),setLikeToggle:t=>e({likeToggle:t}),setLoop:t=>e({loop:t}),setMediaIndex:t=>e({mediaIndex:t}),setMediaCount:t=>e({mediaCount:t}),setMuted:t=>e({muted:t}),setPlayer:t=>e({player:t}),setPlaying:t=>e({playing:t}),setProgress:t=>e({progress:{playedSeconds:t}}),setSubTitle:t=>e({subTitle:t}),setTitle:t=>e({title:t})}}));var ya=globalThis&&globalThis.__assign||function(){return ya=Object.assign||function(e){for(var t,n=1,r=arguments.length;n overrides the height property of the style prop"));var i=ya(ya({},n),{height:a?a+"px":"100vh"});return Po.createElement("div",ya({ref:t,style:i},r))});gE.displayName="Div100vh";function Q_(){var e=ne.useState(sg),t=e[0],n=e[1],r=_E();return ne.useEffect(function(){if(!r)return;function a(){var i=sg();n(i)}return window.addEventListener("resize",a),function(){return window.removeEventListener("resize",a)}},[r]),r?t:null}function sg(){return Z_()?window.innerHeight:null}function _E(){var e=ne.useState(!1),t=e[0],n=e[1];return ne.useEffect(function(){Z_()&&n(!0)},[]),t}function Z_(){return typeof window<"u"&&typeof document<"u"}function cg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Y(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1;a--){var i=n[a],o=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=i)}return Se.head.insertBefore(t,r),e}}var $E="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function za(){for(var e=12,t="";e-- >0;)t+=$E[Math.random()*62|0];return t}function jr(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function gp(e){return e.classList?jr(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function cw(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function BE(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(cw(e[n]),'" ')},"").trim()}function Vo(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function _p(e){return e.size!==jt.size||e.x!==jt.x||e.y!==jt.y||e.rotate!==jt.rotate||e.flipX||e.flipY}function VE(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,a={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),l="rotate(".concat(t.rotate," 0 0)"),s={transform:"".concat(i," ").concat(o," ").concat(l)},p={transform:"translate(".concat(r/2*-1," -256)")};return{outer:a,inner:s,path:p}}function WE(e){var t=e.transform,n=e.width,r=n===void 0?Hf:n,a=e.height,i=a===void 0?Hf:a,o=e.startCentered,l=o===void 0?!1:o,s="";return l&&rw?s+="translate(".concat(t.x/on-r/2,"em, ").concat(t.y/on-i/2,"em) "):l?s+="translate(calc(-50% + ".concat(t.x/on,"em), calc(-50% + ").concat(t.y/on,"em)) "):s+="translate(".concat(t.x/on,"em, ").concat(t.y/on,"em) "),s+="scale(".concat(t.size/on*(t.flipX?-1:1),", ").concat(t.size/on*(t.flipY?-1:1),") "),s+="rotate(".concat(t.rotate,"deg) "),s}var YE=`:root, :host { +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var dg=function(){},yp={},ew={},tw=null,nw={mark:dg,measure:dg};try{typeof window<"u"&&(yp=window),typeof document<"u"&&(ew=document),typeof MutationObserver<"u"&&(tw=MutationObserver),typeof performance<"u"&&(nw=performance)}catch{}var RE=yp.navigator||{},pg=RE.userAgent,yg=pg===void 0?"":pg,kn=yp,Se=ew,hg=tw,_i=nw;kn.document;var rn=!!Se.documentElement&&!!Se.head&&typeof Se.addEventListener=="function"&&typeof Se.createElement=="function",rw=~yg.indexOf("MSIE")||~yg.indexOf("Trident/"),wi,bi,Pi,Si,Oi,Zt="___FONT_AWESOME___",Hf=16,aw="fa",iw="svg-inline--fa",Wn="data-fa-i2svg",$f="data-fa-pseudo-element",TE="data-fa-pseudo-element-pending",hp="data-prefix",vp="data-icon",vg="fontawesome-i2svg",xE="async",AE=["HTML","HEAD","STYLE","SCRIPT"],ow=function(){try{return!0}catch{return!1}}(),be="classic",Ae="sharp",mp=[be,Ae];function Ja(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[be]}})}var Na=Ja((wi={},je(wi,be,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),je(wi,Ae,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light"}),wi)),Fa=Ja((bi={},je(bi,be,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),je(bi,Ae,{solid:"fass",regular:"fasr",light:"fasl"}),bi)),ja=Ja((Pi={},je(Pi,be,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),je(Pi,Ae,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light"}),Pi)),LE=Ja((Si={},je(Si,be,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),je(Si,Ae,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl"}),Si)),IE=/fa(s|r|l|t|d|b|k|ss|sr|sl)?[\-\ ]/,uw="fa-layers-text",DE=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,ME=Ja((Oi={},je(Oi,be,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),je(Oi,Ae,{900:"fass",400:"fasr",300:"fasl"}),Oi)),lw=[1,2,3,4,5,6,7,8,9,10],NE=lw.concat([11,12,13,14,15,16,17,18,19,20]),FE=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Fn={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},qa=new Set;Object.keys(Fa[be]).map(qa.add.bind(qa));Object.keys(Fa[Ae]).map(qa.add.bind(qa));var jE=[].concat(mp,Za(qa),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Fn.GROUP,Fn.SWAP_OPACITY,Fn.PRIMARY,Fn.SECONDARY]).concat(lw.map(function(e){return"".concat(e,"x")})).concat(NE.map(function(e){return"w-".concat(e)})),ha=kn.FontAwesomeConfig||{};function qE(e){var t=Se.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function zE(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(Se&&typeof Se.querySelector=="function"){var UE=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];UE.forEach(function(e){var t=pp(e,2),n=t[0],r=t[1],a=zE(qE(n));a!=null&&(ha[r]=a)})}var sw={styleDefault:"solid",familyDefault:"classic",cssPrefix:aw,replacementClass:iw,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};ha.familyPrefix&&(ha.cssPrefix=ha.familyPrefix);var Ir=Y(Y({},sw),ha);Ir.autoReplaceSvg||(Ir.observeMutations=!1);var Q={};Object.keys(sw).forEach(function(e){Object.defineProperty(Q,e,{enumerable:!0,set:function(n){Ir[e]=n,va.forEach(function(r){return r(Q)})},get:function(){return Ir[e]}})});Object.defineProperty(Q,"familyPrefix",{enumerable:!0,set:function(t){Ir.cssPrefix=t,va.forEach(function(n){return n(Q)})},get:function(){return Ir.cssPrefix}});kn.FontAwesomeConfig=Q;var va=[];function KE(e){return va.push(e),function(){va.splice(va.indexOf(e),1)}}var on=Hf,jt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function HE(e){if(!(!e||!rn)){var t=Se.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=Se.head.childNodes,r=null,a=n.length-1;a>-1;a--){var i=n[a],o=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=i)}return Se.head.insertBefore(t,r),e}}var $E="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function za(){for(var e=12,t="";e-- >0;)t+=$E[Math.random()*62|0];return t}function jr(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function gp(e){return e.classList?jr(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function cw(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function BE(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(cw(e[n]),'" ')},"").trim()}function Vo(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function _p(e){return e.size!==jt.size||e.x!==jt.x||e.y!==jt.y||e.rotate!==jt.rotate||e.flipX||e.flipY}function VE(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,a={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),l="rotate(".concat(t.rotate," 0 0)"),s={transform:"".concat(i," ").concat(o," ").concat(l)},p={transform:"translate(".concat(r/2*-1," -256)")};return{outer:a,inner:s,path:p}}function WE(e){var t=e.transform,n=e.width,r=n===void 0?Hf:n,a=e.height,i=a===void 0?Hf:a,o=e.startCentered,l=o===void 0?!1:o,s="";return l&&rw?s+="translate(".concat(t.x/on-r/2,"em, ").concat(t.y/on-i/2,"em) "):l?s+="translate(calc(-50% + ".concat(t.x/on,"em), calc(-50% + ").concat(t.y/on,"em)) "):s+="translate(".concat(t.x/on,"em, ").concat(t.y/on,"em) "),s+="scale(".concat(t.size/on*(t.flipX?-1:1),", ").concat(t.size/on*(t.flipY?-1:1),") "),s+="rotate(".concat(t.rotate,"deg) "),s}var YE=`:root, :host { --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid"; --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular"; --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light"; @@ -820,7 +820,7 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { .fad.fa-inverse, .fa-duotone.fa-inverse { color: var(--fa-inverse, #fff); -}`;function fw(){var e=aw,t=iw,n=Z.cssPrefix,r=Z.replacementClass,a=YE;if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(t),"g");a=a.replace(i,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(l,".".concat(r))}return a}var mg=!1;function qc(){Z.autoAddCss&&!mg&&(HE(fw()),mg=!0)}var GE={mixout:function(){return{dom:{css:fw,insertCss:qc}}},hooks:function(){return{beforeDOMElementCreation:function(){qc()},beforeI2svg:function(){qc()}}}},Jt=kn||{};Jt[Zt]||(Jt[Zt]={});Jt[Zt].styles||(Jt[Zt].styles={});Jt[Zt].hooks||(Jt[Zt].hooks={});Jt[Zt].shims||(Jt[Zt].shims=[]);var At=Jt[Zt],dw=[],XE=function e(){Se.removeEventListener("DOMContentLoaded",e),go=1,dw.map(function(t){return t()})},go=!1;rn&&(go=(Se.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Se.readyState),go||Se.addEventListener("DOMContentLoaded",XE));function QE(e){rn&&(go?setTimeout(e,0):dw.push(e))}function ei(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,a=e.children,i=a===void 0?[]:a;return typeof e=="string"?cw(e):"<".concat(t," ").concat(BE(r),">").concat(i.map(ei).join(""),"")}function gg(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var ZE=function(t,n){return function(r,a,i,o){return t.call(n,r,a,i,o)}},zc=function(t,n,r,a){var i=Object.keys(t),o=i.length,l=a!==void 0?ZE(n,a):n,s,p,m;for(r===void 0?(s=1,m=t[i[0]]):(s=0,m=r);s=55296&&a<=56319&&n=55296&&r<=56319&&n>t+1&&(a=e.charCodeAt(t+1),a>=56320&&a<=57343)?(r-55296)*1024+a-56320+65536:r}function _g(e){return Object.keys(e).reduce(function(t,n){var r=e[n],a=!!r.icon;return a?t[r.iconName]=r.icon:t[n]=r,t},{})}function Vf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,a=r===void 0?!1:r,i=_g(t);typeof At.hooks.addPack=="function"&&!a?At.hooks.addPack(e,_g(t)):At.styles[e]=Y(Y({},At.styles[e]||{}),i),e==="fas"&&Vf("fa",t)}var ki,Ei,Ci,yr=At.styles,t3=At.shims,n3=(ki={},je(ki,be,Object.values(ja[be])),je(ki,Ae,Object.values(ja[Ae])),ki),wp=null,pw={},yw={},hw={},vw={},mw={},r3=(Ei={},je(Ei,be,Object.keys(Na[be])),je(Ei,Ae,Object.keys(Na[Ae])),Ei);function a3(e){return~jE.indexOf(e)}function i3(e,t){var n=t.split("-"),r=n[0],a=n.slice(1).join("-");return r===e&&a!==""&&!a3(a)?a:null}var gw=function(){var t=function(i){return zc(yr,function(o,l,s){return o[s]=zc(l,i,{}),o},{})};pw=t(function(a,i,o){if(i[3]&&(a[i[3]]=o),i[2]){var l=i[2].filter(function(s){return typeof s=="number"});l.forEach(function(s){a[s.toString(16)]=o})}return a}),yw=t(function(a,i,o){if(a[o]=o,i[2]){var l=i[2].filter(function(s){return typeof s=="string"});l.forEach(function(s){a[s]=o})}return a}),mw=t(function(a,i,o){var l=i[2];return a[o]=o,l.forEach(function(s){a[s]=o}),a});var n="far"in yr||Z.autoFetchSvg,r=zc(t3,function(a,i){var o=i[0],l=i[1],s=i[2];return l==="far"&&!n&&(l="fas"),typeof o=="string"&&(a.names[o]={prefix:l,iconName:s}),typeof o=="number"&&(a.unicodes[o.toString(16)]={prefix:l,iconName:s}),a},{names:{},unicodes:{}});hw=r.names,vw=r.unicodes,wp=Wo(Z.styleDefault,{family:Z.familyDefault})};KE(function(e){wp=Wo(e.styleDefault,{family:Z.familyDefault})});gw();function bp(e,t){return(pw[e]||{})[t]}function o3(e,t){return(yw[e]||{})[t]}function jn(e,t){return(mw[e]||{})[t]}function _w(e){return hw[e]||{prefix:null,iconName:null}}function u3(e){var t=vw[e],n=bp("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function En(){return wp}var Pp=function(){return{prefix:null,iconName:null,rest:[]}};function Wo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?be:n,a=Na[r][e],i=Fa[r][e]||Fa[r][a],o=e in At.styles?e:null;return i||o||null}var wg=(Ci={},je(Ci,be,Object.keys(ja[be])),je(Ci,Ae,Object.keys(ja[Ae])),Ci);function Yo(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,a=r===void 0?!1:r,i=(t={},je(t,be,"".concat(Z.cssPrefix,"-").concat(be)),je(t,Ae,"".concat(Z.cssPrefix,"-").concat(Ae)),t),o=null,l=be;(e.includes(i[be])||e.some(function(p){return wg[be].includes(p)}))&&(l=be),(e.includes(i[Ae])||e.some(function(p){return wg[Ae].includes(p)}))&&(l=Ae);var s=e.reduce(function(p,m){var w=i3(Z.cssPrefix,m);if(yr[m]?(m=n3[l].includes(m)?LE[l][m]:m,o=m,p.prefix=m):r3[l].indexOf(m)>-1?(o=m,p.prefix=Wo(m,{family:l})):w?p.iconName=w:m!==Z.replacementClass&&m!==i[be]&&m!==i[Ae]&&p.rest.push(m),!a&&p.prefix&&p.iconName){var P=o==="fa"?_w(p.iconName):{},S=jn(p.prefix,p.iconName);P.prefix&&(o=null),p.iconName=P.iconName||S||p.iconName,p.prefix=P.prefix||p.prefix,p.prefix==="far"&&!yr.far&&yr.fas&&!Z.autoFetchSvg&&(p.prefix="fas")}return p},Pp());return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),!s.prefix&&l===Ae&&(yr.fass||Z.autoFetchSvg)&&(s.prefix="fass",s.iconName=jn(s.prefix,s.iconName)||s.iconName),(s.prefix==="fa"||o==="fa")&&(s.prefix=En()||"fas"),s}var l3=function(){function e(){wE(this,e),this.definitions={}}return bE(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,a=new Array(r),i=0;i0&&m.forEach(function(w){typeof w=="string"&&(n[l][w]=p)}),n[l][s]=p}),n}}]),e}(),bg=[],hr={},Sr={},s3=Object.keys(Sr);function c3(e,t){var n=t.mixoutsTo;return bg=e,hr={},Object.keys(Sr).forEach(function(r){s3.indexOf(r)===-1&&delete Sr[r]}),bg.forEach(function(r){var a=r.mixout?r.mixout():{};if(Object.keys(a).forEach(function(o){typeof a[o]=="function"&&(n[o]=a[o]),mo(a[o])==="object"&&Object.keys(a[o]).forEach(function(l){n[o]||(n[o]={}),n[o][l]=a[o][l]})}),r.hooks){var i=r.hooks();Object.keys(i).forEach(function(o){hr[o]||(hr[o]=[]),hr[o].push(i[o])})}r.provides&&r.provides(Sr)}),n}function Wf(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a1?t-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:{};return rn?(Yn("beforeI2svg",t),en("pseudoElements2svg",t),en("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;Z.autoReplaceSvg===!1&&(Z.autoReplaceSvg=!0),Z.observeMutations=!0,QE(function(){y3({autoReplaceSvgRoot:n}),Yn("watch",t)})}},p3={icon:function(t){if(t===null)return null;if(mo(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:jn(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=Wo(t[0]);return{prefix:r,iconName:jn(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(Z.cssPrefix,"-"))>-1||t.match(IE))){var a=Yo(t.split(" "),{skipLookups:!0});return{prefix:a.prefix||En(),iconName:jn(a.prefix,a.iconName)||a.iconName}}if(typeof t=="string"){var i=En();return{prefix:i,iconName:jn(i,t)||t}}}},vt={noAuto:f3,config:Z,dom:d3,parse:p3,library:ww,findIconDefinition:Yf,toHtml:ei},y3=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?Se:n;(Object.keys(At.styles).length>0||Z.autoFetchSvg)&&rn&&Z.autoReplaceSvg&&vt.dom.i2svg({node:r})};function Go(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return ei(r)})}}),Object.defineProperty(e,"node",{get:function(){if(rn){var r=Se.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function h3(e){var t=e.children,n=e.main,r=e.mask,a=e.attributes,i=e.styles,o=e.transform;if(_p(o)&&n.found&&!r.found){var l=n.width,s=n.height,p={x:l/s/2,y:.5};a.style=Vo(Y(Y({},i),{},{"transform-origin":"".concat(p.x+o.x/16,"em ").concat(p.y+o.y/16,"em")}))}return[{tag:"svg",attributes:a,children:t}]}function v3(e){var t=e.prefix,n=e.iconName,r=e.children,a=e.attributes,i=e.symbol,o=i===!0?"".concat(t,"-").concat(Z.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Y(Y({},a),{},{id:o}),children:r}]}]}function Sp(e){var t=e.icons,n=t.main,r=t.mask,a=e.prefix,i=e.iconName,o=e.transform,l=e.symbol,s=e.title,p=e.maskId,m=e.titleId,w=e.extra,P=e.watchable,S=P===void 0?!1:P,I=r.found?r:n,L=I.width,A=I.height,g=a==="fak",h=[Z.replacementClass,i?"".concat(Z.cssPrefix,"-").concat(i):""].filter(function(f){return w.classes.indexOf(f)===-1}).filter(function(f){return f!==""||!!f}).concat(w.classes).join(" "),v={children:[],attributes:Y(Y({},w.attributes),{},{"data-prefix":a,"data-icon":i,class:h,role:w.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(L," ").concat(A)})},R=g&&!~w.classes.indexOf("fa-fw")?{width:"".concat(L/A*16*.0625,"em")}:{};S&&(v.attributes[Wn]=""),s&&(v.children.push({tag:"title",attributes:{id:v.attributes["aria-labelledby"]||"title-".concat(m||za())},children:[s]}),delete v.attributes.title);var _=Y(Y({},v),{},{prefix:a,iconName:i,main:n,mask:r,maskId:p,transform:o,symbol:l,styles:Y(Y({},R),w.styles)}),b=r.found&&n.found?en("generateAbstractMask",_)||{children:[],attributes:{}}:en("generateAbstractIcon",_)||{children:[],attributes:{}},d=b.children,u=b.attributes;return _.children=d,_.attributes=u,l?v3(_):h3(_)}function Pg(e){var t=e.content,n=e.width,r=e.height,a=e.transform,i=e.title,o=e.extra,l=e.watchable,s=l===void 0?!1:l,p=Y(Y(Y({},o.attributes),i?{title:i}:{}),{},{class:o.classes.join(" ")});s&&(p[Wn]="");var m=Y({},o.styles);_p(a)&&(m.transform=WE({transform:a,startCentered:!0,width:n,height:r}),m["-webkit-transform"]=m.transform);var w=Vo(m);w.length>0&&(p.style=w);var P=[];return P.push({tag:"span",attributes:p,children:[t]}),i&&P.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),P}function m3(e){var t=e.content,n=e.title,r=e.extra,a=Y(Y(Y({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=Vo(r.styles);i.length>0&&(a.style=i);var o=[];return o.push({tag:"span",attributes:a,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}var Uc=At.styles;function Gf(e){var t=e[0],n=e[1],r=e.slice(4),a=pp(r,1),i=a[0],o=null;return Array.isArray(i)?o={tag:"g",attributes:{class:"".concat(Z.cssPrefix,"-").concat(Fn.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Z.cssPrefix,"-").concat(Fn.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(Z.cssPrefix,"-").concat(Fn.PRIMARY),fill:"currentColor",d:i[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:n,icon:o}}var g3={found:!1,width:512,height:512};function _3(e,t){!ow&&!Z.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Xf(e,t){var n=t;return t==="fa"&&Z.styleDefault!==null&&(t=En()),new Promise(function(r,a){if(en("missingIconAbstract"),n==="fa"){var i=_w(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&Uc[t]&&Uc[t][e]){var o=Uc[t][e];return r(Gf(o))}_3(e,t),r(Y(Y({},g3),{},{icon:Z.showMissingIcons&&e?en("missingIconAbstract")||{}:{}}))})}var Sg=function(){},Qf=Z.measurePerformance&&_i&&_i.mark&&_i.measure?_i:{mark:Sg,measure:Sg},ra='FA "6.4.2"',w3=function(t){return Qf.mark("".concat(ra," ").concat(t," begins")),function(){return bw(t)}},bw=function(t){Qf.mark("".concat(ra," ").concat(t," ends")),Qf.measure("".concat(ra," ").concat(t),"".concat(ra," ").concat(t," begins"),"".concat(ra," ").concat(t," ends"))},Op={begin:w3,end:bw},Ui=function(){};function Og(e){var t=e.getAttribute?e.getAttribute(Wn):null;return typeof t=="string"}function b3(e){var t=e.getAttribute?e.getAttribute(hp):null,n=e.getAttribute?e.getAttribute(vp):null;return t&&n}function P3(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Z.replacementClass)}function S3(){if(Z.autoReplaceSvg===!0)return Ki.replace;var e=Ki[Z.autoReplaceSvg];return e||Ki.replace}function O3(e){return Se.createElementNS("http://www.w3.org/2000/svg",e)}function k3(e){return Se.createElement(e)}function Pw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?O3:k3:n;if(typeof e=="string")return Se.createTextNode(e);var a=r(e.tag);Object.keys(e.attributes||[]).forEach(function(o){a.setAttribute(o,e.attributes[o])});var i=e.children||[];return i.forEach(function(o){a.appendChild(Pw(o,{ceFn:r}))}),a}function E3(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Ki={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(a){n.parentNode.insertBefore(Pw(a),n)}),n.getAttribute(Wn)===null&&Z.keepOriginalSource){var r=Se.createComment(E3(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~gp(n).indexOf(Z.replacementClass))return Ki.replace(t);var a=new RegExp("".concat(Z.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var i=r[0].attributes.class.split(" ").reduce(function(l,s){return s===Z.replacementClass||s.match(a)?l.toSvg.push(s):l.toNode.push(s),l},{toNode:[],toSvg:[]});r[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",i.toNode.join(" "))}var o=r.map(function(l){return ei(l)}).join(` -`);n.setAttribute(Wn,""),n.innerHTML=o}};function kg(e){e()}function Sw(e,t){var n=typeof t=="function"?t:Ui;if(e.length===0)n();else{var r=kg;Z.mutateApproach===xE&&(r=kn.requestAnimationFrame||kg),r(function(){var a=S3(),i=Op.begin("mutate");e.map(a),i(),n()})}}var kp=!1;function Ow(){kp=!0}function Zf(){kp=!1}var _o=null;function Eg(e){if(hg&&Z.observeMutations){var t=e.treeCallback,n=t===void 0?Ui:t,r=e.nodeCallback,a=r===void 0?Ui:r,i=e.pseudoElementsCallback,o=i===void 0?Ui:i,l=e.observeMutationsRoot,s=l===void 0?Se:l;_o=new hg(function(p){if(!kp){var m=En();jr(p).forEach(function(w){if(w.type==="childList"&&w.addedNodes.length>0&&!Og(w.addedNodes[0])&&(Z.searchPseudoElements&&o(w.target),n(w.target)),w.type==="attributes"&&w.target.parentNode&&Z.searchPseudoElements&&o(w.target.parentNode),w.type==="attributes"&&Og(w.target)&&~FE.indexOf(w.attributeName))if(w.attributeName==="class"&&b3(w.target)){var P=Yo(gp(w.target)),S=P.prefix,I=P.iconName;w.target.setAttribute(hp,S||m),I&&w.target.setAttribute(vp,I)}else P3(w.target)&&a(w.target)})}}),rn&&_o.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function C3(){_o&&_o.disconnect()}function R3(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,a){var i=a.split(":"),o=i[0],l=i.slice(1);return o&&l.length>0&&(r[o]=l.join(":").trim()),r},{})),n}function T3(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",a=Yo(gp(e));return a.prefix||(a.prefix=En()),t&&n&&(a.prefix=t,a.iconName=n),a.iconName&&a.prefix||(a.prefix&&r.length>0&&(a.iconName=o3(a.prefix,e.innerText)||bp(a.prefix,Bf(e.innerText))),!a.iconName&&Z.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(a.iconName=e.firstChild.data)),a}function x3(e){var t=jr(e.attributes).reduce(function(a,i){return a.name!=="class"&&a.name!=="style"&&(a[i.name]=i.value),a},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return Z.autoA11y&&(n?t["aria-labelledby"]="".concat(Z.replacementClass,"-title-").concat(r||za()):(t["aria-hidden"]="true",t.focusable="false")),t}function A3(){return{iconName:null,title:null,titleId:null,prefix:null,transform:jt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Cg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=T3(e),r=n.iconName,a=n.prefix,i=n.rest,o=x3(e),l=Wf("parseNodeAttributes",{},e),s=t.styleParser?R3(e):[];return Y({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:a,transform:jt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:s,attributes:o}},l)}var L3=At.styles;function kw(e){var t=Z.autoReplaceSvg==="nest"?Cg(e,{styleParser:!1}):Cg(e);return~t.extra.classes.indexOf(uw)?en("generateLayersText",e,t):en("generateSvgReplacementMutation",e,t)}var Cn=new Set;mp.map(function(e){Cn.add("fa-".concat(e))});Object.keys(Na[be]).map(Cn.add.bind(Cn));Object.keys(Na[Ae]).map(Cn.add.bind(Cn));Cn=Za(Cn);function Rg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!rn)return Promise.resolve();var n=Se.documentElement.classList,r=function(w){return n.add("".concat(vg,"-").concat(w))},a=function(w){return n.remove("".concat(vg,"-").concat(w))},i=Z.autoFetchSvg?Cn:mp.map(function(m){return"fa-".concat(m)}).concat(Object.keys(L3));i.includes("fa")||i.push("fa");var o=[".".concat(uw,":not([").concat(Wn,"])")].concat(i.map(function(m){return".".concat(m,":not([").concat(Wn,"])")})).join(", ");if(o.length===0)return Promise.resolve();var l=[];try{l=jr(e.querySelectorAll(o))}catch{}if(l.length>0)r("pending"),a("complete");else return Promise.resolve();var s=Op.begin("onTree"),p=l.reduce(function(m,w){try{var P=kw(w);P&&m.push(P)}catch(S){ow||S.name==="MissingIcon"&&console.error(S)}return m},[]);return new Promise(function(m,w){Promise.all(p).then(function(P){Sw(P,function(){r("active"),r("complete"),a("pending"),typeof t=="function"&&t(),s(),m()})}).catch(function(P){s(),w(P)})})}function I3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;kw(e).then(function(n){n&&Sw([n],t)})}function D3(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:Yf(t||{}),a=n.mask;return a&&(a=(a||{}).icon?a:Yf(a||{})),e(r,Y(Y({},n),{},{mask:a}))}}var M3=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,a=r===void 0?jt:r,i=n.symbol,o=i===void 0?!1:i,l=n.mask,s=l===void 0?null:l,p=n.maskId,m=p===void 0?null:p,w=n.title,P=w===void 0?null:w,S=n.titleId,I=S===void 0?null:S,L=n.classes,A=L===void 0?[]:L,g=n.attributes,h=g===void 0?{}:g,v=n.styles,R=v===void 0?{}:v;if(t){var _=t.prefix,b=t.iconName,d=t.icon;return Go(Y({type:"icon"},t),function(){return Yn("beforeDOMElementCreation",{iconDefinition:t,params:n}),Z.autoA11y&&(P?h["aria-labelledby"]="".concat(Z.replacementClass,"-title-").concat(I||za()):(h["aria-hidden"]="true",h.focusable="false")),Sp({icons:{main:Gf(d),mask:s?Gf(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:_,iconName:b,transform:Y(Y({},jt),a),symbol:o,title:P,maskId:m,titleId:I,extra:{attributes:h,styles:R,classes:A}})})}},N3={mixout:function(){return{icon:D3(M3)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Rg,n.nodeCallback=I3,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,a=r===void 0?Se:r,i=n.callback,o=i===void 0?function(){}:i;return Rg(a,o)},t.generateSvgReplacementMutation=function(n,r){var a=r.iconName,i=r.title,o=r.titleId,l=r.prefix,s=r.transform,p=r.symbol,m=r.mask,w=r.maskId,P=r.extra;return new Promise(function(S,I){Promise.all([Xf(a,l),m.iconName?Xf(m.iconName,m.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(L){var A=pp(L,2),g=A[0],h=A[1];S([n,Sp({icons:{main:g,mask:h},prefix:l,iconName:a,transform:s,symbol:p,maskId:w,title:i,titleId:o,extra:P,watchable:!0})])}).catch(I)})},t.generateAbstractIcon=function(n){var r=n.children,a=n.attributes,i=n.main,o=n.transform,l=n.styles,s=Vo(l);s.length>0&&(a.style=s);var p;return _p(o)&&(p=en("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),r.push(p||i.icon),{children:r,attributes:a}}}},F3={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.classes,i=a===void 0?[]:a;return Go({type:"layer"},function(){Yn("beforeDOMElementCreation",{assembler:n,params:r});var o=[];return n(function(l){Array.isArray(l)?l.map(function(s){o=o.concat(s.abstract)}):o=o.concat(l.abstract)}),[{tag:"span",attributes:{class:["".concat(Z.cssPrefix,"-layers")].concat(Za(i)).join(" ")},children:o}]})}}}},j3={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.title,i=a===void 0?null:a,o=r.classes,l=o===void 0?[]:o,s=r.attributes,p=s===void 0?{}:s,m=r.styles,w=m===void 0?{}:m;return Go({type:"counter",content:n},function(){return Yn("beforeDOMElementCreation",{content:n,params:r}),m3({content:n.toString(),title:i,extra:{attributes:p,styles:w,classes:["".concat(Z.cssPrefix,"-layers-counter")].concat(Za(l))}})})}}}},q3={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.transform,i=a===void 0?jt:a,o=r.title,l=o===void 0?null:o,s=r.classes,p=s===void 0?[]:s,m=r.attributes,w=m===void 0?{}:m,P=r.styles,S=P===void 0?{}:P;return Go({type:"text",content:n},function(){return Yn("beforeDOMElementCreation",{content:n,params:r}),Pg({content:n,transform:Y(Y({},jt),i),title:l,extra:{attributes:w,styles:S,classes:["".concat(Z.cssPrefix,"-layers-text")].concat(Za(p))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var a=r.title,i=r.transform,o=r.extra,l=null,s=null;if(rw){var p=parseInt(getComputedStyle(n).fontSize,10),m=n.getBoundingClientRect();l=m.width/p,s=m.height/p}return Z.autoA11y&&!a&&(o.attributes["aria-hidden"]="true"),Promise.resolve([n,Pg({content:n.innerHTML,width:l,height:s,transform:i,title:a,extra:o,watchable:!0})])}}},z3=new RegExp('"',"ug"),Tg=[1105920,1112319];function U3(e){var t=e.replace(z3,""),n=e3(t,0),r=n>=Tg[0]&&n<=Tg[1],a=t.length===2?t[0]===t[1]:!1;return{value:Bf(a?t[0]:t),isSecondary:r||a}}function xg(e,t){var n="".concat(TE).concat(t.replace(":","-"));return new Promise(function(r,a){if(e.getAttribute(n)!==null)return r();var i=jr(e.children),o=i.filter(function(d){return d.getAttribute($f)===t})[0],l=kn.getComputedStyle(e,t),s=l.getPropertyValue("font-family").match(DE),p=l.getPropertyValue("font-weight"),m=l.getPropertyValue("content");if(o&&!s)return e.removeChild(o),r();if(s&&m!=="none"&&m!==""){var w=l.getPropertyValue("content"),P=~["Sharp"].indexOf(s[2])?Ae:be,S=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?Fa[P][s[2].toLowerCase()]:ME[P][p],I=U3(w),L=I.value,A=I.isSecondary,g=s[0].startsWith("FontAwesome"),h=bp(S,L),v=h;if(g){var R=u3(L);R.iconName&&R.prefix&&(h=R.iconName,S=R.prefix)}if(h&&!A&&(!o||o.getAttribute(hp)!==S||o.getAttribute(vp)!==v)){e.setAttribute(n,v),o&&e.removeChild(o);var _=A3(),b=_.extra;b.attributes[$f]=t,Xf(h,S).then(function(d){var u=Sp(Y(Y({},_),{},{icons:{main:d,mask:Pp()},prefix:S,iconName:v,extra:b,watchable:!0})),f=Se.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(f,e.firstChild):e.appendChild(f),f.outerHTML=u.map(function(c){return ei(c)}).join(` -`),e.removeAttribute(n),r()}).catch(a)}else r()}else r()})}function K3(e){return Promise.all([xg(e,"::before"),xg(e,"::after")])}function H3(e){return e.parentNode!==document.head&&!~AE.indexOf(e.tagName.toUpperCase())&&!e.getAttribute($f)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Ag(e){if(rn)return new Promise(function(t,n){var r=jr(e.querySelectorAll("*")).filter(H3).map(K3),a=Op.begin("searchPseudoElements");Ow(),Promise.all(r).then(function(){a(),Zf(),t()}).catch(function(){a(),Zf(),n()})})}var $3={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=Ag,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,a=r===void 0?Se:r;Z.searchPseudoElements&&Ag(a)}}},Lg=!1,B3={mixout:function(){return{dom:{unwatch:function(){Ow(),Lg=!0}}}},hooks:function(){return{bootstrap:function(){Eg(Wf("mutationObserverCallbacks",{}))},noAuto:function(){C3()},watch:function(n){var r=n.observeMutationsRoot;Lg?Zf():Eg(Wf("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},Ig=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,a){var i=a.toLowerCase().split("-"),o=i[0],l=i.slice(1).join("-");if(o&&l==="h")return r.flipX=!0,r;if(o&&l==="v")return r.flipY=!0,r;if(l=parseFloat(l),isNaN(l))return r;switch(o){case"grow":r.size=r.size+l;break;case"shrink":r.size=r.size-l;break;case"left":r.x=r.x-l;break;case"right":r.x=r.x+l;break;case"up":r.y=r.y-l;break;case"down":r.y=r.y+l;break;case"rotate":r.rotate=r.rotate+l;break}return r},n)},V3={mixout:function(){return{parse:{transform:function(n){return Ig(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-transform");return a&&(n.transform=Ig(a)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,a=n.transform,i=n.containerWidth,o=n.iconWidth,l={transform:"translate(".concat(i/2," 256)")},s="translate(".concat(a.x*32,", ").concat(a.y*32,") "),p="scale(".concat(a.size/16*(a.flipX?-1:1),", ").concat(a.size/16*(a.flipY?-1:1),") "),m="rotate(".concat(a.rotate," 0 0)"),w={transform:"".concat(s," ").concat(p," ").concat(m)},P={transform:"translate(".concat(o/2*-1," -256)")},S={outer:l,inner:w,path:P};return{tag:"g",attributes:Y({},S.outer),children:[{tag:"g",attributes:Y({},S.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:Y(Y({},r.icon.attributes),S.path)}]}]}}}},Kc={x:0,y:0,width:"100%",height:"100%"};function Dg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function W3(e){return e.tag==="g"?e.children:[e]}var Y3={hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-mask"),i=a?Yo(a.split(" ").map(function(o){return o.trim()})):Pp();return i.prefix||(i.prefix=En()),n.mask=i,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,a=n.attributes,i=n.main,o=n.mask,l=n.maskId,s=n.transform,p=i.width,m=i.icon,w=o.width,P=o.icon,S=VE({transform:s,containerWidth:w,iconWidth:p}),I={tag:"rect",attributes:Y(Y({},Kc),{},{fill:"white"})},L=m.children?{children:m.children.map(Dg)}:{},A={tag:"g",attributes:Y({},S.inner),children:[Dg(Y({tag:m.tag,attributes:Y(Y({},m.attributes),S.path)},L))]},g={tag:"g",attributes:Y({},S.outer),children:[A]},h="mask-".concat(l||za()),v="clip-".concat(l||za()),R={tag:"mask",attributes:Y(Y({},Kc),{},{id:h,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[I,g]},_={tag:"defs",children:[{tag:"clipPath",attributes:{id:v},children:W3(P)},R]};return r.push(_,{tag:"rect",attributes:Y({fill:"currentColor","clip-path":"url(#".concat(v,")"),mask:"url(#".concat(h,")")},Kc)}),{children:r,attributes:a}}}},G3={provides:function(t){var n=!1;kn.matchMedia&&(n=kn.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],a={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:Y(Y({},a),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=Y(Y({},i),{},{attributeName:"opacity"}),l={tag:"circle",attributes:Y(Y({},a),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||l.children.push({tag:"animate",attributes:Y(Y({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Y(Y({},o),{},{values:"1;0;1;1;0;1;"})}),r.push(l),r.push({tag:"path",attributes:Y(Y({},a),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:Y(Y({},o),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:Y(Y({},a),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Y(Y({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},X3={hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-symbol"),i=a===null?!1:a===""?!0:a;return n.symbol=i,n}}}},Q3=[GE,N3,F3,j3,q3,$3,B3,V3,Y3,G3,X3];c3(Q3,{mixoutsTo:vt});vt.noAuto;vt.config;vt.library;vt.dom;var Jf=vt.parse;vt.findIconDefinition;vt.toHtml;var Z3=vt.icon;vt.layer;vt.text;vt.counter;function Mg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function yn(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function eC(e,t){if(e==null)return{};var n=J3(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ed(e){return tC(e)||nC(e)||rC(e)||aC()}function tC(e){if(Array.isArray(e))return td(e)}function nC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rC(e,t){if(e){if(typeof e=="string")return td(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return td(e,t)}}function td(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(s){return Cw(e,s)}),a=Object.keys(t.attributes||{}).reduce(function(s,p){var m=t.attributes[p];switch(p){case"class":s.attrs.className=m,delete t.attributes.class;break;case"style":s.attrs.style=sC(m);break;default:p.indexOf("aria-")===0||p.indexOf("data-")===0?s.attrs[p.toLowerCase()]=m:s.attrs[Ew(p)]=m}return s},{attrs:{}}),i=n.style,o=i===void 0?{}:i,l=eC(n,uC);return a.attrs.style=yn(yn({},a.attrs.style),o),e.apply(void 0,[t.tag,yn(yn({},a.attrs),l)].concat(ed(r)))}var Rw=!1;try{Rw=!0}catch{}function cC(){if(!Rw&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Ng(e){if(e&&wo(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Jf.icon)return Jf.icon(e);if(e===null)return null;if(e&&wo(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Hc(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?vr({},e,t):{}}var ti=Po.forwardRef(function(e,t){var n=e.icon,r=e.mask,a=e.symbol,i=e.className,o=e.title,l=e.titleId,s=e.maskId,p=Ng(n),m=Hc("classes",[].concat(ed(iC(e)),ed(i.split(" ")))),w=Hc("transform",typeof e.transform=="string"?Jf.transform(e.transform):e.transform),P=Hc("mask",Ng(r)),S=Z3(p,yn(yn(yn(yn({},m),w),P),{},{symbol:a,title:o,titleId:l,maskId:s}));if(!S)return cC("Could not find icon",p),null;var I=S.abstract,L={ref:t};return Object.keys(e).forEach(function(A){ti.defaultProps.hasOwnProperty(A)||(L[A]=e[A])}),fC(I[0],L)});ti.displayName="FontAwesomeIcon";ti.propTypes={beat:ce.bool,border:ce.bool,beatFade:ce.bool,bounce:ce.bool,className:ce.string,fade:ce.bool,flash:ce.bool,mask:ce.oneOfType([ce.object,ce.array,ce.string]),maskId:ce.string,fixedWidth:ce.bool,inverse:ce.bool,flip:ce.oneOf([!0,!1,"horizontal","vertical","both"]),icon:ce.oneOfType([ce.object,ce.array,ce.string]),listItem:ce.bool,pull:ce.oneOf(["right","left"]),pulse:ce.bool,rotation:ce.oneOf([0,90,180,270]),shake:ce.bool,size:ce.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:ce.bool,spinPulse:ce.bool,spinReverse:ce.bool,symbol:ce.oneOfType([ce.bool,ce.string]),title:ce.string,titleId:ce.string,transform:ce.oneOfType([ce.string,ce.object]),swapOpacity:ce.bool};ti.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var fC=Cw.bind(null,Po.createElement),dC={prefix:"fas",iconName:"forward-step",icon:[320,512,["step-forward"],"f051","M52.5 440.6c-9.5 7.9-22.8 9.7-34.1 4.4S0 428.4 0 416V96C0 83.6 7.2 72.3 18.4 67s24.5-3.6 34.1 4.4l192 160L256 241V96c0-17.7 14.3-32 32-32s32 14.3 32 32V416c0 17.7-14.3 32-32 32s-32-14.3-32-32V271l-11.5 9.6-192 160z"]},pC={prefix:"fas",iconName:"backward",icon:[512,512,[9194],"f04a","M459.5 440.6c9.5 7.9 22.8 9.7 34.1 4.4s18.4-16.6 18.4-29V96c0-12.4-7.2-23.7-18.4-29s-24.5-3.6-34.1 4.4L288 214.3V256v41.7L459.5 440.6zM256 352V256 128 96c0-12.4-7.2-23.7-18.4-29s-24.5-3.6-34.1 4.4l-192 160C4.2 237.5 0 246.5 0 256s4.2 18.5 11.5 24.6l192 160c9.5 7.9 22.8 9.7 34.1 4.4s18.4-16.6 18.4-29V352z"]},yC={prefix:"fas",iconName:"compress",icon:[448,512,[],"f066","M160 64c0-17.7-14.3-32-32-32s-32 14.3-32 32v64H32c-17.7 0-32 14.3-32 32s14.3 32 32 32h96c17.7 0 32-14.3 32-32V64zM32 320c-17.7 0-32 14.3-32 32s14.3 32 32 32H96v64c0 17.7 14.3 32 32 32s32-14.3 32-32V352c0-17.7-14.3-32-32-32H32zM352 64c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7 14.3 32 32 32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H352V64zM320 320c-17.7 0-32 14.3-32 32v96c0 17.7 14.3 32 32 32s32-14.3 32-32V384h64c17.7 0 32-14.3 32-32s-14.3-32-32-32H320z"]},hC={prefix:"fas",iconName:"repeat",icon:[512,512,[128257],"f363","M0 224c0 17.7 14.3 32 32 32s32-14.3 32-32c0-53 43-96 96-96H320v32c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l64-64c12.5-12.5 12.5-32.8 0-45.3l-64-64c-9.2-9.2-22.9-11.9-34.9-6.9S320 19.1 320 32V64H160C71.6 64 0 135.6 0 224zm512 64c0-17.7-14.3-32-32-32s-32 14.3-32 32c0 53-43 96-96 96H192V352c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9l-64 64c-12.5 12.5-12.5 32.8 0 45.3l64 64c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V448H352c88.4 0 160-71.6 160-160z"]},vC={prefix:"fas",iconName:"pause",icon:[320,512,[9208],"f04c","M48 64C21.5 64 0 85.5 0 112V400c0 26.5 21.5 48 48 48H80c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48H48zm192 0c-26.5 0-48 21.5-48 48V400c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48H240z"]},mC={prefix:"fas",iconName:"heart",icon:[512,512,[128153,128154,128155,128156,128420,129293,129294,129505,9829,10084,61578],"f004","M47.6 300.4L228.3 469.1c7.5 7 17.4 10.9 27.7 10.9s20.2-3.9 27.7-10.9L464.4 300.4c30.4-28.3 47.6-68 47.6-109.5v-5.8c0-69.9-50.5-129.5-119.4-141C347 36.5 300.6 51.4 268 84L256 96 244 84c-32.6-32.6-79-47.5-124.6-39.9C50.5 55.6 0 115.2 0 185.1v5.8c0 41.5 17.2 81.2 47.6 109.5z"]},gC={prefix:"fas",iconName:"volume-high",icon:[640,512,[128266,"volume-up"],"f028","M533.6 32.5C598.5 85.3 640 165.8 640 256s-41.5 170.8-106.4 223.5c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C557.5 398.2 592 331.2 592 256s-34.5-142.2-88.7-186.3c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zM473.1 107c43.2 35.2 70.9 88.9 70.9 149s-27.7 113.8-70.9 149c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C475.3 341.3 496 301.1 496 256s-20.7-85.3-53.2-111.8c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zm-60.5 74.5C434.1 199.1 448 225.9 448 256s-13.9 56.9-35.4 74.5c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C393.1 284.4 400 271 400 256s-6.9-28.4-17.7-37.3c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zM301.1 34.8C312.6 40 320 51.4 320 64V448c0 12.6-7.4 24-18.9 29.2s-25 3.1-34.4-5.3L131.8 352H64c-35.3 0-64-28.7-64-64V224c0-35.3 28.7-64 64-64h67.8L266.7 40.1c9.4-8.4 22.9-10.4 34.4-5.3z"]},_C={prefix:"fas",iconName:"backward-step",icon:[320,512,["step-backward"],"f048","M267.5 440.6c9.5 7.9 22.8 9.7 34.1 4.4s18.4-16.6 18.4-29V96c0-12.4-7.2-23.7-18.4-29s-24.5-3.6-34.1 4.4l-192 160L64 241V96c0-17.7-14.3-32-32-32S0 78.3 0 96V416c0 17.7 14.3 32 32 32s32-14.3 32-32V271l11.5 9.6 192 160z"]},wC={prefix:"fas",iconName:"forward",icon:[512,512,[9193],"f04e","M52.5 440.6c-9.5 7.9-22.8 9.7-34.1 4.4S0 428.4 0 416V96C0 83.6 7.2 72.3 18.4 67s24.5-3.6 34.1 4.4L224 214.3V256v41.7L52.5 440.6zM256 352V256 128 96c0-12.4 7.2-23.7 18.4-29s24.5-3.6 34.1 4.4l192 160c7.3 6.1 11.5 15.1 11.5 24.6s-4.2 18.5-11.5 24.6l-192 160c-9.5 7.9-22.8 9.7-34.1 4.4s-18.4-16.6-18.4-29V352z"]},bC={prefix:"fas",iconName:"ellipsis",icon:[448,512,["ellipsis-h"],"f141","M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z"]},PC={prefix:"fas",iconName:"play",icon:[384,512,[9654],"f04b","M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80V432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"]},SC={prefix:"fas",iconName:"volume-xmark",icon:[576,512,["volume-mute","volume-times"],"f6a9","M301.1 34.8C312.6 40 320 51.4 320 64V448c0 12.6-7.4 24-18.9 29.2s-25 3.1-34.4-5.3L131.8 352H64c-35.3 0-64-28.7-64-64V224c0-35.3 28.7-64 64-64h67.8L266.7 40.1c9.4-8.4 22.9-10.4 34.4-5.3zM425 167l55 55 55-55c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-55 55 55 55c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55-55 55c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l55-55-55-55c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0z"]},OC=SC,kC={prefix:"fas",iconName:"expand",icon:[448,512,[],"f065","M32 32C14.3 32 0 46.3 0 64v96c0 17.7 14.3 32 32 32s32-14.3 32-32V96h64c17.7 0 32-14.3 32-32s-14.3-32-32-32H32zM64 352c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7 14.3 32 32 32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H64V352zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32h64v64c0 17.7 14.3 32 32 32s32-14.3 32-32V64c0-17.7-14.3-32-32-32H320zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32v64H320c-17.7 0-32 14.3-32 32s14.3 32 32 32h96c17.7 0 32-14.3 32-32V352z"]},EC={prefix:"far",iconName:"heart",icon:[512,512,[128153,128154,128155,128156,128420,129293,129294,129505,9829,10084,61578],"f004","M225.8 468.2l-2.5-2.3L48.1 303.2C17.4 274.7 0 234.7 0 192.8v-3.3c0-70.4 50-130.8 119.2-144C158.6 37.9 198.9 47 231 69.6c9 6.4 17.4 13.8 25 22.3c4.2-4.8 8.7-9.2 13.5-13.3c3.7-3.2 7.5-6.2 11.5-9c0 0 0 0 0 0C313.1 47 353.4 37.9 392.8 45.4C462 58.6 512 119.1 512 189.5v3.3c0 41.9-17.4 81.9-48.1 110.4L288.7 465.9l-2.5 2.3c-8.2 7.6-19 11.9-30.2 11.9s-22-4.2-30.2-11.9zM239.1 145c-.4-.3-.7-.7-1-1.1l-17.8-20c0 0-.1-.1-.1-.1c0 0 0 0 0 0c-23.1-25.9-58-37.7-92-31.2C81.6 101.5 48 142.1 48 189.5v3.3c0 28.5 11.9 55.8 32.8 75.2L256 430.7 431.2 268c20.9-19.4 32.8-46.7 32.8-75.2v-3.3c0-47.3-33.6-88-80.1-96.9c-34-6.5-69 5.4-92 31.2c0 0 0 0-.1 .1s0 0-.1 .1l-17.8 20c-.3 .4-.7 .7-1 1.1c-4.5 4.5-10.6 7-16.9 7s-12.4-2.5-16.9-7z"]};const CC=4e3,RC=()=>{const e=ne.useRef(null),t=ve(l=>l.actions),n=ve(l=>l.activity),r=ve(l=>l.playing),a=ne.useCallback(l=>{e.current&&clearTimeout(e.current),!(!l||!r)&&(e.current=window.setTimeout(()=>{t.setActivity(!1)},CC))},[t,r]),i=ne.useCallback(l=>{t.setActivity(!0),a(n),!n&&l.stopPropagation()},[n,t,a]),o=ne.useCallback(()=>{r&&n&&t.setActivity(!1)},[r,n,t]);ne.useEffect(()=>{a(n)},[n,a]),ne.useEffect(()=>(document.addEventListener("click",i),document.addEventListener("mousemove",i),document.addEventListener("keydown",i),document.addEventListener("mouseleave",o),()=>{document.removeEventListener("click",i),document.removeEventListener("mousemove",i),document.removeEventListener("keydown",i),document.removeEventListener("mouseleave",o)}),[i,o])};const Fg=e=>{if(isNaN(e))return;let t=e;const n=Math.floor(t/3600);t%=3600;let r=String(Math.floor(t/60)),a=String(Math.floor(t%60));return a=a.padStart(2,"0"),n>0?(r=r.padStart(2,"0"),`${n}:${r}:${a}`):`${r}:${a}`},TC=e=>{const{onLoopPress:t,onLikePress:n,onPreviousPress:r,onSkipBackPress:a,onSkipForwardPress:i,onSkipReleasePress:o,onNextPress:l,onMutePress:s,onFullscreenPress:p,withTopCover:m,customButtons:w}=e,{focusKey:P,ref:S}=vo.useFocusable();RC();const I=Q_(),L=ve(X=>X.actions),A=ve(X=>X.activity),g=ve(X=>X.duration),h=ve(X=>X.fullscreen),v=ve(X=>X.light),R=ve(X=>X.likeToggle),_=ve(X=>X.loop),b=ve(X=>X.mediaIndex)||0,d=ve(X=>X.mediaCount),u=ve(X=>X.muted),f=ve(X=>X.player),c=ve(X=>X.playing),y=ve(X=>X.progress),E=ve(X=>X.subTitle),k=ve(X=>X.title),C=g/30,F=d&&d>1,q=w!==null&&w||[{action:"loop",align:"left"},{action:F?"previous":"skipback"},{action:"playpause"},{action:F?"next":"skipforward"},{action:"mute",align:"right"}],N=()=>{L.setLoop(!_),t==null||t()},O=()=>{L.setPlaying(!c),L.setLight(!1)},D=()=>{L.setMuted(!u),s==null||s()},x=()=>{L.setFullscreen(!h),p==null||p()},T=()=>{b&&b>0&&L.setMediaIndex(b-1),r==null||r()},j=()=>{f&&f.seekTo(f.getCurrentTime()-C),a==null||a()},V=()=>{f&&f.seekTo(f.getCurrentTime()+C),i==null||i()},B=()=>{d&&b{!c&&O(),o==null||o()},re={loop:{action:"loop",label:_?"Looping":"Loop",onPress:N,faIcon:hC,isSelectedFill:_},like:{action:"like",label:R?"Liked":"Like",onPress:n,faIcon:R?mC:EC},previous:{action:"previous",label:"Previous",onPress:T,faIcon:_C,disabled:b===0},skipback:{action:"skipback",label:"Skip Back",onPress:j,onRelease:ee,faIcon:pC},playpause:{action:"playpause",label:c?"Pause":"Play",onPress:O,faIcon:c?vC:PC},skipforward:{action:"skipforward",label:"Skip Forward",onPress:V,onRelease:ee,faIcon:wC},next:{action:"next",label:"Next",onPress:B,faIcon:dC,disabled:d?b===d-1:!1},mute:{action:"mute",label:u?"Muted":"Mute",onPress:D,faIcon:u?OC:gC},fullscreen:{action:"fullscreen",label:h?"Minimise":"Fullscreen",onPress:x,faIcon:h?yC:kC},custom:{action:"custom",label:"Custom"}},oe=X=>fe.jsx(fe.Fragment,{children:q.map((se,K)=>{if(se.align===X||!se.align&&X==="center")return fe.jsxs(Tw,{className:Da({"selected-fill":se.isSelectedFill||re[se.action].isSelectedFill}),focusKey:se.action,handlePress:se.onPress||re[se.action].onPress||void 0,handleRelease:se.onRelease||re[se.action].onRelease||void 0,disabled:se.disabled||re[se.action].disabled,children:[fe.jsx(ti,{icon:se.faIcon||re[se.action].faIcon||bC}),fe.jsx("small",{children:se.label||re[se.action].label})]},K)})});return fe.jsxs("div",{className:"tv-player-ui","data-testid":"tv-player-ui",style:{width:h?"100%":e.width||"100%",height:h?I||"100%":e.height||"300px"},children:[fe.jsx("div",{className:Da("tv-player-ui__cover",{hide:!A,"with-top-cover":m||!v,"light-cover":v&&!c})}),A&&fe.jsxs(fe.Fragment,{children:[fe.jsxs("div",{className:"metadata-wrapper",children:[fe.jsx("div",{className:"metadata metadata--title",children:k}),fe.jsx("div",{className:"metadata metadata--subTitle",children:E})]}),fe.jsx(vo.FocusContext.Provider,{value:P,children:fe.jsxs("div",{className:"buttons",ref:S,children:[fe.jsx("div",{className:"buttons__left",children:oe("left")}),fe.jsx("div",{className:"buttons__center",children:oe("center")}),fe.jsx("div",{className:"buttons__right",children:oe("right")})]})}),fe.jsx(xC,{currentTime:y.playedSeconds,duration:g,player:f,handleSkipForward:V,handleSkipBack:j})]})]})};function xC(e){const{currentTime:t,duration:n,player:r,handleSkipForward:a,handleSkipBack:i}=e,o=t/n*100,l=p=>{const m=p.currentTarget,P=p.nativeEvent.offsetX/m.offsetWidth;r&&r.seekTo(P*n)},s=!r||!n||t>=86400||n>=86400;return fe.jsxs("div",{className:Da("progress-bar",{hide:s}),"data-testid":"progress-bar",children:[fe.jsx("span",{"data-testid":"current-time",className:"time",children:r&&Fg(t)}),fe.jsx("span",{className:"bar-wrapper",onMouseDown:p=>p.preventDefault(),onMouseUp:l,children:fe.jsxs("div",{className:"bar",children:[!s&&fe.jsx(Tw,{style:{left:`${o}%`},className:"progress-bar-button",focusKey:"progress-bar-button",handleArrowPress:p=>p==="up"||p==="down"?!0:(p==="left"?i():a(),!1)},"progress-bar-button"),fe.jsx("span",{className:"fill",style:{width:`${o}%`}})]})}),fe.jsx("span",{"data-testid":"duration",className:"time time--duration",children:r&&Fg(n)})]})}function Tw(e){const{children:t,handlePress:n,handleRelease:r,handleArrowPress:a=()=>!0,focusKey:i,className:o,style:l,disabled:s}=e,{ref:p,focused:m,focusSelf:w}=vo.useFocusable({onEnterPress:s?void 0:n,onEnterRelease:s?void 0:r,onArrowPress:a});return ne.useEffect(()=>{i==="playpause"&&w()},[w,i]),fe.jsx("button",{style:l,"data-testid":i,className:Da(o,{focused:m,disabled:s}),onMouseDown:n,onMouseUp:r,"focus-key":i,ref:p,onMouseEnter:w,disabled:s,children:t})}function AC(e){const t=/(?:youtube\.com\/(?:[^/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?/ ]{11})/,n=e.match(t);return n?n[1]:null}const LC=e=>{vo.init({debug:!1,visualDebug:!1,throttle:100});const{onReady:t,onStart:n,onPause:r,onPlay:a,onError:i,onEnded:o,onBuffer:l}=e,s=ne.useRef(null),p=ne.useRef(null),m=ne.useRef(null),[w,P]=ne.useState(!0),S=ve(q=>q.actions),I=ve(q=>q.light),L=ve(q=>q.loop),A=ve(q=>q.muted),g=ve(q=>q.playing),h=ve(q=>q.activity),v=ve(q=>q.fullscreen),R=typeof e.url=="string"&&AC(e.url),_=e.withTopCover||!!R,b=async q=>{const O=await(await fetch(`https://noembed.com/embed?url=${q}`)).json();!e.title&&O.title&&S.setTitle(O.title),!e.subTitle&&O.author_name&&S.setSubTitle(O.author_name),O.error&&R&&S.setLight(!1),m.current&&R&&e.light&&(m.current.src=typeof e.light=="string"?e.light:`https://img.youtube.com/vi/${R}/maxresdefault.jpg`)};ne.useEffect(()=>{S.setLight(e.light),typeof e.url=="string"?b(e.url):S.setLight(!1),S.setProgress(0),S.setDuration(0)},[e.url,e.light]),ne.useEffect(()=>{S.setPlaying(e.playing),e.playing&&S.setLight(!1)},[e.playing]),ne.useEffect(()=>S.setTitle(e.title),[e.title]),ne.useEffect(()=>S.setSubTitle(e.subTitle),[e.subTitle]),ne.useEffect(()=>{S.setFullscreen(!e.disableFullscreen)},[e.disableFullscreen]),ne.useEffect(()=>S.setLoop(e.loop),[e.loop]),ne.useEffect(()=>S.setMuted(e.muted),[e.muted]),ne.useEffect(()=>S.setMediaCount(e.mediaCount),[e.mediaCount]),ne.useEffect(()=>{setTimeout(()=>S.setMediaIndex(e.mediaIndex))},[e.mediaIndex]),ne.useEffect(()=>{document.body.style.background=v?"black":"unset",document.body.style.overflow=v?"hidden":"unset",document.body.style.padding=v?"0":"revert",document.body.style.margin=v?"0":"revert",p.current.style.height=v?"100vh":"unset"},[v]);const d=()=>{S.setPlaying(!0),S.setLight(!1)},u=()=>{S.setPlaying(!1),r==null||r()},f=()=>{S.setPlaying(!0),S.setLight(!1),a==null||a()},c=q=>{S.setPlayer(q),t==null||t(q)},y=(q,N,O,D)=>{i==null||i(q,N,O,D)},E=()=>{S.setPlaying(!1),S.setActivity(!0),o==null||o()},k=q=>{S.setProgress(q.playedSeconds)},C=q=>{S.setDuration(q)},F=()=>{m.current&&(typeof e.light=="boolean"&&m.current.naturalWidth>=1280||typeof e.light=="string"?P(!1):P(!0))};return fe.jsxs("div",{className:"tv-player","data-testid":"tv-player",ref:p,style:e.style,children:[fe.jsx(qS,{"data-testid":"react-player",ref:s,url:e.url,width:v?"100%":e.width||"100%",height:v?"100%":e.height||"300px",light:!g&&I,controls:e.controls,playIcon:e.playIcon||fe.jsx(fe.Fragment,{}),loop:L,muted:A,playing:g,playbackRate:e.playbackRate,progressInterval:h?200:e.progressInterval,playsinline:e.playsinline,volume:e.volume,onPlay:f,onReady:c,onStart:()=>n==null?void 0:n(),onBuffer:()=>l==null?void 0:l(),onEnded:E,onPause:u,onDuration:C,onProgress:k,onClickPreview:d,onError:y,config:e.config||{file:{attributes:{style:{width:"100%",height:"100%",objectFit:"contain"}}}}}),fe.jsx("img",{ref:m,onError:()=>P(!0),onLoad:F,alt:"",style:{width:v?"100%":e.width||"100%",height:v?"100%":e.height||"300px"},className:Da("yt-preview",{show:!w&&I&&R&&!g})}),!e.controls&&fe.jsx(TC,{withTopCover:_,...e})]})};var IC={prefix:"fab",iconName:"github",icon:[496,512,[],"f09b","M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"]};const Gr=[{url:"https://www.youtube.com/watch?v=SkVqJ1SGeL0",title:"YouTube Video Sample",subTitle:"Caminandes 3: Llamigos",preview:!0},{url:"https://demo.unified-streaming.com/k8s/features/stable/video/tears-of-steel/tears-of-steel.ism/.m3u8",title:"HLS Stream Sample",subTitle:"Tears of Steel",preview:"https://mango.blender.org/wp-content/gallery/4k-renders/06_barley.jpg"},{title:"Dash Stream Sample",subTitle:"Elephants Dream",url:"https://rdmedia.bbc.co.uk/elephants_dream/1/client_manifest-all.mpd",preview:"https://orange.blender.org/wp-content/themes/orange/images/media/gallery/s1_proog.jpg"}];function DC(){const e=ve(i=>i.actions),t=ve(i=>i.mediaIndex)||0,n=ve(i=>i.likeToggle),r=[{action:"loop",align:"left"},{action:"like",align:"left"},{action:"previous",align:"center"},{action:"playpause",align:"center"},{action:"next",align:"center"},{action:"fullscreen",align:"right"},{action:"custom",align:"right",label:"About",faIcon:IC,onPress:()=>{window.location.href="https://github.com/lewhunt/react-tv-player"}}],a=()=>{console.log("like button pressed"),e.setLikeToggle(!n)};return fe.jsx(fe.Fragment,{children:fe.jsx(LC,{title:Gr[t].title,subTitle:Gr[t].subTitle,url:Gr[t].url,light:Gr[t].preview,customButtons:r,mediaCount:Gr.length,mediaIndex:0,onLikePress:a,playsinline:!0})})}$c.createRoot(document.getElementById("root")).render(fe.jsx(Po.StrictMode,{children:fe.jsx(DC,{})})); +}`;function fw(){var e=aw,t=iw,n=Q.cssPrefix,r=Q.replacementClass,a=YE;if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(t),"g");a=a.replace(i,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(l,".".concat(r))}return a}var mg=!1;function qc(){Q.autoAddCss&&!mg&&(HE(fw()),mg=!0)}var GE={mixout:function(){return{dom:{css:fw,insertCss:qc}}},hooks:function(){return{beforeDOMElementCreation:function(){qc()},beforeI2svg:function(){qc()}}}},Jt=kn||{};Jt[Zt]||(Jt[Zt]={});Jt[Zt].styles||(Jt[Zt].styles={});Jt[Zt].hooks||(Jt[Zt].hooks={});Jt[Zt].shims||(Jt[Zt].shims=[]);var At=Jt[Zt],dw=[],XE=function e(){Se.removeEventListener("DOMContentLoaded",e),go=1,dw.map(function(t){return t()})},go=!1;rn&&(go=(Se.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Se.readyState),go||Se.addEventListener("DOMContentLoaded",XE));function QE(e){rn&&(go?setTimeout(e,0):dw.push(e))}function ei(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,a=e.children,i=a===void 0?[]:a;return typeof e=="string"?cw(e):"<".concat(t," ").concat(BE(r),">").concat(i.map(ei).join(""),"")}function gg(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var ZE=function(t,n){return function(r,a,i,o){return t.call(n,r,a,i,o)}},zc=function(t,n,r,a){var i=Object.keys(t),o=i.length,l=a!==void 0?ZE(n,a):n,s,p,m;for(r===void 0?(s=1,m=t[i[0]]):(s=0,m=r);s=55296&&a<=56319&&n=55296&&r<=56319&&n>t+1&&(a=e.charCodeAt(t+1),a>=56320&&a<=57343)?(r-55296)*1024+a-56320+65536:r}function _g(e){return Object.keys(e).reduce(function(t,n){var r=e[n],a=!!r.icon;return a?t[r.iconName]=r.icon:t[n]=r,t},{})}function Vf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,a=r===void 0?!1:r,i=_g(t);typeof At.hooks.addPack=="function"&&!a?At.hooks.addPack(e,_g(t)):At.styles[e]=Y(Y({},At.styles[e]||{}),i),e==="fas"&&Vf("fa",t)}var ki,Ei,Ci,yr=At.styles,t3=At.shims,n3=(ki={},je(ki,be,Object.values(ja[be])),je(ki,Ae,Object.values(ja[Ae])),ki),wp=null,pw={},yw={},hw={},vw={},mw={},r3=(Ei={},je(Ei,be,Object.keys(Na[be])),je(Ei,Ae,Object.keys(Na[Ae])),Ei);function a3(e){return~jE.indexOf(e)}function i3(e,t){var n=t.split("-"),r=n[0],a=n.slice(1).join("-");return r===e&&a!==""&&!a3(a)?a:null}var gw=function(){var t=function(i){return zc(yr,function(o,l,s){return o[s]=zc(l,i,{}),o},{})};pw=t(function(a,i,o){if(i[3]&&(a[i[3]]=o),i[2]){var l=i[2].filter(function(s){return typeof s=="number"});l.forEach(function(s){a[s.toString(16)]=o})}return a}),yw=t(function(a,i,o){if(a[o]=o,i[2]){var l=i[2].filter(function(s){return typeof s=="string"});l.forEach(function(s){a[s]=o})}return a}),mw=t(function(a,i,o){var l=i[2];return a[o]=o,l.forEach(function(s){a[s]=o}),a});var n="far"in yr||Q.autoFetchSvg,r=zc(t3,function(a,i){var o=i[0],l=i[1],s=i[2];return l==="far"&&!n&&(l="fas"),typeof o=="string"&&(a.names[o]={prefix:l,iconName:s}),typeof o=="number"&&(a.unicodes[o.toString(16)]={prefix:l,iconName:s}),a},{names:{},unicodes:{}});hw=r.names,vw=r.unicodes,wp=Wo(Q.styleDefault,{family:Q.familyDefault})};KE(function(e){wp=Wo(e.styleDefault,{family:Q.familyDefault})});gw();function bp(e,t){return(pw[e]||{})[t]}function o3(e,t){return(yw[e]||{})[t]}function jn(e,t){return(mw[e]||{})[t]}function _w(e){return hw[e]||{prefix:null,iconName:null}}function u3(e){var t=vw[e],n=bp("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function En(){return wp}var Pp=function(){return{prefix:null,iconName:null,rest:[]}};function Wo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?be:n,a=Na[r][e],i=Fa[r][e]||Fa[r][a],o=e in At.styles?e:null;return i||o||null}var wg=(Ci={},je(Ci,be,Object.keys(ja[be])),je(Ci,Ae,Object.keys(ja[Ae])),Ci);function Yo(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,a=r===void 0?!1:r,i=(t={},je(t,be,"".concat(Q.cssPrefix,"-").concat(be)),je(t,Ae,"".concat(Q.cssPrefix,"-").concat(Ae)),t),o=null,l=be;(e.includes(i[be])||e.some(function(p){return wg[be].includes(p)}))&&(l=be),(e.includes(i[Ae])||e.some(function(p){return wg[Ae].includes(p)}))&&(l=Ae);var s=e.reduce(function(p,m){var w=i3(Q.cssPrefix,m);if(yr[m]?(m=n3[l].includes(m)?LE[l][m]:m,o=m,p.prefix=m):r3[l].indexOf(m)>-1?(o=m,p.prefix=Wo(m,{family:l})):w?p.iconName=w:m!==Q.replacementClass&&m!==i[be]&&m!==i[Ae]&&p.rest.push(m),!a&&p.prefix&&p.iconName){var P=o==="fa"?_w(p.iconName):{},S=jn(p.prefix,p.iconName);P.prefix&&(o=null),p.iconName=P.iconName||S||p.iconName,p.prefix=P.prefix||p.prefix,p.prefix==="far"&&!yr.far&&yr.fas&&!Q.autoFetchSvg&&(p.prefix="fas")}return p},Pp());return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),!s.prefix&&l===Ae&&(yr.fass||Q.autoFetchSvg)&&(s.prefix="fass",s.iconName=jn(s.prefix,s.iconName)||s.iconName),(s.prefix==="fa"||o==="fa")&&(s.prefix=En()||"fas"),s}var l3=function(){function e(){wE(this,e),this.definitions={}}return bE(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,a=new Array(r),i=0;i0&&m.forEach(function(w){typeof w=="string"&&(n[l][w]=p)}),n[l][s]=p}),n}}]),e}(),bg=[],hr={},Sr={},s3=Object.keys(Sr);function c3(e,t){var n=t.mixoutsTo;return bg=e,hr={},Object.keys(Sr).forEach(function(r){s3.indexOf(r)===-1&&delete Sr[r]}),bg.forEach(function(r){var a=r.mixout?r.mixout():{};if(Object.keys(a).forEach(function(o){typeof a[o]=="function"&&(n[o]=a[o]),mo(a[o])==="object"&&Object.keys(a[o]).forEach(function(l){n[o]||(n[o]={}),n[o][l]=a[o][l]})}),r.hooks){var i=r.hooks();Object.keys(i).forEach(function(o){hr[o]||(hr[o]=[]),hr[o].push(i[o])})}r.provides&&r.provides(Sr)}),n}function Wf(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a1?t-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:{};return rn?(Yn("beforeI2svg",t),en("pseudoElements2svg",t),en("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;Q.autoReplaceSvg===!1&&(Q.autoReplaceSvg=!0),Q.observeMutations=!0,QE(function(){y3({autoReplaceSvgRoot:n}),Yn("watch",t)})}},p3={icon:function(t){if(t===null)return null;if(mo(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:jn(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=Wo(t[0]);return{prefix:r,iconName:jn(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(Q.cssPrefix,"-"))>-1||t.match(IE))){var a=Yo(t.split(" "),{skipLookups:!0});return{prefix:a.prefix||En(),iconName:jn(a.prefix,a.iconName)||a.iconName}}if(typeof t=="string"){var i=En();return{prefix:i,iconName:jn(i,t)||t}}}},vt={noAuto:f3,config:Q,dom:d3,parse:p3,library:ww,findIconDefinition:Yf,toHtml:ei},y3=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?Se:n;(Object.keys(At.styles).length>0||Q.autoFetchSvg)&&rn&&Q.autoReplaceSvg&&vt.dom.i2svg({node:r})};function Go(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return ei(r)})}}),Object.defineProperty(e,"node",{get:function(){if(rn){var r=Se.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function h3(e){var t=e.children,n=e.main,r=e.mask,a=e.attributes,i=e.styles,o=e.transform;if(_p(o)&&n.found&&!r.found){var l=n.width,s=n.height,p={x:l/s/2,y:.5};a.style=Vo(Y(Y({},i),{},{"transform-origin":"".concat(p.x+o.x/16,"em ").concat(p.y+o.y/16,"em")}))}return[{tag:"svg",attributes:a,children:t}]}function v3(e){var t=e.prefix,n=e.iconName,r=e.children,a=e.attributes,i=e.symbol,o=i===!0?"".concat(t,"-").concat(Q.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Y(Y({},a),{},{id:o}),children:r}]}]}function Sp(e){var t=e.icons,n=t.main,r=t.mask,a=e.prefix,i=e.iconName,o=e.transform,l=e.symbol,s=e.title,p=e.maskId,m=e.titleId,w=e.extra,P=e.watchable,S=P===void 0?!1:P,L=r.found?r:n,D=L.width,A=L.height,g=a==="fak",h=[Q.replacementClass,i?"".concat(Q.cssPrefix,"-").concat(i):""].filter(function(f){return w.classes.indexOf(f)===-1}).filter(function(f){return f!==""||!!f}).concat(w.classes).join(" "),v={children:[],attributes:Y(Y({},w.attributes),{},{"data-prefix":a,"data-icon":i,class:h,role:w.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(D," ").concat(A)})},R=g&&!~w.classes.indexOf("fa-fw")?{width:"".concat(D/A*16*.0625,"em")}:{};S&&(v.attributes[Wn]=""),s&&(v.children.push({tag:"title",attributes:{id:v.attributes["aria-labelledby"]||"title-".concat(m||za())},children:[s]}),delete v.attributes.title);var _=Y(Y({},v),{},{prefix:a,iconName:i,main:n,mask:r,maskId:p,transform:o,symbol:l,styles:Y(Y({},R),w.styles)}),b=r.found&&n.found?en("generateAbstractMask",_)||{children:[],attributes:{}}:en("generateAbstractIcon",_)||{children:[],attributes:{}},d=b.children,u=b.attributes;return _.children=d,_.attributes=u,l?v3(_):h3(_)}function Pg(e){var t=e.content,n=e.width,r=e.height,a=e.transform,i=e.title,o=e.extra,l=e.watchable,s=l===void 0?!1:l,p=Y(Y(Y({},o.attributes),i?{title:i}:{}),{},{class:o.classes.join(" ")});s&&(p[Wn]="");var m=Y({},o.styles);_p(a)&&(m.transform=WE({transform:a,startCentered:!0,width:n,height:r}),m["-webkit-transform"]=m.transform);var w=Vo(m);w.length>0&&(p.style=w);var P=[];return P.push({tag:"span",attributes:p,children:[t]}),i&&P.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),P}function m3(e){var t=e.content,n=e.title,r=e.extra,a=Y(Y(Y({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=Vo(r.styles);i.length>0&&(a.style=i);var o=[];return o.push({tag:"span",attributes:a,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}var Uc=At.styles;function Gf(e){var t=e[0],n=e[1],r=e.slice(4),a=pp(r,1),i=a[0],o=null;return Array.isArray(i)?o={tag:"g",attributes:{class:"".concat(Q.cssPrefix,"-").concat(Fn.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Q.cssPrefix,"-").concat(Fn.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(Q.cssPrefix,"-").concat(Fn.PRIMARY),fill:"currentColor",d:i[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:n,icon:o}}var g3={found:!1,width:512,height:512};function _3(e,t){!ow&&!Q.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Xf(e,t){var n=t;return t==="fa"&&Q.styleDefault!==null&&(t=En()),new Promise(function(r,a){if(en("missingIconAbstract"),n==="fa"){var i=_w(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&Uc[t]&&Uc[t][e]){var o=Uc[t][e];return r(Gf(o))}_3(e,t),r(Y(Y({},g3),{},{icon:Q.showMissingIcons&&e?en("missingIconAbstract")||{}:{}}))})}var Sg=function(){},Qf=Q.measurePerformance&&_i&&_i.mark&&_i.measure?_i:{mark:Sg,measure:Sg},ra='FA "6.4.2"',w3=function(t){return Qf.mark("".concat(ra," ").concat(t," begins")),function(){return bw(t)}},bw=function(t){Qf.mark("".concat(ra," ").concat(t," ends")),Qf.measure("".concat(ra," ").concat(t),"".concat(ra," ").concat(t," begins"),"".concat(ra," ").concat(t," ends"))},Op={begin:w3,end:bw},Ui=function(){};function Og(e){var t=e.getAttribute?e.getAttribute(Wn):null;return typeof t=="string"}function b3(e){var t=e.getAttribute?e.getAttribute(hp):null,n=e.getAttribute?e.getAttribute(vp):null;return t&&n}function P3(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Q.replacementClass)}function S3(){if(Q.autoReplaceSvg===!0)return Ki.replace;var e=Ki[Q.autoReplaceSvg];return e||Ki.replace}function O3(e){return Se.createElementNS("http://www.w3.org/2000/svg",e)}function k3(e){return Se.createElement(e)}function Pw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?O3:k3:n;if(typeof e=="string")return Se.createTextNode(e);var a=r(e.tag);Object.keys(e.attributes||[]).forEach(function(o){a.setAttribute(o,e.attributes[o])});var i=e.children||[];return i.forEach(function(o){a.appendChild(Pw(o,{ceFn:r}))}),a}function E3(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Ki={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(a){n.parentNode.insertBefore(Pw(a),n)}),n.getAttribute(Wn)===null&&Q.keepOriginalSource){var r=Se.createComment(E3(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~gp(n).indexOf(Q.replacementClass))return Ki.replace(t);var a=new RegExp("".concat(Q.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var i=r[0].attributes.class.split(" ").reduce(function(l,s){return s===Q.replacementClass||s.match(a)?l.toSvg.push(s):l.toNode.push(s),l},{toNode:[],toSvg:[]});r[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",i.toNode.join(" "))}var o=r.map(function(l){return ei(l)}).join(` +`);n.setAttribute(Wn,""),n.innerHTML=o}};function kg(e){e()}function Sw(e,t){var n=typeof t=="function"?t:Ui;if(e.length===0)n();else{var r=kg;Q.mutateApproach===xE&&(r=kn.requestAnimationFrame||kg),r(function(){var a=S3(),i=Op.begin("mutate");e.map(a),i(),n()})}}var kp=!1;function Ow(){kp=!0}function Zf(){kp=!1}var _o=null;function Eg(e){if(hg&&Q.observeMutations){var t=e.treeCallback,n=t===void 0?Ui:t,r=e.nodeCallback,a=r===void 0?Ui:r,i=e.pseudoElementsCallback,o=i===void 0?Ui:i,l=e.observeMutationsRoot,s=l===void 0?Se:l;_o=new hg(function(p){if(!kp){var m=En();jr(p).forEach(function(w){if(w.type==="childList"&&w.addedNodes.length>0&&!Og(w.addedNodes[0])&&(Q.searchPseudoElements&&o(w.target),n(w.target)),w.type==="attributes"&&w.target.parentNode&&Q.searchPseudoElements&&o(w.target.parentNode),w.type==="attributes"&&Og(w.target)&&~FE.indexOf(w.attributeName))if(w.attributeName==="class"&&b3(w.target)){var P=Yo(gp(w.target)),S=P.prefix,L=P.iconName;w.target.setAttribute(hp,S||m),L&&w.target.setAttribute(vp,L)}else P3(w.target)&&a(w.target)})}}),rn&&_o.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function C3(){_o&&_o.disconnect()}function R3(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,a){var i=a.split(":"),o=i[0],l=i.slice(1);return o&&l.length>0&&(r[o]=l.join(":").trim()),r},{})),n}function T3(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",a=Yo(gp(e));return a.prefix||(a.prefix=En()),t&&n&&(a.prefix=t,a.iconName=n),a.iconName&&a.prefix||(a.prefix&&r.length>0&&(a.iconName=o3(a.prefix,e.innerText)||bp(a.prefix,Bf(e.innerText))),!a.iconName&&Q.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(a.iconName=e.firstChild.data)),a}function x3(e){var t=jr(e.attributes).reduce(function(a,i){return a.name!=="class"&&a.name!=="style"&&(a[i.name]=i.value),a},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return Q.autoA11y&&(n?t["aria-labelledby"]="".concat(Q.replacementClass,"-title-").concat(r||za()):(t["aria-hidden"]="true",t.focusable="false")),t}function A3(){return{iconName:null,title:null,titleId:null,prefix:null,transform:jt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Cg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=T3(e),r=n.iconName,a=n.prefix,i=n.rest,o=x3(e),l=Wf("parseNodeAttributes",{},e),s=t.styleParser?R3(e):[];return Y({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:a,transform:jt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:s,attributes:o}},l)}var L3=At.styles;function kw(e){var t=Q.autoReplaceSvg==="nest"?Cg(e,{styleParser:!1}):Cg(e);return~t.extra.classes.indexOf(uw)?en("generateLayersText",e,t):en("generateSvgReplacementMutation",e,t)}var Cn=new Set;mp.map(function(e){Cn.add("fa-".concat(e))});Object.keys(Na[be]).map(Cn.add.bind(Cn));Object.keys(Na[Ae]).map(Cn.add.bind(Cn));Cn=Za(Cn);function Rg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!rn)return Promise.resolve();var n=Se.documentElement.classList,r=function(w){return n.add("".concat(vg,"-").concat(w))},a=function(w){return n.remove("".concat(vg,"-").concat(w))},i=Q.autoFetchSvg?Cn:mp.map(function(m){return"fa-".concat(m)}).concat(Object.keys(L3));i.includes("fa")||i.push("fa");var o=[".".concat(uw,":not([").concat(Wn,"])")].concat(i.map(function(m){return".".concat(m,":not([").concat(Wn,"])")})).join(", ");if(o.length===0)return Promise.resolve();var l=[];try{l=jr(e.querySelectorAll(o))}catch{}if(l.length>0)r("pending"),a("complete");else return Promise.resolve();var s=Op.begin("onTree"),p=l.reduce(function(m,w){try{var P=kw(w);P&&m.push(P)}catch(S){ow||S.name==="MissingIcon"&&console.error(S)}return m},[]);return new Promise(function(m,w){Promise.all(p).then(function(P){Sw(P,function(){r("active"),r("complete"),a("pending"),typeof t=="function"&&t(),s(),m()})}).catch(function(P){s(),w(P)})})}function I3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;kw(e).then(function(n){n&&Sw([n],t)})}function D3(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:Yf(t||{}),a=n.mask;return a&&(a=(a||{}).icon?a:Yf(a||{})),e(r,Y(Y({},n),{},{mask:a}))}}var M3=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,a=r===void 0?jt:r,i=n.symbol,o=i===void 0?!1:i,l=n.mask,s=l===void 0?null:l,p=n.maskId,m=p===void 0?null:p,w=n.title,P=w===void 0?null:w,S=n.titleId,L=S===void 0?null:S,D=n.classes,A=D===void 0?[]:D,g=n.attributes,h=g===void 0?{}:g,v=n.styles,R=v===void 0?{}:v;if(t){var _=t.prefix,b=t.iconName,d=t.icon;return Go(Y({type:"icon"},t),function(){return Yn("beforeDOMElementCreation",{iconDefinition:t,params:n}),Q.autoA11y&&(P?h["aria-labelledby"]="".concat(Q.replacementClass,"-title-").concat(L||za()):(h["aria-hidden"]="true",h.focusable="false")),Sp({icons:{main:Gf(d),mask:s?Gf(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:_,iconName:b,transform:Y(Y({},jt),a),symbol:o,title:P,maskId:m,titleId:L,extra:{attributes:h,styles:R,classes:A}})})}},N3={mixout:function(){return{icon:D3(M3)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Rg,n.nodeCallback=I3,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,a=r===void 0?Se:r,i=n.callback,o=i===void 0?function(){}:i;return Rg(a,o)},t.generateSvgReplacementMutation=function(n,r){var a=r.iconName,i=r.title,o=r.titleId,l=r.prefix,s=r.transform,p=r.symbol,m=r.mask,w=r.maskId,P=r.extra;return new Promise(function(S,L){Promise.all([Xf(a,l),m.iconName?Xf(m.iconName,m.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(D){var A=pp(D,2),g=A[0],h=A[1];S([n,Sp({icons:{main:g,mask:h},prefix:l,iconName:a,transform:s,symbol:p,maskId:w,title:i,titleId:o,extra:P,watchable:!0})])}).catch(L)})},t.generateAbstractIcon=function(n){var r=n.children,a=n.attributes,i=n.main,o=n.transform,l=n.styles,s=Vo(l);s.length>0&&(a.style=s);var p;return _p(o)&&(p=en("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),r.push(p||i.icon),{children:r,attributes:a}}}},F3={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.classes,i=a===void 0?[]:a;return Go({type:"layer"},function(){Yn("beforeDOMElementCreation",{assembler:n,params:r});var o=[];return n(function(l){Array.isArray(l)?l.map(function(s){o=o.concat(s.abstract)}):o=o.concat(l.abstract)}),[{tag:"span",attributes:{class:["".concat(Q.cssPrefix,"-layers")].concat(Za(i)).join(" ")},children:o}]})}}}},j3={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.title,i=a===void 0?null:a,o=r.classes,l=o===void 0?[]:o,s=r.attributes,p=s===void 0?{}:s,m=r.styles,w=m===void 0?{}:m;return Go({type:"counter",content:n},function(){return Yn("beforeDOMElementCreation",{content:n,params:r}),m3({content:n.toString(),title:i,extra:{attributes:p,styles:w,classes:["".concat(Q.cssPrefix,"-layers-counter")].concat(Za(l))}})})}}}},q3={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.transform,i=a===void 0?jt:a,o=r.title,l=o===void 0?null:o,s=r.classes,p=s===void 0?[]:s,m=r.attributes,w=m===void 0?{}:m,P=r.styles,S=P===void 0?{}:P;return Go({type:"text",content:n},function(){return Yn("beforeDOMElementCreation",{content:n,params:r}),Pg({content:n,transform:Y(Y({},jt),i),title:l,extra:{attributes:w,styles:S,classes:["".concat(Q.cssPrefix,"-layers-text")].concat(Za(p))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var a=r.title,i=r.transform,o=r.extra,l=null,s=null;if(rw){var p=parseInt(getComputedStyle(n).fontSize,10),m=n.getBoundingClientRect();l=m.width/p,s=m.height/p}return Q.autoA11y&&!a&&(o.attributes["aria-hidden"]="true"),Promise.resolve([n,Pg({content:n.innerHTML,width:l,height:s,transform:i,title:a,extra:o,watchable:!0})])}}},z3=new RegExp('"',"ug"),Tg=[1105920,1112319];function U3(e){var t=e.replace(z3,""),n=e3(t,0),r=n>=Tg[0]&&n<=Tg[1],a=t.length===2?t[0]===t[1]:!1;return{value:Bf(a?t[0]:t),isSecondary:r||a}}function xg(e,t){var n="".concat(TE).concat(t.replace(":","-"));return new Promise(function(r,a){if(e.getAttribute(n)!==null)return r();var i=jr(e.children),o=i.filter(function(d){return d.getAttribute($f)===t})[0],l=kn.getComputedStyle(e,t),s=l.getPropertyValue("font-family").match(DE),p=l.getPropertyValue("font-weight"),m=l.getPropertyValue("content");if(o&&!s)return e.removeChild(o),r();if(s&&m!=="none"&&m!==""){var w=l.getPropertyValue("content"),P=~["Sharp"].indexOf(s[2])?Ae:be,S=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?Fa[P][s[2].toLowerCase()]:ME[P][p],L=U3(w),D=L.value,A=L.isSecondary,g=s[0].startsWith("FontAwesome"),h=bp(S,D),v=h;if(g){var R=u3(D);R.iconName&&R.prefix&&(h=R.iconName,S=R.prefix)}if(h&&!A&&(!o||o.getAttribute(hp)!==S||o.getAttribute(vp)!==v)){e.setAttribute(n,v),o&&e.removeChild(o);var _=A3(),b=_.extra;b.attributes[$f]=t,Xf(h,S).then(function(d){var u=Sp(Y(Y({},_),{},{icons:{main:d,mask:Pp()},prefix:S,iconName:v,extra:b,watchable:!0})),f=Se.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(f,e.firstChild):e.appendChild(f),f.outerHTML=u.map(function(c){return ei(c)}).join(` +`),e.removeAttribute(n),r()}).catch(a)}else r()}else r()})}function K3(e){return Promise.all([xg(e,"::before"),xg(e,"::after")])}function H3(e){return e.parentNode!==document.head&&!~AE.indexOf(e.tagName.toUpperCase())&&!e.getAttribute($f)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Ag(e){if(rn)return new Promise(function(t,n){var r=jr(e.querySelectorAll("*")).filter(H3).map(K3),a=Op.begin("searchPseudoElements");Ow(),Promise.all(r).then(function(){a(),Zf(),t()}).catch(function(){a(),Zf(),n()})})}var $3={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=Ag,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,a=r===void 0?Se:r;Q.searchPseudoElements&&Ag(a)}}},Lg=!1,B3={mixout:function(){return{dom:{unwatch:function(){Ow(),Lg=!0}}}},hooks:function(){return{bootstrap:function(){Eg(Wf("mutationObserverCallbacks",{}))},noAuto:function(){C3()},watch:function(n){var r=n.observeMutationsRoot;Lg?Zf():Eg(Wf("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},Ig=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,a){var i=a.toLowerCase().split("-"),o=i[0],l=i.slice(1).join("-");if(o&&l==="h")return r.flipX=!0,r;if(o&&l==="v")return r.flipY=!0,r;if(l=parseFloat(l),isNaN(l))return r;switch(o){case"grow":r.size=r.size+l;break;case"shrink":r.size=r.size-l;break;case"left":r.x=r.x-l;break;case"right":r.x=r.x+l;break;case"up":r.y=r.y-l;break;case"down":r.y=r.y+l;break;case"rotate":r.rotate=r.rotate+l;break}return r},n)},V3={mixout:function(){return{parse:{transform:function(n){return Ig(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-transform");return a&&(n.transform=Ig(a)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,a=n.transform,i=n.containerWidth,o=n.iconWidth,l={transform:"translate(".concat(i/2," 256)")},s="translate(".concat(a.x*32,", ").concat(a.y*32,") "),p="scale(".concat(a.size/16*(a.flipX?-1:1),", ").concat(a.size/16*(a.flipY?-1:1),") "),m="rotate(".concat(a.rotate," 0 0)"),w={transform:"".concat(s," ").concat(p," ").concat(m)},P={transform:"translate(".concat(o/2*-1," -256)")},S={outer:l,inner:w,path:P};return{tag:"g",attributes:Y({},S.outer),children:[{tag:"g",attributes:Y({},S.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:Y(Y({},r.icon.attributes),S.path)}]}]}}}},Kc={x:0,y:0,width:"100%",height:"100%"};function Dg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function W3(e){return e.tag==="g"?e.children:[e]}var Y3={hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-mask"),i=a?Yo(a.split(" ").map(function(o){return o.trim()})):Pp();return i.prefix||(i.prefix=En()),n.mask=i,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,a=n.attributes,i=n.main,o=n.mask,l=n.maskId,s=n.transform,p=i.width,m=i.icon,w=o.width,P=o.icon,S=VE({transform:s,containerWidth:w,iconWidth:p}),L={tag:"rect",attributes:Y(Y({},Kc),{},{fill:"white"})},D=m.children?{children:m.children.map(Dg)}:{},A={tag:"g",attributes:Y({},S.inner),children:[Dg(Y({tag:m.tag,attributes:Y(Y({},m.attributes),S.path)},D))]},g={tag:"g",attributes:Y({},S.outer),children:[A]},h="mask-".concat(l||za()),v="clip-".concat(l||za()),R={tag:"mask",attributes:Y(Y({},Kc),{},{id:h,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[L,g]},_={tag:"defs",children:[{tag:"clipPath",attributes:{id:v},children:W3(P)},R]};return r.push(_,{tag:"rect",attributes:Y({fill:"currentColor","clip-path":"url(#".concat(v,")"),mask:"url(#".concat(h,")")},Kc)}),{children:r,attributes:a}}}},G3={provides:function(t){var n=!1;kn.matchMedia&&(n=kn.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],a={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:Y(Y({},a),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=Y(Y({},i),{},{attributeName:"opacity"}),l={tag:"circle",attributes:Y(Y({},a),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||l.children.push({tag:"animate",attributes:Y(Y({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Y(Y({},o),{},{values:"1;0;1;1;0;1;"})}),r.push(l),r.push({tag:"path",attributes:Y(Y({},a),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:Y(Y({},o),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:Y(Y({},a),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Y(Y({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},X3={hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-symbol"),i=a===null?!1:a===""?!0:a;return n.symbol=i,n}}}},Q3=[GE,N3,F3,j3,q3,$3,B3,V3,Y3,G3,X3];c3(Q3,{mixoutsTo:vt});vt.noAuto;vt.config;vt.library;vt.dom;var Jf=vt.parse;vt.findIconDefinition;vt.toHtml;var Z3=vt.icon;vt.layer;vt.text;vt.counter;function Mg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function yn(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function eC(e,t){if(e==null)return{};var n=J3(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ed(e){return tC(e)||nC(e)||rC(e)||aC()}function tC(e){if(Array.isArray(e))return td(e)}function nC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rC(e,t){if(e){if(typeof e=="string")return td(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return td(e,t)}}function td(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(s){return Cw(e,s)}),a=Object.keys(t.attributes||{}).reduce(function(s,p){var m=t.attributes[p];switch(p){case"class":s.attrs.className=m,delete t.attributes.class;break;case"style":s.attrs.style=sC(m);break;default:p.indexOf("aria-")===0||p.indexOf("data-")===0?s.attrs[p.toLowerCase()]=m:s.attrs[Ew(p)]=m}return s},{attrs:{}}),i=n.style,o=i===void 0?{}:i,l=eC(n,uC);return a.attrs.style=yn(yn({},a.attrs.style),o),e.apply(void 0,[t.tag,yn(yn({},a.attrs),l)].concat(ed(r)))}var Rw=!1;try{Rw=!0}catch{}function cC(){if(!Rw&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Ng(e){if(e&&wo(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Jf.icon)return Jf.icon(e);if(e===null)return null;if(e&&wo(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Hc(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?vr({},e,t):{}}var ti=Po.forwardRef(function(e,t){var n=e.icon,r=e.mask,a=e.symbol,i=e.className,o=e.title,l=e.titleId,s=e.maskId,p=Ng(n),m=Hc("classes",[].concat(ed(iC(e)),ed(i.split(" ")))),w=Hc("transform",typeof e.transform=="string"?Jf.transform(e.transform):e.transform),P=Hc("mask",Ng(r)),S=Z3(p,yn(yn(yn(yn({},m),w),P),{},{symbol:a,title:o,titleId:l,maskId:s}));if(!S)return cC("Could not find icon",p),null;var L=S.abstract,D={ref:t};return Object.keys(e).forEach(function(A){ti.defaultProps.hasOwnProperty(A)||(D[A]=e[A])}),fC(L[0],D)});ti.displayName="FontAwesomeIcon";ti.propTypes={beat:se.bool,border:se.bool,beatFade:se.bool,bounce:se.bool,className:se.string,fade:se.bool,flash:se.bool,mask:se.oneOfType([se.object,se.array,se.string]),maskId:se.string,fixedWidth:se.bool,inverse:se.bool,flip:se.oneOf([!0,!1,"horizontal","vertical","both"]),icon:se.oneOfType([se.object,se.array,se.string]),listItem:se.bool,pull:se.oneOf(["right","left"]),pulse:se.bool,rotation:se.oneOf([0,90,180,270]),shake:se.bool,size:se.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:se.bool,spinPulse:se.bool,spinReverse:se.bool,symbol:se.oneOfType([se.bool,se.string]),title:se.string,titleId:se.string,transform:se.oneOfType([se.string,se.object]),swapOpacity:se.bool};ti.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var fC=Cw.bind(null,Po.createElement),dC={prefix:"fas",iconName:"forward-step",icon:[320,512,["step-forward"],"f051","M52.5 440.6c-9.5 7.9-22.8 9.7-34.1 4.4S0 428.4 0 416V96C0 83.6 7.2 72.3 18.4 67s24.5-3.6 34.1 4.4l192 160L256 241V96c0-17.7 14.3-32 32-32s32 14.3 32 32V416c0 17.7-14.3 32-32 32s-32-14.3-32-32V271l-11.5 9.6-192 160z"]},pC={prefix:"fas",iconName:"backward",icon:[512,512,[9194],"f04a","M459.5 440.6c9.5 7.9 22.8 9.7 34.1 4.4s18.4-16.6 18.4-29V96c0-12.4-7.2-23.7-18.4-29s-24.5-3.6-34.1 4.4L288 214.3V256v41.7L459.5 440.6zM256 352V256 128 96c0-12.4-7.2-23.7-18.4-29s-24.5-3.6-34.1 4.4l-192 160C4.2 237.5 0 246.5 0 256s4.2 18.5 11.5 24.6l192 160c9.5 7.9 22.8 9.7 34.1 4.4s18.4-16.6 18.4-29V352z"]},yC={prefix:"fas",iconName:"compress",icon:[448,512,[],"f066","M160 64c0-17.7-14.3-32-32-32s-32 14.3-32 32v64H32c-17.7 0-32 14.3-32 32s14.3 32 32 32h96c17.7 0 32-14.3 32-32V64zM32 320c-17.7 0-32 14.3-32 32s14.3 32 32 32H96v64c0 17.7 14.3 32 32 32s32-14.3 32-32V352c0-17.7-14.3-32-32-32H32zM352 64c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7 14.3 32 32 32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H352V64zM320 320c-17.7 0-32 14.3-32 32v96c0 17.7 14.3 32 32 32s32-14.3 32-32V384h64c17.7 0 32-14.3 32-32s-14.3-32-32-32H320z"]},hC={prefix:"fas",iconName:"repeat",icon:[512,512,[128257],"f363","M0 224c0 17.7 14.3 32 32 32s32-14.3 32-32c0-53 43-96 96-96H320v32c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l64-64c12.5-12.5 12.5-32.8 0-45.3l-64-64c-9.2-9.2-22.9-11.9-34.9-6.9S320 19.1 320 32V64H160C71.6 64 0 135.6 0 224zm512 64c0-17.7-14.3-32-32-32s-32 14.3-32 32c0 53-43 96-96 96H192V352c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9l-64 64c-12.5 12.5-12.5 32.8 0 45.3l64 64c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V448H352c88.4 0 160-71.6 160-160z"]},vC={prefix:"fas",iconName:"pause",icon:[320,512,[9208],"f04c","M48 64C21.5 64 0 85.5 0 112V400c0 26.5 21.5 48 48 48H80c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48H48zm192 0c-26.5 0-48 21.5-48 48V400c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48H240z"]},mC={prefix:"fas",iconName:"heart",icon:[512,512,[128153,128154,128155,128156,128420,129293,129294,129505,9829,10084,61578],"f004","M47.6 300.4L228.3 469.1c7.5 7 17.4 10.9 27.7 10.9s20.2-3.9 27.7-10.9L464.4 300.4c30.4-28.3 47.6-68 47.6-109.5v-5.8c0-69.9-50.5-129.5-119.4-141C347 36.5 300.6 51.4 268 84L256 96 244 84c-32.6-32.6-79-47.5-124.6-39.9C50.5 55.6 0 115.2 0 185.1v5.8c0 41.5 17.2 81.2 47.6 109.5z"]},gC={prefix:"fas",iconName:"volume-high",icon:[640,512,[128266,"volume-up"],"f028","M533.6 32.5C598.5 85.3 640 165.8 640 256s-41.5 170.8-106.4 223.5c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C557.5 398.2 592 331.2 592 256s-34.5-142.2-88.7-186.3c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zM473.1 107c43.2 35.2 70.9 88.9 70.9 149s-27.7 113.8-70.9 149c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C475.3 341.3 496 301.1 496 256s-20.7-85.3-53.2-111.8c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zm-60.5 74.5C434.1 199.1 448 225.9 448 256s-13.9 56.9-35.4 74.5c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C393.1 284.4 400 271 400 256s-6.9-28.4-17.7-37.3c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zM301.1 34.8C312.6 40 320 51.4 320 64V448c0 12.6-7.4 24-18.9 29.2s-25 3.1-34.4-5.3L131.8 352H64c-35.3 0-64-28.7-64-64V224c0-35.3 28.7-64 64-64h67.8L266.7 40.1c9.4-8.4 22.9-10.4 34.4-5.3z"]},_C={prefix:"fas",iconName:"backward-step",icon:[320,512,["step-backward"],"f048","M267.5 440.6c9.5 7.9 22.8 9.7 34.1 4.4s18.4-16.6 18.4-29V96c0-12.4-7.2-23.7-18.4-29s-24.5-3.6-34.1 4.4l-192 160L64 241V96c0-17.7-14.3-32-32-32S0 78.3 0 96V416c0 17.7 14.3 32 32 32s32-14.3 32-32V271l11.5 9.6 192 160z"]},wC={prefix:"fas",iconName:"forward",icon:[512,512,[9193],"f04e","M52.5 440.6c-9.5 7.9-22.8 9.7-34.1 4.4S0 428.4 0 416V96C0 83.6 7.2 72.3 18.4 67s24.5-3.6 34.1 4.4L224 214.3V256v41.7L52.5 440.6zM256 352V256 128 96c0-12.4 7.2-23.7 18.4-29s24.5-3.6 34.1 4.4l192 160c7.3 6.1 11.5 15.1 11.5 24.6s-4.2 18.5-11.5 24.6l-192 160c-9.5 7.9-22.8 9.7-34.1 4.4s-18.4-16.6-18.4-29V352z"]},bC={prefix:"fas",iconName:"ellipsis",icon:[448,512,["ellipsis-h"],"f141","M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z"]},PC={prefix:"fas",iconName:"play",icon:[384,512,[9654],"f04b","M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80V432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"]},SC={prefix:"fas",iconName:"volume-xmark",icon:[576,512,["volume-mute","volume-times"],"f6a9","M301.1 34.8C312.6 40 320 51.4 320 64V448c0 12.6-7.4 24-18.9 29.2s-25 3.1-34.4-5.3L131.8 352H64c-35.3 0-64-28.7-64-64V224c0-35.3 28.7-64 64-64h67.8L266.7 40.1c9.4-8.4 22.9-10.4 34.4-5.3zM425 167l55 55 55-55c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-55 55 55 55c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55-55 55c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l55-55-55-55c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0z"]},OC=SC,kC={prefix:"fas",iconName:"expand",icon:[448,512,[],"f065","M32 32C14.3 32 0 46.3 0 64v96c0 17.7 14.3 32 32 32s32-14.3 32-32V96h64c17.7 0 32-14.3 32-32s-14.3-32-32-32H32zM64 352c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7 14.3 32 32 32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H64V352zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32h64v64c0 17.7 14.3 32 32 32s32-14.3 32-32V64c0-17.7-14.3-32-32-32H320zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32v64H320c-17.7 0-32 14.3-32 32s14.3 32 32 32h96c17.7 0 32-14.3 32-32V352z"]},EC={prefix:"far",iconName:"heart",icon:[512,512,[128153,128154,128155,128156,128420,129293,129294,129505,9829,10084,61578],"f004","M225.8 468.2l-2.5-2.3L48.1 303.2C17.4 274.7 0 234.7 0 192.8v-3.3c0-70.4 50-130.8 119.2-144C158.6 37.9 198.9 47 231 69.6c9 6.4 17.4 13.8 25 22.3c4.2-4.8 8.7-9.2 13.5-13.3c3.7-3.2 7.5-6.2 11.5-9c0 0 0 0 0 0C313.1 47 353.4 37.9 392.8 45.4C462 58.6 512 119.1 512 189.5v3.3c0 41.9-17.4 81.9-48.1 110.4L288.7 465.9l-2.5 2.3c-8.2 7.6-19 11.9-30.2 11.9s-22-4.2-30.2-11.9zM239.1 145c-.4-.3-.7-.7-1-1.1l-17.8-20c0 0-.1-.1-.1-.1c0 0 0 0 0 0c-23.1-25.9-58-37.7-92-31.2C81.6 101.5 48 142.1 48 189.5v3.3c0 28.5 11.9 55.8 32.8 75.2L256 430.7 431.2 268c20.9-19.4 32.8-46.7 32.8-75.2v-3.3c0-47.3-33.6-88-80.1-96.9c-34-6.5-69 5.4-92 31.2c0 0 0 0-.1 .1s0 0-.1 .1l-17.8 20c-.3 .4-.7 .7-1 1.1c-4.5 4.5-10.6 7-16.9 7s-12.4-2.5-16.9-7z"]};const CC=4e3,RC=()=>{const e=ne.useRef(null),t=ve(l=>l.actions),n=ve(l=>l.activity),r=ve(l=>l.playing),a=ne.useCallback(l=>{e.current&&clearTimeout(e.current),!(!l||!r)&&(e.current=window.setTimeout(()=>{t.setActivity(!1)},CC))},[t,r]),i=ne.useCallback(l=>{t.setActivity(!0),a(n),!n&&l.stopPropagation()},[n,t,a]),o=ne.useCallback(()=>{r&&n&&t.setActivity(!1)},[r,n,t]);ne.useEffect(()=>{a(n)},[n,a]),ne.useEffect(()=>(document.addEventListener("click",i),document.addEventListener("mousemove",i),document.addEventListener("keydown",i),document.addEventListener("mouseleave",o),()=>{document.removeEventListener("click",i),document.removeEventListener("mousemove",i),document.removeEventListener("keydown",i),document.removeEventListener("mouseleave",o)}),[i,o])};const Fg=e=>{if(isNaN(e))return;let t=e;const n=Math.floor(t/3600);t%=3600;let r=String(Math.floor(t/60)),a=String(Math.floor(t%60));return a=a.padStart(2,"0"),n>0?(r=r.padStart(2,"0"),`${n}:${r}:${a}`):`${r}:${a}`},TC=e=>{const{onLoopPress:t,onLikePress:n,onPreviousPress:r,onSkipBackPress:a,onSkipForwardPress:i,onSkipReleasePress:o,onNextPress:l,onMutePress:s,onFullscreenPress:p,withTopCover:m,customButtons:w,disableFullscreen:P}=e,{focusKey:S,ref:L}=vo.useFocusable();RC();const D=Q_(),A=ve(J=>J.actions),g=ve(J=>J.activity),h=ve(J=>J.duration),v=ve(J=>J.fullscreen),R=ve(J=>J.light),_=ve(J=>J.likeToggle),b=ve(J=>J.loop),d=ve(J=>J.mediaIndex)||0,u=ve(J=>J.mediaCount),f=ve(J=>J.muted),c=ve(J=>J.player),y=ve(J=>J.playing),E=ve(J=>J.progress),O=ve(J=>J.subTitle),C=ve(J=>J.title),F=h/30,q=u&&u>1,N=w!==null&&w||[{action:"loop",align:"left"},{action:q?"previous":"skipback"},{action:"playpause"},{action:q?"next":"skipforward"},{action:P?"fullscreen":"mute",align:"right"}],k=()=>{A.setLoop(!b),t==null||t()},I=()=>{A.setPlaying(!y),A.setLight(!1)},x=()=>{A.setMuted(!f),s==null||s()},T=()=>{A.setFullscreen(!v),p==null||p()},j=()=>{d&&d>0&&A.setMediaIndex(d-1),r==null||r()},V=()=>{c&&c.seekTo(c.getCurrentTime()-F),a==null||a()},B=()=>{c&&c.seekTo(c.getCurrentTime()+F),i==null||i()},ee=()=>{u&&d{!y&&I(),o==null||o()},ie={loop:{action:"loop",label:b?"Looping":"Loop",onPress:k,faIcon:hC,isSelectedFill:b},like:{action:"like",label:_?"Liked":"Like",onPress:n,faIcon:_?mC:EC},previous:{action:"previous",label:"Previous",onPress:j,faIcon:_C,disabled:d===0},skipback:{action:"skipback",label:"Skip Back",onPress:V,onRelease:oe,faIcon:pC},playpause:{action:"playpause",label:y?"Pause":"Play",onPress:I,faIcon:y?vC:PC},skipforward:{action:"skipforward",label:"Skip Forward",onPress:B,onRelease:oe,faIcon:wC},next:{action:"next",label:"Next",onPress:ee,faIcon:dC,disabled:u?d===u-1:!1},mute:{action:"mute",label:f?"Muted":"Mute",onPress:x,faIcon:f?OC:gC},fullscreen:{action:"fullscreen",label:v?"Minimise":"Fullscreen",onPress:T,faIcon:v?yC:kC},custom:{action:"custom",label:"Custom"}},fe=J=>ce.jsx(ce.Fragment,{children:N.map((K,M)=>{if(K.align===J||!K.align&&J==="center")return ce.jsxs(Tw,{className:Da({"selected-fill":K.isSelectedFill||ie[K.action].isSelectedFill}),focusKey:K.action,handlePress:K.onPress||ie[K.action].onPress||void 0,handleRelease:K.onRelease||ie[K.action].onRelease||void 0,disabled:K.disabled||ie[K.action].disabled,children:[ce.jsx(ti,{icon:K.faIcon||ie[K.action].faIcon||bC}),ce.jsx("small",{children:K.label||ie[K.action].label})]},M)})});return ce.jsxs("div",{className:"tv-player-ui","data-testid":"tv-player-ui",style:{width:v?"100%":e.width||"100%",height:v?D||"100%":e.height||"350px"},children:[ce.jsx("div",{className:Da("tv-player-ui__cover",{hide:!g,"with-top-cover":m||!R,"light-cover":R&&!y})}),g&&ce.jsxs(ce.Fragment,{children:[ce.jsxs("div",{className:"metadata-wrapper",children:[ce.jsx("div",{className:"metadata metadata--title",children:C}),ce.jsx("div",{className:"metadata metadata--subTitle",children:O})]}),ce.jsx(vo.FocusContext.Provider,{value:S,children:ce.jsxs("div",{className:"buttons",ref:L,children:[ce.jsx("div",{className:"buttons__left",children:fe("left")}),ce.jsx("div",{className:"buttons__center",children:fe("center")}),ce.jsx("div",{className:"buttons__right",children:fe("right")})]})}),ce.jsx(xC,{currentTime:E.playedSeconds,duration:h,player:c,handleSkipForward:B,handleSkipBack:V})]})]})};function xC(e){const{currentTime:t,duration:n,player:r,handleSkipForward:a,handleSkipBack:i}=e,o=t/n*100,l=p=>{const m=p.currentTarget,P=p.nativeEvent.offsetX/m.offsetWidth;r&&r.seekTo(P*n)},s=!r||!n||t>=86400||n>=86400;return ce.jsxs("div",{className:Da("progress-bar",{hide:s}),"data-testid":"progress-bar",children:[ce.jsx("span",{"data-testid":"current-time",className:"time",children:r&&Fg(t)}),ce.jsx("span",{className:"bar-wrapper",onMouseDown:p=>p.preventDefault(),onMouseUp:l,children:ce.jsxs("div",{className:"bar",children:[!s&&ce.jsx(Tw,{style:{left:`${o}%`},className:"progress-bar-button",focusKey:"progress-bar-button",handleArrowPress:p=>p==="up"||p==="down"?!0:(p==="left"?i():a(),!1)},"progress-bar-button"),ce.jsx("span",{className:"fill",style:{width:`${o}%`}})]})}),ce.jsx("span",{"data-testid":"duration",className:"time time--duration",children:r&&Fg(n)})]})}function Tw(e){const{children:t,handlePress:n,handleRelease:r,handleArrowPress:a=()=>!0,focusKey:i,className:o,style:l,disabled:s}=e,{ref:p,focused:m,focusSelf:w}=vo.useFocusable({onEnterPress:s?void 0:n,onEnterRelease:s?void 0:r,onArrowPress:a});return ne.useEffect(()=>{i==="playpause"&&w()},[w,i]),ce.jsx("button",{style:l,"data-testid":i,className:Da(o,{focused:m,disabled:s}),onMouseDown:n,onMouseUp:r,"focus-key":i,ref:p,onMouseEnter:w,disabled:s,children:t})}function AC(e){const t=/(?:youtube\.com\/(?:[^/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?/ ]{11})/,n=e.match(t);return n?n[1]:null}const LC=e=>{vo.init({debug:!1,visualDebug:!1,throttle:100});const{onReady:t,onStart:n,onPause:r,onPlay:a,onError:i,onEnded:o,onBuffer:l}=e,s=ne.useRef(null),p=ne.useRef(null),m=ne.useRef(null),[w,P]=ne.useState(!0),S=ve(q=>q.actions),L=ve(q=>q.light),D=ve(q=>q.loop),A=ve(q=>q.muted),g=ve(q=>q.playing),h=ve(q=>q.activity),v=ve(q=>q.fullscreen),R=typeof e.url=="string"&&AC(e.url),_=e.withTopCover||!!R,b=async q=>{const k=await(await fetch(`https://noembed.com/embed?url=${q}`)).json();!e.title&&k.title&&S.setTitle(k.title),!e.subTitle&&k.author_name&&S.setSubTitle(k.author_name),k.error&&R&&S.setLight(!1),m.current&&R&&e.light&&(m.current.src=typeof e.light=="string"?e.light:`https://img.youtube.com/vi/${R}/maxresdefault.jpg`)};ne.useEffect(()=>{S.setLight(e.light),typeof e.url=="string"?b(e.url):S.setLight(!1),S.setProgress(0),S.setDuration(0)},[e.url,e.light]),ne.useEffect(()=>{S.setPlaying(e.playing),e.playing&&S.setLight(!1)},[e.playing]),ne.useEffect(()=>S.setTitle(e.title),[e.title]),ne.useEffect(()=>S.setSubTitle(e.subTitle),[e.subTitle]),ne.useEffect(()=>{S.setFullscreen(!e.disableFullscreen)},[e.disableFullscreen]),ne.useEffect(()=>S.setLoop(e.loop),[e.loop]),ne.useEffect(()=>S.setMuted(e.muted),[e.muted]),ne.useEffect(()=>S.setMediaCount(e.mediaCount),[e.mediaCount]),ne.useEffect(()=>{setTimeout(()=>S.setMediaIndex(e.mediaIndex))},[e.mediaIndex]),ne.useEffect(()=>{document.body.style.background=v?"black":"unset",document.body.style.overflow=v?"hidden":"unset",document.body.style.padding=v?"0":"revert",document.body.style.margin=v?"0":"revert",p.current.style.height=v?"100vh":"unset"},[v]);const d=()=>{S.setPlaying(!0),S.setLight(!1)},u=()=>{S.setPlaying(!1),r==null||r()},f=()=>{S.setPlaying(!0),S.setLight(!1),a==null||a()},c=q=>{S.setPlayer(q),t==null||t(q)},y=(q,N,k,I)=>{i==null||i(q,N,k,I)},E=()=>{S.setPlaying(!1),S.setActivity(!0),o==null||o()},O=q=>{S.setProgress(q.playedSeconds)},C=q=>{S.setDuration(q)},F=()=>{m.current&&(typeof e.light=="boolean"&&m.current.naturalWidth>=1280||typeof e.light=="string"?P(!1):P(!0))};return ce.jsxs("div",{className:"tv-player","data-testid":"tv-player",ref:p,style:e.style,children:[ce.jsx(qS,{"data-testid":"react-player",ref:s,url:e.url,width:v?"100%":e.width||"100%",height:v?"100%":e.height||"350px",light:!g&&L,controls:e.controls,playIcon:e.playIcon||ce.jsx(ce.Fragment,{}),loop:D,muted:A,playing:g,playbackRate:e.playbackRate,progressInterval:h?200:e.progressInterval,playsinline:e.playsinline,volume:e.volume,onPlay:f,onReady:c,onStart:()=>n==null?void 0:n(),onBuffer:()=>l==null?void 0:l(),onEnded:E,onPause:u,onDuration:C,onProgress:O,onClickPreview:d,onError:y,config:e.config||{file:{attributes:{style:{width:"100%",height:"100%",objectFit:"contain"}}}}}),ce.jsx("img",{ref:m,onError:()=>P(!0),onLoad:F,alt:"",style:{width:v?"100%":e.width||"100%",height:v?"100%":e.height||"350px"},className:Da("yt-preview",{show:!w&&L&&R&&!g})}),!e.controls&&ce.jsx(TC,{withTopCover:_,...e})]})};var IC={prefix:"fab",iconName:"github",icon:[496,512,[],"f09b","M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"]};const Gr=[{url:"https://www.youtube.com/watch?v=SkVqJ1SGeL0",title:"YouTube Video Sample",subTitle:"Caminandes 3: Llamigos",preview:!0},{url:"https://demo.unified-streaming.com/k8s/features/stable/video/tears-of-steel/tears-of-steel.ism/.m3u8",title:"HLS Stream Sample",subTitle:"Tears of Steel",preview:"https://mango.blender.org/wp-content/gallery/4k-renders/06_barley.jpg"},{title:"Dash Stream Sample",subTitle:"Elephants Dream",url:"https://rdmedia.bbc.co.uk/elephants_dream/1/client_manifest-all.mpd",preview:"https://orange.blender.org/wp-content/themes/orange/images/media/gallery/s1_proog.jpg"}];function DC(){const e=ve(i=>i.actions),t=ve(i=>i.mediaIndex)||0,n=ve(i=>i.likeToggle),r=[{action:"loop",align:"left"},{action:"like",align:"left"},{action:"previous",align:"center"},{action:"playpause",align:"center"},{action:"next",align:"center"},{action:"fullscreen",align:"right"},{action:"custom",align:"right",label:"About",faIcon:IC,onPress:()=>{window.location.href="https://github.com/lewhunt/react-tv-player"}}],a=()=>{console.log("like button pressed"),e.setLikeToggle(!n)};return ce.jsx(ce.Fragment,{children:ce.jsx(LC,{title:Gr[t].title,subTitle:Gr[t].subTitle,url:Gr[t].url,light:Gr[t].preview,customButtons:r,mediaCount:Gr.length,mediaIndex:0,onLikePress:a,playsinline:!0})})}$c.createRoot(document.getElementById("root")).render(ce.jsx(Po.StrictMode,{children:ce.jsx(DC,{})})); diff --git a/index.html b/index.html index 45188cb..ec50f8e 100644 --- a/index.html +++ b/index.html @@ -42,7 +42,7 @@ property="og:description" content="A demo of the ReactTVPlayer component that can run on big-screen TV devices, with customisable UI and arrow key navigation. It can play a variety of URLs such as YouTube, SoundCloud and HLS/Dash streams..." /> - +