511.7606796f.chunk.js 157 KB

123
  1. /*! For license information please see 511.7606796f.chunk.js.LICENSE.txt */
  2. "use strict";(self.webpackChunkdemo2=self.webpackChunkdemo2||[]).push([[511],{160:(e,t,n)=>{var r=n(43);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=Object.prototype.hasOwnProperty,a=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,s={},u={};function l(e){return!!i.call(u,e)||!i.call(s,e)&&(a.test(e)?u[e]=!0:(s[e]=!0,!1))}function c(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var f={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){f[e]=new c(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];f[t]=new c(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){f[e]=new c(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){f[e]=new c(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){f[e]=new c(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){f[e]=new c(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){f[e]=new c(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){f[e]=new c(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){f[e]=new c(e,5,!1,e.toLowerCase(),null,!1,!1)});var d=/[\-:]([a-z])/g;function h(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(d,h);f[t]=new c(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(d,h);f[t]=new c(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(d,h);f[t]=new c(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){f[e]=new c(e,1,!1,e.toLowerCase(),null,!1,!1)}),f.xlinkHref=new c("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){f[e]=new c(e,1,!1,e.toLowerCase(),null,!0,!0)});var p={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},v=["Webkit","ms","Moz","O"];Object.keys(p).forEach(function(e){v.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),p[t]=p[e]})});var g=/["'&<>]/;function b(e){if("boolean"===typeof e||"number"===typeof e)return""+e;e=""+e;var t=g.exec(e);if(t){var n,r="",o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}var m=/([A-Z])/g,y=/^ms-/,_=Array.isArray;function w(e,t){return{insertionMode:e,selectedValue:t}}var S=new Map;function x(e,t,n){if("object"!==typeof n)throw Error(o(62));for(var r in t=!0,n)if(i.call(n,r)){var a=n[r];if(null!=a&&"boolean"!==typeof a&&""!==a){if(0===r.indexOf("--")){var s=b(r);a=b((""+a).trim())}else{s=r;var u=S.get(s);void 0!==u||(u=b(s.replace(m,"-$1").toLowerCase().replace(y,"-ms-")),S.set(s,u)),s=u,a="number"===typeof a?0===a||i.call(p,r)?""+a:a+"px":b((""+a).trim())}t?(t=!1,e.push(' style="',s,":",a)):e.push(";",s,":",a)}}t||e.push('"')}function k(e,t,n,r){switch(n){case"style":return void x(e,t,r);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=f.hasOwnProperty(n)?f[n]:null)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=t.attributeName,t.type){case 3:r&&e.push(" ",n,'=""');break;case 4:!0===r?e.push(" ",n,'=""'):!1!==r&&e.push(" ",n,'="',b(r),'"');break;case 5:isNaN(r)||e.push(" ",n,'="',b(r),'"');break;case 6:!isNaN(r)&&1<=r&&e.push(" ",n,'="',b(r),'"');break;default:t.sanitizeURL&&(r=""+r),e.push(" ",n,'="',b(r),'"')}}else if(l(n)){switch(typeof r){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(" ",n,'="',b(r),'"')}}function O(e,t,n){if(null!=t){if(null!=n)throw Error(o(60));if("object"!==typeof t||!("__html"in t))throw Error(o(61));null!==(t=t.__html)&&void 0!==t&&e.push(""+t)}}function E(e,t,n,r){e.push(j(n));var o,a=n=null;for(o in t)if(i.call(t,o)){var s=t[o];if(null!=s)switch(o){case"children":n=s;break;case"dangerouslySetInnerHTML":a=s;break;default:k(e,r,o,s)}}return e.push(">"),O(e,a,n),"string"===typeof n?(e.push(b(n)),null):n}var C=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,T=new Map;function j(e){var t=T.get(e);if(void 0===t){if(!C.test(e))throw Error(o(65,e));t="<"+e,T.set(e,t)}return t}function P(e,t,n,a,s){switch(t){case"select":e.push(j("select"));var u=null,c=null;for(p in n)if(i.call(n,p)){var f=n[p];if(null!=f)switch(p){case"children":u=f;break;case"dangerouslySetInnerHTML":c=f;break;case"defaultValue":case"value":break;default:k(e,a,p,f)}}return e.push(">"),O(e,c,u),u;case"option":c=s.selectedValue,e.push(j("option"));var d=f=null,h=null,p=null;for(u in n)if(i.call(n,u)){var v=n[u];if(null!=v)switch(u){case"children":f=v;break;case"selected":h=v;break;case"dangerouslySetInnerHTML":p=v;break;case"value":d=v;default:k(e,a,u,v)}}if(null!=c)if(n=null!==d?""+d:function(e){var t="";return r.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(f),_(c)){for(a=0;a<c.length;a++)if(""+c[a]===n){e.push(' selected=""');break}}else""+c===n&&e.push(' selected=""');else h&&e.push(' selected=""');return e.push(">"),O(e,p,f),f;case"textarea":for(f in e.push(j("textarea")),p=c=u=null,n)if(i.call(n,f)&&null!=(d=n[f]))switch(f){case"children":p=d;break;case"value":u=d;break;case"defaultValue":c=d;break;case"dangerouslySetInnerHTML":throw Error(o(91));default:k(e,a,f,d)}if(null===u&&null!==c&&(u=c),e.push(">"),null!=p){if(null!=u)throw Error(o(92));if(_(p)&&1<p.length)throw Error(o(93));u=""+p}return"string"===typeof u&&"\n"===u[0]&&e.push("\n"),null!==u&&e.push(b(""+u)),null;case"input":for(c in e.push(j("input")),d=p=f=u=null,n)if(i.call(n,c)&&null!=(h=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,"input"));case"defaultChecked":d=h;break;case"defaultValue":f=h;break;case"checked":p=h;break;case"value":u=h;break;default:k(e,a,c,h)}return null!==p?k(e,a,"checked",p):null!==d&&k(e,a,"checked",d),null!==u?k(e,a,"value",u):null!==f&&k(e,a,"value",f),e.push("/>"),null;case"menuitem":for(var g in e.push(j("menuitem")),n)if(i.call(n,g)&&null!=(u=n[g]))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(o(400));default:k(e,a,g,u)}return e.push(">"),null;case"title":for(v in e.push(j("title")),u=null,n)if(i.call(n,v)&&null!=(c=n[v]))switch(v){case"children":u=c;break;case"dangerouslySetInnerHTML":throw Error(o(434));default:k(e,a,v,c)}return e.push(">"),u;case"listing":case"pre":for(d in e.push(j(t)),c=u=null,n)if(i.call(n,d)&&null!=(f=n[d]))switch(d){case"children":u=f;break;case"dangerouslySetInnerHTML":c=f;break;default:k(e,a,d,f)}if(e.push(">"),null!=c){if(null!=u)throw Error(o(60));if("object"!==typeof c||!("__html"in c))throw Error(o(61));null!==(n=c.__html)&&void 0!==n&&("string"===typeof n&&0<n.length&&"\n"===n[0]?e.push("\n",n):e.push(""+n))}return"string"===typeof u&&"\n"===u[0]&&e.push("\n"),u;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var m in e.push(j(t)),n)if(i.call(n,m)&&null!=(u=n[m]))switch(m){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,t));default:k(e,a,m,u)}return e.push("/>"),null;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 E(e,n,t,a);case"html":return 0===s.insertionMode&&e.push("<!DOCTYPE html>"),E(e,n,t,a);default:if(-1===t.indexOf("-")&&"string"!==typeof n.is)return E(e,n,t,a);for(h in e.push(j(t)),c=u=null,n)if(i.call(n,h)&&null!=(f=n[h]))switch(h){case"children":u=f;break;case"dangerouslySetInnerHTML":c=f;break;case"style":x(e,a,f);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:l(h)&&"function"!==typeof f&&"symbol"!==typeof f&&e.push(" ",h,'="',b(f),'"')}return e.push(">"),O(e,c,u),u}}function A(e,t,n){if(e.push('\x3c!--$?--\x3e<template id="'),null===n)throw Error(o(395));return e.push(n),e.push('"></template>')}var R=/[<\u2028\u2029]/g;function M(e){return JSON.stringify(e).replace(R,function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function L(e,t,n,r){return n.generateStaticMarkup?(e.push(b(t)),!1):(""===t?e=r:(r&&e.push("\x3c!-- --\x3e"),e.push(b(t)),e=!0),e)}var F=Object.assign,I=Symbol.for("react.element"),V=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),U=Symbol.for("react.provider"),z=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),G=Symbol.for("react.scope"),X=Symbol.for("react.debug_trace_mode"),Y=Symbol.for("react.legacy_hidden"),Z=Symbol.for("react.default_value"),J=Symbol.iterator;function Q(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case N:return"Fragment";case V:return"Portal";case B:return"Profiler";case D:return"StrictMode";case H:return"Suspense";case $:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case z:return(e.displayName||"Context")+".Consumer";case U:return(e._context.displayName||"Context")+".Provider";case q:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case W:return null!==(t=e.displayName||null)?t:Q(e.type)||"Memo";case K:t=e._payload,e=e._init;try{return Q(e(t))}catch(n){}}return null}var ee={};function te(e,t){if(!(e=e.contextTypes))return ee;var n,r={};for(n in e)r[n]=t[n];return r}var ne=null;function re(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(o(401))}else{if(null===n)throw Error(o(401));re(e,n)}t.context._currentValue2=t.value}}function oe(e){e.context._currentValue2=e.parentValue,null!==(e=e.parent)&&oe(e)}function ie(e){var t=e.parent;null!==t&&ie(t),e.context._currentValue2=e.value}function ae(e,t){if(e.context._currentValue2=e.parentValue,null===(e=e.parent))throw Error(o(402));e.depth===t.depth?re(e,t):ae(e,t)}function se(e,t){var n=t.parent;if(null===n)throw Error(o(402));e.depth===n.depth?re(e,n):se(e,n),t.context._currentValue2=t.value}function ue(e){var t=ne;t!==e&&(null===t?ie(e):null===e?oe(t):t.depth===e.depth?re(t,e):t.depth>e.depth?ae(t,e):se(t,e),ne=e)}var le={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function ce(e,t,n,r){var o=void 0!==e.state?e.state:null;e.updater=le,e.props=n,e.state=o;var i={queue:[],replace:!1};e._reactInternals=i;var a=t.contextType;if(e.context="object"===typeof a&&null!==a?a._currentValue2:r,"function"===typeof(a=t.getDerivedStateFromProps)&&(o=null===(a=a(n,o))||void 0===a?o:F({},o,a),e.state=o),"function"!==typeof t.getDerivedStateFromProps&&"function"!==typeof e.getSnapshotBeforeUpdate&&("function"===typeof e.UNSAFE_componentWillMount||"function"===typeof e.componentWillMount))if(t=e.state,"function"===typeof e.componentWillMount&&e.componentWillMount(),"function"===typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&le.enqueueReplaceState(e,e.state,null),null!==i.queue&&0<i.queue.length)if(t=i.queue,a=i.replace,i.queue=null,i.replace=!1,a&&1===t.length)e.state=t[0];else{for(i=a?t[0]:e.state,o=!0,a=a?1:0;a<t.length;a++){var s=t[a];null!=(s="function"===typeof s?s.call(e,i,n,r):s)&&(o?(o=!1,i=F({},i,s)):F(i,s))}e.state=i}else i.queue=null}var fe={id:1,overflow:""};function de(e,t,n){var r=e.id;e=e.overflow;var o=32-he(r)-1;r&=~(1<<o),n+=1;var i=32-he(t)+o;if(30<i){var a=o-o%5;return i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,{id:1<<32-he(t)+o|n<<o|r,overflow:i+e}}return{id:1<<i|n<<o|r,overflow:e}}var he=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(pe(e)/ve|0)|0},pe=Math.log,ve=Math.LN2;var ge="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},be=null,me=null,ye=null,_e=null,we=!1,Se=!1,xe=0,ke=null,Oe=0;function Ee(){if(null===be)throw Error(o(321));return be}function Ce(){if(0<Oe)throw Error(o(312));return{memoizedState:null,queue:null,next:null}}function Te(){return null===_e?null===ye?(we=!1,ye=_e=Ce()):(we=!0,_e=ye):null===_e.next?(we=!1,_e=_e.next=Ce()):(we=!0,_e=_e.next),_e}function je(){me=be=null,Se=!1,ye=null,Oe=0,_e=ke=null}function Pe(e,t){return"function"===typeof t?t(e):t}function Ae(e,t,n){if(be=Ee(),_e=Te(),we){var r=_e.queue;if(t=r.dispatch,null!==ke&&void 0!==(n=ke.get(r))){ke.delete(r),r=_e.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return _e.memoizedState=r,[r,t]}return[_e.memoizedState,t]}return e=e===Pe?"function"===typeof t?t():t:void 0!==n?n(t):t,_e.memoizedState=e,e=(e=_e.queue={last:null,dispatch:null}).dispatch=Me.bind(null,be,e),[_e.memoizedState,e]}function Re(e,t){if(be=Ee(),t=void 0===t?null:t,null!==(_e=Te())){var n=_e.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var o=0;o<r.length&&o<t.length;o++)if(!ge(t[o],r[o])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),_e.memoizedState=[e,t],e}function Me(e,t,n){if(25<=Oe)throw Error(o(301));if(e===be)if(Se=!0,e={action:n,next:null},null===ke&&(ke=new Map),void 0===(n=ke.get(t)))ke.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function Le(){throw Error(o(394))}function Fe(){}var Ie={readContext:function(e){return e._currentValue2},useContext:function(e){return Ee(),e._currentValue2},useMemo:Re,useReducer:Ae,useRef:function(e){be=Ee();var t=(_e=Te()).memoizedState;return null===t?(e={current:e},_e.memoizedState=e):t},useState:function(e){return Ae(Pe,e)},useInsertionEffect:Fe,useLayoutEffect:function(){},useCallback:function(e,t){return Re(function(){return e},t)},useImperativeHandle:Fe,useEffect:Fe,useDebugValue:Fe,useDeferredValue:function(e){return Ee(),e},useTransition:function(){return Ee(),[!1,Le]},useId:function(){var e=me.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-he(e)-1)).toString(32)+t;var n=Ve;if(null===n)throw Error(o(404));return t=xe++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Ee(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(o(407));return n()}},Ve=null,Ne=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function De(e){return console.error(e),null}function Be(){}function Ue(e,t,n,r,o,i,a,s){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var u={node:t,ping:function(){var t=e.pingedTasks;t.push(u),1===t.length&&nt(e)},blockedBoundary:n,blockedSegment:r,abortSet:o,legacyContext:i,context:a,treeContext:s};return o.add(u),u}function ze(e,t,n,r,o,i){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:o,textEmbedded:i}}function qe(e,t){if(null!=(e=e.onError(t))&&"string"!==typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function He(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,e.destination.destroy(t)):(e.status=1,e.fatalError=t)}function $e(e,t,n,r,o){for(be={},me=t,xe=0,e=n(r,o);Se;)Se=!1,xe=0,Oe+=1,_e=null,e=n(r,o);return je(),e}function We(e,t,n,r){var i=n.render(),a=r.childContextTypes;if(null!==a&&void 0!==a){var s=t.legacyContext;if("function"!==typeof n.getChildContext)r=s;else{for(var u in n=n.getChildContext())if(!(u in a))throw Error(o(108,Q(r)||"Unknown",u));r=F({},s,n)}t.legacyContext=r,Xe(e,t,i),t.legacyContext=s}else Xe(e,t,i)}function Ke(e,t){if(e&&e.defaultProps){for(var n in t=F({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function Ge(e,t,n,r,i){if("function"===typeof n)if(n.prototype&&n.prototype.isReactComponent){i=te(n,t.legacyContext);var a=n.contextType;ce(a=new n(r,"object"===typeof a&&null!==a?a._currentValue2:i),n,r,i),We(e,t,a,n)}else{i=$e(e,t,n,r,a=te(n,t.legacyContext));var s=0!==xe;if("object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof)ce(i,n,r,a),We(e,t,i,n);else if(s){r=t.treeContext,t.treeContext=de(r,1,0);try{Xe(e,t,i)}finally{t.treeContext=r}}else Xe(e,t,i)}else{if("string"!==typeof n){switch(n){case Y:case X:case D:case B:case N:case $:return void Xe(e,t,r.children);case G:throw Error(o(343));case H:e:{n=t.blockedBoundary,i=t.blockedSegment,a=r.fallback,r=r.children;var u={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s=new Set,errorDigest:null},l=ze(0,i.chunks.length,u,i.formatContext,!1,!1);i.children.push(l),i.lastPushedText=!1;var c=ze(0,0,null,i.formatContext,!1,!1);c.parentFlushed=!0,t.blockedBoundary=u,t.blockedSegment=c;try{if(Ze(e,t,r),e.responseState.generateStaticMarkup||c.lastPushedText&&c.textEmbedded&&c.chunks.push("\x3c!-- --\x3e"),c.status=1,et(u,c),0===u.pendingTasks)break e}catch(f){c.status=4,u.forceClientRender=!0,u.errorDigest=qe(e,f)}finally{t.blockedBoundary=n,t.blockedSegment=i}t=Ue(e,a,n,l,s,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"===typeof n&&null!==n)switch(n.$$typeof){case q:if(r=$e(e,t,n.render,r,i),0!==xe){n=t.treeContext,t.treeContext=de(n,1,0);try{Xe(e,t,r)}finally{t.treeContext=n}}else Xe(e,t,r);return;case W:return void Ge(e,t,n=n.type,r=Ke(n,r),i);case U:if(i=r.children,n=n._context,r=r.value,a=n._currentValue2,n._currentValue2=r,ne=r={parent:s=ne,depth:null===s?0:s.depth+1,context:n,parentValue:a,value:r},t.context=r,Xe(e,t,i),null===(e=ne))throw Error(o(403));return r=e.parentValue,e.context._currentValue2=r===Z?e.context._defaultValue:r,e=ne=e.parent,void(t.context=e);case z:return void Xe(e,t,r=(r=r.children)(n._currentValue2));case K:return void Ge(e,t,n=(i=n._init)(n._payload),r=Ke(n,r),void 0)}throw Error(o(130,null==n?n:typeof n,""))}switch(a=P((i=t.blockedSegment).chunks,n,r,e.responseState,i.formatContext),i.lastPushedText=!1,s=i.formatContext,i.formatContext=function(e,t,n){switch(t){case"select":return w(1,null!=n.value?n.value:n.defaultValue);case"svg":return w(2,null);case"math":return w(3,null);case"foreignObject":return w(1,null);case"table":return w(4,null);case"thead":case"tbody":case"tfoot":return w(5,null);case"colgroup":return w(7,null);case"tr":return w(6,null)}return 4<=e.insertionMode||0===e.insertionMode?w(1,null):e}(s,n,r),Ze(e,t,a),i.formatContext=s,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:i.chunks.push("</",n,">")}i.lastPushedText=!1}}function Xe(e,t,n){if(t.node=n,"object"===typeof n&&null!==n){switch(n.$$typeof){case I:return void Ge(e,t,n.type,n.props,n.ref);case V:throw Error(o(257));case K:var r=n._init;return void Xe(e,t,n=r(n._payload))}if(_(n))return void Ye(e,t,n);if(null===n||"object"!==typeof n?r=null:r="function"===typeof(r=J&&n[J]||n["@@iterator"])?r:null,r&&(r=r.call(n))){if(!(n=r.next()).done){var i=[];do{i.push(n.value),n=r.next()}while(!n.done);Ye(e,t,i)}return}throw e=Object.prototype.toString.call(n),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"===typeof n?(r=t.blockedSegment).lastPushedText=L(t.blockedSegment.chunks,n,e.responseState,r.lastPushedText):"number"===typeof n&&((r=t.blockedSegment).lastPushedText=L(t.blockedSegment.chunks,""+n,e.responseState,r.lastPushedText))}function Ye(e,t,n){for(var r=n.length,o=0;o<r;o++){var i=t.treeContext;t.treeContext=de(i,r,o);try{Ze(e,t,n[o])}finally{t.treeContext=i}}}function Ze(e,t,n){var r=t.blockedSegment.formatContext,o=t.legacyContext,i=t.context;try{return Xe(e,t,n)}catch(u){if(je(),"object"!==typeof u||null===u||"function"!==typeof u.then)throw t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=i,ue(i),u;n=u;var a=t.blockedSegment,s=ze(0,a.chunks.length,null,a.formatContext,a.lastPushedText,!0);a.children.push(s),a.lastPushedText=!1,e=Ue(e,t.node,t.blockedBoundary,s,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=i,ue(i)}}function Je(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,tt(this,t,e)}function Qe(e,t,n){var r=e.blockedBoundary;e.blockedSegment.status=3,null===r?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.push(null))):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,e=void 0===n?Error(o(432)):n,r.errorDigest=t.onError(e),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach(function(e){return Qe(e,t,n)}),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(r=t.onAllReady)())}function et(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&et(e,n)}else e.completedSegments.push(t)}function tt(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(o(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=Be,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&et(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Je,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(et(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function nt(e){if(2!==e.status){var t=ne,n=Ne.current;Ne.current=Ie;var r=Ve;Ve=e.responseState;try{var o,i=e.pingedTasks;for(o=0;o<i.length;o++){var a=i[o],s=e,u=a.blockedSegment;if(0===u.status){ue(a.context);try{Xe(s,a,a.node),s.responseState.generateStaticMarkup||u.lastPushedText&&u.textEmbedded&&u.chunks.push("\x3c!-- --\x3e"),a.abortSet.delete(a),u.status=1,tt(s,a.blockedBoundary,u)}catch(h){if(je(),"object"===typeof h&&null!==h&&"function"===typeof h.then){var l=a.ping;h.then(l,l)}else{a.abortSet.delete(a),u.status=4;var c=a.blockedBoundary,f=h,d=qe(s,f);if(null===c?He(s,f):(c.pendingTasks--,c.forceClientRender||(c.forceClientRender=!0,c.errorDigest=d,c.parentFlushed&&s.clientRenderedBoundaries.push(c))),s.allPendingTasks--,0===s.allPendingTasks)(0,s.onAllReady)()}}}}i.splice(0,o),null!==e.destination&&ut(e,e.destination)}catch(h){qe(e,h),He(e,h)}finally{Ve=r,Ne.current=n,n===Ie&&ue(t)}}}function rt(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,t.push('<template id="'),t.push(e.placeholderPrefix),e=r.toString(16),t.push(e),t.push('"></template>');case 1:n.status=2;var i=!0;r=n.chunks;var a=0;n=n.children;for(var s=0;s<n.length;s++){for(i=n[s];a<i.index;a++)t.push(r[a]);i=ot(e,t,i)}for(;a<r.length-1;a++)t.push(r[a]);return a<r.length&&(i=t.push(r[a])),i;default:throw Error(o(390))}}function ot(e,t,n){var r=n.boundary;if(null===r)return rt(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)return e.responseState.generateStaticMarkup||(r=r.errorDigest,t.push("\x3c!--$!--\x3e"),t.push("<template"),r&&(t.push(' data-dgst="'),r=b(r),t.push(r),t.push('"')),t.push("></template>")),rt(e,t,n),e=!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e");if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var i=e.responseState,a=i.nextSuspenseID++;return i=i.boundaryPrefix+a.toString(16),r=r.id=i,A(t,e.responseState,r),rt(e,t,n),t.push("\x3c!--/$--\x3e")}if(r.byteSize>e.progressiveChunkSize)return r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),A(t,e.responseState,r.id),rt(e,t,n),t.push("\x3c!--/$--\x3e");if(e.responseState.generateStaticMarkup||t.push("\x3c!--$--\x3e"),1!==(n=r.completedSegments).length)throw Error(o(391));return ot(e,t,n[0]),e=!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e")}function it(e,t,n){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 2:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 3:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 4:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 5:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');default:throw Error(o(397))}}(t,e.responseState,n.formatContext,n.id),ot(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return e.push("</div>");case 2:return e.push("</svg>");case 3:return e.push("</math>");case 4:return e.push("</table>");case 5:return e.push("</tbody></table>");case 6:return e.push("</tr></table>");case 7:return e.push("</colgroup></table>");default:throw Error(o(397))}}(t,n.formatContext)}function at(e,t,n){for(var r=n.completedSegments,i=0;i<r.length;i++)st(e,t,n,r[i]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,t.push(e.startInlineScript),e.sentCompleteBoundaryFunction?t.push('$RC("'):(e.sentCompleteBoundaryFunction=!0,t.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),null===r)throw Error(o(395));return n=n.toString(16),t.push(r),t.push('","'),t.push(e.segmentPrefix),t.push(n),t.push('")<\/script>')}function st(e,t,n,r){if(2===r.status)return!0;var i=r.id;if(-1===i){if(-1===(r.id=n.rootSegmentID))throw Error(o(392));return it(e,t,r)}return it(e,t,r),e=e.responseState,t.push(e.startInlineScript),e.sentCompleteSegmentFunction?t.push('$RS("'):(e.sentCompleteSegmentFunction=!0,t.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(e.segmentPrefix),i=i.toString(16),t.push(i),t.push('","'),t.push(e.placeholderPrefix),t.push(i),t.push('")<\/script>')}function ut(e,t){try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){ot(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)t.push(r[n]);n<r.length&&t.push(r[n])}var i,a=e.clientRenderedBoundaries;for(i=0;i<a.length;i++){var s=a[i];r=t;var u=e.responseState,l=s.id,c=s.errorDigest,f=s.errorMessage,d=s.errorComponentStack;if(r.push(u.startInlineScript),u.sentClientRenderFunction?r.push('$RX("'):(u.sentClientRenderFunction=!0,r.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),null===l)throw Error(o(395));if(r.push(l),r.push('"'),c||f||d){r.push(",");var h=M(c||"");r.push(h)}if(f||d){r.push(",");var p=M(f||"");r.push(p)}if(d){r.push(",");var v=M(d);r.push(v)}if(!r.push(")<\/script>"))return e.destination=null,i++,void a.splice(0,i)}a.splice(0,i);var g=e.completedBoundaries;for(i=0;i<g.length;i++)if(!at(e,t,g[i]))return e.destination=null,i++,void g.splice(0,i);g.splice(0,i);var b=e.partialBoundaries;for(i=0;i<b.length;i++){var m=b[i];e:{a=e,s=t;var y=m.completedSegments;for(u=0;u<y.length;u++)if(!st(a,s,m,y[u])){u++,y.splice(0,u);var _=!1;break e}y.splice(0,u),_=!0}if(!_)return e.destination=null,i++,void b.splice(0,i)}b.splice(0,i);var w=e.completedBoundaries;for(i=0;i<w.length;i++)if(!at(e,t,w[i]))return e.destination=null,i++,void w.splice(0,i);w.splice(0,i)}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.push(null)}}function lt(e,t){try{var n=e.abortableTasks;n.forEach(function(n){return Qe(n,e,t)}),n.clear(),null!==e.destination&&ut(e,e.destination)}catch(r){qe(e,r),He(e,r)}}function ct(){}function ft(e,t,n,r){var i=!1,a=null,s="",u={push:function(e){return null!==e&&(s+=e),!0},destroy:function(e){i=!0,a=e}},l=!1;if(e=function(e,t,n,r,o,i,a,s,u){var l=[],c=new Set;return(n=ze(t={destination:null,responseState:t,progressiveChunkSize:void 0===r?12800:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:c,pingedTasks:l,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===o?De:o,onAllReady:void 0===i?Be:i,onShellReady:void 0===a?Be:a,onShellError:void 0===s?Be:s,onFatalError:void 0===u?Be:u},0,null,n,!1,!1)).parentFlushed=!0,e=Ue(t,e,null,n,c,ee,null,fe),l.push(e),t}(e,function(e,t){return{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:(t=void 0===t?"":t)+"P:",segmentPrefix:t+"S:",boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:e}}(n,t?t.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,ct,void 0,function(){l=!0},void 0,void 0),nt(e),lt(e,r),1===e.status)e.status=2,u.destroy(e.fatalError);else if(2!==e.status&&null===e.destination){e.destination=u;try{ut(e,u)}catch(c){qe(e,c),He(e,c)}}if(i)throw a;if(!l)throw Error(o(426));return s}t.renderToNodeStream=function(){throw Error(o(207))},t.renderToStaticMarkup=function(e,t){return ft(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.renderToStaticNodeStream=function(){throw Error(o(208))},t.renderToString=function(e,t){return ft(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.version="18.3.1"},203:e=>{var t=/["'&<>]/;e.exports=function(e){var n,r=""+e,o=t.exec(r);if(!o)return r;var i="",a=0,s=0;for(a=o.index;a<r.length;a++){switch(r.charCodeAt(a)){case 34:n="&quot;";break;case 38:n="&amp;";break;case 39:n="&#39;";break;case 60:n="&lt;";break;case 62:n="&gt;";break;default:continue}s!==a&&(i+=r.substring(s,a)),s=a+1,i+=n}return s!==a?i+r.substring(s,a):i}},296:(e,t,n)=>{n.d(t,{TM:()=>l});var r,o=n(168);!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(r||(r={}));var i=function(e){return e};var a="beforeunload",s="hashchange",u="popstate";function l(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,l=n.history;function v(){var e=p(n.location.hash.substr(1)),t=e.pathname,r=void 0===t?"/":t,o=e.search,a=void 0===o?"":o,s=e.hash,u=void 0===s?"":s,c=l.state||{};return[c.idx,i({pathname:r,search:a,hash:u,state:c.usr||null,key:c.key||"default"})]}var g=null;function b(){if(g)x.call(g),g=null;else{var e=r.Pop,t=v(),n=t[0],o=t[1];if(x.length){if(null!=n){var i=_-n;i&&(g={action:e,location:o,retry:function(){j(-1*i)}},j(i))}}else T(e)}}n.addEventListener(u,b),n.addEventListener(s,function(){h(v()[1])!==h(w)&&b()});var m=r.Pop,y=v(),_=y[0],w=y[1],S=f(),x=f();function k(e){return function(){var e=document.querySelector("base"),t="";if(e&&e.getAttribute("href")){var r=n.location.href,o=r.indexOf("#");t=-1===o?r:r.slice(0,o)}return t}()+"#"+("string"===typeof e?e:h(e))}function O(e,t){return void 0===t&&(t=null),i((0,o.A)({pathname:w.pathname,hash:"",search:""},"string"===typeof e?p(e):e,{state:t,key:d()}))}function E(e,t){return[{usr:e.state,key:e.key,idx:t},k(e)]}function C(e,t,n){return!x.length||(x.call({action:e,location:t,retry:n}),!1)}function T(e){m=e;var t=v();_=t[0],w=t[1],S.call({action:m,location:w})}function j(e){l.go(e)}null==_&&(_=0,l.replaceState((0,o.A)({},l.state,{idx:_}),""));var P={get action(){return m},get location(){return w},createHref:k,push:function e(t,o){var i=r.Push,a=O(t,o);if(C(i,a,function(){e(t,o)})){var s=E(a,_+1),u=s[0],c=s[1];try{l.pushState(u,"",c)}catch(f){n.location.assign(c)}T(i)}},replace:function e(t,n){var o=r.Replace,i=O(t,n);if(C(o,i,function(){e(t,n)})){var a=E(i,_),s=a[0],u=a[1];l.replaceState(s,"",u),T(o)}},go:j,back:function(){j(-1)},forward:function(){j(1)},listen:function(e){return S.push(e)},block:function(e){var t=x.push(e);return 1===x.length&&n.addEventListener(a,c),function(){t(),x.length||n.removeEventListener(a,c)}}};return P}function c(e){e.preventDefault(),e.returnValue=""}function f(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter(function(e){return e!==t})}},call:function(t){e.forEach(function(e){return e&&e(t)})}}}function d(){return Math.random().toString(36).substr(2,8)}function h(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,o=void 0===r?"":r,i=e.hash,a=void 0===i?"":i;return o&&"?"!==o&&(n+="?"===o.charAt(0)?o:"?"+o),a&&"#"!==a&&(n+="#"===a.charAt(0)?a:"#"+a),n}function p(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}},498:(e,t,n)=>{n.d(t,{DB:()=>Zr,sV:()=>Wr,a2:()=>Yr,a:()=>Kr,Z5:()=>Gr,Ss:()=>Xr});function r(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function o(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})}Object.create;Object.create;"function"===typeof SuppressedError&&SuppressedError;var i=n(579),a=n(43);const s=a.createContext(null),u=a.createContext(null),l=e=>{var{name:t,content:n}=e,o=r(e,["name","content"]);const s=(0,a.useContext)(u);return(0,a.useEffect)(()=>{s&&s.tagAction.pushSyncTag("action",Object.assign({name:t},o),n)},[s]),(0,i.jsx)(i.Fragment,{})};var c,f;!function(e){e.UP="up",e.DOWN="down",e.LEFT="left",e.RIGHT="right"}(c||(c={})),function(e){e.IN="in",e.OUT="out"}(f||(f={}));var d=n(203),h=n.n(d),p=n(885);const v=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"".concat(e,"(").concat(n.map(e=>"".concat(e)).join(", "),");")},g=e=>{let{tag:t,attrs:n,children:r}=e;const o=Object.keys(n).map(e=>"".concat(e.toLowerCase(),'="').concat(n[e],'"')).join(" ");return r&&r.length?"<".concat(t," ").concat(o,">").concat(r.map(e=>g(e)).join(""),"</").concat(t,">"):"<".concat(t," ").concat(o," />")},b=(e,t)=>Object.assign({},...Object.keys(e).map(n=>{const r=e[n];return t(n,r)})),m=(e,t)=>b(e,(e,n)=>e.startsWith("on")&&"function"===typeof n?{[e]:t(e,n)}:{}),y=e=>{const t=document.createElement("div"),n=p.renderToStaticMarkup((0,i.jsx)(i.Fragment,{children:e}));return t.innerHTML=n,t.outerHTML},_=!!window.krpanoJS&&((e,t)=>{const n=e.split("-"),r=t.split("-"),[o,i]=n[0].split(".").map(Number),[a,s]=r[0].split(".").map(Number);return o!==a?o-a:i!==s?i-s:n.length>1&&r.length>1?n[1].localeCompare(r[1]):n.length>1?1:r.length>1?-1:0})(window.krpanoJS.version,"1.21")>-1;class w{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ReactKrpanoActionProxy";this.eventHandlers=[],this.littlePlanetIntro=!1,this.krpanoRenderer=e,this.name=t,this.tagAction=new x(e)}call(e){var t;const n=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?"nexttick(".concat(e,")"):e;null===(t=this.krpanoRenderer)||void 0===t||t.call(n)}set(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.call(v("set",e,...n))}setTag(e,t,n){return o(this,arguments,void 0,function(e,t,n){var r=this;let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function*(){let i=o;yield r.tagAction.waitIncludeLoaded(),r.call(((e,t)=>Object.keys(t).map(n=>{const r=t[n];if(n=n.toLowerCase(),void 0===r)return"";let o='"';return"".concat(r).includes(o)&&(o="'"),"style"===n?"assignstyle(".concat(e,", ").concat(r,");"):"boolean"===typeof r||"number"===typeof r?"set(".concat(e,".").concat(n,", ").concat(r,");"):"set(".concat(e,".").concat(n,", ").concat(o).concat(["content","html"].includes(n)?r:h()(r.toString())).concat(o,");")}).filter(e=>!!e).join(""))(t?"".concat(e,"[").concat(t,"]"):e,n),i)}()})}get(e){var t;return null===(t=this.krpanoRenderer)||void 0===t?void 0:t.get(e)}removeScene(e){this.get("scene")&&"function"===typeof this.get("scene").removeItem&&this.get("scene").removeItem(e)}loadScene(e){this.call(v("loadscene",e,"null","MERGE","OPENBLEND(0.5, 0.0, 0.75, 0.05, linear)"))}rotateView(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n="";const r=this.get("view");switch(e){case c.LEFT:n="view.hlookat, ".concat((r.hlookat||0)-t);break;case c.RIGHT:n="view.hlookat, ".concat((r.hlookat||0)+t);break;case c.UP:n="view.vlookat, ".concat((r.vlookat||0)-t);break;case c.DOWN:n="view.vlookat, ".concat((r.vlookat||0)+t)}this.call(v("tween",n,.5))}zoomView(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;const n=this.get("view"),r=e===f.IN?-t:t;this.call(v("tween","view.fov",(n.fov||0)+r,1))}on(e,t,n){return this.eventHandlers.push({eventName:e.toLowerCase(),selector:t,handler:n}),this}off(e,t,n){this.eventHandlers=this.eventHandlers.filter(r=>!(r.eventName===e.toLowerCase()&&r.selector===t&&r.handler===n))}fire(e,t){this.eventHandlers.filter(n=>n.eventName===e.toLowerCase()&&n.selector===t).map(e=>{let{handler:t}=e;return t(this)})}bindEvents(e,t){Object.keys(t).map(n=>{const r=t[n];r&&this.on(n,e,r)})}unbindEvents(e,t){Object.keys(t).map(n=>{const r=t[n];r&&this.off(n,e,r)})}addHotspot(e,t){return o(this,void 0,void 0,function*(){yield this.tagAction.waitIncludeLoaded(),this.call(v("addhotspot",e),!0),this.setTag("hotspot",e,t)})}removeHotspot(e){this.call(v("removehotspot",e),!0)}addLayer(e,t){return o(this,void 0,void 0,function*(){yield this.tagAction.waitIncludeLoaded(),this.call(v("addlayer",e),!0),this.setTag("layer",e,t)})}removeLayer(e){this.call(v("removelayer",e),!0)}}class S{constructor(){this.queue=[],this.push=()=>new Promise((e,t)=>{this.queue.push({resolve:e,reject:t})}),this.unshift=()=>new Promise((e,t)=>{this.queue.unshift({resolve:e,reject:t})}),this.flushResolve=e=>{this.queue.forEach(t=>t.resolve(e)),this.queue=[]},this.flushReject=e=>{this.queue.forEach(t=>t.reject(e)),this.queue=[]}}}class x{constructor(e){this.queue=new S,this.syncTagsLoaded=!1,this.syncTagStack=[],this.syncXMLStringStack=[],this.krpanoRenderer=e}waitIncludeLoaded(e){return this.syncTagsLoaded?Promise.resolve():this.queue[e?"push":"unshift"]()}pushSyncTag(e,t,n){this.syncTagStack.unshift({tagName:e,attribute:t,children:n})}createSyncTags(){return o(this,void 0,void 0,function*(){const e=yield this.getXMLContent(),t=e.querySelector("krpano");for(;this.syncTagStack.length;){let n=null;const r=this.syncTagStack.pop();if(r.children){n=(new DOMParser).parseFromString("<".concat(r.tagName,">").concat(r.children,"</").concat(r.tagName,">"),"text/xml").documentElement}else n=e.createElement(r.tagName);for(const e in r.attribute)n.setAttribute(e,r.attribute[e]);null===t||void 0===t||t.insertBefore(n,null)}return e})}getXMLContent(){return o(this,void 0,void 0,function*(){var e;let t="";const n=null===(e=this.krpanoRenderer)||void 0===e?void 0:e.get("xml"),r=new DOMParser;return n.content?t=n.content:n.url&&(t=yield fetch(n.url).then(e=>e.text())),r.parseFromString(t,"text/xml")})}}function k(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("number"===typeof e?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var O={};function E(){return"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:O}var C=Object.assign,T=Object.getOwnPropertyDescriptor,j=Object.defineProperty,P=Object.prototype,A=[];Object.freeze(A);var R={};Object.freeze(R);var M="undefined"!==typeof Proxy,L=Object.toString();function F(){M||k("Proxy not available")}function I(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var V=function(){};function N(e){return"function"===typeof e}function D(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function B(e){return null!==e&&"object"===typeof e}function U(e){if(!B(e))return!1;var t=Object.getPrototypeOf(e);if(null==t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"===typeof n&&n.toString()===L}function z(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function q(e,t,n){j(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function H(e,t,n){j(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function $(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return B(e)&&!0===e[n]}}function W(e){return null!=e&&"[object Map]"===Object.prototype.toString.call(e)}function K(e){return null!=e&&"[object Set]"===Object.prototype.toString.call(e)}var G="undefined"!==typeof Object.getOwnPropertySymbols;var X="undefined"!==typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:G?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function Y(e){return null===e?null:"object"===typeof e?""+e:e}function Z(e,t){return P.hasOwnProperty.call(e,t)}var J=Object.getOwnPropertyDescriptors||function(e){var t={};return X(e).forEach(function(n){t[n]=T(e,n)}),t};function Q(e,t){return!!(e&t)}function ee(e,t,n){return n?e|=t:e&=~t,e}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ue(r.key),r)}}function re(e,t,n){return t&&ne(e.prototype,t),n&&ne(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function oe(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return te(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?te(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ie(){return ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ie.apply(null,arguments)}function ae(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,se(e,t)}function se(e,t){return se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},se(e,t)}function ue(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}var le=Symbol("mobx-stored-annotations");function ce(e){return Object.assign(function(t,n){if(de(n))return e.decorate_20223_(t,n);fe(t,n,e)},e)}function fe(e,t,n){Z(e,le)||q(e,le,ie({},e[le])),function(e){return e.annotationType_===_e}(n)||(e[le][t]=n)}function de(e){return"object"==typeof e&&"string"==typeof e.kind}var he=Symbol("mobx administration"),pe=function(){function e(e){void 0===e&&(e="Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=mt.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(e){return e()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(e){return e()})},t.reportObserved=function(){return zt(this)},t.reportChanged=function(){Bt(),qt(this),Ut()},t.toString=function(){return this.name_},re(e,[{key:"isBeingObserved",get:function(){return Q(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=ee(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return Q(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=ee(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return Q(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=ee(this.flags_,e.diffValueMask_,1===t)}}])}();pe.isBeingObservedMask_=1,pe.isPendingUnobservationMask_=2,pe.diffValueMask_=4;var ve=$("Atom",pe);function ge(e,t,n){void 0===t&&(t=V),void 0===n&&(n=V);var r,o=new pe(e);return t!==V&&pn(fn,o,t,r),n!==V&&hn(o,n),o}var be={identity:function(e,t){return e===t},structural:function(e,t){return Mr(e,t)},default:function(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e===1/t:e!==e&&t!==t},shallow:function(e,t){return Mr(e,t,1)}};function me(e,t,n){return Tn(e)?e:Array.isArray(e)?nt.array(e,{name:n}):U(e)?nt.object(e,void 0,{name:n}):W(e)?nt.map(e,{name:n}):K(e)?nt.set(e,{name:n}):"function"!==typeof e||sn(e)||En(e)?e:z(e)?kn(e):an(n,e)}function ye(e){return e}var _e="override";function we(e,t){return{annotationType_:e,options_:t,make_:Se,extend_:xe,decorate_20223_:ke}}function Se(e,t,n,r){var o;if(null!=(o=this.options_)&&o.bound)return null===this.extend_(e,t,n,!1)?0:1;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(sn(n.value))return 1;var i=Oe(e,this,t,n,!1);return j(r,t,i),2}function xe(e,t,n,r){var o=Oe(e,this,t,n);return e.defineProperty_(t,o,r)}function ke(e,t){var n,r=t.kind,o=t.name,i=t.addInitializer,a=this,s=function(e){var t,n,r,i;return ft(null!=(t=null==(n=a.options_)?void 0:n.name)?t:o.toString(),e,null!=(r=null==(i=a.options_)?void 0:i.autoAction)&&r)};return"field"==r?function(e){var t,n=e;return sn(n)||(n=s(n)),null!=(t=a.options_)&&t.bound&&((n=n.bind(this)).isMobxAction=!0),n}:"method"==r?(sn(e)||(e=s(e)),null!=(n=this.options_)&&n.bound&&i(function(){var e=this,t=e[o].bind(e);t.isMobxAction=!0,e[o]=t}),e):void k("Cannot apply '"+a.annotationType_+"' to '"+String(o)+"' (kind: "+r+"):\n'"+a.annotationType_+"' can only be used on properties with a function value.")}function Oe(e,t,n,r,o){var i,a,s,u,l,c,f,d;void 0===o&&(o=It.safeDescriptors),d=r,t.annotationType_,d.value;var h,p=r.value;null!=(i=t.options_)&&i.bound&&(p=p.bind(null!=(h=e.proxy_)?h:e.target_));return{value:ft(null!=(a=null==(s=t.options_)?void 0:s.name)?a:n.toString(),p,null!=(u=null==(l=t.options_)?void 0:l.autoAction)&&u,null!=(c=t.options_)&&c.bound?null!=(f=e.proxy_)?f:e.target_:void 0),configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function Ee(e,t){return{annotationType_:e,options_:t,make_:Ce,extend_:Te,decorate_20223_:je}}function Ce(e,t,n,r){var o;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(null!=(o=this.options_)&&o.bound&&(!Z(e.target_,t)||!En(e.target_[t]))&&null===this.extend_(e,t,n,!1))return 0;if(En(n.value))return 1;var i=Pe(e,this,t,n,!1,!1);return j(r,t,i),2}function Te(e,t,n,r){var o,i=Pe(e,this,t,n,null==(o=this.options_)?void 0:o.bound);return e.defineProperty_(t,i,r)}function je(e,t){var n;var r=t.name,o=t.addInitializer;return En(e)||(e=kn(e)),null!=(n=this.options_)&&n.bound&&o(function(){var e=this,t=e[r].bind(e);t.isMobXFlow=!0,e[r]=t}),e}function Pe(e,t,n,r,o,i){var a;void 0===i&&(i=It.safeDescriptors),a=r,t.annotationType_,a.value;var s,u=r.value;(En(u)||(u=kn(u)),o)&&((u=u.bind(null!=(s=e.proxy_)?s:e.target_)).isMobXFlow=!0);return{value:u,configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function Ae(e,t){return{annotationType_:e,options_:t,make_:Re,extend_:Me,decorate_20223_:Le}}function Re(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function Me(e,t,n,r){return function(e,t,n,r){t.annotationType_,r.get;0}(0,this,0,n),e.defineComputedProperty_(t,ie({},this.options_,{get:n.get,set:n.set}),r)}function Le(e,t){var n=this,r=t.name;return(0,t.addInitializer)(function(){var t=cr(this)[he],o=ie({},n.options_,{get:e,context:this});o.name||(o.name="ObservableObject."+r.toString()),t.values_.set(r,new bt(o))}),function(){return this[he].getObservablePropValue_(r)}}function Fe(e,t){return{annotationType_:e,options_:t,make_:Ie,extend_:Ve,decorate_20223_:Ne}}function Ie(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function Ve(e,t,n,r){var o,i;return function(e,t){t.annotationType_;0}(0,this),e.defineObservableProperty_(t,n.value,null!=(o=null==(i=this.options_)?void 0:i.enhancer)?o:me,r)}function Ne(e,t){var n=this,r=t.kind,o=t.name,i=new WeakSet;function a(e,t){var r,a,s=cr(e)[he],u=new gt(t,null!=(r=null==(a=n.options_)?void 0:a.enhancer)?r:me,"ObservableObject."+o.toString(),!1);s.values_.set(o,u),i.add(e)}if("accessor"==r)return{get:function(){return i.has(this)||a(this,e.get.call(this)),this[he].getObservablePropValue_(o)},set:function(e){return i.has(this)||a(this,e),this[he].setObservablePropValue_(o,e)},init:function(e){return i.has(this)||a(this,e),e}}}var De="true",Be=Ue();function Ue(e){return{annotationType_:De,options_:e,make_:ze,extend_:qe,decorate_20223_:He}}function ze(e,t,n,r){var o,i,a,s;if(n.get)return at.make_(e,t,n,r);if(n.set){var u=sn(n.set)?n.set:ft(t.toString(),n.set);return r===e.target_?null===e.defineProperty_(t,{configurable:!It.safeDescriptors||e.isPlainObject_,set:u})?0:2:(j(r,t,{configurable:!0,set:u}),2)}if(r!==e.target_&&"function"===typeof n.value)return z(n.value)?(null!=(s=this.options_)&&s.autoBind?kn.bound:kn).make_(e,t,n,r):(null!=(a=this.options_)&&a.autoBind?an.bound:an).make_(e,t,n,r);var l,c=!1===(null==(o=this.options_)?void 0:o.deep)?nt.ref:nt;"function"===typeof n.value&&null!=(i=this.options_)&&i.autoBind&&(n.value=n.value.bind(null!=(l=e.proxy_)?l:e.target_));return c.make_(e,t,n,r)}function qe(e,t,n,r){var o,i,a;if(n.get)return at.extend_(e,t,n,r);if(n.set)return e.defineProperty_(t,{configurable:!It.safeDescriptors||e.isPlainObject_,set:ft(t.toString(),n.set)},r);"function"===typeof n.value&&null!=(o=this.options_)&&o.autoBind&&(n.value=n.value.bind(null!=(a=e.proxy_)?a:e.target_));return(!1===(null==(i=this.options_)?void 0:i.deep)?nt.ref:nt).extend_(e,t,n,r)}function He(e,t){k("'"+this.annotationType_+"' cannot be used as a decorator")}var $e={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function We(e){return e||$e}Object.freeze($e);var Ke=Fe("observable"),Ge=Fe("observable.ref",{enhancer:ye}),Xe=Fe("observable.shallow",{enhancer:function(e,t,n){return void 0===e||null===e||hr(e)||Yn(e)||tr(e)||ir(e)?e:Array.isArray(e)?nt.array(e,{name:n,deep:!1}):U(e)?nt.object(e,void 0,{name:n,deep:!1}):W(e)?nt.map(e,{name:n,deep:!1}):K(e)?nt.set(e,{name:n,deep:!1}):void 0}}),Ye=Fe("observable.struct",{enhancer:function(e,t){return Mr(e,t)?t:e}}),Ze=ce(Ke);function Je(e){return!0===e.deep?me:!1===e.deep?ye:function(e){var t,n;return e&&null!=(t=null==(n=e.options_)?void 0:n.enhancer)?t:me}(e.defaultDecorator)}function Qe(e,t,n){return de(t)?Ke.decorate_20223_(e,t):D(t)?void fe(e,t,Ke):Tn(e)?e:U(e)?nt.object(e,t,n):Array.isArray(e)?nt.array(e,t):W(e)?nt.map(e,t):K(e)?nt.set(e,t):"object"===typeof e&&null!==e?e:nt.box(e,t)}C(Qe,Ze);var et,tt,nt=C(Qe,{box:function(e,t){var n=We(t);return new gt(e,Je(n),n.name,!0,n.equals)},array:function(e,t){var n=We(t);return(!1===It.useProxies||!1===n.proxy?Er:qn)(e,Je(n),n.name)},map:function(e,t){var n=We(t);return new er(e,Je(n),n.name)},set:function(e,t){var n=We(t);return new or(e,Je(n),n.name)},object:function(e,t,n){return Pr(function(){return bn(!1===It.useProxies||!1===(null==n?void 0:n.proxy)?cr({},n):function(e,t){var n,r;return F(),e=cr(e,t),null!=(r=(n=e[he]).proxy_)?r:n.proxy_=new Proxy(e,An)}({},n),e,t)})},ref:ce(Ge),shallow:ce(Xe),deep:Ze,struct:ce(Ye)}),rt="computed",ot=Ae(rt),it=Ae("computed.struct",{equals:be.structural}),at=function(e,t){if(de(t))return ot.decorate_20223_(e,t);if(D(t))return fe(e,t,ot);if(U(e))return ce(Ae(rt,e));var n=U(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new bt(n)};Object.assign(at,ot),at.struct=ce(it);var st=0,ut=1,lt=null!=(et=null==(tt=T(function(){},"name"))?void 0:tt.configurable)&&et,ct={value:"action",configurable:!0,writable:!1,enumerable:!1};function ft(e,t,n,r){function o(){return dt(e,n,t,r||this,arguments)}return void 0===n&&(n=!1),o.isMobxAction=!0,o.toString=function(){return t.toString()},lt&&(ct.value=e,j(o,"name",ct)),o}function dt(e,t,n,r,o){var i=function(e,t){var n=!1,r=0;0;var o=It.trackingDerivation,i=!t||!o;Bt();var a=It.allowStateChanges;i&&(Tt(),a=pt(!0));var s=Pt(!0),u={runAsAction_:i,prevDerivation_:o,prevAllowStateChanges_:a,prevAllowStateReads_:s,notifySpy_:n,startTime_:r,actionId_:ut++,parentActionId_:st};return st=u.actionId_,u}(0,t);try{return n.apply(r,o)}catch(a){throw i.error_=a,a}finally{!function(e){st!==e.actionId_&&k(30);st=e.parentActionId_,void 0!==e.error_&&(It.suppressReactionErrors=!0);vt(e.prevAllowStateChanges_),At(e.prevAllowStateReads_),Ut(),e.runAsAction_&&jt(e.prevDerivation_);0;It.suppressReactionErrors=!1}(i)}}function ht(e,t){var n=pt(e);try{return t()}finally{vt(n)}}function pt(e){var t=It.allowStateChanges;return It.allowStateChanges=e,t}function vt(e){It.allowStateChanges=e}var gt=function(e){function t(t,n,r,o,i){var a;return void 0===r&&(r="ObservableValue"),void 0===o&&(o=!0),void 0===i&&(i=be.default),(a=e.call(this,r)||this).enhancer=void 0,a.name_=void 0,a.equals=void 0,a.hasUnreportedChange_=!1,a.interceptors_=void 0,a.changeListeners_=void 0,a.value_=void 0,a.dehancer=void 0,a.enhancer=n,a.name_=r,a.equals=i,a.value_=n(t,void 0,r),a}ae(t,e);var n=t.prototype;return n.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.set=function(e){this.value_;if((e=this.prepareNewValue_(e))!==It.UNCHANGED){0,this.setNewValue_(e)}},n.prepareNewValue_=function(e){if(kt(this),Rn(this)){var t=Ln(this,{object:this,type:Bn,newValue:e});if(!t)return It.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?It.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),Fn(this)&&Vn(this,{type:Bn,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return Mn(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:Bn,newValue:this.value_,oldValue:void 0}),In(this,e)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return Y(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}(pe),bt=function(){function e(e){this.dependenciesState_=mt.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=mt.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new wt(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=yt.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,e.get||k(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=ft("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?be.structural:be.default),this.scope_=e.context,this.requiresReaction_=e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){!function(e){if(e.lowestObserverState_!==mt.UP_TO_DATE_)return;e.lowestObserverState_=mt.POSSIBLY_STALE_,e.observers_.forEach(function(e){e.dependenciesState_===mt.UP_TO_DATE_&&(e.dependenciesState_=mt.POSSIBLY_STALE_,e.onBecomeStale_())})}(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(e){return e()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(e){return e()})},t.get=function(){if(this.isComputing&&k(32,this.name_,this.derivation),0!==It.inBatch||0!==this.observers_.size||this.keepAlive_){if(zt(this),xt(this)){var e=It.trackingContext;this.keepAlive_&&!e&&(It.trackingContext=this),this.trackAndCompute()&&function(e){if(e.lowestObserverState_===mt.STALE_)return;e.lowestObserverState_=mt.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===mt.POSSIBLY_STALE_?t.dependenciesState_=mt.STALE_:t.dependenciesState_===mt.UP_TO_DATE_&&(e.lowestObserverState_=mt.UP_TO_DATE_)})}(this),It.trackingContext=e}}else xt(this)&&(this.warnAboutUntrackedRead_(),Bt(),this.value_=this.computeValue_(!1),Ut());var t=this.value_;if(St(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter&&k(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter=!1}}else k(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===mt.NOT_TRACKING_,n=this.computeValue_(!0),r=t||St(e)||St(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing=!0;var t,n=pt(!1);if(e)t=Ot(this,this.derivation,this.scope_);else if(!0===It.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(r){t=new wt(r)}return vt(n),this.isComputing=!1,t},t.suspend_=function(){this.keepAlive_||(Et(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,o=void 0;return un(function(){var i=n.get();if(!r||t){var a=Tt();e({observableKind:"computed",debugObjectName:n.name_,type:Bn,object:n,newValue:i,oldValue:o}),jt(a)}r=!1,o=i})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return Y(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},re(e,[{key:"isComputing",get:function(){return Q(this.flags_,e.isComputingMask_)},set:function(t){this.flags_=ee(this.flags_,e.isComputingMask_,t)}},{key:"isRunningSetter",get:function(){return Q(this.flags_,e.isRunningSetterMask_)},set:function(t){this.flags_=ee(this.flags_,e.isRunningSetterMask_,t)}},{key:"isBeingObserved",get:function(){return Q(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=ee(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return Q(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=ee(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return Q(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=ee(this.flags_,e.diffValueMask_,1===t)}}])}();bt.isComputingMask_=1,bt.isRunningSetterMask_=2,bt.isBeingObservedMask_=4,bt.isPendingUnobservationMask_=8,bt.diffValueMask_=16;var mt,yt,_t=$("ComputedValue",bt);!function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"}(mt||(mt={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(yt||(yt={}));var wt=function(e){this.cause=void 0,this.cause=e};function St(e){return e instanceof wt}function xt(e){switch(e.dependenciesState_){case mt.UP_TO_DATE_:return!1;case mt.NOT_TRACKING_:case mt.STALE_:return!0;case mt.POSSIBLY_STALE_:for(var t=Pt(!0),n=Tt(),r=e.observing_,o=r.length,i=0;i<o;i++){var a=r[i];if(_t(a)){if(It.disableErrorBoundaries)a.get();else try{a.get()}catch(s){return jt(n),At(t),!0}if(e.dependenciesState_===mt.STALE_)return jt(n),At(t),!0}}return Rt(e),jt(n),At(t),!1}}function kt(e){}function Ot(e,t,n){var r=Pt(!0);Rt(e),e.newObserving_=new Array(0===e.runId_?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++It.runId;var o,i=It.trackingDerivation;if(It.trackingDerivation=e,It.inBatch++,!0===It.disableErrorBoundaries)o=t.call(n);else try{o=t.call(n)}catch(a){o=new wt(a)}return It.inBatch--,It.trackingDerivation=i,function(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=mt.UP_TO_DATE_,o=0,i=e.unboundDepsCount_,a=0;a<i;a++){var s=n[a];0===s.diffValue&&(s.diffValue=1,o!==a&&(n[o]=s),o++),s.dependenciesState_>r&&(r=s.dependenciesState_)}n.length=o,e.newObserving_=null,i=t.length;for(;i--;){var u=t[i];0===u.diffValue&&Nt(u,e),u.diffValue=0}for(;o--;){var l=n[o];1===l.diffValue&&(l.diffValue=0,Vt(l,e))}r!==mt.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),At(r),o}function Et(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)Nt(t[n],e);e.dependenciesState_=mt.NOT_TRACKING_}function Ct(e){var t=Tt();try{return e()}finally{jt(t)}}function Tt(){var e=It.trackingDerivation;return It.trackingDerivation=null,e}function jt(e){It.trackingDerivation=e}function Pt(e){var t=It.allowStateReads;return It.allowStateReads=e,t}function At(e){It.allowStateReads=e}function Rt(e){if(e.dependenciesState_!==mt.UP_TO_DATE_){e.dependenciesState_=mt.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=mt.UP_TO_DATE_}}var Mt=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},Lt=!0,Ft=!1,It=function(){var e=E();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Lt=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new Mt).version&&(Lt=!1),Lt?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Mt):(setTimeout(function(){Ft||k(35)},1),new Mt)}();function Vt(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function Nt(e,t){e.observers_.delete(t),0===e.observers_.size&&Dt(e)}function Dt(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,It.pendingUnobservations.push(e))}function Bt(){It.inBatch++}function Ut(){if(0===--It.inBatch){Kt();for(var e=It.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,0===n.observers_.size&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBUO()),n instanceof bt&&n.suspend_())}It.pendingUnobservations=[]}}function zt(e){var t=It.trackingDerivation;return null!==t?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&It.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(0===e.observers_.size&&It.inBatch>0&&Dt(e),!1)}function qt(e){e.lowestObserverState_!==mt.STALE_&&(e.lowestObserverState_=mt.STALE_,e.observers_.forEach(function(e){e.dependenciesState_===mt.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=mt.STALE_}))}var Ht=function(){function e(e,t,n,r){void 0===e&&(e="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=mt.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=yt.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,It.pendingReactions.push(this),Kt())},t.runReaction_=function(){if(!this.isDisposed){Bt(),this.isScheduled=!1;var e=It.trackingContext;if(It.trackingContext=this,xt(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(t){this.reportExceptionInDerivation_(t)}}It.trackingContext=e,Ut()}},t.track=function(e){if(!this.isDisposed){Bt();0,this.isRunning=!0;var t=It.trackingContext;It.trackingContext=this;var n=Ot(this,e,void 0);It.trackingContext=t,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&Et(this),St(n)&&this.reportExceptionInDerivation_(n.cause),Ut()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(It.disableErrorBoundaries)throw e;var n="[mobx] uncaught error in '"+this+"'";It.suppressReactionErrors||console.error(n,e),It.globalReactionErrorHandlers.forEach(function(n){return n(e,t)})}},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(Bt(),Et(this),Ut()))},t.getDisposer_=function(e){var t=this,n=function n(){t.dispose(),null==e||null==e.removeEventListener||e.removeEventListener("abort",n)};return null==e||null==e.addEventListener||e.addEventListener("abort",n),n[he]=this,"dispose"in Symbol&&"symbol"===typeof Symbol.dispose&&(n[Symbol.dispose]=n),n},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1)},re(e,[{key:"isDisposed",get:function(){return Q(this.flags_,e.isDisposedMask_)},set:function(t){this.flags_=ee(this.flags_,e.isDisposedMask_,t)}},{key:"isScheduled",get:function(){return Q(this.flags_,e.isScheduledMask_)},set:function(t){this.flags_=ee(this.flags_,e.isScheduledMask_,t)}},{key:"isTrackPending",get:function(){return Q(this.flags_,e.isTrackPendingMask_)},set:function(t){this.flags_=ee(this.flags_,e.isTrackPendingMask_,t)}},{key:"isRunning",get:function(){return Q(this.flags_,e.isRunningMask_)},set:function(t){this.flags_=ee(this.flags_,e.isRunningMask_,t)}},{key:"diffValue",get:function(){return Q(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=ee(this.flags_,e.diffValueMask_,1===t)}}])}();Ht.isDisposedMask_=1,Ht.isScheduledMask_=2,Ht.isTrackPendingMask_=4,Ht.isRunningMask_=8,Ht.diffValueMask_=16;var $t=100,Wt=function(e){return e()};function Kt(){It.inBatch>0||It.isRunningReactions||Wt(Gt)}function Gt(){It.isRunningReactions=!0;for(var e=It.pendingReactions,t=0;e.length>0;){++t===$t&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,o=n.length;r<o;r++)n[r].runReaction_()}It.isRunningReactions=!1}var Xt=$("Reaction",Ht);var Yt="action",Zt="autoAction",Jt="<unnamed action>",Qt=we(Yt),en=we("action.bound",{bound:!0}),tn=we(Zt,{autoAction:!0}),nn=we("autoAction.bound",{autoAction:!0,bound:!0});function rn(e){return function(t,n){return N(t)?ft(t.name||Jt,t,e):N(n)?ft(t,n,e):de(n)?(e?tn:Qt).decorate_20223_(t,n):D(n)?fe(t,n,e?tn:Qt):D(t)?ce(we(e?Zt:Yt,{name:t,autoAction:e})):void 0}}var on=rn(!1);Object.assign(on,Qt);var an=rn(!0);function sn(e){return N(e)&&!0===e.isMobxAction}function un(e,t){var n,r,o,i;void 0===t&&(t=R);var a,s=null!=(n=null==(r=t)?void 0:r.name)?n:"Autorun";if(!t.scheduler&&!t.delay)a=new Ht(s,function(){this.track(c)},t.onError,t.requiresObservable);else{var u=cn(t),l=!1;a=new Ht(s,function(){l||(l=!0,u(function(){l=!1,a.isDisposed||a.track(c)}))},t.onError,t.requiresObservable)}function c(){e(a)}return null!=(o=t)&&null!=(o=o.signal)&&o.aborted||a.schedule_(),a.getDisposer_(null==(i=t)?void 0:i.signal)}Object.assign(an,tn),on.bound=ce(en),an.bound=ce(nn);var ln=function(e){return e()};function cn(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:ln}var fn="onBO",dn="onBUO";function hn(e,t,n){return pn(dn,e,t,n)}function pn(e,t,n,r){var o="function"===typeof r?Cr(t,n):Cr(t),i=N(r)?r:n,a=e+"L";return o[a]?o[a].add(i):o[a]=new Set([i]),function(){var e=o[a];e&&(e.delete(i),0===e.size&&delete o[a])}}var vn="always";function gn(e){!0===e.isolateGlobalState&&function(){if((It.pendingReactions.length||It.inBatch||It.isRunningReactions)&&k(36),Ft=!0,Lt){var e=E();0===--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),It=new Mt}}();var t=e.useProxies,n=e.enforceActions;if(void 0!==t&&(It.useProxies=t===vn||"never"!==t&&"undefined"!==typeof Proxy),"ifavailable"===t&&(It.verifyProxies=!0),void 0!==n){var r=n===vn?vn:"observed"===n;It.enforceActions=r,It.allowStateChanges=!0!==r&&r!==vn}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(t){t in e&&(It[t]=!!e[t])}),It.allowStateReads=!It.observableRequiresReaction,e.reactionScheduler&&function(e){var t=Wt;Wt=function(n){return e(function(){return t(n)})}}(e.reactionScheduler)}function bn(e,t,n,r){var o=J(t);return Pr(function(){var t=cr(e,r)[he];X(o).forEach(function(e){t.extend_(e,o[e],!n||(!(e in n)||n[e]))})}),e}function mn(e,t){return yn(Cr(e,t))}function yn(e){var t,n={name:e.name_};return e.observing_&&e.observing_.length>0&&(n.dependencies=(t=e.observing_,Array.from(new Set(t))).map(yn)),n}var _n=0;function wn(){this.message="FLOW_CANCELLED"}wn.prototype=Object.create(Error.prototype);var Sn=Ee("flow"),xn=Ee("flow.bound",{bound:!0}),kn=Object.assign(function(e,t){if(de(t))return Sn.decorate_20223_(e,t);if(D(t))return fe(e,t,Sn);var n=e,r=n.name||"<unnamed flow>",o=function(){var e,t=arguments,o=++_n,i=on(r+" - runid: "+o+" - init",n).apply(this,t),a=void 0,s=new Promise(function(t,n){var s=0;function u(e){var t;a=void 0;try{t=on(r+" - runid: "+o+" - yield "+s++,i.next).call(i,e)}catch(u){return n(u)}c(t)}function l(e){var t;a=void 0;try{t=on(r+" - runid: "+o+" - yield "+s++,i.throw).call(i,e)}catch(u){return n(u)}c(t)}function c(e){if(!N(null==e?void 0:e.then))return e.done?t(e.value):(a=Promise.resolve(e.value)).then(u,l);e.then(c,n)}e=n,u(void 0)});return s.cancel=on(r+" - runid: "+o+" - cancel",function(){try{a&&On(a);var t=i.return(void 0),n=Promise.resolve(t.value);n.then(V,V),On(n),e(new wn)}catch(r){e(r)}}),s};return o.isMobXFlow=!0,o},Sn);function On(e){N(e.cancel)&&e.cancel()}function En(e){return!0===(null==e?void 0:e.isMobXFlow)}function Cn(e,t){return!!e&&(void 0!==t?!!hr(e)&&e[he].values_.has(t):hr(e)||!!e[he]||ve(e)||Xt(e)||_t(e))}function Tn(e){return Cn(e)}function jn(e,t){void 0===t&&(t=void 0),Bt();try{return e.apply(t)}finally{Ut()}}function Pn(e){return e[he]}kn.bound=ce(xn);var An={has:function(e,t){return Pn(e).has_(t)},get:function(e,t){return Pn(e).get_(t)},set:function(e,t,n){var r;return!!D(t)&&(null==(r=Pn(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return!!D(t)&&(null==(n=Pn(e).delete_(t,!0))||n)},defineProperty:function(e,t,n){var r;return null==(r=Pn(e).defineProperty_(t,n))||r},ownKeys:function(e){return Pn(e).ownKeys_()},preventExtensions:function(e){k(13)}};function Rn(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function Mn(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),I(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function Ln(e,t){var n=Tt();try{for(var r=[].concat(e.interceptors_||[]),o=0,i=r.length;o<i&&((t=r[o](t))&&!t.type&&k(14),t);o++);return t}finally{jt(n)}}function Fn(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function In(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),I(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function Vn(e,t){var n=Tt(),r=e.changeListeners_;if(r){for(var o=0,i=(r=r.slice()).length;o<i;o++)r[o](t);jt(n)}}var Nn=Symbol("mobx-keys");var Dn="splice",Bn="update",Un={get:function(e,t){var n=e[he];return t===he?n:"length"===t?n.getArrayLength_():"string"!==typeof t||isNaN(t)?Z(Hn,t)?Hn[t]:e[t]:n.get_(parseInt(t))},set:function(e,t,n){var r=e[he];return"length"===t&&r.setArrayLength_(n),"symbol"===typeof t||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){k(15)}},zn=function(){function e(e,t,n,r){void 0===e&&(e="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=n,this.legacyMode_=r,this.atom_=new pe(e),this.enhancer_=function(e,n){return t(e,n,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.dehanceValues_=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},t.intercept_=function(e){return Mn(this,e)},t.observe_=function(e,t){return void 0===t&&(t=!1),t&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),In(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!==typeof e||isNaN(e)||e<0)&&k("Out of range: "+e);var t=this.values_.length;if(e!==t)if(e>t){for(var n=new Array(e-t),r=0;r<e-t;r++)n[r]=void 0;this.spliceWithArray_(t,0,n)}else this.spliceWithArray_(e,t-e)},t.updateArrayLength_=function(e,t){e!==this.lastKnownLength_&&k(16),this.lastKnownLength_+=t,this.legacyMode_&&t>0&&Or(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;this.atom_;var o=this.values_.length;if(void 0===e?e=0:e>o?e=o:e<0&&(e=Math.max(0,o+e)),t=1===arguments.length?o-e:void 0===t||null===t?0:Math.max(0,Math.min(t,o-e)),void 0===n&&(n=A),Rn(this)){var i=Ln(this,{object:this.proxy_,type:Dn,index:e,removedCount:t,added:n});if(!i)return A;t=i.removedCount,n=i.added}if(n=0===n.length?n:n.map(function(e){return r.enhancer_(e,void 0)}),this.legacyMode_){var a=n.length-t;this.updateArrayLength_(o,a)}var s=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,s),this.dehanceValues_(s)},t.spliceItemsIntoValues_=function(e,t,n){var r;if(n.length<1e4)return(r=this.values_).splice.apply(r,[e,t].concat(n));var o=this.values_.slice(e,e+t),i=this.values_.slice(e+t);this.values_.length+=n.length-t;for(var a=0;a<n.length;a++)this.values_[e+a]=n[a];for(var s=0;s<i.length;s++)this.values_[e+n.length+s]=i[s];return o},t.notifyArrayChildUpdate_=function(e,t,n){var r=!this.owned_&&!1,o=Fn(this),i=o||r?{observableKind:"array",object:this.proxy_,type:Bn,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;this.atom_.reportChanged(),o&&Vn(this,i)},t.notifyArraySplice_=function(e,t,n){var r=!this.owned_&&!1,o=Fn(this),i=o||r?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:Dn,index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom_.reportChanged(),o&&Vn(this,i)},t.get_=function(e){if(!(this.legacyMode_&&e>=this.values_.length))return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e]);console.warn("[mobx] Out of bounds read: "+e)},t.set_=function(e,t){var n=this.values_;if(this.legacyMode_&&e>n.length&&k(17,e,n.length),e<n.length){this.atom_;var r=n[e];if(Rn(this)){var o=Ln(this,{type:Bn,object:this.proxy_,index:e,newValue:t});if(!o)return;t=o.newValue}(t=this.enhancer_(t,r))!==r&&(n[e]=t,this.notifyArrayChildUpdate_(e,t,r))}else{for(var i=new Array(e+1-n.length),a=0;a<i.length-1;a++)i[a]=void 0;i[i.length-1]=t,this.spliceWithArray_(n.length,0,i)}},e}();function qn(e,t,n,r){return void 0===n&&(n="ObservableArray"),void 0===r&&(r=!1),F(),Pr(function(){var o=new zn(n,t,r,!1);H(o.values_,he,o);var i=new Proxy(o.values_,Un);return o.proxy_=i,e&&e.length&&o.spliceWithArray_(0,0,e),i})}var Hn={clear:function(){return this.splice(0)},replace:function(e){var t=this[he];return t.spliceWithArray_(0,t.values_.length,e)},toJSON:function(){return this.slice()},splice:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=this[he];switch(arguments.length){case 0:return[];case 1:return i.spliceWithArray_(e);case 2:return i.spliceWithArray_(e,t)}return i.spliceWithArray_(e,t,r)},spliceWithArray:function(e,t,n){return this[he].spliceWithArray_(e,t,n)},push:function(){for(var e=this[he],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(e.values_.length,0,n),e.values_.length},pop:function(){return this.splice(Math.max(this[he].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[he],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(0,0,n),e.values_.length},reverse:function(){return It.trackingDerivation&&k(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){It.trackingDerivation&&k(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[he],n=t.dehanceValues_(t.values_).indexOf(e);return n>-1&&(this.splice(n,1),!0)}};function $n(e,t){"function"===typeof Array.prototype[e]&&(Hn[e]=t(e))}function Wn(e){return function(){var t=this[he];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function Kn(e){return function(t,n){var r=this,o=this[he];return o.atom_.reportObserved(),o.dehanceValues_(o.values_)[e](function(e,o){return t.call(n,e,o,r)})}}function Gn(e){return function(){var t=this,n=this[he];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),o=arguments[0];return arguments[0]=function(e,n,r){return o(e,n,r,t)},r[e].apply(r,arguments)}}$n("at",Wn),$n("concat",Wn),$n("flat",Wn),$n("includes",Wn),$n("indexOf",Wn),$n("join",Wn),$n("lastIndexOf",Wn),$n("slice",Wn),$n("toString",Wn),$n("toLocaleString",Wn),$n("toSorted",Wn),$n("toSpliced",Wn),$n("with",Wn),$n("every",Kn),$n("filter",Kn),$n("find",Kn),$n("findIndex",Kn),$n("findLast",Kn),$n("findLastIndex",Kn),$n("flatMap",Kn),$n("forEach",Kn),$n("map",Kn),$n("some",Kn),$n("toReversed",Kn),$n("reduce",Gn),$n("reduceRight",Gn);var Xn=$("ObservableArrayAdministration",zn);function Yn(e){return B(e)&&Xn(e[he])}var Zn={},Jn="add",Qn="delete",er=function(){function e(e,t,n){var r=this;void 0===t&&(t=me),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[he]=Zn,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=n,N(Map)||k(18),Pr(function(){r.keysAtom_=ge("ObservableMap.keys()"),r.data_=new Map,r.hasMap_=new Map,e&&r.merge(e)})}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!It.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new gt(this.has_(e),ye,"ObservableMap.key?",!1);this.hasMap_.set(e,r),hn(r,function(){return t.hasMap_.delete(e)})}return n.get()},t.set=function(e,t){var n=this.has_(e);if(Rn(this)){var r=Ln(this,{type:n?Bn:Jn,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if((this.keysAtom_,Rn(this))&&!Ln(this,{type:Qn,object:this,name:e}))return!1;if(this.has_(e)){var n=Fn(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:Qn,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return jn(function(){var n;t.keysAtom_.reportChanged(),null==(n=t.hasMap_.get(e))||n.setNewValue_(!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)}),n&&Vn(this,r),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==It.UNCHANGED){var r=Fn(this),o=r?{observableKind:"map",debugObjectName:this.name_,type:Bn,object:this,oldValue:n.value_,name:e,newValue:t}:null;0,n.setNewValue_(t),r&&Vn(this,o)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,jn(function(){var r,o=new gt(t,n.enhancer_,"ObservableMap.key",!1);n.data_.set(e,o),t=o.value_,null==(r=n.hasMap_.get(e))||r.setNewValue_(!0),n.keysAtom_.reportChanged()});var r=Fn(this),o=r?{observableKind:"map",debugObjectName:this.name_,type:Jn,object:this,name:e,newValue:t}:null;r&&Vn(this,o)},t.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return nr({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:e.get(o)}}})},t.entries=function(){var e=this,t=this.keys();return nr({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:[o,e.get(o)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=oe(this);!(n=r()).done;){var o=n.value,i=o[0],a=o[1];e.call(t,a,i,this)}},t.merge=function(e){var t=this;return tr(e)&&(e=new Map(e)),jn(function(){U(e)?function(e){var t=Object.keys(e);if(!G)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter(function(t){return P.propertyIsEnumerable.call(e,t)})):t}(e).forEach(function(n){return t.set(n,e[n])}):Array.isArray(e)?e.forEach(function(e){var n=e[0],r=e[1];return t.set(n,r)}):W(e)?(function(e){var t=Object.getPrototypeOf(e),n=Object.getPrototypeOf(t);return null===Object.getPrototypeOf(n)}(e)||k(19,e),e.forEach(function(e,n){return t.set(n,e)})):null!==e&&void 0!==e&&k(20,e)}),this},t.clear=function(){var e=this;jn(function(){Ct(function(){for(var t,n=oe(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}})})},t.replace=function(e){var t=this;return jn(function(){for(var n,r=function(e){if(W(e)||tr(e))return e;if(Array.isArray(e))return new Map(e);if(U(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return k(21,e)}(e),o=new Map,i=!1,a=oe(t.data_.keys());!(n=a()).done;){var s=n.value;if(!r.has(s))if(t.delete(s))i=!0;else{var u=t.data_.get(s);o.set(s,u)}}for(var l,c=oe(r.entries());!(l=c()).done;){var f=l.value,d=f[0],h=f[1],p=t.data_.has(d);if(t.set(d,h),t.data_.has(d)){var v=t.data_.get(d);o.set(d,v),p||(i=!0)}}if(!i)if(t.data_.size!==o.size)t.keysAtom_.reportChanged();else for(var g=t.data_.keys(),b=o.keys(),m=g.next(),y=b.next();!m.done;){if(m.value!==y.value){t.keysAtom_.reportChanged();break}m=g.next(),y=b.next()}t.data_=o}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return In(this,e)},t.intercept_=function(e){return Mn(this,e)},re(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),tr=$("ObservableMap",er);function nr(e){return e[Symbol.toStringTag]="MapIterator",Vr(e)}var rr={},or=function(){function e(e,t,n){var r=this;void 0===t&&(t=me),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[he]=rr,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,N(Set)||k(22),this.enhancer_=function(e,r){return t(e,r,n)},Pr(function(){r.atom_=ge(r.name_),e&&r.replace(e)})}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.clear=function(){var e=this;jn(function(){Ct(function(){for(var t,n=oe(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}})})},t.forEach=function(e,t){for(var n,r=oe(this);!(n=r()).done;){var o=n.value;e.call(t,o,o,this)}},t.add=function(e){var t=this;if(this.atom_,Rn(this)){var n=Ln(this,{type:Jn,object:this,newValue:e});if(!n)return this;e=n.newValue}if(!this.has(e)){jn(function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()});var r=!1,o=Fn(this),i=o?{observableKind:"set",debugObjectName:this.name_,type:Jn,object:this,newValue:e}:null;r,o&&Vn(this,i)}return this},t.delete=function(e){var t=this;if(Rn(this)&&!Ln(this,{type:Qn,object:this,oldValue:e}))return!1;if(this.has(e)){var n=Fn(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:Qn,object:this,oldValue:e}:null;return jn(function(){t.atom_.reportChanged(),t.data_.delete(e)}),n&&Vn(this,r),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=this.values();return ar({next:function(){var t=e.next(),n=t.value,r=t.done;return r?{value:void 0,done:r}:{value:[n,n],done:r}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var e=this,t=this.data_.values();return ar({next:function(){var n=t.next(),r=n.value,o=n.done;return o?{value:void 0,done:o}:{value:e.dehanceValue_(r),done:o}}})},t.intersection=function(e){return K(e)&&!ir(e)?e.intersection(this):new Set(this).intersection(e)},t.union=function(e){return K(e)&&!ir(e)?e.union(this):new Set(this).union(e)},t.difference=function(e){return new Set(this).difference(e)},t.symmetricDifference=function(e){return K(e)&&!ir(e)?e.symmetricDifference(this):new Set(this).symmetricDifference(e)},t.isSubsetOf=function(e){return new Set(this).isSubsetOf(e)},t.isSupersetOf=function(e){return new Set(this).isSupersetOf(e)},t.isDisjointFrom=function(e){return K(e)&&!ir(e)?e.isDisjointFrom(this):new Set(this).isDisjointFrom(e)},t.replace=function(e){var t=this;return ir(e)&&(e=new Set(e)),jn(function(){Array.isArray(e)||K(e)?(t.clear(),e.forEach(function(e){return t.add(e)})):null!==e&&void 0!==e&&k("Cannot initialize set from "+e)}),this},t.observe_=function(e,t){return In(this,e)},t.intercept_=function(e){return Mn(this,e)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},re(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),ir=$("ObservableSet",or);function ar(e){return e[Symbol.toStringTag]="SetIterator",Vr(e)}var sr=Object.create(null),ur="remove",lr=function(){function e(e,t,n,r){void 0===t&&(t=new Map),void 0===r&&(r=Be),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=e,this.values_=t,this.name_=n,this.defaultAnnotation_=r,this.keysAtom_=new pe("ObservableObject.keys"),this.isPlainObject_=U(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(e){return this.values_.get(e).get()},t.setObservablePropValue_=function(e,t){var n=this.values_.get(e);if(n instanceof bt)return n.set(t),!0;if(Rn(this)){var r=Ln(this,{type:Bn,object:this.proxy_||this.target_,name:e,newValue:t});if(!r)return null;t=r.newValue}if((t=n.prepareNewValue_(t))!==It.UNCHANGED){var o=Fn(this),i=o?{type:Bn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;0,n.setNewValue_(t),o&&Vn(this,i)}return!0},t.get_=function(e){return It.trackingDerivation&&!Z(this.target_,e)&&this.has_(e),this.target_[e]},t.set_=function(e,t,n){return void 0===n&&(n=!1),Z(this.target_,e)?this.values_.has(e)?this.setObservablePropValue_(e,t):n?Reflect.set(this.target_,e,t):(this.target_[e]=t,!0):this.extend_(e,{value:t,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,n)},t.has_=function(e){if(!It.trackingDerivation)return e in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var t=this.pendingKeys_.get(e);return t||(t=new gt(e in this.target_,ye,"ObservableObject.key?",!1),this.pendingKeys_.set(e,t)),t.get()},t.make_=function(e,t){if(!0===t&&(t=this.defaultAnnotation_),!1!==t){if(vr(this,t,e),!(e in this.target_)){var n;if(null!=(n=this.target_[le])&&n[e])return;k(1,t.annotationType_,this.name_+"."+e.toString())}for(var r=this.target_;r&&r!==P;){var o=T(r,e);if(o){var i=t.make_(this,e,o,r);if(0===i)return;if(1===i)break}r=Object.getPrototypeOf(r)}pr(this,t,e)}},t.extend_=function(e,t,n,r){if(void 0===r&&(r=!1),!0===n&&(n=this.defaultAnnotation_),!1===n)return this.defineProperty_(e,t,r);vr(this,n,e);var o=n.extend_(this,e,t,r);return o&&pr(this,n,e),o},t.defineProperty_=function(e,t,n){void 0===n&&(n=!1),this.keysAtom_;try{Bt();var r=this.delete_(e);if(!r)return r;if(Rn(this)){var o=Ln(this,{object:this.proxy_||this.target_,name:e,type:Jn,newValue:t.value});if(!o)return null;var i=o.newValue;t.value!==i&&(t=ie({},t,{value:i}))}if(n){if(!Reflect.defineProperty(this.target_,e,t))return!1}else j(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{Ut()}return!0},t.defineObservableProperty_=function(e,t,n,r){void 0===r&&(r=!1),this.keysAtom_;try{Bt();var o=this.delete_(e);if(!o)return o;if(Rn(this)){var i=Ln(this,{object:this.proxy_||this.target_,name:e,type:Jn,newValue:t});if(!i)return null;t=i.newValue}var a=dr(e),s={configurable:!It.safeDescriptors||this.isPlainObject_,enumerable:!0,get:a.get,set:a.set};if(r){if(!Reflect.defineProperty(this.target_,e,s))return!1}else j(this.target_,e,s);var u=new gt(t,n,"ObservableObject.key",!1);this.values_.set(e,u),this.notifyPropertyAddition_(e,u.value_)}finally{Ut()}return!0},t.defineComputedProperty_=function(e,t,n){void 0===n&&(n=!1),this.keysAtom_;try{Bt();var r=this.delete_(e);if(!r)return r;if(Rn(this))if(!Ln(this,{object:this.proxy_||this.target_,name:e,type:Jn,newValue:void 0}))return null;t.name||(t.name="ObservableObject.key"),t.context=this.proxy_||this.target_;var o=dr(e),i={configurable:!It.safeDescriptors||this.isPlainObject_,enumerable:!1,get:o.get,set:o.set};if(n){if(!Reflect.defineProperty(this.target_,e,i))return!1}else j(this.target_,e,i);this.values_.set(e,new bt(t)),this.notifyPropertyAddition_(e,void 0)}finally{Ut()}return!0},t.delete_=function(e,t){if(void 0===t&&(t=!1),this.keysAtom_,!Z(this.target_,e))return!0;if(Rn(this)&&!Ln(this,{object:this.proxy_||this.target_,name:e,type:ur}))return null;try{var n;Bt();var r,o=Fn(this),i=this.values_.get(e),a=void 0;if(!i&&o)a=null==(r=T(this.target_,e))?void 0:r.value;if(t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if(i&&(this.values_.delete(e),i instanceof gt&&(a=i.value_),qt(i)),this.keysAtom_.reportChanged(),null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(e in this.target_),o){var s={type:ur,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:a,name:e};0,o&&Vn(this,s)}}finally{Ut()}return!0},t.observe_=function(e,t){return In(this,e)},t.intercept_=function(e){return Mn(this,e)},t.notifyPropertyAddition_=function(e,t){var n,r=Fn(this);if(r){var o=r?{type:Jn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;0,r&&Vn(this,o)}null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),X(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function cr(e,t){var n;if(Z(e,he))return e;var r=null!=(n=null==t?void 0:t.name)?n:"ObservableObject",o=new lr(e,new Map,String(r),function(e){var t;return e?null!=(t=e.defaultDecorator)?t:Ue(e):void 0}(t));return q(e,he,o),e}var fr=$("ObservableObjectAdministration",lr);function dr(e){return sr[e]||(sr[e]={get:function(){return this[he].getObservablePropValue_(e)},set:function(t){return this[he].setObservablePropValue_(e,t)}})}function hr(e){return!!B(e)&&fr(e[he])}function pr(e,t,n){var r;null==(r=e.target_[le])||delete r[n]}function vr(e,t,n){}var gr,br,mr=xr(0),yr=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,!1===e}(),_r=0,wr=function(){};gr=wr,br=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(gr.prototype,br):void 0!==gr.prototype.__proto__?gr.prototype.__proto__=br:gr.prototype=br;var Sr=function(e){function t(t,n,r,o){var i;return void 0===r&&(r="ObservableArray"),void 0===o&&(o=!1),i=e.call(this)||this,Pr(function(){var e=new zn(r,n,o,!0);e.proxy_=i,H(i,he,e),t&&t.length&&i.spliceWithArray(0,0,t),yr&&Object.defineProperty(i,"0",mr)}),i}ae(t,e);var n=t.prototype;return n.concat=function(){this[he].atom_.reportObserved();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.prototype.concat.apply(this.slice(),t.map(function(e){return Yn(e)?e.slice():e}))},n[Symbol.iterator]=function(){var e=this,t=0;return Vr({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},re(t,[{key:"length",get:function(){return this[he].getArrayLength_()},set:function(e){this[he].setArrayLength_(e)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(wr);function xr(e){return{enumerable:!1,configurable:!0,get:function(){return this[he].get_(e)},set:function(t){this[he].set_(e,t)}}}function kr(e){j(Sr.prototype,""+e,xr(e))}function Or(e){if(e>_r){for(var t=_r;t<e+100;t++)kr(t);_r=e}}function Er(e,t,n){return new Sr(e,t,n)}function Cr(e,t){if("object"===typeof e&&null!==e){if(Yn(e))return void 0!==t&&k(23),e[he].atom_;if(ir(e))return e.atom_;if(tr(e)){if(void 0===t)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||k(25,t,jr(e)),n}if(hr(e)){if(!t)return k(26);var r=e[he].values_.get(t);return r||k(27,t,jr(e)),r}if(ve(e)||_t(e)||Xt(e))return e}else if(N(e)&&Xt(e[he]))return e[he];k(28)}function Tr(e,t){return e||k(29),void 0!==t?Tr(Cr(e,t)):ve(e)||_t(e)||Xt(e)||tr(e)||ir(e)?e:e[he]?e[he]:void k(24,e)}function jr(e,t){var n;if(void 0!==t)n=Cr(e,t);else{if(sn(e))return e.name;n=hr(e)||tr(e)||ir(e)?Tr(e):Cr(e)}return n.name_}function Pr(e){var t=Tt(),n=pt(!0);Bt();try{return e()}finally{Ut(),vt(n),jt(t)}}Object.entries(Hn).forEach(function(e){var t=e[0],n=e[1];"concat"!==t&&q(Sr.prototype,t,n)}),Or(1e3);var Ar,Rr=P.toString;function Mr(e,t,n){return void 0===n&&(n=-1),Lr(e,t,n)}function Lr(e,t,n,r,o){if(e===t)return 0!==e||1/e===1/t;if(null==e||null==t)return!1;if(e!==e)return t!==t;var i=typeof e;if("function"!==i&&"object"!==i&&"object"!=typeof t)return!1;var a=Rr.call(e);if(a!==Rr.call(t))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e===""+t;case"[object Number]":return+e!==+e?+t!==+t:0===+e?1/+e===1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t;case"[object Symbol]":return"undefined"!==typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++}e=Fr(e),t=Fr(t);var s="[object Array]"===a;if(!s){if("object"!=typeof e||"object"!=typeof t)return!1;var u=e.constructor,l=t.constructor;if(u!==l&&!(N(u)&&u instanceof u&&N(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),o=o||[];for(var c=(r=r||[]).length;c--;)if(r[c]===e)return o[c]===t;if(r.push(e),o.push(t),s){if((c=e.length)!==t.length)return!1;for(;c--;)if(!Lr(e[c],t[c],n-1,r,o))return!1}else{var f=Object.keys(e),d=f.length;if(Object.keys(t).length!==d)return!1;for(var h=0;h<d;h++){var p=f[h];if(!Z(t,p)||!Lr(e[p],t[p],n-1,r,o))return!1}}return r.pop(),o.pop(),!0}function Fr(e){return Yn(e)?e.slice():W(e)||tr(e)||K(e)||ir(e)?Array.from(e.entries()):e}var Ir=(null==(Ar=E().Iterator)?void 0:Ar.prototype)||{};function Vr(e){return e[Symbol.iterator]=Nr,Object.assign(Object.create(Ir),e)}function Nr(){return this}["Symbol","Map","Set"].forEach(function(e){"undefined"===typeof E()[e]&&k("MobX requires global '"+e+"' to be available or polyfilled")}),"object"===typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}},extras:{getDebugName:jr},$mobx:he});var Dr=n(553);class Br{constructor(){this.emitter=new Dr.EventEmitter,this.bufferMap=new Map}getBufferValue(e){return this.bufferMap.get(e)}setBufferValue(e,t){this.bufferMap.set(e,t)}on(e,t){const n=this.getBufferValue(e);return n&&t(n),this.emitter.on(e,t),()=>{this.emitter.off(e,t)}}once(e,t){const n=this.getBufferValue(e);return n?(t(n),()=>{}):(this.emitter.once(e,t),()=>{this.emitter.off(e,t)})}emit(e,t){arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&this.setBufferValue(e,t),this.emitter.emit(e,t)}resetReplayValue(e){this.bufferMap.delete(e)}onSubscriber(e,t){const n=(n,r)=>{n===e&&t(r)};return this.emitter.on("newListener",n),()=>{this.emitter.off("newListener",n)}}}const Ur=new class{constructor(){var e,t,n;this.event=new Br,this.playing=!0,U(e=this)?bn(e,e,t,n):Pr(function(){var r=cr(e,n)[he];if(!e[Nn]){var o=Object.getPrototypeOf(e),i=new Set([].concat(X(e),X(o)));i.delete("constructor"),i.delete(he),q(o,Nn,i)}e[Nn].forEach(function(e){return r.make_(e,!t||!(e in t)||t[e])})})}play(){var e;null===(e=window.ReactKrpanoActionProxy)||void 0===e||e.call("plugin[video].play()")}pause(){var e;null===(e=window.ReactKrpanoActionProxy)||void 0===e||e.call("plugin[video].pause()")}};window.onVideoSceneReady=()=>{Ur.event.emit("Event.videoScene.ready",void 0)},window.onVideoScenePlay=()=>{Ur.playing=!0,Ur.event.emit("Event.videoScene.play",void 0)},window.onVideoScenePaused=()=>{Ur.playing=!1,Ur.event.emit("Event.videoScene.pause",void 0)},window.onVideoSceneComplete=()=>{Ur.event.emit("Event.videoScene.complete",void 0)},window.onVideoSceneError=e=>{Ur.event.emit("Event.videoScene.error",e)};const zr={keep:!0,devices:"webgl"},qr={name:"WebVR",keep:!0,devices:"html5","multireslock.desktop":!0,"multireslock.mobile.or.tablet":!1,mobilevr_support:!0,mobilevr_fake_support:!0},Hr=(0,a.memo)(e=>{var{url:t}=e,n=r(e,["url"]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Jr,{url:t}),(0,i.jsx)(Qr,Object.assign({name:"WebVR"},Object.assign(Object.assign({},_?zr:qr),n)))]})}),$r=(0,a.memo)(e=>{var{name:t}=e,n=r(e,["name"]);const o=(0,a.useContext)(u);return(0,a.useEffect)(()=>(null===o||void 0===o||o.addLayer(t,{}),()=>{null===o||void 0===o||o.removeLayer(t)}),[]),(0,a.useEffect)(()=>{null===o||void 0===o||o.setTag("layer",t,Object.assign({},n),!0)},[o,t,n]),(0,i.jsx)("div",{className:"layer"})}),Wr=e=>{var{name:t,keep:n}=e,o=r(e,["name","keep"]);const s=(0,a.useContext)(u),l="events[".concat(t||"__GlobalEvents","]");return(0,a.useEffect)(()=>(null===s||void 0===s||s.bindEvents(l,Object.assign({},o)),()=>{null===s||void 0===s||s.unbindEvents(l,Object.assign({},o))}),[s,o]),(0,a.useEffect)(()=>{null===s||void 0===s||s.setTag("events",t||null,Object.assign(Object.assign({},m(Object.assign({},o),e=>"js(".concat(s.name,".fire(").concat(e,",").concat(l,"))"))),{keep:n}),!0)},[t,s]),(0,i.jsx)("div",{className:"events"})},Kr=e=>{var{className:t,style:n,children:c,currentScene:f,target:d="krpano",webvrUrl:h,webvrConfig:p,littlePlanetIntro:g,onReady:b}=e,m=r(e,["className","style","children","currentScene","target","webvrUrl","webvrConfig","littlePlanetIntro","onReady"]);const[y,_]=(0,a.useState)(null),S=function(e){const t=(0,a.useRef)(e);return(0,a.useLayoutEffect)(()=>{t.current=e},[e]),t}(b),x=(0,a.useCallback)(e=>o(void 0,void 0,void 0,function*(){const t=new w(e);window[t.name]=t,t.littlePlanetIntro=null!==g&&void 0!==g&&g,_(t),S.current&&S.current(t)}),[S]);(0,a.useEffect)(()=>{y&&f&&y.tagAction.waitIncludeLoaded(!0).then(()=>{y.loadScene(f),y.littlePlanetIntro&&y.call("skin_setup_littleplanetintro()"),y.littlePlanetIntro=!1})},[y,f]),(0,a.useEffect)(()=>{y&&k(y)},[y]);const k=e=>o(void 0,void 0,void 0,function*(){if(e.tagAction.syncTagStack.length){const t=(new XMLSerializer).serializeToString(yield e.tagAction.createSyncTags());e.call(v("loadxml",t))}e.tagAction.syncTagsLoaded=!0,e.tagAction.queue.flushResolve(!0)});return function(e){const t=(0,a.useRef)(!1);(0,a.useEffect)(()=>{t.current||(t.current=!0,e())},[])}(()=>{(()=>{const e={html5:"auto",xml:null,mobilescale:1};if("function"!==typeof window.embedpano)throw new Error("Krpano required");window.embedpano(Object.assign(Object.assign(Object.assign({},e),{target:d,onready:x}),m))})()}),(0,i.jsx)(u.Provider,{value:y,children:(0,i.jsxs)(s.Provider,{value:f||null,children:[h&&(0,i.jsx)(Hr,Object.assign({url:h},p)),(0,i.jsx)("div",{id:d,className:t,style:n,children:y?c:null}),(0,i.jsx)(Wr,{onNewPano:()=>{null===y||void 0===y||y.set("layer[skin_loadingtext].visible",!0)},onRemovePano:()=>{null===y||void 0===y||y.set("layer[skin_loadingtext].visible",!0)},onLoadComplete:()=>{setTimeout(()=>{null===y||void 0===y||y.set("layer[skin_loadingtext].visible",!1)},200)}}),(0,i.jsx)($r,{name:"skin_loadingtext",type:"text",align:"center",x:5,y:-5,keep:!0,html:"\u52a0\u8f7d\u4e2d...",visible:!1,background:!1,border:!1,enabled:!1,css:"color:#FFFFFF; font-family:Arial; text-align:center; font-style:italic; font-size:22px;"}),(0,i.jsx)(l,{name:"skin_setup_littleplanetintro",content:"\n copy(lp_scene, xml.scene);\n copy(lp_hlookat, view.hlookat);\n copy(lp_vlookat, view.vlookat);\n copy(lp_fov, view.fov);\n copy(lp_fovmax, view.fovmax);\n copy(lp_limitview, view.limitview);\n copy(lp_usercontrol, control.usercontrol);\n set(view.fovmax, 170);\n set(view.limitview, lookto);\n set(view.vlookatmin, 90);\n set(view.vlookatmax, 90);\n lookat(calc(lp_hlookat - 180), 90, 150, 1, 0, 0);\n set(events[lp_events].onloadcomplete,\n delayedcall(0.5,\n if(lp_scene === xml.scene,\n set(control.usercontrol, off);\n copy(view.limitview, lp_limitview);\n set(view.vlookatmin, null);\n set(view.vlookatmax, null);\n tween(view.hlookat|view.vlookat|view.fov|view.distortion, calc('' + lp_hlookat + '|' + lp_vlookat + '|' + lp_fov + '|' + 0.0),\n 3.0, easeOutQuad,\n set(control.usercontrol, get(lp_usercontrol));\n tween(view.fovmax, get(lp_fovmax));\n );\n );\n );\n );\n "}),(0,i.jsx)(l,{name:"draggable_hotspot",content:"\n asyncloop(pressed, screentosphere(mouse.stagex, mouse.stagey, ath, atv); js(draggbleHotspotEvent(get(ath), get(atv))));\n "})]})})},Gr=e=>{let{name:t,previewUrl:n,imageTagAttributes:o,images:l=[],content:c,children:f}=e;const d=(0,a.useContext)(u),h=(0,a.useContext)(s);return(0,a.useEffect)(()=>{const e={tag:"image",attrs:o,children:[]};if(l.length>1)e.children.push(...l.map(e=>{var{tiledImageWidth:t,tiledImageHeight:n}=e,i=r(e,["tiledImageWidth","tiledImageHeight"]);return{tag:"level",attrs:{tiledImageWidth:t,tiledImageHeight:n},children:[{tag:o.type,attrs:Object.assign({},i)}]}}));else if(1===l.length){const t=r(l[0],[]);e.children.push({tag:o.type,attrs:Object.assign({},t)})}return null===d||void 0===d||d.setTag("scene",t,{content:c||"".concat(n?'<preview url="'.concat(n,'" />'):"").concat(l.length>0?g(e):"")}),()=>{null===d||void 0===d||d.removeScene(t)}},[d,t,l,o,c,n]),(0,i.jsx)("div",{className:"scene",children:h===t?f:null})},Xr=(0,a.memo)(e=>{var{children:t}=e,n=r(e,["children"]);const o=(0,a.useContext)(u);return(0,a.useEffect)(()=>{o&&(o.littlePlanetIntro?(null===o||void 0===o||o.setTag("view",null,Object.assign({},n)),setTimeout(()=>{null===o||void 0===o||o.setTag("view",null,Object.assign({},n))},4e3)):null===o||void 0===o||o.setTag("view",null,Object.assign({},n),!0))},[o,n]),(0,i.jsx)("div",{className:"view",children:t})}),Yr=(0,a.memo)(e=>{var{name:t}=e,n=r(e,["name"]);const o="hotspot[".concat(t,"]"),s=(0,a.useContext)(u),l=(0,a.useMemo)(()=>{const{scale:e=.5,children:t}=n,o=r(n,["scale","children"]);return Object.assign({scale:e,html:"text"===o.type?y(t):null,onOver:v("tween","scale",e+.05),onOut:v("tween","scale",e)},o)},[n]);return(0,a.useEffect)(()=>{const e=b(Object.assign({},l),(e,t)=>e.startsWith("on")&&"function"===typeof t?{[e]:t}:{});return null===s||void 0===s||s.bindEvents(o,e),null===s||void 0===s||s.addHotspot(t,{}),()=>{null===s||void 0===s||s.unbindEvents(o,e),null===s||void 0===s||s.removeHotspot(t)}},[]),(0,a.useEffect)(()=>{s&&s.setTag("hotspot",t,Object.assign(Object.assign({},l),m(Object.assign({},l),e=>"js(".concat(s.name,".fire(").concat(e,",").concat(o,"))"))),!0)},[s,t,l]),(0,i.jsx)("div",{className:"hotspot"})}),Zr=(0,a.memo)(e=>{const t=(0,a.useContext)(u);return(0,a.useEffect)(()=>{const n=Object.assign({waittime:2,speed:10},e);null===t||void 0===t||t.setTag("autorotate",null,n)},[t,e]),(0,i.jsx)("div",{className:"autorotate"})}),Jr=e=>{let{url:t}=e;const n=(0,a.useContext)(u);return(0,a.useEffect)(()=>{n&&(_?n.call(v("includexml",t)):n.tagAction.pushSyncTag("include",{url:t}))},[n]),(0,i.jsx)(i.Fragment,{})},Qr=e=>{var{name:t}=e,n=r(e,["name"]);const o=(0,a.useContext)(u);return(0,a.useEffect)(()=>{if(o){if(_){const e=[];for(const t in n)e.push("".concat(t,"=").concat(n[t]));return o.call(v("addplugin",t,...e)),()=>{o.call(v("removeplugin",t))}}o.tagAction.pushSyncTag("plugin",Object.assign(Object.assign({},n),{name:t}))}},[o,t,n]),(0,i.jsx)(i.Fragment,{})};if(!a.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!function(e,t,n){return Pr(function(){var r=cr(e,n)[he];null!=t||(t=function(e){return Z(e,le)||q(e,le,ie({},e[le])),e[le]}(e)),X(t).forEach(function(e){return r.make_(e,t[e])})}),e})throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");var eo=n(950);function to(e){e()}function no(e){return mn(e)}var ro=!1;function oo(){return ro}var io,ao,so=function(){function e(e){var t=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(e){void 0===e&&(e=1e4),clearTimeout(t.sweepTimeout),t.sweepTimeout=void 0;var n=Date.now();t.registrations.forEach(function(r,o){n-r.registeredAt>=e&&(t.finalize(r.value),t.registrations.delete(o))}),t.registrations.size>0&&t.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){t.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){this.registrations.set(n,{value:t,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.registrations.delete(e)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){void 0===this.sweepTimeout&&(this.sweepTimeout=setTimeout(this.sweep,1e4))}}),e}(),uo=new("undefined"!==typeof FinalizationRegistry?FinalizationRegistry:so)(function(e){var t;null===(t=e.reaction)||void 0===t||t.dispose(),e.reaction=null}),lo=n(461);function co(e){e.reaction=new Ht("observer".concat(e.name),function(){var t;e.stateVersion=Symbol(),null===(t=e.onStoreChange)||void 0===t||t.call(e)})}function fo(e,t){if(void 0===t&&(t="observed"),oo())return e();var n=a.useRef(null);if(!n.current){var r={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(e){return uo.unregister(r),r.onStoreChange=e,r.reaction||(co(r),r.stateVersion=Symbol()),function(){var e;r.onStoreChange=null,null===(e=r.reaction)||void 0===e||e.dispose(),r.reaction=null}},getSnapshot:function(){return r.stateVersion}};n.current=r}var o,i,s=n.current;if(s.reaction||(co(s),uo.register(n,s,s)),a.useDebugValue(s.reaction,no),(0,lo.useSyncExternalStore)(s.subscribe,s.getSnapshot,s.getSnapshot),s.reaction.track(function(){try{o=e()}catch(t){i=t}}),i)throw i;return o}var ho="function"===typeof Symbol&&Symbol.for,po=null!==(ao=null===(io=Object.getOwnPropertyDescriptor(function(){},"name"))||void 0===io?void 0:io.configurable)&&void 0!==ao&&ao,vo=ho?Symbol.for("react.forward_ref"):"function"===typeof a.forwardRef&&(0,a.forwardRef)(function(e){return null}).$$typeof,go=ho?Symbol.for("react.memo"):"function"===typeof a.memo&&(0,a.memo)(function(e){return null}).$$typeof;function bo(e,t){var n;if(go&&e.$$typeof===go)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");if(oo())return e;var r=null!==(n=null===t||void 0===t?void 0:t.forwardRef)&&void 0!==n&&n,o=e,i=e.displayName||e.name;if(vo&&e.$$typeof===vo&&(r=!0,"function"!==typeof(o=e.render)))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var s,u,l=function(e,t){return fo(function(){return o(e,t)},i)};return l.displayName=e.displayName,po&&Object.defineProperty(l,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(l.contextTypes=e.contextTypes),r&&(l=(0,a.forwardRef)(l)),l=(0,a.memo)(l),s=e,u=l,Object.keys(s).forEach(function(e){yo[e]||Object.defineProperty(u,e,Object.getOwnPropertyDescriptor(s,e))}),l}var mo,yo={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};(function(e){e||(e=to),gn({reactionScheduler:e})})(eo.unstable_batchedUpdates);mo=uo.finalizeAllImmediately;function _o(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}var wo=Symbol("patchMixins"),So=Symbol("patchedDefinition");function xo(e,t){for(var n=this,r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];t.locks++;try{var a;return void 0!==e&&null!==e&&(a=e.apply(this,o)),a}finally{t.locks--,0===t.locks&&t.methods.forEach(function(e){e.apply(n,o)})}}function ko(e,t){return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];xo.call.apply(xo,[this,e,t].concat(r))}}function Oo(e,t,n){var r=function(e,t){var n=e[wo]=e[wo]||{},r=n[t]=n[t]||{};return r.locks=r.locks||0,r.methods=r.methods||[],r}(e,t);r.methods.indexOf(n)<0&&r.methods.push(n);var o=Object.getOwnPropertyDescriptor(e,t);if(!o||!o[So]){var i=e[t],a=Eo(e,t,o?o.enumerable:void 0,r,i);Object.defineProperty(e,t,a)}}function Eo(e,t,n,r,o){var i,a=ko(o,r);return(i={})[So]=!0,i.get=function(){return a},i.set=function(o){if(this===e)a=ko(o,r);else{var i=Eo(this,t,n,r,o);Object.defineProperty(this,t,i)}},i.configurable=!0,i.enumerable=n,i}var Co=Symbol("ObserverAdministration"),To=Symbol("isMobXReactObserver");function jo(e){var t;return null!=(t=e[Co])?t:e[Co]={reaction:null,mounted:!1,reactionInvalidatedBeforeMount:!1,forceUpdate:null,name:Po(e.constructor),state:void 0,props:void 0,context:void 0}}function Po(e){return e.displayName||e.name||"<component>"}function Ao(e){var t=e.bind(this),n=jo(this);return function(){n.reaction||(n.reaction=function(t){return new Ht(t.name+".render()",function(){if(t.mounted)try{null==t.forceUpdate||t.forceUpdate()}catch(e){var n;null==(n=t.reaction)||n.dispose(),t.reaction=null}else t.reactionInvalidatedBeforeMount=!0})}(n),n.mounted||uo.register(this,n,this));var e=void 0,r=void 0;if(n.reaction.track(function(){try{r=ht(!1,t)}catch(n){e=n}}),e)throw e;return r}}function Ro(e,t){return oo()&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==t||!function(e,t){if(_o(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.hasOwnProperty.call(t,n[o])||!_o(e[n[o]],t[n[o]]))return!1;return!0}(this.props,e)}function Mo(e,t){if(t&&"class"!==t.kind)throw new Error("The @observer decorator can be used on classes only");return!0===e.isMobxInjector&&console.warn("Mobx observer: You are trying to use `observer` on a component that already has `inject`. Please apply `observer` before applying `inject`"),Object.prototype.isPrototypeOf.call(a.Component,e)||Object.prototype.isPrototypeOf.call(a.PureComponent,e)?function(e){var t=e.prototype;if(e[To]){var n=Po(e);throw new Error("The provided component class ("+n+") has already been declared as an observer component.")}if(e[To]=!0,t.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==a.PureComponent)if(t.shouldComponentUpdate){if(t.shouldComponentUpdate!==Ro)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else t.shouldComponentUpdate=Ro;var r=t.render;if("function"!==typeof r){var o=Po(e);throw new Error("[mobx-react] class component ("+o+") is missing `render` method.\n`observer` requires `render` being a function defined on prototype.\n`render = () => {}` or `render = function() {}` is not supported.")}t.render=function(){return Object.defineProperty(this,"render",{configurable:!1,writable:!1,value:oo()?r:Ao.call(this,r)}),this.render()};var i=t.componentDidMount;return t.componentDidMount=function(){var e=this,t=jo(this);return t.mounted=!0,uo.unregister(this),t.forceUpdate=function(){return e.forceUpdate()},t.reaction&&!t.reactionInvalidatedBeforeMount||t.forceUpdate(),null==i?void 0:i.apply(this,arguments)},Oo(t,"componentWillUnmount",function(){var e;if(!oo()){var t=jo(this);null==(e=t.reaction)||e.dispose(),t.reaction=null,t.forceUpdate=null,t.mounted=!1,t.reactionInvalidatedBeforeMount=!1}}),e}(e):bo(e)}a.version.split(".")[0];if(!a.Component)throw new Error("mobx-react requires React to be available");if(!nt)throw new Error("mobx-react requires mobx to be available");const Lo={loop:!0,volume:0};Mo(e=>{let{name:t,videointerfaceXmlUrl:n,videoplayerUrl:r,sourceList:o,playRes:s,pluginAttrs:l,children:c,onVisibility:f}=e;const d=(0,a.useContext)(u),h=Ur,p=()=>{"hidden"===document.visibilityState&&h.pause(),null===f||void 0===f||f()};return(0,a.useEffect)(()=>(window.addEventListener("visibilitychange",p),()=>{window.removeEventListener("visibilitychange",p)}),[]),(0,a.useEffect)(()=>{if(!d)return;const e=(e=>{let t=[];return Object.keys(e).forEach(n=>{t.push("".concat(n,'="').concat(e[n],'"'))}),t.join(" ")})(Object.assign({},Lo,l,{pausedonstart:!h.playing}));d.tagAction.pushSyncTag("scene",{name:t},'\n \x3c!-- include the videoplayer interface / skin --\x3e\n <include url="'.concat(n,'" />\n\n \x3c!-- include the videoplayer plugin --\x3e\n <plugin ').concat(e,' name="video"\n url="').concat(r,'"\n onloaded="add_video_sources();"\n />\n\n \x3c!-- use the videoplayer plugin as panoramic image source --\x3e\n <image>\n <sphere url="plugin:video" />\n </image>\n\n <action name="add_video_sources" >\n ').concat((()=>{let e="";return o.forEach(t=>{e+="videointerface_addsource('".concat(t.res,"', '").concat(t.url,"', '").concat(t.poster,"');")}),e})(),"\n\n videointerface_play('").concat(s,"');\n </action>\n "))},[d]),(0,i.jsx)("div",{className:"video-scene",children:c})})},553:e=>{var t,n="object"===typeof Reflect?Reflect:null,r=n&&"function"===typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"===typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!==e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise(function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"===typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}v(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"===typeof e.on&&v(e,"error",t,n)}(e,o,{once:!0})})},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){var o,i,a,l;if(s(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"===typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=u(e))>0&&a.length>o&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,l=c,console&&console.warn&&console.warn(l)}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=c.bind(r);return o.listener=n,r.wrapFn=o,o}function d(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"===typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):p(o,o.length)}function h(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function v(e,t,n,r){if("function"===typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!==typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function o(i){r.once&&e.removeEventListener(t,o),n(i)})}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!==typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return u(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"===typeof u)r(u,this,t);else{var l=u.length,c=p(u,l);for(n=0;n<l;++n)r(c[n],this,t)}return!0},i.prototype.addListener=function(e,t){return l(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return l(this,e,t,!0)},i.prototype.once=function(e,t){return s(t),this.on(e,f(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,f(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,o,i,a;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!==typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"===typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return d(this,e,!0)},i.prototype.rawListeners=function(e){return d(this,e,!1)},i.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},i.prototype.listenerCount=h,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},556:(e,t,n)=>{var r=n(43);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=null,a=0;function s(e,t){if(0!==t.length)if(512<t.length)0<a&&(e.enqueue(new Uint8Array(i.buffer,0,a)),i=new Uint8Array(512),a=0),e.enqueue(t);else{var n=i.length-a;n<t.length&&(0===n?e.enqueue(i):(i.set(t.subarray(0,n),a),e.enqueue(i),t=t.subarray(n)),i=new Uint8Array(512),a=0),i.set(t,a),a+=t.length}}function u(e,t){return s(e,t),!0}function l(e){i&&0<a&&(e.enqueue(new Uint8Array(i.buffer,0,a)),i=null,a=0)}var c=new TextEncoder;function f(e){return c.encode(e)}function d(e){return c.encode(e)}function h(e,t){"function"===typeof e.error?e.error(t):e.close()}var p=Object.prototype.hasOwnProperty,v=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,g={},b={};function m(e){return!!p.call(b,e)||!p.call(g,e)&&(v.test(e)?b[e]=!0:(g[e]=!0,!1))}function y(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){_[e]=new y(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];_[t]=new y(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){_[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){_[e]=new y(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){_[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){_[e]=new y(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){_[e]=new y(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){_[e]=new y(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){_[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)});var w=/[\-:]([a-z])/g;function S(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(w,S);_[t]=new y(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(w,S);_[t]=new y(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(w,S);_[t]=new y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){_[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)}),_.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){_[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)});var x={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},k=["Webkit","ms","Moz","O"];Object.keys(x).forEach(function(e){k.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),x[t]=x[e]})});var O=/["'&<>]/;function E(e){if("boolean"===typeof e||"number"===typeof e)return""+e;e=""+e;var t=O.exec(e);if(t){var n,r="",o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}var C=/([A-Z])/g,T=/^ms-/,j=Array.isArray,P=d("<script>"),A=d("<\/script>"),R=d('<script src="'),M=d('<script type="module" src="'),L=d('" async=""><\/script>'),F=/(<\/|<)(s)(cript)/gi;function I(e,t,n,r){return t+("s"===n?"\\u0073":"\\u0053")+r}function V(e,t){return{insertionMode:e,selectedValue:t}}var N=d("\x3c!-- --\x3e");function D(e,t,n,r){return""===t?r:(r&&e.push(N),e.push(f(E(t))),!0)}var B=new Map,U=d(' style="'),z=d(":"),q=d(";");function H(e,t,n){if("object"!==typeof n)throw Error(o(62));for(var r in t=!0,n)if(p.call(n,r)){var i=n[r];if(null!=i&&"boolean"!==typeof i&&""!==i){if(0===r.indexOf("--")){var a=f(E(r));i=f(E((""+i).trim()))}else{a=r;var s=B.get(a);void 0!==s||(s=d(E(a.replace(C,"-$1").toLowerCase().replace(T,"-ms-"))),B.set(a,s)),a=s,i="number"===typeof i?0===i||p.call(x,r)?f(""+i):f(i+"px"):f(E((""+i).trim()))}t?(t=!1,e.push(U,a,z,i)):e.push(q,a,z,i)}}t||e.push(K)}var $=d(" "),W=d('="'),K=d('"'),G=d('=""');function X(e,t,n,r){switch(n){case"style":return void H(e,t,r);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=_.hasOwnProperty(n)?_[n]:null)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=f(t.attributeName),t.type){case 3:r&&e.push($,n,G);break;case 4:!0===r?e.push($,n,G):!1!==r&&e.push($,n,W,f(E(r)),K);break;case 5:isNaN(r)||e.push($,n,W,f(E(r)),K);break;case 6:!isNaN(r)&&1<=r&&e.push($,n,W,f(E(r)),K);break;default:t.sanitizeURL&&(r=""+r),e.push($,n,W,f(E(r)),K)}}else if(m(n)){switch(typeof r){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push($,f(n),W,f(E(r)),K)}}var Y=d(">"),Z=d("/>");function J(e,t,n){if(null!=t){if(null!=n)throw Error(o(60));if("object"!==typeof t||!("__html"in t))throw Error(o(61));null!==(t=t.__html)&&void 0!==t&&e.push(f(""+t))}}var Q=d(' selected=""');function ee(e,t,n,r){e.push(oe(n));var o,i=n=null;for(o in t)if(p.call(t,o)){var a=t[o];if(null!=a)switch(o){case"children":n=a;break;case"dangerouslySetInnerHTML":i=a;break;default:X(e,r,o,a)}}return e.push(Y),J(e,i,n),"string"===typeof n?(e.push(f(E(n))),null):n}var te=d("\n"),ne=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,re=new Map;function oe(e){var t=re.get(e);if(void 0===t){if(!ne.test(e))throw Error(o(65,e));t=d("<"+e),re.set(e,t)}return t}var ie=d("<!DOCTYPE html>");function ae(e,t,n,i,a){switch(t){case"select":e.push(oe("select"));var s=null,u=null;for(h in n)if(p.call(n,h)){var l=n[h];if(null!=l)switch(h){case"children":s=l;break;case"dangerouslySetInnerHTML":u=l;break;case"defaultValue":case"value":break;default:X(e,i,h,l)}}return e.push(Y),J(e,u,s),s;case"option":u=a.selectedValue,e.push(oe("option"));var c=l=null,d=null,h=null;for(s in n)if(p.call(n,s)){var v=n[s];if(null!=v)switch(s){case"children":l=v;break;case"selected":d=v;break;case"dangerouslySetInnerHTML":h=v;break;case"value":c=v;default:X(e,i,s,v)}}if(null!=u)if(n=null!==c?""+c:function(e){var t="";return r.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(l),j(u)){for(i=0;i<u.length;i++)if(""+u[i]===n){e.push(Q);break}}else""+u===n&&e.push(Q);else d&&e.push(Q);return e.push(Y),J(e,h,l),l;case"textarea":for(l in e.push(oe("textarea")),h=u=s=null,n)if(p.call(n,l)&&null!=(c=n[l]))switch(l){case"children":h=c;break;case"value":s=c;break;case"defaultValue":u=c;break;case"dangerouslySetInnerHTML":throw Error(o(91));default:X(e,i,l,c)}if(null===s&&null!==u&&(s=u),e.push(Y),null!=h){if(null!=s)throw Error(o(92));if(j(h)&&1<h.length)throw Error(o(93));s=""+h}return"string"===typeof s&&"\n"===s[0]&&e.push(te),null!==s&&e.push(f(E(""+s))),null;case"input":for(u in e.push(oe("input")),c=h=l=s=null,n)if(p.call(n,u)&&null!=(d=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,"input"));case"defaultChecked":c=d;break;case"defaultValue":l=d;break;case"checked":h=d;break;case"value":s=d;break;default:X(e,i,u,d)}return null!==h?X(e,i,"checked",h):null!==c&&X(e,i,"checked",c),null!==s?X(e,i,"value",s):null!==l&&X(e,i,"value",l),e.push(Z),null;case"menuitem":for(var g in e.push(oe("menuitem")),n)if(p.call(n,g)&&null!=(s=n[g]))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(o(400));default:X(e,i,g,s)}return e.push(Y),null;case"title":for(v in e.push(oe("title")),s=null,n)if(p.call(n,v)&&null!=(u=n[v]))switch(v){case"children":s=u;break;case"dangerouslySetInnerHTML":throw Error(o(434));default:X(e,i,v,u)}return e.push(Y),s;case"listing":case"pre":for(c in e.push(oe(t)),u=s=null,n)if(p.call(n,c)&&null!=(l=n[c]))switch(c){case"children":s=l;break;case"dangerouslySetInnerHTML":u=l;break;default:X(e,i,c,l)}if(e.push(Y),null!=u){if(null!=s)throw Error(o(60));if("object"!==typeof u||!("__html"in u))throw Error(o(61));null!==(n=u.__html)&&void 0!==n&&("string"===typeof n&&0<n.length&&"\n"===n[0]?e.push(te,f(n)):e.push(f(""+n)))}return"string"===typeof s&&"\n"===s[0]&&e.push(te),s;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var b in e.push(oe(t)),n)if(p.call(n,b)&&null!=(s=n[b]))switch(b){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,t));default:X(e,i,b,s)}return e.push(Z),null;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 ee(e,n,t,i);case"html":return 0===a.insertionMode&&e.push(ie),ee(e,n,t,i);default:if(-1===t.indexOf("-")&&"string"!==typeof n.is)return ee(e,n,t,i);for(d in e.push(oe(t)),u=s=null,n)if(p.call(n,d)&&null!=(l=n[d]))switch(d){case"children":s=l;break;case"dangerouslySetInnerHTML":u=l;break;case"style":H(e,i,l);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:m(d)&&"function"!==typeof l&&"symbol"!==typeof l&&e.push($,f(d),W,f(E(l)),K)}return e.push(Y),J(e,u,s),s}}var se=d("</"),ue=d(">"),le=d('<template id="'),ce=d('"></template>'),fe=d("\x3c!--$--\x3e"),de=d('\x3c!--$?--\x3e<template id="'),he=d('"></template>'),pe=d("\x3c!--$!--\x3e"),ve=d("\x3c!--/$--\x3e"),ge=d("<template"),be=d('"'),me=d(' data-dgst="');d(' data-msg="'),d(' data-stck="');var ye=d("></template>");function _e(e,t,n){if(s(e,de),null===n)throw Error(o(395));return s(e,n),u(e,he)}var we=d('<div hidden id="'),Se=d('">'),xe=d("</div>"),ke=d('<svg aria-hidden="true" style="display:none" id="'),Oe=d('">'),Ee=d("</svg>"),Ce=d('<math aria-hidden="true" style="display:none" id="'),Te=d('">'),je=d("</math>"),Pe=d('<table hidden id="'),Ae=d('">'),Re=d("</table>"),Me=d('<table hidden><tbody id="'),Le=d('">'),Fe=d("</tbody></table>"),Ie=d('<table hidden><tr id="'),Ve=d('">'),Ne=d("</tr></table>"),De=d('<table hidden><colgroup id="'),Be=d('">'),Ue=d("</colgroup></table>");var ze=d('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),qe=d('$RS("'),He=d('","'),$e=d('")<\/script>'),We=d('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),Ke=d('$RC("'),Ge=d('","'),Xe=d('")<\/script>'),Ye=d('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),Ze=d('$RX("'),Je=d('"'),Qe=d(")<\/script>"),et=d(","),tt=/[<\u2028\u2029]/g;function nt(e){return JSON.stringify(e).replace(tt,function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var rt=Object.assign,ot=Symbol.for("react.element"),it=Symbol.for("react.portal"),at=Symbol.for("react.fragment"),st=Symbol.for("react.strict_mode"),ut=Symbol.for("react.profiler"),lt=Symbol.for("react.provider"),ct=Symbol.for("react.context"),ft=Symbol.for("react.forward_ref"),dt=Symbol.for("react.suspense"),ht=Symbol.for("react.suspense_list"),pt=Symbol.for("react.memo"),vt=Symbol.for("react.lazy"),gt=Symbol.for("react.scope"),bt=Symbol.for("react.debug_trace_mode"),mt=Symbol.for("react.legacy_hidden"),yt=Symbol.for("react.default_value"),_t=Symbol.iterator;function wt(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case at:return"Fragment";case it:return"Portal";case ut:return"Profiler";case st:return"StrictMode";case dt:return"Suspense";case ht:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case ct:return(e.displayName||"Context")+".Consumer";case lt:return(e._context.displayName||"Context")+".Provider";case ft:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case pt:return null!==(t=e.displayName||null)?t:wt(e.type)||"Memo";case vt:t=e._payload,e=e._init;try{return wt(e(t))}catch(n){}}return null}var St={};function xt(e,t){if(!(e=e.contextTypes))return St;var n,r={};for(n in e)r[n]=t[n];return r}var kt=null;function Ot(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(o(401))}else{if(null===n)throw Error(o(401));Ot(e,n)}t.context._currentValue=t.value}}function Et(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&Et(e)}function Ct(e){var t=e.parent;null!==t&&Ct(t),e.context._currentValue=e.value}function Tt(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(o(402));e.depth===t.depth?Ot(e,t):Tt(e,t)}function jt(e,t){var n=t.parent;if(null===n)throw Error(o(402));e.depth===n.depth?Ot(e,n):jt(e,n),t.context._currentValue=t.value}function Pt(e){var t=kt;t!==e&&(null===t?Ct(e):null===e?Et(t):t.depth===e.depth?Ot(t,e):t.depth>e.depth?Tt(t,e):jt(t,e),kt=e)}var At={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function Rt(e,t,n,r){var o=void 0!==e.state?e.state:null;e.updater=At,e.props=n,e.state=o;var i={queue:[],replace:!1};e._reactInternals=i;var a=t.contextType;if(e.context="object"===typeof a&&null!==a?a._currentValue:r,"function"===typeof(a=t.getDerivedStateFromProps)&&(o=null===(a=a(n,o))||void 0===a?o:rt({},o,a),e.state=o),"function"!==typeof t.getDerivedStateFromProps&&"function"!==typeof e.getSnapshotBeforeUpdate&&("function"===typeof e.UNSAFE_componentWillMount||"function"===typeof e.componentWillMount))if(t=e.state,"function"===typeof e.componentWillMount&&e.componentWillMount(),"function"===typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&At.enqueueReplaceState(e,e.state,null),null!==i.queue&&0<i.queue.length)if(t=i.queue,a=i.replace,i.queue=null,i.replace=!1,a&&1===t.length)e.state=t[0];else{for(i=a?t[0]:e.state,o=!0,a=a?1:0;a<t.length;a++){var s=t[a];null!=(s="function"===typeof s?s.call(e,i,n,r):s)&&(o?(o=!1,i=rt({},i,s)):rt(i,s))}e.state=i}else i.queue=null}var Mt={id:1,overflow:""};function Lt(e,t,n){var r=e.id;e=e.overflow;var o=32-Ft(r)-1;r&=~(1<<o),n+=1;var i=32-Ft(t)+o;if(30<i){var a=o-o%5;return i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,{id:1<<32-Ft(t)+o|n<<o|r,overflow:i+e}}return{id:1<<i|n<<o|r,overflow:e}}var Ft=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(It(e)/Vt|0)|0},It=Math.log,Vt=Math.LN2;var Nt="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},Dt=null,Bt=null,Ut=null,zt=null,qt=!1,Ht=!1,$t=0,Wt=null,Kt=0;function Gt(){if(null===Dt)throw Error(o(321));return Dt}function Xt(){if(0<Kt)throw Error(o(312));return{memoizedState:null,queue:null,next:null}}function Yt(){return null===zt?null===Ut?(qt=!1,Ut=zt=Xt()):(qt=!0,zt=Ut):null===zt.next?(qt=!1,zt=zt.next=Xt()):(qt=!0,zt=zt.next),zt}function Zt(){Bt=Dt=null,Ht=!1,Ut=null,Kt=0,zt=Wt=null}function Jt(e,t){return"function"===typeof t?t(e):t}function Qt(e,t,n){if(Dt=Gt(),zt=Yt(),qt){var r=zt.queue;if(t=r.dispatch,null!==Wt&&void 0!==(n=Wt.get(r))){Wt.delete(r),r=zt.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return zt.memoizedState=r,[r,t]}return[zt.memoizedState,t]}return e=e===Jt?"function"===typeof t?t():t:void 0!==n?n(t):t,zt.memoizedState=e,e=(e=zt.queue={last:null,dispatch:null}).dispatch=tn.bind(null,Dt,e),[zt.memoizedState,e]}function en(e,t){if(Dt=Gt(),t=void 0===t?null:t,null!==(zt=Yt())){var n=zt.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var o=0;o<r.length&&o<t.length;o++)if(!Nt(t[o],r[o])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),zt.memoizedState=[e,t],e}function tn(e,t,n){if(25<=Kt)throw Error(o(301));if(e===Dt)if(Ht=!0,e={action:n,next:null},null===Wt&&(Wt=new Map),void 0===(n=Wt.get(t)))Wt.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function nn(){throw Error(o(394))}function rn(){}var on={readContext:function(e){return e._currentValue},useContext:function(e){return Gt(),e._currentValue},useMemo:en,useReducer:Qt,useRef:function(e){Dt=Gt();var t=(zt=Yt()).memoizedState;return null===t?(e={current:e},zt.memoizedState=e):t},useState:function(e){return Qt(Jt,e)},useInsertionEffect:rn,useLayoutEffect:function(){},useCallback:function(e,t){return en(function(){return e},t)},useImperativeHandle:rn,useEffect:rn,useDebugValue:rn,useDeferredValue:function(e){return Gt(),e},useTransition:function(){return Gt(),[!1,nn]},useId:function(){var e=Bt.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-Ft(e)-1)).toString(32)+t;var n=an;if(null===n)throw Error(o(404));return t=$t++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Gt(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(o(407));return n()}},an=null,sn=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function un(e){return console.error(e),null}function ln(){}function cn(e,t,n,r,o,i,a,s){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var u={node:t,ping:function(){var t=e.pingedTasks;t.push(u),1===t.length&&On(e)},blockedBoundary:n,blockedSegment:r,abortSet:o,legacyContext:i,context:a,treeContext:s};return o.add(u),u}function fn(e,t,n,r,o,i){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:o,textEmbedded:i}}function dn(e,t){if(null!=(e=e.onError(t))&&"string"!==typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function hn(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,h(e.destination,t)):(e.status=1,e.fatalError=t)}function pn(e,t,n,r,o){for(Dt={},Bt=t,$t=0,e=n(r,o);Ht;)Ht=!1,$t=0,Kt+=1,zt=null,e=n(r,o);return Zt(),e}function vn(e,t,n,r){var i=n.render(),a=r.childContextTypes;if(null!==a&&void 0!==a){var s=t.legacyContext;if("function"!==typeof n.getChildContext)r=s;else{for(var u in n=n.getChildContext())if(!(u in a))throw Error(o(108,wt(r)||"Unknown",u));r=rt({},s,n)}t.legacyContext=r,mn(e,t,i),t.legacyContext=s}else mn(e,t,i)}function gn(e,t){if(e&&e.defaultProps){for(var n in t=rt({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function bn(e,t,n,r,i){if("function"===typeof n)if(n.prototype&&n.prototype.isReactComponent){i=xt(n,t.legacyContext);var a=n.contextType;Rt(a=new n(r,"object"===typeof a&&null!==a?a._currentValue:i),n,r,i),vn(e,t,a,n)}else{i=pn(e,t,n,r,a=xt(n,t.legacyContext));var s=0!==$t;if("object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof)Rt(i,n,r,a),vn(e,t,i,n);else if(s){r=t.treeContext,t.treeContext=Lt(r,1,0);try{mn(e,t,i)}finally{t.treeContext=r}}else mn(e,t,i)}else{if("string"!==typeof n){switch(n){case mt:case bt:case st:case ut:case at:case ht:return void mn(e,t,r.children);case gt:throw Error(o(343));case dt:e:{n=t.blockedBoundary,i=t.blockedSegment,a=r.fallback,r=r.children;var u={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s=new Set,errorDigest:null},l=fn(0,i.chunks.length,u,i.formatContext,!1,!1);i.children.push(l),i.lastPushedText=!1;var c=fn(0,0,null,i.formatContext,!1,!1);c.parentFlushed=!0,t.blockedBoundary=u,t.blockedSegment=c;try{if(_n(e,t,r),c.lastPushedText&&c.textEmbedded&&c.chunks.push(N),c.status=1,xn(u,c),0===u.pendingTasks)break e}catch(d){c.status=4,u.forceClientRender=!0,u.errorDigest=dn(e,d)}finally{t.blockedBoundary=n,t.blockedSegment=i}t=cn(e,a,n,l,s,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"===typeof n&&null!==n)switch(n.$$typeof){case ft:if(r=pn(e,t,n.render,r,i),0!==$t){n=t.treeContext,t.treeContext=Lt(n,1,0);try{mn(e,t,r)}finally{t.treeContext=n}}else mn(e,t,r);return;case pt:return void bn(e,t,n=n.type,r=gn(n,r),i);case lt:if(i=r.children,n=n._context,r=r.value,a=n._currentValue,n._currentValue=r,kt=r={parent:s=kt,depth:null===s?0:s.depth+1,context:n,parentValue:a,value:r},t.context=r,mn(e,t,i),null===(e=kt))throw Error(o(403));return r=e.parentValue,e.context._currentValue=r===yt?e.context._defaultValue:r,e=kt=e.parent,void(t.context=e);case ct:return void mn(e,t,r=(r=r.children)(n._currentValue));case vt:return void bn(e,t,n=(i=n._init)(n._payload),r=gn(n,r),void 0)}throw Error(o(130,null==n?n:typeof n,""))}switch(a=ae((i=t.blockedSegment).chunks,n,r,e.responseState,i.formatContext),i.lastPushedText=!1,s=i.formatContext,i.formatContext=function(e,t,n){switch(t){case"select":return V(1,null!=n.value?n.value:n.defaultValue);case"svg":return V(2,null);case"math":return V(3,null);case"foreignObject":return V(1,null);case"table":return V(4,null);case"thead":case"tbody":case"tfoot":return V(5,null);case"colgroup":return V(7,null);case"tr":return V(6,null)}return 4<=e.insertionMode||0===e.insertionMode?V(1,null):e}(s,n,r),_n(e,t,a),i.formatContext=s,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:i.chunks.push(se,f(n),ue)}i.lastPushedText=!1}}function mn(e,t,n){if(t.node=n,"object"===typeof n&&null!==n){switch(n.$$typeof){case ot:return void bn(e,t,n.type,n.props,n.ref);case it:throw Error(o(257));case vt:var r=n._init;return void mn(e,t,n=r(n._payload))}if(j(n))return void yn(e,t,n);if(null===n||"object"!==typeof n?r=null:r="function"===typeof(r=_t&&n[_t]||n["@@iterator"])?r:null,r&&(r=r.call(n))){if(!(n=r.next()).done){var i=[];do{i.push(n.value),n=r.next()}while(!n.done);yn(e,t,i)}return}throw e=Object.prototype.toString.call(n),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"===typeof n?(r=t.blockedSegment).lastPushedText=D(t.blockedSegment.chunks,n,e.responseState,r.lastPushedText):"number"===typeof n&&((r=t.blockedSegment).lastPushedText=D(t.blockedSegment.chunks,""+n,e.responseState,r.lastPushedText))}function yn(e,t,n){for(var r=n.length,o=0;o<r;o++){var i=t.treeContext;t.treeContext=Lt(i,r,o);try{_n(e,t,n[o])}finally{t.treeContext=i}}}function _n(e,t,n){var r=t.blockedSegment.formatContext,o=t.legacyContext,i=t.context;try{return mn(e,t,n)}catch(u){if(Zt(),"object"!==typeof u||null===u||"function"!==typeof u.then)throw t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=i,Pt(i),u;n=u;var a=t.blockedSegment,s=fn(0,a.chunks.length,null,a.formatContext,a.lastPushedText,!0);a.children.push(s),a.lastPushedText=!1,e=cn(e,t.node,t.blockedBoundary,s,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=i,Pt(i)}}function wn(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,kn(this,t,e)}function Sn(e,t,n){var r=e.blockedBoundary;e.blockedSegment.status=3,null===r?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.close())):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,e=void 0===n?Error(o(432)):n,r.errorDigest=t.onError(e),r.parentFlushed&&t.clientRenderedBoundaries.push(r)),r.fallbackAbortableTasks.forEach(function(e){return Sn(e,t,n)}),r.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(r=t.onAllReady)())}function xn(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&xn(e,n)}else e.completedSegments.push(t)}function kn(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(o(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=ln,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&xn(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(wn,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(xn(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function On(e){if(2!==e.status){var t=kt,n=sn.current;sn.current=on;var r=an;an=e.responseState;try{var o,i=e.pingedTasks;for(o=0;o<i.length;o++){var a=i[o],s=e,u=a.blockedSegment;if(0===u.status){Pt(a.context);try{mn(s,a,a.node),u.lastPushedText&&u.textEmbedded&&u.chunks.push(N),a.abortSet.delete(a),u.status=1,kn(s,a.blockedBoundary,u)}catch(h){if(Zt(),"object"===typeof h&&null!==h&&"function"===typeof h.then){var l=a.ping;h.then(l,l)}else{a.abortSet.delete(a),u.status=4;var c=a.blockedBoundary,f=h,d=dn(s,f);if(null===c?hn(s,f):(c.pendingTasks--,c.forceClientRender||(c.forceClientRender=!0,c.errorDigest=d,c.parentFlushed&&s.clientRenderedBoundaries.push(c))),s.allPendingTasks--,0===s.allPendingTasks)(0,s.onAllReady)()}}}}i.splice(0,o),null!==e.destination&&An(e,e.destination)}catch(h){dn(e,h),hn(e,h)}finally{an=r,sn.current=n,n===on&&Pt(t)}}}function En(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,s(t,le),s(t,e.placeholderPrefix),s(t,e=f(r.toString(16))),u(t,ce);case 1:n.status=2;var i=!0;r=n.chunks;var a=0;n=n.children;for(var l=0;l<n.length;l++){for(i=n[l];a<i.index;a++)s(t,r[a]);i=Cn(e,t,i)}for(;a<r.length-1;a++)s(t,r[a]);return a<r.length&&(i=u(t,r[a])),i;default:throw Error(o(390))}}function Cn(e,t,n){var r=n.boundary;if(null===r)return En(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)r=r.errorDigest,u(t,pe),s(t,ge),r&&(s(t,me),s(t,f(E(r))),s(t,be)),u(t,ye),En(e,t,n);else if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var i=e.responseState,a=i.nextSuspenseID++;i=d(i.boundaryPrefix+a.toString(16)),r=r.id=i,_e(t,e.responseState,r),En(e,t,n)}else if(r.byteSize>e.progressiveChunkSize)r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),_e(t,e.responseState,r.id),En(e,t,n);else{if(u(t,fe),1!==(n=r.completedSegments).length)throw Error(o(391));Cn(e,t,n[0])}return u(t,ve)}function Tn(e,t,n){return function(e,t,n,r){switch(n.insertionMode){case 0:case 1:return s(e,we),s(e,t.segmentPrefix),s(e,f(r.toString(16))),u(e,Se);case 2:return s(e,ke),s(e,t.segmentPrefix),s(e,f(r.toString(16))),u(e,Oe);case 3:return s(e,Ce),s(e,t.segmentPrefix),s(e,f(r.toString(16))),u(e,Te);case 4:return s(e,Pe),s(e,t.segmentPrefix),s(e,f(r.toString(16))),u(e,Ae);case 5:return s(e,Me),s(e,t.segmentPrefix),s(e,f(r.toString(16))),u(e,Le);case 6:return s(e,Ie),s(e,t.segmentPrefix),s(e,f(r.toString(16))),u(e,Ve);case 7:return s(e,De),s(e,t.segmentPrefix),s(e,f(r.toString(16))),u(e,Be);default:throw Error(o(397))}}(t,e.responseState,n.formatContext,n.id),Cn(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return u(e,xe);case 2:return u(e,Ee);case 3:return u(e,je);case 4:return u(e,Re);case 5:return u(e,Fe);case 6:return u(e,Ne);case 7:return u(e,Ue);default:throw Error(o(397))}}(t,n.formatContext)}function jn(e,t,n){for(var r=n.completedSegments,i=0;i<r.length;i++)Pn(e,t,n,r[i]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,s(t,e.startInlineScript),e.sentCompleteBoundaryFunction?s(t,Ke):(e.sentCompleteBoundaryFunction=!0,s(t,We)),null===r)throw Error(o(395));return n=f(n.toString(16)),s(t,r),s(t,Ge),s(t,e.segmentPrefix),s(t,n),u(t,Xe)}function Pn(e,t,n,r){if(2===r.status)return!0;var i=r.id;if(-1===i){if(-1===(r.id=n.rootSegmentID))throw Error(o(392));return Tn(e,t,r)}return Tn(e,t,r),s(t,(e=e.responseState).startInlineScript),e.sentCompleteSegmentFunction?s(t,qe):(e.sentCompleteSegmentFunction=!0,s(t,ze)),s(t,e.segmentPrefix),s(t,i=f(i.toString(16))),s(t,He),s(t,e.placeholderPrefix),s(t,i),u(t,$e)}function An(e,t){i=new Uint8Array(512),a=0;try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){Cn(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)s(t,r[n]);n<r.length&&u(t,r[n])}var c,d=e.clientRenderedBoundaries;for(c=0;c<d.length;c++){var h=d[c];r=t;var p=e.responseState,v=h.id,g=h.errorDigest,b=h.errorMessage,m=h.errorComponentStack;if(s(r,p.startInlineScript),p.sentClientRenderFunction?s(r,Ze):(p.sentClientRenderFunction=!0,s(r,Ye)),null===v)throw Error(o(395));if(s(r,v),s(r,Je),(g||b||m)&&(s(r,et),s(r,f(nt(g||"")))),(b||m)&&(s(r,et),s(r,f(nt(b||"")))),m&&(s(r,et),s(r,f(nt(m)))),!u(r,Qe))return e.destination=null,c++,void d.splice(0,c)}d.splice(0,c);var y=e.completedBoundaries;for(c=0;c<y.length;c++)if(!jn(e,t,y[c]))return e.destination=null,c++,void y.splice(0,c);y.splice(0,c),l(t),i=new Uint8Array(512),a=0;var _=e.partialBoundaries;for(c=0;c<_.length;c++){var w=_[c];e:{d=e,h=t;var S=w.completedSegments;for(p=0;p<S.length;p++)if(!Pn(d,h,w,S[p])){p++,S.splice(0,p);var x=!1;break e}S.splice(0,p),x=!0}if(!x)return e.destination=null,c++,void _.splice(0,c)}_.splice(0,c);var k=e.completedBoundaries;for(c=0;c<k.length;c++)if(!jn(e,t,k[c]))return e.destination=null,c++,void k.splice(0,c);k.splice(0,c)}finally{l(t),0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.close()}}function Rn(e,t){try{var n=e.abortableTasks;n.forEach(function(n){return Sn(n,e,t)}),n.clear(),null!==e.destination&&An(e,e.destination)}catch(r){dn(e,r),hn(e,r)}}t.renderToReadableStream=function(e,t){return new Promise(function(n,r){var o,i,a=new Promise(function(e,t){i=e,o=t}),s=function(e,t,n,r,o,i,a,s,u){var l=[],c=new Set;return(n=fn(t={destination:null,responseState:t,progressiveChunkSize:void 0===r?12800:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:c,pingedTasks:l,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===o?un:o,onAllReady:void 0===i?ln:i,onShellReady:void 0===a?ln:a,onShellError:void 0===s?ln:s,onFatalError:void 0===u?ln:u},0,null,n,!1,!1)).parentFlushed=!0,e=cn(t,e,null,n,c,St,null,Mt),l.push(e),t}(e,function(e,t,n,r,o){e=void 0===e?"":e,t=void 0===t?P:d('<script nonce="'+E(t)+'">');var i=[];if(void 0!==n&&i.push(t,f((""+n).replace(F,I)),A),void 0!==r)for(n=0;n<r.length;n++)i.push(R,f(E(r[n])),L);if(void 0!==o)for(r=0;r<o.length;r++)i.push(M,f(E(o[r])),L);return{bootstrapChunks:i,startInlineScript:t,placeholderPrefix:d(e+"P:"),segmentPrefix:d(e+"S:"),boundaryPrefix:e+"B:",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),function(e){return V("http://www.w3.org/2000/svg"===e?2:"http://www.w3.org/1998/Math/MathML"===e?3:0,null)}(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,i,function(){var e=new ReadableStream({type:"bytes",pull:function(e){if(1===s.status)s.status=2,h(e,s.fatalError);else if(2!==s.status&&null===s.destination){s.destination=e;try{An(s,e)}catch(t){dn(s,t),hn(s,t)}}},cancel:function(){Rn(s)}},{highWaterMark:0});e.allReady=a,n(e)},function(e){a.catch(function(){}),r(e)},o);if(t&&t.signal){var u=t.signal,l=function(){Rn(s,u.reason),u.removeEventListener("abort",l)};u.addEventListener("abort",l)}On(s)})},t.version="18.3.1"},885:(e,t,n)=>{var r,o;r=n(160),o=n(556),t.version=r.version,t.renderToString=r.renderToString,t.renderToStaticMarkup=r.renderToStaticMarkup,t.renderToNodeStream=r.renderToNodeStream,t.renderToStaticNodeStream=r.renderToStaticNodeStream,t.renderToReadableStream=o.renderToReadableStream}}]);
  3. //# sourceMappingURL=511.7606796f.chunk.js.map