@netless/window-manager 0.4.19 → 0.4.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/typings.d.ts +1 -0
- package/package.json +1 -1
- package/src/typings.ts +1 -0
package/CHANGELOG.md
CHANGED
package/dist/index.es.js
CHANGED
@@ -14812,7 +14812,7 @@ const reconnectRefresher = new ReconnectRefresher({ emitter });
|
|
14812
14812
|
const _WindowManager = class extends InvisiblePlugin {
|
14813
14813
|
constructor(context) {
|
14814
14814
|
super(context);
|
14815
|
-
this.version = "0.4.
|
14815
|
+
this.version = "0.4.20";
|
14816
14816
|
this.dependencies = { "dependencies": { "@juggle/resize-observer": "^3.3.1", "@netless/telebox-insider": "0.2.26", "emittery": "^0.9.2", "lodash": "^4.17.21", "p-retry": "^4.6.1", "side-effect-manager": "^0.1.5", "uuid": "^7.0.3", "video.js": ">=7" }, "peerDependencies": { "white-web-sdk": "^2.16.0" }, "devDependencies": { "@netless/app-docs-viewer": "^0.2.9", "@netless/app-media-player": "0.1.0-beta.5", "@rollup/plugin-commonjs": "^20.0.0", "@rollup/plugin-node-resolve": "^13.0.4", "@rollup/plugin-url": "^6.1.0", "@sveltejs/vite-plugin-svelte": "^1.0.0-next.22", "@tsconfig/svelte": "^2.0.1", "@types/debug": "^4.1.7", "@types/jest": "^27.4.1", "@types/lodash-es": "^4.17.4", "@types/uuid": "^8.3.1", "@typescript-eslint/eslint-plugin": "^4.30.0", "@typescript-eslint/parser": "^4.30.0", "cypress": "^8.7.0", "dotenv": "^10.0.0", "eslint": "^7.32.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-svelte3": "^3.2.0", "jest": "^27.5.1", "jest-canvas-mock": "^2.3.1", "jest-fetch-mock": "^3.0.3", "jest-transform-stub": "^2.0.0", "less": "^4.1.1", "prettier": "^2.3.2", "prettier-plugin-svelte": "^2.4.0", "rollup-plugin-analyzer": "^4.0.0", "rollup-plugin-styles": "^3.14.1", "svelte": "^3.42.4", "svelte-jester": "^2.3.2", "ts-jest": "^27.1.4", "typescript": "^4.5.5", "vite": "^2.5.3", "white-web-sdk": "2.16.10" } };
|
14817
14817
|
this.emitter = callbacks$1;
|
14818
14818
|
this.viewMode = ViewMode.Broadcaster;
|
package/dist/index.umd.js
CHANGED
@@ -43,5 +43,5 @@ ${t}`,Bv=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),Rv=Objec
|
|
43
43
|
in `+(n||"Unknown")+s}t+=i,e=e.return}while(e);return t}function Lt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function qd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Uy(e){var t=qd(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof i!="undefined"&&typeof i.get=="function"&&typeof i.set=="function"){var r=i.get,s=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(o){n=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Fr(e){e._valueTracker||(e._valueTracker=Uy(e))}function eh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),n="";return e&&(n=qd(e)?e.checked?"true":"false":e.value),e=n,e!==i?(t.setValue(e),!0):!1}function Aa(e,t){var i=t.checked;return Ie({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:i!=null?i:e._wrapperState.initialChecked})}function th(e,t){var i=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;i=Lt(t.value!=null?t.value:i),e._wrapperState={initialChecked:n,initialValue:i,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ih(e,t){t=t.checked,t!=null&&Ca(e,"checked",t,!1)}function Ta(e,t){ih(e,t);var i=Lt(t.value),n=t.type;if(i!=null)n==="number"?(i===0&&e.value===""||e.value!=i)&&(e.value=""+i):e.value!==""+i&&(e.value=""+i);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ka(e,t.type,i):t.hasOwnProperty("defaultValue")&&ka(e,t.type,Lt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function nh(e,t,i){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,i||t===e.value||(e.value=t),e.defaultValue=t}i=e.name,i!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,i!==""&&(e.name=i)}function ka(e,t,i){(t!=="number"||e.ownerDocument.activeElement!==e)&&(i==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+i&&(e.defaultValue=""+i))}function $y(e){var t="";return Or.Children.forEach(e,function(i){i!=null&&(t+=i)}),t}function Na(e,t){return e=Ie({children:void 0},t),(t=$y(t.children))&&(e.children=t),e}function _i(e,t,i,n){if(e=e.options,t){t={};for(var r=0;r<i.length;r++)t["$"+i[r]]=!0;for(i=0;i<e.length;i++)r=t.hasOwnProperty("$"+e[i].value),e[i].selected!==r&&(e[i].selected=r),r&&n&&(e[i].defaultSelected=!0)}else{for(i=""+Lt(i),t=null,r=0;r<e.length;r++){if(e[r].value===i){e[r].selected=!0,n&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function Pa(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(M(91));return Ie({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function rh(e,t){var i=t.value;if(i==null){if(i=t.children,t=t.defaultValue,i!=null){if(t!=null)throw Error(M(92));if(Array.isArray(i)){if(!(1>=i.length))throw Error(M(93));i=i[0]}t=i}t==null&&(t=""),i=t}e._wrapperState={initialValue:Lt(i)}}function sh(e,t){var i=Lt(t.value),n=Lt(t.defaultValue);i!=null&&(i=""+i,i!==e.value&&(e.value=i),t.defaultValue==null&&e.defaultValue!==i&&(e.defaultValue=i)),n!=null&&(e.defaultValue=""+n)}function oh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var ah={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function lh(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function za(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?lh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Zr,uh=function(e){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(t,i,n,r){MSApp.execUnsafeLocalFunction(function(){return e(t,i,n,r)})}:e}(function(e,t){if(e.namespaceURI!==ah.svg||"innerHTML"in e)e.innerHTML=t;else{for(Zr=Zr||document.createElement("div"),Zr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Zr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function bn(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}function Gr(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}var Vi={animationend:Gr("Animation","AnimationEnd"),animationiteration:Gr("Animation","AnimationIteration"),animationstart:Gr("Animation","AnimationStart"),transitionend:Gr("Transition","TransitionEnd")},Da={},ch={};Dt&&(ch=document.createElement("div").style,"AnimationEvent"in window||(delete Vi.animationend.animation,delete Vi.animationiteration.animation,delete Vi.animationstart.animation),"TransitionEvent"in window||delete Vi.transitionend.transition);function Yr(e){if(Da[e])return Da[e];if(!Vi[e])return e;var t=Vi[e],i;for(i in t)if(t.hasOwnProperty(i)&&i in ch)return Da[e]=t[i];return e}var dh=Yr("animationend"),hh=Yr("animationiteration"),ph=Yr("animationstart"),fh=Yr("transitionend"),En="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),gh=new(typeof WeakMap=="function"?WeakMap:Map);function La(e){var t=gh.get(e);return t===void 0&&(t=new Map,gh.set(e,t)),t}function ci(e){var t=e,i=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.effectTag&1026)!==0&&(i=t.return),e=t.return;while(e)}return t.tag===3?i:null}function mh(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function vh(e){if(ci(e)!==e)throw Error(M(188))}function Hy(e){var t=e.alternate;if(!t){if(t=ci(e),t===null)throw Error(M(188));return t!==e?null:e}for(var i=e,n=t;;){var r=i.return;if(r===null)break;var s=r.alternate;if(s===null){if(n=r.return,n!==null){i=n;continue}break}if(r.child===s.child){for(s=r.child;s;){if(s===i)return vh(r),e;if(s===n)return vh(r),t;s=s.sibling}throw Error(M(188))}if(i.return!==n.return)i=r,n=s;else{for(var o=!1,a=r.child;a;){if(a===i){o=!0,i=r,n=s;break}if(a===n){o=!0,n=r,i=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===i){o=!0,i=s,n=r;break}if(a===n){o=!0,n=s,i=r;break}a=a.sibling}if(!o)throw Error(M(189))}}if(i.alternate!==n)throw Error(M(190))}if(i.tag!==3)throw Error(M(188));return i.stateNode.current===i?e:t}function wh(e){if(e=Hy(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Ui(e,t){if(t==null)throw Error(M(30));return e==null?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function ja(e,t,i){Array.isArray(e)?e.forEach(t,i):e&&t.call(i,e)}var An=null;function Wy(e){if(e){var t=e._dispatchListeners,i=e._dispatchInstances;if(Array.isArray(t))for(var n=0;n<t.length&&!e.isPropagationStopped();n++)Ld(e,t[n],i[n]);else t&&Ld(e,t,i);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function Xr(e){if(e!==null&&(An=Ui(An,e)),e=An,An=null,e){if(ja(e,Wy),An)throw Error(M(95));if(Vr)throw e=da,Vr=!1,da=null,e}}function Ba(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function yh(e){if(!Dt)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]=="function"),t}var Jr=[];function xh(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>Jr.length&&Jr.push(e)}function Sh(e,t,i,n){if(Jr.length){var r=Jr.pop();return r.topLevelType=e,r.eventSystemFlags=n,r.nativeEvent=t,r.targetInst=i,r}return{topLevelType:e,eventSystemFlags:n,nativeEvent:t,targetInst:i,ancestors:[]}}function Ch(e){var t=e.targetInst,i=t;do{if(!i){e.ancestors.push(i);break}var n=i;if(n.tag===3)n=n.stateNode.containerInfo;else{for(;n.return;)n=n.return;n=n.tag!==3?null:n.stateNode.containerInfo}if(!n)break;t=i.tag,t!==5&&t!==6||e.ancestors.push(i),i=Bn(n)}while(i);for(i=0;i<e.ancestors.length;i++){t=e.ancestors[i];var r=Ba(e.nativeEvent);n=e.topLevelType;var s=e.nativeEvent,o=e.eventSystemFlags;i===0&&(o|=64);for(var a=null,l=0;l<$r.length;l++){var u=$r[l];u&&(u=u.extractEvents(n,t,s,r,o))&&(a=Ui(a,u))}Xr(a)}}function Ra(e,t,i){if(!i.has(e)){switch(e){case"scroll":Dn(t,"scroll",!0);break;case"focus":case"blur":Dn(t,"focus",!0),Dn(t,"blur",!0),i.set("blur",null),i.set("focus",null);break;case"cancel":case"close":yh(e)&&Dn(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:En.indexOf(e)===-1&&ee(e,t)}i.set(e,null)}}var Mh,Oa,Ih,_a=!1,ut=[],jt=null,Bt=null,Rt=null,Tn=new Map,kn=new Map,Nn=[],Va="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Qy="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Fy(e,t){var i=La(t);Va.forEach(function(n){Ra(n,t,i)}),Qy.forEach(function(n){Ra(n,t,i)})}function Ua(e,t,i,n,r){return{blockedOn:e,topLevelType:t,eventSystemFlags:i|32,nativeEvent:r,container:n}}function bh(e,t){switch(e){case"focus":case"blur":jt=null;break;case"dragenter":case"dragleave":Bt=null;break;case"mouseover":case"mouseout":Rt=null;break;case"pointerover":case"pointerout":Tn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":kn.delete(t.pointerId)}}function Pn(e,t,i,n,r,s){return e===null||e.nativeEvent!==s?(e=Ua(t,i,n,r,s),t!==null&&(t=Rn(t),t!==null&&Oa(t)),e):(e.eventSystemFlags|=n,e)}function Zy(e,t,i,n,r){switch(t){case"focus":return jt=Pn(jt,e,t,i,n,r),!0;case"dragenter":return Bt=Pn(Bt,e,t,i,n,r),!0;case"mouseover":return Rt=Pn(Rt,e,t,i,n,r),!0;case"pointerover":var s=r.pointerId;return Tn.set(s,Pn(Tn.get(s)||null,e,t,i,n,r)),!0;case"gotpointercapture":return s=r.pointerId,kn.set(s,Pn(kn.get(s)||null,e,t,i,n,r)),!0}return!1}function Gy(e){var t=Bn(e.target);if(t!==null){var i=ci(t);if(i!==null){if(t=i.tag,t===13){if(t=mh(i),t!==null){e.blockedOn=t,ge.unstable_runWithPriority(e.priority,function(){Ih(i)});return}}else if(t===3&&i.stateNode.hydrate){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Kr(e){if(e.blockedOn!==null)return!1;var t=Qa(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(t!==null){var i=Rn(t);return i!==null&&Oa(i),e.blockedOn=t,!1}return!0}function Eh(e,t,i){Kr(e)&&i.delete(t)}function Yy(){for(_a=!1;0<ut.length;){var e=ut[0];if(e.blockedOn!==null){e=Rn(e.blockedOn),e!==null&&Mh(e);break}var t=Qa(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);t!==null?e.blockedOn=t:ut.shift()}jt!==null&&Kr(jt)&&(jt=null),Bt!==null&&Kr(Bt)&&(Bt=null),Rt!==null&&Kr(Rt)&&(Rt=null),Tn.forEach(Eh),kn.forEach(Eh)}function zn(e,t){e.blockedOn===t&&(e.blockedOn=null,_a||(_a=!0,ge.unstable_scheduleCallback(ge.unstable_NormalPriority,Yy)))}function Ah(e){function t(r){return zn(r,e)}if(0<ut.length){zn(ut[0],e);for(var i=1;i<ut.length;i++){var n=ut[i];n.blockedOn===e&&(n.blockedOn=null)}}for(jt!==null&&zn(jt,e),Bt!==null&&zn(Bt,e),Rt!==null&&zn(Rt,e),Tn.forEach(t),kn.forEach(t),i=0;i<Nn.length;i++)n=Nn[i],n.blockedOn===e&&(n.blockedOn=null);for(;0<Nn.length&&(i=Nn[0],i.blockedOn===null);)Gy(i),i.blockedOn===null&&Nn.shift()}var Th={},kh=new Map,$a=new Map,Xy=["abort","abort",dh,"animationEnd",hh,"animationIteration",ph,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",fh,"transitionEnd","waiting","waiting"];function Ha(e,t){for(var i=0;i<e.length;i+=2){var n=e[i],r=e[i+1],s="on"+(r[0].toUpperCase()+r.slice(1));s={phasedRegistrationNames:{bubbled:s,captured:s+"Capture"},dependencies:[n],eventPriority:t},$a.set(n,t),kh.set(n,s),Th[r]=s}}Ha("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Ha("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Ha(Xy,2);for(var Nh="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Wa=0;Wa<Nh.length;Wa++)$a.set(Nh[Wa],0);var Jy=ge.unstable_UserBlockingPriority,Ky=ge.unstable_runWithPriority,qr=!0;function ee(e,t){Dn(t,e,!1)}function Dn(e,t,i){var n=$a.get(t);switch(n===void 0?2:n){case 0:n=qy.bind(null,t,1,e);break;case 1:n=e0.bind(null,t,1,e);break;default:n=es.bind(null,t,1,e)}i?e.addEventListener(t,n,!0):e.addEventListener(t,n,!1)}function qy(e,t,i,n){li||va();var r=es,s=li;li=!0;try{Ud(r,e,t,i,n)}finally{(li=s)||ya()}}function e0(e,t,i,n){Ky(Jy,es.bind(null,e,t,i,n))}function es(e,t,i,n){if(qr)if(0<ut.length&&-1<Va.indexOf(e))e=Ua(null,e,t,i,n),ut.push(e);else{var r=Qa(e,t,i,n);if(r===null)bh(e,n);else if(-1<Va.indexOf(e))e=Ua(r,e,t,i,n),ut.push(e);else if(!Zy(r,e,t,i,n)){bh(e,n),e=Sh(e,n,null,t);try{Hd(Ch,e)}finally{xh(e)}}}}function Qa(e,t,i,n){if(i=Ba(n),i=Bn(i),i!==null){var r=ci(i);if(r===null)i=null;else{var s=r.tag;if(s===13){if(i=mh(r),i!==null)return i;i=null}else if(s===3){if(r.stateNode.hydrate)return r.tag===3?r.stateNode.containerInfo:null;i=null}else r!==i&&(i=null)}}e=Sh(e,n,i,t);try{Hd(Ch,e)}finally{xh(e)}return null}var Ln={animationIterationCount:!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},t0=["Webkit","ms","Moz","O"];Object.keys(Ln).forEach(function(e){t0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ln[t]=Ln[e]})});function Ph(e,t,i){return t==null||typeof t=="boolean"||t===""?"":i||typeof t!="number"||t===0||Ln.hasOwnProperty(e)&&Ln[e]?(""+t).trim():t+"px"}function zh(e,t){e=e.style;for(var i in t)if(t.hasOwnProperty(i)){var n=i.indexOf("--")===0,r=Ph(i,t[i],n);i==="float"&&(i="cssFloat"),n?e.setProperty(i,r):e[i]=r}}var i0=Ie({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 Fa(e,t){if(t){if(i0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(M(137,e,""));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(M(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(M(61))}if(t.style!=null&&typeof t.style!="object")throw Error(M(62,""))}}function Za(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 Dh=ah.html;function St(e,t){e=e.nodeType===9||e.nodeType===11?e:e.ownerDocument;var i=La(e);t=fa[t];for(var n=0;n<t.length;n++)Ra(t[n],e,i)}function ts(){}function Ga(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch{return e.body}}function Lh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jh(e,t){var i=Lh(e);e=0;for(var n;i;){if(i.nodeType===3){if(n=e+i.textContent.length,e<=t&&n>=t)return{node:i,offset:t-e};e=n}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Lh(i)}}function Bh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Bh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rh(){for(var e=window,t=Ga();t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch{i=!1}if(i)e=t.contentWindow;else break;t=Ga(e.document)}return t}function Ya(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")}var Oh="$",_h="/$",Xa="$?",Ja="$!",Ka=null,qa=null;function Vh(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function el(e,t){return e==="textarea"||e==="option"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var tl=typeof setTimeout=="function"?setTimeout:void 0,n0=typeof clearTimeout=="function"?clearTimeout:void 0;function $i(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function Uh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i===Oh||i===Ja||i===Xa){if(t===0)return e;t--}else i===_h&&t++}e=e.previousSibling}return null}var il=Math.random().toString(36).slice(2),Ot="__reactInternalInstance$"+il,is="__reactEventHandlers$"+il,jn="__reactContainere$"+il;function Bn(e){var t=e[Ot];if(t)return t;for(var i=e.parentNode;i;){if(t=i[jn]||i[Ot]){if(i=t.alternate,t.child!==null||i!==null&&i.child!==null)for(e=Uh(e);e!==null;){if(i=e[Ot])return i;e=Uh(e)}return t}e=i,i=e.parentNode}return null}function Rn(e){return e=e[Ot]||e[jn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function di(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(M(33))}function nl(e){return e[is]||null}function Ct(e){do e=e.return;while(e&&e.tag!==5);return e||null}function $h(e,t){var i=e.stateNode;if(!i)return null;var n=ha(i);if(!n)return null;i=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(M(231,t,typeof i));return i}function Hh(e,t,i){(t=$h(e,i.dispatchConfig.phasedRegistrationNames[t]))&&(i._dispatchListeners=Ui(i._dispatchListeners,t),i._dispatchInstances=Ui(i._dispatchInstances,e))}function r0(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,i=[];t;)i.push(t),t=Ct(t);for(t=i.length;0<t--;)Hh(i[t],"captured",e);for(t=0;t<i.length;t++)Hh(i[t],"bubbled",e)}}function rl(e,t,i){e&&i&&i.dispatchConfig.registrationName&&(t=$h(e,i.dispatchConfig.registrationName))&&(i._dispatchListeners=Ui(i._dispatchListeners,t),i._dispatchInstances=Ui(i._dispatchInstances,e))}function s0(e){e&&e.dispatchConfig.registrationName&&rl(e._targetInst,null,e)}function Hi(e){ja(e,r0)}var _t=null,sl=null,ns=null;function Wh(){if(ns)return ns;var e,t=sl,i=t.length,n,r="value"in _t?_t.value:_t.textContent,s=r.length;for(e=0;e<i&&t[e]===r[e];e++);var o=i-e;for(n=1;n<=o&&t[i-n]===r[s-n];n++);return ns=r.slice(e,1<n?1-n:void 0)}function rs(){return!0}function ss(){return!1}function je(e,t,i,n){this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=i,e=this.constructor.Interface;for(var r in e)e.hasOwnProperty(r)&&((t=e[r])?this[r]=t(i):r==="target"?this.target=n:this[r]=i[r]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?rs:ss,this.isPropagationStopped=ss,this}Ie(je.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!="unknown"&&(e.returnValue=!1),this.isDefaultPrevented=rs)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!="unknown"&&(e.cancelBubble=!0),this.isPropagationStopped=rs)},persist:function(){this.isPersistent=rs},isPersistent:ss,destructor:function(){var e=this.constructor.Interface,t;for(t in e)this[t]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=ss,this._dispatchInstances=this._dispatchListeners=null}}),je.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},je.extend=function(e){function t(){}function i(){return n.apply(this,arguments)}var n=this;t.prototype=n.prototype;var r=new t;return Ie(r,i.prototype),i.prototype=r,i.prototype.constructor=i,i.Interface=Ie({},n.Interface,e),i.extend=n.extend,Qh(i),i},Qh(je);function o0(e,t,i,n){if(this.eventPool.length){var r=this.eventPool.pop();return this.call(r,e,t,i,n),r}return new this(e,t,i,n)}function a0(e){if(!(e instanceof this))throw Error(M(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Qh(e){e.eventPool=[],e.getPooled=o0,e.release=a0}var l0=je.extend({data:null}),u0=je.extend({data:null}),c0=[9,13,27,32],ol=Dt&&"CompositionEvent"in window,On=null;Dt&&"documentMode"in document&&(On=document.documentMode);var d0=Dt&&"TextEvent"in window&&!On,Fh=Dt&&(!ol||On&&8<On&&11>=On),Zh=String.fromCharCode(32),Mt={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Gh=!1;function Yh(e,t){switch(e){case"keyup":return c0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Xh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wi=!1;function h0(e,t){switch(e){case"compositionend":return Xh(t);case"keypress":return t.which!==32?null:(Gh=!0,Zh);case"textInput":return e=t.data,e===Zh&&Gh?null:e;default:return null}}function p0(e,t){if(Wi)return e==="compositionend"||!ol&&Yh(e,t)?(e=Wh(),ns=sl=_t=null,Wi=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fh&&t.locale!=="ko"?null:t.data;default:return null}}var f0={eventTypes:Mt,extractEvents:function(e,t,i,n){var r;if(ol)e:{switch(e){case"compositionstart":var s=Mt.compositionStart;break e;case"compositionend":s=Mt.compositionEnd;break e;case"compositionupdate":s=Mt.compositionUpdate;break e}s=void 0}else Wi?Yh(e,i)&&(s=Mt.compositionEnd):e==="keydown"&&i.keyCode===229&&(s=Mt.compositionStart);return s?(Fh&&i.locale!=="ko"&&(Wi||s!==Mt.compositionStart?s===Mt.compositionEnd&&Wi&&(r=Wh()):(_t=n,sl="value"in _t?_t.value:_t.textContent,Wi=!0)),s=l0.getPooled(s,t,i,n),r?s.data=r:(r=Xh(i),r!==null&&(s.data=r)),Hi(s),r=s):r=null,(e=d0?h0(e,i):p0(e,i))?(t=u0.getPooled(Mt.beforeInput,t,i,n),t.data=e,Hi(t)):t=null,r===null?t:t===null?r:[r,t]}},g0={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Jh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!g0[e.type]:t==="textarea"}var Kh={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function qh(e,t,i){return e=je.getPooled(Kh.change,e,t,i),e.type="change",_d(i),Hi(e),e}var _n=null,Vn=null;function m0(e){Xr(e)}function os(e){var t=di(e);if(eh(t))return e}function v0(e,t){if(e==="change")return t}var al=!1;Dt&&(al=yh("input")&&(!document.documentMode||9<document.documentMode));function ep(){_n&&(_n.detachEvent("onpropertychange",tp),Vn=_n=null)}function tp(e){if(e.propertyName==="value"&&os(Vn))if(e=qh(Vn,e,Ba(e)),li)Xr(e);else{li=!0;try{ma(m0,e)}finally{li=!1,ya()}}}function w0(e,t,i){e==="focus"?(ep(),_n=t,Vn=i,_n.attachEvent("onpropertychange",tp)):e==="blur"&&ep()}function y0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return os(Vn)}function x0(e,t){if(e==="click")return os(t)}function S0(e,t){if(e==="input"||e==="change")return os(t)}var C0={eventTypes:Kh,_isInputEventSupported:al,extractEvents:function(e,t,i,n){var r=t?di(t):window,s=r.nodeName&&r.nodeName.toLowerCase();if(s==="select"||s==="input"&&r.type==="file")var o=v0;else if(Jh(r))if(al)o=S0;else{o=y0;var a=w0}else(s=r.nodeName)&&s.toLowerCase()==="input"&&(r.type==="checkbox"||r.type==="radio")&&(o=x0);if(o&&(o=o(e,t)))return qh(o,i,n);a&&a(e,r,t),e==="blur"&&(e=r._wrapperState)&&e.controlled&&r.type==="number"&&ka(r,"number",r.value)}},Un=je.extend({view:null,detail:null}),M0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function I0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=M0[e])?!!t[e]:!1}function ll(){return I0}var ip=0,np=0,rp=!1,sp=!1,$n=Un.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:ll,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=ip;return ip=e.screenX,rp?e.type==="mousemove"?e.screenX-t:0:(rp=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=np;return np=e.screenY,sp?e.type==="mousemove"?e.screenY-t:0:(sp=!0,0)}}),op=$n.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Hn={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},b0={eventTypes:Hn,extractEvents:function(e,t,i,n,r){var s=e==="mouseover"||e==="pointerover",o=e==="mouseout"||e==="pointerout";if(s&&(r&32)===0&&(i.relatedTarget||i.fromElement)||!o&&!s)return null;if(s=n.window===n?n:(s=n.ownerDocument)?s.defaultView||s.parentWindow:window,o){if(o=t,t=(t=i.relatedTarget||i.toElement)?Bn(t):null,t!==null){var a=ci(t);(t!==a||t.tag!==5&&t.tag!==6)&&(t=null)}}else o=null;if(o===t)return null;if(e==="mouseout"||e==="mouseover")var l=$n,u=Hn.mouseLeave,d=Hn.mouseEnter,p="mouse";else(e==="pointerout"||e==="pointerover")&&(l=op,u=Hn.pointerLeave,d=Hn.pointerEnter,p="pointer");if(e=o==null?s:di(o),s=t==null?s:di(t),u=l.getPooled(u,o,i,n),u.type=p+"leave",u.target=e,u.relatedTarget=s,i=l.getPooled(d,t,i,n),i.type=p+"enter",i.target=s,i.relatedTarget=e,n=o,p=t,n&&p)e:{for(l=n,d=p,o=0,e=l;e;e=Ct(e))o++;for(e=0,t=d;t;t=Ct(t))e++;for(;0<o-e;)l=Ct(l),o--;for(;0<e-o;)d=Ct(d),e--;for(;o--;){if(l===d||l===d.alternate)break e;l=Ct(l),d=Ct(d)}l=null}else l=null;for(d=l,l=[];n&&n!==d&&(o=n.alternate,!(o!==null&&o===d));)l.push(n),n=Ct(n);for(n=[];p&&p!==d&&(o=p.alternate,!(o!==null&&o===d));)n.push(p),p=Ct(p);for(p=0;p<l.length;p++)rl(l[p],"bubbled",u);for(p=n.length;0<p--;)rl(n[p],"captured",i);return(r&64)===0?[u]:[u,i]}};function E0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var hi=typeof Object.is=="function"?Object.is:E0,A0=Object.prototype.hasOwnProperty;function Wn(e,t){if(hi(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var i=Object.keys(e),n=Object.keys(t);if(i.length!==n.length)return!1;for(n=0;n<i.length;n++)if(!A0.call(t,i[n])||!hi(e[i[n]],t[i[n]]))return!1;return!0}var T0=Dt&&"documentMode"in document&&11>=document.documentMode,ap={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Qi=null,ul=null,Qn=null,cl=!1;function lp(e,t){var i=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;return cl||Qi==null||Qi!==Ga(i)?null:(i=Qi,"selectionStart"in i&&Ya(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Qn&&Wn(Qn,i)?null:(Qn=i,e=je.getPooled(ap.select,ul,e,t),e.type="select",e.target=Qi,Hi(e),e))}var k0={eventTypes:ap,extractEvents:function(e,t,i,n,r,s){if(r=s||(n.window===n?n.document:n.nodeType===9?n:n.ownerDocument),!(s=!r)){e:{r=La(r),s=fa.onSelect;for(var o=0;o<s.length;o++)if(!r.has(s[o])){r=!1;break e}r=!0}s=!r}if(s)return null;switch(r=t?di(t):window,e){case"focus":(Jh(r)||r.contentEditable==="true")&&(Qi=r,ul=t,Qn=null);break;case"blur":Qn=ul=Qi=null;break;case"mousedown":cl=!0;break;case"contextmenu":case"mouseup":case"dragend":return cl=!1,lp(i,n);case"selectionchange":if(T0)break;case"keydown":case"keyup":return lp(i,n)}return null}},N0=je.extend({animationName:null,elapsedTime:null,pseudoElement:null}),P0=je.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),z0=Un.extend({relatedTarget:null});function as(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}var D0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},L0={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},j0=Un.extend({key:function(e){if(e.key){var t=D0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=as(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?L0[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:ll,charCode:function(e){return e.type==="keypress"?as(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?as(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),B0=$n.extend({dataTransfer:null}),R0=Un.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:ll}),O0=je.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),_0=$n.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),V0={eventTypes:Th,extractEvents:function(e,t,i,n){var r=kh.get(e);if(!r)return null;switch(e){case"keypress":if(as(i)===0)return null;case"keydown":case"keyup":e=j0;break;case"blur":case"focus":e=z0;break;case"click":if(i.button===2)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=$n;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=B0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=R0;break;case dh:case hh:case ph:e=N0;break;case fh:e=O0;break;case"scroll":e=Un;break;case"wheel":e=_0;break;case"copy":case"cut":case"paste":e=P0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=op;break;default:e=je}return t=e.getPooled(r,t,i,n),Hi(t),t}};if(Ur)throw Error(M(101));Ur=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),jd();var U0=Rn;ha=nl,zd=U0,Dd=di,Rd({SimpleEventPlugin:V0,EnterLeaveEventPlugin:b0,ChangeEventPlugin:C0,SelectEventPlugin:k0,BeforeInputEventPlugin:f0});var dl=[],Fi=-1;function K(e){0>Fi||(e.current=dl[Fi],dl[Fi]=null,Fi--)}function ie(e,t){Fi++,dl[Fi]=e.current,e.current=t}var Vt={},ye={current:Vt},ke={current:!1},pi=Vt;function Zi(e,t){var i=e.type.contextTypes;if(!i)return Vt;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var r={},s;for(s in i)r[s]=t[s];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function Ne(e){return e=e.childContextTypes,e!=null}function ls(){K(ke),K(ye)}function up(e,t,i){if(ye.current!==Vt)throw Error(M(168));ie(ye,t),ie(ke,i)}function cp(e,t,i){var n=e.stateNode;if(e=t.childContextTypes,typeof n.getChildContext!="function")return i;n=n.getChildContext();for(var r in n)if(!(r in e))throw Error(M(108,xt(t)||"Unknown",r));return Ie({},i,{},n)}function us(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vt,pi=ye.current,ie(ye,e),ie(ke,ke.current),!0}function dp(e,t,i){var n=e.stateNode;if(!n)throw Error(M(169));i?(e=cp(e,t,pi),n.__reactInternalMemoizedMergedChildContext=e,K(ke),K(ye),ie(ye,e)):K(ke),ie(ke,i)}var $0=ge.unstable_runWithPriority,hl=ge.unstable_scheduleCallback,hp=ge.unstable_cancelCallback,pp=ge.unstable_requestPaint,pl=ge.unstable_now,H0=ge.unstable_getCurrentPriorityLevel,cs=ge.unstable_ImmediatePriority,fp=ge.unstable_UserBlockingPriority,gp=ge.unstable_NormalPriority,mp=ge.unstable_LowPriority,vp=ge.unstable_IdlePriority,wp={},W0=ge.unstable_shouldYield,Q0=pp!==void 0?pp:function(){},It=null,ds=null,fl=!1,yp=pl(),He=1e4>yp?pl:function(){return pl()-yp};function hs(){switch(H0()){case cs:return 99;case fp:return 98;case gp:return 97;case mp:return 96;case vp:return 95;default:throw Error(M(332))}}function xp(e){switch(e){case 99:return cs;case 98:return fp;case 97:return gp;case 96:return mp;case 95:return vp;default:throw Error(M(332))}}function Ut(e,t){return e=xp(e),$0(e,t)}function Sp(e,t,i){return e=xp(e),hl(e,t,i)}function Cp(e){return It===null?(It=[e],ds=hl(cs,Mp)):It.push(e),wp}function ct(){if(ds!==null){var e=ds;ds=null,hp(e)}Mp()}function Mp(){if(!fl&&It!==null){fl=!0;var e=0;try{var t=It;Ut(99,function(){for(;e<t.length;e++){var i=t[e];do i=i(!0);while(i!==null)}}),It=null}catch(i){throw It!==null&&(It=It.slice(e+1)),hl(cs,ct),i}finally{fl=!1}}}function ps(e,t,i){return i/=10,1073741821-(((1073741821-e+t/10)/i|0)+1)*i}function qe(e,t){if(e&&e.defaultProps){t=Ie({},t),e=e.defaultProps;for(var i in e)t[i]===void 0&&(t[i]=e[i])}return t}var fs={current:null},gs=null,Gi=null,ms=null;function gl(){ms=Gi=gs=null}function ml(e){var t=fs.current;K(fs),e.type._context._currentValue=t}function Ip(e,t){for(;e!==null;){var i=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,i!==null&&i.childExpirationTime<t&&(i.childExpirationTime=t);else if(i!==null&&i.childExpirationTime<t)i.childExpirationTime=t;else break;e=e.return}}function Yi(e,t){gs=e,ms=Gi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.expirationTime>=t&&(ht=!0),e.firstContext=null)}function We(e,t){if(ms!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(ms=e,t=1073741823),t={context:e,observedBits:t,next:null},Gi===null){if(gs===null)throw Error(M(308));Gi=t,gs.dependencies={expirationTime:0,firstContext:t,responders:null}}else Gi=Gi.next=t;return e._currentValue}var $t=!1;function vl(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function wl(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function Ht(e,t){return e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null},e.next=e}function Wt(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}}function bp(e,t){var i=e.alternate;i!==null&&wl(i,e),e=e.updateQueue,i=e.baseQueue,i===null?(e.baseQueue=t.next=t,t.next=t):(t.next=i.next,i.next=t)}function Fn(e,t,i,n){var r=e.updateQueue;$t=!1;var s=r.baseQueue,o=r.shared.pending;if(o!==null){if(s!==null){var a=s.next;s.next=o.next,o.next=a}s=o,r.shared.pending=null,a=e.alternate,a!==null&&(a=a.updateQueue,a!==null&&(a.baseQueue=o))}if(s!==null){a=s.next;var l=r.baseState,u=0,d=null,p=null,m=null;if(a!==null){var v=a;do{if(o=v.expirationTime,o<n){var S={expirationTime:v.expirationTime,suspenseConfig:v.suspenseConfig,tag:v.tag,payload:v.payload,callback:v.callback,next:null};m===null?(p=m=S,d=l):m=m.next=S,o>u&&(u=o)}else{m!==null&&(m=m.next={expirationTime:1073741823,suspenseConfig:v.suspenseConfig,tag:v.tag,payload:v.payload,callback:v.callback,next:null}),Cf(o,v.suspenseConfig);e:{var y=e,h=v;switch(o=t,S=i,h.tag){case 1:if(y=h.payload,typeof y=="function"){l=y.call(S,l,o);break e}l=y;break e;case 3:y.effectTag=y.effectTag&-4097|64;case 0:if(y=h.payload,o=typeof y=="function"?y.call(S,l,o):y,o==null)break e;l=Ie({},l,o);break e;case 2:$t=!0}}v.callback!==null&&(e.effectTag|=32,o=r.effects,o===null?r.effects=[v]:o.push(v))}if(v=v.next,v===null||v===a){if(o=r.shared.pending,o===null)break;v=s.next=o.next,o.next=a,r.baseQueue=s=o,r.shared.pending=null}}while(1)}m===null?d=l:m.next=p,r.baseState=d,r.baseQueue=m,Hs(u),e.expirationTime=u,e.memoizedState=l}}function Ep(e,t,i){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],r=n.callback;if(r!==null){if(n.callback=null,n=r,r=i,typeof n!="function")throw Error(M(191,n));n.call(r)}}}var Zn=Ke.ReactCurrentBatchConfig,Ap=new Or.Component().refs;function vs(e,t,i,n){t=e.memoizedState,i=i(n,t),i=i==null?t:Ie({},t,i),e.memoizedState=i,e.expirationTime===0&&(e.updateQueue.baseState=i)}var ws={isMounted:function(e){return(e=e._reactInternalFiber)?ci(e)===e:!1},enqueueSetState:function(e,t,i){e=e._reactInternalFiber;var n=ft(),r=Zn.suspense;n=yi(n,e,r),r=Ht(n,r),r.payload=t,i!=null&&(r.callback=i),Wt(e,r),Gt(e,n)},enqueueReplaceState:function(e,t,i){e=e._reactInternalFiber;var n=ft(),r=Zn.suspense;n=yi(n,e,r),r=Ht(n,r),r.tag=1,r.payload=t,i!=null&&(r.callback=i),Wt(e,r),Gt(e,n)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var i=ft(),n=Zn.suspense;i=yi(i,e,n),n=Ht(i,n),n.tag=2,t!=null&&(n.callback=t),Wt(e,n),Gt(e,i)}};function Tp(e,t,i,n,r,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,s,o):t.prototype&&t.prototype.isPureReactComponent?!Wn(i,n)||!Wn(r,s):!0}function kp(e,t,i){var n=!1,r=Vt,s=t.contextType;return typeof s=="object"&&s!==null?s=We(s):(r=Ne(t)?pi:ye.current,n=t.contextTypes,s=(n=n!=null)?Zi(e,r):Vt),t=new t(i,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ws,e.stateNode=t,t._reactInternalFiber=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=s),t}function Np(e,t,i,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(i,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(i,n),t.state!==e&&ws.enqueueReplaceState(t,t.state,null)}function yl(e,t,i,n){var r=e.stateNode;r.props=i,r.state=e.memoizedState,r.refs=Ap,vl(e);var s=t.contextType;typeof s=="object"&&s!==null?r.context=We(s):(s=Ne(t)?pi:ye.current,r.context=Zi(e,s)),Fn(e,i,r,n),r.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(vs(e,t,s,i),r.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(t=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),t!==r.state&&ws.enqueueReplaceState(r,r.state,null),Fn(e,i,r,n),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.effectTag|=4)}var ys=Array.isArray;function Gn(e,t,i){if(e=i.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(i._owner){if(i=i._owner,i){if(i.tag!==1)throw Error(M(309));var n=i.stateNode}if(!n)throw Error(M(147,e));var r=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===r?t.ref:(t=function(s){var o=n.refs;o===Ap&&(o=n.refs={}),s===null?delete o[r]:o[r]=s},t._stringRef=r,t)}if(typeof e!="string")throw Error(M(284));if(!i._owner)throw Error(M(290,e))}return e}function xs(e,t){if(e.type!=="textarea")throw Error(M(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Pp(e){function t(h,c){if(e){var f=h.lastEffect;f!==null?(f.nextEffect=c,h.lastEffect=c):h.firstEffect=h.lastEffect=c,c.nextEffect=null,c.effectTag=8}}function i(h,c){if(!e)return null;for(;c!==null;)t(h,c),c=c.sibling;return null}function n(h,c){for(h=new Map;c!==null;)c.key!==null?h.set(c.key,c):h.set(c.index,c),c=c.sibling;return h}function r(h,c){return h=Mi(h,c),h.index=0,h.sibling=null,h}function s(h,c,f){return h.index=f,e?(f=h.alternate,f!==null?(f=f.index,f<c?(h.effectTag=2,c):f):(h.effectTag=2,c)):c}function o(h){return e&&h.alternate===null&&(h.effectTag=2),h}function a(h,c,f,g){return c===null||c.tag!==6?(c=eu(f,h.mode,g),c.return=h,c):(c=r(c,f),c.return=h,c)}function l(h,c,f,g){return c!==null&&c.elementType===f.type?(g=r(c,f.props),g.ref=Gn(h,c,f),g.return=h,g):(g=Ws(f.type,f.key,f.props,null,h.mode,g),g.ref=Gn(h,c,f),g.return=h,g)}function u(h,c,f,g){return c===null||c.tag!==4||c.stateNode.containerInfo!==f.containerInfo||c.stateNode.implementation!==f.implementation?(c=tu(f,h.mode,g),c.return=h,c):(c=r(c,f.children||[]),c.return=h,c)}function d(h,c,f,g,w){return c===null||c.tag!==7?(c=Yt(f,h.mode,g,w),c.return=h,c):(c=r(c,f),c.return=h,c)}function p(h,c,f){if(typeof c=="string"||typeof c=="number")return c=eu(""+c,h.mode,f),c.return=h,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case Hr:return f=Ws(c.type,c.key,c.props,null,h.mode,f),f.ref=Gn(h,null,c),f.return=h,f;case Oi:return c=tu(c,h.mode,f),c.return=h,c}if(ys(c)||In(c))return c=Yt(c,h.mode,f,null),c.return=h,c;xs(h,c)}return null}function m(h,c,f,g){var w=c!==null?c.key:null;if(typeof f=="string"||typeof f=="number")return w!==null?null:a(h,c,""+f,g);if(typeof f=="object"&&f!==null){switch(f.$$typeof){case Hr:return f.key===w?f.type===ui?d(h,c,f.props.children,g,w):l(h,c,f,g):null;case Oi:return f.key===w?u(h,c,f,g):null}if(ys(f)||In(f))return w!==null?null:d(h,c,f,g,null);xs(h,f)}return null}function v(h,c,f,g,w){if(typeof g=="string"||typeof g=="number")return h=h.get(f)||null,a(c,h,""+g,w);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Hr:return h=h.get(g.key===null?f:g.key)||null,g.type===ui?d(c,h,g.props.children,w,g.key):l(c,h,g,w);case Oi:return h=h.get(g.key===null?f:g.key)||null,u(c,h,g,w)}if(ys(g)||In(g))return h=h.get(f)||null,d(c,h,g,w,null);xs(c,g)}return null}function S(h,c,f,g){for(var w=null,x=null,C=c,z=c=0,D=null;C!==null&&z<f.length;z++){C.index>z?(D=C,C=null):D=C.sibling;var T=m(h,C,f[z],g);if(T===null){C===null&&(C=D);break}e&&C&&T.alternate===null&&t(h,C),c=s(T,c,z),x===null?w=T:x.sibling=T,x=T,C=D}if(z===f.length)return i(h,C),w;if(C===null){for(;z<f.length;z++)C=p(h,f[z],g),C!==null&&(c=s(C,c,z),x===null?w=C:x.sibling=C,x=C);return w}for(C=n(h,C);z<f.length;z++)D=v(C,h,z,f[z],g),D!==null&&(e&&D.alternate!==null&&C.delete(D.key===null?z:D.key),c=s(D,c,z),x===null?w=D:x.sibling=D,x=D);return e&&C.forEach(function(b){return t(h,b)}),w}function y(h,c,f,g){var w=In(f);if(typeof w!="function")throw Error(M(150));if(f=w.call(f),f==null)throw Error(M(151));for(var x=w=null,C=c,z=c=0,D=null,T=f.next();C!==null&&!T.done;z++,T=f.next()){C.index>z?(D=C,C=null):D=C.sibling;var b=m(h,C,T.value,g);if(b===null){C===null&&(C=D);break}e&&C&&b.alternate===null&&t(h,C),c=s(b,c,z),x===null?w=b:x.sibling=b,x=b,C=D}if(T.done)return i(h,C),w;if(C===null){for(;!T.done;z++,T=f.next())T=p(h,T.value,g),T!==null&&(c=s(T,c,z),x===null?w=T:x.sibling=T,x=T);return w}for(C=n(h,C);!T.done;z++,T=f.next())T=v(C,h,z,T.value,g),T!==null&&(e&&T.alternate!==null&&C.delete(T.key===null?z:T.key),c=s(T,c,z),x===null?w=T:x.sibling=T,x=T);return e&&C.forEach(function(j){return t(h,j)}),w}return function(h,c,f,g){var w=typeof f=="object"&&f!==null&&f.type===ui&&f.key===null;w&&(f=f.props.children);var x=typeof f=="object"&&f!==null;if(x)switch(f.$$typeof){case Hr:e:{for(x=f.key,w=c;w!==null;){if(w.key===x){switch(w.tag){case 7:if(f.type===ui){i(h,w.sibling),c=r(w,f.props.children),c.return=h,h=c;break e}break;default:if(w.elementType===f.type){i(h,w.sibling),c=r(w,f.props),c.ref=Gn(h,w,f),c.return=h,h=c;break e}}i(h,w);break}else t(h,w);w=w.sibling}f.type===ui?(c=Yt(f.props.children,h.mode,g,f.key),c.return=h,h=c):(g=Ws(f.type,f.key,f.props,null,h.mode,g),g.ref=Gn(h,c,f),g.return=h,h=g)}return o(h);case Oi:e:{for(w=f.key;c!==null;){if(c.key===w)if(c.tag===4&&c.stateNode.containerInfo===f.containerInfo&&c.stateNode.implementation===f.implementation){i(h,c.sibling),c=r(c,f.children||[]),c.return=h,h=c;break e}else{i(h,c);break}else t(h,c);c=c.sibling}c=tu(f,h.mode,g),c.return=h,h=c}return o(h)}if(typeof f=="string"||typeof f=="number")return f=""+f,c!==null&&c.tag===6?(i(h,c.sibling),c=r(c,f),c.return=h,h=c):(i(h,c),c=eu(f,h.mode,g),c.return=h,h=c),o(h);if(ys(f))return S(h,c,f,g);if(In(f))return y(h,c,f,g);if(x&&xs(h,f),typeof f=="undefined"&&!w)switch(h.tag){case 1:case 0:throw h=h.type,Error(M(152,h.displayName||h.name||"Component"))}return i(h,c)}}var Xi=Pp(!0),xl=Pp(!1),Yn={},dt={current:Yn},Xn={current:Yn},Jn={current:Yn};function fi(e){if(e===Yn)throw Error(M(174));return e}function Sl(e,t){switch(ie(Jn,t),ie(Xn,e),ie(dt,Yn),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:za(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=za(t,e)}K(dt),ie(dt,t)}function Ji(){K(dt),K(Xn),K(Jn)}function zp(e){fi(Jn.current);var t=fi(dt.current),i=za(t,e.type);t!==i&&(ie(Xn,e),ie(dt,i))}function Cl(e){Xn.current===e&&(K(dt),K(Xn))}var te={current:0};function Ss(e){for(var t=e;t!==null;){if(t.tag===13){var i=t.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data===Xa||i.data===Ja))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.effectTag&64)!==0)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}function Ml(e,t){return{responder:e,props:t}}var Cs=Ke.ReactCurrentDispatcher,Qe=Ke.ReactCurrentBatchConfig,Qt=0,le=null,xe=null,Se=null,Ms=!1;function Be(){throw Error(M(321))}function Il(e,t){if(t===null)return!1;for(var i=0;i<t.length&&i<e.length;i++)if(!hi(e[i],t[i]))return!1;return!0}function bl(e,t,i,n,r,s){if(Qt=s,le=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Cs.current=e===null||e.memoizedState===null?F0:Z0,e=i(n,r),t.expirationTime===Qt){s=0;do{if(t.expirationTime=0,!(25>s))throw Error(M(301));s+=1,Se=xe=null,t.updateQueue=null,Cs.current=G0,e=i(n,r)}while(t.expirationTime===Qt)}if(Cs.current=Ts,t=xe!==null&&xe.next!==null,Qt=0,Se=xe=le=null,Ms=!1,t)throw Error(M(300));return e}function Ki(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Se===null?le.memoizedState=Se=e:Se=Se.next=e,Se}function qi(){if(xe===null){var e=le.alternate;e=e!==null?e.memoizedState:null}else e=xe.next;var t=Se===null?le.memoizedState:Se.next;if(t!==null)Se=t,xe=e;else{if(e===null)throw Error(M(310));xe=e,e={memoizedState:xe.memoizedState,baseState:xe.baseState,baseQueue:xe.baseQueue,queue:xe.queue,next:null},Se===null?le.memoizedState=Se=e:Se=Se.next=e}return Se}function gi(e,t){return typeof t=="function"?t(e):t}function Is(e){var t=qi(),i=t.queue;if(i===null)throw Error(M(311));i.lastRenderedReducer=e;var n=xe,r=n.baseQueue,s=i.pending;if(s!==null){if(r!==null){var o=r.next;r.next=s.next,s.next=o}n.baseQueue=r=s,i.pending=null}if(r!==null){r=r.next,n=n.baseState;var a=o=s=null,l=r;do{var u=l.expirationTime;if(u<Qt){var d={expirationTime:l.expirationTime,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};a===null?(o=a=d,s=n):a=a.next=d,u>le.expirationTime&&(le.expirationTime=u,Hs(u))}else a!==null&&(a=a.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),Cf(u,l.suspenseConfig),n=l.eagerReducer===e?l.eagerState:e(n,l.action);l=l.next}while(l!==null&&l!==r);a===null?s=n:a.next=o,hi(n,t.memoizedState)||(ht=!0),t.memoizedState=n,t.baseState=s,t.baseQueue=a,i.lastRenderedState=n}return[t.memoizedState,i.dispatch]}function bs(e){var t=qi(),i=t.queue;if(i===null)throw Error(M(311));i.lastRenderedReducer=e;var n=i.dispatch,r=i.pending,s=t.memoizedState;if(r!==null){i.pending=null;var o=r=r.next;do s=e(s,o.action),o=o.next;while(o!==r);hi(s,t.memoizedState)||(ht=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),i.lastRenderedState=s}return[s,n]}function El(e){var t=Ki();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:gi,lastRenderedState:e},e=e.dispatch=Vp.bind(null,le,e),[t.memoizedState,e]}function Al(e,t,i,n){return e={tag:e,create:t,destroy:i,deps:n,next:null},t=le.updateQueue,t===null?(t={lastEffect:null},le.updateQueue=t,t.lastEffect=e.next=e):(i=t.lastEffect,i===null?t.lastEffect=e.next=e:(n=i.next,i.next=e,e.next=n,t.lastEffect=e)),e}function Dp(){return qi().memoizedState}function Tl(e,t,i,n){var r=Ki();le.effectTag|=e,r.memoizedState=Al(1|t,i,void 0,n===void 0?null:n)}function kl(e,t,i,n){var r=qi();n=n===void 0?null:n;var s=void 0;if(xe!==null){var o=xe.memoizedState;if(s=o.destroy,n!==null&&Il(n,o.deps)){Al(t,i,s,n);return}}le.effectTag|=e,r.memoizedState=Al(1|t,i,s,n)}function Lp(e,t){return Tl(516,4,e,t)}function Es(e,t){return kl(516,4,e,t)}function jp(e,t){return kl(4,2,e,t)}function Bp(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Rp(e,t,i){return i=i!=null?i.concat([e]):null,kl(4,2,Bp.bind(null,t,e),i)}function Nl(){}function Op(e,t){return Ki().memoizedState=[e,t===void 0?null:t],e}function As(e,t){var i=qi();t=t===void 0?null:t;var n=i.memoizedState;return n!==null&&t!==null&&Il(t,n[1])?n[0]:(i.memoizedState=[e,t],e)}function _p(e,t){var i=qi();t=t===void 0?null:t;var n=i.memoizedState;return n!==null&&t!==null&&Il(t,n[1])?n[0]:(e=e(),i.memoizedState=[e,t],e)}function Pl(e,t,i){var n=hs();Ut(98>n?98:n,function(){e(!0)}),Ut(97<n?97:n,function(){var r=Qe.suspense;Qe.suspense=t===void 0?null:t;try{e(!1),i()}finally{Qe.suspense=r}})}function Vp(e,t,i){var n=ft(),r=Zn.suspense;n=yi(n,e,r),r={expirationTime:n,suspenseConfig:r,action:i,eagerReducer:null,eagerState:null,next:null};var s=t.pending;if(s===null?r.next=r:(r.next=s.next,s.next=r),t.pending=r,s=e.alternate,e===le||s!==null&&s===le)Ms=!0,r.expirationTime=Qt,le.expirationTime=Qt;else{if(e.expirationTime===0&&(s===null||s.expirationTime===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,i);if(r.eagerReducer=s,r.eagerState=a,hi(a,o))return}catch{}finally{}Gt(e,n)}}var Ts={readContext:We,useCallback:Be,useContext:Be,useEffect:Be,useImperativeHandle:Be,useLayoutEffect:Be,useMemo:Be,useReducer:Be,useRef:Be,useState:Be,useDebugValue:Be,useResponder:Be,useDeferredValue:Be,useTransition:Be},F0={readContext:We,useCallback:Op,useContext:We,useEffect:Lp,useImperativeHandle:function(e,t,i){return i=i!=null?i.concat([e]):null,Tl(4,2,Bp.bind(null,t,e),i)},useLayoutEffect:function(e,t){return Tl(4,2,e,t)},useMemo:function(e,t){var i=Ki();return t=t===void 0?null:t,e=e(),i.memoizedState=[e,t],e},useReducer:function(e,t,i){var n=Ki();return t=i!==void 0?i(t):t,n.memoizedState=n.baseState=t,e=n.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=Vp.bind(null,le,e),[n.memoizedState,e]},useRef:function(e){var t=Ki();return e={current:e},t.memoizedState=e},useState:El,useDebugValue:Nl,useResponder:Ml,useDeferredValue:function(e,t){var i=El(e),n=i[0],r=i[1];return Lp(function(){var s=Qe.suspense;Qe.suspense=t===void 0?null:t;try{r(e)}finally{Qe.suspense=s}},[e,t]),n},useTransition:function(e){var t=El(!1),i=t[0];return t=t[1],[Op(Pl.bind(null,t,e),[t,e]),i]}},Z0={readContext:We,useCallback:As,useContext:We,useEffect:Es,useImperativeHandle:Rp,useLayoutEffect:jp,useMemo:_p,useReducer:Is,useRef:Dp,useState:function(){return Is(gi)},useDebugValue:Nl,useResponder:Ml,useDeferredValue:function(e,t){var i=Is(gi),n=i[0],r=i[1];return Es(function(){var s=Qe.suspense;Qe.suspense=t===void 0?null:t;try{r(e)}finally{Qe.suspense=s}},[e,t]),n},useTransition:function(e){var t=Is(gi),i=t[0];return t=t[1],[As(Pl.bind(null,t,e),[t,e]),i]}},G0={readContext:We,useCallback:As,useContext:We,useEffect:Es,useImperativeHandle:Rp,useLayoutEffect:jp,useMemo:_p,useReducer:bs,useRef:Dp,useState:function(){return bs(gi)},useDebugValue:Nl,useResponder:Ml,useDeferredValue:function(e,t){var i=bs(gi),n=i[0],r=i[1];return Es(function(){var s=Qe.suspense;Qe.suspense=t===void 0?null:t;try{r(e)}finally{Qe.suspense=s}},[e,t]),n},useTransition:function(e){var t=bs(gi),i=t[0];return t=t[1],[As(Pl.bind(null,t,e),[t,e]),i]}},bt=null,Ft=null,mi=!1;function Up(e,t){var i=gt(5,null,null,0);i.elementType="DELETED",i.type="DELETED",i.stateNode=t,i.return=e,i.effectTag=8,e.lastEffect!==null?(e.lastEffect.nextEffect=i,e.lastEffect=i):e.firstEffect=e.lastEffect=i}function $p(e,t){switch(e.tag){case 5:var i=e.type;return t=t.nodeType!==1||i.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function zl(e){if(mi){var t=Ft;if(t){var i=t;if(!$p(e,t)){if(t=$i(i.nextSibling),!t||!$p(e,t)){e.effectTag=e.effectTag&-1025|2,mi=!1,bt=e;return}Up(bt,i)}bt=e,Ft=$i(t.firstChild)}else e.effectTag=e.effectTag&-1025|2,mi=!1,bt=e}}function Hp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;bt=e}function ks(e){if(e!==bt)return!1;if(!mi)return Hp(e),mi=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!el(t,e.memoizedProps))for(t=Ft;t;)Up(e,t),t=$i(t.nextSibling);if(Hp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(M(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var i=e.data;if(i===_h){if(t===0){Ft=$i(e.nextSibling);break e}t--}else i!==Oh&&i!==Ja&&i!==Xa||t++}e=e.nextSibling}Ft=null}}else Ft=bt?$i(e.stateNode.nextSibling):null;return!0}function Dl(){Ft=bt=null,mi=!1}var Y0=Ke.ReactCurrentOwner,ht=!1;function Re(e,t,i,n){t.child=e===null?xl(t,null,i,n):Xi(t,e.child,i,n)}function Wp(e,t,i,n,r){i=i.render;var s=t.ref;return Yi(t,r),n=bl(e,t,i,n,s,r),e!==null&&!ht?(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=r&&(e.expirationTime=0),Et(e,t,r)):(t.effectTag|=1,Re(e,t,n,r),t.child)}function Qp(e,t,i,n,r,s){if(e===null){var o=i.type;return typeof o=="function"&&!ql(o)&&o.defaultProps===void 0&&i.compare===null&&i.defaultProps===void 0?(t.tag=15,t.type=o,Fp(e,t,o,n,r,s)):(e=Ws(i.type,null,n,null,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}return o=e.child,r<s&&(r=o.memoizedProps,i=i.compare,i=i!==null?i:Wn,i(r,n)&&e.ref===t.ref)?Et(e,t,s):(t.effectTag|=1,e=Mi(o,n),e.ref=t.ref,e.return=t,t.child=e)}function Fp(e,t,i,n,r,s){return e!==null&&Wn(e.memoizedProps,n)&&e.ref===t.ref&&(ht=!1,r<s)?(t.expirationTime=e.expirationTime,Et(e,t,s)):Ll(e,t,i,n,s)}function Zp(e,t){var i=t.ref;(e===null&&i!==null||e!==null&&e.ref!==i)&&(t.effectTag|=128)}function Ll(e,t,i,n,r){var s=Ne(i)?pi:ye.current;return s=Zi(t,s),Yi(t,r),i=bl(e,t,i,n,s,r),e!==null&&!ht?(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=r&&(e.expirationTime=0),Et(e,t,r)):(t.effectTag|=1,Re(e,t,i,r),t.child)}function Gp(e,t,i,n,r){if(Ne(i)){var s=!0;us(t)}else s=!1;if(Yi(t,r),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.effectTag|=2),kp(t,i,n),yl(t,i,n,r),n=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,u=i.contextType;typeof u=="object"&&u!==null?u=We(u):(u=Ne(i)?pi:ye.current,u=Zi(t,u));var d=i.getDerivedStateFromProps,p=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";p||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==n||l!==u)&&Np(t,o,n,u),$t=!1;var m=t.memoizedState;o.state=m,Fn(t,n,o,r),l=t.memoizedState,a!==n||m!==l||ke.current||$t?(typeof d=="function"&&(vs(t,i,d,n),l=t.memoizedState),(a=$t||Tp(t,i,a,n,m,l,u))?(p||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.effectTag|=4)):(typeof o.componentDidMount=="function"&&(t.effectTag|=4),t.memoizedProps=n,t.memoizedState=l),o.props=n,o.state=l,o.context=u,n=a):(typeof o.componentDidMount=="function"&&(t.effectTag|=4),n=!1)}else o=t.stateNode,wl(e,t),a=t.memoizedProps,o.props=t.type===t.elementType?a:qe(t.type,a),l=o.context,u=i.contextType,typeof u=="object"&&u!==null?u=We(u):(u=Ne(i)?pi:ye.current,u=Zi(t,u)),d=i.getDerivedStateFromProps,(p=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==n||l!==u)&&Np(t,o,n,u),$t=!1,l=t.memoizedState,o.state=l,Fn(t,n,o,r),m=t.memoizedState,a!==n||l!==m||ke.current||$t?(typeof d=="function"&&(vs(t,i,d,n),m=t.memoizedState),(d=$t||Tp(t,i,a,n,l,m,u))?(p||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,m,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,m,u)),typeof o.componentDidUpdate=="function"&&(t.effectTag|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.effectTag|=256)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=n,t.memoizedState=m),o.props=n,o.state=m,o.context=u,n=d):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),n=!1);return jl(e,t,i,n,s,r)}function jl(e,t,i,n,r,s){Zp(e,t);var o=(t.effectTag&64)!==0;if(!n&&!o)return r&&dp(t,i,!1),Et(e,t,s);n=t.stateNode,Y0.current=t;var a=o&&typeof i.getDerivedStateFromError!="function"?null:n.render();return t.effectTag|=1,e!==null&&o?(t.child=Xi(t,e.child,null,s),t.child=Xi(t,null,a,s)):Re(e,t,a,s),t.memoizedState=n.state,r&&dp(t,i,!0),t.child}function Yp(e){var t=e.stateNode;t.pendingContext?up(e,t.pendingContext,t.pendingContext!==t.context):t.context&&up(e,t.context,!1),Sl(e,t.containerInfo)}var Bl={dehydrated:null,retryTime:0};function Xp(e,t,i){var n=t.mode,r=t.pendingProps,s=te.current,o=!1,a;if((a=(t.effectTag&64)!==0)||(a=(s&2)!==0&&(e===null||e.memoizedState!==null)),a?(o=!0,t.effectTag&=-65):e!==null&&e.memoizedState===null||r.fallback===void 0||r.unstable_avoidThisFallback===!0||(s|=1),ie(te,s&1),e===null){if(r.fallback!==void 0&&zl(t),o){if(o=r.fallback,r=Yt(null,n,0,null),r.return=t,(t.mode&2)===0)for(e=t.memoizedState!==null?t.child.child:t.child,r.child=e;e!==null;)e.return=r,e=e.sibling;return i=Yt(o,n,i,null),i.return=t,r.sibling=i,t.memoizedState=Bl,t.child=r,i}return n=r.children,t.memoizedState=null,t.child=xl(t,null,n,i)}if(e.memoizedState!==null){if(e=e.child,n=e.sibling,o){if(r=r.fallback,i=Mi(e,e.pendingProps),i.return=t,(t.mode&2)===0&&(o=t.memoizedState!==null?t.child.child:t.child,o!==e.child))for(i.child=o;o!==null;)o.return=i,o=o.sibling;return n=Mi(n,r),n.return=t,i.sibling=n,i.childExpirationTime=0,t.memoizedState=Bl,t.child=i,n}return i=Xi(t,e.child,r.children,i),t.memoizedState=null,t.child=i}if(e=e.child,o){if(o=r.fallback,r=Yt(null,n,0,null),r.return=t,r.child=e,e!==null&&(e.return=r),(t.mode&2)===0)for(e=t.memoizedState!==null?t.child.child:t.child,r.child=e;e!==null;)e.return=r,e=e.sibling;return i=Yt(o,n,i,null),i.return=t,r.sibling=i,i.effectTag|=2,r.childExpirationTime=0,t.memoizedState=Bl,t.child=r,i}return t.memoizedState=null,t.child=Xi(t,e,r.children,i)}function Jp(e,t){e.expirationTime<t&&(e.expirationTime=t);var i=e.alternate;i!==null&&i.expirationTime<t&&(i.expirationTime=t),Ip(e.return,t)}function Rl(e,t,i,n,r,s){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:i,tailExpiration:0,tailMode:r,lastEffect:s}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=i,o.tailExpiration=0,o.tailMode=r,o.lastEffect=s)}function Kp(e,t,i){var n=t.pendingProps,r=n.revealOrder,s=n.tail;if(Re(e,t,n.children,i),n=te.current,(n&2)!==0)n=n&1|2,t.effectTag|=64;else{if(e!==null&&(e.effectTag&64)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Jp(e,i);else if(e.tag===19)Jp(e,i);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}n&=1}if(ie(te,n),(t.mode&2)===0)t.memoizedState=null;else switch(r){case"forwards":for(i=t.child,r=null;i!==null;)e=i.alternate,e!==null&&Ss(e)===null&&(r=i),i=i.sibling;i=r,i===null?(r=t.child,t.child=null):(r=i.sibling,i.sibling=null),Rl(t,!1,r,i,s,t.lastEffect);break;case"backwards":for(i=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&Ss(e)===null){t.child=r;break}e=r.sibling,r.sibling=i,i=r,r=e}Rl(t,!0,i,null,s,t.lastEffect);break;case"together":Rl(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Et(e,t,i){e!==null&&(t.dependencies=e.dependencies);var n=t.expirationTime;if(n!==0&&Hs(n),t.childExpirationTime<i)return null;if(e!==null&&t.child!==e.child)throw Error(M(153));if(t.child!==null){for(e=t.child,i=Mi(e,e.pendingProps),t.child=i,i.return=t;e.sibling!==null;)e=e.sibling,i=i.sibling=Mi(e,e.pendingProps),i.return=t;i.sibling=null}return t.child}var qp,Ol,ef,tf;qp=function(e,t){for(var i=t.child;i!==null;){if(i.tag===5||i.tag===6)e.appendChild(i.stateNode);else if(i.tag!==4&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},Ol=function(){},ef=function(e,t,i,n,r){var s=e.memoizedProps;if(s!==n){var o=t.stateNode;switch(fi(dt.current),e=null,i){case"input":s=Aa(o,s),n=Aa(o,n),e=[];break;case"option":s=Na(o,s),n=Na(o,n),e=[];break;case"select":s=Ie({},s,{value:void 0}),n=Ie({},n,{value:void 0}),e=[];break;case"textarea":s=Pa(o,s),n=Pa(o,n),e=[];break;default:typeof s.onClick!="function"&&typeof n.onClick=="function"&&(o.onclick=ts)}Fa(i,n);var a,l;i=null;for(a in s)if(!n.hasOwnProperty(a)&&s.hasOwnProperty(a)&&s[a]!=null)if(a==="style")for(l in o=s[a],o)o.hasOwnProperty(l)&&(i||(i={}),i[l]="");else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(ji.hasOwnProperty(a)?e||(e=[]):(e=e||[]).push(a,null));for(a in n){var u=n[a];if(o=s!=null?s[a]:void 0,n.hasOwnProperty(a)&&u!==o&&(u!=null||o!=null))if(a==="style")if(o){for(l in o)!o.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(i||(i={}),i[l]="");for(l in u)u.hasOwnProperty(l)&&o[l]!==u[l]&&(i||(i={}),i[l]=u[l])}else i||(e||(e=[]),e.push(a,i)),i=u;else a==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,o=o?o.__html:void 0,u!=null&&o!==u&&(e=e||[]).push(a,u)):a==="children"?o===u||typeof u!="string"&&typeof u!="number"||(e=e||[]).push(a,""+u):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(ji.hasOwnProperty(a)?(u!=null&&St(r,a),e||o===u||(e=[])):(e=e||[]).push(a,u))}i&&(e=e||[]).push("style",i),r=e,(t.updateQueue=r)&&(t.effectTag|=4)}},tf=function(e,t,i,n){i!==n&&(t.effectTag|=4)};function Ns(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var n=null;i!==null;)i.alternate!==null&&(n=i),i=i.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function X0(e,t,i){var n=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return Ne(t.type)&&ls(),null;case 3:return Ji(),K(ke),K(ye),i=t.stateNode,i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),e!==null&&e.child!==null||!ks(t)||(t.effectTag|=4),Ol(t),null;case 5:Cl(t),i=fi(Jn.current);var r=t.type;if(e!==null&&t.stateNode!=null)ef(e,t,r,n,i),e.ref!==t.ref&&(t.effectTag|=128);else{if(!n){if(t.stateNode===null)throw Error(M(166));return null}if(e=fi(dt.current),ks(t)){n=t.stateNode,r=t.type;var s=t.memoizedProps;switch(n[Ot]=t,n[is]=s,r){case"iframe":case"object":case"embed":ee("load",n);break;case"video":case"audio":for(e=0;e<En.length;e++)ee(En[e],n);break;case"source":ee("error",n);break;case"img":case"image":case"link":ee("error",n),ee("load",n);break;case"form":ee("reset",n),ee("submit",n);break;case"details":ee("toggle",n);break;case"input":th(n,s),ee("invalid",n),St(i,"onChange");break;case"select":n._wrapperState={wasMultiple:!!s.multiple},ee("invalid",n),St(i,"onChange");break;case"textarea":rh(n,s),ee("invalid",n),St(i,"onChange")}Fa(r,s),e=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?n.textContent!==a&&(e=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(e=["children",""+a]):ji.hasOwnProperty(o)&&a!=null&&St(i,o)}switch(r){case"input":Fr(n),nh(n,s,!0);break;case"textarea":Fr(n),oh(n);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(n.onclick=ts)}i=e,t.updateQueue=i,i!==null&&(t.effectTag|=4)}else{switch(o=i.nodeType===9?i:i.ownerDocument,e===Dh&&(e=lh(r)),e===Dh?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[Ot]=t,e[is]=n,qp(e,t,!1,!1),t.stateNode=e,o=Za(r,n),r){case"iframe":case"object":case"embed":ee("load",e),a=n;break;case"video":case"audio":for(a=0;a<En.length;a++)ee(En[a],e);a=n;break;case"source":ee("error",e),a=n;break;case"img":case"image":case"link":ee("error",e),ee("load",e),a=n;break;case"form":ee("reset",e),ee("submit",e),a=n;break;case"details":ee("toggle",e),a=n;break;case"input":th(e,n),a=Aa(e,n),ee("invalid",e),St(i,"onChange");break;case"option":a=Na(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},a=Ie({},n,{value:void 0}),ee("invalid",e),St(i,"onChange");break;case"textarea":rh(e,n),a=Pa(e,n),ee("invalid",e),St(i,"onChange");break;default:a=n}Fa(r,a);var l=a;for(s in l)if(l.hasOwnProperty(s)){var u=l[s];s==="style"?zh(e,u):s==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&uh(e,u)):s==="children"?typeof u=="string"?(r!=="textarea"||u!=="")&&bn(e,u):typeof u=="number"&&bn(e,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(ji.hasOwnProperty(s)?u!=null&&St(i,s):u!=null&&Ca(e,s,u,o))}switch(r){case"input":Fr(e),nh(e,n,!1);break;case"textarea":Fr(e),oh(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Lt(n.value));break;case"select":e.multiple=!!n.multiple,i=n.value,i!=null?_i(e,!!n.multiple,i,!1):n.defaultValue!=null&&_i(e,!!n.multiple,n.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=ts)}Vh(r,n)&&(t.effectTag|=4)}t.ref!==null&&(t.effectTag|=128)}return null;case 6:if(e&&t.stateNode!=null)tf(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(M(166));i=fi(Jn.current),fi(dt.current),ks(t)?(i=t.stateNode,n=t.memoizedProps,i[Ot]=t,i.nodeValue!==n&&(t.effectTag|=4)):(i=(i.nodeType===9?i:i.ownerDocument).createTextNode(n),i[Ot]=t,t.stateNode=i)}return null;case 13:return K(te),n=t.memoizedState,(t.effectTag&64)!==0?(t.expirationTime=i,t):(i=n!==null,n=!1,e===null?t.memoizedProps.fallback!==void 0&&ks(t):(r=e.memoizedState,n=r!==null,i||r===null||(r=e.child.sibling,r!==null&&(s=t.firstEffect,s!==null?(t.firstEffect=r,r.nextEffect=s):(t.firstEffect=t.lastEffect=r,r.nextEffect=null),r.effectTag=8))),i&&!n&&(t.mode&2)!==0&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||(te.current&1)!==0?he===vi&&(he=Ds):((he===vi||he===Ds)&&(he=Ls),qn!==0&&Oe!==null&&(Ii(Oe,Pe),Tf(Oe,qn)))),(i||n)&&(t.effectTag|=4),null);case 4:return Ji(),Ol(t),null;case 10:return ml(t),null;case 17:return Ne(t.type)&&ls(),null;case 19:if(K(te),n=t.memoizedState,n===null)return null;if(r=(t.effectTag&64)!==0,s=n.rendering,s===null){if(r)Ns(n,!1);else if(he!==vi||e!==null&&(e.effectTag&64)!==0)for(s=t.child;s!==null;){if(e=Ss(s),e!==null){for(t.effectTag|=64,Ns(n,!1),r=e.updateQueue,r!==null&&(t.updateQueue=r,t.effectTag|=4),n.lastEffect===null&&(t.firstEffect=null),t.lastEffect=n.lastEffect,n=t.child;n!==null;)r=n,s=i,r.effectTag&=2,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null,e=r.alternate,e===null?(r.childExpirationTime=0,r.expirationTime=s,r.child=null,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null):(r.childExpirationTime=e.childExpirationTime,r.expirationTime=e.expirationTime,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,s=e.dependencies,r.dependencies=s===null?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),n=n.sibling;return ie(te,te.current&1|2),t.child}s=s.sibling}}else{if(!r)if(e=Ss(s),e!==null){if(t.effectTag|=64,r=!0,i=e.updateQueue,i!==null&&(t.updateQueue=i,t.effectTag|=4),Ns(n,!0),n.tail===null&&n.tailMode==="hidden"&&!s.alternate)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*He()-n.renderingStartTime>n.tailExpiration&&1<i&&(t.effectTag|=64,r=!0,Ns(n,!1),t.expirationTime=t.childExpirationTime=i-1);n.isBackwards?(s.sibling=t.child,t.child=s):(i=n.last,i!==null?i.sibling=s:t.child=s,n.last=s)}return n.tail!==null?(n.tailExpiration===0&&(n.tailExpiration=He()+500),i=n.tail,n.rendering=i,n.tail=i.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=He(),i.sibling=null,t=te.current,ie(te,r?t&1|2:t&1),i):null}throw Error(M(156,t.tag))}function J0(e){switch(e.tag){case 1:Ne(e.type)&&ls();var t=e.effectTag;return t&4096?(e.effectTag=t&-4097|64,e):null;case 3:if(Ji(),K(ke),K(ye),t=e.effectTag,(t&64)!==0)throw Error(M(285));return e.effectTag=t&-4097|64,e;case 5:return Cl(e),null;case 13:return K(te),t=e.effectTag,t&4096?(e.effectTag=t&-4097|64,e):null;case 19:return K(te),null;case 4:return Ji(),null;case 10:return ml(e),null;default:return null}}function _l(e,t){return{value:e,source:t,stack:Ea(t)}}var K0=typeof WeakSet=="function"?WeakSet:Set;function Vl(e,t){var i=t.source,n=t.stack;n===null&&i!==null&&(n=Ea(i)),i!==null&&xt(i.type),t=t.value,e!==null&&e.tag===1&&xt(e.type);try{console.error(t)}catch(r){setTimeout(function(){throw r})}}function q0(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(i){Ci(e,i)}}function nf(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(i){Ci(e,i)}else t.current=null}function ex(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.effectTag&256&&e!==null){var i=e.memoizedProps,n=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?i:qe(t.type,i),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(M(163))}function rf(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var i=t=t.next;do{if((i.tag&e)===e){var n=i.destroy;i.destroy=void 0,n!==void 0&&n()}i=i.next}while(i!==t)}}function sf(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var i=t=t.next;do{if((i.tag&e)===e){var n=i.create;i.destroy=n()}i=i.next}while(i!==t)}}function tx(e,t,i){switch(i.tag){case 0:case 11:case 15:case 22:sf(3,i);return;case 1:if(e=i.stateNode,i.effectTag&4)if(t===null)e.componentDidMount();else{var n=i.elementType===i.type?t.memoizedProps:qe(i.type,t.memoizedProps);e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}t=i.updateQueue,t!==null&&Ep(i,t,e);return;case 3:if(t=i.updateQueue,t!==null){if(e=null,i.child!==null)switch(i.child.tag){case 5:e=i.child.stateNode;break;case 1:e=i.child.stateNode}Ep(i,t,e)}return;case 5:e=i.stateNode,t===null&&i.effectTag&4&&Vh(i.type,i.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:i.memoizedState===null&&(i=i.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&Ah(i))));return;case 19:case 17:case 20:case 21:return}throw Error(M(163))}function of(e,t,i){switch(typeof Kl=="function"&&Kl(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var n=e.next;Ut(97<i?97:i,function(){var r=n;do{var s=r.destroy;if(s!==void 0){var o=t;try{s()}catch(a){Ci(o,a)}}r=r.next}while(r!==n)})}break;case 1:nf(t),i=t.stateNode,typeof i.componentWillUnmount=="function"&&q0(t,i);break;case 5:nf(t);break;case 4:cf(e,t,i)}}function af(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,t!==null&&af(t)}function lf(e){return e.tag===5||e.tag===3||e.tag===4}function uf(e){e:{for(var t=e.return;t!==null;){if(lf(t)){var i=t;break e}t=t.return}throw Error(M(160))}switch(t=i.stateNode,i.tag){case 5:var n=!1;break;case 3:t=t.containerInfo,n=!0;break;case 4:t=t.containerInfo,n=!0;break;default:throw Error(M(161))}i.effectTag&16&&(bn(t,""),i.effectTag&=-17);e:t:for(i=e;;){for(;i.sibling===null;){if(i.return===null||lf(i.return)){i=null;break e}i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.effectTag&2||i.child===null||i.tag===4)continue t;i.child.return=i,i=i.child}if(!(i.effectTag&2)){i=i.stateNode;break e}}n?Ul(e,i,t):$l(e,i,t)}function Ul(e,t,i){var n=e.tag,r=n===5||n===6;if(r)e=r?e.stateNode:e.stateNode.instance,t?i.nodeType===8?i.parentNode.insertBefore(e,t):i.insertBefore(e,t):(i.nodeType===8?(t=i.parentNode,t.insertBefore(e,i)):(t=i,t.appendChild(e)),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=ts));else if(n!==4&&(e=e.child,e!==null))for(Ul(e,t,i),e=e.sibling;e!==null;)Ul(e,t,i),e=e.sibling}function $l(e,t,i){var n=e.tag,r=n===5||n===6;if(r)e=r?e.stateNode:e.stateNode.instance,t?i.insertBefore(e,t):i.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for($l(e,t,i),e=e.sibling;e!==null;)$l(e,t,i),e=e.sibling}function cf(e,t,i){for(var n=t,r=!1,s,o;;){if(!r){r=n.return;e:for(;;){if(r===null)throw Error(M(160));switch(s=r.stateNode,r.tag){case 5:o=!1;break e;case 3:s=s.containerInfo,o=!0;break e;case 4:s=s.containerInfo,o=!0;break e}r=r.return}r=!0}if(n.tag===5||n.tag===6){e:for(var a=e,l=n,u=i,d=l;;)if(of(a,d,u),d.child!==null&&d.tag!==4)d.child.return=d,d=d.child;else{if(d===l)break e;for(;d.sibling===null;){if(d.return===null||d.return===l)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}o?(a=s,l=n.stateNode,a.nodeType===8?a.parentNode.removeChild(l):a.removeChild(l)):s.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){s=n.stateNode.containerInfo,o=!0,n.child.return=n,n=n.child;continue}}else if(of(e,n,i),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.tag===4&&(r=!1)}n.sibling.return=n.return,n=n.sibling}}function Hl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:rf(3,t);return;case 1:return;case 5:var i=t.stateNode;if(i!=null){var n=t.memoizedProps,r=e!==null?e.memoizedProps:n;e=t.type;var s=t.updateQueue;if(t.updateQueue=null,s!==null){for(i[is]=n,e==="input"&&n.type==="radio"&&n.name!=null&&ih(i,n),Za(e,r),t=Za(e,n),r=0;r<s.length;r+=2){var o=s[r],a=s[r+1];o==="style"?zh(i,a):o==="dangerouslySetInnerHTML"?uh(i,a):o==="children"?bn(i,a):Ca(i,o,a,t)}switch(e){case"input":Ta(i,n);break;case"textarea":sh(i,n);break;case"select":t=i._wrapperState.wasMultiple,i._wrapperState.wasMultiple=!!n.multiple,e=n.value,e!=null?_i(i,!!n.multiple,e,!1):t!==!!n.multiple&&(n.defaultValue!=null?_i(i,!!n.multiple,n.defaultValue,!0):_i(i,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(M(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:t=t.stateNode,t.hydrate&&(t.hydrate=!1,Ah(t.containerInfo));return;case 12:return;case 13:if(i=t,t.memoizedState===null?n=!1:(n=!0,i=t.child,Fl=He()),i!==null)e:for(e=i;;){if(e.tag===5)s=e.stateNode,n?(s=s.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(s=e.stateNode,r=e.memoizedProps.style,r=r!=null&&r.hasOwnProperty("display")?r.display:null,s.style.display=Ph("display",r));else if(e.tag===6)e.stateNode.nodeValue=n?"":e.memoizedProps;else if(e.tag===13&&e.memoizedState!==null&&e.memoizedState.dehydrated===null){s=e.child.sibling,s.return=e,e=s;continue}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===i)break;for(;e.sibling===null;){if(e.return===null||e.return===i)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}df(t);return;case 19:df(t);return;case 17:return}throw Error(M(163))}function df(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var i=e.stateNode;i===null&&(i=e.stateNode=new K0),t.forEach(function(n){var r=dx.bind(null,e,n);i.has(n)||(i.add(n),n.then(r,r))})}}var ix=typeof WeakMap=="function"?WeakMap:Map;function hf(e,t,i){i=Ht(i,null),i.tag=3,i.payload={element:null};var n=t.value;return i.callback=function(){Os||(Os=!0,Zl=n),Vl(e,t)},i}function pf(e,t,i){i=Ht(i,null),i.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var r=t.value;i.payload=function(){return Vl(e,t),n(r)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(i.callback=function(){typeof n!="function"&&(Zt===null?Zt=new Set([this]):Zt.add(this),Vl(e,t));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),i}var nx=Math.ceil,Ps=Ke.ReactCurrentDispatcher,ff=Ke.ReactCurrentOwner,de=0,Wl=8,et=16,pt=32,vi=0,zs=1,gf=2,Ds=3,Ls=4,Ql=5,R=de,Oe=null,V=null,Pe=0,he=vi,js=null,At=1073741823,Kn=1073741823,Bs=null,qn=0,Rs=!1,Fl=0,mf=500,k=null,Os=!1,Zl=null,Zt=null,_s=!1,er=null,tr=90,wi=null,ir=0,Gl=null,Vs=0;function ft(){return(R&(et|pt))!==de?1073741821-(He()/10|0):Vs!==0?Vs:Vs=1073741821-(He()/10|0)}function yi(e,t,i){if(t=t.mode,(t&2)===0)return 1073741823;var n=hs();if((t&4)===0)return n===99?1073741823:1073741822;if((R&et)!==de)return Pe;if(i!==null)e=ps(e,i.timeoutMs|0||5e3,250);else switch(n){case 99:e=1073741823;break;case 98:e=ps(e,150,100);break;case 97:case 96:e=ps(e,5e3,250);break;case 95:e=2;break;default:throw Error(M(326))}return Oe!==null&&e===Pe&&--e,e}function Gt(e,t){if(50<ir)throw ir=0,Gl=null,Error(M(185));if(e=Us(e,t),e!==null){var i=hs();t===1073741823?(R&Wl)!==de&&(R&(et|pt))===de?Yl(e):(_e(e),R===de&&ct()):_e(e),(R&4)===de||i!==98&&i!==99||(wi===null?wi=new Map([[e,t]]):(i=wi.get(e),(i===void 0||i>t)&&wi.set(e,t)))}}function Us(e,t){e.expirationTime<t&&(e.expirationTime=t);var i=e.alternate;i!==null&&i.expirationTime<t&&(i.expirationTime=t);var n=e.return,r=null;if(n===null&&e.tag===3)r=e.stateNode;else for(;n!==null;){if(i=n.alternate,n.childExpirationTime<t&&(n.childExpirationTime=t),i!==null&&i.childExpirationTime<t&&(i.childExpirationTime=t),n.return===null&&n.tag===3){r=n.stateNode;break}n=n.return}return r!==null&&(Oe===r&&(Hs(t),he===Ls&&Ii(r,Pe)),Tf(r,t)),r}function $s(e){var t=e.lastExpiredTime;if(t!==0||(t=e.firstPendingTime,!Af(e,t)))return t;var i=e.lastPingedTime;return e=e.nextKnownPendingLevel,e=i>e?i:e,2>=e&&t!==e?0:e}function _e(e){if(e.lastExpiredTime!==0)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Cp(Yl.bind(null,e));else{var t=$s(e),i=e.callbackNode;if(t===0)i!==null&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var n=ft();if(t===1073741823?n=99:t===1||t===2?n=95:(n=10*(1073741821-t)-10*(1073741821-n),n=0>=n?99:250>=n?98:5250>=n?97:95),i!==null){var r=e.callbackPriority;if(e.callbackExpirationTime===t&&r>=n)return;i!==wp&&hp(i)}e.callbackExpirationTime=t,e.callbackPriority=n,t=t===1073741823?Cp(Yl.bind(null,e)):Sp(n,vf.bind(null,e),{timeout:10*(1073741821-t)-He()}),e.callbackNode=t}}}function vf(e,t){if(Vs=0,t)return t=ft(),iu(e,t),_e(e),null;var i=$s(e);if(i!==0){if(t=e.callbackNode,(R&(et|pt))!==de)throw Error(M(327));if(en(),e===Oe&&i===Pe||xi(e,i),V!==null){var n=R;R|=et;var r=Sf();do try{ox();break}catch(a){xf(e,a)}while(1);if(gl(),R=n,Ps.current=r,he===zs)throw t=js,xi(e,i),Ii(e,i),_e(e),t;if(V===null)switch(r=e.finishedWork=e.current.alternate,e.finishedExpirationTime=i,n=he,Oe=null,n){case vi:case zs:throw Error(M(345));case gf:iu(e,2<i?2:i);break;case Ds:if(Ii(e,i),n=e.lastSuspendedTime,i===n&&(e.nextKnownPendingLevel=Xl(r)),At===1073741823&&(r=Fl+mf-He(),10<r)){if(Rs){var s=e.lastPingedTime;if(s===0||s>=i){e.lastPingedTime=i,xi(e,i);break}}if(s=$s(e),s!==0&&s!==i)break;if(n!==0&&n!==i){e.lastPingedTime=n;break}e.timeoutHandle=tl(Si.bind(null,e),r);break}Si(e);break;case Ls:if(Ii(e,i),n=e.lastSuspendedTime,i===n&&(e.nextKnownPendingLevel=Xl(r)),Rs&&(r=e.lastPingedTime,r===0||r>=i)){e.lastPingedTime=i,xi(e,i);break}if(r=$s(e),r!==0&&r!==i)break;if(n!==0&&n!==i){e.lastPingedTime=n;break}if(Kn!==1073741823?n=10*(1073741821-Kn)-He():At===1073741823?n=0:(n=10*(1073741821-At)-5e3,r=He(),i=10*(1073741821-i)-r,n=r-n,0>n&&(n=0),n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*nx(n/1960))-n,i<n&&(n=i)),10<n){e.timeoutHandle=tl(Si.bind(null,e),n);break}Si(e);break;case Ql:if(At!==1073741823&&Bs!==null){s=At;var o=Bs;if(n=o.busyMinDurationMs|0,0>=n?n=0:(r=o.busyDelayMs|0,s=He()-(10*(1073741821-s)-(o.timeoutMs|0||5e3)),n=s<=r?0:r+n-s),10<n){Ii(e,i),e.timeoutHandle=tl(Si.bind(null,e),n);break}}Si(e);break;default:throw Error(M(329))}if(_e(e),e.callbackNode===t)return vf.bind(null,e)}}return null}function Yl(e){var t=e.lastExpiredTime;if(t=t!==0?t:1073741823,(R&(et|pt))!==de)throw Error(M(327));if(en(),e===Oe&&t===Pe||xi(e,t),V!==null){var i=R;R|=et;var n=Sf();do try{sx();break}catch(r){xf(e,r)}while(1);if(gl(),R=i,Ps.current=n,he===zs)throw i=js,xi(e,t),Ii(e,t),_e(e),i;if(V!==null)throw Error(M(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Oe=null,Si(e),_e(e)}return null}function rx(){if(wi!==null){var e=wi;wi=null,e.forEach(function(t,i){iu(i,t),_e(i)}),ct()}}function wf(e,t){var i=R;R|=1;try{return e(t)}finally{R=i,R===de&&ct()}}function yf(e,t){var i=R;R&=-2,R|=Wl;try{return e(t)}finally{R=i,R===de&&ct()}}function xi(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var i=e.timeoutHandle;if(i!==-1&&(e.timeoutHandle=-1,n0(i)),V!==null)for(i=V.return;i!==null;){var n=i;switch(n.tag){case 1:n=n.type.childContextTypes,n!=null&&ls();break;case 3:Ji(),K(ke),K(ye);break;case 5:Cl(n);break;case 4:Ji();break;case 13:K(te);break;case 19:K(te);break;case 10:ml(n)}i=i.return}Oe=e,V=Mi(e.current,null),Pe=t,he=vi,js=null,Kn=At=1073741823,Bs=null,qn=0,Rs=!1}function xf(e,t){do{try{if(gl(),Cs.current=Ts,Ms)for(var i=le.memoizedState;i!==null;){var n=i.queue;n!==null&&(n.pending=null),i=i.next}if(Qt=0,Se=xe=le=null,Ms=!1,V===null||V.return===null)return he=zs,js=t,V=null;e:{var r=e,s=V.return,o=V,a=t;if(t=Pe,o.effectTag|=2048,o.firstEffect=o.lastEffect=null,a!==null&&typeof a=="object"&&typeof a.then=="function"){var l=a;if((o.mode&2)===0){var u=o.alternate;u?(o.updateQueue=u.updateQueue,o.memoizedState=u.memoizedState,o.expirationTime=u.expirationTime):(o.updateQueue=null,o.memoizedState=null)}var d=(te.current&1)!==0,p=s;do{var m;if(m=p.tag===13){var v=p.memoizedState;if(v!==null)m=v.dehydrated!==null;else{var S=p.memoizedProps;m=S.fallback===void 0?!1:S.unstable_avoidThisFallback!==!0?!0:!d}}if(m){var y=p.updateQueue;if(y===null){var h=new Set;h.add(l),p.updateQueue=h}else y.add(l);if((p.mode&2)===0){if(p.effectTag|=64,o.effectTag&=-2981,o.tag===1)if(o.alternate===null)o.tag=17;else{var c=Ht(1073741823,null);c.tag=2,Wt(o,c)}o.expirationTime=1073741823;break e}a=void 0,o=t;var f=r.pingCache;if(f===null?(f=r.pingCache=new ix,a=new Set,f.set(l,a)):(a=f.get(l),a===void 0&&(a=new Set,f.set(l,a))),!a.has(o)){a.add(o);var g=cx.bind(null,r,l,o);l.then(g,g)}p.effectTag|=4096,p.expirationTime=t;break e}p=p.return}while(p!==null);a=Error((xt(o.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
|
44
44
|
|
45
45
|
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`+Ea(o))}he!==Ql&&(he=gf),a=_l(a,o),p=s;do{switch(p.tag){case 3:l=a,p.effectTag|=4096,p.expirationTime=t;var w=hf(p,l,t);bp(p,w);break e;case 1:l=a;var x=p.type,C=p.stateNode;if((p.effectTag&64)===0&&(typeof x.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(Zt===null||!Zt.has(C)))){p.effectTag|=4096,p.expirationTime=t;var z=pf(p,l,t);bp(p,z);break e}}p=p.return}while(p!==null)}V=If(V)}catch(D){t=D;continue}break}while(1)}function Sf(){var e=Ps.current;return Ps.current=Ts,e===null?Ts:e}function Cf(e,t){e<At&&2<e&&(At=e),t!==null&&e<Kn&&2<e&&(Kn=e,Bs=t)}function Hs(e){e>qn&&(qn=e)}function sx(){for(;V!==null;)V=Mf(V)}function ox(){for(;V!==null&&!W0();)V=Mf(V)}function Mf(e){var t=Ef(e.alternate,e,Pe);return e.memoizedProps=e.pendingProps,t===null&&(t=If(e)),ff.current=null,t}function If(e){V=e;do{var t=V.alternate;if(e=V.return,(V.effectTag&2048)===0){if(t=X0(t,V,Pe),Pe===1||V.childExpirationTime!==1){for(var i=0,n=V.child;n!==null;){var r=n.expirationTime,s=n.childExpirationTime;r>i&&(i=r),s>i&&(i=s),n=n.sibling}V.childExpirationTime=i}if(t!==null)return t;e!==null&&(e.effectTag&2048)===0&&(e.firstEffect===null&&(e.firstEffect=V.firstEffect),V.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=V.firstEffect),e.lastEffect=V.lastEffect),1<V.effectTag&&(e.lastEffect!==null?e.lastEffect.nextEffect=V:e.firstEffect=V,e.lastEffect=V))}else{if(t=J0(V),t!==null)return t.effectTag&=2047,t;e!==null&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(t=V.sibling,t!==null)return t;V=e}while(V!==null);return he===vi&&(he=Ql),null}function Xl(e){var t=e.expirationTime;return e=e.childExpirationTime,t>e?t:e}function Si(e){var t=hs();return Ut(99,ax.bind(null,e,t)),null}function ax(e,t){do en();while(er!==null);if((R&(et|pt))!==de)throw Error(M(327));var i=e.finishedWork,n=e.finishedExpirationTime;if(i===null)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,i===e.current)throw Error(M(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var r=Xl(i);if(e.firstPendingTime=r,n<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:n<=e.firstSuspendedTime&&(e.firstSuspendedTime=n-1),n<=e.lastPingedTime&&(e.lastPingedTime=0),n<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Oe&&(V=Oe=null,Pe=0),1<i.effectTag?i.lastEffect!==null?(i.lastEffect.nextEffect=i,r=i.firstEffect):r=i:r=i.firstEffect,r!==null){var s=R;R|=pt,ff.current=null,Ka=qr;var o=Rh();if(Ya(o)){if("selectionStart"in o)var a={start:o.selectionStart,end:o.selectionEnd};else e:{a=(a=o.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var u=l.anchorOffset,d=l.focusNode;l=l.focusOffset;try{a.nodeType,d.nodeType}catch{a=null;break e}var p=0,m=-1,v=-1,S=0,y=0,h=o,c=null;t:for(;;){for(var f;h!==a||u!==0&&h.nodeType!==3||(m=p+u),h!==d||l!==0&&h.nodeType!==3||(v=p+l),h.nodeType===3&&(p+=h.nodeValue.length),(f=h.firstChild)!==null;)c=h,h=f;for(;;){if(h===o)break t;if(c===a&&++S===u&&(m=p),c===d&&++y===l&&(v=p),(f=h.nextSibling)!==null)break;h=c,c=h.parentNode}h=f}a=m===-1||v===-1?null:{start:m,end:v}}else a=null}a=a||{start:0,end:0}}else a=null;qa={activeElementDetached:null,focusedElem:o,selectionRange:a},qr=!1,k=r;do try{lx()}catch(T){if(k===null)throw Error(M(330));Ci(k,T),k=k.nextEffect}while(k!==null);k=r;do try{for(o=e,a=t;k!==null;){var g=k.effectTag;if(g&16&&bn(k.stateNode,""),g&128){var w=k.alternate;if(w!==null){var x=w.ref;x!==null&&(typeof x=="function"?x(null):x.current=null)}}switch(g&1038){case 2:uf(k),k.effectTag&=-3;break;case 6:uf(k),k.effectTag&=-3,Hl(k.alternate,k);break;case 1024:k.effectTag&=-1025;break;case 1028:k.effectTag&=-1025,Hl(k.alternate,k);break;case 4:Hl(k.alternate,k);break;case 8:u=k,cf(o,u,a),af(u)}k=k.nextEffect}}catch(T){if(k===null)throw Error(M(330));Ci(k,T),k=k.nextEffect}while(k!==null);if(x=qa,w=Rh(),g=x.focusedElem,a=x.selectionRange,w!==g&&g&&g.ownerDocument&&Bh(g.ownerDocument.documentElement,g)){for(a!==null&&Ya(g)&&(w=a.start,x=a.end,x===void 0&&(x=w),"selectionStart"in g?(g.selectionStart=w,g.selectionEnd=Math.min(x,g.value.length)):(x=(w=g.ownerDocument||document)&&w.defaultView||window,x.getSelection&&(x=x.getSelection(),u=g.textContent.length,o=Math.min(a.start,u),a=a.end===void 0?o:Math.min(a.end,u),!x.extend&&o>a&&(u=a,a=o,o=u),u=jh(g,o),d=jh(g,a),u&&d&&(x.rangeCount!==1||x.anchorNode!==u.node||x.anchorOffset!==u.offset||x.focusNode!==d.node||x.focusOffset!==d.offset)&&(w=w.createRange(),w.setStart(u.node,u.offset),x.removeAllRanges(),o>a?(x.addRange(w),x.extend(d.node,d.offset)):(w.setEnd(d.node,d.offset),x.addRange(w)))))),w=[],x=g;x=x.parentNode;)x.nodeType===1&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<w.length;g++)x=w[g],x.element.scrollLeft=x.left,x.element.scrollTop=x.top}qr=!!Ka,qa=Ka=null,e.current=i,k=r;do try{for(g=e;k!==null;){var C=k.effectTag;if(C&36&&tx(g,k.alternate,k),C&128){w=void 0;var z=k.ref;if(z!==null){var D=k.stateNode;switch(k.tag){case 5:w=D;break;default:w=D}typeof z=="function"?z(w):z.current=w}}k=k.nextEffect}}catch(T){if(k===null)throw Error(M(330));Ci(k,T),k=k.nextEffect}while(k!==null);k=null,Q0(),R=s}else e.current=i;if(_s)_s=!1,er=e,tr=t;else for(k=r;k!==null;)t=k.nextEffect,k.nextEffect=null,k=t;if(t=e.firstPendingTime,t===0&&(Zt=null),t===1073741823?e===Gl?ir++:(ir=0,Gl=e):ir=0,typeof Jl=="function"&&Jl(i.stateNode,n),_e(e),Os)throw Os=!1,e=Zl,Zl=null,e;return(R&Wl)!==de||ct(),null}function lx(){for(;k!==null;){var e=k.effectTag;(e&256)!==0&&ex(k.alternate,k),(e&512)===0||_s||(_s=!0,Sp(97,function(){return en(),null})),k=k.nextEffect}}function en(){if(tr!==90){var e=97<tr?97:tr;return tr=90,Ut(e,ux)}}function ux(){if(er===null)return!1;var e=er;if(er=null,(R&(et|pt))!==de)throw Error(M(331));var t=R;for(R|=pt,e=e.current.firstEffect;e!==null;){try{var i=e;if((i.effectTag&512)!==0)switch(i.tag){case 0:case 11:case 15:case 22:rf(5,i),sf(5,i)}}catch(n){if(e===null)throw Error(M(330));Ci(e,n)}i=e.nextEffect,e.nextEffect=null,e=i}return R=t,ct(),!0}function bf(e,t,i){t=_l(i,t),t=hf(e,t,1073741823),Wt(e,t),e=Us(e,1073741823),e!==null&&_e(e)}function Ci(e,t){if(e.tag===3)bf(e,e,t);else for(var i=e.return;i!==null;){if(i.tag===3){bf(i,e,t);break}else if(i.tag===1){var n=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Zt===null||!Zt.has(n))){e=_l(t,e),e=pf(i,e,1073741823),Wt(i,e),i=Us(i,1073741823),i!==null&&_e(i);break}}i=i.return}}function cx(e,t,i){var n=e.pingCache;n!==null&&n.delete(t),Oe===e&&Pe===i?he===Ls||he===Ds&&At===1073741823&&He()-Fl<mf?xi(e,Pe):Rs=!0:Af(e,i)&&(t=e.lastPingedTime,t!==0&&t<i||(e.lastPingedTime=i,_e(e)))}function dx(e,t){var i=e.stateNode;i!==null&&i.delete(t),t=0,t===0&&(t=ft(),t=yi(t,e,null)),e=Us(e,t),e!==null&&_e(e)}var Ef;Ef=function(e,t,i){var n=t.expirationTime;if(e!==null){var r=t.pendingProps;if(e.memoizedProps!==r||ke.current)ht=!0;else{if(n<i){switch(ht=!1,t.tag){case 3:Yp(t),Dl();break;case 5:if(zp(t),t.mode&4&&i!==1&&r.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:Ne(t.type)&&us(t);break;case 4:Sl(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value,r=t.type._context,ie(fs,r._currentValue),r._currentValue=n;break;case 13:if(t.memoizedState!==null)return n=t.child.childExpirationTime,n!==0&&n>=i?Xp(e,t,i):(ie(te,te.current&1),t=Et(e,t,i),t!==null?t.sibling:null);ie(te,te.current&1);break;case 19:if(n=t.childExpirationTime>=i,(e.effectTag&64)!==0){if(n)return Kp(e,t,i);t.effectTag|=64}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null),ie(te,te.current),!n)return null}return Et(e,t,i)}ht=!1}}else ht=!1;switch(t.expirationTime=0,t.tag){case 2:if(n=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,r=Zi(t,ye.current),Yi(t,i),r=bl(null,t,n,e,r,i),t.effectTag|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ne(n)){var s=!0;us(t)}else s=!1;t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,vl(t);var o=n.getDerivedStateFromProps;typeof o=="function"&&vs(t,n,o,e),r.updater=ws,t.stateNode=r,r._reactInternalFiber=t,yl(t,n,e,i),t=jl(null,t,n,!0,s,i)}else t.tag=0,Re(null,t,r,i),t=t.child;return t;case 16:e:{if(r=t.elementType,e!==null&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,Vy(r),r._status!==1)throw r._result;switch(r=r._result,t.type=r,s=t.tag=fx(r),e=qe(r,e),s){case 0:t=Ll(null,t,r,e,i);break e;case 1:t=Gp(null,t,r,e,i);break e;case 11:t=Wp(null,t,r,e,i);break e;case 14:t=Qp(null,t,r,qe(r.type,e),n,i);break e}throw Error(M(306,r,""))}return t;case 0:return n=t.type,r=t.pendingProps,r=t.elementType===n?r:qe(n,r),Ll(e,t,n,r,i);case 1:return n=t.type,r=t.pendingProps,r=t.elementType===n?r:qe(n,r),Gp(e,t,n,r,i);case 3:if(Yp(t),n=t.updateQueue,e===null||n===null)throw Error(M(282));if(n=t.pendingProps,r=t.memoizedState,r=r!==null?r.element:null,wl(e,t),Fn(t,n,null,i),n=t.memoizedState.element,n===r)Dl(),t=Et(e,t,i);else{if((r=t.stateNode.hydrate)&&(Ft=$i(t.stateNode.containerInfo.firstChild),bt=t,r=mi=!0),r)for(i=xl(t,null,n,i),t.child=i;i;)i.effectTag=i.effectTag&-3|1024,i=i.sibling;else Re(e,t,n,i),Dl();t=t.child}return t;case 5:return zp(t),e===null&&zl(t),n=t.type,r=t.pendingProps,s=e!==null?e.memoizedProps:null,o=r.children,el(n,r)?o=null:s!==null&&el(n,s)&&(t.effectTag|=16),Zp(e,t),t.mode&4&&i!==1&&r.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Re(e,t,o,i),t=t.child),t;case 6:return e===null&&zl(t),null;case 13:return Xp(e,t,i);case 4:return Sl(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Xi(t,null,n,i):Re(e,t,n,i),t.child;case 11:return n=t.type,r=t.pendingProps,r=t.elementType===n?r:qe(n,r),Wp(e,t,n,r,i);case 7:return Re(e,t,t.pendingProps,i),t.child;case 8:return Re(e,t,t.pendingProps.children,i),t.child;case 12:return Re(e,t,t.pendingProps.children,i),t.child;case 10:e:{n=t.type._context,r=t.pendingProps,o=t.memoizedProps,s=r.value;var a=t.type._context;if(ie(fs,a._currentValue),a._currentValue=s,o!==null)if(a=o.value,s=hi(a,s)?0:(typeof n._calculateChangedBits=="function"?n._calculateChangedBits(a,s):1073741823)|0,s===0){if(o.children===r.children&&!ke.current){t=Et(e,t,i);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){o=a.child;for(var u=l.firstContext;u!==null;){if(u.context===n&&(u.observedBits&s)!==0){a.tag===1&&(u=Ht(i,null),u.tag=2,Wt(a,u)),a.expirationTime<i&&(a.expirationTime=i),u=a.alternate,u!==null&&u.expirationTime<i&&(u.expirationTime=i),Ip(a.return,i),l.expirationTime<i&&(l.expirationTime=i);break}u=u.next}}else o=a.tag===10&&a.type===t.type?null:a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Re(e,t,r.children,i),t=t.child}return t;case 9:return r=t.type,s=t.pendingProps,n=s.children,Yi(t,i),r=We(r,s.unstable_observedBits),n=n(r),t.effectTag|=1,Re(e,t,n,i),t.child;case 14:return r=t.type,s=qe(r,t.pendingProps),s=qe(r.type,s),Qp(e,t,r,s,n,i);case 15:return Fp(e,t,t.type,t.pendingProps,n,i);case 17:return n=t.type,r=t.pendingProps,r=t.elementType===n?r:qe(n,r),e!==null&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,Ne(n)?(e=!0,us(t)):e=!1,Yi(t,i),kp(t,n,r),yl(t,n,r,i),jl(null,t,n,!0,e,i);case 19:return Kp(e,t,i)}throw Error(M(156,t.tag))};var Jl=null,Kl=null;function hx(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var i=t.inject(e);Jl=function(n){try{t.onCommitFiberRoot(i,n,void 0,(n.current.effectTag&64)===64)}catch{}},Kl=function(n){try{t.onCommitFiberUnmount(i,n)}catch{}}}catch{}return!0}function px(e,t,i,n){this.tag=e,this.key=i,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=n,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function gt(e,t,i,n){return new px(e,t,i,n)}function ql(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fx(e){if(typeof e=="function")return ql(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ma)return 11;if(e===ba)return 14}return 2}function Mi(e,t){var i=e.alternate;return i===null?(i=gt(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.effectTag=0,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null),i.childExpirationTime=e.childExpirationTime,i.expirationTime=e.expirationTime,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=t===null?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i}function Ws(e,t,i,n,r,s){var o=2;if(n=e,typeof e=="function")ql(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case ui:return Yt(i.children,r,s,t);case _y:o=8,r|=7;break;case Zd:o=8,r|=1;break;case Wr:return e=gt(12,i,t,r|8),e.elementType=Wr,e.type=Wr,e.expirationTime=s,e;case Qr:return e=gt(13,i,t,r),e.type=Qr,e.elementType=Qr,e.expirationTime=s,e;case Ia:return e=gt(19,i,t,r),e.elementType=Ia,e.expirationTime=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Gd:o=10;break e;case Yd:o=9;break e;case Ma:o=11;break e;case ba:o=14;break e;case Xd:o=16,n=null;break e;case Jd:o=22;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=gt(o,i,t,r),t.elementType=e,t.type=n,t.expirationTime=s,t}function Yt(e,t,i,n){return e=gt(7,e,n,t),e.expirationTime=i,e}function eu(e,t,i){return e=gt(6,e,null,t),e.expirationTime=i,e}function tu(e,t,i){return t=gt(4,e.children!==null?e.children:[],e.key,t),t.expirationTime=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function gx(e,t,i){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=i,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Af(e,t){var i=e.firstSuspendedTime;return e=e.lastSuspendedTime,i!==0&&i>=t&&e<=t}function Ii(e,t){var i=e.firstSuspendedTime,n=e.lastSuspendedTime;i<t&&(e.firstSuspendedTime=t),(n>t||i===0)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Tf(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var i=e.firstSuspendedTime;i!==0&&(t>=i?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function iu(e,t){var i=e.lastExpiredTime;(i===0||i>t)&&(e.lastExpiredTime=t)}function Qs(e,t,i,n){var r=t.current,s=ft(),o=Zn.suspense;s=yi(s,r,o);e:if(i){i=i._reactInternalFiber;t:{if(ci(i)!==i||i.tag!==1)throw Error(M(170));var a=i;do{switch(a.tag){case 3:a=a.stateNode.context;break t;case 1:if(Ne(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break t}}a=a.return}while(a!==null);throw Error(M(171))}if(i.tag===1){var l=i.type;if(Ne(l)){i=cp(i,l,a);break e}}i=a}else i=Vt;return t.context===null?t.context=i:t.pendingContext=i,t=Ht(s,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),Wt(r,t),Gt(r,s),s}function nu(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function kf(e,t){e=e.memoizedState,e!==null&&e.dehydrated!==null&&e.retryTime<t&&(e.retryTime=t)}function ru(e,t){kf(e,t),(e=e.alternate)&&kf(e,t)}function su(e,t,i){i=i!=null&&i.hydrate===!0;var n=new gx(e,t,i),r=gt(3,null,null,t===2?7:t===1?3:0);n.current=r,r.stateNode=n,vl(r),e[jn]=n.current,i&&t!==0&&Fy(e,e.nodeType===9?e:e.ownerDocument),this._internalRoot=n}su.prototype.render=function(e){Qs(e,this._internalRoot,null,null)},su.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Qs(null,e,null,function(){t[jn]=null})};function nr(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function mx(e,t){if(t||(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,t=!(!t||t.nodeType!==1||!t.hasAttribute("data-reactroot"))),!t)for(var i;i=e.lastChild;)e.removeChild(i);return new su(e,0,t?{hydrate:!0}:void 0)}function Fs(e,t,i,n,r){var s=i._reactRootContainer;if(s){var o=s._internalRoot;if(typeof r=="function"){var a=r;r=function(){var u=nu(o);a.call(u)}}Qs(t,o,e,r)}else{if(s=i._reactRootContainer=mx(i,n),o=s._internalRoot,typeof r=="function"){var l=r;r=function(){var u=nu(o);l.call(u)}}yf(function(){Qs(t,o,e,r)})}return nu(o)}function vx(e,t,i){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Oi,key:n==null?null:""+n,children:e,containerInfo:t,implementation:i}}Mh=function(e){if(e.tag===13){var t=ps(ft(),150,100);Gt(e,t),ru(e,t)}},Oa=function(e){e.tag===13&&(Gt(e,3),ru(e,3))},Ih=function(e){if(e.tag===13){var t=ft();t=yi(t,e,null),Gt(e,t),ru(e,t)}},ga=function(e,t,i){switch(t){case"input":if(Ta(e,i),t=i.name,i.type==="radio"&&t!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<i.length;t++){var n=i[t];if(n!==e&&n.form===e.form){var r=nl(n);if(!r)throw Error(M(90));eh(n),Ta(n,r)}}}break;case"textarea":sh(e,i);break;case"select":t=i.value,t!=null&&_i(e,!!i.multiple,t,!1)}},ma=wf,Ud=function(e,t,i,n,r){var s=R;R|=4;try{return Ut(98,e.bind(null,t,i,n,r))}finally{R=s,R===de&&ct()}},va=function(){(R&(1|et|pt))===de&&(rx(),en())},$d=function(e,t){var i=R;R|=2;try{return e(t)}finally{R=i,R===de&&ct()}};function Nf(e,t){var i=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!nr(t))throw Error(M(200));return vx(e,t,null,i)}var wx={Events:[Rn,di,nl,Rd,pa,Hi,function(e){ja(e,s0)},_d,Vd,es,Xr,en,{current:!1}]};(function(e){var t=e.findFiberByHostInstance;return hx(Ie({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ke.ReactCurrentDispatcher,findHostInstanceByFiber:function(i){return i=wh(i),i===null?null:i.stateNode},findFiberByHostInstance:function(i){return t?t(i):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))})({findFiberByHostInstance:Bn,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),$e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=wx,$e.createPortal=Nf,$e.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternalFiber;if(t===void 0)throw typeof e.render=="function"?Error(M(188)):Error(M(268,Object.keys(e)));return e=wh(t),e=e===null?null:e.stateNode,e},$e.flushSync=function(e,t){if((R&(et|pt))!==de)throw Error(M(187));var i=R;R|=1;try{return Ut(99,e.bind(null,t))}finally{R=i,ct()}},$e.hydrate=function(e,t,i){if(!nr(t))throw Error(M(200));return Fs(null,e,t,!0,i)},$e.render=function(e,t,i){if(!nr(t))throw Error(M(200));return Fs(null,e,t,!1,i)},$e.unmountComponentAtNode=function(e){if(!nr(e))throw Error(M(40));return e._reactRootContainer?(yf(function(){Fs(null,null,e,!1,function(){e._reactRootContainer=null,e[jn]=null})}),!0):!1},$e.unstable_batchedUpdates=wf,$e.unstable_createPortal=function(e,t){return Nf(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},$e.unstable_renderSubtreeIntoContainer=function(e,t,i,n){if(!nr(i))throw Error(M(200));if(e==null||e._reactInternalFiber===void 0)throw Error(M(38));return Fs(e,t,i,!1,n)},$e.version="16.14.0";function Pf(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Pf)}catch(e){console.error(e)}}Pf(),kd.exports=$e;var zf=kd.exports,yx=Object.defineProperty,xx=Object.defineProperties,Sx=Object.getOwnPropertyDescriptors,Df=Object.getOwnPropertySymbols,Cx=Object.prototype.hasOwnProperty,Mx=Object.prototype.propertyIsEnumerable,Lf=(e,t,i)=>t in e?yx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,Ve=(e,t)=>{for(var i in t||(t={}))Cx.call(t,i)&&Lf(e,i,t[i]);if(Df)for(var i of Df(t))Mx.call(t,i)&&Lf(e,i,t[i]);return e};const jf={src:"",currentTime:0,hostTime:0,muted:!1,paused:!0,volume:1},Bf={currentTimeMaxError:1,syncInterval:1e3,retryInterval:15e3,verbose:!1,log:console.log.bind(console)};let Xt=Bf;function Ix(e){Xt=Ve(Ve({},Bf),e)}function Zs(e,t){if(e.paused)return e.currentTime;const i=function(n){if(n.player)return n.player.beginTimestamp+n.player.progressTime;if(n.room)return n.room.calibrationTimestamp}(t);return i?e.currentTime+(i-e.hostTime)/1e3:e.currentTime}const bx=navigator.userAgent.includes("Safari"),Ex=[".aac",".mid",".midi",".mp3",".ogg",".oga",".wav",".weba"];var Ax=typeof global=="object"&&global&&global.Object===Object&&global,Tx=typeof self=="object"&&self&&self.Object===Object&&self,Rf=Ax||Tx||Function("return this")(),Gs=Rf.Symbol,Of=Object.prototype,kx=Of.hasOwnProperty,Nx=Of.toString,rr=Gs?Gs.toStringTag:void 0,Px=Object.prototype.toString,_f=Gs?Gs.toStringTag:void 0;function zx(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":_f&&_f in Object(e)?function(t){var i=kx.call(t,rr),n=t[rr];try{t[rr]=void 0;var r=!0}catch{}var s=Nx.call(t);return r&&(i?t[rr]=n:delete t[rr]),s}(e):function(t){return Px.call(t)}(e)}var Dx=/\s/,Lx=/^\s+/;function jx(e){return e&&e.slice(0,function(t){for(var i=t.length;i--&&Dx.test(t.charAt(i)););return i}(e)+1).replace(Lx,"")}function ou(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Bx=/^[-+]0x[0-9a-f]+$/i,Rx=/^0b[01]+$/i,Ox=/^0o[0-7]+$/i,_x=parseInt;function Vf(e){if(typeof e=="number")return e;if(function(n){return typeof n=="symbol"||function(r){return r!=null&&typeof r=="object"}(n)&&zx(n)=="[object Symbol]"}(e))return NaN;if(ou(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ou(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=jx(e);var i=Rx.test(e);return i||Ox.test(e)?_x(e.slice(2),i?2:8):Bx.test(e)?NaN:+e}var au=function(){return Rf.Date.now()},Vx=Math.max,Ux=Math.min;function Ys(e,t,i){var n,r,s,o,a,l,u=0,d=!1,p=!1,m=!0;if(typeof e!="function")throw new TypeError("Expected a function");function v(g){var w=n,x=r;return n=r=void 0,u=g,o=e.apply(x,w)}function S(g){return u=g,a=setTimeout(h,t),d?v(g):o}function y(g){var w=g-l;return l===void 0||w>=t||w<0||p&&g-u>=s}function h(){var g=au();if(y(g))return c(g);a=setTimeout(h,function(w){var x=t-(w-l);return p?Ux(x,s-(w-u)):x}(g))}function c(g){return a=void 0,m&&n?v(g):(n=r=void 0,o)}function f(){var g=au(),w=y(g);if(n=arguments,r=this,l=g,w){if(a===void 0)return S(l);if(p)return clearTimeout(a),a=setTimeout(h,t),v(l)}return a===void 0&&(a=setTimeout(h,t)),o}return t=Vf(t)||0,ou(i)&&(d=!!i.leading,s=(p="maxWait"in i)?Vx(Vf(i.maxWait)||0,t):s,m="trailing"in i?!!i.trailing:m),f.cancel=function(){a!==void 0&&clearTimeout(a),u=0,n=l=r=a=void 0},f.flush=function(){return a===void 0?o:c(au())},f}class Uf extends ii.exports.Component{constructor(t){super(t),this.seeking=!1,this.mobileSeeking=!1,this.track=null,this.hoverTime=null,this.offset=0,this.secondsPrefix="00:00:",this.minutesPrefix="00:",this.seekPause=!1,this.handleTouchSeeking=i=>{let n=0;for(let r=0;r<i.changedTouches.length;r++)n=i.changedTouches[r].pageX;n=n<0?0:n,this.mobileSeeking&&this.changeCurrentTimePosition(n)},this.handleSeeking=i=>{this.seeking&&this.changeCurrentTimePosition(i.pageX)},this.setTrackWidthState=()=>{this.track&&this.setState({trackWidth:this.track.offsetWidth})},this.handleTrackHover=(i,n)=>{if(this.track){const r=this.props.scale||1;let s;s=i?0:(n.pageX-this.track.getBoundingClientRect().left)/r,this.setState({seekHoverPosition:s,trackWidth:this.track.offsetWidth})}},this.mouseSeekingHandler=i=>{this.setSeeking(!1,i),this.onMouseUp()},this.setSeeking=(i,n)=>{n.preventDefault(),this.handleSeeking(n),this.seeking=i,this.setState({seekHoverPosition:i?this.state.seekHoverPosition:0})},this.mobileTouchSeekingHandler=()=>{this.setMobileSeeking(!1)},this.setMobileSeeking=i=>{this.mobileSeeking=i,this.setState({seekHoverPosition:i?this.state.seekHoverPosition:0})},this.renderBufferProgress=()=>{if(this.props.buffered){const i=Ve(Ve({},this.getPositionStyle(this.props.buffered)),this.props.bufferColor&&{backgroundColor:this.props.bufferColor});return W.createElement("div",{className:"buffered",style:i})}return null},this.renderProgress=()=>{const i=Ve(Ve({},this.getPositionStyle(this.props.current)),this.props.sliderColor&&{backgroundColor:this.props.sliderColor});return W.createElement("div",{className:"connect",style:i})},this.renderHoverProgress=()=>{const i=Ve(Ve({},this.getSeekHoverPosition()),this.props.sliderHoverColor&&{backgroundColor:this.props.sliderHoverColor});return W.createElement("div",{className:"seek-hover",style:i})},this.renderThumb=()=>W.createElement("div",{className:this.isThumbActive()?"thumb active":"thumb",style:this.getThumbHandlerPosition()},W.createElement("div",{style:{backgroundColor:this.props.thumbColor},className:"handler"})),this.onMouseDown=i=>{var n,r;this.props.pause&&!this.props.paused&&(this.props.pause(),this.seekPause=!0),this.setSeeking(!0,i),(r=(n=this.props).onSeekStart)==null||r.call(n)},this.onMouseUp=()=>{var i,n;this.props.play&&this.seekPause&&(this.props.play(),this.seekPause=!1),(n=(i=this.props).onSeekEnd)==null||n.call(i)},this.props.secondsPrefix&&(this.secondsPrefix=this.props.secondsPrefix),this.props.minutesPrefix&&(this.minutesPrefix=this.props.minutesPrefix),this.state={ready:!1,trackWidth:0,seekHoverPosition:0}}componentDidMount(){this.setTrackWidthState(),window.addEventListener("resize",this.setTrackWidthState),window.addEventListener("mousemove",this.handleSeeking),window.addEventListener("mouseup",this.mouseSeekingHandler),window.addEventListener("touchmove",this.handleTouchSeeking),window.addEventListener("touchend",this.mobileTouchSeekingHandler)}componentWillUnmount(){window.removeEventListener("resize",this.setTrackWidthState),window.removeEventListener("mousemove",this.handleSeeking),window.removeEventListener("mouseup",this.mouseSeekingHandler),window.removeEventListener("touchmove",this.handleTouchSeeking),window.removeEventListener("touchend",this.mobileTouchSeekingHandler)}changeCurrentTimePosition(t){if(this.track){const i=this.props.scale||1;let n=(t-this.track.getBoundingClientRect().left)/i;n=Math.min(this.state.trackWidth,Math.max(0,n)),this.setState({seekHoverPosition:n});const r=+(n/this.state.trackWidth*this.props.total).toFixed(0);this.props.onChange(r)}}getPositionStyle(t){return{transform:`scaleX(${100*t/this.props.total/100})`}}getThumbHandlerPosition(){return{transform:`translateX(${this.state.trackWidth/(this.props.total/this.props.current)}px)`}}getSeekHoverPosition(){return{transform:`scaleX(${100*this.state.seekHoverPosition/this.state.trackWidth/100})`}}getHoverTimePosition(){let t=0;return this.hoverTime&&(t=this.state.seekHoverPosition-this.hoverTime.offsetWidth/2,this.props.limitTimeTooltipBySides&&(t<0?t=0:t+this.hoverTime.offsetWidth>this.state.trackWidth&&(t=this.state.trackWidth-this.hoverTime.offsetWidth))),{transform:`translateX(${t}px)`}}secondsToTime(t){t=Math.round(t+this.offset);const i=Math.floor(t/3600),n=t%3600,r=Math.floor(n/60),s=Math.ceil(n%60);return{hh:i.toString(),mm:r<10?"0"+r:r.toString(),ss:s<10?"0"+s:s.toString()}}getHoverTime(){const t=100*this.state.seekHoverPosition/this.state.trackWidth,i=Math.floor(+t*(this.props.total/100)),n=this.secondsToTime(i);return this.props.total+this.offset<60?this.secondsPrefix+n.ss:this.props.total+this.offset<3600?this.minutesPrefix+n.mm+":"+n.ss:n.hh+":"+n.mm+":"+n.ss}isThumbActive(){return this.state.seekHoverPosition>0||this.seeking}drawHoverTime(){return this.props.hideHoverTime?null:W.createElement("div",{className:this.isThumbActive()?"hover-time active":"hover-time",style:this.getHoverTimePosition(),ref:t=>this.hoverTime=t},this.getHoverTime())}render(){return W.createElement("div",{className:"seek-slider"},W.createElement("div",{className:"track",ref:t=>this.track=t,onMouseMove:t=>this.handleTrackHover(!1,t),onMouseLeave:t=>this.handleTrackHover(!0,t),onMouseDown:this.onMouseDown,onTouchStart:t=>{this.setMobileSeeking(!0),this.onMouseDown(t)},onMouseUp:this.onMouseUp,onTouchEnd:this.onMouseUp},W.createElement("div",{className:"main"},this.renderBufferProgress(),this.renderHoverProgress(),this.renderProgress())),this.drawHoverTime(),this.renderThumb())}}class $x extends ii.exports.Component{constructor(t){super(t),this.stageVolume=0,this.updateVolumeTimer=0,this.onVolumeSeeking=!1,this.onClickOperationButton=()=>{const{paused:i}=this.props;i?this.props.play():this.props.pause()},this.operationButton=()=>{const{paused:i}=this.props;return i?W.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBhcmlhLWhpZGRlbj0idHJ1ZSIgcm9sZT0iaW1nIiBjbGFzcz0iaWNvbmlmeSBpY29uaWZ5LS1tZGkiIHdpZHRoPSIyMiIgaGVpZ2h0PSIyMiIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQgbWVldCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNOCA1LjE0djE0bDExLTdsLTExLTd6IiBmaWxsPSIjZmZmIj48L3BhdGg+PC9zdmc+Cg=="}):W.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBhcmlhLWhpZGRlbj0idHJ1ZSIgcm9sZT0iaW1nIiBjbGFzcz0iaWNvbmlmeSBpY29uaWZ5LS1tZGkiIHdpZHRoPSIyMiIgaGVpZ2h0PSIyMiIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQgbWVldCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTQgMTloNFY1aC00TTYgMTloNFY1SDZ2MTR6IiBmaWxsPSIjZmZmIj48L3BhdGg+PC9zdmc+Cg=="})},this.operationVolumeButton=()=>this.props.volume>.9?W.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBhcmlhLWhpZGRlbj0idHJ1ZSIgcm9sZT0iaW1nIiBjbGFzcz0iaWNvbmlmeSBpY29uaWZ5LS1tZGkiIHdpZHRoPSIyMiIgaGVpZ2h0PSIyMiIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQgbWVldCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTQgMy4yM3YyLjA2YzIuODkuODYgNSAzLjU0IDUgNi43MXMtMi4xMSA1Ljg0LTUgNi43djIuMDdjNC0uOTEgNy00LjQ5IDctOC43N2MwLTQuMjgtMy03Ljg2LTctOC43N00xNi41IDEyYzAtMS43Ny0xLTMuMjktMi41LTQuMDNWMTZjMS41LS43MSAyLjUtMi4yNCAyLjUtNE0zIDl2Nmg0bDUgNVY0TDcgOUgzeiIgZmlsbD0iI2ZmZiI+PC9wYXRoPjwvc3ZnPgo="}):this.props.volume===0?W.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBhcmlhLWhpZGRlbj0idHJ1ZSIgcm9sZT0iaW1nIiBjbGFzcz0iaWNvbmlmeSBpY29uaWZ5LS1tZGkiIHdpZHRoPSIyMiIgaGVpZ2h0PSIyMiIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQgbWVldCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNNyA5djZoNGw1IDVWNGwtNSA1SDd6IiBmaWxsPSIjZmZmIj48L3BhdGg+PC9zdmc+Cg=="}):W.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBhcmlhLWhpZGRlbj0idHJ1ZSIgcm9sZT0iaW1nIiBjbGFzcz0iaWNvbmlmeSBpY29uaWZ5LS1tZGkiIHdpZHRoPSIyMiIgaGVpZ2h0PSIyMiIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQgbWVldCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNNSA5djZoNGw1IDVWNEw5IDltOS41IDNjMC0xLjc3LTEtMy4yOS0yLjUtNC4wM1YxNmMxLjUtLjcxIDIuNS0yLjI0IDIuNS00eiIgZmlsbD0iI2ZmZiI+PC9wYXRoPjwvc3ZnPgo="}),this.handleClickVolume=()=>{this.props.volume===0?this.stageVolume!==0?this.props.setVolume(this.stageVolume):this.props.setVolume(1):(this.stageVolume=this.props.volume,this.props.setVolume(0))},this.onChange=i=>{this.setState({currentTime:i}),i&&this.changeTime(i)},this.changeTime=Ys(i=>{this.props.setCurrentTime(i)},50),this.onVolumeChange=i=>{this.changeVolume(i),this.setState({seekVolume:i/100})},this.changeVolume=Ys(i=>{this.props.setVolume(i/100)},50),this.onVolumeSeekStart=()=>{this.onVolumeSeeking=!0},this.onVolumeSeekEnd=Ys(()=>{this.onVolumeSeeking=!1},500),this.onProgressSeekStart=()=>this.setState({isPlayerSeeking:!0}),this.onProgressSeekEnd=Ys(()=>{this.setState({isPlayerSeeking:!1})},500),this.state={isPlayerSeeking:!1,isVolumeHover:!1,seekVolume:1,visible:!0,currentTime:0},this.stageVolume=t.volume}componentDidMount(){this.updateVolumeTimer=setInterval(()=>{this.onVolumeSeeking||this.setState({seekVolume:this.props.volume}),this.state.isPlayerSeeking||this.setState({currentTime:this.props.currentTime})},100)}componentWillUnmount(){this.updateVolumeTimer&&clearInterval(this.updateVolumeTimer)}render(){const{duration:t,currentTime:i}=this.props;return W.createElement("div",{className:"player-controller",style:{opacity:this.props.visible?"1":"0"}},W.createElement("div",{className:"player-controller-progress"},W.createElement(Uf,{total:t,current:this.state.currentTime,onChange:this.onChange,buffered:this.props.buffered,bufferColor:"rgba(255,255,255,0.3)",hideHoverTime:!0,limitTimeTooltipBySides:!0,onSeekStart:this.onProgressSeekStart,onSeekEnd:this.onProgressSeekEnd,play:this.props.play,pause:this.props.pause,paused:this.props.paused,scale:this.props.scale})),W.createElement("div",{className:"player-controller-actions"},W.createElement("div",{className:"player-controller-actions-left"},W.createElement("div",{onClick:this.onClickOperationButton,className:"player-controller-play"},this.operationButton()),W.createElement("div",{className:"player-volume-box",onMouseEnter:()=>this.setState({isVolumeHover:!0}),onMouseLeave:()=>this.setState({isVolumeHover:!1})},W.createElement("div",{onClick:this.handleClickVolume,className:"player-volume"},this.operationVolumeButton()),W.createElement("div",{className:"player-volume-slider"},W.createElement(Uf,{total:100,current:100*this.state.seekVolume,onChange:this.onVolumeChange,onSeekStart:this.onVolumeSeekStart,onSeekEnd:this.onVolumeSeekEnd,scale:this.props.scale,limitTimeTooltipBySides:!0,hideHoverTime:!0})))),W.createElement("div",{className:"player-mid-box-time"},$f(Math.floor(i/1e3))," /"," ",$f(Math.floor(t/1e3)))))}}function $f(e){const t=e%60,i=(e-t)/60;if(i>=60){const n=i%60;return`${sr((i-n)/60)}:${sr(n)}:${sr(t)}`}return`${sr(i)}:${sr(t)}`}function sr(e){return e<=9?`0${e}`:`${e}`}class Hx extends ii.exports.Component{constructor(){super(...arguments),this.putAttributes=t=>{const{context:i}=this.props,n=i.getAttributes()||{};for(const r in t)n[r]!==t[r]&&i.updateAttributes([r],t[r])}}render(){const{context:t}=this.props,i=t.getRoom(),n=i?void 0:t.getDisplayer(),r=this.putAttributes;return W.createElement(Wx,{room:i,player:n,context:t,plugin:{putAttributes:r}})}}class Wx extends ii.exports.Component{constructor(t){super(t),this.alertMask=null,this.container=W.createRef(),this.controllerHiddenTimer=0,this.syncPlayerTimer=0,this.retryCount=0,this.decreaseRetryTimer=0,this.noSoundSyncCount=0,this.showController=()=>{this.setState({controllerVisible:!0}),this.debounceHidingController()},this.play=()=>{var i;const n=(i=this.props.room)==null?void 0:i.calibrationTimestamp;this.debug(">>> play",{paused:!1,hostTime:n}),this.isEnabled()&&this.props.plugin.putAttributes({paused:!1,hostTime:n})},this.pause=()=>{const i=Zs(this.getAttributes(),this.props);this.debug(">>> pause",{paused:!0,currentTime:i}),this.isEnabled()&&this.props.plugin.putAttributes({paused:!0,currentTime:i})},this.setVolume=i=>{this.debug(">>> volume",{volume:i}),this.isEnabled()&&this.props.plugin.putAttributes({volume:i}),this.isEnabled()&&this.props.plugin.putAttributes({volume:i,muted:i===0})},this.setCurrentTime=i=>{var n;const r=(n=this.props.room)==null?void 0:n.calibrationTimestamp;this.debug(">>> seek",{currentTime:i/1e3,hostTime:r}),this.isEnabled()&&this.props.plugin.putAttributes({currentTime:i/1e3,hostTime:r})},this.resetPlayer=()=>{var i;(i=this.player)==null||i.autoplay(!1),this.state.NoSound||(this.debug(">>> ended",{paused:!0,currentTime:0}),this.isEnabled()&&this.props.plugin.putAttributes({paused:!0,currentTime:0}))},this.syncPlayerWithAttributes=()=>{var i;const n=this.getAttributes();if(!n)return;const r=this.player;if(!r||this.state.NoSound&&(this.noSoundSyncCount+=1)%8!=0)return;r.paused()!==n.paused&&(this.debug("<<< paused -> %o",n.paused),n.paused?r.pause():(i=r.play())==null||i.catch(this.catchPlayFail)),r.muted()!==n.muted&&(this.debug("<<< muted -> %o",n.muted),r.muted(n.muted)),r.volume()!==n.volume&&(this.debug("<<< volume -> %o",n.volume),r.volume(n.volume));const s=Zs(n,this.props);let o=Xt.currentTimeMaxError;this.state.NoSound&&(o*=3),s>r.duration()?this.resetPlayer():Math.abs(r.currentTime()-s)>o&&(this.debug("<<< currentTime -> %o",s),r.currentTime(s))},this.debounceHidingController=()=>{this.controllerHiddenTimer&&(clearTimeout(this.controllerHiddenTimer),this.controllerHiddenTimer=0),this.controllerHiddenTimer=setTimeout(()=>{this.setState({controllerVisible:!1}),this.controllerHiddenTimer=0},3e3)},this.decreaseRetryCount=()=>{this.player&&this.retryCount>0&&(this.retryCount=this.retryCount-1)},this.catchPlayFail=i=>{var n,r;const s=String(i);if(bx&&s.includes("NotAllowedError")||s.includes("interact"))(n=this.player)==null||n.autoplay("any"),this.setState({NoSound:!0});else{const o=(r=this.player)==null?void 0:r.error();o&&(this.retryCount<=3?(this.initPlayer(),this.retryCount=this.retryCount+1):(this.debug("catch videojs media error",o),this.setState({MediaError:!0}))),this.debug("catch error",i)}},this.fixPlayFail=()=>{this.debug("try to fix play state"),this.setState({NoSound:!1});const{muted:i,volume:n}=this.getAttributes();this.player&&(this.player.muted(i),this.player.volume(n))},this.initPlayer=async()=>{var i;(i=this.player)==null||i.dispose(),this.player=void 0,this.debug("creating elements ...");const{type:n,src:r,poster:s}=this.getAttributes(),o=document.createElement("div");o.setAttribute("data-vjs-player","");const a=document.createElement("video");a.className="video-js",s&&(a.poster=s),a.setAttribute("playsInline",""),a.setAttribute("webkit-playsinline","");const l=document.createElement("source");new URL(r).pathname.endsWith(".m3u8")?l.type="application/x-mpegURL":a.src=r,l.src=r,n&&(l.type=n),a.appendChild(l),o.appendChild(a),this.container.current.appendChild(o),await new Promise(d=>(window.requestAnimationFrame||window.setTimeout)(d)),this.debug("initializing videojs() ...");const u=du.default(a);this.player=u,window.player=u,u.one("loadedmetadata",this.gracefullyUpdate),u.on("ready",()=>{var d;(d=Xt.onPlayer)==null||d.call(Xt,u),u.on("timeupdate",this.gracefullyUpdate),u.on("volumechange",this.gracefullyUpdate),u.on("seeked",this.gracefullyUpdate),u.on("play",this.gracefullyUpdate),u.on("pause",this.gracefullyUpdate),u.on("ended",this.resetPlayer)}),u.on("error",this.catchPlayFail),this.setState({MediaError:!1})},this.gracefullyUpdate=()=>this.setState({updater:!this.state.updater}),this.setupAlert=i=>{i&&(i.addEventListener("touchstart",this.fixPlayFail),i.addEventListener("click",this.fixPlayFail)),this.alertMask=i},this.setupReload=i=>{i&&(i.addEventListener("touchstart",this.initPlayer),i.addEventListener("click",this.initPlayer))},this.state={NoSound:!1,MediaError:!1,updater:!1,controllerVisible:!1},t.room&&function(i){if(!i.calibrationTimestamp)throw new Error("@netless/app-media-player@0.1.0-alpha.5 requires white-web-sdk@^2.13.8 to work properly.")}(t.room)}getAttributes(){const{context:t}=this.props;let i=t.getAttributes();if(i){if(i=Ve(Ve({},jf),i),this.player){let r=Zs(i,this.props),s=this.player.duration();!i.paused&&r>s&&(n=Ve({},i),i=xx(n,Sx({currentTime:0,paused:!0})),this.resetPlayer())}var n;return i}}isShowingPoster(){const t=this.getAttributes();return!(t!=null&&t.src)||Ex.some(i=>t.src.endsWith(i))}render(){var t,i;if(!this.props.room&&!this.props.player)return null;const n=this.getAttributes();if(!n)return null;const r=1e3*(((t=this.player)==null?void 0:t.duration())||1e3),s=((i=this.player)==null?void 0:i.bufferedPercent())||0;return W.createElement("div",{className:this.isEnabled()?"vjs-p":"vjs-p disabled",onMouseEnter:this.showController,onMouseMove:this.showController},W.createElement("div",{className:"video-js-plugin-player",ref:this.container}),this.isShowingPoster()&&W.createElement("div",{className:"video-js-plugin-poster"},n.poster&&W.createElement("img",{src:n.poster,alt:"",draggable:!1})),W.createElement($x,{duration:r,volume:n.volume,setVolume:this.setVolume,paused:n.paused,play:this.play,pause:this.pause,currentTime:1e3*Zs(n,this.props),setCurrentTime:this.setCurrentTime,buffered:r*s,visible:!0}),this.state.NoSound&&W.createElement("div",{ref:this.setupAlert,className:"videojs-plugin-muted-alert"}),this.state.MediaError&&W.createElement("div",{className:"videojs-plugin-recovery-mode"},W.createElement("button",{ref:this.setupReload},"Reload Player")))}debug(t,...i){Xt.verbose&&Xt.log(`[MediaPlayer] ${t}`,...i)}componentDidMount(){this.debug("app version =","0.1.0-alpha.5"),this.debug("video.js version =",du.default.VERSION),this.initPlayer(),this.props.context.emitter.on("attributesUpdate",this.syncPlayerWithAttributes),this.syncPlayerTimer=setInterval(this.syncPlayerWithAttributes,Xt.syncInterval),this.decreaseRetryTimer=setInterval(this.decreaseRetryCount,Xt.retryInterval)}componentWillUnmount(){var t;this.debug("unmount"),this.props.context.emitter.off("attributesUpdate",this.syncPlayerWithAttributes),(t=this.player)==null||t.dispose(),clearInterval(this.syncPlayerTimer),clearInterval(this.decreaseRetryTimer)}isEnabled(){return this.props.context.getIsWritable()}}const lu={kind:"MediaPlayer",setup(e){let t=e.getAttributes();if(!t||!t.src)return e.emitter.emit("destroy",{error:new Error("[MediaPlayer]: Missing 'attributes'.'src'.")});t=Ve(Ve({},jf),t);const i=e.getBox();i.mountStyles(`.vjs-p{display:flex;flex-grow:1}.vjs-p *{pointer-events:auto}.vjs-p.disabled *{pointer-events:none}.vjs-p .video-js-plugin-poster{position:absolute;top:0;left:0;right:0;bottom:0;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgQAAACACAYAAAB0vHFxAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAACBKADAAQAAAABAAAAgAAAAACE3oPTAAAKXUlEQVR4Ae3dYW4ktxEG0LW9FwkC2McycokAOUGAXMLwtQwYvomdP4akHUnNnm6SVUU+/xqpe8ji+yiDWz3a/e7L5v/98se//3pL8K9//O+7t19Hv85eX7RP9vnllz2h4/rkd+wz+ir/0cLfjv/9t1/6igABAgQIENhRwIFgx9StmQABAgQIPAg4EDyA+JIAAQIECOwo8HXHRVvzPIHRzwBHjz9PKudMo31Hj59TdZ2qsueXvb5sO0GHIFsi6iFAgAABAgECOgQB6KbsJ5Dtt0L6rWyPkeRXO+fs+WWvL1v6OgTZElEPAQIECBAIENAhCEA3ZT8Bzwj7WUaMJL8I9X5zZs8ve339kugzkg5BH0ejECBAgACB0gIOBKXjUzwBAgQIEOgj4EDQx9EoBAgQIECgtIADQen4FE+AAAECBPoIOBD0cTQKAQIECBAoLeC3DErHp/iWgE8Zt4RyX5df7nxa1Y3Ob/T4rfWtdl2HYLVErYcAAQIECFwQWL5DsPoJcvX1XdjTpd4iv1JxvStWfu9IfCORwLP7U4cgUXhKIUCAAAECUQIOBFHy5iVAgAABAokEHAgShaEUAgQIECAQJXD7MwTPPqOIWujVeUevb/T4V9ftfecE5HfOKetd8suajLoiBHQIItTNSYAAAQIEkgnc7hAkW0/3ckb/e9qjx+8OYsBvBOT3DUe5L+RXLjIFDxTQIRiIa2gCBAgQIFBFoNkh2P0Z2+j1jx4/+0asvv7q9d/dH9XXX73+3fO7u/7W+3fbHzoErR3hOgECBAgQ2ECg2SHwjG2DXRC4xOj9tdufAHpHLb/eonPHk9+xd7TPcXX9r+oQ9Dc1IgECBAgQKCfgQFAuMgUTIECAAIH+Ag4E/U2NSIAAAQIEygk0P0MQvaLsz3hb9bWu840WOJ5ffsc+2a/KL3tC6jsSmL1/dQiO0nCNAAECBAhsItDsEMw+oTzrHl1f61OorevPrvfZ+6N9WvVmr09+xwnKr7ZP9vyOdcdfze7Tuz4dgvF7ygwECBAgQCC9QLNDkH0F0X+C45NdoHZ99rf8aguofqRA7/8/6BCMTMvYBAgQIECgiED5DkHvZyhFcjtdJp/TVClvlF/KWE4XJb/TVG68INB7f+kQXAjBWwgQIECAwGoCDgSrJWo9BAgQIEDggoADwQU0byFAgAABAqsJfO39DGI1IOuJFbA/Y/3vzi6/u4Kx7189v7vru/v+2HTfz65D8N7EdwgQIECAwHYCw3/LYLUT1HY7pLFg+TaAkl+WX/KAGuXJrwEUfLlaPjoEwRvG9AQIECBAIIPA8A5B779JKQOaGl4F5PtqUfGV/Cqm9lqz/F4tMr6qlo8OQcZdpCYCBAgQIDBZYHiHoNozlMn+5aeTb+0I5Se/2gK5q6/286VDkHs/qY4AAQIECEwRcCCYwmwSAgQIECCQW8CBIHc+qiNAgAABAlMEhn+GYMoqTEKAAAEC7wSqPcN+twDfmCqgQzCV22QECBAgQCCnQHiHoPoJtlV/63rObfFaVfX6X1dy7VX19Vev/1pqr++qvv7q9b8m4dVHAtny1SH4KCXfI0CAAAECmwmEdwiq/U1Om+2PL/Kpnbj85FdbYO3qs/186hCsvd+sjgABAgQInBJwIDjF5CYCBAgQILC2gAPB2vlaHQECBAgQOCUQ/hmCbJ+yPKW20U3yqR22/ORXW2Dt6qN/Ph/n1yFYe79ZHQECBAgQOCXgQHCKyU0ECBAgQGBtAQeCtfO1OgIECBAgcErAgeAUk5sIECBAgMDaAg4Ea+drdQQIECBA4JTA1+///OGnoztd52N/fC7g58PPx+e748sX+8P+qLQ/dAiO0nKNAAECBAhsIuBAsEnQlkmAAAECBI4EHAiOdFwjQIAAAQKbCDgQbBK0ZRIgQIAAgSMBB4IjHdcIECBAgMAmAuH/lsHP//zvb5tYl1ymfErG9lK0/F4oSr6QX8nYThcdne/j/DoEp6NzIwECBAgQWFfAgWDdbK2MAAECBAicFnAgOE3lRgIECBAgsK5A+GcIfv39Pz++5X18pvH2mtfzBeQz37znjPLrqTl/LPnNN585Y7Z8dQhmpm8uAgQIECCQVCC8Q1C9I9Cqv3U96b54Kat6/S8Lufii+vqr138xtpe3VV9/9fpfgvDiQ4Fs+eoQfBiTbxIgQIAAgb0EwjsEe3FbLQECBOYJZPsT6LyVm+mKgA7BFTXvIUCAAAECiwk4ECwWqOUQIECAAIErAg4EV9S8hwABAgQILCYw/DMEnmEttmMeliPfB5BiX8qvWGAP5crvASTZl9Xy0SFItoGUQ4AAAQIEIgSGdwiy/U1MEcgrzynf2unKT361BXJXX+3nS4cg935SHQECBAgQmCIwvENQ7RnKFPWFJpFv7TDlJ7/aArmrr/bzpUOQez+pjgABAgQITBH4Wu0EM0XFJGkE7M80UVwqRH6X2NK8afX87q7v7vvTBP13IToE2RJRDwECBAgQCBBwIAhANyUBAgQIEMgm4ECQLRH1ECBAgACBAIHhv2Uwek2rPcPp7cWnt+jc8eQ317v3bPLrLWq8twK995cOwVtdrwkQIECAwKYC5TsE1f4mqNn7jM9s8b7zya+v5+zR5DdbfK/5eu8vHYK99o/VEiBAgACBDwWaHYLezyg+rOLGN6Pra53QWtdvLP3UW6N9WkVmr09+xwnKr7ZP9vyOdcdfze7Tuz4dgvF7ygwECBAgQCC9QLNDEL2C3ieg3utp1de63rueZ8fLXt+z6+l9f3af7PX1zuPZ8bL7ZK/vWW/39xWYvT90CPrmZzQCBAgQIFBSwIGgZGyKJkCAAAECfQUcCPp6Go0AAQIECJQUaH6GIPpT1iVVFX1aIHp/zX5GdxqmyI3yKxLUJ2XK7xOYv78d7XNcXf+rOgT9TY1IgAABAgTKCTQ7BLv/CWr0+kePn31HVl9/9frv7o/q669e/+753V1/6/277Q8dgtaOcJ0AAQIECGwg0OwQbGBwuMTRz5BGj3+4OBdvC8jvNmHoAPIL5Td5MgEdgmSBKIcAAQIECEQI3O4QrP6MZfT6Ro8fsal2mlN+tdOWX+38VN9XQIegr6fRCBAgQIBASQEHgpKxKZoAAQIECPQVcCDo62k0AgQIECBQUuD2Zwiyr3r1Z4Srry/7/rpbn/zuCsa+X36x/mY/Fnh2f+oQHHu6SoAAAQIEthBYvkOwRYoW+anAsyfkTwdyIURAfiHs3SYdnd/o8btBFBlIh6BIUMokQIAAAQIjBRwIRuoamwABAgQIFBFwICgSlDIJECBAgMBIAQeCkbrGJkCAAAECRQQcCIoEpUwCBAgQIDBSwG8ZjNQ19nABnzIeTjx0AvkN5R0+ePb8stc3PKAnJ9AheBLM7QQIECBAYEUBHYIVU91oTf49+9phy09+IwXsr+d0dQie83I3AQIECBBYUkCHYMlY8yxq9DO80ePnkYypZLTv6PFj1PaZNXt+2evLtlN0CLIloh4CBAgQIBAg4EAQgG5KAgQIECCQTcCBIFsi6iFAgAABAgEC/wdVfx9UuC8B6AAAAABJRU5ErkJggg==);background-repeat:repeat-x;background-position:0 50%;display:flex;align-items:center;justify-content:center}.vjs-p .video-js-plugin-poster img{box-shadow:0 0 5px 10px #0006}.vjs-p .player-controller,.vjs-p .videojs-plugin-muted-alert{pointer-events:auto}.vjs-p.disabled .videojs-plugin-close-icon,.vjs-p.disabled .player-controller{pointer-events:none}.vjs-p .video-js-plugin-player{position:absolute;top:0;left:0;right:0;bottom:0}.video-js,[data-vjs-player]{width:100%;height:100%}.vjs-p .videojs-plugin-muted-alert{pointer-events:auto;cursor:pointer;position:absolute;top:0;left:0;right:0;bottom:0;z-index:43}.vjs-p .videojs-plugin-muted-alert:before{pointer-events:auto;cursor:pointer;position:absolute;top:0;left:0;right:0;bottom:0;z-index:43;content:"\\f104";background:rgba(0,0,0,.3);font-family:VideoJS;font-size:2em;display:flex;align-items:center;justify-content:center;color:#fff}.vjs-p .videojs-plugin-recovery-mode{pointer-events:auto;cursor:pointer;position:absolute;top:0;left:0;right:0;bottom:0;z-index:44}.vjs-p .videojs-plugin-recovery-mode button{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.vjs-p .seek-slider{position:relative;width:100%}.vjs-p .seek-slider:focus{outline:none}.vjs-p .seek-slider .track{padding:10px 0;cursor:pointer;outline:none}.vjs-p .seek-slider .track:focus{border:0;outline:none}.vjs-p .seek-slider .track .main{width:100%;height:3px;background-color:#ffffff4d;border-radius:30px;position:absolute;left:0;top:8.5px;transition:transform .4s;outline:none}.vjs-p .seek-slider .track .main:focus{border:0;outline:none}.vjs-p .seek-slider .track .main .buffered{position:absolute;background-color:#ffffff4d;width:100%;height:100%;transform:scaleX(.8);z-index:2;transform-origin:0 0}.vjs-p .seek-slider .track .main .seek-hover{position:absolute;background-color:#ffffff80;width:100%;height:100%;z-index:1;transform:scaleX(.6);transform-origin:0 0;opacity:0;transition:opacity .4s}.vjs-p .seek-slider .track .main .connect{position:absolute;background-color:#fff;width:100%;height:100%;z-index:3;left:0;transform:scaleX(.13);transform-origin:0 0}.vjs-p .seek-slider .track.active .main{transform:scaleY(2)}.vjs-p .seek-slider .thumb{pointer-events:none;position:absolute;width:12px;height:12px;left:-6px;top:4px;z-index:4;transform:translate(100px)}.vjs-p .seek-slider .thumb .handler{border-radius:100%;width:100%;height:100%;background-color:#fff;opacity:0;transform:scale(.4);cursor:pointer;transition:transform .2s;pointer-events:none}.vjs-p .seek-slider .thumb.active .handler{opacity:1;transform:scale(1)}.vjs-p .seek-slider .hover-time{position:absolute;background-color:#0000004d;line-height:18px;font-size:16px;color:#ddd;top:-25px;left:0;padding:5px 10px;border-radius:5px;box-shadow:0 0 5px #0000004d;opacity:0;transform:translate(150px);pointer-events:none}.vjs-p .seek-slider .hover-time.active{opacity:1}.vjs-p .seek-slider:hover .track .main .seek-hover{opacity:1}.vjs-p .player-controller{position:absolute;z-index:100;bottom:0px;left:0;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:stretch;height:64px;background-image:linear-gradient(0deg,#000,transparent);transition:opacity .2s;color:#fff}.vjs-p .player-menu-box{display:flex;align-items:center;justify-content:center;flex-direction:column;margin-bottom:40px}.vjs-p .player-menu-cell{width:100%;text-align:center;font-size:12px;color:#7a7b7c}.vjs-p .player-multiple-play{width:64px;height:120px}.vjs-p .player-controller-actions-left{display:flex;justify-content:center;align-items:center;flex-shrink:0}.vjs-p .player-right-box{font-size:14px;color:#7a7b7c;cursor:pointer;margin-right:12px}.vjs-p .player-controller-actions{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-left:8px;padding-right:8px;margin-top:2px}.vjs-p .player-mid-box-time{font-size:9px;display:flex;justify-content:center;align-items:center;color:#fff;flex-shrink:0;margin-right:8px;font-family:monospace}.vjs-p .player-controller-play{display:flex;align-items:center;justify-content:center;cursor:pointer;padding-right:4px}.vjs-p .player-controller-progress{width:calc(100% - 28px);margin-left:14px;display:flex;align-items:center;justify-content:center;margin-top:8px}.vjs-p .player-volume{display:flex;align-items:center;justify-content:center;cursor:pointer;margin-right:16px;margin-left:8px}.vjs-p .player-volume-slider{width:60px;margin-right:12px;display:flex;align-items:center}.vjs-p .player-volume-box{display:flex;flex-direction:row}.netless-app-media-player-container{display:flex;position:relative;height:100%}
|
46
|
-
`);const n=document.createElement("div");n.classList.add("netless-app-media-player-container"),zf.render(W.createElement(Hx,{context:e}),n),i.mountContent(n),e.emitter.on("destroy",()=>{console.log("[MediaPlayer]: destroy"),zf.unmountComponentAtNode(n)})}},Qx=()=>{ne.debug&&Ix({verbose:!0}),ne.register({kind:ca.kind,src:ca}),ne.register({kind:lu.kind,src:lu})},Fx={DocsViewer:ca.kind,MediaPlayer:lu.kind};var s1="",o1="",a1="";const Hf=new Cv({emitter:O}),$=class extends A.InvisiblePlugin{constructor(e){super(e);this.version="0.4.19",this.dependencies={dependencies:{"@juggle/resize-observer":"^3.3.1","@netless/telebox-insider":"0.2.26",emittery:"^0.9.2",lodash:"^4.17.21","p-retry":"^4.6.1","side-effect-manager":"^0.1.5",uuid:"^7.0.3","video.js":">=7"},peerDependencies:{"white-web-sdk":"^2.16.0"},devDependencies:{"@netless/app-docs-viewer":"^0.2.9","@netless/app-media-player":"0.1.0-beta.5","@rollup/plugin-commonjs":"^20.0.0","@rollup/plugin-node-resolve":"^13.0.4","@rollup/plugin-url":"^6.1.0","@sveltejs/vite-plugin-svelte":"^1.0.0-next.22","@tsconfig/svelte":"^2.0.1","@types/debug":"^4.1.7","@types/jest":"^27.4.1","@types/lodash-es":"^4.17.4","@types/uuid":"^8.3.1","@typescript-eslint/eslint-plugin":"^4.30.0","@typescript-eslint/parser":"^4.30.0",cypress:"^8.7.0",dotenv:"^10.0.0",eslint:"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-svelte3":"^3.2.0",jest:"^27.5.1","jest-canvas-mock":"^2.3.1","jest-fetch-mock":"^3.0.3","jest-transform-stub":"^2.0.0",less:"^4.1.1",prettier:"^2.3.2","prettier-plugin-svelte":"^2.4.0","rollup-plugin-analyzer":"^4.0.0","rollup-plugin-styles":"^3.14.1",svelte:"^3.42.4","svelte-jester":"^2.3.2","ts-jest":"^27.1.4",typescript:"^4.5.5",vite:"^2.5.3","white-web-sdk":"2.16.10"}},this.emitter=re,this.viewMode=A.ViewMode.Broadcaster,this.isReplay=A.isPlayer(this.displayer),this.containerSizeRatio=$.containerSizeRatio,$.displayer=e.displayer,window.NETLESS_DEPS={dependencies:{"@juggle/resize-observer":"^3.3.1","@netless/telebox-insider":"0.2.26",emittery:"^0.9.2",lodash:"^4.17.21","p-retry":"^4.6.1","side-effect-manager":"^0.1.5",uuid:"^7.0.3","video.js":">=7"},peerDependencies:{"white-web-sdk":"^2.16.0"},devDependencies:{"@netless/app-docs-viewer":"^0.2.9","@netless/app-media-player":"0.1.0-beta.5","@rollup/plugin-commonjs":"^20.0.0","@rollup/plugin-node-resolve":"^13.0.4","@rollup/plugin-url":"^6.1.0","@sveltejs/vite-plugin-svelte":"^1.0.0-next.22","@tsconfig/svelte":"^2.0.1","@types/debug":"^4.1.7","@types/jest":"^27.4.1","@types/lodash-es":"^4.17.4","@types/uuid":"^8.3.1","@typescript-eslint/eslint-plugin":"^4.30.0","@typescript-eslint/parser":"^4.30.0",cypress:"^8.7.0",dotenv:"^10.0.0",eslint:"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-svelte3":"^3.2.0",jest:"^27.5.1","jest-canvas-mock":"^2.3.1","jest-fetch-mock":"^3.0.3","jest-transform-stub":"^2.0.0",less:"^4.1.1",prettier:"^2.3.2","prettier-plugin-svelte":"^2.4.0","rollup-plugin-analyzer":"^4.0.0","rollup-plugin-styles":"^3.14.1",svelte:"^3.42.4","svelte-jester":"^2.3.2","ts-jest":"^27.1.4",typescript:"^4.5.5",vite:"^2.5.3","white-web-sdk":"2.16.10"}}}static async mount(e){const t=e.room;$.container=e.container;const i=e.containerSizeRatio,n=e.debug,r=e.cursor;$.params=e,$.displayer=e.room,Vg();let s;if(A.isRoom(t)){if(t.phase!==A.RoomPhase.Connected)throw new Error("[WindowManager]: Room only Connected can be mount");t.phase===A.RoomPhase.Connected&&t.isWritable&&(t.disableSerialization=!1),s=await this.initManager(t)}if($.isCreated)throw new Error("[WindowManager]: Already created cannot be created again");if(this.debug=Boolean(n),Ei("Already insert room",s),A.isRoom(this.displayer)){if(!s)throw new Error("[WindowManager]: init InvisiblePlugin failed")}else await Xf.default(async o=>{if(s=await t.getInvisiblePlugin($.kind),!s)throw Ei(`manager is empty. retrying ${o}`),new Error},{retries:10});if(!s)throw new Error("[WindowManager]: create manager failed");i&&($.containerSizeRatio=i),await s.ensureAttributes(),s.appManager=new Og(s),s._pageState=new Sv(s.appManager),s.cursorManager=new xv(s.appManager,Boolean(r)),i&&(s.containerSizeRatio=i),e.container&&s.bindContainer(e.container),Mv(t,s),O.emit("onCreated"),$.isCreated=!0;try{await ig()}catch(o){console.warn("[WindowManager]: indexedDB open failed"),console.log(o)}return s}static async initManager(e){let t=e.getInvisiblePlugin($.kind);if(!t&&A.isRoom(e))if(e.isWritable===!1){try{await e.setWritable(!0)}catch{throw new Error("[WindowManger]: room must be switched to be writable")}t=await e.createInvisiblePlugin($,{}),t.ensureAttributes(),await xu(500),await e.setWritable(!1)}else t=await e.createInvisiblePlugin($,{});return t}static initContainer(e,t,i,n){$.container||($.container=t);const{playground:r,wrapper:s,sizer:o,mainViewElement:a}=_g(t);if($.playground=r,i&&o.classList.add("netless-window-manager-chess-sizer"),n){const l=document.createElement("style");l.textContent=n,r.appendChild(l)}return e.containerResizeObserver=ao.create(r,o,s,O),$.wrapper=s,a}static get registered(){return De.registered}bindContainer(e){var t,i,n,r,s,o;if($.isCreated&&$.container)$.container.firstChild&&e.appendChild($.container.firstChild);else if($.params){const a=$.params,l=$.initContainer(this,e,a.chessboard,a.overwriteStyles),u=Gm(this,re,O,{collectorContainer:a.collectorContainer,collectorStyles:a.collectorStyles,prefersColorScheme:a.prefersColorScheme});this.boxManager=u,(t=this.appManager)==null||t.setBoxManager(u),this.bindMainView(l,a.disableCameraTransform),$.wrapper&&((i=this.cursorManager)==null||i.setupWrapper($.wrapper))}O.emit("updateManagerRect"),(n=this.appManager)==null||n.refresh(),(r=this.appManager)==null||r.resetMaximized(),(s=this.appManager)==null||s.resetMinimized(),(o=this.appManager)==null||o.displayerWritableListener(!this.room.isWritable),$.container=e}bindCollectorContainer(e){$.isCreated&&this.boxManager?this.boxManager.setCollectorContainer(e):$.params&&($.params.collectorContainer=e)}static register(e){return De.register(e)}static unregister(e){return De.unregister(e)}async addApp(e){if(this.appManager)return this.appManager.rootDirRemoving?new Promise((t,i)=>{O.once("rootDirRemoved").then(async()=>{try{const n=await this._addApp(e);t(n)}catch(n){i(n.message)}})}):this._addApp(e);throw new rt}async _addApp(e){var t,i,n;if(this.appManager){if(!e.kind||typeof e.kind!="string")throw new Mg;const r=await((t=De.appClasses.get(e.kind))==null?void 0:t());if(r&&((i=r.config)==null?void 0:i.singleton)&&this.appManager.appProxies.has(e.kind))throw new Sg;const s=this.setupScenePath(e,this.appManager);return s===void 0?void 0:((n=e==null?void 0:e.options)!=null&&n.scenePath&&(e.options.scenePath=yg(e.options.scenePath)),await this.appManager.addApp(e,Boolean(s)))}else throw new rt}setupScenePath(e,t){let i=!1;if(e.options){const{scenePath:n,scenes:r}=e.options;if(n){if(!wg(n))throw new bg;const s=Object.keys(this.apps||{});for(const o of s){const a=t.store.getAppScenePath(o);if(a&&a===n){if(console.warn(`[WindowManager]: ScenePath ${n} Already opened`),this.boxManager){const l=this.boxManager.getTopBox();l&&this.boxManager.setZIndex(o,l.zIndex+1,!1)}return}}}n&&r&&r.length>0&&(this.isDynamicPPT(r)?(i=!0,bi(this.displayer)[n]||rn(this.room,n,r)):bi(this.displayer)[n]||rn(this.room,n,[{name:r[0].name}])),n&&r===void 0&&rn(this.room,n,[{}])}return i}async setMainViewScenePath(e){this.appManager&&await this.appManager.setMainViewScenePath(e)}async setMainViewSceneIndex(e){this.appManager&&await this.appManager.setMainViewSceneIndex(e)}async nextPage(){if(this.appManager){const e=this.mainViewSceneIndex+1;return e>=this.mainViewScenesLength?(console.warn("[WindowManager]: current page is the last page"),!1):(await this.appManager.setMainViewSceneIndex(e),!0)}else return!1}async prevPage(){if(this.appManager){const e=this.mainViewSceneIndex-1;return e<0?(console.warn("[WindowManager]: current page is the first page"),!1):(await this.appManager.setMainViewSceneIndex(e),!0)}else return!1}async addPage(e){if(this.appManager){const t=e==null?void 0:e.after,i=e==null?void 0:e.scene;if(t){const n=this.mainViewSceneIndex+1;this.room.putScenes(Tt,[i||{}],n)}else this.room.putScenes(Tt,[i||{}])}}getMainViewScenePath(){var e;return(e=this.appManager)==null?void 0:e.store.getMainViewScenePath()}getMainViewSceneIndex(){var e;return(e=this.appManager)==null?void 0:e.store.getMainViewSceneIndex()}setReadonly(e){var t;this.readonly=e,(t=this.boxManager)==null||t.setReadonly(e),O.emit("setReadonly",e)}switchMainViewToWriter(){var e;return(e=this.appManager)==null?void 0:e.mainViewProxy.mainViewClickHandler()}onAppDestroy(e,t){vg(`destroy-${e}`,t)}setViewMode(e){var t,i,n;e===A.ViewMode.Broadcaster&&(this.canOperate&&((t=this.appManager)==null||t.mainViewProxy.setCameraAndSize()),(i=this.appManager)==null||i.mainViewProxy.start()),e===A.ViewMode.Freedom&&((n=this.appManager)==null||n.mainViewProxy.stop()),this.viewMode=e}setBoxState(e){if(!!this.canOperate)switch(e){case"normal":this.setMaximized(!1),this.setMinimized(!1);break;case"maximized":this.setMaximized(!0),this.setMinimized(!1);break;case"minimized":this.setMinimized(!0);break}}setMaximized(e){var t;!this.canOperate||(t=this.boxManager)==null||t.setMaximized(e,!1)}setMinimized(e){var t;!this.canOperate||(t=this.boxManager)==null||t.setMinimized(e,!1)}get mainView(){if(this.appManager)return this.appManager.mainViewProxy.view;throw new rt}get camera(){if(this.appManager)return this.appManager.mainViewProxy.view.camera;throw new rt}get cameraState(){if(this.appManager)return this.appManager.mainViewProxy.cameraState;throw new rt}get apps(){var e;return(e=this.appManager)==null?void 0:e.store.apps()}get boxState(){var e;if(this.appManager)return(e=this.appManager.boxManager)==null?void 0:e.boxState;throw new rt}get darkMode(){var e,t;return Boolean((t=(e=this.appManager)==null?void 0:e.boxManager)==null?void 0:t.darkMode)}get prefersColorScheme(){var e;if(this.appManager)return(e=this.appManager.boxManager)==null?void 0:e.prefersColorScheme;throw new rt}get focused(){return this.attributes.focus}get focusedView(){var e,t;return((t=(e=this.appManager)==null?void 0:e.focusApp)==null?void 0:t.view)||this.mainView}get mainViewSceneIndex(){var e;return((e=this._pageState)==null?void 0:e.index)||0}get mainViewSceneDir(){var e;if(this.appManager)return(e=this.appManager)==null?void 0:e.getMainViewSceneDir();throw new rt}get topApp(){var e,t;return(t=(e=this.boxManager)==null?void 0:e.getTopBox())==null?void 0:t.id}get mainViewScenesLength(){var e;return((e=this._pageState)==null?void 0:e.length)||0}get canRedoSteps(){var e;return((e=this.focusedView)==null?void 0:e.canRedoSteps)||0}get canUndoSteps(){var e;return((e=this.focusedView)==null?void 0:e.canUndoSteps)||0}get sceneState(){if(this.appManager)return this.appManager.sceneState;throw new rt}get pageState(){if(this._pageState)return this._pageState.toObject();throw new rt}queryAll(){var e;return Array.from(((e=this.appManager)==null?void 0:e.appProxies.values())||[])}queryOne(e){var t;return(t=this.appManager)==null?void 0:t.appProxies.get(e)}async closeApp(e){var t;return(t=this.appManager)==null?void 0:t.closeApp(e)}moveCamera(e){var n;const t=E.omit(e,["animationMode"]),i=ue({},this.mainView.camera);E.isEqual(ue(ue({},i),t),i)||(this.mainView.moveCamera(e),(n=this.appManager)==null||n.dispatchInternalEvent(se.MoveCamera,e),setTimeout(()=>{var r;(r=this.appManager)==null||r.mainViewProxy.setCameraAndSize()},500))}moveCameraToContain(e){var t;this.mainView.moveCameraToContain(e),(t=this.appManager)==null||t.dispatchInternalEvent(se.MoveCameraToContain,e),setTimeout(()=>{var i;(i=this.appManager)==null||i.mainViewProxy.setCameraAndSize()},500)}convertToPointInWorld(e){return this.mainView.convertToPointInWorld(e)}setCameraBound(e){this.mainView.setCameraBound(e)}onDestroy(){this._destroy()}destroy(){this._destroy()}_destroy(){var e,t,i,n;(e=this.containerResizeObserver)==null||e.disconnect(),(t=this.appManager)==null||t.destroy(),(i=this.cursorManager)==null||i.destroy(),$.container=void 0,$.wrapper=void 0,$.isCreated=!1,$.playground&&((n=$.playground.parentNode)==null||n.removeChild($.playground)),$.params=void 0,Ei("Destroyed")}bindMainView(e,t){var i;this.appManager&&(this.appManager.bindMainView(e,Boolean(t)),(i=this.cursorManager)==null||i.setMainViewDivElement(e))}get canOperate(){return A.isRoom(this.displayer)?this.displayer.isWritable&&this.displayer.phase===A.RoomPhase.Connected:!1}get room(){return this.displayer}safeSetAttributes(e){this.canOperate&&this.setAttributes(e)}safeUpdateAttributes(e,t){this.canOperate&&this.updateAttributes(e,t)}setPrefersColorScheme(e){var t,i;(i=(t=this.appManager)==null?void 0:t.boxManager)==null||i.setPrefersColorScheme(e)}cleanCurrentScene(){var e;(e=this.focusedView)==null||e.cleanCurrentScene()}redo(){var e;return((e=this.focusedView)==null?void 0:e.redo())||0}undo(){var e;return((e=this.focusedView)==null?void 0:e.undo())||0}delete(){var e;(e=this.focusedView)==null||e.delete()}copy(){var e;(e=this.focusedView)==null||e.copy()}paste(){var e;(e=this.focusedView)==null||e.paste()}duplicate(){var e;(e=this.focusedView)==null||e.duplicate()}insertText(e,t,i){var n;return((n=this.focusedView)==null?void 0:n.insertText(e,t,i))||""}insertImage(e){var t;return(t=this.focusedView)==null?void 0:t.insertImage(e)}completeImageUpload(e,t){var i;return(i=this.focusedView)==null?void 0:i.completeImageUpload(e,t)}lockImage(e,t){var i;return(i=this.focusedView)==null?void 0:i.lockImage(e,t)}lockImages(e){var t;return(t=this.focusedView)==null?void 0:t.lockImages(e)}isDynamicPPT(e){var i,n;const t=(n=(i=e[0])==null?void 0:i.ppt)==null?void 0:n.src;return t==null?void 0:t.startsWith("pptx://")}async ensureAttributes(){E.isNull(this.attributes)&&await xu(50),E.isObject(this.attributes)&&(this.attributes[Ee.Apps]||this.safeSetAttributes({[Ee.Apps]:{}}),this.attributes[Ee.Cursors]||this.safeSetAttributes({[Ee.Cursors]:{}}),this.attributes._mainScenePath||this.safeSetAttributes({_mainScenePath:no}),this.attributes._mainSceneIndex||this.safeSetAttributes({_mainSceneIndex:0}),this.attributes[Ee.Registered]||this.safeSetAttributes({[Ee.Registered]:{}}))}};let ne=$;ne.kind="WindowManager",ne.debug=!1,ne.containerSizeRatio=qf,ne.isCreated=!1,Qx(),J.BuiltinApps=Fx,J.WindowManager=ne,J.reconnectRefresher=Hf,Object.defineProperties(J,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
46
|
+
`);const n=document.createElement("div");n.classList.add("netless-app-media-player-container"),zf.render(W.createElement(Hx,{context:e}),n),i.mountContent(n),e.emitter.on("destroy",()=>{console.log("[MediaPlayer]: destroy"),zf.unmountComponentAtNode(n)})}},Qx=()=>{ne.debug&&Ix({verbose:!0}),ne.register({kind:ca.kind,src:ca}),ne.register({kind:lu.kind,src:lu})},Fx={DocsViewer:ca.kind,MediaPlayer:lu.kind};var s1="",o1="",a1="";const Hf=new Cv({emitter:O}),$=class extends A.InvisiblePlugin{constructor(e){super(e);this.version="0.4.20",this.dependencies={dependencies:{"@juggle/resize-observer":"^3.3.1","@netless/telebox-insider":"0.2.26",emittery:"^0.9.2",lodash:"^4.17.21","p-retry":"^4.6.1","side-effect-manager":"^0.1.5",uuid:"^7.0.3","video.js":">=7"},peerDependencies:{"white-web-sdk":"^2.16.0"},devDependencies:{"@netless/app-docs-viewer":"^0.2.9","@netless/app-media-player":"0.1.0-beta.5","@rollup/plugin-commonjs":"^20.0.0","@rollup/plugin-node-resolve":"^13.0.4","@rollup/plugin-url":"^6.1.0","@sveltejs/vite-plugin-svelte":"^1.0.0-next.22","@tsconfig/svelte":"^2.0.1","@types/debug":"^4.1.7","@types/jest":"^27.4.1","@types/lodash-es":"^4.17.4","@types/uuid":"^8.3.1","@typescript-eslint/eslint-plugin":"^4.30.0","@typescript-eslint/parser":"^4.30.0",cypress:"^8.7.0",dotenv:"^10.0.0",eslint:"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-svelte3":"^3.2.0",jest:"^27.5.1","jest-canvas-mock":"^2.3.1","jest-fetch-mock":"^3.0.3","jest-transform-stub":"^2.0.0",less:"^4.1.1",prettier:"^2.3.2","prettier-plugin-svelte":"^2.4.0","rollup-plugin-analyzer":"^4.0.0","rollup-plugin-styles":"^3.14.1",svelte:"^3.42.4","svelte-jester":"^2.3.2","ts-jest":"^27.1.4",typescript:"^4.5.5",vite:"^2.5.3","white-web-sdk":"2.16.10"}},this.emitter=re,this.viewMode=A.ViewMode.Broadcaster,this.isReplay=A.isPlayer(this.displayer),this.containerSizeRatio=$.containerSizeRatio,$.displayer=e.displayer,window.NETLESS_DEPS={dependencies:{"@juggle/resize-observer":"^3.3.1","@netless/telebox-insider":"0.2.26",emittery:"^0.9.2",lodash:"^4.17.21","p-retry":"^4.6.1","side-effect-manager":"^0.1.5",uuid:"^7.0.3","video.js":">=7"},peerDependencies:{"white-web-sdk":"^2.16.0"},devDependencies:{"@netless/app-docs-viewer":"^0.2.9","@netless/app-media-player":"0.1.0-beta.5","@rollup/plugin-commonjs":"^20.0.0","@rollup/plugin-node-resolve":"^13.0.4","@rollup/plugin-url":"^6.1.0","@sveltejs/vite-plugin-svelte":"^1.0.0-next.22","@tsconfig/svelte":"^2.0.1","@types/debug":"^4.1.7","@types/jest":"^27.4.1","@types/lodash-es":"^4.17.4","@types/uuid":"^8.3.1","@typescript-eslint/eslint-plugin":"^4.30.0","@typescript-eslint/parser":"^4.30.0",cypress:"^8.7.0",dotenv:"^10.0.0",eslint:"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-svelte3":"^3.2.0",jest:"^27.5.1","jest-canvas-mock":"^2.3.1","jest-fetch-mock":"^3.0.3","jest-transform-stub":"^2.0.0",less:"^4.1.1",prettier:"^2.3.2","prettier-plugin-svelte":"^2.4.0","rollup-plugin-analyzer":"^4.0.0","rollup-plugin-styles":"^3.14.1",svelte:"^3.42.4","svelte-jester":"^2.3.2","ts-jest":"^27.1.4",typescript:"^4.5.5",vite:"^2.5.3","white-web-sdk":"2.16.10"}}}static async mount(e){const t=e.room;$.container=e.container;const i=e.containerSizeRatio,n=e.debug,r=e.cursor;$.params=e,$.displayer=e.room,Vg();let s;if(A.isRoom(t)){if(t.phase!==A.RoomPhase.Connected)throw new Error("[WindowManager]: Room only Connected can be mount");t.phase===A.RoomPhase.Connected&&t.isWritable&&(t.disableSerialization=!1),s=await this.initManager(t)}if($.isCreated)throw new Error("[WindowManager]: Already created cannot be created again");if(this.debug=Boolean(n),Ei("Already insert room",s),A.isRoom(this.displayer)){if(!s)throw new Error("[WindowManager]: init InvisiblePlugin failed")}else await Xf.default(async o=>{if(s=await t.getInvisiblePlugin($.kind),!s)throw Ei(`manager is empty. retrying ${o}`),new Error},{retries:10});if(!s)throw new Error("[WindowManager]: create manager failed");i&&($.containerSizeRatio=i),await s.ensureAttributes(),s.appManager=new Og(s),s._pageState=new Sv(s.appManager),s.cursorManager=new xv(s.appManager,Boolean(r)),i&&(s.containerSizeRatio=i),e.container&&s.bindContainer(e.container),Mv(t,s),O.emit("onCreated"),$.isCreated=!0;try{await ig()}catch(o){console.warn("[WindowManager]: indexedDB open failed"),console.log(o)}return s}static async initManager(e){let t=e.getInvisiblePlugin($.kind);if(!t&&A.isRoom(e))if(e.isWritable===!1){try{await e.setWritable(!0)}catch{throw new Error("[WindowManger]: room must be switched to be writable")}t=await e.createInvisiblePlugin($,{}),t.ensureAttributes(),await xu(500),await e.setWritable(!1)}else t=await e.createInvisiblePlugin($,{});return t}static initContainer(e,t,i,n){$.container||($.container=t);const{playground:r,wrapper:s,sizer:o,mainViewElement:a}=_g(t);if($.playground=r,i&&o.classList.add("netless-window-manager-chess-sizer"),n){const l=document.createElement("style");l.textContent=n,r.appendChild(l)}return e.containerResizeObserver=ao.create(r,o,s,O),$.wrapper=s,a}static get registered(){return De.registered}bindContainer(e){var t,i,n,r,s,o;if($.isCreated&&$.container)$.container.firstChild&&e.appendChild($.container.firstChild);else if($.params){const a=$.params,l=$.initContainer(this,e,a.chessboard,a.overwriteStyles),u=Gm(this,re,O,{collectorContainer:a.collectorContainer,collectorStyles:a.collectorStyles,prefersColorScheme:a.prefersColorScheme});this.boxManager=u,(t=this.appManager)==null||t.setBoxManager(u),this.bindMainView(l,a.disableCameraTransform),$.wrapper&&((i=this.cursorManager)==null||i.setupWrapper($.wrapper))}O.emit("updateManagerRect"),(n=this.appManager)==null||n.refresh(),(r=this.appManager)==null||r.resetMaximized(),(s=this.appManager)==null||s.resetMinimized(),(o=this.appManager)==null||o.displayerWritableListener(!this.room.isWritable),$.container=e}bindCollectorContainer(e){$.isCreated&&this.boxManager?this.boxManager.setCollectorContainer(e):$.params&&($.params.collectorContainer=e)}static register(e){return De.register(e)}static unregister(e){return De.unregister(e)}async addApp(e){if(this.appManager)return this.appManager.rootDirRemoving?new Promise((t,i)=>{O.once("rootDirRemoved").then(async()=>{try{const n=await this._addApp(e);t(n)}catch(n){i(n.message)}})}):this._addApp(e);throw new rt}async _addApp(e){var t,i,n;if(this.appManager){if(!e.kind||typeof e.kind!="string")throw new Mg;const r=await((t=De.appClasses.get(e.kind))==null?void 0:t());if(r&&((i=r.config)==null?void 0:i.singleton)&&this.appManager.appProxies.has(e.kind))throw new Sg;const s=this.setupScenePath(e,this.appManager);return s===void 0?void 0:((n=e==null?void 0:e.options)!=null&&n.scenePath&&(e.options.scenePath=yg(e.options.scenePath)),await this.appManager.addApp(e,Boolean(s)))}else throw new rt}setupScenePath(e,t){let i=!1;if(e.options){const{scenePath:n,scenes:r}=e.options;if(n){if(!wg(n))throw new bg;const s=Object.keys(this.apps||{});for(const o of s){const a=t.store.getAppScenePath(o);if(a&&a===n){if(console.warn(`[WindowManager]: ScenePath ${n} Already opened`),this.boxManager){const l=this.boxManager.getTopBox();l&&this.boxManager.setZIndex(o,l.zIndex+1,!1)}return}}}n&&r&&r.length>0&&(this.isDynamicPPT(r)?(i=!0,bi(this.displayer)[n]||rn(this.room,n,r)):bi(this.displayer)[n]||rn(this.room,n,[{name:r[0].name}])),n&&r===void 0&&rn(this.room,n,[{}])}return i}async setMainViewScenePath(e){this.appManager&&await this.appManager.setMainViewScenePath(e)}async setMainViewSceneIndex(e){this.appManager&&await this.appManager.setMainViewSceneIndex(e)}async nextPage(){if(this.appManager){const e=this.mainViewSceneIndex+1;return e>=this.mainViewScenesLength?(console.warn("[WindowManager]: current page is the last page"),!1):(await this.appManager.setMainViewSceneIndex(e),!0)}else return!1}async prevPage(){if(this.appManager){const e=this.mainViewSceneIndex-1;return e<0?(console.warn("[WindowManager]: current page is the first page"),!1):(await this.appManager.setMainViewSceneIndex(e),!0)}else return!1}async addPage(e){if(this.appManager){const t=e==null?void 0:e.after,i=e==null?void 0:e.scene;if(t){const n=this.mainViewSceneIndex+1;this.room.putScenes(Tt,[i||{}],n)}else this.room.putScenes(Tt,[i||{}])}}getMainViewScenePath(){var e;return(e=this.appManager)==null?void 0:e.store.getMainViewScenePath()}getMainViewSceneIndex(){var e;return(e=this.appManager)==null?void 0:e.store.getMainViewSceneIndex()}setReadonly(e){var t;this.readonly=e,(t=this.boxManager)==null||t.setReadonly(e),O.emit("setReadonly",e)}switchMainViewToWriter(){var e;return(e=this.appManager)==null?void 0:e.mainViewProxy.mainViewClickHandler()}onAppDestroy(e,t){vg(`destroy-${e}`,t)}setViewMode(e){var t,i,n;e===A.ViewMode.Broadcaster&&(this.canOperate&&((t=this.appManager)==null||t.mainViewProxy.setCameraAndSize()),(i=this.appManager)==null||i.mainViewProxy.start()),e===A.ViewMode.Freedom&&((n=this.appManager)==null||n.mainViewProxy.stop()),this.viewMode=e}setBoxState(e){if(!!this.canOperate)switch(e){case"normal":this.setMaximized(!1),this.setMinimized(!1);break;case"maximized":this.setMaximized(!0),this.setMinimized(!1);break;case"minimized":this.setMinimized(!0);break}}setMaximized(e){var t;!this.canOperate||(t=this.boxManager)==null||t.setMaximized(e,!1)}setMinimized(e){var t;!this.canOperate||(t=this.boxManager)==null||t.setMinimized(e,!1)}get mainView(){if(this.appManager)return this.appManager.mainViewProxy.view;throw new rt}get camera(){if(this.appManager)return this.appManager.mainViewProxy.view.camera;throw new rt}get cameraState(){if(this.appManager)return this.appManager.mainViewProxy.cameraState;throw new rt}get apps(){var e;return(e=this.appManager)==null?void 0:e.store.apps()}get boxState(){var e;if(this.appManager)return(e=this.appManager.boxManager)==null?void 0:e.boxState;throw new rt}get darkMode(){var e,t;return Boolean((t=(e=this.appManager)==null?void 0:e.boxManager)==null?void 0:t.darkMode)}get prefersColorScheme(){var e;if(this.appManager)return(e=this.appManager.boxManager)==null?void 0:e.prefersColorScheme;throw new rt}get focused(){return this.attributes.focus}get focusedView(){var e,t;return((t=(e=this.appManager)==null?void 0:e.focusApp)==null?void 0:t.view)||this.mainView}get mainViewSceneIndex(){var e;return((e=this._pageState)==null?void 0:e.index)||0}get mainViewSceneDir(){var e;if(this.appManager)return(e=this.appManager)==null?void 0:e.getMainViewSceneDir();throw new rt}get topApp(){var e,t;return(t=(e=this.boxManager)==null?void 0:e.getTopBox())==null?void 0:t.id}get mainViewScenesLength(){var e;return((e=this._pageState)==null?void 0:e.length)||0}get canRedoSteps(){var e;return((e=this.focusedView)==null?void 0:e.canRedoSteps)||0}get canUndoSteps(){var e;return((e=this.focusedView)==null?void 0:e.canUndoSteps)||0}get sceneState(){if(this.appManager)return this.appManager.sceneState;throw new rt}get pageState(){if(this._pageState)return this._pageState.toObject();throw new rt}queryAll(){var e;return Array.from(((e=this.appManager)==null?void 0:e.appProxies.values())||[])}queryOne(e){var t;return(t=this.appManager)==null?void 0:t.appProxies.get(e)}async closeApp(e){var t;return(t=this.appManager)==null?void 0:t.closeApp(e)}moveCamera(e){var n;const t=E.omit(e,["animationMode"]),i=ue({},this.mainView.camera);E.isEqual(ue(ue({},i),t),i)||(this.mainView.moveCamera(e),(n=this.appManager)==null||n.dispatchInternalEvent(se.MoveCamera,e),setTimeout(()=>{var r;(r=this.appManager)==null||r.mainViewProxy.setCameraAndSize()},500))}moveCameraToContain(e){var t;this.mainView.moveCameraToContain(e),(t=this.appManager)==null||t.dispatchInternalEvent(se.MoveCameraToContain,e),setTimeout(()=>{var i;(i=this.appManager)==null||i.mainViewProxy.setCameraAndSize()},500)}convertToPointInWorld(e){return this.mainView.convertToPointInWorld(e)}setCameraBound(e){this.mainView.setCameraBound(e)}onDestroy(){this._destroy()}destroy(){this._destroy()}_destroy(){var e,t,i,n;(e=this.containerResizeObserver)==null||e.disconnect(),(t=this.appManager)==null||t.destroy(),(i=this.cursorManager)==null||i.destroy(),$.container=void 0,$.wrapper=void 0,$.isCreated=!1,$.playground&&((n=$.playground.parentNode)==null||n.removeChild($.playground)),$.params=void 0,Ei("Destroyed")}bindMainView(e,t){var i;this.appManager&&(this.appManager.bindMainView(e,Boolean(t)),(i=this.cursorManager)==null||i.setMainViewDivElement(e))}get canOperate(){return A.isRoom(this.displayer)?this.displayer.isWritable&&this.displayer.phase===A.RoomPhase.Connected:!1}get room(){return this.displayer}safeSetAttributes(e){this.canOperate&&this.setAttributes(e)}safeUpdateAttributes(e,t){this.canOperate&&this.updateAttributes(e,t)}setPrefersColorScheme(e){var t,i;(i=(t=this.appManager)==null?void 0:t.boxManager)==null||i.setPrefersColorScheme(e)}cleanCurrentScene(){var e;(e=this.focusedView)==null||e.cleanCurrentScene()}redo(){var e;return((e=this.focusedView)==null?void 0:e.redo())||0}undo(){var e;return((e=this.focusedView)==null?void 0:e.undo())||0}delete(){var e;(e=this.focusedView)==null||e.delete()}copy(){var e;(e=this.focusedView)==null||e.copy()}paste(){var e;(e=this.focusedView)==null||e.paste()}duplicate(){var e;(e=this.focusedView)==null||e.duplicate()}insertText(e,t,i){var n;return((n=this.focusedView)==null?void 0:n.insertText(e,t,i))||""}insertImage(e){var t;return(t=this.focusedView)==null?void 0:t.insertImage(e)}completeImageUpload(e,t){var i;return(i=this.focusedView)==null?void 0:i.completeImageUpload(e,t)}lockImage(e,t){var i;return(i=this.focusedView)==null?void 0:i.lockImage(e,t)}lockImages(e){var t;return(t=this.focusedView)==null?void 0:t.lockImages(e)}isDynamicPPT(e){var i,n;const t=(n=(i=e[0])==null?void 0:i.ppt)==null?void 0:n.src;return t==null?void 0:t.startsWith("pptx://")}async ensureAttributes(){E.isNull(this.attributes)&&await xu(50),E.isObject(this.attributes)&&(this.attributes[Ee.Apps]||this.safeSetAttributes({[Ee.Apps]:{}}),this.attributes[Ee.Cursors]||this.safeSetAttributes({[Ee.Cursors]:{}}),this.attributes._mainScenePath||this.safeSetAttributes({_mainScenePath:no}),this.attributes._mainSceneIndex||this.safeSetAttributes({_mainSceneIndex:0}),this.attributes[Ee.Registered]||this.safeSetAttributes({[Ee.Registered]:{}}))}};let ne=$;ne.kind="WindowManager",ne.debug=!1,ne.containerSizeRatio=qf,ne.isCreated=!1,Qx(),J.BuiltinApps=Fx,J.WindowManager=ne,J.reconnectRefresher=Hf,Object.defineProperties(J,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
47
47
|
//# sourceMappingURL=index.umd.js.map
|
package/dist/typings.d.ts
CHANGED
@@ -73,3 +73,4 @@ export type { AppContext } from "./App/AppContext";
|
|
73
73
|
export type { ReadonlyTeleBox, TeleBoxRect };
|
74
74
|
export type { SceneState, SceneDefinition, View, AnimationMode, Displayer, Room, Player };
|
75
75
|
export type { Storage, StorageStateChangedEvent, StorageStateChangedListener } from "./App/Storage";
|
76
|
+
export * from "./Page";
|
package/package.json
CHANGED
package/src/typings.ts
CHANGED
@@ -79,3 +79,4 @@ export type { AppContext } from "./App/AppContext";
|
|
79
79
|
export type { ReadonlyTeleBox, TeleBoxRect };
|
80
80
|
export type { SceneState, SceneDefinition, View, AnimationMode, Displayer, Room, Player };
|
81
81
|
export type { Storage, StorageStateChangedEvent, StorageStateChangedListener } from "./App/Storage";
|
82
|
+
export * from "./Page";
|