@tryghost/sodo-search 1.8.81 → 1.8.83

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
- (function(Un){typeof define=="function"&&define.amd?define(Un):Un()})((function(){"use strict";var Un=typeof document<"u"?document.currentScript:null;function $i(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Pi={exports:{}},Bn={};var Ei,jl;function Ti(){if(jl)return Ei;jl=1;var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function l(d){if(d==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(d)}function a(){try{if(!Object.assign)return!1;var d=new String("abc");if(d[5]="de",Object.getOwnPropertyNames(d)[0]==="5")return!1;for(var m={},v=0;v<10;v++)m["_"+String.fromCharCode(v)]=v;var y=Object.getOwnPropertyNames(m).map(function(E){return m[E]});if(y.join("")!=="0123456789")return!1;var C={};return"abcdefghijklmnopqrst".split("").forEach(function(E){C[E]=E}),Object.keys(Object.assign({},C)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ei=a()?Object.assign:function(d,m){for(var v,y=l(d),C,E=1;E<arguments.length;E++){v=Object(arguments[E]);for(var L in v)i.call(v,L)&&(y[L]=v[L]);if(r){C=r(v);for(var F=0;F<C.length;F++)o.call(v,C[F])&&(y[C[F]]=v[C[F]])}}return y},Ei}var ji={exports:{}},Oe={};var Nl;function Rc(){if(Nl)return Oe;Nl=1;var r=Ti(),i=60103,o=60106;Oe.Fragment=60107,Oe.StrictMode=60108,Oe.Profiler=60114;var l=60109,a=60110,d=60112;Oe.Suspense=60113;var m=60115,v=60116;if(typeof Symbol=="function"&&Symbol.for){var y=Symbol.for;i=y("react.element"),o=y("react.portal"),Oe.Fragment=y("react.fragment"),Oe.StrictMode=y("react.strict_mode"),Oe.Profiler=y("react.profiler"),l=y("react.provider"),a=y("react.context"),d=y("react.forward_ref"),Oe.Suspense=y("react.suspense"),m=y("react.memo"),v=y("react.lazy")}var C=typeof Symbol=="function"&&Symbol.iterator;function E(A){return A===null||typeof A!="object"?null:(A=C&&A[C]||A["@@iterator"],typeof A=="function"?A:null)}function L(A){for(var Q="https://reactjs.org/docs/error-decoder.html?invariant="+A,me=1;me<arguments.length;me++)Q+="&args[]="+encodeURIComponent(arguments[me]);return"Minified React error #"+A+"; visit "+Q+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var F={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M={};function V(A,Q,me){this.props=A,this.context=Q,this.refs=M,this.updater=me||F}V.prototype.isReactComponent={},V.prototype.setState=function(A,Q){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error(L(85));this.updater.enqueueSetState(this,A,Q,"setState")},V.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function R(){}R.prototype=V.prototype;function O(A,Q,me){this.props=A,this.context=Q,this.refs=M,this.updater=me||F}var J=O.prototype=new R;J.constructor=O,r(J,V.prototype),J.isPureReactComponent=!0;var X={current:null},fe=Object.prototype.hasOwnProperty,de={key:!0,ref:!0,__self:!0,__source:!0};function he(A,Q,me){var je,B={},ee=null,Z=null;if(Q!=null)for(je in Q.ref!==void 0&&(Z=Q.ref),Q.key!==void 0&&(ee=""+Q.key),Q)fe.call(Q,je)&&!de.hasOwnProperty(je)&&(B[je]=Q[je]);var K=arguments.length-2;if(K===1)B.children=me;else if(1<K){for(var ne=Array(K),_e=0;_e<K;_e++)ne[_e]=arguments[_e+2];B.children=ne}if(A&&A.defaultProps)for(je in K=A.defaultProps,K)B[je]===void 0&&(B[je]=K[je]);return{$$typeof:i,type:A,key:ee,ref:Z,props:B,_owner:X.current}}function ae(A,Q){return{$$typeof:i,type:A.type,key:Q,ref:A.ref,props:A.props,_owner:A._owner}}function ue(A){return typeof A=="object"&&A!==null&&A.$$typeof===i}function q(A){var Q={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(me){return Q[me]})}var oe=/\/+/g;function Pe(A,Q){return typeof A=="object"&&A!==null&&A.key!=null?q(""+A.key):Q.toString(36)}function xe(A,Q,me,je,B){var ee=typeof A;(ee==="undefined"||ee==="boolean")&&(A=null);var Z=!1;if(A===null)Z=!0;else switch(ee){case"string":case"number":Z=!0;break;case"object":switch(A.$$typeof){case i:case o:Z=!0}}if(Z)return Z=A,B=B(Z),A=je===""?"."+Pe(Z,0):je,Array.isArray(B)?(me="",A!=null&&(me=A.replace(oe,"$&/")+"/"),xe(B,Q,me,"",function(_e){return _e})):B!=null&&(ue(B)&&(B=ae(B,me+(!B.key||Z&&Z.key===B.key?"":(""+B.key).replace(oe,"$&/")+"/")+A)),Q.push(B)),1;if(Z=0,je=je===""?".":je+":",Array.isArray(A))for(var K=0;K<A.length;K++){ee=A[K];var ne=je+Pe(ee,K);Z+=xe(ee,Q,me,ne,B)}else if(ne=E(A),typeof ne=="function")for(A=ne.call(A),K=0;!(ee=A.next()).done;)ee=ee.value,ne=je+Pe(ee,K++),Z+=xe(ee,Q,me,ne,B);else if(ee==="object")throw Q=""+A,Error(L(31,Q==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":Q));return Z}function Ee(A,Q,me){if(A==null)return A;var je=[],B=0;return xe(A,je,"","",function(ee){return Q.call(me,ee,B++)}),je}function ke(A){if(A._status===-1){var Q=A._result;Q=Q(),A._status=0,A._result=Q,Q.then(function(me){A._status===0&&(me=me.default,A._status=1,A._result=me)},function(me){A._status===0&&(A._status=2,A._result=me)})}if(A._status===1)return A._result;throw A._result}var Re={current:null};function ye(){var A=Re.current;if(A===null)throw Error(L(321));return A}var De={ReactCurrentDispatcher:Re,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:X,IsSomeRendererActing:{current:!1},assign:r};return Oe.Children={map:Ee,forEach:function(A,Q,me){Ee(A,function(){Q.apply(this,arguments)},me)},count:function(A){var Q=0;return Ee(A,function(){Q++}),Q},toArray:function(A){return Ee(A,function(Q){return Q})||[]},only:function(A){if(!ue(A))throw Error(L(143));return A}},Oe.Component=V,Oe.PureComponent=O,Oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=De,Oe.cloneElement=function(A,Q,me){if(A==null)throw Error(L(267,A));var je=r({},A.props),B=A.key,ee=A.ref,Z=A._owner;if(Q!=null){if(Q.ref!==void 0&&(ee=Q.ref,Z=X.current),Q.key!==void 0&&(B=""+Q.key),A.type&&A.type.defaultProps)var K=A.type.defaultProps;for(ne in Q)fe.call(Q,ne)&&!de.hasOwnProperty(ne)&&(je[ne]=Q[ne]===void 0&&K!==void 0?K[ne]:Q[ne])}var ne=arguments.length-2;if(ne===1)je.children=me;else if(1<ne){K=Array(ne);for(var _e=0;_e<ne;_e++)K[_e]=arguments[_e+2];je.children=K}return{$$typeof:i,type:A.type,key:B,ref:ee,props:je,_owner:Z}},Oe.createContext=function(A,Q){return Q===void 0&&(Q=null),A={$$typeof:a,_calculateChangedBits:Q,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider={$$typeof:l,_context:A},A.Consumer=A},Oe.createElement=he,Oe.createFactory=function(A){var Q=he.bind(null,A);return Q.type=A,Q},Oe.createRef=function(){return{current:null}},Oe.forwardRef=function(A){return{$$typeof:d,render:A}},Oe.isValidElement=ue,Oe.lazy=function(A){return{$$typeof:v,_payload:{_status:-1,_result:A},_init:ke}},Oe.memo=function(A,Q){return{$$typeof:m,type:A,compare:Q===void 0?null:Q}},Oe.useCallback=function(A,Q){return ye().useCallback(A,Q)},Oe.useContext=function(A,Q){return ye().useContext(A,Q)},Oe.useDebugValue=function(){},Oe.useEffect=function(A,Q){return ye().useEffect(A,Q)},Oe.useImperativeHandle=function(A,Q,me){return ye().useImperativeHandle(A,Q,me)},Oe.useLayoutEffect=function(A,Q){return ye().useLayoutEffect(A,Q)},Oe.useMemo=function(A,Q){return ye().useMemo(A,Q)},Oe.useReducer=function(A,Q,me){return ye().useReducer(A,Q,me)},Oe.useRef=function(A){return ye().useRef(A)},Oe.useState=function(A){return ye().useState(A)},Oe.version="17.0.2",Oe}var Al;function Ni(){return Al||(Al=1,ji.exports=Rc()),ji.exports}var Ll;function _c(){if(Ll)return Bn;Ll=1,Ti();var r=Ni(),i=60103;if(Bn.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var o=Symbol.for;i=o("react.element"),Bn.Fragment=o("react.fragment")}var l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,d={key:!0,ref:!0,__self:!0,__source:!0};function m(v,y,C){var E,L={},F=null,M=null;C!==void 0&&(F=""+C),y.key!==void 0&&(F=""+y.key),y.ref!==void 0&&(M=y.ref);for(E in y)a.call(y,E)&&!d.hasOwnProperty(E)&&(L[E]=y[E]);if(v&&v.defaultProps)for(E in y=v.defaultProps,y)L[E]===void 0&&(L[E]=y[E]);return{$$typeof:i,type:v,key:F,ref:M,props:L,_owner:l.current}}return Bn.jsx=m,Bn.jsxs=m,Bn}var Ol;function Ic(){return Ol||(Ol=1,Pi.exports=_c()),Pi.exports}var G=Ic(),Ae=Ni();const Xt=$i(Ae);var Ai={exports:{}},pt={},Li={exports:{}},Oi={};var Rl;function zc(){return Rl||(Rl=1,(function(r){var i,o,l,a;if(typeof performance=="object"&&typeof performance.now=="function"){var d=performance;r.unstable_now=function(){return d.now()}}else{var m=Date,v=m.now();r.unstable_now=function(){return m.now()-v}}if(typeof window>"u"||typeof MessageChannel!="function"){var y=null,C=null,E=function(){if(y!==null)try{var B=r.unstable_now();y(!0,B),y=null}catch(ee){throw setTimeout(E,0),ee}};i=function(B){y!==null?setTimeout(i,0,B):(y=B,setTimeout(E,0))},o=function(B,ee){C=setTimeout(B,ee)},l=function(){clearTimeout(C)},r.unstable_shouldYield=function(){return!1},a=r.unstable_forceFrameRate=function(){}}else{var L=window.setTimeout,F=window.clearTimeout;if(typeof console<"u"){var M=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof M!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var V=!1,R=null,O=-1,J=5,X=0;r.unstable_shouldYield=function(){return r.unstable_now()>=X},a=function(){},r.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<B?Math.floor(1e3/B):5};var fe=new MessageChannel,de=fe.port2;fe.port1.onmessage=function(){if(R!==null){var B=r.unstable_now();X=B+J;try{R(!0,B)?de.postMessage(null):(V=!1,R=null)}catch(ee){throw de.postMessage(null),ee}}else V=!1},i=function(B){R=B,V||(V=!0,de.postMessage(null))},o=function(B,ee){O=L(function(){B(r.unstable_now())},ee)},l=function(){F(O),O=-1}}function he(B,ee){var Z=B.length;B.push(ee);e:for(;;){var K=Z-1>>>1,ne=B[K];if(ne!==void 0&&0<q(ne,ee))B[K]=ee,B[Z]=ne,Z=K;else break e}}function ae(B){return B=B[0],B===void 0?null:B}function ue(B){var ee=B[0];if(ee!==void 0){var Z=B.pop();if(Z!==ee){B[0]=Z;e:for(var K=0,ne=B.length;K<ne;){var _e=2*(K+1)-1,Qe=B[_e],Tt=_e+1,gt=B[Tt];if(Qe!==void 0&&0>q(Qe,Z))gt!==void 0&&0>q(gt,Qe)?(B[K]=gt,B[Tt]=Z,K=Tt):(B[K]=Qe,B[_e]=Z,K=_e);else if(gt!==void 0&&0>q(gt,Z))B[K]=gt,B[Tt]=Z,K=Tt;else break e}}return ee}return null}function q(B,ee){var Z=B.sortIndex-ee.sortIndex;return Z!==0?Z:B.id-ee.id}var oe=[],Pe=[],xe=1,Ee=null,ke=3,Re=!1,ye=!1,De=!1;function A(B){for(var ee=ae(Pe);ee!==null;){if(ee.callback===null)ue(Pe);else if(ee.startTime<=B)ue(Pe),ee.sortIndex=ee.expirationTime,he(oe,ee);else break;ee=ae(Pe)}}function Q(B){if(De=!1,A(B),!ye)if(ae(oe)!==null)ye=!0,i(me);else{var ee=ae(Pe);ee!==null&&o(Q,ee.startTime-B)}}function me(B,ee){ye=!1,De&&(De=!1,l()),Re=!0;var Z=ke;try{for(A(ee),Ee=ae(oe);Ee!==null&&(!(Ee.expirationTime>ee)||B&&!r.unstable_shouldYield());){var K=Ee.callback;if(typeof K=="function"){Ee.callback=null,ke=Ee.priorityLevel;var ne=K(Ee.expirationTime<=ee);ee=r.unstable_now(),typeof ne=="function"?Ee.callback=ne:Ee===ae(oe)&&ue(oe),A(ee)}else ue(oe);Ee=ae(oe)}if(Ee!==null)var _e=!0;else{var Qe=ae(Pe);Qe!==null&&o(Q,Qe.startTime-ee),_e=!1}return _e}finally{Ee=null,ke=Z,Re=!1}}var je=a;r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(B){B.callback=null},r.unstable_continueExecution=function(){ye||Re||(ye=!0,i(me))},r.unstable_getCurrentPriorityLevel=function(){return ke},r.unstable_getFirstCallbackNode=function(){return ae(oe)},r.unstable_next=function(B){switch(ke){case 1:case 2:case 3:var ee=3;break;default:ee=ke}var Z=ke;ke=ee;try{return B()}finally{ke=Z}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=je,r.unstable_runWithPriority=function(B,ee){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var Z=ke;ke=B;try{return ee()}finally{ke=Z}},r.unstable_scheduleCallback=function(B,ee,Z){var K=r.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?K+Z:K):Z=K,B){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=Z+ne,B={id:xe++,callback:ee,priorityLevel:B,startTime:Z,expirationTime:ne,sortIndex:-1},Z>K?(B.sortIndex=Z,he(Pe,B),ae(oe)===null&&B===ae(Pe)&&(De?l():De=!0,o(Q,Z-K))):(B.sortIndex=ne,he(oe,B),ye||Re||(ye=!0,i(me))),B},r.unstable_wrapCallback=function(B){var ee=ke;return function(){var Z=ke;ke=ee;try{return B.apply(this,arguments)}finally{ke=Z}}}})(Oi)),Oi}var _l;function Mc(){return _l||(_l=1,Li.exports=zc()),Li.exports}var Il;function Fc(){if(Il)return pt;Il=1;var r=Ni(),i=Ti(),o=Mc();function l(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."}if(!r)throw Error(l(227));var a=new Set,d={};function m(e,t){v(e,t),v(e+"Capture",t)}function v(e,t){for(d[e]=t,e=0;e<t.length;e++)a.add(t[e])}var y=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),C=/^[: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]*$/,E=Object.prototype.hasOwnProperty,L={},F={};function M(e){return E.call(F,e)?!0:E.call(L,e)?!1:C.test(e)?F[e]=!0:(L[e]=!0,!1)}function V(e,t,n,s){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function R(e,t,n,s){if(t===null||typeof t>"u"||V(e,t,n,s))return!0;if(s)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function O(e,t,n,s,u,f,p){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=u,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=f,this.removeEmptyString=p}var J={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){J[e]=new O(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];J[t]=new O(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){J[e]=new O(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){J[e]=new O(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){J[e]=new O(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){J[e]=new O(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){J[e]=new O(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){J[e]=new O(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){J[e]=new O(e,5,!1,e.toLowerCase(),null,!1,!1)});var X=/[\-:]([a-z])/g;function fe(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(X,fe);J[t]=new O(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(X,fe);J[t]=new O(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(X,fe);J[t]=new O(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){J[e]=new O(e,1,!1,e.toLowerCase(),null,!1,!1)}),J.xlinkHref=new O("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){J[e]=new O(e,1,!1,e.toLowerCase(),null,!0,!0)});function de(e,t,n,s){var u=J.hasOwnProperty(t)?J[t]:null,f=u!==null?u.type===0:s?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");f||(R(t,n,u,s)&&(n=null),s||u===null?M(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):u.mustUseProperty?e[u.propertyName]=n===null?u.type===3?!1:"":n:(t=u.attributeName,s=u.attributeNamespace,n===null?e.removeAttribute(t):(u=u.type,n=u===3||u===4&&n===!0?"":""+n,s?e.setAttributeNS(s,t,n):e.setAttribute(t,n))))}var he=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ae=60103,ue=60106,q=60107,oe=60108,Pe=60114,xe=60109,Ee=60110,ke=60112,Re=60113,ye=60120,De=60115,A=60116,Q=60121,me=60128,je=60129,B=60130,ee=60131;if(typeof Symbol=="function"&&Symbol.for){var Z=Symbol.for;ae=Z("react.element"),ue=Z("react.portal"),q=Z("react.fragment"),oe=Z("react.strict_mode"),Pe=Z("react.profiler"),xe=Z("react.provider"),Ee=Z("react.context"),ke=Z("react.forward_ref"),Re=Z("react.suspense"),ye=Z("react.suspense_list"),De=Z("react.memo"),A=Z("react.lazy"),Q=Z("react.block"),Z("react.scope"),me=Z("react.opaque.id"),je=Z("react.debug_trace_mode"),B=Z("react.offscreen"),ee=Z("react.legacy_hidden")}var K=typeof Symbol=="function"&&Symbol.iterator;function ne(e){return e===null||typeof e!="object"?null:(e=K&&e[K]||e["@@iterator"],typeof e=="function"?e:null)}var _e;function Qe(e){if(_e===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);_e=t&&t[1]||""}return`
2
- `+_e+e}var Tt=!1;function gt(e,t){if(!e||Tt)return"";Tt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch($){var s=$}Reflect.construct(e,[],t)}else{try{t.call()}catch($){s=$}e.call(t.prototype)}else{try{throw Error()}catch($){s=$}e()}}catch($){if($&&s&&typeof $.stack=="string"){for(var u=$.stack.split(`
3
- `),f=s.stack.split(`
4
- `),p=u.length-1,w=f.length-1;1<=p&&0<=w&&u[p]!==f[w];)w--;for(;1<=p&&0<=w;p--,w--)if(u[p]!==f[w]){if(p!==1||w!==1)do if(p--,w--,0>w||u[p]!==f[w])return`
5
- `+u[p].replace(" at new "," at ");while(1<=p&&0<=w);break}}}finally{Tt=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Qe(e):""}function Zi(e){switch(e.tag){case 5:return Qe(e.type);case 16:return Qe("Lazy");case 13:return Qe("Suspense");case 19:return Qe("SuspenseList");case 0:case 2:case 15:return e=gt(e.type,!1),e;case 11:return e=gt(e.type.render,!1),e;case 22:return e=gt(e.type._render,!1),e;case 1:return e=gt(e.type,!0),e;default:return""}}function Vt(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case q:return"Fragment";case ue:return"Portal";case Pe:return"Profiler";case oe:return"StrictMode";case Re:return"Suspense";case ye:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ee:return(e.displayName||"Context")+".Consumer";case xe:return(e._context.displayName||"Context")+".Provider";case ke:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case De:return Vt(e.type);case Q:return Vt(e._render);case A:t=e._payload,e=e._init;try{return Vt(e(t))}catch{}}return null}function jt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Tn(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gi(e){var t=Tn(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var u=n.get,f=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(p){s=""+p,f.call(this,p)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(p){s=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Rt(e){e._valueTracker||(e._valueTracker=Gi(e))}function Pr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=Tn(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function S(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function c(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function h(e,t){var n=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;n=jt(t.value!=null?t.value:n),e._wrapperState={initialChecked:s,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function g(e,t){t=t.checked,t!=null&&de(e,"checked",t,!1)}function x(e,t){g(e,t);var n=jt(t.value),s=t.type;if(n!=null)s==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?j(e,t.type,n):t.hasOwnProperty("defaultValue")&&j(e,t.type,jt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function k(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!(s!=="submit"&&s!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function j(e,t,n){(t!=="number"||S(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function I(e){var t="";return r.Children.forEach(e,function(n){n!=null&&(t+=n)}),t}function z(e,t){return e=i({children:void 0},t),(t=I(t.children))&&(e.children=t),e}function b(e,t,n,s){if(e=e.options,t){t={};for(var u=0;u<n.length;u++)t["$"+n[u]]=!0;for(n=0;n<e.length;n++)u=t.hasOwnProperty("$"+e[n].value),e[n].selected!==u&&(e[n].selected=u),u&&s&&(e[n].defaultSelected=!0)}else{for(n=""+jt(n),t=null,u=0;u<e.length;u++){if(e[u].value===n){e[u].selected=!0,s&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Y(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(l(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function re(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(l(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(l(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:jt(n)}}function U(e,t){var n=jt(t.value),s=jt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),s!=null&&(e.defaultValue=""+s)}function pe(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var Le={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function Ve(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ie(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ve(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Je,Xe=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,s,u){MSApp.execUnsafeLocalFunction(function(){return e(t,n,s,u)})}:e})(function(e,t){if(e.namespaceURI!==Le.svg||"innerHTML"in e)e.innerHTML=t;else{for(Je=Je||document.createElement("div"),Je.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Je.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Nt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ze={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},lt=["Webkit","ms","Moz","O"];Object.keys(ze).forEach(function(e){lt.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ze[t]=ze[e]})});function at(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ze.hasOwnProperty(e)&&ze[e]?(""+t).trim():t+"px"}function Ze(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var s=n.indexOf("--")===0,u=at(n,t[n],s);n==="float"&&(n="cssFloat"),s?e.setProperty(n,u):e[n]=u}}var Xn=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Er(e,t){if(t){if(Xn[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(l(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(l(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(l(61))}if(t.style!=null&&typeof t.style!="object")throw Error(l(62))}}function Zn(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ht(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ts=null,en=null,vt=null;function tn(e){if(e=Qr(e)){if(typeof Ts!="function")throw Error(l(280));var t=e.stateNode;t&&(t=Ks(t),Ts(e.stateNode,e.type,t))}}function jn(e){en?vt?vt.push(e):vt=[e]:en=e}function Tr(){if(en){var e=en,t=vt;if(vt=en=null,tn(e),t)for(e=0;e<t.length;e++)tn(t[e])}}function qe(e,t){return e(t)}function _t(e,t,n,s,u){return e(t,n,s,u)}function bt(){}var jr=qe,Nn=!1,qi=!1;function eo(){(en!==null||vt!==null)&&(bt(),Tr())}function sd(e,t,n){if(qi)return e(t,n);qi=!0;try{return jr(e,t,n)}finally{qi=!1,eo()}}function Nr(e,t){var n=e.stateNode;if(n===null)return null;var s=Ks(n);if(s===null)return null;n=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(l(231,t,typeof n));return n}var to=!1;if(y)try{var Ar={};Object.defineProperty(Ar,"passive",{get:function(){to=!0}}),window.addEventListener("test",Ar,Ar),window.removeEventListener("test",Ar,Ar)}catch{to=!1}function id(e,t,n,s,u,f,p,w,$){var _=Array.prototype.slice.call(arguments,3);try{t.apply(n,_)}catch(te){this.onError(te)}}var Lr=!1,js=null,Ns=!1,no=null,od={onError:function(e){Lr=!0,js=e}};function ld(e,t,n,s,u,f,p,w,$){Lr=!1,js=null,id.apply(od,arguments)}function ud(e,t,n,s,u,f,p,w,$){if(ld.apply(this,arguments),Lr){if(Lr){var _=js;Lr=!1,js=null}else throw Error(l(198));Ns||(Ns=!0,no=_)}}function An(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&1026)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function mu(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function yu(e){if(An(e)!==e)throw Error(l(188))}function ad(e){var t=e.alternate;if(!t){if(t=An(e),t===null)throw Error(l(188));return t!==e?null:e}for(var n=e,s=t;;){var u=n.return;if(u===null)break;var f=u.alternate;if(f===null){if(s=u.return,s!==null){n=s;continue}break}if(u.child===f.child){for(f=u.child;f;){if(f===n)return yu(u),e;if(f===s)return yu(u),t;f=f.sibling}throw Error(l(188))}if(n.return!==s.return)n=u,s=f;else{for(var p=!1,w=u.child;w;){if(w===n){p=!0,n=u,s=f;break}if(w===s){p=!0,s=u,n=f;break}w=w.sibling}if(!p){for(w=f.child;w;){if(w===n){p=!0,n=f,s=u;break}if(w===s){p=!0,s=f,n=u;break}w=w.sibling}if(!p)throw Error(l(189))}}if(n.alternate!==s)throw Error(l(190))}if(n.tag!==3)throw Error(l(188));return n.stateNode.current===n?e:t}function vu(e){if(e=ad(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function wu(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var xu,ro,Su,ku,so=!1,It=[],nn=null,rn=null,sn=null,Or=new Map,Rr=new Map,_r=[],Cu="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function io(e,t,n,s,u){return{blockedOn:e,domEventName:t,eventSystemFlags:n|16,nativeEvent:u,targetContainers:[s]}}function $u(e,t){switch(e){case"focusin":case"focusout":nn=null;break;case"dragenter":case"dragleave":rn=null;break;case"mouseover":case"mouseout":sn=null;break;case"pointerover":case"pointerout":Or.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rr.delete(t.pointerId)}}function Ir(e,t,n,s,u,f){return e===null||e.nativeEvent!==f?(e=io(t,n,s,u,f),t!==null&&(t=Qr(t),t!==null&&ro(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function cd(e,t,n,s,u){switch(t){case"focusin":return nn=Ir(nn,e,t,n,s,u),!0;case"dragenter":return rn=Ir(rn,e,t,n,s,u),!0;case"mouseover":return sn=Ir(sn,e,t,n,s,u),!0;case"pointerover":var f=u.pointerId;return Or.set(f,Ir(Or.get(f)||null,e,t,n,s,u)),!0;case"gotpointercapture":return f=u.pointerId,Rr.set(f,Ir(Rr.get(f)||null,e,t,n,s,u)),!0}return!1}function fd(e){var t=Ln(e.target);if(t!==null){var n=An(t);if(n!==null){if(t=n.tag,t===13){if(t=mu(n),t!==null){e.blockedOn=t,ku(e.lanePriority,function(){o.unstable_runWithPriority(e.priority,function(){Su(n)})});return}}else if(t===3&&n.stateNode.hydrate){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function As(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=fo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null)return t=Qr(n),t!==null&&ro(t),e.blockedOn=n,!1;t.shift()}return!0}function Pu(e,t,n){As(e)&&n.delete(t)}function hd(){for(so=!1;0<It.length;){var e=It[0];if(e.blockedOn!==null){e=Qr(e.blockedOn),e!==null&&xu(e);break}for(var t=e.targetContainers;0<t.length;){var n=fo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null){e.blockedOn=n;break}t.shift()}e.blockedOn===null&&It.shift()}nn!==null&&As(nn)&&(nn=null),rn!==null&&As(rn)&&(rn=null),sn!==null&&As(sn)&&(sn=null),Or.forEach(Pu),Rr.forEach(Pu)}function zr(e,t){e.blockedOn===t&&(e.blockedOn=null,so||(so=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,hd)))}function Eu(e){function t(u){return zr(u,e)}if(0<It.length){zr(It[0],e);for(var n=1;n<It.length;n++){var s=It[n];s.blockedOn===e&&(s.blockedOn=null)}}for(nn!==null&&zr(nn,e),rn!==null&&zr(rn,e),sn!==null&&zr(sn,e),Or.forEach(t),Rr.forEach(t),n=0;n<_r.length;n++)s=_r[n],s.blockedOn===e&&(s.blockedOn=null);for(;0<_r.length&&(n=_r[0],n.blockedOn===null);)fd(n),n.blockedOn===null&&_r.shift()}function Ls(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Gn={animationend:Ls("Animation","AnimationEnd"),animationiteration:Ls("Animation","AnimationIteration"),animationstart:Ls("Animation","AnimationStart"),transitionend:Ls("Transition","TransitionEnd")},oo={},Tu={};y&&(Tu=document.createElement("div").style,"AnimationEvent"in window||(delete Gn.animationend.animation,delete Gn.animationiteration.animation,delete Gn.animationstart.animation),"TransitionEvent"in window||delete Gn.transitionend.transition);function Os(e){if(oo[e])return oo[e];if(!Gn[e])return e;var t=Gn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Tu)return oo[e]=t[n];return e}var ju=Os("animationend"),Nu=Os("animationiteration"),Au=Os("animationstart"),Lu=Os("transitionend"),Ou=new Map,lo=new Map,dd=["abort","abort",ju,"animationEnd",Nu,"animationIteration",Au,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Lu,"transitionEnd","waiting","waiting"];function uo(e,t){for(var n=0;n<e.length;n+=2){var s=e[n],u=e[n+1];u="on"+(u[0].toUpperCase()+u.slice(1)),lo.set(s,t),Ou.set(s,u),m(u,[s])}}var pd=o.unstable_now;pd();var Me=8;function qn(e){if((1&e)!==0)return Me=15,1;if((2&e)!==0)return Me=14,2;if((4&e)!==0)return Me=13,4;var t=24&e;return t!==0?(Me=12,t):(e&32)!==0?(Me=11,32):(t=192&e,t!==0?(Me=10,t):(e&256)!==0?(Me=9,256):(t=3584&e,t!==0?(Me=8,t):(e&4096)!==0?(Me=7,4096):(t=4186112&e,t!==0?(Me=6,t):(t=62914560&e,t!==0?(Me=5,t):e&67108864?(Me=4,67108864):(e&134217728)!==0?(Me=3,134217728):(t=805306368&e,t!==0?(Me=2,t):(1073741824&e)!==0?(Me=1,1073741824):(Me=8,e))))))}function gd(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function md(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(l(358,e))}}function Mr(e,t){var n=e.pendingLanes;if(n===0)return Me=0;var s=0,u=0,f=e.expiredLanes,p=e.suspendedLanes,w=e.pingedLanes;if(f!==0)s=f,u=Me=15;else if(f=n&134217727,f!==0){var $=f&~p;$!==0?(s=qn($),u=Me):(w&=f,w!==0&&(s=qn(w),u=Me))}else f=n&~p,f!==0?(s=qn(f),u=Me):w!==0&&(s=qn(w),u=Me);if(s===0)return 0;if(s=31-on(s),s=n&((0>s?0:1<<s)<<1)-1,t!==0&&t!==s&&(t&p)===0){if(qn(t),u<=Me)return t;Me=u}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0<t;)n=31-on(t),u=1<<n,s|=e[n],t&=~u;return s}function Ru(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Rs(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=er(24&~t),e===0?Rs(10,t):e;case 10:return e=er(192&~t),e===0?Rs(8,t):e;case 8:return e=er(3584&~t),e===0&&(e=er(4186112&~t),e===0&&(e=512)),e;case 2:return t=er(805306368&~t),t===0&&(t=268435456),t}throw Error(l(358,e))}function er(e){return e&-e}function ao(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function _s(e,t,n){e.pendingLanes|=t;var s=t-1;e.suspendedLanes&=s,e.pingedLanes&=s,e=e.eventTimes,t=31-on(t),e[t]=n}var on=Math.clz32?Math.clz32:wd,yd=Math.log,vd=Math.LN2;function wd(e){return e===0?32:31-(yd(e)/vd|0)|0}var xd=o.unstable_UserBlockingPriority,Sd=o.unstable_runWithPriority,Is=!0;function kd(e,t,n,s){Nn||bt();var u=co,f=Nn;Nn=!0;try{_t(u,e,t,n,s)}finally{(Nn=f)||eo()}}function Cd(e,t,n,s){Sd(xd,co.bind(null,e,t,n,s))}function co(e,t,n,s){if(Is){var u;if((u=(t&4)===0)&&0<It.length&&-1<Cu.indexOf(e))e=io(null,e,t,n,s),It.push(e);else{var f=fo(e,t,n,s);if(f===null)u&&$u(e,s);else{if(u){if(-1<Cu.indexOf(e)){e=io(f,e,t,n,s),It.push(e);return}if(cd(f,e,t,n,s))return;$u(e,s)}ua(e,t,s,null,n)}}}}function fo(e,t,n,s){var u=Ht(s);if(u=Ln(u),u!==null){var f=An(u);if(f===null)u=null;else{var p=f.tag;if(p===13){if(u=mu(f),u!==null)return u;u=null}else if(p===3){if(f.stateNode.hydrate)return f.tag===3?f.stateNode.containerInfo:null;u=null}else f!==u&&(u=null)}}return ua(e,t,s,u,n),null}var ln=null,ho=null,zs=null;function _u(){if(zs)return zs;var e,t=ho,n=t.length,s,u="value"in ln?ln.value:ln.textContent,f=u.length;for(e=0;e<n&&t[e]===u[e];e++);var p=n-e;for(s=1;s<=p&&t[n-s]===u[f-s];s++);return zs=u.slice(e,1<s?1-s:void 0)}function Ms(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Fs(){return!0}function Iu(){return!1}function mt(e){function t(n,s,u,f,p){this._reactName=n,this._targetInst=u,this.type=s,this.nativeEvent=f,this.target=p,this.currentTarget=null;for(var w in e)e.hasOwnProperty(w)&&(n=e[w],this[w]=n?n(f):f[w]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?Fs:Iu,this.isPropagationStopped=Iu,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Fs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Fs)},persist:function(){},isPersistent:Fs}),t}var tr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},po=mt(tr),Fr=i({},tr,{view:0,detail:0}),$d=mt(Fr),go,mo,Dr,Ds=i({},Fr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vo,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Dr&&(Dr&&e.type==="mousemove"?(go=e.screenX-Dr.screenX,mo=e.screenY-Dr.screenY):mo=go=0,Dr=e),go)},movementY:function(e){return"movementY"in e?e.movementY:mo}}),zu=mt(Ds),Pd=i({},Ds,{dataTransfer:0}),Ed=mt(Pd),Td=i({},Fr,{relatedTarget:0}),yo=mt(Td),jd=i({},tr,{animationName:0,elapsedTime:0,pseudoElement:0}),Nd=mt(jd),Ad=i({},tr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ld=mt(Ad),Od=i({},tr,{data:0}),Mu=mt(Od),Rd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_d={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Id={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zd(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Id[e])?!!t[e]:!1}function vo(){return zd}var Md=i({},Fr,{key:function(e){if(e.key){var t=Rd[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ms(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?_d[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vo,charCode:function(e){return e.type==="keypress"?Ms(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ms(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Fd=mt(Md),Dd=i({},Ds,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fu=mt(Dd),Ud=i({},Fr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vo}),Bd=mt(Ud),Vd=i({},tr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Hd=mt(Vd),bd=i({},Ds,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Kd=mt(bd),Wd=[9,13,27,32],wo=y&&"CompositionEvent"in window,Ur=null;y&&"documentMode"in document&&(Ur=document.documentMode);var Qd=y&&"TextEvent"in window&&!Ur,Du=y&&(!wo||Ur&&8<Ur&&11>=Ur),Uu=" ",Bu=!1;function Vu(e,t){switch(e){case"keyup":return Wd.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var nr=!1;function Yd(e,t){switch(e){case"compositionend":return Hu(t);case"keypress":return t.which!==32?null:(Bu=!0,Uu);case"textInput":return e=t.data,e===Uu&&Bu?null:e;default:return null}}function Jd(e,t){if(nr)return e==="compositionend"||!wo&&Vu(e,t)?(e=_u(),zs=ho=ln=null,nr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Du&&t.locale!=="ko"?null:t.data;default:return null}}var Xd={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function bu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Xd[e.type]:t==="textarea"}function Ku(e,t,n,s){jn(s),t=Bs(t,"onChange"),0<t.length&&(n=new po("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var Br=null,Vr=null;function Zd(e){ra(e,0)}function Us(e){var t=lr(e);if(Pr(t))return e}function Gd(e,t){if(e==="change")return t}var Wu=!1;if(y){var xo;if(y){var So="oninput"in document;if(!So){var Qu=document.createElement("div");Qu.setAttribute("oninput","return;"),So=typeof Qu.oninput=="function"}xo=So}else xo=!1;Wu=xo&&(!document.documentMode||9<document.documentMode)}function Yu(){Br&&(Br.detachEvent("onpropertychange",Ju),Vr=Br=null)}function Ju(e){if(e.propertyName==="value"&&Us(Vr)){var t=[];if(Ku(t,Vr,e,Ht(e)),e=Zd,Nn)e(t);else{Nn=!0;try{qe(e,t)}finally{Nn=!1,eo()}}}}function qd(e,t,n){e==="focusin"?(Yu(),Br=t,Vr=n,Br.attachEvent("onpropertychange",Ju)):e==="focusout"&&Yu()}function ep(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Us(Vr)}function tp(e,t){if(e==="click")return Us(t)}function np(e,t){if(e==="input"||e==="change")return Us(t)}function rp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wt=typeof Object.is=="function"?Object.is:rp,sp=Object.prototype.hasOwnProperty;function Hr(e,t){if(wt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++)if(!sp.call(t,n[s])||!wt(e[n[s]],t[n[s]]))return!1;return!0}function Xu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Zu(e,t){var n=Xu(e);e=0;for(var s;n;){if(n.nodeType===3){if(s=e+n.textContent.length,e<=t&&s>=t)return{node:n,offset:t-e};e=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Xu(n)}}function Gu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Gu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qu(){for(var e=window,t=S();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=S(e.document)}return t}function ko(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var ip=y&&"documentMode"in document&&11>=document.documentMode,rr=null,Co=null,br=null,$o=!1;function ea(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;$o||rr==null||rr!==S(s)||(s=rr,"selectionStart"in s&&ko(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),br&&Hr(br,s)||(br=s,s=Bs(Co,"onSelect"),0<s.length&&(t=new po("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=rr)))}uo("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),uo("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),uo(dd,2);for(var ta="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Po=0;Po<ta.length;Po++)lo.set(ta[Po],0);v("onMouseEnter",["mouseout","mouseover"]),v("onMouseLeave",["mouseout","mouseover"]),v("onPointerEnter",["pointerout","pointerover"]),v("onPointerLeave",["pointerout","pointerover"]),m("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),m("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),m("onBeforeInput",["compositionend","keypress","textInput","paste"]),m("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),m("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),m("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Kr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),op=new Set("cancel close invalid load scroll toggle".split(" ").concat(Kr));function na(e,t,n){var s=e.type||"unknown-event";e.currentTarget=n,ud(s,t,void 0,e),e.currentTarget=null}function ra(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var s=e[n],u=s.event;s=s.listeners;e:{var f=void 0;if(t)for(var p=s.length-1;0<=p;p--){var w=s[p],$=w.instance,_=w.currentTarget;if(w=w.listener,$!==f&&u.isPropagationStopped())break e;na(u,w,_),f=$}else for(p=0;p<s.length;p++){if(w=s[p],$=w.instance,_=w.currentTarget,w=w.listener,$!==f&&u.isPropagationStopped())break e;na(u,w,_),f=$}}}if(Ns)throw e=no,Ns=!1,no=null,e}function Ue(e,t){var n=pa(t),s=e+"__bubble";n.has(s)||(la(t,e,2,!1),n.add(s))}var sa="_reactListening"+Math.random().toString(36).slice(2);function ia(e){e[sa]||(e[sa]=!0,a.forEach(function(t){op.has(t)||oa(t,!1,e,null),oa(t,!0,e,null)}))}function oa(e,t,n,s){var u=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,f=n;e==="selectionchange"&&n.nodeType!==9&&(f=n.ownerDocument);var p=pa(f),w=e+"__"+(t?"capture":"bubble");p.has(w)||(t&&(u|=4),la(f,e,u,t),p.add(w))}function la(e,t,n,s){var u=lo.get(t);switch(u===void 0?2:u){case 0:u=kd;break;case 1:u=Cd;break;default:u=co}n=u.bind(null,t,n,e),u=void 0,!to||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),s?u!==void 0?e.addEventListener(t,n,{capture:!0,passive:u}):e.addEventListener(t,n,!0):u!==void 0?e.addEventListener(t,n,{passive:u}):e.addEventListener(t,n,!1)}function ua(e,t,n,s,u){var f=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var p=s.tag;if(p===3||p===4){var w=s.stateNode.containerInfo;if(w===u||w.nodeType===8&&w.parentNode===u)break;if(p===4)for(p=s.return;p!==null;){var $=p.tag;if(($===3||$===4)&&($=p.stateNode.containerInfo,$===u||$.nodeType===8&&$.parentNode===u))return;p=p.return}for(;w!==null;){if(p=Ln(w),p===null)return;if($=p.tag,$===5||$===6){s=f=p;continue e}w=w.parentNode}}s=s.return}sd(function(){var _=f,te=Ht(n),Se=[];e:{var W=Ou.get(e);if(W!==void 0){var ce=po,we=e;switch(e){case"keypress":if(Ms(n)===0)break e;case"keydown":case"keyup":ce=Fd;break;case"focusin":we="focus",ce=yo;break;case"focusout":we="blur",ce=yo;break;case"beforeblur":case"afterblur":ce=yo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ce=zu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ce=Ed;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ce=Bd;break;case ju:case Nu:case Au:ce=Nd;break;case Lu:ce=Hd;break;case"scroll":ce=$d;break;case"wheel":ce=Kd;break;case"copy":case"cut":case"paste":ce=Ld;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ce=Fu}var ge=(t&4)!==0,N=!ge&&e==="scroll",P=ge?W!==null?W+"Capture":null:W;ge=[];for(var T=_,D;T!==null;){D=T;var H=D.stateNode;if(D.tag===5&&H!==null&&(D=H,P!==null&&(H=Nr(T,P),H!=null&&ge.push(Wr(T,H,D)))),N)break;T=T.return}0<ge.length&&(W=new ce(W,we,null,n,te),Se.push({event:W,listeners:ge}))}}if((t&7)===0){e:{if(W=e==="mouseover"||e==="pointerover",ce=e==="mouseout"||e==="pointerout",W&&(t&16)===0&&(we=n.relatedTarget||n.fromElement)&&(Ln(we)||we[or]))break e;if((ce||W)&&(W=te.window===te?te:(W=te.ownerDocument)?W.defaultView||W.parentWindow:window,ce?(we=n.relatedTarget||n.toElement,ce=_,we=we?Ln(we):null,we!==null&&(N=An(we),we!==N||we.tag!==5&&we.tag!==6)&&(we=null)):(ce=null,we=_),ce!==we)){if(ge=zu,H="onMouseLeave",P="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(ge=Fu,H="onPointerLeave",P="onPointerEnter",T="pointer"),N=ce==null?W:lr(ce),D=we==null?W:lr(we),W=new ge(H,T+"leave",ce,n,te),W.target=N,W.relatedTarget=D,H=null,Ln(te)===_&&(ge=new ge(P,T+"enter",we,n,te),ge.target=D,ge.relatedTarget=N,H=ge),N=H,ce&&we)t:{for(ge=ce,P=we,T=0,D=ge;D;D=sr(D))T++;for(D=0,H=P;H;H=sr(H))D++;for(;0<T-D;)ge=sr(ge),T--;for(;0<D-T;)P=sr(P),D--;for(;T--;){if(ge===P||P!==null&&ge===P.alternate)break t;ge=sr(ge),P=sr(P)}ge=null}else ge=null;ce!==null&&aa(Se,W,ce,ge,!1),we!==null&&N!==null&&aa(Se,N,we,ge,!0)}}e:{if(W=_?lr(_):window,ce=W.nodeName&&W.nodeName.toLowerCase(),ce==="select"||ce==="input"&&W.type==="file")var Ce=Gd;else if(bu(W))if(Wu)Ce=np;else{Ce=ep;var le=qd}else(ce=W.nodeName)&&ce.toLowerCase()==="input"&&(W.type==="checkbox"||W.type==="radio")&&(Ce=tp);if(Ce&&(Ce=Ce(e,_))){Ku(Se,Ce,n,te);break e}le&&le(e,W,_),e==="focusout"&&(le=W._wrapperState)&&le.controlled&&W.type==="number"&&j(W,"number",W.value)}switch(le=_?lr(_):window,e){case"focusin":(bu(le)||le.contentEditable==="true")&&(rr=le,Co=_,br=null);break;case"focusout":br=Co=rr=null;break;case"mousedown":$o=!0;break;case"contextmenu":case"mouseup":case"dragend":$o=!1,ea(Se,n,te);break;case"selectionchange":if(ip)break;case"keydown":case"keyup":ea(Se,n,te)}var $e;if(wo)e:{switch(e){case"compositionstart":var Ne="onCompositionStart";break e;case"compositionend":Ne="onCompositionEnd";break e;case"compositionupdate":Ne="onCompositionUpdate";break e}Ne=void 0}else nr?Vu(e,n)&&(Ne="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ne="onCompositionStart");Ne&&(Du&&n.locale!=="ko"&&(nr||Ne!=="onCompositionStart"?Ne==="onCompositionEnd"&&nr&&($e=_u()):(ln=te,ho="value"in ln?ln.value:ln.textContent,nr=!0)),le=Bs(_,Ne),0<le.length&&(Ne=new Mu(Ne,e,null,n,te),Se.push({event:Ne,listeners:le}),$e?Ne.data=$e:($e=Hu(n),$e!==null&&(Ne.data=$e)))),($e=Qd?Yd(e,n):Jd(e,n))&&(_=Bs(_,"onBeforeInput"),0<_.length&&(te=new Mu("onBeforeInput","beforeinput",null,n,te),Se.push({event:te,listeners:_}),te.data=$e))}ra(Se,t)})}function Wr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Bs(e,t){for(var n=t+"Capture",s=[];e!==null;){var u=e,f=u.stateNode;u.tag===5&&f!==null&&(u=f,f=Nr(e,n),f!=null&&s.unshift(Wr(e,f,u)),f=Nr(e,t),f!=null&&s.push(Wr(e,f,u))),e=e.return}return s}function sr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function aa(e,t,n,s,u){for(var f=t._reactName,p=[];n!==null&&n!==s;){var w=n,$=w.alternate,_=w.stateNode;if($!==null&&$===s)break;w.tag===5&&_!==null&&(w=_,u?($=Nr(n,f),$!=null&&p.unshift(Wr(n,$,w))):u||($=Nr(n,f),$!=null&&p.push(Wr(n,$,w)))),n=n.return}p.length!==0&&e.push({event:t,listeners:p})}function Vs(){}var Eo=null,To=null;function ca(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function jo(e,t){return e==="textarea"||e==="option"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var fa=typeof setTimeout=="function"?setTimeout:void 0,lp=typeof clearTimeout=="function"?clearTimeout:void 0;function No(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function ir(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function ha(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Ao=0;function up(e){return{$$typeof:me,toString:e,valueOf:e}}var Hs=Math.random().toString(36).slice(2),un="__reactFiber$"+Hs,bs="__reactProps$"+Hs,or="__reactContainer$"+Hs,da="__reactEvents$"+Hs;function Ln(e){var t=e[un];if(t)return t;for(var n=e.parentNode;n;){if(t=n[or]||n[un]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ha(e);e!==null;){if(n=e[un])return n;e=ha(e)}return t}e=n,n=e.parentNode}return null}function Qr(e){return e=e[un]||e[or],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function lr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(l(33))}function Ks(e){return e[bs]||null}function pa(e){var t=e[da];return t===void 0&&(t=e[da]=new Set),t}var Lo=[],ur=-1;function an(e){return{current:e}}function Be(e){0>ur||(e.current=Lo[ur],Lo[ur]=null,ur--)}function He(e,t){ur++,Lo[ur]=e.current,e.current=t}var cn={},rt=an(cn),ct=an(!1),On=cn;function ar(e,t){var n=e.type.contextTypes;if(!n)return cn;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var u={},f;for(f in n)u[f]=t[f];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=u),u}function ft(e){return e=e.childContextTypes,e!=null}function Ws(){Be(ct),Be(rt)}function ga(e,t,n){if(rt.current!==cn)throw Error(l(168));He(rt,t),He(ct,n)}function ma(e,t,n){var s=e.stateNode;if(e=t.childContextTypes,typeof s.getChildContext!="function")return n;s=s.getChildContext();for(var u in s)if(!(u in e))throw Error(l(108,Vt(t)||"Unknown",u));return i({},n,s)}function Qs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||cn,On=rt.current,He(rt,e),He(ct,ct.current),!0}function ya(e,t,n){var s=e.stateNode;if(!s)throw Error(l(169));n?(e=ma(e,t,On),s.__reactInternalMemoizedMergedChildContext=e,Be(ct),Be(rt),He(rt,e)):Be(ct),He(ct,n)}var Oo=null,Rn=null,ap=o.unstable_runWithPriority,Ro=o.unstable_scheduleCallback,_o=o.unstable_cancelCallback,cp=o.unstable_shouldYield,va=o.unstable_requestPaint,Io=o.unstable_now,fp=o.unstable_getCurrentPriorityLevel,Ys=o.unstable_ImmediatePriority,wa=o.unstable_UserBlockingPriority,xa=o.unstable_NormalPriority,Sa=o.unstable_LowPriority,ka=o.unstable_IdlePriority,zo={},hp=va!==void 0?va:function(){},Kt=null,Js=null,Mo=!1,Ca=Io(),st=1e4>Ca?Io:function(){return Io()-Ca};function cr(){switch(fp()){case Ys:return 99;case wa:return 98;case xa:return 97;case Sa:return 96;case ka:return 95;default:throw Error(l(332))}}function $a(e){switch(e){case 99:return Ys;case 98:return wa;case 97:return xa;case 96:return Sa;case 95:return ka;default:throw Error(l(332))}}function _n(e,t){return e=$a(e),ap(e,t)}function Yr(e,t,n){return e=$a(e),Ro(e,t,n)}function zt(){if(Js!==null){var e=Js;Js=null,_o(e)}Pa()}function Pa(){if(!Mo&&Kt!==null){Mo=!0;var e=0;try{var t=Kt;_n(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(n!==null)}}),Kt=null}catch(n){throw Kt!==null&&(Kt=Kt.slice(e+1)),Ro(Ys,zt),n}finally{Mo=!1}}}var dp=he.ReactCurrentBatchConfig;function At(e,t){if(e&&e.defaultProps){t=i({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Xs=an(null),Zs=null,fr=null,Gs=null;function Fo(){Gs=fr=Zs=null}function Do(e){var t=Xs.current;Be(Xs),e.type._context._currentValue=t}function Ea(e,t){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)===t){if(n===null||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,n!==null&&(n.childLanes|=t);e=e.return}}function hr(e,t){Zs=e,Gs=fr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Lt=!0),e.firstContext=null)}function xt(e,t){if(Gs!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(Gs=e,t=1073741823),t={context:e,observedBits:t,next:null},fr===null){if(Zs===null)throw Error(l(308));fr=t,Zs.dependencies={lanes:0,firstContext:t,responders:null}}else fr=fr.next=t;return e._currentValue}var fn=!1;function Uo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function Ta(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function hn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function dn(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ja(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var u=null,f=null;if(n=n.firstBaseUpdate,n!==null){do{var p={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};f===null?u=f=p:f=f.next=p,n=n.next}while(n!==null);f===null?u=f=t:f=f.next=t}else u=f=t;n={baseState:s.baseState,firstBaseUpdate:u,lastBaseUpdate:f,shared:s.shared,effects:s.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Jr(e,t,n,s){var u=e.updateQueue;fn=!1;var f=u.firstBaseUpdate,p=u.lastBaseUpdate,w=u.shared.pending;if(w!==null){u.shared.pending=null;var $=w,_=$.next;$.next=null,p===null?f=_:p.next=_,p=$;var te=e.alternate;if(te!==null){te=te.updateQueue;var Se=te.lastBaseUpdate;Se!==p&&(Se===null?te.firstBaseUpdate=_:Se.next=_,te.lastBaseUpdate=$)}}if(f!==null){Se=u.baseState,p=0,te=_=$=null;do{w=f.lane;var W=f.eventTime;if((s&w)===w){te!==null&&(te=te.next={eventTime:W,lane:0,tag:f.tag,payload:f.payload,callback:f.callback,next:null});e:{var ce=e,we=f;switch(w=t,W=n,we.tag){case 1:if(ce=we.payload,typeof ce=="function"){Se=ce.call(W,Se,w);break e}Se=ce;break e;case 3:ce.flags=ce.flags&-4097|64;case 0:if(ce=we.payload,w=typeof ce=="function"?ce.call(W,Se,w):ce,w==null)break e;Se=i({},Se,w);break e;case 2:fn=!0}}f.callback!==null&&(e.flags|=32,w=u.effects,w===null?u.effects=[f]:w.push(f))}else W={eventTime:W,lane:w,tag:f.tag,payload:f.payload,callback:f.callback,next:null},te===null?(_=te=W,$=Se):te=te.next=W,p|=w;if(f=f.next,f===null){if(w=u.shared.pending,w===null)break;f=w.next,w.next=null,u.lastBaseUpdate=w,u.shared.pending=null}}while(!0);te===null&&($=Se),u.baseState=$,u.firstBaseUpdate=_,u.lastBaseUpdate=te,ls|=p,e.lanes=p,e.memoizedState=Se}}function Na(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var s=e[t],u=s.callback;if(u!==null){if(s.callback=null,s=n,typeof u!="function")throw Error(l(191,u));u.call(s)}}}var Aa=new r.Component().refs;function qs(e,t,n,s){t=e.memoizedState,n=n(s,t),n=n==null?t:i({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ei={isMounted:function(e){return(e=e._reactInternals)?An(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var s=yt(),u=mn(e),f=hn(s,u);f.payload=t,n!=null&&(f.callback=n),dn(e,f),yn(e,u,s)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=yt(),u=mn(e),f=hn(s,u);f.tag=1,f.payload=t,n!=null&&(f.callback=n),dn(e,f),yn(e,u,s)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=yt(),s=mn(e),u=hn(n,s);u.tag=2,t!=null&&(u.callback=t),dn(e,u),yn(e,s,n)}};function La(e,t,n,s,u,f,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,f,p):t.prototype&&t.prototype.isPureReactComponent?!Hr(n,s)||!Hr(u,f):!0}function Oa(e,t,n){var s=!1,u=cn,f=t.contextType;return typeof f=="object"&&f!==null?f=xt(f):(u=ft(t)?On:rt.current,s=t.contextTypes,f=(s=s!=null)?ar(e,u):cn),t=new t(n,f),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ei,e.stateNode=t,t._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=u,e.__reactInternalMemoizedMaskedChildContext=f),t}function Ra(e,t,n,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,s),t.state!==e&&ei.enqueueReplaceState(t,t.state,null)}function Bo(e,t,n,s){var u=e.stateNode;u.props=n,u.state=e.memoizedState,u.refs=Aa,Uo(e);var f=t.contextType;typeof f=="object"&&f!==null?u.context=xt(f):(f=ft(t)?On:rt.current,u.context=ar(e,f)),Jr(e,n,u,s),u.state=e.memoizedState,f=t.getDerivedStateFromProps,typeof f=="function"&&(qs(e,t,f,n),u.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(t=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),t!==u.state&&ei.enqueueReplaceState(u,u.state,null),Jr(e,n,u,s),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4)}var ti=Array.isArray;function Xr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(l(309));var s=n.stateNode}if(!s)throw Error(l(147,e));var u=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===u?t.ref:(t=function(f){var p=s.refs;p===Aa&&(p=s.refs={}),f===null?delete p[u]:p[u]=f},t._stringRef=u,t)}if(typeof e!="string")throw Error(l(284));if(!n._owner)throw Error(l(290,e))}return e}function ni(e,t){if(e.type!=="textarea")throw Error(l(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function _a(e){function t(N,P){if(e){var T=N.lastEffect;T!==null?(T.nextEffect=P,N.lastEffect=P):N.firstEffect=N.lastEffect=P,P.nextEffect=null,P.flags=8}}function n(N,P){if(!e)return null;for(;P!==null;)t(N,P),P=P.sibling;return null}function s(N,P){for(N=new Map;P!==null;)P.key!==null?N.set(P.key,P):N.set(P.index,P),P=P.sibling;return N}function u(N,P){return N=xn(N,P),N.index=0,N.sibling=null,N}function f(N,P,T){return N.index=T,e?(T=N.alternate,T!==null?(T=T.index,T<P?(N.flags=2,P):T):(N.flags=2,P)):P}function p(N){return e&&N.alternate===null&&(N.flags=2),N}function w(N,P,T,D){return P===null||P.tag!==6?(P=Cl(T,N.mode,D),P.return=N,P):(P=u(P,T),P.return=N,P)}function $(N,P,T,D){return P!==null&&P.elementType===T.type?(D=u(P,T.props),D.ref=Xr(N,P,T),D.return=N,D):(D=xi(T.type,T.key,T.props,null,N.mode,D),D.ref=Xr(N,P,T),D.return=N,D)}function _(N,P,T,D){return P===null||P.tag!==4||P.stateNode.containerInfo!==T.containerInfo||P.stateNode.implementation!==T.implementation?(P=$l(T,N.mode,D),P.return=N,P):(P=u(P,T.children||[]),P.return=N,P)}function te(N,P,T,D,H){return P===null||P.tag!==7?(P=xr(T,N.mode,D,H),P.return=N,P):(P=u(P,T),P.return=N,P)}function Se(N,P,T){if(typeof P=="string"||typeof P=="number")return P=Cl(""+P,N.mode,T),P.return=N,P;if(typeof P=="object"&&P!==null){switch(P.$$typeof){case ae:return T=xi(P.type,P.key,P.props,null,N.mode,T),T.ref=Xr(N,null,P),T.return=N,T;case ue:return P=$l(P,N.mode,T),P.return=N,P}if(ti(P)||ne(P))return P=xr(P,N.mode,T,null),P.return=N,P;ni(N,P)}return null}function W(N,P,T,D){var H=P!==null?P.key:null;if(typeof T=="string"||typeof T=="number")return H!==null?null:w(N,P,""+T,D);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case ae:return T.key===H?T.type===q?te(N,P,T.props.children,D,H):$(N,P,T,D):null;case ue:return T.key===H?_(N,P,T,D):null}if(ti(T)||ne(T))return H!==null?null:te(N,P,T,D,null);ni(N,T)}return null}function ce(N,P,T,D,H){if(typeof D=="string"||typeof D=="number")return N=N.get(T)||null,w(P,N,""+D,H);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case ae:return N=N.get(D.key===null?T:D.key)||null,D.type===q?te(P,N,D.props.children,H,D.key):$(P,N,D,H);case ue:return N=N.get(D.key===null?T:D.key)||null,_(P,N,D,H)}if(ti(D)||ne(D))return N=N.get(T)||null,te(P,N,D,H,null);ni(P,D)}return null}function we(N,P,T,D){for(var H=null,Ce=null,le=P,$e=P=0,Ne=null;le!==null&&$e<T.length;$e++){le.index>$e?(Ne=le,le=null):Ne=le.sibling;var Te=W(N,le,T[$e],D);if(Te===null){le===null&&(le=Ne);break}e&&le&&Te.alternate===null&&t(N,le),P=f(Te,P,$e),Ce===null?H=Te:Ce.sibling=Te,Ce=Te,le=Ne}if($e===T.length)return n(N,le),H;if(le===null){for(;$e<T.length;$e++)le=Se(N,T[$e],D),le!==null&&(P=f(le,P,$e),Ce===null?H=le:Ce.sibling=le,Ce=le);return H}for(le=s(N,le);$e<T.length;$e++)Ne=ce(le,N,$e,T[$e],D),Ne!==null&&(e&&Ne.alternate!==null&&le.delete(Ne.key===null?$e:Ne.key),P=f(Ne,P,$e),Ce===null?H=Ne:Ce.sibling=Ne,Ce=Ne);return e&&le.forEach(function(Sn){return t(N,Sn)}),H}function ge(N,P,T,D){var H=ne(T);if(typeof H!="function")throw Error(l(150));if(T=H.call(T),T==null)throw Error(l(151));for(var Ce=H=null,le=P,$e=P=0,Ne=null,Te=T.next();le!==null&&!Te.done;$e++,Te=T.next()){le.index>$e?(Ne=le,le=null):Ne=le.sibling;var Sn=W(N,le,Te.value,D);if(Sn===null){le===null&&(le=Ne);break}e&&le&&Sn.alternate===null&&t(N,le),P=f(Sn,P,$e),Ce===null?H=Sn:Ce.sibling=Sn,Ce=Sn,le=Ne}if(Te.done)return n(N,le),H;if(le===null){for(;!Te.done;$e++,Te=T.next())Te=Se(N,Te.value,D),Te!==null&&(P=f(Te,P,$e),Ce===null?H=Te:Ce.sibling=Te,Ce=Te);return H}for(le=s(N,le);!Te.done;$e++,Te=T.next())Te=ce(le,N,$e,Te.value,D),Te!==null&&(e&&Te.alternate!==null&&le.delete(Te.key===null?$e:Te.key),P=f(Te,P,$e),Ce===null?H=Te:Ce.sibling=Te,Ce=Te);return e&&le.forEach(function(bp){return t(N,bp)}),H}return function(N,P,T,D){var H=typeof T=="object"&&T!==null&&T.type===q&&T.key===null;H&&(T=T.props.children);var Ce=typeof T=="object"&&T!==null;if(Ce)switch(T.$$typeof){case ae:e:{for(Ce=T.key,H=P;H!==null;){if(H.key===Ce){switch(H.tag){case 7:if(T.type===q){n(N,H.sibling),P=u(H,T.props.children),P.return=N,N=P;break e}break;default:if(H.elementType===T.type){n(N,H.sibling),P=u(H,T.props),P.ref=Xr(N,H,T),P.return=N,N=P;break e}}n(N,H);break}else t(N,H);H=H.sibling}T.type===q?(P=xr(T.props.children,N.mode,D,T.key),P.return=N,N=P):(D=xi(T.type,T.key,T.props,null,N.mode,D),D.ref=Xr(N,P,T),D.return=N,N=D)}return p(N);case ue:e:{for(H=T.key;P!==null;){if(P.key===H)if(P.tag===4&&P.stateNode.containerInfo===T.containerInfo&&P.stateNode.implementation===T.implementation){n(N,P.sibling),P=u(P,T.children||[]),P.return=N,N=P;break e}else{n(N,P);break}else t(N,P);P=P.sibling}P=$l(T,N.mode,D),P.return=N,N=P}return p(N)}if(typeof T=="string"||typeof T=="number")return T=""+T,P!==null&&P.tag===6?(n(N,P.sibling),P=u(P,T),P.return=N,N=P):(n(N,P),P=Cl(T,N.mode,D),P.return=N,N=P),p(N);if(ti(T))return we(N,P,T,D);if(ne(T))return ge(N,P,T,D);if(Ce&&ni(N,T),typeof T>"u"&&!H)switch(N.tag){case 1:case 22:case 0:case 11:case 15:throw Error(l(152,Vt(N.type)||"Component"))}return n(N,P)}}var ri=_a(!0),Ia=_a(!1),Zr={},Mt=an(Zr),Gr=an(Zr),qr=an(Zr);function In(e){if(e===Zr)throw Error(l(174));return e}function Vo(e,t){switch(He(qr,t),He(Gr,e),He(Mt,Zr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ie(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ie(t,e)}Be(Mt),He(Mt,t)}function dr(){Be(Mt),Be(Gr),Be(qr)}function za(e){In(qr.current);var t=In(Mt.current),n=Ie(t,e.type);t!==n&&(He(Gr,e),He(Mt,n))}function Ho(e){Gr.current===e&&(Be(Mt),Be(Gr))}var be=an(0);function si(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&64)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Wt=null,pn=null,Ft=!1;function Ma(e,t){var n=Ct(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Fa(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function bo(e){if(Ft){var t=pn;if(t){var n=t;if(!Fa(e,t)){if(t=ir(n.nextSibling),!t||!Fa(e,t)){e.flags=e.flags&-1025|2,Ft=!1,Wt=e;return}Ma(Wt,n)}Wt=e,pn=ir(t.firstChild)}else e.flags=e.flags&-1025|2,Ft=!1,Wt=e}}function Da(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Wt=e}function ii(e){if(e!==Wt)return!1;if(!Ft)return Da(e),Ft=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!jo(t,e.memoizedProps))for(t=pn;t;)Ma(e,t),t=ir(t.nextSibling);if(Da(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){pn=ir(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}pn=null}}else pn=Wt?ir(e.stateNode.nextSibling):null;return!0}function Ko(){pn=Wt=null,Ft=!1}var pr=[];function Wo(){for(var e=0;e<pr.length;e++)pr[e]._workInProgressVersionPrimary=null;pr.length=0}var es=he.ReactCurrentDispatcher,St=he.ReactCurrentBatchConfig,ts=0,We=null,it=null,et=null,oi=!1,ns=!1;function ht(){throw Error(l(321))}function Qo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!wt(e[n],t[n]))return!1;return!0}function Yo(e,t,n,s,u,f){if(ts=f,We=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,es.current=e===null||e.memoizedState===null?gp:mp,e=n(s,u),ns){f=0;do{if(ns=!1,!(25>f))throw Error(l(301));f+=1,et=it=null,t.updateQueue=null,es.current=yp,e=n(s,u)}while(ns)}if(es.current=ci,t=it!==null&&it.next!==null,ts=0,et=it=We=null,oi=!1,t)throw Error(l(300));return e}function zn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return et===null?We.memoizedState=et=e:et=et.next=e,et}function Mn(){if(it===null){var e=We.alternate;e=e!==null?e.memoizedState:null}else e=it.next;var t=et===null?We.memoizedState:et.next;if(t!==null)et=t,it=e;else{if(e===null)throw Error(l(310));it=e,e={memoizedState:it.memoizedState,baseState:it.baseState,baseQueue:it.baseQueue,queue:it.queue,next:null},et===null?We.memoizedState=et=e:et=et.next=e}return et}function Dt(e,t){return typeof t=="function"?t(e):t}function rs(e){var t=Mn(),n=t.queue;if(n===null)throw Error(l(311));n.lastRenderedReducer=e;var s=it,u=s.baseQueue,f=n.pending;if(f!==null){if(u!==null){var p=u.next;u.next=f.next,f.next=p}s.baseQueue=u=f,n.pending=null}if(u!==null){u=u.next,s=s.baseState;var w=p=f=null,$=u;do{var _=$.lane;if((ts&_)===_)w!==null&&(w=w.next={lane:0,action:$.action,eagerReducer:$.eagerReducer,eagerState:$.eagerState,next:null}),s=$.eagerReducer===e?$.eagerState:e(s,$.action);else{var te={lane:_,action:$.action,eagerReducer:$.eagerReducer,eagerState:$.eagerState,next:null};w===null?(p=w=te,f=s):w=w.next=te,We.lanes|=_,ls|=_}$=$.next}while($!==null&&$!==u);w===null?f=s:w.next=p,wt(s,t.memoizedState)||(Lt=!0),t.memoizedState=s,t.baseState=f,t.baseQueue=w,n.lastRenderedState=s}return[t.memoizedState,n.dispatch]}function ss(e){var t=Mn(),n=t.queue;if(n===null)throw Error(l(311));n.lastRenderedReducer=e;var s=n.dispatch,u=n.pending,f=t.memoizedState;if(u!==null){n.pending=null;var p=u=u.next;do f=e(f,p.action),p=p.next;while(p!==u);wt(f,t.memoizedState)||(Lt=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),n.lastRenderedState=f}return[f,s]}function Ua(e,t,n){var s=t._getVersion;s=s(t._source);var u=t._workInProgressVersionPrimary;if(u!==null?e=u===s:(e=e.mutableReadLanes,(e=(ts&e)===e)&&(t._workInProgressVersionPrimary=s,pr.push(t))),e)return n(t._source);throw pr.push(t),Error(l(350))}function Ba(e,t,n,s){var u=ut;if(u===null)throw Error(l(349));var f=t._getVersion,p=f(t._source),w=es.current,$=w.useState(function(){return Ua(u,t,n)}),_=$[1],te=$[0];$=et;var Se=e.memoizedState,W=Se.refs,ce=W.getSnapshot,we=Se.source;Se=Se.subscribe;var ge=We;return e.memoizedState={refs:W,source:t,subscribe:s},w.useEffect(function(){W.getSnapshot=n,W.setSnapshot=_;var N=f(t._source);if(!wt(p,N)){N=n(t._source),wt(te,N)||(_(N),N=mn(ge),u.mutableReadLanes|=N&u.pendingLanes),N=u.mutableReadLanes,u.entangledLanes|=N;for(var P=u.entanglements,T=N;0<T;){var D=31-on(T),H=1<<D;P[D]|=N,T&=~H}}},[n,t,s]),w.useEffect(function(){return s(t._source,function(){var N=W.getSnapshot,P=W.setSnapshot;try{P(N(t._source));var T=mn(ge);u.mutableReadLanes|=T&u.pendingLanes}catch(D){P(function(){throw D})}})},[t,s]),wt(ce,n)&&wt(we,t)&&wt(Se,s)||(e={pending:null,dispatch:null,lastRenderedReducer:Dt,lastRenderedState:te},e.dispatch=_=Go.bind(null,We,e),$.queue=e,$.baseQueue=null,te=Ua(u,t,n),$.memoizedState=$.baseState=te),te}function Va(e,t,n){var s=Mn();return Ba(s,e,t,n)}function is(e){var t=zn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Dt,lastRenderedState:e},e=e.dispatch=Go.bind(null,We,e),[t.memoizedState,e]}function li(e,t,n,s){return e={tag:e,create:t,destroy:n,deps:s,next:null},t=We.updateQueue,t===null?(t={lastEffect:null},We.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(s=n.next,n.next=e,e.next=s,t.lastEffect=e)),e}function Ha(e){var t=zn();return e={current:e},t.memoizedState=e}function ui(){return Mn().memoizedState}function Jo(e,t,n,s){var u=zn();We.flags|=e,u.memoizedState=li(1|t,n,void 0,s===void 0?null:s)}function Xo(e,t,n,s){var u=Mn();s=s===void 0?null:s;var f=void 0;if(it!==null){var p=it.memoizedState;if(f=p.destroy,s!==null&&Qo(s,p.deps)){li(t,n,f,s);return}}We.flags|=e,u.memoizedState=li(1|t,n,f,s)}function ba(e,t){return Jo(516,4,e,t)}function ai(e,t){return Xo(516,4,e,t)}function Ka(e,t){return Xo(4,2,e,t)}function Wa(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Qa(e,t,n){return n=n!=null?n.concat([e]):null,Xo(4,2,Wa.bind(null,t,e),n)}function Zo(){}function Ya(e,t){var n=Mn();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&Qo(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function Ja(e,t){var n=Mn();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&Qo(t,s[1])?s[0]:(e=e(),n.memoizedState=[e,t],e)}function pp(e,t){var n=cr();_n(98>n?98:n,function(){e(!0)}),_n(97<n?97:n,function(){var s=St.transition;St.transition=1;try{e(!1),t()}finally{St.transition=s}})}function Go(e,t,n){var s=yt(),u=mn(e),f={lane:u,action:n,eagerReducer:null,eagerState:null,next:null},p=t.pending;if(p===null?f.next=f:(f.next=p.next,p.next=f),t.pending=f,p=e.alternate,e===We||p!==null&&p===We)ns=oi=!0;else{if(e.lanes===0&&(p===null||p.lanes===0)&&(p=t.lastRenderedReducer,p!==null))try{var w=t.lastRenderedState,$=p(w,n);if(f.eagerReducer=p,f.eagerState=$,wt($,w))return}catch{}yn(e,u,s)}}var ci={readContext:xt,useCallback:ht,useContext:ht,useEffect:ht,useImperativeHandle:ht,useLayoutEffect:ht,useMemo:ht,useReducer:ht,useRef:ht,useState:ht,useDebugValue:ht,useDeferredValue:ht,useTransition:ht,useMutableSource:ht,useOpaqueIdentifier:ht,unstable_isNewReconciler:!1},gp={readContext:xt,useCallback:function(e,t){return zn().memoizedState=[e,t===void 0?null:t],e},useContext:xt,useEffect:ba,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Jo(4,2,Wa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Jo(4,2,e,t)},useMemo:function(e,t){var n=zn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var s=zn();return t=n!==void 0?n(t):t,s.memoizedState=s.baseState=t,e=s.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=Go.bind(null,We,e),[s.memoizedState,e]},useRef:Ha,useState:is,useDebugValue:Zo,useDeferredValue:function(e){var t=is(e),n=t[0],s=t[1];return ba(function(){var u=St.transition;St.transition=1;try{s(e)}finally{St.transition=u}},[e]),n},useTransition:function(){var e=is(!1),t=e[0];return e=pp.bind(null,e[1]),Ha(e),[e,t]},useMutableSource:function(e,t,n){var s=zn();return s.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},Ba(s,e,t,n)},useOpaqueIdentifier:function(){if(Ft){var e=!1,t=up(function(){throw e||(e=!0,n("r:"+(Ao++).toString(36))),Error(l(355))}),n=is(t)[1];return(We.mode&2)===0&&(We.flags|=516,li(5,function(){n("r:"+(Ao++).toString(36))},void 0,null)),t}return t="r:"+(Ao++).toString(36),is(t),t},unstable_isNewReconciler:!1},mp={readContext:xt,useCallback:Ya,useContext:xt,useEffect:ai,useImperativeHandle:Qa,useLayoutEffect:Ka,useMemo:Ja,useReducer:rs,useRef:ui,useState:function(){return rs(Dt)},useDebugValue:Zo,useDeferredValue:function(e){var t=rs(Dt),n=t[0],s=t[1];return ai(function(){var u=St.transition;St.transition=1;try{s(e)}finally{St.transition=u}},[e]),n},useTransition:function(){var e=rs(Dt)[0];return[ui().current,e]},useMutableSource:Va,useOpaqueIdentifier:function(){return rs(Dt)[0]},unstable_isNewReconciler:!1},yp={readContext:xt,useCallback:Ya,useContext:xt,useEffect:ai,useImperativeHandle:Qa,useLayoutEffect:Ka,useMemo:Ja,useReducer:ss,useRef:ui,useState:function(){return ss(Dt)},useDebugValue:Zo,useDeferredValue:function(e){var t=ss(Dt),n=t[0],s=t[1];return ai(function(){var u=St.transition;St.transition=1;try{s(e)}finally{St.transition=u}},[e]),n},useTransition:function(){var e=ss(Dt)[0];return[ui().current,e]},useMutableSource:Va,useOpaqueIdentifier:function(){return ss(Dt)[0]},unstable_isNewReconciler:!1},vp=he.ReactCurrentOwner,Lt=!1;function dt(e,t,n,s){t.child=e===null?Ia(t,null,n,s):ri(t,e.child,n,s)}function Xa(e,t,n,s,u){n=n.render;var f=t.ref;return hr(t,u),s=Yo(e,t,n,s,f,u),e!==null&&!Lt?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~u,Qt(e,t,u)):(t.flags|=1,dt(e,t,s,u),t.child)}function Za(e,t,n,s,u,f){if(e===null){var p=n.type;return typeof p=="function"&&!Sl(p)&&p.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=p,Ga(e,t,p,s,u,f)):(e=xi(n.type,null,s,t,t.mode,f),e.ref=t.ref,e.return=t,t.child=e)}return p=e.child,(u&f)===0&&(u=p.memoizedProps,n=n.compare,n=n!==null?n:Hr,n(u,s)&&e.ref===t.ref)?Qt(e,t,f):(t.flags|=1,e=xn(p,s),e.ref=t.ref,e.return=t,t.child=e)}function Ga(e,t,n,s,u,f){if(e!==null&&Hr(e.memoizedProps,s)&&e.ref===t.ref)if(Lt=!1,(f&u)!==0)(e.flags&16384)!==0&&(Lt=!0);else return t.lanes=e.lanes,Qt(e,t,f);return el(e,t,n,s,f)}function qo(e,t,n){var s=t.pendingProps,u=s.children,f=e!==null?e.memoizedState:null;if(s.mode==="hidden"||s.mode==="unstable-defer-without-hiding")if((t.mode&4)===0)t.memoizedState={baseLanes:0},wi(t,n);else if((n&1073741824)!==0)t.memoizedState={baseLanes:0},wi(t,f!==null?f.baseLanes:n);else return e=f!==null?f.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},wi(t,e),null;else f!==null?(s=f.baseLanes|n,t.memoizedState=null):s=n,wi(t,s);return dt(e,t,u,n),t.child}function qa(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function el(e,t,n,s,u){var f=ft(n)?On:rt.current;return f=ar(t,f),hr(t,u),n=Yo(e,t,n,s,f,u),e!==null&&!Lt?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~u,Qt(e,t,u)):(t.flags|=1,dt(e,t,n,u),t.child)}function ec(e,t,n,s,u){if(ft(n)){var f=!0;Qs(t)}else f=!1;if(hr(t,u),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Oa(t,n,s),Bo(t,n,s,u),s=!0;else if(e===null){var p=t.stateNode,w=t.memoizedProps;p.props=w;var $=p.context,_=n.contextType;typeof _=="object"&&_!==null?_=xt(_):(_=ft(n)?On:rt.current,_=ar(t,_));var te=n.getDerivedStateFromProps,Se=typeof te=="function"||typeof p.getSnapshotBeforeUpdate=="function";Se||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(w!==s||$!==_)&&Ra(t,p,s,_),fn=!1;var W=t.memoizedState;p.state=W,Jr(t,s,p,u),$=t.memoizedState,w!==s||W!==$||ct.current||fn?(typeof te=="function"&&(qs(t,n,te,s),$=t.memoizedState),(w=fn||La(t,n,w,s,W,$,_))?(Se||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(t.flags|=4)):(typeof p.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=s,t.memoizedState=$),p.props=s,p.state=$,p.context=_,s=w):(typeof p.componentDidMount=="function"&&(t.flags|=4),s=!1)}else{p=t.stateNode,Ta(e,t),w=t.memoizedProps,_=t.type===t.elementType?w:At(t.type,w),p.props=_,Se=t.pendingProps,W=p.context,$=n.contextType,typeof $=="object"&&$!==null?$=xt($):($=ft(n)?On:rt.current,$=ar(t,$));var ce=n.getDerivedStateFromProps;(te=typeof ce=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(w!==Se||W!==$)&&Ra(t,p,s,$),fn=!1,W=t.memoizedState,p.state=W,Jr(t,s,p,u);var we=t.memoizedState;w!==Se||W!==we||ct.current||fn?(typeof ce=="function"&&(qs(t,n,ce,s),we=t.memoizedState),(_=fn||La(t,n,_,s,W,we,$))?(te||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(s,we,$),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(s,we,$)),typeof p.componentDidUpdate=="function"&&(t.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof p.componentDidUpdate!="function"||w===e.memoizedProps&&W===e.memoizedState||(t.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&W===e.memoizedState||(t.flags|=256),t.memoizedProps=s,t.memoizedState=we),p.props=s,p.state=we,p.context=$,s=_):(typeof p.componentDidUpdate!="function"||w===e.memoizedProps&&W===e.memoizedState||(t.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&W===e.memoizedState||(t.flags|=256),s=!1)}return tl(e,t,n,s,f,u)}function tl(e,t,n,s,u,f){qa(e,t);var p=(t.flags&64)!==0;if(!s&&!p)return u&&ya(t,n,!1),Qt(e,t,f);s=t.stateNode,vp.current=t;var w=p&&typeof n.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&p?(t.child=ri(t,e.child,null,f),t.child=ri(t,null,w,f)):dt(e,t,w,f),t.memoizedState=s.state,u&&ya(t,n,!0),t.child}function tc(e){var t=e.stateNode;t.pendingContext?ga(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ga(e,t.context,!1),Vo(e,t.containerInfo)}var fi={dehydrated:null,retryLane:0};function nc(e,t,n){var s=t.pendingProps,u=be.current,f=!1,p;return(p=(t.flags&64)!==0)||(p=e!==null&&e.memoizedState===null?!1:(u&2)!==0),p?(f=!0,t.flags&=-65):e!==null&&e.memoizedState===null||s.fallback===void 0||s.unstable_avoidThisFallback===!0||(u|=1),He(be,u&1),e===null?(s.fallback!==void 0&&bo(t),e=s.children,u=s.fallback,f?(e=rc(t,e,u,n),t.child.memoizedState={baseLanes:n},t.memoizedState=fi,e):typeof s.unstable_expectedLoadTime=="number"?(e=rc(t,e,u,n),t.child.memoizedState={baseLanes:n},t.memoizedState=fi,t.lanes=33554432,e):(n=kl({mode:"visible",children:e},t.mode,n,null),n.return=t,t.child=n)):e.memoizedState!==null?f?(s=ic(e,t,s.children,s.fallback,n),f=t.child,u=e.child.memoizedState,f.memoizedState=u===null?{baseLanes:n}:{baseLanes:u.baseLanes|n},f.childLanes=e.childLanes&~n,t.memoizedState=fi,s):(n=sc(e,t,s.children,n),t.memoizedState=null,n):f?(s=ic(e,t,s.children,s.fallback,n),f=t.child,u=e.child.memoizedState,f.memoizedState=u===null?{baseLanes:n}:{baseLanes:u.baseLanes|n},f.childLanes=e.childLanes&~n,t.memoizedState=fi,s):(n=sc(e,t,s.children,n),t.memoizedState=null,n)}function rc(e,t,n,s){var u=e.mode,f=e.child;return t={mode:"hidden",children:t},(u&2)===0&&f!==null?(f.childLanes=0,f.pendingProps=t):f=kl(t,u,0,null),n=xr(n,u,s,null),f.return=e,n.return=e,f.sibling=n,e.child=f,n}function sc(e,t,n,s){var u=e.child;return e=u.sibling,n=xn(u,{mode:"visible",children:n}),(t.mode&2)===0&&(n.lanes=s),n.return=t,n.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function ic(e,t,n,s,u){var f=t.mode,p=e.child;e=p.sibling;var w={mode:"hidden",children:n};return(f&2)===0&&t.child!==p?(n=t.child,n.childLanes=0,n.pendingProps=w,p=n.lastEffect,p!==null?(t.firstEffect=n.firstEffect,t.lastEffect=p,p.nextEffect=null):t.firstEffect=t.lastEffect=null):n=xn(p,w),e!==null?s=xn(e,s):(s=xr(s,f,u,null),s.flags|=2),s.return=t,n.return=t,n.sibling=s,t.child=n,s}function oc(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Ea(e.return,t)}function nl(e,t,n,s,u,f){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:u,lastEffect:f}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=s,p.tail=n,p.tailMode=u,p.lastEffect=f)}function lc(e,t,n){var s=t.pendingProps,u=s.revealOrder,f=s.tail;if(dt(e,t,s.children,n),s=be.current,(s&2)!==0)s=s&1|2,t.flags|=64;else{if(e!==null&&(e.flags&64)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&oc(e,n);else if(e.tag===19)oc(e,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}if(He(be,s),(t.mode&2)===0)t.memoizedState=null;else switch(u){case"forwards":for(n=t.child,u=null;n!==null;)e=n.alternate,e!==null&&si(e)===null&&(u=n),n=n.sibling;n=u,n===null?(u=t.child,t.child=null):(u=n.sibling,n.sibling=null),nl(t,!1,u,n,f,t.lastEffect);break;case"backwards":for(n=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&si(e)===null){t.child=u;break}e=u.sibling,u.sibling=n,n=u,u=e}nl(t,!0,n,null,f,t.lastEffect);break;case"together":nl(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Qt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ls|=t.lanes,(n&t.childLanes)!==0){if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,n=xn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=xn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}return null}var uc,rl,ac,cc;uc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},rl=function(){},ac=function(e,t,n,s){var u=e.memoizedProps;if(u!==s){e=t.stateNode,In(Mt.current);var f=null;switch(n){case"input":u=c(e,u),s=c(e,s),f=[];break;case"option":u=z(e,u),s=z(e,s),f=[];break;case"select":u=i({},u,{value:void 0}),s=i({},s,{value:void 0}),f=[];break;case"textarea":u=Y(e,u),s=Y(e,s),f=[];break;default:typeof u.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=Vs)}Er(n,s);var p;n=null;for(_ in u)if(!s.hasOwnProperty(_)&&u.hasOwnProperty(_)&&u[_]!=null)if(_==="style"){var w=u[_];for(p in w)w.hasOwnProperty(p)&&(n||(n={}),n[p]="")}else _!=="dangerouslySetInnerHTML"&&_!=="children"&&_!=="suppressContentEditableWarning"&&_!=="suppressHydrationWarning"&&_!=="autoFocus"&&(d.hasOwnProperty(_)?f||(f=[]):(f=f||[]).push(_,null));for(_ in s){var $=s[_];if(w=u?.[_],s.hasOwnProperty(_)&&$!==w&&($!=null||w!=null))if(_==="style")if(w){for(p in w)!w.hasOwnProperty(p)||$&&$.hasOwnProperty(p)||(n||(n={}),n[p]="");for(p in $)$.hasOwnProperty(p)&&w[p]!==$[p]&&(n||(n={}),n[p]=$[p])}else n||(f||(f=[]),f.push(_,n)),n=$;else _==="dangerouslySetInnerHTML"?($=$?$.__html:void 0,w=w?w.__html:void 0,$!=null&&w!==$&&(f=f||[]).push(_,$)):_==="children"?typeof $!="string"&&typeof $!="number"||(f=f||[]).push(_,""+$):_!=="suppressContentEditableWarning"&&_!=="suppressHydrationWarning"&&(d.hasOwnProperty(_)?($!=null&&_==="onScroll"&&Ue("scroll",e),f||w===$||(f=[])):typeof $=="object"&&$!==null&&$.$$typeof===me?$.toString():(f=f||[]).push(_,$))}n&&(f=f||[]).push("style",n);var _=f;(t.updateQueue=_)&&(t.flags|=4)}},cc=function(e,t,n,s){n!==s&&(t.flags|=4)};function os(e,t){if(!Ft)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function wp(e,t,n){var s=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return ft(t.type)&&Ws(),null;case 3:return dr(),Be(ct),Be(rt),Wo(),s=t.stateNode,s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(ii(t)?t.flags|=4:s.hydrate||(t.flags|=256)),rl(t),null;case 5:Ho(t);var u=In(qr.current);if(n=t.type,e!==null&&t.stateNode!=null)ac(e,t,n,s,u),e.ref!==t.ref&&(t.flags|=128);else{if(!s){if(t.stateNode===null)throw Error(l(166));return null}if(e=In(Mt.current),ii(t)){s=t.stateNode,n=t.type;var f=t.memoizedProps;switch(s[un]=t,s[bs]=f,n){case"dialog":Ue("cancel",s),Ue("close",s);break;case"iframe":case"object":case"embed":Ue("load",s);break;case"video":case"audio":for(e=0;e<Kr.length;e++)Ue(Kr[e],s);break;case"source":Ue("error",s);break;case"img":case"image":case"link":Ue("error",s),Ue("load",s);break;case"details":Ue("toggle",s);break;case"input":h(s,f),Ue("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!f.multiple},Ue("invalid",s);break;case"textarea":re(s,f),Ue("invalid",s)}Er(n,f),e=null;for(var p in f)f.hasOwnProperty(p)&&(u=f[p],p==="children"?typeof u=="string"?s.textContent!==u&&(e=["children",u]):typeof u=="number"&&s.textContent!==""+u&&(e=["children",""+u]):d.hasOwnProperty(p)&&u!=null&&p==="onScroll"&&Ue("scroll",s));switch(n){case"input":Rt(s),k(s,f,!0);break;case"textarea":Rt(s),pe(s);break;case"select":case"option":break;default:typeof f.onClick=="function"&&(s.onclick=Vs)}s=e,t.updateQueue=s,s!==null&&(t.flags|=4)}else{switch(p=u.nodeType===9?u:u.ownerDocument,e===Le.html&&(e=Ve(n)),e===Le.html?n==="script"?(e=p.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=p.createElement(n,{is:s.is}):(e=p.createElement(n),n==="select"&&(p=e,s.multiple?p.multiple=!0:s.size&&(p.size=s.size))):e=p.createElementNS(e,n),e[un]=t,e[bs]=s,uc(e,t,!1,!1),t.stateNode=e,p=Zn(n,s),n){case"dialog":Ue("cancel",e),Ue("close",e),u=s;break;case"iframe":case"object":case"embed":Ue("load",e),u=s;break;case"video":case"audio":for(u=0;u<Kr.length;u++)Ue(Kr[u],e);u=s;break;case"source":Ue("error",e),u=s;break;case"img":case"image":case"link":Ue("error",e),Ue("load",e),u=s;break;case"details":Ue("toggle",e),u=s;break;case"input":h(e,s),u=c(e,s),Ue("invalid",e);break;case"option":u=z(e,s);break;case"select":e._wrapperState={wasMultiple:!!s.multiple},u=i({},s,{value:void 0}),Ue("invalid",e);break;case"textarea":re(e,s),u=Y(e,s),Ue("invalid",e);break;default:u=s}Er(n,u);var w=u;for(f in w)if(w.hasOwnProperty(f)){var $=w[f];f==="style"?Ze(e,$):f==="dangerouslySetInnerHTML"?($=$?$.__html:void 0,$!=null&&Xe(e,$)):f==="children"?typeof $=="string"?(n!=="textarea"||$!=="")&&Nt(e,$):typeof $=="number"&&Nt(e,""+$):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(d.hasOwnProperty(f)?$!=null&&f==="onScroll"&&Ue("scroll",e):$!=null&&de(e,f,$,p))}switch(n){case"input":Rt(e),k(e,s,!1);break;case"textarea":Rt(e),pe(e);break;case"option":s.value!=null&&e.setAttribute("value",""+jt(s.value));break;case"select":e.multiple=!!s.multiple,f=s.value,f!=null?b(e,!!s.multiple,f,!1):s.defaultValue!=null&&b(e,!!s.multiple,s.defaultValue,!0);break;default:typeof u.onClick=="function"&&(e.onclick=Vs)}ca(n,s)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)cc(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error(l(166));n=In(qr.current),In(Mt.current),ii(t)?(s=t.stateNode,n=t.memoizedProps,s[un]=t,s.nodeValue!==n&&(t.flags|=4)):(s=(n.nodeType===9?n:n.ownerDocument).createTextNode(s),s[un]=t,t.stateNode=s)}return null;case 13:return Be(be),s=t.memoizedState,(t.flags&64)!==0?(t.lanes=n,t):(s=s!==null,n=!1,e===null?t.memoizedProps.fallback!==void 0&&ii(t):n=e.memoizedState!==null,s&&!n&&(t.mode&2)!==0&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||(be.current&1)!==0?tt===0&&(tt=3):((tt===0||tt===3)&&(tt=4),ut===null||(ls&134217727)===0&&(mr&134217727)===0||vr(ut,ot))),(s||n)&&(t.flags|=4),null);case 4:return dr(),rl(t),e===null&&ia(t.stateNode.containerInfo),null;case 10:return Do(t),null;case 17:return ft(t.type)&&Ws(),null;case 19:if(Be(be),s=t.memoizedState,s===null)return null;if(f=(t.flags&64)!==0,p=s.rendering,p===null)if(f)os(s,!1);else{if(tt!==0||e!==null&&(e.flags&64)!==0)for(e=t.child;e!==null;){if(p=si(e),p!==null){for(t.flags|=64,os(s,!1),f=p.updateQueue,f!==null&&(t.updateQueue=f,t.flags|=4),s.lastEffect===null&&(t.firstEffect=null),t.lastEffect=s.lastEffect,s=n,n=t.child;n!==null;)f=n,e=s,f.flags&=2,f.nextEffect=null,f.firstEffect=null,f.lastEffect=null,p=f.alternate,p===null?(f.childLanes=0,f.lanes=e,f.child=null,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=p.childLanes,f.lanes=p.lanes,f.child=p.child,f.memoizedProps=p.memoizedProps,f.memoizedState=p.memoizedState,f.updateQueue=p.updateQueue,f.type=p.type,e=p.dependencies,f.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return He(be,be.current&1|2),t.child}e=e.sibling}s.tail!==null&&st()>pl&&(t.flags|=64,f=!0,os(s,!1),t.lanes=33554432)}else{if(!f)if(e=si(p),e!==null){if(t.flags|=64,f=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),os(s,!0),s.tail===null&&s.tailMode==="hidden"&&!p.alternate&&!Ft)return t=t.lastEffect=s.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*st()-s.renderingStartTime>pl&&n!==1073741824&&(t.flags|=64,f=!0,os(s,!1),t.lanes=33554432);s.isBackwards?(p.sibling=t.child,t.child=p):(n=s.last,n!==null?n.sibling=p:t.child=p,s.last=p)}return s.tail!==null?(n=s.tail,s.rendering=n,s.tail=n.sibling,s.lastEffect=t.lastEffect,s.renderingStartTime=st(),n.sibling=null,t=be.current,He(be,f?t&1|2:t&1),n):null;case 23:case 24:return xl(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&s.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(l(156,t.tag))}function xp(e){switch(e.tag){case 1:ft(e.type)&&Ws();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(dr(),Be(ct),Be(rt),Wo(),t=e.flags,(t&64)!==0)throw Error(l(285));return e.flags=t&-4097|64,e;case 5:return Ho(e),null;case 13:return Be(be),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return Be(be),null;case 4:return dr(),null;case 10:return Do(e),null;case 23:case 24:return xl(),null;default:return null}}function sl(e,t){try{var n="",s=t;do n+=Zi(s),s=s.return;while(s);var u=n}catch(f){u=`
6
- Error generating stack: `+f.message+`
7
- `+f.stack}return{value:e,source:t,stack:u}}function il(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Sp=typeof WeakMap=="function"?WeakMap:Map;function fc(e,t,n){n=hn(-1,n),n.tag=3,n.payload={element:null};var s=t.value;return n.callback=function(){pi||(pi=!0,gl=s),il(e,t)},n}function hc(e,t,n){n=hn(-1,n),n.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var u=t.value;n.payload=function(){return il(e,t),s(u)}}var f=e.stateNode;return f!==null&&typeof f.componentDidCatch=="function"&&(n.callback=function(){typeof s!="function"&&(Ut===null?Ut=new Set([this]):Ut.add(this),il(e,t));var p=t.stack;this.componentDidCatch(t.value,{componentStack:p!==null?p:""})}),n}var kp=typeof WeakSet=="function"?WeakSet:Set;function dc(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){wn(e,n)}else t.current=null}function Cp(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var n=e.memoizedProps,s=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:At(t.type,n),s),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&No(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(l(163))}function $p(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var s=e.create;e.destroy=s()}e=e.next}while(e!==t)}if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var u=e;s=u.next,u=u.tag,(u&4)!==0&&(u&1)!==0&&(jc(n,e),Op(n,e)),e=s}while(e!==t)}return;case 1:e=n.stateNode,n.flags&4&&(t===null?e.componentDidMount():(s=n.elementType===n.type?t.memoizedProps:At(n.type,t.memoizedProps),e.componentDidUpdate(s,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&Na(n,t,e);return;case 3:if(t=n.updateQueue,t!==null){if(e=null,n.child!==null)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}Na(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&ca(n.type,n.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:n.memoizedState===null&&(n=n.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&Eu(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(l(163))}function pc(e,t){for(var n=e;;){if(n.tag===5){var s=n.stateNode;if(t)s=s.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none";else{s=n.stateNode;var u=n.memoizedProps.style;u=u!=null&&u.hasOwnProperty("display")?u.display:null,s.style.display=at("display",u)}}else if(n.tag===6)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((n.tag!==23&&n.tag!==24||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function gc(e,t){if(Rn&&typeof Rn.onCommitFiberUnmount=="function")try{Rn.onCommitFiberUnmount(Oo,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var n=e=e.next;do{var s=n,u=s.destroy;if(s=s.tag,u!==void 0)if((s&4)!==0)jc(t,n);else{s=t;try{u()}catch(f){wn(s,f)}}n=n.next}while(n!==e)}break;case 1:if(dc(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(f){wn(t,f)}break;case 5:dc(t);break;case 4:wc(e,t)}}function mc(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function yc(e){return e.tag===5||e.tag===3||e.tag===4}function vc(e){e:{for(var t=e.return;t!==null;){if(yc(t))break e;t=t.return}throw Error(l(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var s=!1;break;case 3:t=t.containerInfo,s=!0;break;case 4:t=t.containerInfo,s=!0;break;default:throw Error(l(161))}n.flags&16&&(Nt(t,""),n.flags&=-17);e:t:for(n=e;;){for(;n.sibling===null;){if(n.return===null||yc(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break e}}s?ol(e,n,t):ll(e,n,t)}function ol(e,t,n){var s=e.tag,u=s===5||s===6;if(u)e=u?e.stateNode:e.stateNode.instance,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Vs));else if(s!==4&&(e=e.child,e!==null))for(ol(e,t,n),e=e.sibling;e!==null;)ol(e,t,n),e=e.sibling}function ll(e,t,n){var s=e.tag,u=s===5||s===6;if(u)e=u?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(ll(e,t,n),e=e.sibling;e!==null;)ll(e,t,n),e=e.sibling}function wc(e,t){for(var n=t,s=!1,u,f;;){if(!s){s=n.return;e:for(;;){if(s===null)throw Error(l(160));switch(u=s.stateNode,s.tag){case 5:f=!1;break e;case 3:u=u.containerInfo,f=!0;break e;case 4:u=u.containerInfo,f=!0;break e}s=s.return}s=!0}if(n.tag===5||n.tag===6){e:for(var p=e,w=n,$=w;;)if(gc(p,$),$.child!==null&&$.tag!==4)$.child.return=$,$=$.child;else{if($===w)break e;for(;$.sibling===null;){if($.return===null||$.return===w)break e;$=$.return}$.sibling.return=$.return,$=$.sibling}f?(p=u,w=n.stateNode,p.nodeType===8?p.parentNode.removeChild(w):p.removeChild(w)):u.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){u=n.stateNode.containerInfo,f=!0,n.child.return=n,n=n.child;continue}}else if(gc(e,n),n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return,n.tag===4&&(s=!1)}n.sibling.return=n.return,n=n.sibling}}function ul(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var s=n=n.next;do(s.tag&3)===3&&(e=s.destroy,s.destroy=void 0,e!==void 0&&e()),s=s.next;while(s!==n)}return;case 1:return;case 5:if(n=t.stateNode,n!=null){s=t.memoizedProps;var u=e!==null?e.memoizedProps:s;e=t.type;var f=t.updateQueue;if(t.updateQueue=null,f!==null){for(n[bs]=s,e==="input"&&s.type==="radio"&&s.name!=null&&g(n,s),Zn(e,u),t=Zn(e,s),u=0;u<f.length;u+=2){var p=f[u],w=f[u+1];p==="style"?Ze(n,w):p==="dangerouslySetInnerHTML"?Xe(n,w):p==="children"?Nt(n,w):de(n,p,w,t)}switch(e){case"input":x(n,s);break;case"textarea":U(n,s);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!s.multiple,f=s.value,f!=null?b(n,!!s.multiple,f,!1):e!==!!s.multiple&&(s.defaultValue!=null?b(n,!!s.multiple,s.defaultValue,!0):b(n,!!s.multiple,s.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(l(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:n=t.stateNode,n.hydrate&&(n.hydrate=!1,Eu(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(dl=st(),pc(t.child,!0)),xc(t);return;case 19:xc(t);return;case 17:return;case 23:case 24:pc(t,t.memoizedState!==null);return}throw Error(l(163))}function xc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new kp),t.forEach(function(s){var u=Ip.bind(null,e,s);n.has(s)||(n.add(s),s.then(u,u))})}}function Pp(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var Ep=Math.ceil,hi=he.ReactCurrentDispatcher,al=he.ReactCurrentOwner,ve=0,ut=null,Ye=null,ot=0,Fn=0,cl=an(0),tt=0,di=null,gr=0,ls=0,mr=0,fl=0,hl=null,dl=0,pl=1/0;function yr(){pl=st()+500}var se=null,pi=!1,gl=null,Ut=null,gn=!1,us=null,as=90,ml=[],yl=[],Yt=null,cs=0,vl=null,gi=-1,Jt=0,mi=0,fs=null,yi=!1;function yt(){return(ve&48)!==0?st():gi!==-1?gi:gi=st()}function mn(e){if(e=e.mode,(e&2)===0)return 1;if((e&4)===0)return cr()===99?1:2;if(Jt===0&&(Jt=gr),dp.transition!==0){mi!==0&&(mi=hl!==null?hl.pendingLanes:0),e=Jt;var t=4186112&~mi;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=cr(),(ve&4)!==0&&e===98?e=Rs(12,Jt):(e=gd(e),e=Rs(e,Jt)),e}function yn(e,t,n){if(50<cs)throw cs=0,vl=null,Error(l(185));if(e=vi(e,t),e===null)return null;_s(e,t,n),e===ut&&(mr|=t,tt===4&&vr(e,ot));var s=cr();t===1?(ve&8)!==0&&(ve&48)===0?wl(e):(kt(e,n),ve===0&&(yr(),zt())):((ve&4)===0||s!==98&&s!==99||(Yt===null?Yt=new Set([e]):Yt.add(e)),kt(e,n)),hl=e}function vi(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}function kt(e,t){for(var n=e.callbackNode,s=e.suspendedLanes,u=e.pingedLanes,f=e.expirationTimes,p=e.pendingLanes;0<p;){var w=31-on(p),$=1<<w,_=f[w];if(_===-1){if(($&s)===0||($&u)!==0){_=t,qn($);var te=Me;f[w]=10<=te?_+250:6<=te?_+5e3:-1}}else _<=t&&(e.expiredLanes|=$);p&=~$}if(s=Mr(e,e===ut?ot:0),t=Me,s===0)n!==null&&(n!==zo&&_o(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==zo&&_o(n)}t===15?(n=wl.bind(null,e),Kt===null?(Kt=[n],Js=Ro(Ys,Pa)):Kt.push(n),n=zo):t===14?n=Yr(99,wl.bind(null,e)):(n=md(t),n=Yr(n,Sc.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function Sc(e){if(gi=-1,mi=Jt=0,(ve&48)!==0)throw Error(l(327));var t=e.callbackNode;if(vn()&&e.callbackNode!==t)return null;var n=Mr(e,e===ut?ot:0);if(n===0)return null;var s=n,u=ve;ve|=16;var f=Pc();(ut!==e||ot!==s)&&(yr(),wr(e,s));do try{Np();break}catch(w){$c(e,w)}while(!0);if(Fo(),hi.current=f,ve=u,Ye!==null?s=0:(ut=null,ot=0,s=tt),(gr&mr)!==0)wr(e,0);else if(s!==0){if(s===2&&(ve|=64,e.hydrate&&(e.hydrate=!1,No(e.containerInfo)),n=Ru(e),n!==0&&(s=hs(e,n))),s===1)throw t=di,wr(e,0),vr(e,n),kt(e,st()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,s){case 0:case 1:throw Error(l(345));case 2:Dn(e);break;case 3:if(vr(e,n),(n&62914560)===n&&(s=dl+500-st(),10<s)){if(Mr(e,0)!==0)break;if(u=e.suspendedLanes,(u&n)!==n){yt(),e.pingedLanes|=e.suspendedLanes&u;break}e.timeoutHandle=fa(Dn.bind(null,e),s);break}Dn(e);break;case 4:if(vr(e,n),(n&4186112)===n)break;for(s=e.eventTimes,u=-1;0<n;){var p=31-on(n);f=1<<p,p=s[p],p>u&&(u=p),n&=~f}if(n=u,n=st()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ep(n/1960))-n,10<n){e.timeoutHandle=fa(Dn.bind(null,e),n);break}Dn(e);break;case 5:Dn(e);break;default:throw Error(l(329))}}return kt(e,st()),e.callbackNode===t?Sc.bind(null,e):null}function vr(e,t){for(t&=~fl,t&=~mr,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-on(t),s=1<<n;e[n]=-1,t&=~s}}function wl(e){if((ve&48)!==0)throw Error(l(327));if(vn(),e===ut&&(e.expiredLanes&ot)!==0){var t=ot,n=hs(e,t);(gr&mr)!==0&&(t=Mr(e,t),n=hs(e,t))}else t=Mr(e,0),n=hs(e,t);if(e.tag!==0&&n===2&&(ve|=64,e.hydrate&&(e.hydrate=!1,No(e.containerInfo)),t=Ru(e),t!==0&&(n=hs(e,t))),n===1)throw n=di,wr(e,0),vr(e,t),kt(e,st()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Dn(e),kt(e,st()),null}function Tp(){if(Yt!==null){var e=Yt;Yt=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,kt(t,st())})}zt()}function kc(e,t){var n=ve;ve|=1;try{return e(t)}finally{ve=n,ve===0&&(yr(),zt())}}function Cc(e,t){var n=ve;ve&=-2,ve|=8;try{return e(t)}finally{ve=n,ve===0&&(yr(),zt())}}function wi(e,t){He(cl,Fn),Fn|=t,gr|=t}function xl(){Fn=cl.current,Be(cl)}function wr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,lp(n)),Ye!==null)for(n=Ye.return;n!==null;){var s=n;switch(s.tag){case 1:s=s.type.childContextTypes,s!=null&&Ws();break;case 3:dr(),Be(ct),Be(rt),Wo();break;case 5:Ho(s);break;case 4:dr();break;case 13:Be(be);break;case 19:Be(be);break;case 10:Do(s);break;case 23:case 24:xl()}n=n.return}ut=e,Ye=xn(e.current,null),ot=Fn=gr=t,tt=0,di=null,fl=mr=ls=0}function $c(e,t){do{var n=Ye;try{if(Fo(),es.current=ci,oi){for(var s=We.memoizedState;s!==null;){var u=s.queue;u!==null&&(u.pending=null),s=s.next}oi=!1}if(ts=0,et=it=We=null,ns=!1,al.current=null,n===null||n.return===null){tt=1,di=t,Ye=null;break}e:{var f=e,p=n.return,w=n,$=t;if(t=ot,w.flags|=2048,w.firstEffect=w.lastEffect=null,$!==null&&typeof $=="object"&&typeof $.then=="function"){var _=$;if((w.mode&2)===0){var te=w.alternate;te?(w.updateQueue=te.updateQueue,w.memoizedState=te.memoizedState,w.lanes=te.lanes):(w.updateQueue=null,w.memoizedState=null)}var Se=(be.current&1)!==0,W=p;do{var ce;if(ce=W.tag===13){var we=W.memoizedState;if(we!==null)ce=we.dehydrated!==null;else{var ge=W.memoizedProps;ce=ge.fallback===void 0?!1:ge.unstable_avoidThisFallback!==!0?!0:!Se}}if(ce){var N=W.updateQueue;if(N===null){var P=new Set;P.add(_),W.updateQueue=P}else N.add(_);if((W.mode&2)===0){if(W.flags|=64,w.flags|=16384,w.flags&=-2981,w.tag===1)if(w.alternate===null)w.tag=17;else{var T=hn(-1,1);T.tag=2,dn(w,T)}w.lanes|=1;break e}$=void 0,w=t;var D=f.pingCache;if(D===null?(D=f.pingCache=new Sp,$=new Set,D.set(_,$)):($=D.get(_),$===void 0&&($=new Set,D.set(_,$))),!$.has(w)){$.add(w);var H=_p.bind(null,f,_,w);_.then(H,H)}W.flags|=4096,W.lanes=t;break e}W=W.return}while(W!==null);$=Error((Vt(w.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
1
+ (function(ln){typeof define=="function"&&define.amd?define(ln):ln()})((function(){"use strict";var ln=typeof document<"u"?document.currentScript:null;function yl(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var ni={exports:{}},an={};var ri,vl;function si(){if(vl)return ri;vl=1;var r=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function o(c){if(c==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(c)}function l(){try{if(!Object.assign)return!1;var c=new String("abc");if(c[5]="de",Object.getOwnPropertyNames(c)[0]==="5")return!1;for(var f={},p=0;p<10;p++)f["_"+String.fromCharCode(p)]=p;var d=Object.getOwnPropertyNames(f).map(function(v){return f[v]});if(d.join("")!=="0123456789")return!1;var m={};return"abcdefghijklmnopqrst".split("").forEach(function(v){m[v]=v}),Object.keys(Object.assign({},m)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ri=l()?Object.assign:function(c,f){for(var p,d=o(c),m,v=1;v<arguments.length;v++){p=Object(arguments[v]);for(var x in p)s.call(p,x)&&(d[x]=p[x]);if(r){m=r(p);for(var w=0;w<m.length;w++)i.call(p,m[w])&&(d[m[w]]=p[m[w]])}}return d},ri}var ii={exports:{}},ve={};var wl;function Jc(){if(wl)return ve;wl=1;var r=si(),s=60103,i=60106;ve.Fragment=60107,ve.StrictMode=60108,ve.Profiler=60114;var o=60109,l=60110,c=60112;ve.Suspense=60113;var f=60115,p=60116;if(typeof Symbol=="function"&&Symbol.for){var d=Symbol.for;s=d("react.element"),i=d("react.portal"),ve.Fragment=d("react.fragment"),ve.StrictMode=d("react.strict_mode"),ve.Profiler=d("react.profiler"),o=d("react.provider"),l=d("react.context"),c=d("react.forward_ref"),ve.Suspense=d("react.suspense"),f=d("react.memo"),p=d("react.lazy")}var m=typeof Symbol=="function"&&Symbol.iterator;function v(T){return T===null||typeof T!="object"?null:(T=m&&T[m]||T["@@iterator"],typeof T=="function"?T:null)}function x(T){for(var O="https://reactjs.org/docs/error-decoder.html?invariant="+T,te=1;te<arguments.length;te++)O+="&args[]="+encodeURIComponent(arguments[te]);return"Minified React error #"+T+"; visit "+O+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C={};function N(T,O,te){this.props=T,this.context=O,this.refs=C,this.updater=te||w}N.prototype.isReactComponent={},N.prototype.setState=function(T,O){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error(x(85));this.updater.enqueueSetState(this,T,O,"setState")},N.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function E(){}E.prototype=N.prototype;function _(T,O,te){this.props=T,this.context=O,this.refs=C,this.updater=te||w}var D=_.prototype=new E;D.constructor=_,r(D,N.prototype),D.isPureReactComponent=!0;var z={current:null},G=Object.prototype.hasOwnProperty,K={key:!0,ref:!0,__self:!0,__source:!0};function Z(T,O,te){var he,L={},b=null,U=null;if(O!=null)for(he in O.ref!==void 0&&(U=O.ref),O.key!==void 0&&(b=""+O.key),O)G.call(O,he)&&!K.hasOwnProperty(he)&&(L[he]=O[he]);var M=arguments.length-2;if(M===1)L.children=te;else if(1<M){for(var Q=Array(M),Se=0;Se<M;Se++)Q[Se]=arguments[Se+2];L.children=Q}if(T&&T.defaultProps)for(he in M=T.defaultProps,M)L[he]===void 0&&(L[he]=M[he]);return{$$typeof:s,type:T,key:b,ref:U,props:L,_owner:z.current}}function H(T,O){return{$$typeof:s,type:T.type,key:O,ref:T.ref,props:T.props,_owner:T._owner}}function B(T){return typeof T=="object"&&T!==null&&T.$$typeof===s}function V(T){var O={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(te){return O[te]})}var q=/\/+/g;function fe(T,O){return typeof T=="object"&&T!==null&&T.key!=null?V(""+T.key):O.toString(36)}function se(T,O,te,he,L){var b=typeof T;(b==="undefined"||b==="boolean")&&(T=null);var U=!1;if(T===null)U=!0;else switch(b){case"string":case"number":U=!0;break;case"object":switch(T.$$typeof){case s:case i:U=!0}}if(U)return U=T,L=L(U),T=he===""?"."+fe(U,0):he,Array.isArray(L)?(te="",T!=null&&(te=T.replace(q,"$&/")+"/"),se(L,O,te,"",function(Se){return Se})):L!=null&&(B(L)&&(L=H(L,te+(!L.key||U&&U.key===L.key?"":(""+L.key).replace(q,"$&/")+"/")+T)),O.push(L)),1;if(U=0,he=he===""?".":he+":",Array.isArray(T))for(var M=0;M<T.length;M++){b=T[M];var Q=he+fe(b,M);U+=se(b,O,te,Q,L)}else if(Q=v(T),typeof Q=="function")for(T=Q.call(T),M=0;!(b=T.next()).done;)b=b.value,Q=he+fe(b,M++),U+=se(b,O,te,Q,L);else if(b==="object")throw O=""+T,Error(x(31,O==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":O));return U}function ge(T,O,te){if(T==null)return T;var he=[],L=0;return se(T,he,"","",function(b){return O.call(te,b,L++)}),he}function pe(T){if(T._status===-1){var O=T._result;O=O(),T._status=0,T._result=O,O.then(function(te){T._status===0&&(te=te.default,T._status=1,T._result=te)},function(te){T._status===0&&(T._status=2,T._result=te)})}if(T._status===1)return T._result;throw T._result}var we={current:null};function ne(){var T=we.current;if(T===null)throw Error(x(321));return T}var xe={ReactCurrentDispatcher:we,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:z,IsSomeRendererActing:{current:!1},assign:r};return ve.Children={map:ge,forEach:function(T,O,te){ge(T,function(){O.apply(this,arguments)},te)},count:function(T){var O=0;return ge(T,function(){O++}),O},toArray:function(T){return ge(T,function(O){return O})||[]},only:function(T){if(!B(T))throw Error(x(143));return T}},ve.Component=N,ve.PureComponent=_,ve.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=xe,ve.cloneElement=function(T,O,te){if(T==null)throw Error(x(267,T));var he=r({},T.props),L=T.key,b=T.ref,U=T._owner;if(O!=null){if(O.ref!==void 0&&(b=O.ref,U=z.current),O.key!==void 0&&(L=""+O.key),T.type&&T.type.defaultProps)var M=T.type.defaultProps;for(Q in O)G.call(O,Q)&&!K.hasOwnProperty(Q)&&(he[Q]=O[Q]===void 0&&M!==void 0?M[Q]:O[Q])}var Q=arguments.length-2;if(Q===1)he.children=te;else if(1<Q){M=Array(Q);for(var Se=0;Se<Q;Se++)M[Se]=arguments[Se+2];he.children=M}return{$$typeof:s,type:T.type,key:L,ref:b,props:he,_owner:U}},ve.createContext=function(T,O){return O===void 0&&(O=null),T={$$typeof:l,_calculateChangedBits:O,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider={$$typeof:o,_context:T},T.Consumer=T},ve.createElement=Z,ve.createFactory=function(T){var O=Z.bind(null,T);return O.type=T,O},ve.createRef=function(){return{current:null}},ve.forwardRef=function(T){return{$$typeof:c,render:T}},ve.isValidElement=B,ve.lazy=function(T){return{$$typeof:p,_payload:{_status:-1,_result:T},_init:pe}},ve.memo=function(T,O){return{$$typeof:f,type:T,compare:O===void 0?null:O}},ve.useCallback=function(T,O){return ne().useCallback(T,O)},ve.useContext=function(T,O){return ne().useContext(T,O)},ve.useDebugValue=function(){},ve.useEffect=function(T,O){return ne().useEffect(T,O)},ve.useImperativeHandle=function(T,O,te){return ne().useImperativeHandle(T,O,te)},ve.useLayoutEffect=function(T,O){return ne().useLayoutEffect(T,O)},ve.useMemo=function(T,O){return ne().useMemo(T,O)},ve.useReducer=function(T,O,te){return ne().useReducer(T,O,te)},ve.useRef=function(T){return ne().useRef(T)},ve.useState=function(T){return ne().useState(T)},ve.version="17.0.2",ve}var xl;function oi(){return xl||(xl=1,ii.exports=Jc()),ii.exports}var Sl;function Xc(){if(Sl)return an;Sl=1,si();var r=oi(),s=60103;if(an.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var i=Symbol.for;s=i("react.element"),an.Fragment=i("react.fragment")}var o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function f(p,d,m){var v,x={},w=null,C=null;m!==void 0&&(w=""+m),d.key!==void 0&&(w=""+d.key),d.ref!==void 0&&(C=d.ref);for(v in d)l.call(d,v)&&!c.hasOwnProperty(v)&&(x[v]=d[v]);if(p&&p.defaultProps)for(v in d=p.defaultProps,d)x[v]===void 0&&(x[v]=d[v]);return{$$typeof:s,type:p,key:w,ref:C,props:x,_owner:o.current}}return an.jsx=f,an.jsxs=f,an}var kl;function Zc(){return kl||(kl=1,ni.exports=Xc()),ni.exports}var F=Zc(),ye=oi();const St=yl(ye);var li={exports:{}},Ke={},ai={exports:{}},ui={};var Cl;function Gc(){return Cl||(Cl=1,(function(r){var s,i,o,l;if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;r.unstable_now=function(){return c.now()}}else{var f=Date,p=f.now();r.unstable_now=function(){return f.now()-p}}if(typeof window>"u"||typeof MessageChannel!="function"){var d=null,m=null,v=function(){if(d!==null)try{var L=r.unstable_now();d(!0,L),d=null}catch(b){throw setTimeout(v,0),b}};s=function(L){d!==null?setTimeout(s,0,L):(d=L,setTimeout(v,0))},i=function(L,b){m=setTimeout(L,b)},o=function(){clearTimeout(m)},r.unstable_shouldYield=function(){return!1},l=r.unstable_forceFrameRate=function(){}}else{var x=window.setTimeout,w=window.clearTimeout;if(typeof console<"u"){var C=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof C!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var N=!1,E=null,_=-1,D=5,z=0;r.unstable_shouldYield=function(){return r.unstable_now()>=z},l=function(){},r.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<L?Math.floor(1e3/L):5};var G=new MessageChannel,K=G.port2;G.port1.onmessage=function(){if(E!==null){var L=r.unstable_now();z=L+D;try{E(!0,L)?K.postMessage(null):(N=!1,E=null)}catch(b){throw K.postMessage(null),b}}else N=!1},s=function(L){E=L,N||(N=!0,K.postMessage(null))},i=function(L,b){_=x(function(){L(r.unstable_now())},b)},o=function(){w(_),_=-1}}function Z(L,b){var U=L.length;L.push(b);e:for(;;){var M=U-1>>>1,Q=L[M];if(Q!==void 0&&0<V(Q,b))L[M]=b,L[U]=Q,U=M;else break e}}function H(L){return L=L[0],L===void 0?null:L}function B(L){var b=L[0];if(b!==void 0){var U=L.pop();if(U!==b){L[0]=U;e:for(var M=0,Q=L.length;M<Q;){var Se=2*(M+1)-1,We=L[Se],gt=Se+1,rt=L[gt];if(We!==void 0&&0>V(We,U))rt!==void 0&&0>V(rt,We)?(L[M]=rt,L[gt]=U,M=gt):(L[M]=We,L[Se]=U,M=Se);else if(rt!==void 0&&0>V(rt,U))L[M]=rt,L[gt]=U,M=gt;else break e}}return b}return null}function V(L,b){var U=L.sortIndex-b.sortIndex;return U!==0?U:L.id-b.id}var q=[],fe=[],se=1,ge=null,pe=3,we=!1,ne=!1,xe=!1;function T(L){for(var b=H(fe);b!==null;){if(b.callback===null)B(fe);else if(b.startTime<=L)B(fe),b.sortIndex=b.expirationTime,Z(q,b);else break;b=H(fe)}}function O(L){if(xe=!1,T(L),!ne)if(H(q)!==null)ne=!0,s(te);else{var b=H(fe);b!==null&&i(O,b.startTime-L)}}function te(L,b){ne=!1,xe&&(xe=!1,o()),we=!0;var U=pe;try{for(T(b),ge=H(q);ge!==null&&(!(ge.expirationTime>b)||L&&!r.unstable_shouldYield());){var M=ge.callback;if(typeof M=="function"){ge.callback=null,pe=ge.priorityLevel;var Q=M(ge.expirationTime<=b);b=r.unstable_now(),typeof Q=="function"?ge.callback=Q:ge===H(q)&&B(q),T(b)}else B(q);ge=H(q)}if(ge!==null)var Se=!0;else{var We=H(fe);We!==null&&i(O,We.startTime-b),Se=!1}return Se}finally{ge=null,pe=U,we=!1}}var he=l;r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(L){L.callback=null},r.unstable_continueExecution=function(){ne||we||(ne=!0,s(te))},r.unstable_getCurrentPriorityLevel=function(){return pe},r.unstable_getFirstCallbackNode=function(){return H(q)},r.unstable_next=function(L){switch(pe){case 1:case 2:case 3:var b=3;break;default:b=pe}var U=pe;pe=b;try{return L()}finally{pe=U}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=he,r.unstable_runWithPriority=function(L,b){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var U=pe;pe=L;try{return b()}finally{pe=U}},r.unstable_scheduleCallback=function(L,b,U){var M=r.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?M+U:M):U=M,L){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=U+Q,L={id:se++,callback:b,priorityLevel:L,startTime:U,expirationTime:Q,sortIndex:-1},U>M?(L.sortIndex=U,Z(fe,L),H(q)===null&&L===H(fe)&&(xe?o():xe=!0,i(O,U-M))):(L.sortIndex=Q,Z(q,L),ne||we||(ne=!0,s(te))),L},r.unstable_wrapCallback=function(L){var b=pe;return function(){var U=pe;pe=b;try{return L.apply(this,arguments)}finally{pe=U}}}})(ui)),ui}var $l;function qc(){return $l||($l=1,ai.exports=Gc()),ai.exports}var _l;function ef(){if(_l)return Ke;_l=1;var r=oi(),s=si(),i=qc();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."}if(!r)throw Error(o(227));var l=new Set,c={};function f(e,t){p(e,t),p(e+"Capture",t)}function p(e,t){for(c[e]=t,e=0;e<t.length;e++)l.add(t[e])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m=/^[: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]*$/,v=Object.prototype.hasOwnProperty,x={},w={};function C(e){return v.call(w,e)?!0:v.call(x,e)?!1:m.test(e)?w[e]=!0:(x[e]=!0,!1)}function N(e,t,n,a){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return a?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function E(e,t,n,a){if(t===null||typeof t>"u"||N(e,t,n,a))return!0;if(a)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function _(e,t,n,a,u,h,g){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=a,this.attributeNamespace=u,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=h,this.removeEmptyString=g}var D={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){D[e]=new _(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];D[t]=new _(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){D[e]=new _(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){D[e]=new _(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){D[e]=new _(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){D[e]=new _(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){D[e]=new _(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){D[e]=new _(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){D[e]=new _(e,5,!1,e.toLowerCase(),null,!1,!1)});var z=/[\-:]([a-z])/g;function G(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(z,G);D[t]=new _(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(z,G);D[t]=new _(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(z,G);D[t]=new _(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){D[e]=new _(e,1,!1,e.toLowerCase(),null,!1,!1)}),D.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){D[e]=new _(e,1,!1,e.toLowerCase(),null,!0,!0)});function K(e,t,n,a){var u=D.hasOwnProperty(t)?D[t]:null,h=u!==null?u.type===0:a?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");h||(E(t,n,u,a)&&(n=null),a||u===null?C(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):u.mustUseProperty?e[u.propertyName]=n===null?u.type===3?!1:"":n:(t=u.attributeName,a=u.attributeNamespace,n===null?e.removeAttribute(t):(u=u.type,n=u===3||u===4&&n===!0?"":""+n,a?e.setAttributeNS(a,t,n):e.setAttribute(t,n))))}var Z=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,H=60103,B=60106,V=60107,q=60108,fe=60114,se=60109,ge=60110,pe=60112,we=60113,ne=60120,xe=60115,T=60116,O=60121,te=60128,he=60129,L=60130,b=60131;if(typeof Symbol=="function"&&Symbol.for){var U=Symbol.for;H=U("react.element"),B=U("react.portal"),V=U("react.fragment"),q=U("react.strict_mode"),fe=U("react.profiler"),se=U("react.provider"),ge=U("react.context"),pe=U("react.forward_ref"),we=U("react.suspense"),ne=U("react.suspense_list"),xe=U("react.memo"),T=U("react.lazy"),O=U("react.block"),U("react.scope"),te=U("react.opaque.id"),he=U("react.debug_trace_mode"),L=U("react.offscreen"),b=U("react.legacy_hidden")}var M=typeof Symbol=="function"&&Symbol.iterator;function Q(e){return e===null||typeof e!="object"?null:(e=M&&e[M]||e["@@iterator"],typeof e=="function"?e:null)}var Se;function We(e){if(Se===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Se=t&&t[1]||""}return`
2
+ `+Se+e}var gt=!1;function rt(e,t){if(!e||gt)return"";gt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(S){var a=S}Reflect.construct(e,[],t)}else{try{t.call()}catch(S){a=S}e.call(t.prototype)}else{try{throw Error()}catch(S){a=S}e()}}catch(S){if(S&&a&&typeof S.stack=="string"){for(var u=S.stack.split(`
3
+ `),h=a.stack.split(`
4
+ `),g=u.length-1,y=h.length-1;1<=g&&0<=y&&u[g]!==h[y];)y--;for(;1<=g&&0<=y;g--,y--)if(u[g]!==h[y]){if(g!==1||y!==1)do if(g--,y--,0>y||u[g]!==h[y])return`
5
+ `+u[g].replace(" at new "," at ");while(1<=g&&0<=y);break}}}finally{gt=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?We(e):""}function Hd(e){switch(e.tag){case 5:return We(e.type);case 16:return We("Lazy");case 13:return We("Suspense");case 19:return We("SuspenseList");case 0:case 2:case 15:return e=rt(e.type,!1),e;case 11:return e=rt(e.type.render,!1),e;case 22:return e=rt(e.type._render,!1),e;case 1:return e=rt(e.type,!0),e;default:return""}}function vn(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case V:return"Fragment";case B:return"Portal";case fe:return"Profiler";case q:return"StrictMode";case we:return"Suspense";case ne:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ge:return(e.displayName||"Context")+".Consumer";case se:return(e._context.displayName||"Context")+".Provider";case pe:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case xe:return vn(e.type);case O:return vn(e._render);case T:t=e._payload,e=e._init;try{return vn(e(t))}catch{}}return null}function _t(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ga(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Kd(e){var t=ga(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var u=n.get,h=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(g){a=""+g,h.call(this,g)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(g){a=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function rs(e){e._valueTracker||(e._valueTracker=Kd(e))}function ma(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=ga(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function ss(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ni(e,t){var n=t.checked;return s({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ya(e,t){var n=t.defaultValue==null?"":t.defaultValue,a=t.checked!=null?t.checked:t.defaultChecked;n=_t(t.value!=null?t.value:n),e._wrapperState={initialChecked:a,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function va(e,t){t=t.checked,t!=null&&K(e,"checked",t,!1)}function Ai(e,t){va(e,t);var n=_t(t.value),a=t.type;if(n!=null)a==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ji(e,t.type,n):t.hasOwnProperty("defaultValue")&&ji(e,t.type,_t(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function wa(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var a=t.type;if(!(a!=="submit"&&a!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ji(e,t,n){(t!=="number"||ss(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Wd(e){var t="";return r.Children.forEach(e,function(n){n!=null&&(t+=n)}),t}function Li(e,t){return e=s({children:void 0},t),(t=Wd(t.children))&&(e.children=t),e}function wn(e,t,n,a){if(e=e.options,t){t={};for(var u=0;u<n.length;u++)t["$"+n[u]]=!0;for(n=0;n<e.length;n++)u=t.hasOwnProperty("$"+e[n].value),e[n].selected!==u&&(e[n].selected=u),u&&a&&(e[n].defaultSelected=!0)}else{for(n=""+_t(n),t=null,u=0;u<e.length;u++){if(e[u].value===n){e[u].selected=!0,a&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Oi(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(o(91));return s({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function xa(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(o(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(o(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:_t(n)}}function Sa(e,t){var n=_t(t.value),a=_t(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),a!=null&&(e.defaultValue=""+a)}function ka(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var Ri={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function Ca(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ii(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ca(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var is,$a=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,a,u){MSApp.execUnsafeLocalFunction(function(){return e(t,n,a,u)})}:e})(function(e,t){if(e.namespaceURI!==Ri.svg||"innerHTML"in e)e.innerHTML=t;else{for(is=is||document.createElement("div"),is.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=is.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Gn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var qn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Qd=["Webkit","ms","Moz","O"];Object.keys(qn).forEach(function(e){Qd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qn[t]=qn[e]})});function _a(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||qn.hasOwnProperty(e)&&qn[e]?(""+t).trim():t+"px"}function Pa(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var a=n.indexOf("--")===0,u=_a(n,t[n],a);n==="float"&&(n="cssFloat"),a?e.setProperty(n,u):e[n]=u}}var Yd=s({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function zi(e,t){if(t){if(Yd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(o(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(t.style!=null&&typeof t.style!="object")throw Error(o(62))}}function Mi(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Di(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fi=null,xn=null,Sn=null;function Ea(e){if(e=vr(e)){if(typeof Fi!="function")throw Error(o(280));var t=e.stateNode;t&&(t=Cs(t),Fi(e.stateNode,e.type,t))}}function Ta(e){xn?Sn?Sn.push(e):Sn=[e]:xn=e}function Na(){if(xn){var e=xn,t=Sn;if(Sn=xn=null,Ea(e),t)for(e=0;e<t.length;e++)Ea(t[e])}}function Ui(e,t){return e(t)}function Aa(e,t,n,a,u){return e(t,n,a,u)}function bi(){}var ja=Ui,Jt=!1,Bi=!1;function Vi(){(xn!==null||Sn!==null)&&(bi(),Na())}function Jd(e,t,n){if(Bi)return e(t,n);Bi=!0;try{return ja(e,t,n)}finally{Bi=!1,Vi()}}function er(e,t){var n=e.stateNode;if(n===null)return null;var a=Cs(n);if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(o(231,t,typeof n));return n}var Hi=!1;if(d)try{var tr={};Object.defineProperty(tr,"passive",{get:function(){Hi=!0}}),window.addEventListener("test",tr,tr),window.removeEventListener("test",tr,tr)}catch{Hi=!1}function Xd(e,t,n,a,u,h,g,y,S){var A=Array.prototype.slice.call(arguments,3);try{t.apply(n,A)}catch(W){this.onError(W)}}var nr=!1,os=null,ls=!1,Ki=null,Zd={onError:function(e){nr=!0,os=e}};function Gd(e,t,n,a,u,h,g,y,S){nr=!1,os=null,Xd.apply(Zd,arguments)}function qd(e,t,n,a,u,h,g,y,S){if(Gd.apply(this,arguments),nr){if(nr){var A=os;nr=!1,os=null}else throw Error(o(198));ls||(ls=!0,Ki=A)}}function Xt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&1026)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function La(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Oa(e){if(Xt(e)!==e)throw Error(o(188))}function ep(e){var t=e.alternate;if(!t){if(t=Xt(e),t===null)throw Error(o(188));return t!==e?null:e}for(var n=e,a=t;;){var u=n.return;if(u===null)break;var h=u.alternate;if(h===null){if(a=u.return,a!==null){n=a;continue}break}if(u.child===h.child){for(h=u.child;h;){if(h===n)return Oa(u),e;if(h===a)return Oa(u),t;h=h.sibling}throw Error(o(188))}if(n.return!==a.return)n=u,a=h;else{for(var g=!1,y=u.child;y;){if(y===n){g=!0,n=u,a=h;break}if(y===a){g=!0,a=u,n=h;break}y=y.sibling}if(!g){for(y=h.child;y;){if(y===n){g=!0,n=h,a=u;break}if(y===a){g=!0,a=h,n=u;break}y=y.sibling}if(!g)throw Error(o(189))}}if(n.alternate!==a)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function Ra(e){if(e=ep(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Ia(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var za,Wi,Ma,Da,Qi=!1,at=[],Pt=null,Et=null,Tt=null,rr=new Map,sr=new Map,ir=[],Fa="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Yi(e,t,n,a,u){return{blockedOn:e,domEventName:t,eventSystemFlags:n|16,nativeEvent:u,targetContainers:[a]}}function Ua(e,t){switch(e){case"focusin":case"focusout":Pt=null;break;case"dragenter":case"dragleave":Et=null;break;case"mouseover":case"mouseout":Tt=null;break;case"pointerover":case"pointerout":rr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":sr.delete(t.pointerId)}}function or(e,t,n,a,u,h){return e===null||e.nativeEvent!==h?(e=Yi(t,n,a,u,h),t!==null&&(t=vr(t),t!==null&&Wi(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function tp(e,t,n,a,u){switch(t){case"focusin":return Pt=or(Pt,e,t,n,a,u),!0;case"dragenter":return Et=or(Et,e,t,n,a,u),!0;case"mouseover":return Tt=or(Tt,e,t,n,a,u),!0;case"pointerover":var h=u.pointerId;return rr.set(h,or(rr.get(h)||null,e,t,n,a,u)),!0;case"gotpointercapture":return h=u.pointerId,sr.set(h,or(sr.get(h)||null,e,t,n,a,u)),!0}return!1}function np(e){var t=Zt(e.target);if(t!==null){var n=Xt(t);if(n!==null){if(t=n.tag,t===13){if(t=La(n),t!==null){e.blockedOn=t,Da(e.lanePriority,function(){i.unstable_runWithPriority(e.priority,function(){Ma(n)})});return}}else if(t===3&&n.stateNode.hydrate){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function as(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=eo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null)return t=vr(n),t!==null&&Wi(t),e.blockedOn=n,!1;t.shift()}return!0}function ba(e,t,n){as(e)&&n.delete(t)}function rp(){for(Qi=!1;0<at.length;){var e=at[0];if(e.blockedOn!==null){e=vr(e.blockedOn),e!==null&&za(e);break}for(var t=e.targetContainers;0<t.length;){var n=eo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null){e.blockedOn=n;break}t.shift()}e.blockedOn===null&&at.shift()}Pt!==null&&as(Pt)&&(Pt=null),Et!==null&&as(Et)&&(Et=null),Tt!==null&&as(Tt)&&(Tt=null),rr.forEach(ba),sr.forEach(ba)}function lr(e,t){e.blockedOn===t&&(e.blockedOn=null,Qi||(Qi=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,rp)))}function Ba(e){function t(u){return lr(u,e)}if(0<at.length){lr(at[0],e);for(var n=1;n<at.length;n++){var a=at[n];a.blockedOn===e&&(a.blockedOn=null)}}for(Pt!==null&&lr(Pt,e),Et!==null&&lr(Et,e),Tt!==null&&lr(Tt,e),rr.forEach(t),sr.forEach(t),n=0;n<ir.length;n++)a=ir[n],a.blockedOn===e&&(a.blockedOn=null);for(;0<ir.length&&(n=ir[0],n.blockedOn===null);)np(n),n.blockedOn===null&&ir.shift()}function us(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kn={animationend:us("Animation","AnimationEnd"),animationiteration:us("Animation","AnimationIteration"),animationstart:us("Animation","AnimationStart"),transitionend:us("Transition","TransitionEnd")},Ji={},Va={};d&&(Va=document.createElement("div").style,"AnimationEvent"in window||(delete kn.animationend.animation,delete kn.animationiteration.animation,delete kn.animationstart.animation),"TransitionEvent"in window||delete kn.transitionend.transition);function cs(e){if(Ji[e])return Ji[e];if(!kn[e])return e;var t=kn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Va)return Ji[e]=t[n];return e}var Ha=cs("animationend"),Ka=cs("animationiteration"),Wa=cs("animationstart"),Qa=cs("transitionend"),Ya=new Map,Xi=new Map,sp=["abort","abort",Ha,"animationEnd",Ka,"animationIteration",Wa,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Qa,"transitionEnd","waiting","waiting"];function Zi(e,t){for(var n=0;n<e.length;n+=2){var a=e[n],u=e[n+1];u="on"+(u[0].toUpperCase()+u.slice(1)),Xi.set(a,t),Ya.set(a,u),f(u,[a])}}var ip=i.unstable_now;ip();var ke=8;function Cn(e){if((1&e)!==0)return ke=15,1;if((2&e)!==0)return ke=14,2;if((4&e)!==0)return ke=13,4;var t=24&e;return t!==0?(ke=12,t):(e&32)!==0?(ke=11,32):(t=192&e,t!==0?(ke=10,t):(e&256)!==0?(ke=9,256):(t=3584&e,t!==0?(ke=8,t):(e&4096)!==0?(ke=7,4096):(t=4186112&e,t!==0?(ke=6,t):(t=62914560&e,t!==0?(ke=5,t):e&67108864?(ke=4,67108864):(e&134217728)!==0?(ke=3,134217728):(t=805306368&e,t!==0?(ke=2,t):(1073741824&e)!==0?(ke=1,1073741824):(ke=8,e))))))}function op(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function lp(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(o(358,e))}}function ar(e,t){var n=e.pendingLanes;if(n===0)return ke=0;var a=0,u=0,h=e.expiredLanes,g=e.suspendedLanes,y=e.pingedLanes;if(h!==0)a=h,u=ke=15;else if(h=n&134217727,h!==0){var S=h&~g;S!==0?(a=Cn(S),u=ke):(y&=h,y!==0&&(a=Cn(y),u=ke))}else h=n&~g,h!==0?(a=Cn(h),u=ke):y!==0&&(a=Cn(y),u=ke);if(a===0)return 0;if(a=31-Nt(a),a=n&((0>a?0:1<<a)<<1)-1,t!==0&&t!==a&&(t&g)===0){if(Cn(t),u<=ke)return t;ke=u}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=a;0<t;)n=31-Nt(t),u=1<<n,a|=e[n],t&=~u;return a}function Ja(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function fs(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=$n(24&~t),e===0?fs(10,t):e;case 10:return e=$n(192&~t),e===0?fs(8,t):e;case 8:return e=$n(3584&~t),e===0&&(e=$n(4186112&~t),e===0&&(e=512)),e;case 2:return t=$n(805306368&~t),t===0&&(t=268435456),t}throw Error(o(358,e))}function $n(e){return e&-e}function Gi(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function hs(e,t,n){e.pendingLanes|=t;var a=t-1;e.suspendedLanes&=a,e.pingedLanes&=a,e=e.eventTimes,t=31-Nt(t),e[t]=n}var Nt=Math.clz32?Math.clz32:cp,ap=Math.log,up=Math.LN2;function cp(e){return e===0?32:31-(ap(e)/up|0)|0}var fp=i.unstable_UserBlockingPriority,hp=i.unstable_runWithPriority,ds=!0;function dp(e,t,n,a){Jt||bi();var u=qi,h=Jt;Jt=!0;try{Aa(u,e,t,n,a)}finally{(Jt=h)||Vi()}}function pp(e,t,n,a){hp(fp,qi.bind(null,e,t,n,a))}function qi(e,t,n,a){if(ds){var u;if((u=(t&4)===0)&&0<at.length&&-1<Fa.indexOf(e))e=Yi(null,e,t,n,a),at.push(e);else{var h=eo(e,t,n,a);if(h===null)u&&Ua(e,a);else{if(u){if(-1<Fa.indexOf(e)){e=Yi(h,e,t,n,a),at.push(e);return}if(tp(h,e,t,n,a))return;Ua(e,a)}$u(e,t,a,null,n)}}}}function eo(e,t,n,a){var u=Di(a);if(u=Zt(u),u!==null){var h=Xt(u);if(h===null)u=null;else{var g=h.tag;if(g===13){if(u=La(h),u!==null)return u;u=null}else if(g===3){if(h.stateNode.hydrate)return h.tag===3?h.stateNode.containerInfo:null;u=null}else h!==u&&(u=null)}}return $u(e,t,a,u,n),null}var At=null,to=null,ps=null;function Xa(){if(ps)return ps;var e,t=to,n=t.length,a,u="value"in At?At.value:At.textContent,h=u.length;for(e=0;e<n&&t[e]===u[e];e++);var g=n-e;for(a=1;a<=g&&t[n-a]===u[h-a];a++);return ps=u.slice(e,1<a?1-a:void 0)}function gs(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ms(){return!0}function Za(){return!1}function Qe(e){function t(n,a,u,h,g){this._reactName=n,this._targetInst=u,this.type=a,this.nativeEvent=h,this.target=g,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(n=e[y],this[y]=n?n(h):h[y]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?ms:Za,this.isPropagationStopped=Za,this}return s(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ms)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ms)},persist:function(){},isPersistent:ms}),t}var _n={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},no=Qe(_n),ur=s({},_n,{view:0,detail:0}),gp=Qe(ur),ro,so,cr,ys=s({},ur,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:oo,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cr&&(cr&&e.type==="mousemove"?(ro=e.screenX-cr.screenX,so=e.screenY-cr.screenY):so=ro=0,cr=e),ro)},movementY:function(e){return"movementY"in e?e.movementY:so}}),Ga=Qe(ys),mp=s({},ys,{dataTransfer:0}),yp=Qe(mp),vp=s({},ur,{relatedTarget:0}),io=Qe(vp),wp=s({},_n,{animationName:0,elapsedTime:0,pseudoElement:0}),xp=Qe(wp),Sp=s({},_n,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),kp=Qe(Sp),Cp=s({},_n,{data:0}),qa=Qe(Cp),$p={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_p={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Pp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ep(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Pp[e])?!!t[e]:!1}function oo(){return Ep}var Tp=s({},ur,{key:function(e){if(e.key){var t=$p[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=gs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?_p[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:oo,charCode:function(e){return e.type==="keypress"?gs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?gs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Np=Qe(Tp),Ap=s({},ys,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),eu=Qe(Ap),jp=s({},ur,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:oo}),Lp=Qe(jp),Op=s({},_n,{propertyName:0,elapsedTime:0,pseudoElement:0}),Rp=Qe(Op),Ip=s({},ys,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),zp=Qe(Ip),Mp=[9,13,27,32],lo=d&&"CompositionEvent"in window,fr=null;d&&"documentMode"in document&&(fr=document.documentMode);var Dp=d&&"TextEvent"in window&&!fr,tu=d&&(!lo||fr&&8<fr&&11>=fr),nu=" ",ru=!1;function su(e,t){switch(e){case"keyup":return Mp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function iu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Pn=!1;function Fp(e,t){switch(e){case"compositionend":return iu(t);case"keypress":return t.which!==32?null:(ru=!0,nu);case"textInput":return e=t.data,e===nu&&ru?null:e;default:return null}}function Up(e,t){if(Pn)return e==="compositionend"||!lo&&su(e,t)?(e=Xa(),ps=to=At=null,Pn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return tu&&t.locale!=="ko"?null:t.data;default:return null}}var bp={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ou(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!bp[e.type]:t==="textarea"}function lu(e,t,n,a){Ta(a),t=ws(t,"onChange"),0<t.length&&(n=new no("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var hr=null,dr=null;function Bp(e){wu(e,0)}function vs(e){var t=jn(e);if(ma(t))return e}function Vp(e,t){if(e==="change")return t}var au=!1;if(d){var ao;if(d){var uo="oninput"in document;if(!uo){var uu=document.createElement("div");uu.setAttribute("oninput","return;"),uo=typeof uu.oninput=="function"}ao=uo}else ao=!1;au=ao&&(!document.documentMode||9<document.documentMode)}function cu(){hr&&(hr.detachEvent("onpropertychange",fu),dr=hr=null)}function fu(e){if(e.propertyName==="value"&&vs(dr)){var t=[];if(lu(t,dr,e,Di(e)),e=Bp,Jt)e(t);else{Jt=!0;try{Ui(e,t)}finally{Jt=!1,Vi()}}}}function Hp(e,t,n){e==="focusin"?(cu(),hr=t,dr=n,hr.attachEvent("onpropertychange",fu)):e==="focusout"&&cu()}function Kp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return vs(dr)}function Wp(e,t){if(e==="click")return vs(t)}function Qp(e,t){if(e==="input"||e==="change")return vs(t)}function Yp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Je=typeof Object.is=="function"?Object.is:Yp,Jp=Object.prototype.hasOwnProperty;function pr(e,t){if(Je(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++)if(!Jp.call(t,n[a])||!Je(e[n[a]],t[n[a]]))return!1;return!0}function hu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function du(e,t){var n=hu(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=hu(n)}}function pu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gu(){for(var e=window,t=ss();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ss(e.document)}return t}function co(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Xp=d&&"documentMode"in document&&11>=document.documentMode,En=null,fo=null,gr=null,ho=!1;function mu(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ho||En==null||En!==ss(a)||(a=En,"selectionStart"in a&&co(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),gr&&pr(gr,a)||(gr=a,a=ws(fo,"onSelect"),0<a.length&&(t=new no("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=En)))}Zi("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Zi("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Zi(sp,2);for(var yu="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),po=0;po<yu.length;po++)Xi.set(yu[po],0);p("onMouseEnter",["mouseout","mouseover"]),p("onMouseLeave",["mouseout","mouseover"]),p("onPointerEnter",["pointerout","pointerover"]),p("onPointerLeave",["pointerout","pointerover"]),f("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),f("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),f("onBeforeInput",["compositionend","keypress","textInput","paste"]),f("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var mr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Zp=new Set("cancel close invalid load scroll toggle".split(" ").concat(mr));function vu(e,t,n){var a=e.type||"unknown-event";e.currentTarget=n,qd(a,t,void 0,e),e.currentTarget=null}function wu(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],u=a.event;a=a.listeners;e:{var h=void 0;if(t)for(var g=a.length-1;0<=g;g--){var y=a[g],S=y.instance,A=y.currentTarget;if(y=y.listener,S!==h&&u.isPropagationStopped())break e;vu(u,y,A),h=S}else for(g=0;g<a.length;g++){if(y=a[g],S=y.instance,A=y.currentTarget,y=y.listener,S!==h&&u.isPropagationStopped())break e;vu(u,y,A),h=S}}}if(ls)throw e=Ki,ls=!1,Ki=null,e}function $e(e,t){var n=Au(t),a=e+"__bubble";n.has(a)||(Cu(t,e,2,!1),n.add(a))}var xu="_reactListening"+Math.random().toString(36).slice(2);function Su(e){e[xu]||(e[xu]=!0,l.forEach(function(t){Zp.has(t)||ku(t,!1,e,null),ku(t,!0,e,null)}))}function ku(e,t,n,a){var u=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,h=n;e==="selectionchange"&&n.nodeType!==9&&(h=n.ownerDocument);var g=Au(h),y=e+"__"+(t?"capture":"bubble");g.has(y)||(t&&(u|=4),Cu(h,e,u,t),g.add(y))}function Cu(e,t,n,a){var u=Xi.get(t);switch(u===void 0?2:u){case 0:u=dp;break;case 1:u=pp;break;default:u=qi}n=u.bind(null,t,n,e),u=void 0,!Hi||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),a?u!==void 0?e.addEventListener(t,n,{capture:!0,passive:u}):e.addEventListener(t,n,!0):u!==void 0?e.addEventListener(t,n,{passive:u}):e.addEventListener(t,n,!1)}function $u(e,t,n,a,u){var h=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var g=a.tag;if(g===3||g===4){var y=a.stateNode.containerInfo;if(y===u||y.nodeType===8&&y.parentNode===u)break;if(g===4)for(g=a.return;g!==null;){var S=g.tag;if((S===3||S===4)&&(S=g.stateNode.containerInfo,S===u||S.nodeType===8&&S.parentNode===u))return;g=g.return}for(;y!==null;){if(g=Zt(y),g===null)return;if(S=g.tag,S===5||S===6){a=h=g;continue e}y=y.parentNode}}a=a.return}Jd(function(){var A=h,W=Di(n),ae=[];e:{var I=Ya.get(e);if(I!==void 0){var ee=no,oe=e;switch(e){case"keypress":if(gs(n)===0)break e;case"keydown":case"keyup":ee=Np;break;case"focusin":oe="focus",ee=io;break;case"focusout":oe="blur",ee=io;break;case"beforeblur":case"afterblur":ee=io;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ee=Ga;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ee=yp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=Lp;break;case Ha:case Ka:case Wa:ee=xp;break;case Qa:ee=Rp;break;case"scroll":ee=gp;break;case"wheel":ee=zp;break;case"copy":case"cut":case"paste":ee=kp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ee=eu}var re=(t&4)!==0,P=!re&&e==="scroll",k=re?I!==null?I+"Capture":null:I;re=[];for(var $=A,j;$!==null;){j=$;var R=j.stateNode;if(j.tag===5&&R!==null&&(j=R,k!==null&&(R=er($,k),R!=null&&re.push(yr($,R,j)))),P)break;$=$.return}0<re.length&&(I=new ee(I,oe,null,n,W),ae.push({event:I,listeners:re}))}}if((t&7)===0){e:{if(I=e==="mouseover"||e==="pointerover",ee=e==="mouseout"||e==="pointerout",I&&(t&16)===0&&(oe=n.relatedTarget||n.fromElement)&&(Zt(oe)||oe[An]))break e;if((ee||I)&&(I=W.window===W?W:(I=W.ownerDocument)?I.defaultView||I.parentWindow:window,ee?(oe=n.relatedTarget||n.toElement,ee=A,oe=oe?Zt(oe):null,oe!==null&&(P=Xt(oe),oe!==P||oe.tag!==5&&oe.tag!==6)&&(oe=null)):(ee=null,oe=A),ee!==oe)){if(re=Ga,R="onMouseLeave",k="onMouseEnter",$="mouse",(e==="pointerout"||e==="pointerover")&&(re=eu,R="onPointerLeave",k="onPointerEnter",$="pointer"),P=ee==null?I:jn(ee),j=oe==null?I:jn(oe),I=new re(R,$+"leave",ee,n,W),I.target=P,I.relatedTarget=j,R=null,Zt(W)===A&&(re=new re(k,$+"enter",oe,n,W),re.target=j,re.relatedTarget=P,R=re),P=R,ee&&oe)t:{for(re=ee,k=oe,$=0,j=re;j;j=Tn(j))$++;for(j=0,R=k;R;R=Tn(R))j++;for(;0<$-j;)re=Tn(re),$--;for(;0<j-$;)k=Tn(k),j--;for(;$--;){if(re===k||k!==null&&re===k.alternate)break t;re=Tn(re),k=Tn(k)}re=null}else re=null;ee!==null&&_u(ae,I,ee,re,!1),oe!==null&&P!==null&&_u(ae,P,oe,re,!0)}}e:{if(I=A?jn(A):window,ee=I.nodeName&&I.nodeName.toLowerCase(),ee==="select"||ee==="input"&&I.type==="file")var ue=Vp;else if(ou(I))if(au)ue=Qp;else{ue=Kp;var X=Hp}else(ee=I.nodeName)&&ee.toLowerCase()==="input"&&(I.type==="checkbox"||I.type==="radio")&&(ue=Wp);if(ue&&(ue=ue(e,A))){lu(ae,ue,n,W);break e}X&&X(e,I,A),e==="focusout"&&(X=I._wrapperState)&&X.controlled&&I.type==="number"&&ji(I,"number",I.value)}switch(X=A?jn(A):window,e){case"focusin":(ou(X)||X.contentEditable==="true")&&(En=X,fo=A,gr=null);break;case"focusout":gr=fo=En=null;break;case"mousedown":ho=!0;break;case"contextmenu":case"mouseup":case"dragend":ho=!1,mu(ae,n,W);break;case"selectionchange":if(Xp)break;case"keydown":case"keyup":mu(ae,n,W)}var ce;if(lo)e:{switch(e){case"compositionstart":var me="onCompositionStart";break e;case"compositionend":me="onCompositionEnd";break e;case"compositionupdate":me="onCompositionUpdate";break e}me=void 0}else Pn?su(e,n)&&(me="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(me="onCompositionStart");me&&(tu&&n.locale!=="ko"&&(Pn||me!=="onCompositionStart"?me==="onCompositionEnd"&&Pn&&(ce=Xa()):(At=W,to="value"in At?At.value:At.textContent,Pn=!0)),X=ws(A,me),0<X.length&&(me=new qa(me,e,null,n,W),ae.push({event:me,listeners:X}),ce?me.data=ce:(ce=iu(n),ce!==null&&(me.data=ce)))),(ce=Dp?Fp(e,n):Up(e,n))&&(A=ws(A,"onBeforeInput"),0<A.length&&(W=new qa("onBeforeInput","beforeinput",null,n,W),ae.push({event:W,listeners:A}),W.data=ce))}wu(ae,t)})}function yr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ws(e,t){for(var n=t+"Capture",a=[];e!==null;){var u=e,h=u.stateNode;u.tag===5&&h!==null&&(u=h,h=er(e,n),h!=null&&a.unshift(yr(e,h,u)),h=er(e,t),h!=null&&a.push(yr(e,h,u))),e=e.return}return a}function Tn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function _u(e,t,n,a,u){for(var h=t._reactName,g=[];n!==null&&n!==a;){var y=n,S=y.alternate,A=y.stateNode;if(S!==null&&S===a)break;y.tag===5&&A!==null&&(y=A,u?(S=er(n,h),S!=null&&g.unshift(yr(n,S,y))):u||(S=er(n,h),S!=null&&g.push(yr(n,S,y)))),n=n.return}g.length!==0&&e.push({event:t,listeners:g})}function xs(){}var go=null,mo=null;function Pu(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function yo(e,t){return e==="textarea"||e==="option"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Eu=typeof setTimeout=="function"?setTimeout:void 0,Gp=typeof clearTimeout=="function"?clearTimeout:void 0;function vo(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function Nn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function Tu(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var wo=0;function qp(e){return{$$typeof:te,toString:e,valueOf:e}}var Ss=Math.random().toString(36).slice(2),jt="__reactFiber$"+Ss,ks="__reactProps$"+Ss,An="__reactContainer$"+Ss,Nu="__reactEvents$"+Ss;function Zt(e){var t=e[jt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[An]||n[jt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Tu(e);e!==null;){if(n=e[jt])return n;e=Tu(e)}return t}e=n,n=e.parentNode}return null}function vr(e){return e=e[jt]||e[An],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function jn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(o(33))}function Cs(e){return e[ks]||null}function Au(e){var t=e[Nu];return t===void 0&&(t=e[Nu]=new Set),t}var xo=[],Ln=-1;function Lt(e){return{current:e}}function _e(e){0>Ln||(e.current=xo[Ln],xo[Ln]=null,Ln--)}function Pe(e,t){Ln++,xo[Ln]=e.current,e.current=t}var Ot={},ze=Lt(Ot),be=Lt(!1),Gt=Ot;function On(e,t){var n=e.type.contextTypes;if(!n)return Ot;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===t)return a.__reactInternalMemoizedMaskedChildContext;var u={},h;for(h in n)u[h]=t[h];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=u),u}function Be(e){return e=e.childContextTypes,e!=null}function $s(){_e(be),_e(ze)}function ju(e,t,n){if(ze.current!==Ot)throw Error(o(168));Pe(ze,t),Pe(be,n)}function Lu(e,t,n){var a=e.stateNode;if(e=t.childContextTypes,typeof a.getChildContext!="function")return n;a=a.getChildContext();for(var u in a)if(!(u in e))throw Error(o(108,vn(t)||"Unknown",u));return s({},n,a)}function _s(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ot,Gt=ze.current,Pe(ze,e),Pe(be,be.current),!0}function Ou(e,t,n){var a=e.stateNode;if(!a)throw Error(o(169));n?(e=Lu(e,t,Gt),a.__reactInternalMemoizedMergedChildContext=e,_e(be),_e(ze),Pe(ze,e)):_e(be),Pe(be,n)}var So=null,qt=null,eg=i.unstable_runWithPriority,ko=i.unstable_scheduleCallback,Co=i.unstable_cancelCallback,tg=i.unstable_shouldYield,Ru=i.unstable_requestPaint,$o=i.unstable_now,ng=i.unstable_getCurrentPriorityLevel,Ps=i.unstable_ImmediatePriority,Iu=i.unstable_UserBlockingPriority,zu=i.unstable_NormalPriority,Mu=i.unstable_LowPriority,Du=i.unstable_IdlePriority,_o={},rg=Ru!==void 0?Ru:function(){},mt=null,Es=null,Po=!1,Fu=$o(),Me=1e4>Fu?$o:function(){return $o()-Fu};function Rn(){switch(ng()){case Ps:return 99;case Iu:return 98;case zu:return 97;case Mu:return 96;case Du:return 95;default:throw Error(o(332))}}function Uu(e){switch(e){case 99:return Ps;case 98:return Iu;case 97:return zu;case 96:return Mu;case 95:return Du;default:throw Error(o(332))}}function en(e,t){return e=Uu(e),eg(e,t)}function wr(e,t,n){return e=Uu(e),ko(e,t,n)}function ut(){if(Es!==null){var e=Es;Es=null,Co(e)}bu()}function bu(){if(!Po&&mt!==null){Po=!0;var e=0;try{var t=mt;en(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(n!==null)}}),mt=null}catch(n){throw mt!==null&&(mt=mt.slice(e+1)),ko(Ps,ut),n}finally{Po=!1}}}var sg=Z.ReactCurrentBatchConfig;function st(e,t){if(e&&e.defaultProps){t=s({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Ts=Lt(null),Ns=null,In=null,As=null;function Eo(){As=In=Ns=null}function To(e){var t=Ts.current;_e(Ts),e.type._context._currentValue=t}function Bu(e,t){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)===t){if(n===null||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,n!==null&&(n.childLanes|=t);e=e.return}}function zn(e,t){Ns=e,As=In=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(it=!0),e.firstContext=null)}function Xe(e,t){if(As!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(As=e,t=1073741823),t={context:e,observedBits:t,next:null},In===null){if(Ns===null)throw Error(o(308));In=t,Ns.dependencies={lanes:0,firstContext:t,responders:null}}else In=In.next=t;return e._currentValue}var Rt=!1;function No(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function Vu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function It(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zt(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function Hu(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var u=null,h=null;if(n=n.firstBaseUpdate,n!==null){do{var g={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};h===null?u=h=g:h=h.next=g,n=n.next}while(n!==null);h===null?u=h=t:h=h.next=t}else u=h=t;n={baseState:a.baseState,firstBaseUpdate:u,lastBaseUpdate:h,shared:a.shared,effects:a.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function xr(e,t,n,a){var u=e.updateQueue;Rt=!1;var h=u.firstBaseUpdate,g=u.lastBaseUpdate,y=u.shared.pending;if(y!==null){u.shared.pending=null;var S=y,A=S.next;S.next=null,g===null?h=A:g.next=A,g=S;var W=e.alternate;if(W!==null){W=W.updateQueue;var ae=W.lastBaseUpdate;ae!==g&&(ae===null?W.firstBaseUpdate=A:ae.next=A,W.lastBaseUpdate=S)}}if(h!==null){ae=u.baseState,g=0,W=A=S=null;do{y=h.lane;var I=h.eventTime;if((a&y)===y){W!==null&&(W=W.next={eventTime:I,lane:0,tag:h.tag,payload:h.payload,callback:h.callback,next:null});e:{var ee=e,oe=h;switch(y=t,I=n,oe.tag){case 1:if(ee=oe.payload,typeof ee=="function"){ae=ee.call(I,ae,y);break e}ae=ee;break e;case 3:ee.flags=ee.flags&-4097|64;case 0:if(ee=oe.payload,y=typeof ee=="function"?ee.call(I,ae,y):ee,y==null)break e;ae=s({},ae,y);break e;case 2:Rt=!0}}h.callback!==null&&(e.flags|=32,y=u.effects,y===null?u.effects=[h]:y.push(h))}else I={eventTime:I,lane:y,tag:h.tag,payload:h.payload,callback:h.callback,next:null},W===null?(A=W=I,S=ae):W=W.next=I,g|=y;if(h=h.next,h===null){if(y=u.shared.pending,y===null)break;h=y.next,y.next=null,u.lastBaseUpdate=y,u.shared.pending=null}}while(!0);W===null&&(S=ae),u.baseState=S,u.firstBaseUpdate=A,u.lastBaseUpdate=W,Lr|=g,e.lanes=g,e.memoizedState=ae}}function Ku(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var a=e[t],u=a.callback;if(u!==null){if(a.callback=null,a=n,typeof u!="function")throw Error(o(191,u));u.call(a)}}}var Wu=new r.Component().refs;function js(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:s({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ls={isMounted:function(e){return(e=e._reactInternals)?Xt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Ye(),u=Ft(e),h=It(a,u);h.payload=t,n!=null&&(h.callback=n),zt(e,h),Ut(e,u,a)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Ye(),u=Ft(e),h=It(a,u);h.tag=1,h.payload=t,n!=null&&(h.callback=n),zt(e,h),Ut(e,u,a)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ye(),a=Ft(e),u=It(n,a);u.tag=2,t!=null&&(u.callback=t),zt(e,u),Ut(e,a,n)}};function Qu(e,t,n,a,u,h,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,h,g):t.prototype&&t.prototype.isPureReactComponent?!pr(n,a)||!pr(u,h):!0}function Yu(e,t,n){var a=!1,u=Ot,h=t.contextType;return typeof h=="object"&&h!==null?h=Xe(h):(u=Be(t)?Gt:ze.current,a=t.contextTypes,h=(a=a!=null)?On(e,u):Ot),t=new t(n,h),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ls,e.stateNode=t,t._reactInternals=e,a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=u,e.__reactInternalMemoizedMaskedChildContext=h),t}function Ju(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Ls.enqueueReplaceState(t,t.state,null)}function Ao(e,t,n,a){var u=e.stateNode;u.props=n,u.state=e.memoizedState,u.refs=Wu,No(e);var h=t.contextType;typeof h=="object"&&h!==null?u.context=Xe(h):(h=Be(t)?Gt:ze.current,u.context=On(e,h)),xr(e,n,u,a),u.state=e.memoizedState,h=t.getDerivedStateFromProps,typeof h=="function"&&(js(e,t,h,n),u.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(t=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),t!==u.state&&Ls.enqueueReplaceState(u,u.state,null),xr(e,n,u,a),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4)}var Os=Array.isArray;function Sr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(o(309));var a=n.stateNode}if(!a)throw Error(o(147,e));var u=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===u?t.ref:(t=function(h){var g=a.refs;g===Wu&&(g=a.refs={}),h===null?delete g[u]:g[u]=h},t._stringRef=u,t)}if(typeof e!="string")throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Rs(e,t){if(e.type!=="textarea")throw Error(o(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Xu(e){function t(P,k){if(e){var $=P.lastEffect;$!==null?($.nextEffect=k,P.lastEffect=k):P.firstEffect=P.lastEffect=k,k.nextEffect=null,k.flags=8}}function n(P,k){if(!e)return null;for(;k!==null;)t(P,k),k=k.sibling;return null}function a(P,k){for(P=new Map;k!==null;)k.key!==null?P.set(k.key,k):P.set(k.index,k),k=k.sibling;return P}function u(P,k){return P=Vt(P,k),P.index=0,P.sibling=null,P}function h(P,k,$){return P.index=$,e?($=P.alternate,$!==null?($=$.index,$<k?(P.flags=2,k):$):(P.flags=2,k)):k}function g(P){return e&&P.alternate===null&&(P.flags=2),P}function y(P,k,$,j){return k===null||k.tag!==6?(k=hl($,P.mode,j),k.return=P,k):(k=u(k,$),k.return=P,k)}function S(P,k,$,j){return k!==null&&k.elementType===$.type?(j=u(k,$.props),j.ref=Sr(P,k,$),j.return=P,j):(j=Gs($.type,$.key,$.props,null,P.mode,j),j.ref=Sr(P,k,$),j.return=P,j)}function A(P,k,$,j){return k===null||k.tag!==4||k.stateNode.containerInfo!==$.containerInfo||k.stateNode.implementation!==$.implementation?(k=dl($,P.mode,j),k.return=P,k):(k=u(k,$.children||[]),k.return=P,k)}function W(P,k,$,j,R){return k===null||k.tag!==7?(k=Hn($,P.mode,j,R),k.return=P,k):(k=u(k,$),k.return=P,k)}function ae(P,k,$){if(typeof k=="string"||typeof k=="number")return k=hl(""+k,P.mode,$),k.return=P,k;if(typeof k=="object"&&k!==null){switch(k.$$typeof){case H:return $=Gs(k.type,k.key,k.props,null,P.mode,$),$.ref=Sr(P,null,k),$.return=P,$;case B:return k=dl(k,P.mode,$),k.return=P,k}if(Os(k)||Q(k))return k=Hn(k,P.mode,$,null),k.return=P,k;Rs(P,k)}return null}function I(P,k,$,j){var R=k!==null?k.key:null;if(typeof $=="string"||typeof $=="number")return R!==null?null:y(P,k,""+$,j);if(typeof $=="object"&&$!==null){switch($.$$typeof){case H:return $.key===R?$.type===V?W(P,k,$.props.children,j,R):S(P,k,$,j):null;case B:return $.key===R?A(P,k,$,j):null}if(Os($)||Q($))return R!==null?null:W(P,k,$,j,null);Rs(P,$)}return null}function ee(P,k,$,j,R){if(typeof j=="string"||typeof j=="number")return P=P.get($)||null,y(k,P,""+j,R);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case H:return P=P.get(j.key===null?$:j.key)||null,j.type===V?W(k,P,j.props.children,R,j.key):S(k,P,j,R);case B:return P=P.get(j.key===null?$:j.key)||null,A(k,P,j,R)}if(Os(j)||Q(j))return P=P.get($)||null,W(k,P,j,R,null);Rs(k,j)}return null}function oe(P,k,$,j){for(var R=null,ue=null,X=k,ce=k=0,me=null;X!==null&&ce<$.length;ce++){X.index>ce?(me=X,X=null):me=X.sibling;var de=I(P,X,$[ce],j);if(de===null){X===null&&(X=me);break}e&&X&&de.alternate===null&&t(P,X),k=h(de,k,ce),ue===null?R=de:ue.sibling=de,ue=de,X=me}if(ce===$.length)return n(P,X),R;if(X===null){for(;ce<$.length;ce++)X=ae(P,$[ce],j),X!==null&&(k=h(X,k,ce),ue===null?R=X:ue.sibling=X,ue=X);return R}for(X=a(P,X);ce<$.length;ce++)me=ee(X,P,ce,$[ce],j),me!==null&&(e&&me.alternate!==null&&X.delete(me.key===null?ce:me.key),k=h(me,k,ce),ue===null?R=me:ue.sibling=me,ue=me);return e&&X.forEach(function(Ht){return t(P,Ht)}),R}function re(P,k,$,j){var R=Q($);if(typeof R!="function")throw Error(o(150));if($=R.call($),$==null)throw Error(o(151));for(var ue=R=null,X=k,ce=k=0,me=null,de=$.next();X!==null&&!de.done;ce++,de=$.next()){X.index>ce?(me=X,X=null):me=X.sibling;var Ht=I(P,X,de.value,j);if(Ht===null){X===null&&(X=me);break}e&&X&&Ht.alternate===null&&t(P,X),k=h(Ht,k,ce),ue===null?R=Ht:ue.sibling=Ht,ue=Ht,X=me}if(de.done)return n(P,X),R;if(X===null){for(;!de.done;ce++,de=$.next())de=ae(P,de.value,j),de!==null&&(k=h(de,k,ce),ue===null?R=de:ue.sibling=de,ue=de);return R}for(X=a(P,X);!de.done;ce++,de=$.next())de=ee(X,P,ce,de.value,j),de!==null&&(e&&de.alternate!==null&&X.delete(de.key===null?ce:de.key),k=h(de,k,ce),ue===null?R=de:ue.sibling=de,ue=de);return e&&X.forEach(function(Ig){return t(P,Ig)}),R}return function(P,k,$,j){var R=typeof $=="object"&&$!==null&&$.type===V&&$.key===null;R&&($=$.props.children);var ue=typeof $=="object"&&$!==null;if(ue)switch($.$$typeof){case H:e:{for(ue=$.key,R=k;R!==null;){if(R.key===ue){switch(R.tag){case 7:if($.type===V){n(P,R.sibling),k=u(R,$.props.children),k.return=P,P=k;break e}break;default:if(R.elementType===$.type){n(P,R.sibling),k=u(R,$.props),k.ref=Sr(P,R,$),k.return=P,P=k;break e}}n(P,R);break}else t(P,R);R=R.sibling}$.type===V?(k=Hn($.props.children,P.mode,j,$.key),k.return=P,P=k):(j=Gs($.type,$.key,$.props,null,P.mode,j),j.ref=Sr(P,k,$),j.return=P,P=j)}return g(P);case B:e:{for(R=$.key;k!==null;){if(k.key===R)if(k.tag===4&&k.stateNode.containerInfo===$.containerInfo&&k.stateNode.implementation===$.implementation){n(P,k.sibling),k=u(k,$.children||[]),k.return=P,P=k;break e}else{n(P,k);break}else t(P,k);k=k.sibling}k=dl($,P.mode,j),k.return=P,P=k}return g(P)}if(typeof $=="string"||typeof $=="number")return $=""+$,k!==null&&k.tag===6?(n(P,k.sibling),k=u(k,$),k.return=P,P=k):(n(P,k),k=hl($,P.mode,j),k.return=P,P=k),g(P);if(Os($))return oe(P,k,$,j);if(Q($))return re(P,k,$,j);if(ue&&Rs(P,$),typeof $>"u"&&!R)switch(P.tag){case 1:case 22:case 0:case 11:case 15:throw Error(o(152,vn(P.type)||"Component"))}return n(P,k)}}var Is=Xu(!0),Zu=Xu(!1),kr={},ct=Lt(kr),Cr=Lt(kr),$r=Lt(kr);function tn(e){if(e===kr)throw Error(o(174));return e}function jo(e,t){switch(Pe($r,t),Pe(Cr,e),Pe(ct,kr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ii(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ii(t,e)}_e(ct),Pe(ct,t)}function Mn(){_e(ct),_e(Cr),_e($r)}function Gu(e){tn($r.current);var t=tn(ct.current),n=Ii(t,e.type);t!==n&&(Pe(Cr,e),Pe(ct,n))}function Lo(e){Cr.current===e&&(_e(ct),_e(Cr))}var Ee=Lt(0);function zs(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&64)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var yt=null,Mt=null,ft=!1;function qu(e,t){var n=qe(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function ec(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function Oo(e){if(ft){var t=Mt;if(t){var n=t;if(!ec(e,t)){if(t=Nn(n.nextSibling),!t||!ec(e,t)){e.flags=e.flags&-1025|2,ft=!1,yt=e;return}qu(yt,n)}yt=e,Mt=Nn(t.firstChild)}else e.flags=e.flags&-1025|2,ft=!1,yt=e}}function tc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;yt=e}function Ms(e){if(e!==yt)return!1;if(!ft)return tc(e),ft=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!yo(t,e.memoizedProps))for(t=Mt;t;)qu(e,t),t=Nn(t.nextSibling);if(tc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Mt=Nn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Mt=null}}else Mt=yt?Nn(e.stateNode.nextSibling):null;return!0}function Ro(){Mt=yt=null,ft=!1}var Dn=[];function Io(){for(var e=0;e<Dn.length;e++)Dn[e]._workInProgressVersionPrimary=null;Dn.length=0}var _r=Z.ReactCurrentDispatcher,Ze=Z.ReactCurrentBatchConfig,Pr=0,Ne=null,De=null,Le=null,Ds=!1,Er=!1;function Ve(){throw Error(o(321))}function zo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Je(e[n],t[n]))return!1;return!0}function Mo(e,t,n,a,u,h){if(Pr=h,Ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_r.current=e===null||e.memoizedState===null?og:lg,e=n(a,u),Er){h=0;do{if(Er=!1,!(25>h))throw Error(o(301));h+=1,Le=De=null,t.updateQueue=null,_r.current=ag,e=n(a,u)}while(Er)}if(_r.current=Bs,t=De!==null&&De.next!==null,Pr=0,Le=De=Ne=null,Ds=!1,t)throw Error(o(300));return e}function nn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Le===null?Ne.memoizedState=Le=e:Le=Le.next=e,Le}function rn(){if(De===null){var e=Ne.alternate;e=e!==null?e.memoizedState:null}else e=De.next;var t=Le===null?Ne.memoizedState:Le.next;if(t!==null)Le=t,De=e;else{if(e===null)throw Error(o(310));De=e,e={memoizedState:De.memoizedState,baseState:De.baseState,baseQueue:De.baseQueue,queue:De.queue,next:null},Le===null?Ne.memoizedState=Le=e:Le=Le.next=e}return Le}function ht(e,t){return typeof t=="function"?t(e):t}function Tr(e){var t=rn(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var a=De,u=a.baseQueue,h=n.pending;if(h!==null){if(u!==null){var g=u.next;u.next=h.next,h.next=g}a.baseQueue=u=h,n.pending=null}if(u!==null){u=u.next,a=a.baseState;var y=g=h=null,S=u;do{var A=S.lane;if((Pr&A)===A)y!==null&&(y=y.next={lane:0,action:S.action,eagerReducer:S.eagerReducer,eagerState:S.eagerState,next:null}),a=S.eagerReducer===e?S.eagerState:e(a,S.action);else{var W={lane:A,action:S.action,eagerReducer:S.eagerReducer,eagerState:S.eagerState,next:null};y===null?(g=y=W,h=a):y=y.next=W,Ne.lanes|=A,Lr|=A}S=S.next}while(S!==null&&S!==u);y===null?h=a:y.next=g,Je(a,t.memoizedState)||(it=!0),t.memoizedState=a,t.baseState=h,t.baseQueue=y,n.lastRenderedState=a}return[t.memoizedState,n.dispatch]}function Nr(e){var t=rn(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var a=n.dispatch,u=n.pending,h=t.memoizedState;if(u!==null){n.pending=null;var g=u=u.next;do h=e(h,g.action),g=g.next;while(g!==u);Je(h,t.memoizedState)||(it=!0),t.memoizedState=h,t.baseQueue===null&&(t.baseState=h),n.lastRenderedState=h}return[h,a]}function nc(e,t,n){var a=t._getVersion;a=a(t._source);var u=t._workInProgressVersionPrimary;if(u!==null?e=u===a:(e=e.mutableReadLanes,(e=(Pr&e)===e)&&(t._workInProgressVersionPrimary=a,Dn.push(t))),e)return n(t._source);throw Dn.push(t),Error(o(350))}function rc(e,t,n,a){var u=Ue;if(u===null)throw Error(o(349));var h=t._getVersion,g=h(t._source),y=_r.current,S=y.useState(function(){return nc(u,t,n)}),A=S[1],W=S[0];S=Le;var ae=e.memoizedState,I=ae.refs,ee=I.getSnapshot,oe=ae.source;ae=ae.subscribe;var re=Ne;return e.memoizedState={refs:I,source:t,subscribe:a},y.useEffect(function(){I.getSnapshot=n,I.setSnapshot=A;var P=h(t._source);if(!Je(g,P)){P=n(t._source),Je(W,P)||(A(P),P=Ft(re),u.mutableReadLanes|=P&u.pendingLanes),P=u.mutableReadLanes,u.entangledLanes|=P;for(var k=u.entanglements,$=P;0<$;){var j=31-Nt($),R=1<<j;k[j]|=P,$&=~R}}},[n,t,a]),y.useEffect(function(){return a(t._source,function(){var P=I.getSnapshot,k=I.setSnapshot;try{k(P(t._source));var $=Ft(re);u.mutableReadLanes|=$&u.pendingLanes}catch(j){k(function(){throw j})}})},[t,a]),Je(ee,n)&&Je(oe,t)&&Je(ae,a)||(e={pending:null,dispatch:null,lastRenderedReducer:ht,lastRenderedState:W},e.dispatch=A=bo.bind(null,Ne,e),S.queue=e,S.baseQueue=null,W=nc(u,t,n),S.memoizedState=S.baseState=W),W}function sc(e,t,n){var a=rn();return rc(a,e,t,n)}function Ar(e){var t=nn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ht,lastRenderedState:e},e=e.dispatch=bo.bind(null,Ne,e),[t.memoizedState,e]}function Fs(e,t,n,a){return e={tag:e,create:t,destroy:n,deps:a,next:null},t=Ne.updateQueue,t===null?(t={lastEffect:null},Ne.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e)),e}function ic(e){var t=nn();return e={current:e},t.memoizedState=e}function Us(){return rn().memoizedState}function Do(e,t,n,a){var u=nn();Ne.flags|=e,u.memoizedState=Fs(1|t,n,void 0,a===void 0?null:a)}function Fo(e,t,n,a){var u=rn();a=a===void 0?null:a;var h=void 0;if(De!==null){var g=De.memoizedState;if(h=g.destroy,a!==null&&zo(a,g.deps)){Fs(t,n,h,a);return}}Ne.flags|=e,u.memoizedState=Fs(1|t,n,h,a)}function oc(e,t){return Do(516,4,e,t)}function bs(e,t){return Fo(516,4,e,t)}function lc(e,t){return Fo(4,2,e,t)}function ac(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function uc(e,t,n){return n=n!=null?n.concat([e]):null,Fo(4,2,ac.bind(null,t,e),n)}function Uo(){}function cc(e,t){var n=rn();t=t===void 0?null:t;var a=n.memoizedState;return a!==null&&t!==null&&zo(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function fc(e,t){var n=rn();t=t===void 0?null:t;var a=n.memoizedState;return a!==null&&t!==null&&zo(t,a[1])?a[0]:(e=e(),n.memoizedState=[e,t],e)}function ig(e,t){var n=Rn();en(98>n?98:n,function(){e(!0)}),en(97<n?97:n,function(){var a=Ze.transition;Ze.transition=1;try{e(!1),t()}finally{Ze.transition=a}})}function bo(e,t,n){var a=Ye(),u=Ft(e),h={lane:u,action:n,eagerReducer:null,eagerState:null,next:null},g=t.pending;if(g===null?h.next=h:(h.next=g.next,g.next=h),t.pending=h,g=e.alternate,e===Ne||g!==null&&g===Ne)Er=Ds=!0;else{if(e.lanes===0&&(g===null||g.lanes===0)&&(g=t.lastRenderedReducer,g!==null))try{var y=t.lastRenderedState,S=g(y,n);if(h.eagerReducer=g,h.eagerState=S,Je(S,y))return}catch{}Ut(e,u,a)}}var Bs={readContext:Xe,useCallback:Ve,useContext:Ve,useEffect:Ve,useImperativeHandle:Ve,useLayoutEffect:Ve,useMemo:Ve,useReducer:Ve,useRef:Ve,useState:Ve,useDebugValue:Ve,useDeferredValue:Ve,useTransition:Ve,useMutableSource:Ve,useOpaqueIdentifier:Ve,unstable_isNewReconciler:!1},og={readContext:Xe,useCallback:function(e,t){return nn().memoizedState=[e,t===void 0?null:t],e},useContext:Xe,useEffect:oc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Do(4,2,ac.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Do(4,2,e,t)},useMemo:function(e,t){var n=nn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var a=nn();return t=n!==void 0?n(t):t,a.memoizedState=a.baseState=t,e=a.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=bo.bind(null,Ne,e),[a.memoizedState,e]},useRef:ic,useState:Ar,useDebugValue:Uo,useDeferredValue:function(e){var t=Ar(e),n=t[0],a=t[1];return oc(function(){var u=Ze.transition;Ze.transition=1;try{a(e)}finally{Ze.transition=u}},[e]),n},useTransition:function(){var e=Ar(!1),t=e[0];return e=ig.bind(null,e[1]),ic(e),[e,t]},useMutableSource:function(e,t,n){var a=nn();return a.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},rc(a,e,t,n)},useOpaqueIdentifier:function(){if(ft){var e=!1,t=qp(function(){throw e||(e=!0,n("r:"+(wo++).toString(36))),Error(o(355))}),n=Ar(t)[1];return(Ne.mode&2)===0&&(Ne.flags|=516,Fs(5,function(){n("r:"+(wo++).toString(36))},void 0,null)),t}return t="r:"+(wo++).toString(36),Ar(t),t},unstable_isNewReconciler:!1},lg={readContext:Xe,useCallback:cc,useContext:Xe,useEffect:bs,useImperativeHandle:uc,useLayoutEffect:lc,useMemo:fc,useReducer:Tr,useRef:Us,useState:function(){return Tr(ht)},useDebugValue:Uo,useDeferredValue:function(e){var t=Tr(ht),n=t[0],a=t[1];return bs(function(){var u=Ze.transition;Ze.transition=1;try{a(e)}finally{Ze.transition=u}},[e]),n},useTransition:function(){var e=Tr(ht)[0];return[Us().current,e]},useMutableSource:sc,useOpaqueIdentifier:function(){return Tr(ht)[0]},unstable_isNewReconciler:!1},ag={readContext:Xe,useCallback:cc,useContext:Xe,useEffect:bs,useImperativeHandle:uc,useLayoutEffect:lc,useMemo:fc,useReducer:Nr,useRef:Us,useState:function(){return Nr(ht)},useDebugValue:Uo,useDeferredValue:function(e){var t=Nr(ht),n=t[0],a=t[1];return bs(function(){var u=Ze.transition;Ze.transition=1;try{a(e)}finally{Ze.transition=u}},[e]),n},useTransition:function(){var e=Nr(ht)[0];return[Us().current,e]},useMutableSource:sc,useOpaqueIdentifier:function(){return Nr(ht)[0]},unstable_isNewReconciler:!1},ug=Z.ReactCurrentOwner,it=!1;function He(e,t,n,a){t.child=e===null?Zu(t,null,n,a):Is(t,e.child,n,a)}function hc(e,t,n,a,u){n=n.render;var h=t.ref;return zn(t,u),a=Mo(e,t,n,a,h,u),e!==null&&!it?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~u,vt(e,t,u)):(t.flags|=1,He(e,t,a,u),t.child)}function dc(e,t,n,a,u,h){if(e===null){var g=n.type;return typeof g=="function"&&!cl(g)&&g.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=g,pc(e,t,g,a,u,h)):(e=Gs(n.type,null,a,t,t.mode,h),e.ref=t.ref,e.return=t,t.child=e)}return g=e.child,(u&h)===0&&(u=g.memoizedProps,n=n.compare,n=n!==null?n:pr,n(u,a)&&e.ref===t.ref)?vt(e,t,h):(t.flags|=1,e=Vt(g,a),e.ref=t.ref,e.return=t,t.child=e)}function pc(e,t,n,a,u,h){if(e!==null&&pr(e.memoizedProps,a)&&e.ref===t.ref)if(it=!1,(h&u)!==0)(e.flags&16384)!==0&&(it=!0);else return t.lanes=e.lanes,vt(e,t,h);return Vo(e,t,n,a,h)}function Bo(e,t,n){var a=t.pendingProps,u=a.children,h=e!==null?e.memoizedState:null;if(a.mode==="hidden"||a.mode==="unstable-defer-without-hiding")if((t.mode&4)===0)t.memoizedState={baseLanes:0},Zs(t,n);else if((n&1073741824)!==0)t.memoizedState={baseLanes:0},Zs(t,h!==null?h.baseLanes:n);else return e=h!==null?h.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Zs(t,e),null;else h!==null?(a=h.baseLanes|n,t.memoizedState=null):a=n,Zs(t,a);return He(e,t,u,n),t.child}function gc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function Vo(e,t,n,a,u){var h=Be(n)?Gt:ze.current;return h=On(t,h),zn(t,u),n=Mo(e,t,n,a,h,u),e!==null&&!it?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~u,vt(e,t,u)):(t.flags|=1,He(e,t,n,u),t.child)}function mc(e,t,n,a,u){if(Be(n)){var h=!0;_s(t)}else h=!1;if(zn(t,u),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Yu(t,n,a),Ao(t,n,a,u),a=!0;else if(e===null){var g=t.stateNode,y=t.memoizedProps;g.props=y;var S=g.context,A=n.contextType;typeof A=="object"&&A!==null?A=Xe(A):(A=Be(n)?Gt:ze.current,A=On(t,A));var W=n.getDerivedStateFromProps,ae=typeof W=="function"||typeof g.getSnapshotBeforeUpdate=="function";ae||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(y!==a||S!==A)&&Ju(t,g,a,A),Rt=!1;var I=t.memoizedState;g.state=I,xr(t,a,g,u),S=t.memoizedState,y!==a||I!==S||be.current||Rt?(typeof W=="function"&&(js(t,n,W,a),S=t.memoizedState),(y=Rt||Qu(t,n,y,a,I,S,A))?(ae||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(t.flags|=4)):(typeof g.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=a,t.memoizedState=S),g.props=a,g.state=S,g.context=A,a=y):(typeof g.componentDidMount=="function"&&(t.flags|=4),a=!1)}else{g=t.stateNode,Vu(e,t),y=t.memoizedProps,A=t.type===t.elementType?y:st(t.type,y),g.props=A,ae=t.pendingProps,I=g.context,S=n.contextType,typeof S=="object"&&S!==null?S=Xe(S):(S=Be(n)?Gt:ze.current,S=On(t,S));var ee=n.getDerivedStateFromProps;(W=typeof ee=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(y!==ae||I!==S)&&Ju(t,g,a,S),Rt=!1,I=t.memoizedState,g.state=I,xr(t,a,g,u);var oe=t.memoizedState;y!==ae||I!==oe||be.current||Rt?(typeof ee=="function"&&(js(t,n,ee,a),oe=t.memoizedState),(A=Rt||Qu(t,n,A,a,I,oe,S))?(W||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(a,oe,S),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(a,oe,S)),typeof g.componentDidUpdate=="function"&&(t.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof g.componentDidUpdate!="function"||y===e.memoizedProps&&I===e.memoizedState||(t.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&I===e.memoizedState||(t.flags|=256),t.memoizedProps=a,t.memoizedState=oe),g.props=a,g.state=oe,g.context=S,a=A):(typeof g.componentDidUpdate!="function"||y===e.memoizedProps&&I===e.memoizedState||(t.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&I===e.memoizedState||(t.flags|=256),a=!1)}return Ho(e,t,n,a,h,u)}function Ho(e,t,n,a,u,h){gc(e,t);var g=(t.flags&64)!==0;if(!a&&!g)return u&&Ou(t,n,!1),vt(e,t,h);a=t.stateNode,ug.current=t;var y=g&&typeof n.getDerivedStateFromError!="function"?null:a.render();return t.flags|=1,e!==null&&g?(t.child=Is(t,e.child,null,h),t.child=Is(t,null,y,h)):He(e,t,y,h),t.memoizedState=a.state,u&&Ou(t,n,!0),t.child}function yc(e){var t=e.stateNode;t.pendingContext?ju(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ju(e,t.context,!1),jo(e,t.containerInfo)}var Vs={dehydrated:null,retryLane:0};function vc(e,t,n){var a=t.pendingProps,u=Ee.current,h=!1,g;return(g=(t.flags&64)!==0)||(g=e!==null&&e.memoizedState===null?!1:(u&2)!==0),g?(h=!0,t.flags&=-65):e!==null&&e.memoizedState===null||a.fallback===void 0||a.unstable_avoidThisFallback===!0||(u|=1),Pe(Ee,u&1),e===null?(a.fallback!==void 0&&Oo(t),e=a.children,u=a.fallback,h?(e=wc(t,e,u,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Vs,e):typeof a.unstable_expectedLoadTime=="number"?(e=wc(t,e,u,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Vs,t.lanes=33554432,e):(n=fl({mode:"visible",children:e},t.mode,n,null),n.return=t,t.child=n)):e.memoizedState!==null?h?(a=Sc(e,t,a.children,a.fallback,n),h=t.child,u=e.child.memoizedState,h.memoizedState=u===null?{baseLanes:n}:{baseLanes:u.baseLanes|n},h.childLanes=e.childLanes&~n,t.memoizedState=Vs,a):(n=xc(e,t,a.children,n),t.memoizedState=null,n):h?(a=Sc(e,t,a.children,a.fallback,n),h=t.child,u=e.child.memoizedState,h.memoizedState=u===null?{baseLanes:n}:{baseLanes:u.baseLanes|n},h.childLanes=e.childLanes&~n,t.memoizedState=Vs,a):(n=xc(e,t,a.children,n),t.memoizedState=null,n)}function wc(e,t,n,a){var u=e.mode,h=e.child;return t={mode:"hidden",children:t},(u&2)===0&&h!==null?(h.childLanes=0,h.pendingProps=t):h=fl(t,u,0,null),n=Hn(n,u,a,null),h.return=e,n.return=e,h.sibling=n,e.child=h,n}function xc(e,t,n,a){var u=e.child;return e=u.sibling,n=Vt(u,{mode:"visible",children:n}),(t.mode&2)===0&&(n.lanes=a),n.return=t,n.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Sc(e,t,n,a,u){var h=t.mode,g=e.child;e=g.sibling;var y={mode:"hidden",children:n};return(h&2)===0&&t.child!==g?(n=t.child,n.childLanes=0,n.pendingProps=y,g=n.lastEffect,g!==null?(t.firstEffect=n.firstEffect,t.lastEffect=g,g.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Vt(g,y),e!==null?a=Vt(e,a):(a=Hn(a,h,u,null),a.flags|=2),a.return=t,n.return=t,n.sibling=a,t.child=n,a}function kc(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Bu(e.return,t)}function Ko(e,t,n,a,u,h){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:u,lastEffect:h}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=a,g.tail=n,g.tailMode=u,g.lastEffect=h)}function Cc(e,t,n){var a=t.pendingProps,u=a.revealOrder,h=a.tail;if(He(e,t,a.children,n),a=Ee.current,(a&2)!==0)a=a&1|2,t.flags|=64;else{if(e!==null&&(e.flags&64)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&kc(e,n);else if(e.tag===19)kc(e,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}if(Pe(Ee,a),(t.mode&2)===0)t.memoizedState=null;else switch(u){case"forwards":for(n=t.child,u=null;n!==null;)e=n.alternate,e!==null&&zs(e)===null&&(u=n),n=n.sibling;n=u,n===null?(u=t.child,t.child=null):(u=n.sibling,n.sibling=null),Ko(t,!1,u,n,h,t.lastEffect);break;case"backwards":for(n=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&zs(e)===null){t.child=u;break}e=u.sibling,u.sibling=n,n=u,u=e}Ko(t,!0,n,null,h,t.lastEffect);break;case"together":Ko(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function vt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Lr|=t.lanes,(n&t.childLanes)!==0){if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=Vt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Vt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}return null}var $c,Wo,_c,Pc;$c=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Wo=function(){},_c=function(e,t,n,a){var u=e.memoizedProps;if(u!==a){e=t.stateNode,tn(ct.current);var h=null;switch(n){case"input":u=Ni(e,u),a=Ni(e,a),h=[];break;case"option":u=Li(e,u),a=Li(e,a),h=[];break;case"select":u=s({},u,{value:void 0}),a=s({},a,{value:void 0}),h=[];break;case"textarea":u=Oi(e,u),a=Oi(e,a),h=[];break;default:typeof u.onClick!="function"&&typeof a.onClick=="function"&&(e.onclick=xs)}zi(n,a);var g;n=null;for(A in u)if(!a.hasOwnProperty(A)&&u.hasOwnProperty(A)&&u[A]!=null)if(A==="style"){var y=u[A];for(g in y)y.hasOwnProperty(g)&&(n||(n={}),n[g]="")}else A!=="dangerouslySetInnerHTML"&&A!=="children"&&A!=="suppressContentEditableWarning"&&A!=="suppressHydrationWarning"&&A!=="autoFocus"&&(c.hasOwnProperty(A)?h||(h=[]):(h=h||[]).push(A,null));for(A in a){var S=a[A];if(y=u?.[A],a.hasOwnProperty(A)&&S!==y&&(S!=null||y!=null))if(A==="style")if(y){for(g in y)!y.hasOwnProperty(g)||S&&S.hasOwnProperty(g)||(n||(n={}),n[g]="");for(g in S)S.hasOwnProperty(g)&&y[g]!==S[g]&&(n||(n={}),n[g]=S[g])}else n||(h||(h=[]),h.push(A,n)),n=S;else A==="dangerouslySetInnerHTML"?(S=S?S.__html:void 0,y=y?y.__html:void 0,S!=null&&y!==S&&(h=h||[]).push(A,S)):A==="children"?typeof S!="string"&&typeof S!="number"||(h=h||[]).push(A,""+S):A!=="suppressContentEditableWarning"&&A!=="suppressHydrationWarning"&&(c.hasOwnProperty(A)?(S!=null&&A==="onScroll"&&$e("scroll",e),h||y===S||(h=[])):typeof S=="object"&&S!==null&&S.$$typeof===te?S.toString():(h=h||[]).push(A,S))}n&&(h=h||[]).push("style",n);var A=h;(t.updateQueue=A)&&(t.flags|=4)}},Pc=function(e,t,n,a){n!==a&&(t.flags|=4)};function jr(e,t){if(!ft)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function cg(e,t,n){var a=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return Be(t.type)&&$s(),null;case 3:return Mn(),_e(be),_e(ze),Io(),a=t.stateNode,a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ms(t)?t.flags|=4:a.hydrate||(t.flags|=256)),Wo(t),null;case 5:Lo(t);var u=tn($r.current);if(n=t.type,e!==null&&t.stateNode!=null)_c(e,t,n,a,u),e.ref!==t.ref&&(t.flags|=128);else{if(!a){if(t.stateNode===null)throw Error(o(166));return null}if(e=tn(ct.current),Ms(t)){a=t.stateNode,n=t.type;var h=t.memoizedProps;switch(a[jt]=t,a[ks]=h,n){case"dialog":$e("cancel",a),$e("close",a);break;case"iframe":case"object":case"embed":$e("load",a);break;case"video":case"audio":for(e=0;e<mr.length;e++)$e(mr[e],a);break;case"source":$e("error",a);break;case"img":case"image":case"link":$e("error",a),$e("load",a);break;case"details":$e("toggle",a);break;case"input":ya(a,h),$e("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!h.multiple},$e("invalid",a);break;case"textarea":xa(a,h),$e("invalid",a)}zi(n,h),e=null;for(var g in h)h.hasOwnProperty(g)&&(u=h[g],g==="children"?typeof u=="string"?a.textContent!==u&&(e=["children",u]):typeof u=="number"&&a.textContent!==""+u&&(e=["children",""+u]):c.hasOwnProperty(g)&&u!=null&&g==="onScroll"&&$e("scroll",a));switch(n){case"input":rs(a),wa(a,h,!0);break;case"textarea":rs(a),ka(a);break;case"select":case"option":break;default:typeof h.onClick=="function"&&(a.onclick=xs)}a=e,t.updateQueue=a,a!==null&&(t.flags|=4)}else{switch(g=u.nodeType===9?u:u.ownerDocument,e===Ri.html&&(e=Ca(n)),e===Ri.html?n==="script"?(e=g.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=g.createElement(n,{is:a.is}):(e=g.createElement(n),n==="select"&&(g=e,a.multiple?g.multiple=!0:a.size&&(g.size=a.size))):e=g.createElementNS(e,n),e[jt]=t,e[ks]=a,$c(e,t,!1,!1),t.stateNode=e,g=Mi(n,a),n){case"dialog":$e("cancel",e),$e("close",e),u=a;break;case"iframe":case"object":case"embed":$e("load",e),u=a;break;case"video":case"audio":for(u=0;u<mr.length;u++)$e(mr[u],e);u=a;break;case"source":$e("error",e),u=a;break;case"img":case"image":case"link":$e("error",e),$e("load",e),u=a;break;case"details":$e("toggle",e),u=a;break;case"input":ya(e,a),u=Ni(e,a),$e("invalid",e);break;case"option":u=Li(e,a);break;case"select":e._wrapperState={wasMultiple:!!a.multiple},u=s({},a,{value:void 0}),$e("invalid",e);break;case"textarea":xa(e,a),u=Oi(e,a),$e("invalid",e);break;default:u=a}zi(n,u);var y=u;for(h in y)if(y.hasOwnProperty(h)){var S=y[h];h==="style"?Pa(e,S):h==="dangerouslySetInnerHTML"?(S=S?S.__html:void 0,S!=null&&$a(e,S)):h==="children"?typeof S=="string"?(n!=="textarea"||S!=="")&&Gn(e,S):typeof S=="number"&&Gn(e,""+S):h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&h!=="autoFocus"&&(c.hasOwnProperty(h)?S!=null&&h==="onScroll"&&$e("scroll",e):S!=null&&K(e,h,S,g))}switch(n){case"input":rs(e),wa(e,a,!1);break;case"textarea":rs(e),ka(e);break;case"option":a.value!=null&&e.setAttribute("value",""+_t(a.value));break;case"select":e.multiple=!!a.multiple,h=a.value,h!=null?wn(e,!!a.multiple,h,!1):a.defaultValue!=null&&wn(e,!!a.multiple,a.defaultValue,!0);break;default:typeof u.onClick=="function"&&(e.onclick=xs)}Pu(n,a)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)Pc(e,t,e.memoizedProps,a);else{if(typeof a!="string"&&t.stateNode===null)throw Error(o(166));n=tn($r.current),tn(ct.current),Ms(t)?(a=t.stateNode,n=t.memoizedProps,a[jt]=t,a.nodeValue!==n&&(t.flags|=4)):(a=(n.nodeType===9?n:n.ownerDocument).createTextNode(a),a[jt]=t,t.stateNode=a)}return null;case 13:return _e(Ee),a=t.memoizedState,(t.flags&64)!==0?(t.lanes=n,t):(a=a!==null,n=!1,e===null?t.memoizedProps.fallback!==void 0&&Ms(t):n=e.memoizedState!==null,a&&!n&&(t.mode&2)!==0&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||(Ee.current&1)!==0?Oe===0&&(Oe=3):((Oe===0||Oe===3)&&(Oe=4),Ue===null||(Lr&134217727)===0&&(Un&134217727)===0||Bn(Ue,Fe))),(a||n)&&(t.flags|=4),null);case 4:return Mn(),Wo(t),e===null&&Su(t.stateNode.containerInfo),null;case 10:return To(t),null;case 17:return Be(t.type)&&$s(),null;case 19:if(_e(Ee),a=t.memoizedState,a===null)return null;if(h=(t.flags&64)!==0,g=a.rendering,g===null)if(h)jr(a,!1);else{if(Oe!==0||e!==null&&(e.flags&64)!==0)for(e=t.child;e!==null;){if(g=zs(e),g!==null){for(t.flags|=64,jr(a,!1),h=g.updateQueue,h!==null&&(t.updateQueue=h,t.flags|=4),a.lastEffect===null&&(t.firstEffect=null),t.lastEffect=a.lastEffect,a=n,n=t.child;n!==null;)h=n,e=a,h.flags&=2,h.nextEffect=null,h.firstEffect=null,h.lastEffect=null,g=h.alternate,g===null?(h.childLanes=0,h.lanes=e,h.child=null,h.memoizedProps=null,h.memoizedState=null,h.updateQueue=null,h.dependencies=null,h.stateNode=null):(h.childLanes=g.childLanes,h.lanes=g.lanes,h.child=g.child,h.memoizedProps=g.memoizedProps,h.memoizedState=g.memoizedState,h.updateQueue=g.updateQueue,h.type=g.type,e=g.dependencies,h.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Pe(Ee,Ee.current&1|2),t.child}e=e.sibling}a.tail!==null&&Me()>rl&&(t.flags|=64,h=!0,jr(a,!1),t.lanes=33554432)}else{if(!h)if(e=zs(g),e!==null){if(t.flags|=64,h=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),jr(a,!0),a.tail===null&&a.tailMode==="hidden"&&!g.alternate&&!ft)return t=t.lastEffect=a.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*Me()-a.renderingStartTime>rl&&n!==1073741824&&(t.flags|=64,h=!0,jr(a,!1),t.lanes=33554432);a.isBackwards?(g.sibling=t.child,t.child=g):(n=a.last,n!==null?n.sibling=g:t.child=g,a.last=g)}return a.tail!==null?(n=a.tail,a.rendering=n,a.tail=n.sibling,a.lastEffect=t.lastEffect,a.renderingStartTime=Me(),n.sibling=null,t=Ee.current,Pe(Ee,h?t&1|2:t&1),n):null;case 23:case 24:return ul(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&a.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(o(156,t.tag))}function fg(e){switch(e.tag){case 1:Be(e.type)&&$s();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(Mn(),_e(be),_e(ze),Io(),t=e.flags,(t&64)!==0)throw Error(o(285));return e.flags=t&-4097|64,e;case 5:return Lo(e),null;case 13:return _e(Ee),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return _e(Ee),null;case 4:return Mn(),null;case 10:return To(e),null;case 23:case 24:return ul(),null;default:return null}}function Qo(e,t){try{var n="",a=t;do n+=Hd(a),a=a.return;while(a);var u=n}catch(h){u=`
6
+ Error generating stack: `+h.message+`
7
+ `+h.stack}return{value:e,source:t,stack:u}}function Yo(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var hg=typeof WeakMap=="function"?WeakMap:Map;function Ec(e,t,n){n=It(-1,n),n.tag=3,n.payload={element:null};var a=t.value;return n.callback=function(){Ws||(Ws=!0,sl=a),Yo(e,t)},n}function Tc(e,t,n){n=It(-1,n),n.tag=3;var a=e.type.getDerivedStateFromError;if(typeof a=="function"){var u=t.value;n.payload=function(){return Yo(e,t),a(u)}}var h=e.stateNode;return h!==null&&typeof h.componentDidCatch=="function"&&(n.callback=function(){typeof a!="function"&&(dt===null?dt=new Set([this]):dt.add(this),Yo(e,t));var g=t.stack;this.componentDidCatch(t.value,{componentStack:g!==null?g:""})}),n}var dg=typeof WeakSet=="function"?WeakSet:Set;function Nc(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){Bt(e,n)}else t.current=null}function pg(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var n=e.memoizedProps,a=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:st(t.type,n),a),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&vo(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(o(163))}function gg(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var a=e.create;e.destroy=a()}e=e.next}while(e!==t)}if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var u=e;a=u.next,u=u.tag,(u&4)!==0&&(u&1)!==0&&(Hc(n,e),Cg(n,e)),e=a}while(e!==t)}return;case 1:e=n.stateNode,n.flags&4&&(t===null?e.componentDidMount():(a=n.elementType===n.type?t.memoizedProps:st(n.type,t.memoizedProps),e.componentDidUpdate(a,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&Ku(n,t,e);return;case 3:if(t=n.updateQueue,t!==null){if(e=null,n.child!==null)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}Ku(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&Pu(n.type,n.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:n.memoizedState===null&&(n=n.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&Ba(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(o(163))}function Ac(e,t){for(var n=e;;){if(n.tag===5){var a=n.stateNode;if(t)a=a.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none";else{a=n.stateNode;var u=n.memoizedProps.style;u=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=_a("display",u)}}else if(n.tag===6)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((n.tag!==23&&n.tag!==24||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function jc(e,t){if(qt&&typeof qt.onCommitFiberUnmount=="function")try{qt.onCommitFiberUnmount(So,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var n=e=e.next;do{var a=n,u=a.destroy;if(a=a.tag,u!==void 0)if((a&4)!==0)Hc(t,n);else{a=t;try{u()}catch(h){Bt(a,h)}}n=n.next}while(n!==e)}break;case 1:if(Nc(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(h){Bt(t,h)}break;case 5:Nc(t);break;case 4:Ic(e,t)}}function Lc(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Oc(e){return e.tag===5||e.tag===3||e.tag===4}function Rc(e){e:{for(var t=e.return;t!==null;){if(Oc(t))break e;t=t.return}throw Error(o(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var a=!1;break;case 3:t=t.containerInfo,a=!0;break;case 4:t=t.containerInfo,a=!0;break;default:throw Error(o(161))}n.flags&16&&(Gn(t,""),n.flags&=-17);e:t:for(n=e;;){for(;n.sibling===null;){if(n.return===null||Oc(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break e}}a?Jo(e,n,t):Xo(e,n,t)}function Jo(e,t,n){var a=e.tag,u=a===5||a===6;if(u)e=u?e.stateNode:e.stateNode.instance,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=xs));else if(a!==4&&(e=e.child,e!==null))for(Jo(e,t,n),e=e.sibling;e!==null;)Jo(e,t,n),e=e.sibling}function Xo(e,t,n){var a=e.tag,u=a===5||a===6;if(u)e=u?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(Xo(e,t,n),e=e.sibling;e!==null;)Xo(e,t,n),e=e.sibling}function Ic(e,t){for(var n=t,a=!1,u,h;;){if(!a){a=n.return;e:for(;;){if(a===null)throw Error(o(160));switch(u=a.stateNode,a.tag){case 5:h=!1;break e;case 3:u=u.containerInfo,h=!0;break e;case 4:u=u.containerInfo,h=!0;break e}a=a.return}a=!0}if(n.tag===5||n.tag===6){e:for(var g=e,y=n,S=y;;)if(jc(g,S),S.child!==null&&S.tag!==4)S.child.return=S,S=S.child;else{if(S===y)break e;for(;S.sibling===null;){if(S.return===null||S.return===y)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}h?(g=u,y=n.stateNode,g.nodeType===8?g.parentNode.removeChild(y):g.removeChild(y)):u.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){u=n.stateNode.containerInfo,h=!0,n.child.return=n,n=n.child;continue}}else if(jc(e,n),n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return,n.tag===4&&(a=!1)}n.sibling.return=n.return,n=n.sibling}}function Zo(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do(a.tag&3)===3&&(e=a.destroy,a.destroy=void 0,e!==void 0&&e()),a=a.next;while(a!==n)}return;case 1:return;case 5:if(n=t.stateNode,n!=null){a=t.memoizedProps;var u=e!==null?e.memoizedProps:a;e=t.type;var h=t.updateQueue;if(t.updateQueue=null,h!==null){for(n[ks]=a,e==="input"&&a.type==="radio"&&a.name!=null&&va(n,a),Mi(e,u),t=Mi(e,a),u=0;u<h.length;u+=2){var g=h[u],y=h[u+1];g==="style"?Pa(n,y):g==="dangerouslySetInnerHTML"?$a(n,y):g==="children"?Gn(n,y):K(n,g,y,t)}switch(e){case"input":Ai(n,a);break;case"textarea":Sa(n,a);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!a.multiple,h=a.value,h!=null?wn(n,!!a.multiple,h,!1):e!==!!a.multiple&&(a.defaultValue!=null?wn(n,!!a.multiple,a.defaultValue,!0):wn(n,!!a.multiple,a.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(o(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:n=t.stateNode,n.hydrate&&(n.hydrate=!1,Ba(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(nl=Me(),Ac(t.child,!0)),zc(t);return;case 19:zc(t);return;case 17:return;case 23:case 24:Ac(t,t.memoizedState!==null);return}throw Error(o(163))}function zc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new dg),t.forEach(function(a){var u=Pg.bind(null,e,a);n.has(a)||(n.add(a),a.then(u,u))})}}function mg(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var yg=Math.ceil,Hs=Z.ReactCurrentDispatcher,Go=Z.ReactCurrentOwner,ie=0,Ue=null,Ae=null,Fe=0,sn=0,qo=Lt(0),Oe=0,Ks=null,Fn=0,Lr=0,Un=0,el=0,tl=null,nl=0,rl=1/0;function bn(){rl=Me()+500}var Y=null,Ws=!1,sl=null,dt=null,Dt=!1,Or=null,Rr=90,il=[],ol=[],wt=null,Ir=0,ll=null,Qs=-1,xt=0,Ys=0,zr=null,Js=!1;function Ye(){return(ie&48)!==0?Me():Qs!==-1?Qs:Qs=Me()}function Ft(e){if(e=e.mode,(e&2)===0)return 1;if((e&4)===0)return Rn()===99?1:2;if(xt===0&&(xt=Fn),sg.transition!==0){Ys!==0&&(Ys=tl!==null?tl.pendingLanes:0),e=xt;var t=4186112&~Ys;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=Rn(),(ie&4)!==0&&e===98?e=fs(12,xt):(e=op(e),e=fs(e,xt)),e}function Ut(e,t,n){if(50<Ir)throw Ir=0,ll=null,Error(o(185));if(e=Xs(e,t),e===null)return null;hs(e,t,n),e===Ue&&(Un|=t,Oe===4&&Bn(e,Fe));var a=Rn();t===1?(ie&8)!==0&&(ie&48)===0?al(e):(Ge(e,n),ie===0&&(bn(),ut())):((ie&4)===0||a!==98&&a!==99||(wt===null?wt=new Set([e]):wt.add(e)),Ge(e,n)),tl=e}function Xs(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}function Ge(e,t){for(var n=e.callbackNode,a=e.suspendedLanes,u=e.pingedLanes,h=e.expirationTimes,g=e.pendingLanes;0<g;){var y=31-Nt(g),S=1<<y,A=h[y];if(A===-1){if((S&a)===0||(S&u)!==0){A=t,Cn(S);var W=ke;h[y]=10<=W?A+250:6<=W?A+5e3:-1}}else A<=t&&(e.expiredLanes|=S);g&=~S}if(a=ar(e,e===Ue?Fe:0),t=ke,a===0)n!==null&&(n!==_o&&Co(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==_o&&Co(n)}t===15?(n=al.bind(null,e),mt===null?(mt=[n],Es=ko(Ps,bu)):mt.push(n),n=_o):t===14?n=wr(99,al.bind(null,e)):(n=lp(t),n=wr(n,Mc.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function Mc(e){if(Qs=-1,Ys=xt=0,(ie&48)!==0)throw Error(o(327));var t=e.callbackNode;if(bt()&&e.callbackNode!==t)return null;var n=ar(e,e===Ue?Fe:0);if(n===0)return null;var a=n,u=ie;ie|=16;var h=bc();(Ue!==e||Fe!==a)&&(bn(),Vn(e,a));do try{xg();break}catch(y){Uc(e,y)}while(!0);if(Eo(),Hs.current=h,ie=u,Ae!==null?a=0:(Ue=null,Fe=0,a=Oe),(Fn&Un)!==0)Vn(e,0);else if(a!==0){if(a===2&&(ie|=64,e.hydrate&&(e.hydrate=!1,vo(e.containerInfo)),n=Ja(e),n!==0&&(a=Mr(e,n))),a===1)throw t=Ks,Vn(e,0),Bn(e,n),Ge(e,Me()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,a){case 0:case 1:throw Error(o(345));case 2:on(e);break;case 3:if(Bn(e,n),(n&62914560)===n&&(a=nl+500-Me(),10<a)){if(ar(e,0)!==0)break;if(u=e.suspendedLanes,(u&n)!==n){Ye(),e.pingedLanes|=e.suspendedLanes&u;break}e.timeoutHandle=Eu(on.bind(null,e),a);break}on(e);break;case 4:if(Bn(e,n),(n&4186112)===n)break;for(a=e.eventTimes,u=-1;0<n;){var g=31-Nt(n);h=1<<g,g=a[g],g>u&&(u=g),n&=~h}if(n=u,n=Me()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*yg(n/1960))-n,10<n){e.timeoutHandle=Eu(on.bind(null,e),n);break}on(e);break;case 5:on(e);break;default:throw Error(o(329))}}return Ge(e,Me()),e.callbackNode===t?Mc.bind(null,e):null}function Bn(e,t){for(t&=~el,t&=~Un,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Nt(t),a=1<<n;e[n]=-1,t&=~a}}function al(e){if((ie&48)!==0)throw Error(o(327));if(bt(),e===Ue&&(e.expiredLanes&Fe)!==0){var t=Fe,n=Mr(e,t);(Fn&Un)!==0&&(t=ar(e,t),n=Mr(e,t))}else t=ar(e,0),n=Mr(e,t);if(e.tag!==0&&n===2&&(ie|=64,e.hydrate&&(e.hydrate=!1,vo(e.containerInfo)),t=Ja(e),t!==0&&(n=Mr(e,t))),n===1)throw n=Ks,Vn(e,0),Bn(e,t),Ge(e,Me()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,on(e),Ge(e,Me()),null}function vg(){if(wt!==null){var e=wt;wt=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,Ge(t,Me())})}ut()}function Dc(e,t){var n=ie;ie|=1;try{return e(t)}finally{ie=n,ie===0&&(bn(),ut())}}function Fc(e,t){var n=ie;ie&=-2,ie|=8;try{return e(t)}finally{ie=n,ie===0&&(bn(),ut())}}function Zs(e,t){Pe(qo,sn),sn|=t,Fn|=t}function ul(){sn=qo.current,_e(qo)}function Vn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Gp(n)),Ae!==null)for(n=Ae.return;n!==null;){var a=n;switch(a.tag){case 1:a=a.type.childContextTypes,a!=null&&$s();break;case 3:Mn(),_e(be),_e(ze),Io();break;case 5:Lo(a);break;case 4:Mn();break;case 13:_e(Ee);break;case 19:_e(Ee);break;case 10:To(a);break;case 23:case 24:ul()}n=n.return}Ue=e,Ae=Vt(e.current,null),Fe=sn=Fn=t,Oe=0,Ks=null,el=Un=Lr=0}function Uc(e,t){do{var n=Ae;try{if(Eo(),_r.current=Bs,Ds){for(var a=Ne.memoizedState;a!==null;){var u=a.queue;u!==null&&(u.pending=null),a=a.next}Ds=!1}if(Pr=0,Le=De=Ne=null,Er=!1,Go.current=null,n===null||n.return===null){Oe=1,Ks=t,Ae=null;break}e:{var h=e,g=n.return,y=n,S=t;if(t=Fe,y.flags|=2048,y.firstEffect=y.lastEffect=null,S!==null&&typeof S=="object"&&typeof S.then=="function"){var A=S;if((y.mode&2)===0){var W=y.alternate;W?(y.updateQueue=W.updateQueue,y.memoizedState=W.memoizedState,y.lanes=W.lanes):(y.updateQueue=null,y.memoizedState=null)}var ae=(Ee.current&1)!==0,I=g;do{var ee;if(ee=I.tag===13){var oe=I.memoizedState;if(oe!==null)ee=oe.dehydrated!==null;else{var re=I.memoizedProps;ee=re.fallback===void 0?!1:re.unstable_avoidThisFallback!==!0?!0:!ae}}if(ee){var P=I.updateQueue;if(P===null){var k=new Set;k.add(A),I.updateQueue=k}else P.add(A);if((I.mode&2)===0){if(I.flags|=64,y.flags|=16384,y.flags&=-2981,y.tag===1)if(y.alternate===null)y.tag=17;else{var $=It(-1,1);$.tag=2,zt(y,$)}y.lanes|=1;break e}S=void 0,y=t;var j=h.pingCache;if(j===null?(j=h.pingCache=new hg,S=new Set,j.set(A,S)):(S=j.get(A),S===void 0&&(S=new Set,j.set(A,S))),!S.has(y)){S.add(y);var R=_g.bind(null,h,A,y);A.then(R,R)}I.flags|=4096,I.lanes=t;break e}I=I.return}while(I!==null);S=Error((vn(y.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
8
8
 
9
- Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}tt!==5&&(tt=2),$=sl($,w),W=p;do{switch(W.tag){case 3:f=$,W.flags|=4096,t&=-t,W.lanes|=t;var Ce=fc(W,f,t);ja(W,Ce);break e;case 1:f=$;var le=W.type,$e=W.stateNode;if((W.flags&64)===0&&(typeof le.getDerivedStateFromError=="function"||$e!==null&&typeof $e.componentDidCatch=="function"&&(Ut===null||!Ut.has($e)))){W.flags|=4096,t&=-t,W.lanes|=t;var Ne=hc(W,f,t);ja(W,Ne);break e}}W=W.return}while(W!==null)}Tc(n)}catch(Te){t=Te,Ye===n&&n!==null&&(Ye=n=n.return);continue}break}while(!0)}function Pc(){var e=hi.current;return hi.current=ci,e===null?ci:e}function hs(e,t){var n=ve;ve|=16;var s=Pc();ut===e&&ot===t||wr(e,t);do try{jp();break}catch(u){$c(e,u)}while(!0);if(Fo(),ve=n,hi.current=s,Ye!==null)throw Error(l(261));return ut=null,ot=0,tt}function jp(){for(;Ye!==null;)Ec(Ye)}function Np(){for(;Ye!==null&&!cp();)Ec(Ye)}function Ec(e){var t=Ac(e.alternate,e,Fn);e.memoizedProps=e.pendingProps,t===null?Tc(e):Ye=t,al.current=null}function Tc(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&2048)===0){if(n=wp(n,t,Fn),n!==null){Ye=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||(Fn&1073741824)!==0||(n.mode&4)===0){for(var s=0,u=n.child;u!==null;)s|=u.lanes|u.childLanes,u=u.sibling;n.childLanes=s}e!==null&&(e.flags&2048)===0&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(n=xp(t),n!==null){n.flags&=2047,Ye=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(t=t.sibling,t!==null){Ye=t;return}Ye=t=e}while(t!==null);tt===0&&(tt=5)}function Dn(e){var t=cr();return _n(99,Ap.bind(null,e,t)),null}function Ap(e,t){do vn();while(us!==null);if((ve&48)!==0)throw Error(l(327));var n=e.finishedWork;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(l(177));e.callbackNode=null;var s=n.lanes|n.childLanes,u=s,f=e.pendingLanes&~u;e.pendingLanes=u,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=u,e.mutableReadLanes&=u,e.entangledLanes&=u,u=e.entanglements;for(var p=e.eventTimes,w=e.expirationTimes;0<f;){var $=31-on(f),_=1<<$;u[$]=0,p[$]=-1,w[$]=-1,f&=~_}if(Yt!==null&&(s&24)===0&&Yt.has(e)&&Yt.delete(e),e===ut&&(Ye=ut=null,ot=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,s=n.firstEffect):s=n:s=n.firstEffect,s!==null){if(u=ve,ve|=32,al.current=null,Eo=Is,p=qu(),ko(p)){if("selectionStart"in p)w={start:p.selectionStart,end:p.selectionEnd};else e:if(w=(w=p.ownerDocument)&&w.defaultView||window,(_=w.getSelection&&w.getSelection())&&_.rangeCount!==0){w=_.anchorNode,f=_.anchorOffset,$=_.focusNode,_=_.focusOffset;try{w.nodeType,$.nodeType}catch{w=null;break e}var te=0,Se=-1,W=-1,ce=0,we=0,ge=p,N=null;t:for(;;){for(var P;ge!==w||f!==0&&ge.nodeType!==3||(Se=te+f),ge!==$||_!==0&&ge.nodeType!==3||(W=te+_),ge.nodeType===3&&(te+=ge.nodeValue.length),(P=ge.firstChild)!==null;)N=ge,ge=P;for(;;){if(ge===p)break t;if(N===w&&++ce===f&&(Se=te),N===$&&++we===_&&(W=te),(P=ge.nextSibling)!==null)break;ge=N,N=ge.parentNode}ge=P}w=Se===-1||W===-1?null:{start:Se,end:W}}else w=null;w=w||{start:0,end:0}}else w=null;To={focusedElem:p,selectionRange:w},Is=!1,fs=null,yi=!1,se=s;do try{Lp()}catch(Te){if(se===null)throw Error(l(330));wn(se,Te),se=se.nextEffect}while(se!==null);fs=null,se=s;do try{for(p=e;se!==null;){var T=se.flags;if(T&16&&Nt(se.stateNode,""),T&128){var D=se.alternate;if(D!==null){var H=D.ref;H!==null&&(typeof H=="function"?H(null):H.current=null)}}switch(T&1038){case 2:vc(se),se.flags&=-3;break;case 6:vc(se),se.flags&=-3,ul(se.alternate,se);break;case 1024:se.flags&=-1025;break;case 1028:se.flags&=-1025,ul(se.alternate,se);break;case 4:ul(se.alternate,se);break;case 8:w=se,wc(p,w);var Ce=w.alternate;mc(w),Ce!==null&&mc(Ce)}se=se.nextEffect}}catch(Te){if(se===null)throw Error(l(330));wn(se,Te),se=se.nextEffect}while(se!==null);if(H=To,D=qu(),T=H.focusedElem,p=H.selectionRange,D!==T&&T&&T.ownerDocument&&Gu(T.ownerDocument.documentElement,T)){for(p!==null&&ko(T)&&(D=p.start,H=p.end,H===void 0&&(H=D),"selectionStart"in T?(T.selectionStart=D,T.selectionEnd=Math.min(H,T.value.length)):(H=(D=T.ownerDocument||document)&&D.defaultView||window,H.getSelection&&(H=H.getSelection(),w=T.textContent.length,Ce=Math.min(p.start,w),p=p.end===void 0?Ce:Math.min(p.end,w),!H.extend&&Ce>p&&(w=p,p=Ce,Ce=w),w=Zu(T,Ce),f=Zu(T,p),w&&f&&(H.rangeCount!==1||H.anchorNode!==w.node||H.anchorOffset!==w.offset||H.focusNode!==f.node||H.focusOffset!==f.offset)&&(D=D.createRange(),D.setStart(w.node,w.offset),H.removeAllRanges(),Ce>p?(H.addRange(D),H.extend(f.node,f.offset)):(D.setEnd(f.node,f.offset),H.addRange(D)))))),D=[],H=T;H=H.parentNode;)H.nodeType===1&&D.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;T<D.length;T++)H=D[T],H.element.scrollLeft=H.left,H.element.scrollTop=H.top}Is=!!Eo,To=Eo=null,e.current=n,se=s;do try{for(T=e;se!==null;){var le=se.flags;if(le&36&&$p(T,se.alternate,se),le&128){D=void 0;var $e=se.ref;if($e!==null){var Ne=se.stateNode;se.tag,D=Ne,typeof $e=="function"?$e(D):$e.current=D}}se=se.nextEffect}}catch(Te){if(se===null)throw Error(l(330));wn(se,Te),se=se.nextEffect}while(se!==null);se=null,hp(),ve=u}else e.current=n;if(gn)gn=!1,us=e,as=t;else for(se=s;se!==null;)t=se.nextEffect,se.nextEffect=null,se.flags&8&&(le=se,le.sibling=null,le.stateNode=null),se=t;if(s=e.pendingLanes,s===0&&(Ut=null),s===1?e===vl?cs++:(cs=0,vl=e):cs=0,n=n.stateNode,Rn&&typeof Rn.onCommitFiberRoot=="function")try{Rn.onCommitFiberRoot(Oo,n,void 0,(n.current.flags&64)===64)}catch{}if(kt(e,st()),pi)throw pi=!1,e=gl,gl=null,e;return(ve&8)!==0||zt(),null}function Lp(){for(;se!==null;){var e=se.alternate;yi||fs===null||((se.flags&8)!==0?wu(se,fs)&&(yi=!0):se.tag===13&&Pp(e,se)&&wu(se,fs)&&(yi=!0));var t=se.flags;(t&256)!==0&&Cp(e,se),(t&512)===0||gn||(gn=!0,Yr(97,function(){return vn(),null})),se=se.nextEffect}}function vn(){if(as!==90){var e=97<as?97:as;return as=90,_n(e,Rp)}return!1}function Op(e,t){ml.push(t,e),gn||(gn=!0,Yr(97,function(){return vn(),null}))}function jc(e,t){yl.push(t,e),gn||(gn=!0,Yr(97,function(){return vn(),null}))}function Rp(){if(us===null)return!1;var e=us;if(us=null,(ve&48)!==0)throw Error(l(331));var t=ve;ve|=32;var n=yl;yl=[];for(var s=0;s<n.length;s+=2){var u=n[s],f=n[s+1],p=u.destroy;if(u.destroy=void 0,typeof p=="function")try{p()}catch($){if(f===null)throw Error(l(330));wn(f,$)}}for(n=ml,ml=[],s=0;s<n.length;s+=2){u=n[s],f=n[s+1];try{var w=u.create;u.destroy=w()}catch($){if(f===null)throw Error(l(330));wn(f,$)}}for(w=e.current.firstEffect;w!==null;)e=w.nextEffect,w.nextEffect=null,w.flags&8&&(w.sibling=null,w.stateNode=null),w=e;return ve=t,zt(),!0}function Nc(e,t,n){t=sl(n,t),t=fc(e,t,1),dn(e,t),t=yt(),e=vi(e,1),e!==null&&(_s(e,1,t),kt(e,t))}function wn(e,t){if(e.tag===3)Nc(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){Nc(n,e,t);break}else if(n.tag===1){var s=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Ut===null||!Ut.has(s))){e=sl(t,e);var u=hc(n,e,1);if(dn(n,u),u=yt(),n=vi(n,1),n!==null)_s(n,1,u),kt(n,u);else if(typeof s.componentDidCatch=="function"&&(Ut===null||!Ut.has(s)))try{s.componentDidCatch(t,e)}catch{}break}}n=n.return}}function _p(e,t,n){var s=e.pingCache;s!==null&&s.delete(t),t=yt(),e.pingedLanes|=e.suspendedLanes&n,ut===e&&(ot&n)===n&&(tt===4||tt===3&&(ot&62914560)===ot&&500>st()-dl?wr(e,0):fl|=n),kt(e,t)}function Ip(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,(t&2)===0?t=1:(t&4)===0?t=cr()===99?1:2:(Jt===0&&(Jt=gr),t=er(62914560&~Jt),t===0&&(t=4194304))),n=yt(),e=vi(e,t),e!==null&&(_s(e,t,n),kt(e,n))}var Ac;Ac=function(e,t,n){var s=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||ct.current)Lt=!0;else if((n&s)!==0)Lt=(e.flags&16384)!==0;else{switch(Lt=!1,t.tag){case 3:tc(t),Ko();break;case 5:za(t);break;case 1:ft(t.type)&&Qs(t);break;case 4:Vo(t,t.stateNode.containerInfo);break;case 10:s=t.memoizedProps.value;var u=t.type._context;He(Xs,u._currentValue),u._currentValue=s;break;case 13:if(t.memoizedState!==null)return(n&t.child.childLanes)!==0?nc(e,t,n):(He(be,be.current&1),t=Qt(e,t,n),t!==null?t.sibling:null);He(be,be.current&1);break;case 19:if(s=(n&t.childLanes)!==0,(e.flags&64)!==0){if(s)return lc(e,t,n);t.flags|=64}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),He(be,be.current),s)break;return null;case 23:case 24:return t.lanes=0,qo(e,t,n)}return Qt(e,t,n)}else Lt=!1;switch(t.lanes=0,t.tag){case 2:if(s=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,u=ar(t,rt.current),hr(t,n),u=Yo(null,t,s,e,u,n),t.flags|=1,typeof u=="object"&&u!==null&&typeof u.render=="function"&&u.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,ft(s)){var f=!0;Qs(t)}else f=!1;t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,Uo(t);var p=s.getDerivedStateFromProps;typeof p=="function"&&qs(t,s,p,e),u.updater=ei,t.stateNode=u,u._reactInternals=t,Bo(t,s,e,n),t=tl(null,t,s,!0,f,n)}else t.tag=0,dt(null,t,u,n),t=t.child;return t;case 16:u=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,f=u._init,u=f(u._payload),t.type=u,f=t.tag=Mp(u),e=At(u,e),f){case 0:t=el(null,t,u,e,n);break e;case 1:t=ec(null,t,u,e,n);break e;case 11:t=Xa(null,t,u,e,n);break e;case 14:t=Za(null,t,u,At(u.type,e),s,n);break e}throw Error(l(306,u,""))}return t;case 0:return s=t.type,u=t.pendingProps,u=t.elementType===s?u:At(s,u),el(e,t,s,u,n);case 1:return s=t.type,u=t.pendingProps,u=t.elementType===s?u:At(s,u),ec(e,t,s,u,n);case 3:if(tc(t),s=t.updateQueue,e===null||s===null)throw Error(l(282));if(s=t.pendingProps,u=t.memoizedState,u=u!==null?u.element:null,Ta(e,t),Jr(t,s,null,n),s=t.memoizedState.element,s===u)Ko(),t=Qt(e,t,n);else{if(u=t.stateNode,(f=u.hydrate)&&(pn=ir(t.stateNode.containerInfo.firstChild),Wt=t,f=Ft=!0),f){if(e=u.mutableSourceEagerHydrationData,e!=null)for(u=0;u<e.length;u+=2)f=e[u],f._workInProgressVersionPrimary=e[u+1],pr.push(f);for(n=Ia(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else dt(e,t,s,n),Ko();t=t.child}return t;case 5:return za(t),e===null&&bo(t),s=t.type,u=t.pendingProps,f=e!==null?e.memoizedProps:null,p=u.children,jo(s,u)?p=null:f!==null&&jo(s,f)&&(t.flags|=16),qa(e,t),dt(e,t,p,n),t.child;case 6:return e===null&&bo(t),null;case 13:return nc(e,t,n);case 4:return Vo(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=ri(t,null,s,n):dt(e,t,s,n),t.child;case 11:return s=t.type,u=t.pendingProps,u=t.elementType===s?u:At(s,u),Xa(e,t,s,u,n);case 7:return dt(e,t,t.pendingProps,n),t.child;case 8:return dt(e,t,t.pendingProps.children,n),t.child;case 12:return dt(e,t,t.pendingProps.children,n),t.child;case 10:e:{s=t.type._context,u=t.pendingProps,p=t.memoizedProps,f=u.value;var w=t.type._context;if(He(Xs,w._currentValue),w._currentValue=f,p!==null)if(w=p.value,f=wt(w,f)?0:(typeof s._calculateChangedBits=="function"?s._calculateChangedBits(w,f):1073741823)|0,f===0){if(p.children===u.children&&!ct.current){t=Qt(e,t,n);break e}}else for(w=t.child,w!==null&&(w.return=t);w!==null;){var $=w.dependencies;if($!==null){p=w.child;for(var _=$.firstContext;_!==null;){if(_.context===s&&(_.observedBits&f)!==0){w.tag===1&&(_=hn(-1,n&-n),_.tag=2,dn(w,_)),w.lanes|=n,_=w.alternate,_!==null&&(_.lanes|=n),Ea(w.return,n),$.lanes|=n;break}_=_.next}}else p=w.tag===10&&w.type===t.type?null:w.child;if(p!==null)p.return=w;else for(p=w;p!==null;){if(p===t){p=null;break}if(w=p.sibling,w!==null){w.return=p.return,p=w;break}p=p.return}w=p}dt(e,t,u.children,n),t=t.child}return t;case 9:return u=t.type,f=t.pendingProps,s=f.children,hr(t,n),u=xt(u,f.unstable_observedBits),s=s(u),t.flags|=1,dt(e,t,s,n),t.child;case 14:return u=t.type,f=At(u,t.pendingProps),f=At(u.type,f),Za(e,t,u,f,s,n);case 15:return Ga(e,t,t.type,t.pendingProps,s,n);case 17:return s=t.type,u=t.pendingProps,u=t.elementType===s?u:At(s,u),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,ft(s)?(e=!0,Qs(t)):e=!1,hr(t,n),Oa(t,s,u),Bo(t,s,u,n),tl(null,t,s,!0,e,n);case 19:return lc(e,t,n);case 23:return qo(e,t,n);case 24:return qo(e,t,n)}throw Error(l(156,t.tag))};function zp(e,t,n,s){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Ct(e,t,n,s){return new zp(e,t,n,s)}function Sl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Mp(e){if(typeof e=="function")return Sl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ke)return 11;if(e===De)return 14}return 2}function xn(e,t){var n=e.alternate;return n===null?(n=Ct(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function xi(e,t,n,s,u,f){var p=2;if(s=e,typeof e=="function")Sl(e)&&(p=1);else if(typeof e=="string")p=5;else e:switch(e){case q:return xr(n.children,u,f,t);case je:p=8,u|=16;break;case oe:p=8,u|=1;break;case Pe:return e=Ct(12,n,t,u|8),e.elementType=Pe,e.type=Pe,e.lanes=f,e;case Re:return e=Ct(13,n,t,u),e.type=Re,e.elementType=Re,e.lanes=f,e;case ye:return e=Ct(19,n,t,u),e.elementType=ye,e.lanes=f,e;case B:return kl(n,u,f,t);case ee:return e=Ct(24,n,t,u),e.elementType=ee,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case xe:p=10;break e;case Ee:p=9;break e;case ke:p=11;break e;case De:p=14;break e;case A:p=16,s=null;break e;case Q:p=22;break e}throw Error(l(130,e==null?e:typeof e,""))}return t=Ct(p,n,t,u),t.elementType=e,t.type=s,t.lanes=f,t}function xr(e,t,n,s){return e=Ct(7,e,s,t),e.lanes=n,e}function kl(e,t,n,s){return e=Ct(23,e,s,t),e.elementType=B,e.lanes=n,e}function Cl(e,t,n){return e=Ct(6,e,null,t),e.lanes=n,e}function $l(e,t,n){return t=Ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fp(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=ao(0),this.expirationTimes=ao(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ao(0),this.mutableSourceEagerHydrationData=null}function Dp(e,t,n){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ue,key:s==null?null:""+s,children:e,containerInfo:t,implementation:n}}function Si(e,t,n,s){var u=t.current,f=yt(),p=mn(u);e:if(n){n=n._reactInternals;t:{if(An(n)!==n||n.tag!==1)throw Error(l(170));var w=n;do{switch(w.tag){case 3:w=w.stateNode.context;break t;case 1:if(ft(w.type)){w=w.stateNode.__reactInternalMemoizedMergedChildContext;break t}}w=w.return}while(w!==null);throw Error(l(171))}if(n.tag===1){var $=n.type;if(ft($)){n=ma(n,$,w);break e}}n=w}else n=cn;return t.context===null?t.context=n:t.pendingContext=n,t=hn(f,p),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),dn(u,t),yn(u,p,f),p}function Pl(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function Lc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function El(e,t){Lc(e,t),(e=e.alternate)&&Lc(e,t)}function Up(){return null}function Tl(e,t,n){var s=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new Fp(e,t,n!=null&&n.hydrate===!0),t=Ct(3,null,null,t===2?7:t===1?3:0),n.current=t,t.stateNode=n,Uo(t),e[or]=n.current,ia(e.nodeType===8?e.parentNode:e),s)for(e=0;e<s.length;e++){t=s[e];var u=t._getVersion;u=u(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,u]:n.mutableSourceEagerHydrationData.push(t,u)}this._internalRoot=n}Tl.prototype.render=function(e){Si(e,this._internalRoot,null,null)},Tl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Si(null,e,null,function(){t[or]=null})};function ds(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Bp(e,t){if(t||(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,t=!(!t||t.nodeType!==1||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Tl(e,0,t?{hydrate:!0}:void 0)}function ki(e,t,n,s,u){var f=n._reactRootContainer;if(f){var p=f._internalRoot;if(typeof u=="function"){var w=u;u=function(){var _=Pl(p);w.call(_)}}Si(t,p,e,u)}else{if(f=n._reactRootContainer=Bp(n,s),p=f._internalRoot,typeof u=="function"){var $=u;u=function(){var _=Pl(p);$.call(_)}}Cc(function(){Si(t,p,e,u)})}return Pl(p)}xu=function(e){if(e.tag===13){var t=yt();yn(e,4,t),El(e,4)}},ro=function(e){if(e.tag===13){var t=yt();yn(e,67108864,t),El(e,67108864)}},Su=function(e){if(e.tag===13){var t=yt(),n=mn(e);yn(e,n,t),El(e,n)}},ku=function(e,t){return t()},Ts=function(e,t,n){switch(t){case"input":if(x(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var s=n[t];if(s!==e&&s.form===e.form){var u=Ks(s);if(!u)throw Error(l(90));Pr(s),x(s,u)}}}break;case"textarea":U(e,n);break;case"select":t=n.value,t!=null&&b(e,!!n.multiple,t,!1)}},qe=kc,_t=function(e,t,n,s,u){var f=ve;ve|=4;try{return _n(98,e.bind(null,t,n,s,u))}finally{ve=f,ve===0&&(yr(),zt())}},bt=function(){(ve&49)===0&&(Tp(),vn())},jr=function(e,t){var n=ve;ve|=2;try{return e(t)}finally{ve=n,ve===0&&(yr(),zt())}};function Oc(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ds(t))throw Error(l(200));return Dp(e,t,null,n)}var Vp={Events:[Qr,lr,Ks,jn,Tr,vn,{current:!1}]},ps={findFiberByHostInstance:Ln,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},Hp={bundleType:ps.bundleType,version:ps.version,rendererPackageName:ps.rendererPackageName,rendererConfig:ps.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:he.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=vu(e),e===null?null:e.stateNode},findFiberByHostInstance:ps.findFiberByHostInstance||Up,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ci=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ci.isDisabled&&Ci.supportsFiber)try{Oo=Ci.inject(Hp),Rn=Ci}catch{}}return pt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Vp,pt.createPortal=Oc,pt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):Error(l(268,Object.keys(e)));return e=vu(t),e=e===null?null:e.stateNode,e},pt.flushSync=function(e,t){var n=ve;if((n&48)!==0)return e(t);ve|=1;try{if(e)return _n(99,e.bind(null,t))}finally{ve=n,zt()}},pt.hydrate=function(e,t,n){if(!ds(t))throw Error(l(200));return ki(null,e,t,!0,n)},pt.render=function(e,t,n){if(!ds(t))throw Error(l(200));return ki(null,e,t,!1,n)},pt.unmountComponentAtNode=function(e){if(!ds(e))throw Error(l(40));return e._reactRootContainer?(Cc(function(){ki(null,null,e,!1,function(){e._reactRootContainer=null,e[or]=null})}),!0):!1},pt.unstable_batchedUpdates=kc,pt.unstable_createPortal=function(e,t){return Oc(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},pt.unstable_renderSubtreeIntoContainer=function(e,t,n,s){if(!ds(n))throw Error(l(200));if(e==null||e._reactInternals===void 0)throw Error(l(38));return ki(e,t,n,!1,s)},pt.version="17.0.2",pt}var zl;function Dc(){if(zl)return Ai.exports;zl=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(i){console.error(i)}}return r(),Ai.exports=Fc(),Ai.exports}var Ri=Dc();const Uc=$i(Ri),nt=Xt.createContext({posts:[],authors:[],tags:[],action:"",lastPage:"",page:"",pageData:{},dispatch:(r,i)=>{},searchIndex:null,indexComplete:!1,searchValue:"",t:()=>{},dir:"ltr"}),Bc=r=>Ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:16,width:16,viewBox:"0 0 16 16",...r},Ae.createElement("title",null,"circle anim"),Ae.createElement("g",{fill:"#40413F",className:"nc-icon-wrapper"},Ae.createElement("g",{className:"nc-loop-circle-16-icon-f"},Ae.createElement("path",{d:"M8 16a8 8 0 1 1 8-8 8.009 8.009 0 0 1-8 8zM8 2a6 6 0 1 0 6 6 6.006 6.006 0 0 0-6-6z",fill:"#D4D4D4"}),Ae.createElement("path",{d:"M8 0v2a6.006 6.006 0 0 1 6 6h2a8.009 8.009 0 0 0-8-8z","data-color":"color-2"})),Ae.createElement("style",null,".nc-loop-circle-16-icon-f{--animation-duration:0.5s;transform-origin:8px 8px;animation:nc-loop-circle-anim var(--animation-duration) infinite linear}@keyframes nc-loop-circle-anim{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}"))),Vc=r=>Ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:16,width:16,...r},Ae.createElement("path",{strokeLinecap:"round",strokeWidth:.4,fill:"currentColor",stroke:"#000000",strokeLinejoin:"round",d:"M.44,21.44a1.49,1.49,0,0,0,0,2.12,1.5,1.5,0,0,0,2.12,0l9.26-9.26a.25.25,0,0,1,.36,0l9.26,9.26a1.5,1.5,0,0,0,2.12,0,1.49,1.49,0,0,0,0-2.12L14.3,12.18a.25.25,0,0,1,0-.36l9.26-9.26A1.5,1.5,0,0,0,21.44.44L12.18,9.7a.25.25,0,0,1-.36,0L2.56.44A1.5,1.5,0,0,0,.44,2.56L9.7,11.82a.25.25,0,0,1,0,.36Z"}));class Hc extends Ae.Component{componentDidMount(){this.node.addEventListener("load",this.handleLoad)}handleLoad=()=>{this.setupFrameBaseStyle()};componentWillUnmout(){this.node.removeEventListener("load",this.handleLoad)}setupFrameBaseStyle(){this.node.contentDocument&&(this.iframeHtml=this.node.contentDocument.documentElement,this.iframeHtml.setAttribute("dir",this.props.searchdir),this.iframeHead=this.node.contentDocument.head,this.iframeRoot=this.node.contentDocument.body,this.forceUpdate())}render(){const{children:i,head:o,title:l="",style:a={},...d}=this.props;return G.jsxs("iframe",{srcDoc:"<!DOCTYPE html>",...d,ref:m=>this.node=m,title:l,style:a,frameBorder:"0",children:[this.iframeHead&&Ri.createPortal(o,this.iframeHead),this.iframeRoot&&Ri.createPortal(i,this.iframeRoot)]})}}const bc=r=>Ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:16,width:16,...r},Ae.createElement("path",{d:"M23.38,21.62l-6.53-6.53a9.15,9.15,0,0,0,1.9-5.59,9.27,9.27,0,1,0-3.66,7.36l6.53,6.53a1.26,1.26,0,0,0,1.76,0A1.25,1.25,0,0,0,23.38,21.62ZM2.75,9.5A6.75,6.75,0,1,1,9.5,16.25,6.76,6.76,0,0,1,2.75,9.5Z",fill:"currentColor"})),Ml=10,Kc=10,Wc=()=>({modalContainer:{zIndex:"3999999",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",overflow:"hidden"},frame:{common:{margin:"auto",position:"relative",padding:"0",outline:"0",width:"100%",opacity:"1",overflow:"hidden",height:"100%"}},page:{links:{width:"600px"}}});class Qc extends Xt.Component{static contextType=nt;componentDidMount(){this.sendContainerHeightChangeEvent()}sendContainerHeightChangeEvent(){}componentDidUpdate(){this.sendContainerHeightChangeEvent()}handlePopupClose(i){i.preventDefault(),i.target===i.currentTarget&&this.context.dispatch("update",{showPopup:!1})}render(){return G.jsx(hf,{})}}function Yc(){const{searchValue:r,dispatch:i,inputRef:o,t:l}=Ae.useContext(nt),a=Ae.useRef(null);Ae.useEffect(()=>{setTimeout(()=>{o?.current?.focus()},150);let m=y=>{y.key==="Escape"&&i("update",{showPopup:!1})};const v=a?.current;return v?.ownerDocument.removeEventListener("keyup",m),v?.ownerDocument.addEventListener("keyup",m),()=>{v?.ownerDocument.removeEventListener("keyup",m)}},[i,o]);let d="z-10 relative flex items-center py-5 px-4 sm:px-7 bg-white rounded-t-lg shadow";return r||(d="z-10 relative flex items-center py-5 px-4 sm:px-7 bg-white rounded-lg"),G.jsxs("div",{className:d,ref:a,children:[G.jsx("div",{className:"flex items-center justify-center w-4 h-4 me-3",children:G.jsx(Jc,{})}),G.jsx("input",{ref:o,value:r||"",onChange:m=>{i("update",{searchValue:m.target.value})},onKeyDown:m=>{(m.key==="ArrowUp"||m.key==="ArrowDown")&&m.preventDefault()},className:"grow -my-5 py-5 -ms-3 ps-3 text-[1.65rem] focus-visible:outline-none placeholder:text-gray-400 outline-none truncate",placeholder:l("Search posts, tags and authors")}),G.jsx(Xc,{}),G.jsx(Zc,{})]})}function Jc(){const{searchValue:r="",dispatch:i}=Ae.useContext(nt);return r?G.jsx("button",{alt:"Clear",className:"-mb-[1px]",onClick:()=>{i("update",{searchValue:""})},children:G.jsx(Vc,{className:"text-neutral-900 hover:text-neutral-500 h-[1.1rem] w-[1.1rem]"})}):G.jsx(bc,{className:"text-neutral-900",alt:"Search"})}function Xc(){const{indexComplete:r,searchValue:i}=Ae.useContext(nt);return!r&&i?G.jsx(Bc,{className:"shrink-0"}):null}function Zc(){const{dispatch:r,t:i}=Ae.useContext(nt);return G.jsx("button",{className:"ms-3 text-sm text-neutral-500 sm:hidden",alt:"Cancel",onClick:()=>{r("update",{showPopup:!1})},children:i("Cancel")})}function Gc({tag:r,selectedResult:i,setSelectedResult:o}){const{name:l,url:a,id:d}=r;let m="flex items-center py-3 -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer";return d===i&&(m+=" bg-neutral-100"),G.jsxs("div",{className:m,onClick:()=>{a&&(window.location.href=a)},onMouseEnter:()=>{o(d)},children:[G.jsx("p",{className:"me-2 text-sm font-bold text-neutral-400",children:"#"}),G.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-900 truncate",children:l})]})}function qc({tags:r,selectedResult:i,setSelectedResult:o}){const{t:l}=Ae.useContext(nt);if(!r?.length)return null;const a=r.map(d=>G.jsx(Gc,{tag:d,selectedResult:i,setSelectedResult:o},d.name));return G.jsxs("div",{className:"border-t border-gray-200 py-3 px-4 sm:px-7",children:[G.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:l("Tags")}),a]})}function ef({post:r,selectedResult:i,setSelectedResult:o}){const{searchValue:l}=Ae.useContext(nt),{title:a,excerpt:d,url:m,id:v}=r;let y="py-3 -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer";return v===i&&(y+=" bg-neutral-100"),G.jsxs("div",{className:y,onClick:()=>{m&&(window.location.href=m)},onMouseEnter:()=>{o(v)},children:[G.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-800",children:G.jsx(Dl,{text:a,highlight:l,isExcerpt:!1})}),G.jsx("p",{className:"text-neutral-400 leading-normal text-sm mt-0 mb-0 truncate",children:G.jsx(Dl,{text:d,highlight:l,isExcerpt:!0})})]})}function tf({text:r,highlight:i}){let o="";i?.split(" ").forEach((m,v)=>{const y=String(m).replace(/\W/g,"\\&");v>0?o+="|^"+y+"|\\s"+y:o="^"+y+"|\\s"+y});const l=new RegExp(`${o}`,"ig");let a=r?.matchAll(l);const d=[];for(const m of a)d.push({startIdx:m?.index,endIdx:(m?.index||0)+(m?.[0].length||0)});return d}function Fl({text:r,highlight:i}){const o=tf({text:r,highlight:i}),l=[];let a=0;return o.forEach(d=>{a===d.startIdx?(l.push({text:r?.slice(d.startIdx,d.endIdx),type:"highlight"}),a=d.endIdx):(l.push({text:r?.slice(a,d.startIdx),type:"normal"}),l.push({text:r?.slice(d.startIdx,d.endIdx),type:"highlight"}),a=d.endIdx)}),a<r?.length&&l.push({text:r?.slice(a,r.length),type:"normal"}),{parts:l,highlightIndexes:o}}function Dl({text:r="",highlight:i="",isExcerpt:o}){r=r||"",i=i||"";let{parts:l,highlightIndexes:a}=Fl({text:r,highlight:i});if(o&&a?.[0]){const m=a?.[0]?.startIdx;if(m>50){r="..."+r?.slice(m-20);const{parts:v}=Fl({text:r,highlight:i});l=v}}const d=l.map((m,v)=>m?.type==="highlight"?G.jsx(Xt.Fragment,{children:G.jsx(nf,{word:m.text,isExcerpt:o})},v):G.jsx(Xt.Fragment,{children:m.text},v));return G.jsx(G.Fragment,{children:d})}function nf({word:r,isExcerpt:i}){return i?G.jsx(G.Fragment,{children:G.jsx("span",{className:"font-bold",children:r})}):G.jsx(G.Fragment,{children:G.jsx("span",{className:"font-bold text-neutral-900",children:r})})}function rf({posts:r,maxPosts:i,setMaxPosts:o}){const{t:l}=Ae.useContext(nt);return!r?.length||i>=r?.length?null:G.jsx("button",{className:"w-full my-3 p-[1rem] border border-neutral-200 hover:border-neutral-300 text-neutral-800 hover:text-black font-semibold rounded transition duration-150 ease hover:ease",onClick:()=>{const a=i+Kc;o(a)},children:l("Show more results")})}function sf({posts:r,selectedResult:i,setSelectedResult:o}){const{t:l}=Ae.useContext(nt),[a,d]=Ae.useState(Ml),[m,v]=Ae.useState([]);if(Ae.useEffect(()=>{d(Ml)},[r]),Ae.useEffect(()=>{v(r?.slice(0,a+1))},[a,r]),!r?.length)return null;function y(){return m.map(C=>G.jsx(ef,{post:C,selectedResult:i,setSelectedResult:o},C.title))}return G.jsxs("div",{className:"border-t border-neutral-200 py-3 px-4 sm:px-7",children:[G.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:l("Posts")}),G.jsx(y,{}),G.jsx(rf,{setMaxPosts:d,maxPosts:a,posts:r})]})}function of({author:r,selectedResult:i,setSelectedResult:o}){const{name:l,profile_image:a,url:d,id:m}=r;let v="py-[1rem] -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer flex items-center";return m===i&&(v+=" bg-neutral-100"),G.jsxs("div",{className:v,onClick:()=>{d&&(window.location.href=d)},onMouseEnter:()=>{o(m)},children:[G.jsx(lf,{name:l,avatar:a}),G.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-900 truncate",children:l})]})}function lf({name:r,avatar:i}){const o=i?.length,l=r.charAt(0);return o?G.jsx("img",{className:"rounded-full bg-neutral-300 w-7 h-7 me-2 object-cover",src:i,alt:r}):G.jsx("div",{className:"rounded-full bg-neutral-200 w-7 h-7 me-2 flex items-center justify-center font-bold",children:G.jsx("span",{className:"text-neutral-400",children:l})})}function uf({authors:r,selectedResult:i,setSelectedResult:o}){const{t:l}=Ae.useContext(nt);if(!r?.length)return null;const a=r.map(d=>G.jsx(of,{author:d,selectedResult:i,setSelectedResult:o},d.name));return G.jsxs("div",{className:"border-t border-neutral-200 py-3 px-4 sm:px-7",children:[G.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:l("Authors")}),a]})}function af(){const{searchValue:r="",searchIndex:i,indexComplete:o}=Ae.useContext(nt);let l=null,a=[],d=[],m=[];return o&&r&&(l=i?.search(r),d=l?.posts||[],m=l?.authors||[],a=l?.tags||[]),m=m.filter(y=>{const C=/\/404\/$/;return!(y?.url&&C.test(y?.url))}),a=a.filter(y=>{const C=/\/404\/$/;return!(y?.url&&C.test(y?.url))}),d?.length||m?.length||a?.length?G.jsx(cf,{posts:d,authors:m,tags:a}):r?G.jsx(ff,{}):null}function cf({posts:r,authors:i,tags:o}){const{searchValue:l}=Ae.useContext(nt),a=Ae.useMemo(()=>[...i,...o,...r],[i,o,r]),d=a?.[0]?.id||null,[m,v]=Ae.useState(d),y=Ae.useRef(null);return Ae.useEffect(()=>{v(a?.[0]?.id||null)},[a]),Ae.useEffect(()=>{let C=F=>{if(F.isComposing||F.keyCode===229)return;const M=a.findIndex(O=>O.id===m);let V=a[M+1],R=a[M-1];if(F.key==="ArrowUp"&&R?v(R?.id):F.key==="ArrowDown"&&V&&v(V?.id),F.key==="Enter"){const O=a.find(J=>J.id===m);window.location.href=O?.url}};const L=y?.current?.ownerDocument;return L?.removeEventListener("keydown",C),L?.addEventListener("keydown",C),()=>{L?.removeEventListener("keydown",C)}},[a,m]),l?G.jsxs("div",{className:"overflow-y-auto max-h-[calc(100vh-172px)] sm:max-h-[70vh] -mt-[1px]",ref:y,children:[G.jsx(uf,{authors:i,selectedResult:m,setSelectedResult:v}),G.jsx(qc,{tags:o,selectedResult:m,setSelectedResult:v}),G.jsx(sf,{posts:r,selectedResult:m,setSelectedResult:v})]}):null}function ff(){const{t:r}=Ae.useContext(nt);return G.jsx("div",{className:"py-4 px-7",children:G.jsx("p",{className:"text-[1.65rem] text-neutral-400 leading-normal",children:r("No matches found")})})}function hf(){const{dispatch:r}=Ae.useContext(nt);return G.jsx(G.Fragment,{children:G.jsx("div",{className:"h-screen w-screen pt-20 antialiased z-50 relative ghost-display",onClick:i=>{i.preventDefault(),i.target===i.currentTarget&&r("update",{showPopup:!1})},children:G.jsxs("div",{className:"bg-white w-full max-w-[95vw] sm:max-w-lg rounded-lg shadow-xl m-auto relative translate-z-0 animate-popup",children:[G.jsx(Yc,{}),G.jsx(af,{})]})})})}class df extends Xt.Component{static contextType=nt;constructor(i){super(i),this.state={height:null}}onHeightChange(i){this.setState({height:i})}handlePopupClose(i){i.preventDefault(),i.target===i.currentTarget&&this.context.dispatch("update",{showPopup:!1})}renderFrameStyles(){const i=`
9
+ Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Oe!==5&&(Oe=2),S=Qo(S,y),I=g;do{switch(I.tag){case 3:h=S,I.flags|=4096,t&=-t,I.lanes|=t;var ue=Ec(I,h,t);Hu(I,ue);break e;case 1:h=S;var X=I.type,ce=I.stateNode;if((I.flags&64)===0&&(typeof X.getDerivedStateFromError=="function"||ce!==null&&typeof ce.componentDidCatch=="function"&&(dt===null||!dt.has(ce)))){I.flags|=4096,t&=-t,I.lanes|=t;var me=Tc(I,h,t);Hu(I,me);break e}}I=I.return}while(I!==null)}Vc(n)}catch(de){t=de,Ae===n&&n!==null&&(Ae=n=n.return);continue}break}while(!0)}function bc(){var e=Hs.current;return Hs.current=Bs,e===null?Bs:e}function Mr(e,t){var n=ie;ie|=16;var a=bc();Ue===e&&Fe===t||Vn(e,t);do try{wg();break}catch(u){Uc(e,u)}while(!0);if(Eo(),ie=n,Hs.current=a,Ae!==null)throw Error(o(261));return Ue=null,Fe=0,Oe}function wg(){for(;Ae!==null;)Bc(Ae)}function xg(){for(;Ae!==null&&!tg();)Bc(Ae)}function Bc(e){var t=Wc(e.alternate,e,sn);e.memoizedProps=e.pendingProps,t===null?Vc(e):Ae=t,Go.current=null}function Vc(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&2048)===0){if(n=cg(n,t,sn),n!==null){Ae=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||(sn&1073741824)!==0||(n.mode&4)===0){for(var a=0,u=n.child;u!==null;)a|=u.lanes|u.childLanes,u=u.sibling;n.childLanes=a}e!==null&&(e.flags&2048)===0&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(n=fg(t),n!==null){n.flags&=2047,Ae=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);Oe===0&&(Oe=5)}function on(e){var t=Rn();return en(99,Sg.bind(null,e,t)),null}function Sg(e,t){do bt();while(Or!==null);if((ie&48)!==0)throw Error(o(327));var n=e.finishedWork;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null;var a=n.lanes|n.childLanes,u=a,h=e.pendingLanes&~u;e.pendingLanes=u,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=u,e.mutableReadLanes&=u,e.entangledLanes&=u,u=e.entanglements;for(var g=e.eventTimes,y=e.expirationTimes;0<h;){var S=31-Nt(h),A=1<<S;u[S]=0,g[S]=-1,y[S]=-1,h&=~A}if(wt!==null&&(a&24)===0&&wt.has(e)&&wt.delete(e),e===Ue&&(Ae=Ue=null,Fe=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,a=n.firstEffect):a=n:a=n.firstEffect,a!==null){if(u=ie,ie|=32,Go.current=null,go=ds,g=gu(),co(g)){if("selectionStart"in g)y={start:g.selectionStart,end:g.selectionEnd};else e:if(y=(y=g.ownerDocument)&&y.defaultView||window,(A=y.getSelection&&y.getSelection())&&A.rangeCount!==0){y=A.anchorNode,h=A.anchorOffset,S=A.focusNode,A=A.focusOffset;try{y.nodeType,S.nodeType}catch{y=null;break e}var W=0,ae=-1,I=-1,ee=0,oe=0,re=g,P=null;t:for(;;){for(var k;re!==y||h!==0&&re.nodeType!==3||(ae=W+h),re!==S||A!==0&&re.nodeType!==3||(I=W+A),re.nodeType===3&&(W+=re.nodeValue.length),(k=re.firstChild)!==null;)P=re,re=k;for(;;){if(re===g)break t;if(P===y&&++ee===h&&(ae=W),P===S&&++oe===A&&(I=W),(k=re.nextSibling)!==null)break;re=P,P=re.parentNode}re=k}y=ae===-1||I===-1?null:{start:ae,end:I}}else y=null;y=y||{start:0,end:0}}else y=null;mo={focusedElem:g,selectionRange:y},ds=!1,zr=null,Js=!1,Y=a;do try{kg()}catch(de){if(Y===null)throw Error(o(330));Bt(Y,de),Y=Y.nextEffect}while(Y!==null);zr=null,Y=a;do try{for(g=e;Y!==null;){var $=Y.flags;if($&16&&Gn(Y.stateNode,""),$&128){var j=Y.alternate;if(j!==null){var R=j.ref;R!==null&&(typeof R=="function"?R(null):R.current=null)}}switch($&1038){case 2:Rc(Y),Y.flags&=-3;break;case 6:Rc(Y),Y.flags&=-3,Zo(Y.alternate,Y);break;case 1024:Y.flags&=-1025;break;case 1028:Y.flags&=-1025,Zo(Y.alternate,Y);break;case 4:Zo(Y.alternate,Y);break;case 8:y=Y,Ic(g,y);var ue=y.alternate;Lc(y),ue!==null&&Lc(ue)}Y=Y.nextEffect}}catch(de){if(Y===null)throw Error(o(330));Bt(Y,de),Y=Y.nextEffect}while(Y!==null);if(R=mo,j=gu(),$=R.focusedElem,g=R.selectionRange,j!==$&&$&&$.ownerDocument&&pu($.ownerDocument.documentElement,$)){for(g!==null&&co($)&&(j=g.start,R=g.end,R===void 0&&(R=j),"selectionStart"in $?($.selectionStart=j,$.selectionEnd=Math.min(R,$.value.length)):(R=(j=$.ownerDocument||document)&&j.defaultView||window,R.getSelection&&(R=R.getSelection(),y=$.textContent.length,ue=Math.min(g.start,y),g=g.end===void 0?ue:Math.min(g.end,y),!R.extend&&ue>g&&(y=g,g=ue,ue=y),y=du($,ue),h=du($,g),y&&h&&(R.rangeCount!==1||R.anchorNode!==y.node||R.anchorOffset!==y.offset||R.focusNode!==h.node||R.focusOffset!==h.offset)&&(j=j.createRange(),j.setStart(y.node,y.offset),R.removeAllRanges(),ue>g?(R.addRange(j),R.extend(h.node,h.offset)):(j.setEnd(h.node,h.offset),R.addRange(j)))))),j=[],R=$;R=R.parentNode;)R.nodeType===1&&j.push({element:R,left:R.scrollLeft,top:R.scrollTop});for(typeof $.focus=="function"&&$.focus(),$=0;$<j.length;$++)R=j[$],R.element.scrollLeft=R.left,R.element.scrollTop=R.top}ds=!!go,mo=go=null,e.current=n,Y=a;do try{for($=e;Y!==null;){var X=Y.flags;if(X&36&&gg($,Y.alternate,Y),X&128){j=void 0;var ce=Y.ref;if(ce!==null){var me=Y.stateNode;Y.tag,j=me,typeof ce=="function"?ce(j):ce.current=j}}Y=Y.nextEffect}}catch(de){if(Y===null)throw Error(o(330));Bt(Y,de),Y=Y.nextEffect}while(Y!==null);Y=null,rg(),ie=u}else e.current=n;if(Dt)Dt=!1,Or=e,Rr=t;else for(Y=a;Y!==null;)t=Y.nextEffect,Y.nextEffect=null,Y.flags&8&&(X=Y,X.sibling=null,X.stateNode=null),Y=t;if(a=e.pendingLanes,a===0&&(dt=null),a===1?e===ll?Ir++:(Ir=0,ll=e):Ir=0,n=n.stateNode,qt&&typeof qt.onCommitFiberRoot=="function")try{qt.onCommitFiberRoot(So,n,void 0,(n.current.flags&64)===64)}catch{}if(Ge(e,Me()),Ws)throw Ws=!1,e=sl,sl=null,e;return(ie&8)!==0||ut(),null}function kg(){for(;Y!==null;){var e=Y.alternate;Js||zr===null||((Y.flags&8)!==0?Ia(Y,zr)&&(Js=!0):Y.tag===13&&mg(e,Y)&&Ia(Y,zr)&&(Js=!0));var t=Y.flags;(t&256)!==0&&pg(e,Y),(t&512)===0||Dt||(Dt=!0,wr(97,function(){return bt(),null})),Y=Y.nextEffect}}function bt(){if(Rr!==90){var e=97<Rr?97:Rr;return Rr=90,en(e,$g)}return!1}function Cg(e,t){il.push(t,e),Dt||(Dt=!0,wr(97,function(){return bt(),null}))}function Hc(e,t){ol.push(t,e),Dt||(Dt=!0,wr(97,function(){return bt(),null}))}function $g(){if(Or===null)return!1;var e=Or;if(Or=null,(ie&48)!==0)throw Error(o(331));var t=ie;ie|=32;var n=ol;ol=[];for(var a=0;a<n.length;a+=2){var u=n[a],h=n[a+1],g=u.destroy;if(u.destroy=void 0,typeof g=="function")try{g()}catch(S){if(h===null)throw Error(o(330));Bt(h,S)}}for(n=il,il=[],a=0;a<n.length;a+=2){u=n[a],h=n[a+1];try{var y=u.create;u.destroy=y()}catch(S){if(h===null)throw Error(o(330));Bt(h,S)}}for(y=e.current.firstEffect;y!==null;)e=y.nextEffect,y.nextEffect=null,y.flags&8&&(y.sibling=null,y.stateNode=null),y=e;return ie=t,ut(),!0}function Kc(e,t,n){t=Qo(n,t),t=Ec(e,t,1),zt(e,t),t=Ye(),e=Xs(e,1),e!==null&&(hs(e,1,t),Ge(e,t))}function Bt(e,t){if(e.tag===3)Kc(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){Kc(n,e,t);break}else if(n.tag===1){var a=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(dt===null||!dt.has(a))){e=Qo(t,e);var u=Tc(n,e,1);if(zt(n,u),u=Ye(),n=Xs(n,1),n!==null)hs(n,1,u),Ge(n,u);else if(typeof a.componentDidCatch=="function"&&(dt===null||!dt.has(a)))try{a.componentDidCatch(t,e)}catch{}break}}n=n.return}}function _g(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),t=Ye(),e.pingedLanes|=e.suspendedLanes&n,Ue===e&&(Fe&n)===n&&(Oe===4||Oe===3&&(Fe&62914560)===Fe&&500>Me()-nl?Vn(e,0):el|=n),Ge(e,t)}function Pg(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,(t&2)===0?t=1:(t&4)===0?t=Rn()===99?1:2:(xt===0&&(xt=Fn),t=$n(62914560&~xt),t===0&&(t=4194304))),n=Ye(),e=Xs(e,t),e!==null&&(hs(e,t,n),Ge(e,n))}var Wc;Wc=function(e,t,n){var a=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||be.current)it=!0;else if((n&a)!==0)it=(e.flags&16384)!==0;else{switch(it=!1,t.tag){case 3:yc(t),Ro();break;case 5:Gu(t);break;case 1:Be(t.type)&&_s(t);break;case 4:jo(t,t.stateNode.containerInfo);break;case 10:a=t.memoizedProps.value;var u=t.type._context;Pe(Ts,u._currentValue),u._currentValue=a;break;case 13:if(t.memoizedState!==null)return(n&t.child.childLanes)!==0?vc(e,t,n):(Pe(Ee,Ee.current&1),t=vt(e,t,n),t!==null?t.sibling:null);Pe(Ee,Ee.current&1);break;case 19:if(a=(n&t.childLanes)!==0,(e.flags&64)!==0){if(a)return Cc(e,t,n);t.flags|=64}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),Pe(Ee,Ee.current),a)break;return null;case 23:case 24:return t.lanes=0,Bo(e,t,n)}return vt(e,t,n)}else it=!1;switch(t.lanes=0,t.tag){case 2:if(a=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,u=On(t,ze.current),zn(t,n),u=Mo(null,t,a,e,u,n),t.flags|=1,typeof u=="object"&&u!==null&&typeof u.render=="function"&&u.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Be(a)){var h=!0;_s(t)}else h=!1;t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,No(t);var g=a.getDerivedStateFromProps;typeof g=="function"&&js(t,a,g,e),u.updater=Ls,t.stateNode=u,u._reactInternals=t,Ao(t,a,e,n),t=Ho(null,t,a,!0,h,n)}else t.tag=0,He(null,t,u,n),t=t.child;return t;case 16:u=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,h=u._init,u=h(u._payload),t.type=u,h=t.tag=Tg(u),e=st(u,e),h){case 0:t=Vo(null,t,u,e,n);break e;case 1:t=mc(null,t,u,e,n);break e;case 11:t=hc(null,t,u,e,n);break e;case 14:t=dc(null,t,u,st(u.type,e),a,n);break e}throw Error(o(306,u,""))}return t;case 0:return a=t.type,u=t.pendingProps,u=t.elementType===a?u:st(a,u),Vo(e,t,a,u,n);case 1:return a=t.type,u=t.pendingProps,u=t.elementType===a?u:st(a,u),mc(e,t,a,u,n);case 3:if(yc(t),a=t.updateQueue,e===null||a===null)throw Error(o(282));if(a=t.pendingProps,u=t.memoizedState,u=u!==null?u.element:null,Vu(e,t),xr(t,a,null,n),a=t.memoizedState.element,a===u)Ro(),t=vt(e,t,n);else{if(u=t.stateNode,(h=u.hydrate)&&(Mt=Nn(t.stateNode.containerInfo.firstChild),yt=t,h=ft=!0),h){if(e=u.mutableSourceEagerHydrationData,e!=null)for(u=0;u<e.length;u+=2)h=e[u],h._workInProgressVersionPrimary=e[u+1],Dn.push(h);for(n=Zu(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else He(e,t,a,n),Ro();t=t.child}return t;case 5:return Gu(t),e===null&&Oo(t),a=t.type,u=t.pendingProps,h=e!==null?e.memoizedProps:null,g=u.children,yo(a,u)?g=null:h!==null&&yo(a,h)&&(t.flags|=16),gc(e,t),He(e,t,g,n),t.child;case 6:return e===null&&Oo(t),null;case 13:return vc(e,t,n);case 4:return jo(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Is(t,null,a,n):He(e,t,a,n),t.child;case 11:return a=t.type,u=t.pendingProps,u=t.elementType===a?u:st(a,u),hc(e,t,a,u,n);case 7:return He(e,t,t.pendingProps,n),t.child;case 8:return He(e,t,t.pendingProps.children,n),t.child;case 12:return He(e,t,t.pendingProps.children,n),t.child;case 10:e:{a=t.type._context,u=t.pendingProps,g=t.memoizedProps,h=u.value;var y=t.type._context;if(Pe(Ts,y._currentValue),y._currentValue=h,g!==null)if(y=g.value,h=Je(y,h)?0:(typeof a._calculateChangedBits=="function"?a._calculateChangedBits(y,h):1073741823)|0,h===0){if(g.children===u.children&&!be.current){t=vt(e,t,n);break e}}else for(y=t.child,y!==null&&(y.return=t);y!==null;){var S=y.dependencies;if(S!==null){g=y.child;for(var A=S.firstContext;A!==null;){if(A.context===a&&(A.observedBits&h)!==0){y.tag===1&&(A=It(-1,n&-n),A.tag=2,zt(y,A)),y.lanes|=n,A=y.alternate,A!==null&&(A.lanes|=n),Bu(y.return,n),S.lanes|=n;break}A=A.next}}else g=y.tag===10&&y.type===t.type?null:y.child;if(g!==null)g.return=y;else for(g=y;g!==null;){if(g===t){g=null;break}if(y=g.sibling,y!==null){y.return=g.return,g=y;break}g=g.return}y=g}He(e,t,u.children,n),t=t.child}return t;case 9:return u=t.type,h=t.pendingProps,a=h.children,zn(t,n),u=Xe(u,h.unstable_observedBits),a=a(u),t.flags|=1,He(e,t,a,n),t.child;case 14:return u=t.type,h=st(u,t.pendingProps),h=st(u.type,h),dc(e,t,u,h,a,n);case 15:return pc(e,t,t.type,t.pendingProps,a,n);case 17:return a=t.type,u=t.pendingProps,u=t.elementType===a?u:st(a,u),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Be(a)?(e=!0,_s(t)):e=!1,zn(t,n),Yu(t,a,u),Ao(t,a,u,n),Ho(null,t,a,!0,e,n);case 19:return Cc(e,t,n);case 23:return Bo(e,t,n);case 24:return Bo(e,t,n)}throw Error(o(156,t.tag))};function Eg(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function qe(e,t,n,a){return new Eg(e,t,n,a)}function cl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Tg(e){if(typeof e=="function")return cl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===pe)return 11;if(e===xe)return 14}return 2}function Vt(e,t){var n=e.alternate;return n===null?(n=qe(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Gs(e,t,n,a,u,h){var g=2;if(a=e,typeof e=="function")cl(e)&&(g=1);else if(typeof e=="string")g=5;else e:switch(e){case V:return Hn(n.children,u,h,t);case he:g=8,u|=16;break;case q:g=8,u|=1;break;case fe:return e=qe(12,n,t,u|8),e.elementType=fe,e.type=fe,e.lanes=h,e;case we:return e=qe(13,n,t,u),e.type=we,e.elementType=we,e.lanes=h,e;case ne:return e=qe(19,n,t,u),e.elementType=ne,e.lanes=h,e;case L:return fl(n,u,h,t);case b:return e=qe(24,n,t,u),e.elementType=b,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case se:g=10;break e;case ge:g=9;break e;case pe:g=11;break e;case xe:g=14;break e;case T:g=16,a=null;break e;case O:g=22;break e}throw Error(o(130,e==null?e:typeof e,""))}return t=qe(g,n,t,u),t.elementType=e,t.type=a,t.lanes=h,t}function Hn(e,t,n,a){return e=qe(7,e,a,t),e.lanes=n,e}function fl(e,t,n,a){return e=qe(23,e,a,t),e.elementType=L,e.lanes=n,e}function hl(e,t,n){return e=qe(6,e,null,t),e.lanes=n,e}function dl(e,t,n){return t=qe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ng(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Gi(0),this.expirationTimes=Gi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gi(0),this.mutableSourceEagerHydrationData=null}function Ag(e,t,n){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:B,key:a==null?null:""+a,children:e,containerInfo:t,implementation:n}}function qs(e,t,n,a){var u=t.current,h=Ye(),g=Ft(u);e:if(n){n=n._reactInternals;t:{if(Xt(n)!==n||n.tag!==1)throw Error(o(170));var y=n;do{switch(y.tag){case 3:y=y.stateNode.context;break t;case 1:if(Be(y.type)){y=y.stateNode.__reactInternalMemoizedMergedChildContext;break t}}y=y.return}while(y!==null);throw Error(o(171))}if(n.tag===1){var S=n.type;if(Be(S)){n=Lu(n,S,y);break e}}n=y}else n=Ot;return t.context===null?t.context=n:t.pendingContext=n,t=It(h,g),t.payload={element:e},a=a===void 0?null:a,a!==null&&(t.callback=a),zt(u,t),Ut(u,g,h),g}function pl(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function Qc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function gl(e,t){Qc(e,t),(e=e.alternate)&&Qc(e,t)}function jg(){return null}function ml(e,t,n){var a=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new Ng(e,t,n!=null&&n.hydrate===!0),t=qe(3,null,null,t===2?7:t===1?3:0),n.current=t,t.stateNode=n,No(t),e[An]=n.current,Su(e.nodeType===8?e.parentNode:e),a)for(e=0;e<a.length;e++){t=a[e];var u=t._getVersion;u=u(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,u]:n.mutableSourceEagerHydrationData.push(t,u)}this._internalRoot=n}ml.prototype.render=function(e){qs(e,this._internalRoot,null,null)},ml.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;qs(null,e,null,function(){t[An]=null})};function Dr(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Lg(e,t){if(t||(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,t=!(!t||t.nodeType!==1||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new ml(e,0,t?{hydrate:!0}:void 0)}function ei(e,t,n,a,u){var h=n._reactRootContainer;if(h){var g=h._internalRoot;if(typeof u=="function"){var y=u;u=function(){var A=pl(g);y.call(A)}}qs(t,g,e,u)}else{if(h=n._reactRootContainer=Lg(n,a),g=h._internalRoot,typeof u=="function"){var S=u;u=function(){var A=pl(g);S.call(A)}}Fc(function(){qs(t,g,e,u)})}return pl(g)}za=function(e){if(e.tag===13){var t=Ye();Ut(e,4,t),gl(e,4)}},Wi=function(e){if(e.tag===13){var t=Ye();Ut(e,67108864,t),gl(e,67108864)}},Ma=function(e){if(e.tag===13){var t=Ye(),n=Ft(e);Ut(e,n,t),gl(e,n)}},Da=function(e,t){return t()},Fi=function(e,t,n){switch(t){case"input":if(Ai(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var u=Cs(a);if(!u)throw Error(o(90));ma(a),Ai(a,u)}}}break;case"textarea":Sa(e,n);break;case"select":t=n.value,t!=null&&wn(e,!!n.multiple,t,!1)}},Ui=Dc,Aa=function(e,t,n,a,u){var h=ie;ie|=4;try{return en(98,e.bind(null,t,n,a,u))}finally{ie=h,ie===0&&(bn(),ut())}},bi=function(){(ie&49)===0&&(vg(),bt())},ja=function(e,t){var n=ie;ie|=2;try{return e(t)}finally{ie=n,ie===0&&(bn(),ut())}};function Yc(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Dr(t))throw Error(o(200));return Ag(e,t,null,n)}var Og={Events:[vr,jn,Cs,Ta,Na,bt,{current:!1}]},Fr={findFiberByHostInstance:Zt,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},Rg={bundleType:Fr.bundleType,version:Fr.version,rendererPackageName:Fr.rendererPackageName,rendererConfig:Fr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Z.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ra(e),e===null?null:e.stateNode},findFiberByHostInstance:Fr.findFiberByHostInstance||jg,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ti=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ti.isDisabled&&ti.supportsFiber)try{So=ti.inject(Rg),qt=ti}catch{}}return Ke.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Og,Ke.createPortal=Yc,Ke.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):Error(o(268,Object.keys(e)));return e=Ra(t),e=e===null?null:e.stateNode,e},Ke.flushSync=function(e,t){var n=ie;if((n&48)!==0)return e(t);ie|=1;try{if(e)return en(99,e.bind(null,t))}finally{ie=n,ut()}},Ke.hydrate=function(e,t,n){if(!Dr(t))throw Error(o(200));return ei(null,e,t,!0,n)},Ke.render=function(e,t,n){if(!Dr(t))throw Error(o(200));return ei(null,e,t,!1,n)},Ke.unmountComponentAtNode=function(e){if(!Dr(e))throw Error(o(40));return e._reactRootContainer?(Fc(function(){ei(null,null,e,!1,function(){e._reactRootContainer=null,e[An]=null})}),!0):!1},Ke.unstable_batchedUpdates=Dc,Ke.unstable_createPortal=function(e,t){return Yc(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},Ke.unstable_renderSubtreeIntoContainer=function(e,t,n,a){if(!Dr(n))throw Error(o(200));if(e==null||e._reactInternals===void 0)throw Error(o(38));return ei(e,t,n,!1,a)},Ke.version="17.0.2",Ke}var Pl;function tf(){if(Pl)return li.exports;Pl=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(s){console.error(s)}}return r(),li.exports=ef(),li.exports}var ci=tf();const nf=yl(ci),Re=St.createContext({posts:[],authors:[],tags:[],action:"",lastPage:"",page:"",pageData:{},dispatch:(r,s)=>{},searchIndex:null,indexComplete:!1,searchValue:"",t:()=>{},dir:"ltr"}),rf=r=>ye.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:16,width:16,viewBox:"0 0 16 16",...r},ye.createElement("title",null,"circle anim"),ye.createElement("g",{fill:"#40413F",className:"nc-icon-wrapper"},ye.createElement("g",{className:"nc-loop-circle-16-icon-f"},ye.createElement("path",{d:"M8 16a8 8 0 1 1 8-8 8.009 8.009 0 0 1-8 8zM8 2a6 6 0 1 0 6 6 6.006 6.006 0 0 0-6-6z",fill:"#D4D4D4"}),ye.createElement("path",{d:"M8 0v2a6.006 6.006 0 0 1 6 6h2a8.009 8.009 0 0 0-8-8z","data-color":"color-2"})),ye.createElement("style",null,".nc-loop-circle-16-icon-f{--animation-duration:0.5s;transform-origin:8px 8px;animation:nc-loop-circle-anim var(--animation-duration) infinite linear}@keyframes nc-loop-circle-anim{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}"))),sf=r=>ye.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:16,width:16,...r},ye.createElement("path",{strokeLinecap:"round",strokeWidth:.4,fill:"currentColor",stroke:"#000000",strokeLinejoin:"round",d:"M.44,21.44a1.49,1.49,0,0,0,0,2.12,1.5,1.5,0,0,0,2.12,0l9.26-9.26a.25.25,0,0,1,.36,0l9.26,9.26a1.5,1.5,0,0,0,2.12,0,1.49,1.49,0,0,0,0-2.12L14.3,12.18a.25.25,0,0,1,0-.36l9.26-9.26A1.5,1.5,0,0,0,21.44.44L12.18,9.7a.25.25,0,0,1-.36,0L2.56.44A1.5,1.5,0,0,0,.44,2.56L9.7,11.82a.25.25,0,0,1,0,.36Z"}));class of extends ye.Component{componentDidMount(){this.node.addEventListener("load",this.handleLoad)}handleLoad=()=>{this.setupFrameBaseStyle()};componentWillUnmout(){this.node.removeEventListener("load",this.handleLoad)}setupFrameBaseStyle(){this.node.contentDocument&&(this.iframeHtml=this.node.contentDocument.documentElement,this.iframeHtml.setAttribute("dir",this.props.searchdir),this.iframeHead=this.node.contentDocument.head,this.iframeRoot=this.node.contentDocument.body,this.forceUpdate())}render(){const{children:s,head:i,title:o="",style:l={},...c}=this.props;return F.jsxs("iframe",{srcDoc:"<!DOCTYPE html>",...c,ref:f=>this.node=f,title:o,style:l,frameBorder:"0",children:[this.iframeHead&&ci.createPortal(i,this.iframeHead),this.iframeRoot&&ci.createPortal(s,this.iframeRoot)]})}}const lf=r=>ye.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:16,width:16,...r},ye.createElement("path",{d:"M23.38,21.62l-6.53-6.53a9.15,9.15,0,0,0,1.9-5.59,9.27,9.27,0,1,0-3.66,7.36l6.53,6.53a1.26,1.26,0,0,0,1.76,0A1.25,1.25,0,0,0,23.38,21.62ZM2.75,9.5A6.75,6.75,0,1,1,9.5,16.25,6.76,6.76,0,0,1,2.75,9.5Z",fill:"currentColor"})),El=10,af=10,uf=()=>({modalContainer:{zIndex:"3999999",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",overflow:"hidden"},frame:{common:{margin:"auto",position:"relative",padding:"0",outline:"0",width:"100%",opacity:"1",overflow:"hidden",height:"100%"}},page:{links:{width:"600px"}}});class cf extends St.Component{static contextType=Re;componentDidMount(){this.sendContainerHeightChangeEvent()}sendContainerHeightChangeEvent(){}componentDidUpdate(){this.sendContainerHeightChangeEvent()}handlePopupClose(s){s.preventDefault(),s.target===s.currentTarget&&this.context.dispatch("update",{showPopup:!1})}render(){return F.jsx(Tf,{})}}function ff(){const{searchValue:r,dispatch:s,inputRef:i,t:o}=ye.useContext(Re),l=ye.useRef(null);ye.useEffect(()=>{setTimeout(()=>{i?.current?.focus()},150);let f=d=>{d.key==="Escape"&&s("update",{showPopup:!1})};const p=l?.current;return p?.ownerDocument.removeEventListener("keyup",f),p?.ownerDocument.addEventListener("keyup",f),()=>{p?.ownerDocument.removeEventListener("keyup",f)}},[s,i]);let c="z-10 relative flex items-center py-5 px-4 sm:px-7 bg-white rounded-t-lg shadow";return r||(c="z-10 relative flex items-center py-5 px-4 sm:px-7 bg-white rounded-lg"),F.jsxs("div",{className:c,ref:l,children:[F.jsx("div",{className:"flex items-center justify-center w-4 h-4 me-3",children:F.jsx(hf,{})}),F.jsx("input",{ref:i,value:r||"",onChange:f=>{s("update",{searchValue:f.target.value})},onKeyDown:f=>{(f.key==="ArrowUp"||f.key==="ArrowDown")&&f.preventDefault()},className:"grow -my-5 py-5 -ms-3 ps-3 text-[1.65rem] focus-visible:outline-none placeholder:text-gray-400 outline-none truncate",placeholder:o("Search posts, tags and authors")}),F.jsx(df,{}),F.jsx(pf,{})]})}function hf(){const{searchValue:r="",dispatch:s}=ye.useContext(Re);return r?F.jsx("button",{alt:"Clear",className:"-mb-[1px]",onClick:()=>{s("update",{searchValue:""})},children:F.jsx(sf,{className:"text-neutral-900 hover:text-neutral-500 h-[1.1rem] w-[1.1rem]"})}):F.jsx(lf,{className:"text-neutral-900",alt:"Search"})}function df(){const{indexComplete:r,searchValue:s}=ye.useContext(Re);return!r&&s?F.jsx(rf,{className:"shrink-0"}):null}function pf(){const{dispatch:r,t:s}=ye.useContext(Re);return F.jsx("button",{className:"ms-3 text-sm text-neutral-500 sm:hidden",alt:"Cancel",onClick:()=>{r("update",{showPopup:!1})},children:s("Cancel")})}function gf({tag:r,selectedResult:s,setSelectedResult:i}){const{name:o,url:l,id:c}=r;let f="flex items-center py-3 -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer";return c===s&&(f+=" bg-neutral-100"),F.jsxs("div",{className:f,onClick:()=>{l&&(window.location.href=l)},onMouseEnter:()=>{i(c)},children:[F.jsx("p",{className:"me-2 text-sm font-bold text-neutral-400",children:"#"}),F.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-900 truncate",children:o})]})}function mf({tags:r,selectedResult:s,setSelectedResult:i}){const{t:o}=ye.useContext(Re);if(!r?.length)return null;const l=r.map(c=>F.jsx(gf,{tag:c,selectedResult:s,setSelectedResult:i},c.name));return F.jsxs("div",{className:"border-t border-gray-200 py-3 px-4 sm:px-7",children:[F.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:o("Tags")}),l]})}function yf({post:r,selectedResult:s,setSelectedResult:i}){const{searchValue:o}=ye.useContext(Re),{title:l,excerpt:c,url:f,id:p}=r;let d="py-3 -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer";return p===s&&(d+=" bg-neutral-100"),F.jsxs("div",{className:d,onClick:()=>{f&&(window.location.href=f)},onMouseEnter:()=>{i(p)},children:[F.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-800",children:F.jsx(Nl,{text:l,highlight:o,isExcerpt:!1})}),F.jsx("p",{className:"text-neutral-400 leading-normal text-sm mt-0 mb-0 truncate",children:F.jsx(Nl,{text:c,highlight:o,isExcerpt:!0})})]})}function vf({text:r,highlight:s}){let i="";s?.split(" ").forEach((f,p)=>{const d=String(f).replace(/\W/g,"\\&");p>0?i+="|^"+d+"|\\s"+d:i="^"+d+"|\\s"+d});const o=new RegExp(`${i}`,"ig");let l=r?.matchAll(o);const c=[];for(const f of l)c.push({startIdx:f?.index,endIdx:(f?.index||0)+(f?.[0].length||0)});return c}function Tl({text:r,highlight:s}){const i=vf({text:r,highlight:s}),o=[];let l=0;return i.forEach(c=>{l===c.startIdx?(o.push({text:r?.slice(c.startIdx,c.endIdx),type:"highlight"}),l=c.endIdx):(o.push({text:r?.slice(l,c.startIdx),type:"normal"}),o.push({text:r?.slice(c.startIdx,c.endIdx),type:"highlight"}),l=c.endIdx)}),l<r?.length&&o.push({text:r?.slice(l,r.length),type:"normal"}),{parts:o,highlightIndexes:i}}function Nl({text:r="",highlight:s="",isExcerpt:i}){r=r||"",s=s||"";let{parts:o,highlightIndexes:l}=Tl({text:r,highlight:s});if(i&&l?.[0]){const f=l?.[0]?.startIdx;if(f>50){r="..."+r?.slice(f-20);const{parts:p}=Tl({text:r,highlight:s});o=p}}const c=o.map((f,p)=>f?.type==="highlight"?F.jsx(St.Fragment,{children:F.jsx(wf,{word:f.text,isExcerpt:i})},p):F.jsx(St.Fragment,{children:f.text},p));return F.jsx(F.Fragment,{children:c})}function wf({word:r,isExcerpt:s}){return s?F.jsx(F.Fragment,{children:F.jsx("span",{className:"font-bold",children:r})}):F.jsx(F.Fragment,{children:F.jsx("span",{className:"font-bold text-neutral-900",children:r})})}function xf({posts:r,maxPosts:s,setMaxPosts:i}){const{t:o}=ye.useContext(Re);return!r?.length||s>=r?.length?null:F.jsx("button",{className:"w-full my-3 p-[1rem] border border-neutral-200 hover:border-neutral-300 text-neutral-800 hover:text-black font-semibold rounded transition duration-150 ease hover:ease",onClick:()=>{const l=s+af;i(l)},children:o("Show more results")})}function Sf({posts:r,selectedResult:s,setSelectedResult:i}){const{t:o}=ye.useContext(Re),[l,c]=ye.useState(El),[f,p]=ye.useState([]);if(ye.useEffect(()=>{c(El)},[r]),ye.useEffect(()=>{p(r?.slice(0,l+1))},[l,r]),!r?.length)return null;function d(){return f.map(m=>F.jsx(yf,{post:m,selectedResult:s,setSelectedResult:i},m.title))}return F.jsxs("div",{className:"border-t border-neutral-200 py-3 px-4 sm:px-7",children:[F.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:o("Posts")}),F.jsx(d,{}),F.jsx(xf,{setMaxPosts:c,maxPosts:l,posts:r})]})}function kf({author:r,selectedResult:s,setSelectedResult:i}){const{name:o,profile_image:l,url:c,id:f}=r;let p="py-[1rem] -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer flex items-center";return f===s&&(p+=" bg-neutral-100"),F.jsxs("div",{className:p,onClick:()=>{c&&(window.location.href=c)},onMouseEnter:()=>{i(f)},children:[F.jsx(Cf,{name:o,avatar:l}),F.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-900 truncate",children:o})]})}function Cf({name:r,avatar:s}){const i=s?.length,o=r.charAt(0);return i?F.jsx("img",{className:"rounded-full bg-neutral-300 w-7 h-7 me-2 object-cover",src:s,alt:r}):F.jsx("div",{className:"rounded-full bg-neutral-200 w-7 h-7 me-2 flex items-center justify-center font-bold",children:F.jsx("span",{className:"text-neutral-400",children:o})})}function $f({authors:r,selectedResult:s,setSelectedResult:i}){const{t:o}=ye.useContext(Re);if(!r?.length)return null;const l=r.map(c=>F.jsx(kf,{author:c,selectedResult:s,setSelectedResult:i},c.name));return F.jsxs("div",{className:"border-t border-neutral-200 py-3 px-4 sm:px-7",children:[F.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:o("Authors")}),l]})}function _f(){const{searchValue:r="",searchIndex:s,indexComplete:i}=ye.useContext(Re);let o=null,l=[],c=[],f=[];return i&&r&&(o=s?.search(r),c=o?.posts||[],f=o?.authors||[],l=o?.tags||[]),f=f.filter(d=>{const m=/\/404\/$/;return!(d?.url&&m.test(d?.url))}),l=l.filter(d=>{const m=/\/404\/$/;return!(d?.url&&m.test(d?.url))}),c?.length||f?.length||l?.length?F.jsx(Pf,{posts:c,authors:f,tags:l}):r?F.jsx(Ef,{}):null}function Pf({posts:r,authors:s,tags:i}){const{searchValue:o}=ye.useContext(Re),l=ye.useMemo(()=>[...s,...i,...r],[s,i,r]),c=l?.[0]?.id||null,[f,p]=ye.useState(c),d=ye.useRef(null);return ye.useEffect(()=>{p(l?.[0]?.id||null)},[l]),ye.useEffect(()=>{let m=w=>{if(w.isComposing||w.keyCode===229)return;const C=l.findIndex(_=>_.id===f);let N=l[C+1],E=l[C-1];if(w.key==="ArrowUp"&&E?p(E?.id):w.key==="ArrowDown"&&N&&p(N?.id),w.key==="Enter"){const _=l.find(D=>D.id===f);window.location.href=_?.url}};const x=d?.current?.ownerDocument;return x?.removeEventListener("keydown",m),x?.addEventListener("keydown",m),()=>{x?.removeEventListener("keydown",m)}},[l,f]),o?F.jsxs("div",{className:"overflow-y-auto max-h-[calc(100vh-172px)] sm:max-h-[70vh] -mt-[1px]",ref:d,children:[F.jsx($f,{authors:s,selectedResult:f,setSelectedResult:p}),F.jsx(mf,{tags:i,selectedResult:f,setSelectedResult:p}),F.jsx(Sf,{posts:r,selectedResult:f,setSelectedResult:p})]}):null}function Ef(){const{t:r}=ye.useContext(Re);return F.jsx("div",{className:"py-4 px-7",children:F.jsx("p",{className:"text-[1.65rem] text-neutral-400 leading-normal",children:r("No matches found")})})}function Tf(){const{dispatch:r}=ye.useContext(Re);return F.jsx(F.Fragment,{children:F.jsx("div",{className:"h-screen w-screen pt-20 antialiased z-50 relative ghost-display",onClick:s=>{s.preventDefault(),s.target===s.currentTarget&&r("update",{showPopup:!1})},children:F.jsxs("div",{className:"bg-white w-full max-w-[95vw] sm:max-w-lg rounded-lg shadow-xl m-auto relative translate-z-0 animate-popup",children:[F.jsx(ff,{}),F.jsx(_f,{})]})})})}class Nf extends St.Component{static contextType=Re;constructor(s){super(s),this.state={height:null}}onHeightChange(s){this.setState({height:s})}handlePopupClose(s){s.preventDefault(),s.target===s.currentTarget&&this.context.dispatch("update",{showPopup:!1})}renderFrameStyles(){const s=`
10
10
  :root {
11
11
  --brandcolor: ${this.context.brandColor||""}
12
12
  }
@@ -14,4 +14,4 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
14
14
  .ghost-display {
15
15
  display: none;
16
16
  }
17
- `,o=this.context.stylesUrl;return o?G.jsxs(G.Fragment,{children:[G.jsx("link",{rel:"stylesheet",href:o}),G.jsx("style",{dangerouslySetInnerHTML:{__html:i}}),G.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"})]}):G.jsxs(G.Fragment,{children:[G.jsx("style",{dangerouslySetInnerHTML:{__html:i}}),G.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"})]})}renderFrameContainer(){const i=Wc(),o={...i.frame.common};return G.jsx("div",{style:i.modalContainer,className:"gh-root-frame",children:G.jsxs(Hc,{style:o,title:"portal-popup",head:this.renderFrameStyles(),searchdir:this.context.dir,children:[G.jsx("div",{onClick:l=>this.handlePopupClose(l),className:"absolute top-0 bottom-0 left-0 right-0 block backdrop-blur-[2px] animate-fadein z-0 bg-gradient-to-br from-[rgba(0,0,0,0.2)] to-[rgba(0,0,0,0.1)]"}),G.jsx(Qc,{})]})})}render(){const{showPopup:i}=this.context;return i?this.renderFrameContainer():null}}var ie;function Ge(r,i,o){const l=typeof o,a=typeof r;if(l!=="undefined"){if(a!=="undefined"){if(o){if(a==="function"&&l===a)return function(v){return r(o(v))};if(i=r.constructor,i===o.constructor){if(i===Array)return o.concat(r);if(i===Map){var d=new Map(o);for(var m of r)d.set(m[0],m[1]);return d}if(i===Set){m=new Set(o);for(d of r.values())m.add(d);return m}}}return r}return o}return a==="undefined"?i:r}function Vn(r,i){return typeof r>"u"?i:r}function Ke(){return Object.create(null)}function $t(r){return typeof r=="string"}function Sr(r){return typeof r=="object"}function kr(r,i){if($t(i))r=r[i];else for(let o=0;r&&o<i.length;o++)r=r[i[o]];return r}const pf=/[^\p{L}\p{N}]+/u,gf=/(\d{3})/g,mf=/(\D)(\d{3})/g,yf=/(\d{3})(\D)/g,Ul=/[\u0300-\u036f]/g;function Hn(r={}){if(!this||this.constructor!==Hn)return new Hn(...arguments);if(arguments.length)for(r=0;r<arguments.length;r++)this.assign(arguments[r]);else this.assign(r)}ie=Hn.prototype,ie.assign=function(r){this.normalize=Ge(r.normalize,!0,this.normalize);let i=r.include,o=i||r.exclude||r.split,l;if(o||o===""){if(typeof o=="object"&&o.constructor!==RegExp){let a="";l=!i,i||(a+="\\p{Z}"),o.letter&&(a+="\\p{L}"),o.number&&(a+="\\p{N}",l=!!i),o.symbol&&(a+="\\p{S}"),o.punctuation&&(a+="\\p{P}"),o.control&&(a+="\\p{C}"),(o=o.char)&&(a+=typeof o=="object"?o.join(""):o);try{this.split=new RegExp("["+(i?"^":"")+a+"]+","u")}catch{this.split=/\s+/}}else this.split=o,l=o===!1||"a1a".split(o).length<2;this.numeric=Ge(r.numeric,l)}else{try{this.split=Ge(this.split,pf)}catch{this.split=/\s+/}this.numeric=Ge(r.numeric,Ge(this.numeric,!0))}if(this.prepare=Ge(r.prepare,null,this.prepare),this.finalize=Ge(r.finalize,null,this.finalize),o=r.filter,this.filter=typeof o=="function"?o:Ge(o&&new Set(o),null,this.filter),this.dedupe=Ge(r.dedupe,!0,this.dedupe),this.matcher=Ge((o=r.matcher)&&new Map(o),null,this.matcher),this.mapper=Ge((o=r.mapper)&&new Map(o),null,this.mapper),this.stemmer=Ge((o=r.stemmer)&&new Map(o),null,this.stemmer),this.replacer=Ge(r.replacer,null,this.replacer),this.minlength=Ge(r.minlength,1,this.minlength),this.maxlength=Ge(r.maxlength,1024,this.maxlength),this.rtl=Ge(r.rtl,!1,this.rtl),(this.cache=o=Ge(r.cache,!0,this.cache))&&(this.F=null,this.L=typeof o=="number"?o:2e5,this.B=new Map,this.D=new Map,this.I=this.H=128),this.h="",this.J=null,this.A="",this.K=null,this.matcher)for(const a of this.matcher.keys())this.h+=(this.h?"|":"")+a;if(this.stemmer)for(const a of this.stemmer.keys())this.A+=(this.A?"|":"")+a;return this},ie.addStemmer=function(r,i){return this.stemmer||(this.stemmer=new Map),this.stemmer.set(r,i),this.A+=(this.A?"|":"")+r,this.K=null,this.cache&&kn(this),this},ie.addFilter=function(r){return typeof r=="function"?this.filter=r:(this.filter||(this.filter=new Set),this.filter.add(r)),this.cache&&kn(this),this},ie.addMapper=function(r,i){return typeof r=="object"?this.addReplacer(r,i):r.length>1?this.addMatcher(r,i):(this.mapper||(this.mapper=new Map),this.mapper.set(r,i),this.cache&&kn(this),this)},ie.addMatcher=function(r,i){return typeof r=="object"?this.addReplacer(r,i):r.length<2&&(this.dedupe||this.mapper)?this.addMapper(r,i):(this.matcher||(this.matcher=new Map),this.matcher.set(r,i),this.h+=(this.h?"|":"")+r,this.J=null,this.cache&&kn(this),this)},ie.addReplacer=function(r,i){return typeof r=="string"?this.addMatcher(r,i):(this.replacer||(this.replacer=[]),this.replacer.push(r,i),this.cache&&kn(this),this)},ie.encode=function(r,i){if(this.cache&&r.length<=this.H)if(this.F){if(this.B.has(r))return this.B.get(r)}else this.F=setTimeout(kn,50,this);this.normalize&&(typeof this.normalize=="function"?r=this.normalize(r):r=Ul?r.normalize("NFKD").replace(Ul,"").toLowerCase():r.toLowerCase()),this.prepare&&(r=this.prepare(r)),this.numeric&&r.length>3&&(r=r.replace(mf,"$1 $2").replace(yf,"$1 $2").replace(gf,"$1 "));const o=!(this.dedupe||this.mapper||this.filter||this.matcher||this.stemmer||this.replacer);let l=[],a=Ke(),d,m,v=this.split||this.split===""?r.split(this.split):[r];for(let C=0,E,L;C<v.length;C++)if((E=L=v[C])&&!(E.length<this.minlength||E.length>this.maxlength)){if(i){if(a[E])continue;a[E]=1}else{if(d===E)continue;d=E}if(o)l.push(E);else if(!this.filter||(typeof this.filter=="function"?this.filter(E):!this.filter.has(E))){if(this.cache&&E.length<=this.I)if(this.F){var y=this.D.get(E);if(y||y===""){y&&l.push(y);continue}}else this.F=setTimeout(kn,50,this);if(this.stemmer){this.K||(this.K=new RegExp("(?!^)("+this.A+")$"));let F;for(;F!==E&&E.length>2;)F=E,E=E.replace(this.K,M=>this.stemmer.get(M))}if(E&&(this.mapper||this.dedupe&&E.length>1)){y="";for(let F=0,M="",V,R;F<E.length;F++)V=E.charAt(F),V===M&&this.dedupe||((R=this.mapper&&this.mapper.get(V))||R===""?R===M&&this.dedupe||!(M=R)||(y+=R):y+=M=V);E=y}if(this.matcher&&E.length>1&&(this.J||(this.J=new RegExp("("+this.h+")","g")),E=E.replace(this.J,F=>this.matcher.get(F))),E&&this.replacer)for(y=0;E&&y<this.replacer.length;y+=2)E=E.replace(this.replacer[y],this.replacer[y+1]);if(this.cache&&L.length<=this.I&&(this.D.set(L,E),this.D.size>this.L&&(this.D.clear(),this.I=this.I/1.1|0)),E){if(E!==L)if(i){if(a[E])continue;a[E]=1}else{if(m===E)continue;m=E}l.push(E)}}}return this.finalize&&(l=this.finalize(l)||l),this.cache&&r.length<=this.H&&(this.B.set(r,l),this.B.size>this.L&&(this.B.clear(),this.H=this.H/1.1|0)),l};function kn(r){r.F=null,r.B.clear(),r.D.clear()}function _i(r,i,o){o||(i||typeof r!="object"?typeof i=="object"&&(o=i,i=0):o=r),o&&(r=o.query||r,i=o.limit||i);let l=""+(i||0);o&&(l+=(o.offset||0)+!!o.context+!!o.suggest+(o.resolve!==!1)+(o.resolution||this.resolution)+(o.boost||0)),r=(""+r).toLowerCase(),this.cache||(this.cache=new Cn);let a=this.cache.get(r+l);if(!a){const d=o&&o.cache;d&&(o.cache=!1),a=this.search(r,i,o),d&&(o.cache=d),this.cache.set(r+l,a)}return a}function Cn(r){this.limit=r&&r!==!0?r:1e3,this.cache=new Map,this.h=""}Cn.prototype.set=function(r,i){this.cache.set(this.h=r,i),this.cache.size>this.limit&&this.cache.delete(this.cache.keys().next().value)},Cn.prototype.get=function(r){const i=this.cache.get(r);return i&&this.h!==r&&(this.cache.delete(r),this.cache.set(this.h=r,i)),i},Cn.prototype.remove=function(r){for(const i of this.cache){const o=i[0];i[1].includes(r)&&this.cache.delete(o)}},Cn.prototype.clear=function(){this.cache.clear(),this.h=""};const Bl={normalize:!1,numeric:!1,dedupe:!1},gs={},Ii=new Map([["b","p"],["v","f"],["w","f"],["z","s"],["x","s"],["d","t"],["n","m"],["c","k"],["g","k"],["j","k"],["q","k"],["i","e"],["y","e"],["u","o"]]),Vl=new Map([["ae","a"],["oe","o"],["sh","s"],["kh","k"],["th","t"],["ph","f"],["pf","f"]]),Hl=[/([^aeo])h(.)/g,"$1$2",/([aeo])h([^aeo]|$)/g,"$1$2",/(.)\1+/g,"$1"],bl={a:"",e:"",i:"",o:"",u:"",y:"",b:1,f:1,p:1,v:1,c:2,g:2,j:2,k:2,q:2,s:2,x:2,z:2,ß:2,d:3,t:3,l:4,m:5,n:5,r:6};var zi={Exact:Bl,Default:gs,Normalize:gs,LatinBalance:{mapper:Ii},LatinAdvanced:{mapper:Ii,matcher:Vl,replacer:Hl},LatinExtra:{mapper:Ii,replacer:Hl.concat([/(?!^)[aeo]/g,""]),matcher:Vl},LatinSoundex:{dedupe:!1,include:{letter:!0},finalize:function(r){for(let o=0;o<r.length;o++){var i=r[o];let l=i.charAt(0),a=bl[l];for(let d=1,m;d<i.length&&(m=i.charAt(d),m==="h"||m==="w"||!(m=bl[m])||m===a||(l+=m,a=m,l.length!==4));d++);r[o]=l}}},CJK:{split:""},LatinExact:Bl,LatinDefault:gs,LatinSimple:gs};function Kl(r,i,o,l){let a=[];for(let d=0,m;d<r.index.length;d++)if(m=r.index[d],i>=m.length)i-=m.length;else{i=m[l?"splice":"slice"](i,o);const v=i.length;if(v&&(a=a.length?a.concat(i):i,o-=v,l&&(r.length-=v),!o))break;i=0}return a}function bn(r){if(!this||this.constructor!==bn)return new bn(r);this.index=r?[r]:[],this.length=r?r.length:0;const i=this;return new Proxy([],{get(o,l){if(l==="length")return i.length;if(l==="push")return function(a){i.index[i.index.length-1].push(a),i.length++};if(l==="pop")return function(){if(i.length)return i.length--,i.index[i.index.length-1].pop()};if(l==="indexOf")return function(a){let d=0;for(let m=0,v,y;m<i.index.length;m++){if(v=i.index[m],y=v.indexOf(a),y>=0)return d+y;d+=v.length}return-1};if(l==="includes")return function(a){for(let d=0;d<i.index.length;d++)if(i.index[d].includes(a))return!0;return!1};if(l==="slice")return function(a,d){return Kl(i,a||0,d||i.length,!1)};if(l==="splice")return function(a,d){return Kl(i,a||0,d||i.length,!0)};if(l==="constructor")return Array;if(typeof l!="symbol")return(o=i.index[l/2**31|0])&&o[l]},set(o,l,a){return o=l/2**31|0,(i.index[o]||(i.index[o]=[]))[l]=a,i.length++,!0}})}bn.prototype.clear=function(){this.index.length=0},bn.prototype.push=function(){};function Pt(r=8){if(!this||this.constructor!==Pt)return new Pt(r);this.index=Ke(),this.h=[],this.size=0,r>32?(this.B=Ql,this.A=BigInt(r)):(this.B=Wl,this.A=r)}Pt.prototype.get=function(r){const i=this.index[this.B(r)];return i&&i.get(r)},Pt.prototype.set=function(r,i){var o=this.B(r);let l=this.index[o];l?(o=l.size,l.set(r,i),(o-=l.size)&&this.size++):(this.index[o]=l=new Map([[r,i]]),this.h.push(l),this.size++)};function Et(r=8){if(!this||this.constructor!==Et)return new Et(r);this.index=Ke(),this.h=[],this.size=0,r>32?(this.B=Ql,this.A=BigInt(r)):(this.B=Wl,this.A=r)}Et.prototype.add=function(r){var i=this.B(r);let o=this.index[i];o?(i=o.size,o.add(r),(i-=o.size)&&this.size++):(this.index[i]=o=new Set([r]),this.h.push(o),this.size++)},ie=Pt.prototype,ie.has=Et.prototype.has=function(r){const i=this.index[this.B(r)];return i&&i.has(r)},ie.delete=Et.prototype.delete=function(r){const i=this.index[this.B(r)];i&&i.delete(r)&&this.size--},ie.clear=Et.prototype.clear=function(){this.index=Ke(),this.h=[],this.size=0},ie.values=Et.prototype.values=function*(){for(let r=0;r<this.h.length;r++)for(let i of this.h[r].values())yield i},ie.keys=Et.prototype.keys=function*(){for(let r=0;r<this.h.length;r++)for(let i of this.h[r].keys())yield i},ie.entries=Et.prototype.entries=function*(){for(let r=0;r<this.h.length;r++)for(let i of this.h[r].entries())yield i};function Wl(r){let i=2**this.A-1;if(typeof r=="number")return r&i;let o=0,l=this.A+1;for(let a=0;a<r.length;a++)o=(o*l^r.charCodeAt(a))&i;return this.A===32?o+2**31:o}function Ql(r){let i=BigInt(2)**this.A-BigInt(1);var o=typeof r;if(o==="bigint")return r&i;if(o==="number")return BigInt(r)&i;o=BigInt(0);let l=this.A+BigInt(1);for(let a=0;a<r.length;a++)o=(o*l^BigInt(r.charCodeAt(a)))&i;return o}let Kn,Cr;async function vf(r){r=r.data;var i=r.task;const o=r.id;let l=r.args;if(i==="init")Cr=r.options||{},(i=r.factory)?(Function("return "+i)()(self),Kn=new self.FlexSearch.Index(Cr),delete self.FlexSearch):Kn=new Ot(Cr),postMessage({id:o});else{let a;i==="export"&&(l[1]?(l[0]=Cr.export,l[2]=0,l[3]=1):l=null),i==="import"?l[0]&&(r=await Cr.import.call(Kn,l[0]),Kn.import(l[0],r)):((a=l&&Kn[i].apply(Kn,l))&&a.then&&(a=await a),a&&a.await&&(a=await a.await),i==="search"&&a.result&&(a=a.result)),postMessage(i==="search"?{id:o,msg:a}:{id:o})}}function Mi(r){Wn.call(r,"add"),Wn.call(r,"append"),Wn.call(r,"search"),Wn.call(r,"update"),Wn.call(r,"remove"),Wn.call(r,"searchCache")}let Fi,Yl,ms;function wf(){Fi=ms=0}function Wn(r){this[r+"Async"]=function(){const i=arguments;var o=i[i.length-1];let l;if(typeof o=="function"&&(l=o,delete i[i.length-1]),Fi?ms||(ms=Date.now()-Yl>=this.priority*this.priority*3):(Fi=setTimeout(wf,0),Yl=Date.now()),ms){const d=this;return new Promise(m=>{setTimeout(function(){m(d[r+"Async"].apply(d,i))},0)})}const a=this[r].apply(this,i);return o=a.then?a:new Promise(d=>d(a)),l&&o.then(l),o}}let Zt=0;function Qn(r={},i){function o(v){function y(C){C=C.data||C;const E=C.id,L=E&&d.h[E];L&&(L(C.msg),delete d.h[E])}if(this.worker=v,this.h=Ke(),this.worker)return a?this.worker.on("message",y):this.worker.onmessage=y,r.config?new Promise(function(C){Zt>1e9&&(Zt=0),d.h[++Zt]=function(){C(d)},d.worker.postMessage({id:Zt,task:"init",factory:l,options:r})}):(this.priority=r.priority||4,this.encoder=i||null,this.worker.postMessage({task:"init",factory:l,options:r}),this)}if(!this||this.constructor!==Qn)return new Qn(r);let l=typeof self<"u"?self._factory:typeof window<"u"?window._factory:null;l&&(l=l.toString());const a=typeof window>"u",d=this,m=xf(l,a,r.worker);return m.then?m.then(function(v){return o.call(d,v)}):o.call(this,m)}Gt("add"),Gt("append"),Gt("search"),Gt("update"),Gt("remove"),Gt("clear"),Gt("export"),Gt("import"),Qn.prototype.searchCache=_i,Mi(Qn.prototype);function Gt(r){Qn.prototype[r]=function(){const i=this,o=[].slice.call(arguments);var l=o[o.length-1];let a;return typeof l=="function"&&(a=l,o.pop()),l=new Promise(function(d){r==="export"&&typeof o[0]=="function"&&(o[0]=null),Zt>1e9&&(Zt=0),i.h[++Zt]=d,i.worker.postMessage({task:r,id:Zt,args:o})}),a?(l.then(a),this):l}}function xf(r,i,o){return i?typeof module<"u"?new(require("worker_threads")).Worker(__dirname+"/worker/node.js"):Promise.resolve().then(()=>rd).then(function(l){return new l.Worker("undefined/node/node.mjs")}):r?new window.Worker(URL.createObjectURL(new Blob(["onmessage="+vf.toString()],{type:"text/javascript"}))):new window.Worker(typeof o=="string"?o:(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Un&&Un.tagName.toUpperCase()==="SCRIPT"&&Un.src||new URL("sodo-search.min.js",document.baseURI).href).replace("/worker.js","/worker/worker.js").replace("flexsearch.bundle.module.min.js","module/worker/worker.js").replace("flexsearch.bundle.module.min.mjs","module/worker/worker.js"),{type:"module"})}$n.prototype.add=function(r,i,o){if(Sr(r)&&(i=r,r=kr(i,this.key)),i&&(r||r===0)){if(!o&&this.reg.has(r))return this.update(r,i);for(let v=0,y;v<this.field.length;v++){y=this.B[v];var l=this.index.get(this.field[v]);if(typeof y=="function"){var a=y(i);a&&l.add(r,a,o,!0)}else a=y.G,(!a||a(i))&&(y.constructor===String?y=[""+y]:$t(y)&&(y=[y]),Ui(i,y,this.D,0,l,r,y[0],o))}if(this.tag)for(l=0;l<this.A.length;l++){var d=this.A[l];a=this.tag.get(this.F[l]);let v=Ke();if(typeof d=="function"){if(d=d(i),!d)continue}else{var m=d.G;if(m&&!m(i))continue;d.constructor===String&&(d=""+d),d=kr(i,d)}if(a&&d){$t(d)&&(d=[d]);for(let y=0,C,E;y<d.length;y++)if(C=d[y],!v[C]&&(v[C]=1,(m=a.get(C))?E=m:a.set(C,E=[]),!o||!E.includes(r))){if(E.length===2**31-1){if(m=new bn(E),this.fastupdate)for(let L of this.reg.values())L.includes(E)&&(L[L.indexOf(E)]=m);a.set(C,E=m)}E.push(r),this.fastupdate&&((m=this.reg.get(r))?m.push(E):this.reg.set(r,[E]))}}}if(this.store&&(!o||!this.store.has(r))){let v;if(this.h){v=Ke();for(let y=0,C;y<this.h.length;y++){if(C=this.h[y],(o=C.G)&&!o(i))continue;let E;if(typeof C=="function"){if(E=C(i),!E)continue;C=[C.O]}else if($t(C)||C.constructor===String){v[C]=i[C];continue}Di(i,v,C,0,C[0],E)}}this.store.set(r,v||i)}this.worker&&(this.fastupdate||this.reg.add(r))}return this};function Di(r,i,o,l,a,d){if(r=r[a],l===o.length-1)i[a]=d||r;else if(r)if(r.constructor===Array)for(i=i[a]=Array(r.length),a=0;a<r.length;a++)Di(r,i,o,l,a);else i=i[a]||(i[a]=Ke()),a=o[++l],Di(r,i,o,l,a)}function Ui(r,i,o,l,a,d,m,v){if(r=r[m])if(l===i.length-1){if(r.constructor===Array){if(o[l]){for(i=0;i<r.length;i++)a.add(d,r[i],!0,!0);return}r=r.join(" ")}a.add(d,r,v,!0)}else if(r.constructor===Array)for(m=0;m<r.length;m++)Ui(r,i,o,l,a,d,m,v);else m=i[++l],Ui(r,i,o,l,a,d,m,v)}function Bi(r,i,o,l){if(!r.length)return r;if(r.length===1)return r=r[0],r=o||r.length>i?r.slice(o,o+i):r,l?Yn.call(this,r):r;let a=[];for(let d=0,m,v;d<r.length;d++)if((m=r[d])&&(v=m.length)){if(o){if(o>=v){o-=v;continue}m=m.slice(o,o+i),v=m.length,o=0}if(v>i&&(m=m.slice(0,i),v=i),!a.length&&v>=i)return l?Yn.call(this,m):m;if(a.push(m),i-=v,!i)break}return a=a.length>1?[].concat.apply([],a):a[0],l?Yn.call(this,a):a}function ys(r,i,o,l){var a=l[0];if(a[0]&&a[0].query)return r[i].apply(r,a);if(!(i!=="and"&&i!=="not"||r.result.length||r.await||a.suggest))return l.length>1&&(a=l[l.length-1]),(l=a.resolve)?r.await||r.result:r;let d=[],m=0,v=0,y,C,E,L,F;for(i=0;i<l.length;i++)if(a=l[i]){var M=void 0;if(a.constructor===Fe)M=a.await||a.result;else if(a.then||a.constructor===Array)M=a;else{m=a.limit||0,v=a.offset||0,E=a.suggest,C=a.resolve,y=((L=a.highlight||r.highlight)||a.enrich)&&C,M=a.queue;let V=a.async||M,R=a.index,O=a.query;if(R?r.index||(r.index=R):R=r.index,O||a.tag){const J=a.field||a.pluck;if(J&&(!O||r.query&&!L||(r.query=O,r.field=J,r.highlight=L),R=R.index.get(J)),M&&(F||r.await)){F=1;let X;const fe=r.C.length,de=new Promise(function(he){X=he});(function(he,ae){de.h=function(){ae.index=null,ae.resolve=!1;let ue=V?he.searchAsync(ae):he.search(ae);return ue.then?ue.then(function(q){return r.C[fe]=q=q.result||q,X(q),q}):(ue=ue.result||ue,X(ue),ue)}})(R,Object.assign({},a)),r.C.push(de),d[i]=de;continue}else a.resolve=!1,a.index=null,M=V?R.searchAsync(a):R.search(a),a.resolve=C,a.index=R}else if(a.and)M=vs(a,"and",R);else if(a.or)M=vs(a,"or",R);else if(a.not)M=vs(a,"not",R);else if(a.xor)M=vs(a,"xor",R);else continue}M.await?(F=1,M=M.await):M.then?(F=1,M=M.then(function(V){return V.result||V})):M=M.result||M,d[i]=M}if(F&&!r.await&&(r.await=new Promise(function(V){r.return=V})),F){const V=Promise.all(d).then(function(R){for(let O=0;O<r.C.length;O++)if(r.C[O]===V){r.C[O]=function(){return o.call(r,R,m,v,y,C,E,L)};break}Vi(r)});r.C.push(V)}else if(r.await)r.C.push(function(){return o.call(r,d,m,v,y,C,E,L)});else return o.call(r,d,m,v,y,C,E,L);return C?r.await||r.result:r}function vs(r,i,o){r=r[i];const l=r[0]||r;return l.index||(l.index=o),o=new Fe(l),r.length>1&&(o=o[i].apply(o,r.slice(1))),o}Fe.prototype.or=function(){return ys(this,"or",Sf,arguments)};function Sf(r,i,o,l,a,d,m){return r.length&&(this.result.length&&r.push(this.result),r.length<2?this.result=r[0]:(this.result=Jl(r,i,o,!1,this.h),o=0)),a&&(this.await=null),a?this.resolve(i,o,l,m):this}Fe.prototype.and=function(){return ys(this,"and",kf,arguments)};function kf(r,i,o,l,a,d,m){if(!d&&!this.result.length)return a?this.result:this;let v;if(r.length)if(this.result.length&&r.unshift(this.result),r.length<2)this.result=r[0];else{let y=0;for(let C=0,E,L;C<r.length;C++)if((E=r[C])&&(L=E.length))y<L&&(y=L);else if(!d){y=0;break}y?(this.result=xs(r,y,i,o,d,this.h,a),v=!0):this.result=[]}else d||(this.result=r);return a&&(this.await=null),a?this.resolve(i,o,l,m,v):this}Fe.prototype.xor=function(){return ys(this,"xor",Cf,arguments)};function Cf(r,i,o,l,a,d,m){if(r.length)if(this.result.length&&r.unshift(this.result),r.length<2)this.result=r[0];else{e:{d=o;var v=this.h;const y=[],C=Ke();let E=0;for(let L=0,F;L<r.length;L++)if(F=r[L]){E<F.length&&(E=F.length);for(let M=0,V;M<F.length;M++)if(V=F[M])for(let R=0,O;R<V.length;R++)O=V[R],C[O]=C[O]?2:1}for(let L=0,F,M=0;L<E;L++)for(let V=0,R;V<r.length;V++)if((R=r[V])&&(F=R[L])){for(let O=0,J;O<F.length;O++)if(J=F[O],C[J]===1)if(d)d--;else if(a){if(y.push(J),y.length===i){r=y;break e}}else{const X=L+(V?v:0);if(y[X]||(y[X]=[]),y[X].push(J),++M===i){r=y;break e}}}r=y}this.result=r,v=!0}else d||(this.result=r);return a&&(this.await=null),a?this.resolve(i,o,l,m,v):this}Fe.prototype.not=function(){return ys(this,"not",$f,arguments)};function $f(r,i,o,l,a,d,m){if(!d&&!this.result.length)return a?this.result:this;if(r.length&&this.result.length){e:{d=o;var v=[];r=new Set(r.flat().flat());for(let y=0,C,E=0;y<this.result.length;y++)if(C=this.result[y]){for(let L=0,F;L<C.length;L++)if(F=C[L],!r.has(F)){if(d)d--;else if(a){if(v.push(F),v.length===i){r=v;break e}}else if(v[y]||(v[y]=[]),v[y].push(F),++E===i){r=v;break e}}}r=v}this.result=r,v=!0}return a&&(this.await=null),a?this.resolve(i,o,l,m,v):this}function ws(r,i,o,l,a){let d,m,v;typeof a=="string"?(d=a,a=""):d=a.template,m=d.indexOf("$1"),v=d.substring(m+2),m=d.substring(0,m);let y=a&&a.boundary,C=!a||a.clip!==!1,E=a&&a.merge&&v&&m&&new RegExp(v+" "+m,"g");a=a&&a.ellipsis;var L=0;if(typeof a=="object"){var F=a.template;L=F.length-2,a=a.pattern}typeof a!="string"&&(a=a===!1?"":"..."),L&&(a=F.replace("$1",a)),F=a.length-L;let M,V;typeof y=="object"&&(M=y.before,M===0&&(M=-1),V=y.after,V===0&&(V=-1),y=y.total||9e5),L=new Map;for(let A=0,Q,me,je;A<i.length;A++){let B;if(l)B=i,je=l;else{var R=i[A];if(je=R.field,!je)continue;B=R.result}me=o.get(je),Q=me.encoder,R=L.get(Q),typeof R!="string"&&(R=Q.encode(r),L.set(Q,R));for(let ee=0;ee<B.length;ee++){var O=B[ee].doc;if(!O||(O=kr(O,je),!O))continue;var J=O.trim().split(/\s+/);if(!J.length)continue;O="";var X=[];let Z=[];for(var fe=-1,de=-1,he=0,ae=0;ae<J.length;ae++){var ue=J[ae],q=Q.encode(ue);q=q.length>1?q.join(" "):q[0];let K;if(q&&ue){for(var oe=ue.length,Pe=(Q.split?ue.replace(Q.split,""):ue).length-q.length,xe="",Ee=0,ke=0;ke<R.length;ke++){var Re=R[ke];if(Re){var ye=Re.length;ye+=Pe<0?0:Pe,Ee&&ye<=Ee||(Re=q.indexOf(Re),Re>-1&&(xe=(Re?ue.substring(0,Re):"")+m+ue.substring(Re,Re+ye)+v+(Re+ye<oe?ue.substring(Re+ye):""),Ee=ye,K=!0))}}xe&&(y&&(fe<0&&(fe=O.length+(O?1:0)),de=O.length+(O?1:0)+xe.length,he+=oe,Z.push(X.length),X.push({match:xe})),O+=(O?" ":"")+xe)}if(!K)ue=J[ae],O+=(O?" ":"")+ue,y&&X.push({text:ue});else if(y&&he>=y)break}if(he=Z.length*(d.length-2),M||V||y&&O.length-he>y)if(he=y+he-F*2,ae=de-fe,M>0&&(ae+=M),V>0&&(ae+=V),ae<=he)J=M?fe-(M>0?M:0):fe-((he-ae)/2|0),X=V?de+(V>0?V:0):J+he,C||(J>0&&O.charAt(J)!==" "&&O.charAt(J-1)!==" "&&(J=O.indexOf(" ",J),J<0&&(J=0)),X<O.length&&O.charAt(X-1)!==" "&&O.charAt(X)!==" "&&(X=O.lastIndexOf(" ",X),X<de?X=de:++X)),O=(J?a:"")+O.substring(J,X)+(X<O.length?a:"");else{for(de=[],fe={},he={},ae={},ue={},q={},xe=Pe=oe=0,ke=Ee=1;;){var De=void 0;for(let K=0,ne;K<Z.length;K++){if(ne=Z[K],xe)if(Pe!==xe){if(ae[K+1])continue;if(ne+=xe,fe[ne]){oe-=F,he[K+1]=1,ae[K+1]=1;continue}if(ne>=X.length-1){if(ne>=X.length){ae[K+1]=1,ne>=J.length&&(he[K+1]=1);continue}oe-=F}if(O=X[ne].text,ye=V&&q[K])if(ye>0){if(O.length>ye)if(ae[K+1]=1,C)O=O.substring(0,ye);else continue;(ye-=O.length)||(ye=-1),q[K]=ye}else{ae[K+1]=1;continue}if(oe+O.length+1<=y)O=" "+O,de[K]+=O;else if(C)De=y-oe-1,De>0&&(O=" "+O.substring(0,De),de[K]+=O),ae[K+1]=1;else{ae[K+1]=1;continue}}else{if(ae[K])continue;if(ne-=Pe,fe[ne]){oe-=F,ae[K]=1,he[K]=1;continue}if(ne<=0){if(ne<0){ae[K]=1,he[K]=1;continue}oe-=F}if(O=X[ne].text,ye=M&&ue[K])if(ye>0){if(O.length>ye)if(ae[K]=1,C)O=O.substring(O.length-ye);else continue;(ye-=O.length)||(ye=-1),ue[K]=ye}else{ae[K]=1;continue}if(oe+O.length+1<=y)O+=" ",de[K]=O+de[K];else if(C)De=O.length+1-(y-oe),De>=0&&De<O.length&&(O=O.substring(De)+" ",de[K]=O+de[K]),ae[K]=1;else{ae[K]=1;continue}}else{O=X[ne].match,M&&(ue[K]=M),V&&(q[K]=V),K&&oe++;let _e;if(ne?!K&&F&&(oe+=F):(he[K]=1,ae[K]=1),ne>=J.length-1||ne<X.length-1&&X[ne+1].match?_e=1:F&&(oe+=F),oe-=d.length-2,!K||oe+O.length<=y)de[K]=O;else{De=Ee=ke=he[K]=0;break}_e&&(he[K+1]=1,ae[K+1]=1)}oe+=O.length,De=fe[ne]=1}if(De)Pe===xe?xe++:Pe++;else{if(Pe===xe?Ee=0:ke=0,!Ee&&!ke)break;Ee?(Pe++,xe=Pe):xe++}}O="";for(let K=0,ne;K<de.length;K++)ne=(he[K]?K?" ":"":(K&&!a?" ":"")+a)+de[K],O+=ne;a&&!he[de.length]&&(O+=a)}E&&(O=O.replace(E," ")),B[ee].highlight=O}if(l)break}return i}function Fe(r,i){if(!this||this.constructor!==Fe)return new Fe(r,i);let o=0,l,a,d,m,v,y;if(r&&r.index){const C=r;if(i=C.index,o=C.boost||0,a=C.query){d=C.field||C.pluck,m=C.highlight;const E=C.resolve;r=C.async||C.queue,C.resolve=!1,C.index=null,r=r?i.searchAsync(C):i.search(C),C.resolve=E,C.index=i,r=r.result||r}else r=[]}if(r&&r.then){const C=this;r=r.then(function(E){C.C[0]=C.result=E.result||E,Vi(C)}),l=[r],r=[],v=new Promise(function(E){y=E})}this.index=i||null,this.result=r||[],this.h=o,this.C=l||[],this.await=v||null,this.return=y||null,this.highlight=m||null,this.query=a||"",this.field=d||""}ie=Fe.prototype,ie.limit=function(r){if(this.await){const i=this;this.C.push(function(){return i.limit(r).result})}else if(this.result.length){const i=[];for(let o=0,l;o<this.result.length;o++)if(l=this.result[o])if(l.length<=r){if(i[o]=l,r-=l.length,!r)break}else{i[o]=l.slice(0,r);break}this.result=i}return this},ie.offset=function(r){if(this.await){const i=this;this.C.push(function(){return i.offset(r).result})}else if(this.result.length){const i=[];for(let o=0,l;o<this.result.length;o++)(l=this.result[o])&&(l.length<=r?r-=l.length:(i[o]=l.slice(r),r=0));this.result=i}return this},ie.boost=function(r){if(this.await){const i=this;this.C.push(function(){return i.boost(r).result})}else this.h+=r;return this};function Vi(r,i){let o=r.result;var l=r.await;r.await=null;for(let a=0,d;a<r.C.length;a++)if(d=r.C[a]){if(typeof d=="function")o=d(),r.C[a]=o=o.result||o,a--;else if(d.h)o=d.h(),r.C[a]=o=o.result||o,a--;else if(d.then)return r.await=l}return l=r.return,r.C=[],r.return=null,i||l(o),o}ie.resolve=function(r,i,o,l,a){let d=this.await?Vi(this,!0):this.result;if(d.then){const m=this;return d.then(function(){return m.resolve(r,i,o,l,a)})}return d.length&&(typeof r=="object"?(l=r.highlight||this.highlight,o=!!l||r.enrich,i=r.offset,r=r.limit):(l=l||this.highlight,o=!!l||o),d=a?o?Yn.call(this.index,d):d:Bi.call(this.index,d,r||100,i,o)),this.finalize(d,l)},ie.finalize=function(r,i){if(r.then){const l=this;return r.then(function(a){return l.finalize(a,i)})}i&&r.length&&this.query&&(r=ws(this.query,r,this.index.index,this.field,i));const o=this.return;return this.highlight=this.index=this.result=this.C=this.await=this.return=null,this.query=this.field="",o&&o(r),r};function xs(r,i,o,l,a,d,m){const v=r.length;let y=[],C,E;C=Ke();for(let L=0,F,M,V,R;L<i;L++)for(let O=0;O<v;O++)if(V=r[O],L<V.length&&(F=V[L]))for(let J=0;J<F.length;J++){if(M=F[J],(E=C[M])?C[M]++:(E=0,C[M]=1),R=y[E]||(y[E]=[]),!m){let X=L+(O||!a?0:d||0);R=R[X]||(R[X]=[])}if(R.push(M),m&&o&&E===v-1&&R.length-l===o)return l?R.slice(l):R}if(r=y.length)if(a)y=y.length>1?Jl(y,o,l,m,d):(y=y[0])&&o&&y.length>o||l?y.slice(l,o+l):y;else{if(r<v)return[];if(y=y[r-1],o||l)if(m)(y.length>o||l)&&(y=y.slice(l,o+l));else{a=[];for(let L=0,F;L<y.length;L++)if(F=y[L]){if(l&&F.length>l)l-=F.length;else if((o&&F.length>o||l)&&(F=F.slice(l,o+l),o-=F.length,l&&(l-=F.length)),a.push(F),!o)break}y=a}}return y}function Jl(r,i,o,l,a){const d=[],m=Ke();let v;var y=r.length;let C;if(l){for(a=y-1;a>=0;a--)if(C=(l=r[a])&&l.length){for(y=0;y<C;y++)if(v=l[y],!m[v]){if(m[v]=1,o)o--;else if(d.push(v),d.length===i)return d}}}else for(let E=y-1,L,F=0;E>=0;E--){L=r[E];for(let M=0;M<L.length;M++)if(C=(l=L[M])&&l.length){for(let V=0;V<C;V++)if(v=l[V],!m[v])if(m[v]=1,o)o--;else{let R=(M+(E<y-1&&a||0))/(E+1)|0;if((d[R]||(d[R]=[])).push(v),++F===i)return d}}}return d}function Pf(r,i,o,l,a){const d=Ke(),m=[];for(let v=0,y;v<i.length;v++){y=i[v];for(let C=0;C<y.length;C++)d[y[C]]=1}if(a){for(let v=0,y;v<r.length;v++)if(y=r[v],d[y]){if(l)l--;else if(m.push(y),d[y]=0,o&&--o===0)break}}else for(let v=0,y,C;v<r.result.length;v++)for(y=r.result[v],i=0;i<y.length;i++)C=y[i],d[C]&&((m[v]||(m[v]=[])).push(C),d[C]=0);return m}$n.prototype.search=function(r,i,o,l){o||(!i&&Sr(r)?(o=r,r=""):Sr(i)&&(o=i,i=0));let a=[];var d=[];let m,v,y,C,E,L,F=0,M=!0,V;if(o){o.constructor===Array&&(o={index:o}),r=o.query||r,m=o.pluck,v=o.merge,C=o.boost,L=m||o.field||(L=o.index)&&(L.index?null:L);var R=this.tag&&o.tag;y=o.suggest,M=o.resolve!==!1,E=o.cache,V=M&&this.store&&o.highlight;var O=!!V||M&&this.store&&o.enrich;i=o.limit||i;var J=o.offset||0;if(i||(i=M?100:0),R&&(!this.db||!l)){R.constructor!==Array&&(R=[R]);var X=[];for(let ue=0,q;ue<R.length;ue++)if(q=R[ue],q.field&&q.tag){var fe=q.tag;if(fe.constructor===Array)for(var de=0;de<fe.length;de++)X.push(q.field,fe[de]);else X.push(q.field,fe)}else{fe=Object.keys(q);for(let oe=0,Pe,xe;oe<fe.length;oe++)if(Pe=fe[oe],xe=q[Pe],xe.constructor===Array)for(de=0;de<xe.length;de++)X.push(Pe,xe[de]);else X.push(Pe,xe)}if(R=X,!r){if(d=[],X.length)for(R=0;R<X.length;R+=2){if(this.db){if(l=this.index.get(X[R]),!l)continue;d.push(l=l.db.tag(X[R+1],i,J,O))}else l=Ef.call(this,X[R],X[R+1],i,J,O);a.push(M?{field:X[R],tag:X[R+1],result:l}:[l])}if(d.length){const ue=this;return Promise.all(d).then(function(q){for(let oe=0;oe<q.length;oe++)M?a[oe].result=q[oe]:a[oe]=q[oe];return M?a:new Fe(a.length>1?xs(a,1,0,0,y,C):a[0],ue)})}return M?a:new Fe(a.length>1?xs(a,1,0,0,y,C):a[0],this)}}M||m||!(L=L||this.field)||($t(L)?m=L:(L.constructor===Array&&L.length===1&&(L=L[0]),m=L.field||L.index)),L&&L.constructor!==Array&&(L=[L])}L||(L=this.field);let he;X=(this.worker||this.db)&&!l&&[];for(let ue=0,q,oe,Pe;ue<L.length;ue++){if(oe=L[ue],this.db&&this.tag&&!this.B[ue])continue;let xe;if($t(oe)||(xe=oe,oe=xe.field,r=xe.query||r,i=Vn(xe.limit,i),J=Vn(xe.offset,J),y=Vn(xe.suggest,y),V=M&&this.store&&Vn(xe.highlight,V),O=!!V||M&&this.store&&Vn(xe.enrich,O),E=Vn(xe.cache,E)),l)q=l[ue];else{fe=xe||o||{},de=fe.enrich;var ae=this.index.get(oe);if(R&&(this.db&&(fe.tag=R,fe.field=L,he=ae.db.support_tag_search),!he&&de&&(fe.enrich=!1),he||(fe.limit=0,fe.offset=0)),q=E?ae.searchCache(r,R&&!he?0:i,fe):ae.search(r,R&&!he?0:i,fe),R&&!he&&(fe.limit=i,fe.offset=J),de&&(fe.enrich=de),X){X[ue]=q;continue}}if(Pe=(q=q.result||q)&&q.length,R&&Pe){if(fe=[],de=0,this.db&&l){if(!he)for(ae=L.length;ae<l.length;ae++){let Ee=l[ae];if(Ee&&Ee.length)de++,fe.push(Ee);else if(!y)return M?a:new Fe(a,this)}}else for(let Ee=0,ke,Re;Ee<R.length;Ee+=2){if(ke=this.tag.get(R[Ee]),!ke){if(y)continue;return M?a:new Fe(a,this)}if(Re=(ke=ke&&ke.get(R[Ee+1]))&&ke.length)de++,fe.push(ke);else if(!y)return M?a:new Fe(a,this)}if(de){if(q=Pf(q,fe,i,J,M),Pe=q.length,!Pe&&!y)return M?q:new Fe(q,this);de--}}if(Pe)d[F]=oe,a.push(q),F++;else if(L.length===1)return M?a:new Fe(a,this)}if(X){if(this.db&&R&&R.length&&!he)for(O=0;O<R.length;O+=2){if(d=this.index.get(R[O]),!d){if(y)continue;return M?a:new Fe(a,this)}X.push(d.db.tag(R[O+1],i,J,!1))}const ue=this;return Promise.all(X).then(function(q){return o&&(o.resolve=M),q.length&&(q=ue.search(r,i,o,q)),q})}if(!F)return M?a:new Fe(a,this);if(m&&(!O||!this.store))return a=a[0],M?a:new Fe(a,this);for(X=[],J=0;J<d.length;J++){if(R=a[J],O&&R.length&&typeof R[0].doc>"u"&&(this.db?X.push(R=this.index.get(this.field[0]).db.enrich(R)):R=Yn.call(this,R)),m)return M?V?ws(r,R,this.index,m,V):R:new Fe(R,this);a[J]={field:d[J],result:R}}if(O&&this.db&&X.length){const ue=this;return Promise.all(X).then(function(q){for(let oe=0;oe<q.length;oe++)a[oe].result=q[oe];return V&&(a=ws(r,a,ue.index,m,V)),v?Xl(a):a})}return V&&(a=ws(r,a,this.index,m,V)),v?Xl(a):a};function Xl(r){const i=[],o=Ke(),l=Ke();for(let a=0,d,m,v,y,C,E,L;a<r.length;a++){d=r[a],m=d.field,v=d.result;for(let F=0;F<v.length;F++)C=v[F],typeof C!="object"?C={id:y=C}:y=C.id,(E=o[y])?E.push(m):(C.field=o[y]=[m],i.push(C)),(L=C.highlight)&&(E=l[y],E||(l[y]=E={},C.highlight=E),E[m]=L)}return i}function Ef(r,i,o,l,a){return r=this.tag.get(r),r?(r=r.get(i),r?(i=r.length-l,i>0&&((o&&i>o||l)&&(r=r.slice(l,l+o)),a&&(r=Yn.call(this,r))),r):[]):[]}function Yn(r){if(!this||!this.store)return r;if(this.db)return this.index.get(this.field[0]).db.enrich(r);const i=Array(r.length);for(let o=0,l;o<r.length;o++)l=r[o],i[o]={id:l,doc:this.store.get(l)};return i}function $n(r){if(!this||this.constructor!==$n)return new $n(r);const i=r.document||r.doc||r;let o,l;if(this.B=[],this.field=[],this.D=[],this.key=(o=i.key||i.id)&&Ss(o,this.D)||"id",(l=r.keystore||0)&&(this.keystore=l),this.fastupdate=!!r.fastupdate,this.reg=!this.fastupdate||r.worker||r.db?l?new Et(l):new Set:l?new Pt(l):new Map,this.h=(o=i.store||null)&&o&&o!==!0&&[],this.store=o?l?new Pt(l):new Map:null,this.cache=(o=r.cache||null)&&new Cn(o),r.cache=!1,this.worker=r.worker||!1,this.priority=r.priority||4,this.index=Tf.call(this,r,i),this.tag=null,(o=i.tag)&&(typeof o=="string"&&(o=[o]),o.length)){this.tag=new Map,this.A=[],this.F=[];for(let a=0,d,m;a<o.length;a++){if(d=o[a],m=d.field||d,!m)throw Error("The tag field from the document descriptor is undefined.");d.custom?this.A[a]=d.custom:(this.A[a]=Ss(m,this.D),d.filter&&(typeof this.A[a]=="string"&&(this.A[a]=new String(this.A[a])),this.A[a].G=d.filter)),this.F[a]=m,this.tag.set(m,new Map)}}if(this.worker){this.fastupdate=!1,r=[];for(const a of this.index.values())a.then&&r.push(a);if(r.length){const a=this;return Promise.all(r).then(function(d){let m=0;for(const v of a.index.entries()){const y=v[0];let C=v[1];C.then&&(C=d[m],a.index.set(y,C),m++)}return a})}}else r.db&&(this.fastupdate=!1,this.mount(r.db))}ie=$n.prototype,ie.mount=function(r){let i=this.field;if(this.tag)for(let d=0,m;d<this.F.length;d++){m=this.F[d];var o=void 0;this.index.set(m,o=new Ot({},this.reg)),i===this.field&&(i=i.slice(0)),i.push(m),o.tag=this.tag.get(m)}o=[];const l={db:r.db,type:r.type,fastupdate:r.fastupdate};for(let d=0,m,v;d<i.length;d++){l.field=v=i[d],m=this.index.get(v);const y=new r.constructor(r.id,l);y.id=r.id,o[d]=y.mount(m),m.document=!0,d?m.bypass=!0:m.store=this.store}const a=this;return this.db=Promise.all(o).then(function(){a.db=!0})},ie.commit=async function(){const r=[];for(const i of this.index.values())r.push(i.commit());await Promise.all(r),this.reg.clear()},ie.destroy=function(){const r=[];for(const i of this.index.values())r.push(i.destroy());return Promise.all(r)};function Tf(r,i){const o=new Map;let l=i.index||i.field||i;$t(l)&&(l=[l]);for(let d=0,m,v;d<l.length;d++){if(m=l[d],$t(m)||(v=m,m=m.field),v=Sr(v)?Object.assign({},r,v):r,this.worker){var a=void 0;a=(a=v.encoder)&&a.encode?a:new Hn(typeof a=="string"?zi[a]:a||{}),a=new Qn(v,a),o.set(m,a)}this.worker||o.set(m,new Ot(v,this.reg)),v.custom?this.B[d]=v.custom:(this.B[d]=Ss(m,this.D),v.filter&&(typeof this.B[d]=="string"&&(this.B[d]=new String(this.B[d])),this.B[d].G=v.filter)),this.field[d]=m}if(this.h){r=i.store,$t(r)&&(r=[r]);for(let d=0,m,v;d<r.length;d++)m=r[d],v=m.field||m,m.custom?(this.h[d]=m.custom,m.custom.O=v):(this.h[d]=Ss(v,this.D),m.filter&&(typeof this.h[d]=="string"&&(this.h[d]=new String(this.h[d])),this.h[d].G=m.filter))}return o}function Ss(r,i){const o=r.split(":");let l=0;for(let a=0;a<o.length;a++)r=o[a],r[r.length-1]==="]"&&(r=r.substring(0,r.length-2))&&(i[l]=!0),r&&(o[l++]=r);return l<o.length&&(o.length=l),l>1?o:o[0]}ie.append=function(r,i){return this.add(r,i,!0)},ie.update=function(r,i){return this.remove(r).add(r,i)},ie.remove=function(r){Sr(r)&&(r=kr(r,this.key));for(var i of this.index.values())i.remove(r,!0);if(this.reg.has(r)){if(this.tag&&!this.fastupdate)for(let o of this.tag.values())for(let l of o){i=l[0];const a=l[1],d=a.indexOf(r);d>-1&&(a.length>1?a.splice(d,1):o.delete(i))}this.store&&this.store.delete(r),this.reg.delete(r)}return this.cache&&this.cache.remove(r),this},ie.clear=function(){const r=[];for(const i of this.index.values()){const o=i.clear();o.then&&r.push(o)}if(this.tag)for(const i of this.tag.values())i.clear();return this.store&&this.store.clear(),this.cache&&this.cache.clear(),r.length?Promise.all(r):this},ie.contain=function(r){return this.db?this.index.get(this.field[0]).db.has(r):this.reg.has(r)},ie.cleanup=function(){for(const r of this.index.values())r.cleanup();return this},ie.get=function(r){return this.db?this.index.get(this.field[0]).db.enrich(r).then(function(i){return i[0]&&i[0].doc||null}):this.store.get(r)||null},ie.set=function(r,i){return typeof r=="object"&&(i=r,r=kr(i,this.key)),this.store.set(r,i),this},ie.searchCache=_i,ie.export=jf,ie.import=Nf,Mi($n.prototype);function Hi(r,i=0){let o=[],l=[];i&&(i=25e4/i*5e3|0);for(const a of r.entries())l.push(a),l.length===i&&(o.push(l),l=[]);return l.length&&o.push(l),o}function bi(r,i){i||(i=new Map);for(let o=0,l;o<r.length;o++)l=r[o],i.set(l[0],l[1]);return i}function Zl(r,i=0){let o=[],l=[];i&&(i=25e4/i*1e3|0);for(const a of r.entries())l.push([a[0],Hi(a[1])[0]||[]]),l.length===i&&(o.push(l),l=[]);return l.length&&o.push(l),o}function Gl(r,i){i||(i=new Map);for(let o=0,l,a;o<r.length;o++)l=r[o],a=i.get(l[0]),i.set(l[0],bi(l[1],a));return i}function ql(r){let i=[],o=[];for(const l of r.keys())o.push(l),o.length===25e4&&(i.push(o),o=[]);return o.length&&i.push(o),i}function eu(r,i){i||(i=new Set);for(let o=0;o<r.length;o++)i.add(r[o]);return i}function ks(r,i,o,l,a,d,m=0){const v=l&&l.constructor===Array;var y=v?l.shift():l;if(!y)return this.export(r,i,a,d+1);if((y=r((i?i+".":"")+(m+1)+"."+o,JSON.stringify(y)))&&y.then){const C=this;return y.then(function(){return ks.call(C,r,i,o,v?l:null,a,d,m+1)})}return ks.call(this,r,i,o,v?l:null,a,d,m+1)}function jf(r,i,o=0,l=0){if(o<this.field.length){const m=this.field[o];if((i=this.index.get(m).export(r,m,o,l=1))&&i.then){const v=this;return i.then(function(){return v.export(r,m,o+1)})}return this.export(r,m,o+1)}let a,d;switch(l){case 0:a="reg",d=ql(this.reg),i=null;break;case 1:a="tag",d=this.tag&&Zl(this.tag,this.reg.size),i=null;break;case 2:a="doc",d=this.store&&Hi(this.store),i=null;break;default:return}return ks.call(this,r,i,a,d||null,o,l)}function Nf(r,i){var o=r.split(".");o[o.length-1]==="json"&&o.pop();const l=o.length>2?o[0]:"";if(o=o.length>2?o[2]:o[1],this.worker&&l)return this.index.get(l).import(r);if(i){if(typeof i=="string"&&(i=JSON.parse(i)),l)return this.index.get(l).import(o,i);switch(o){case"reg":this.fastupdate=!1,this.reg=eu(i,this.reg);for(let a=0,d;a<this.field.length;a++)d=this.index.get(this.field[a]),d.fastupdate=!1,d.reg=this.reg;if(this.worker){i=[];for(const a of this.index.values())i.push(a.import(r));return Promise.all(i)}break;case"tag":this.tag=Gl(i,this.tag);break;case"doc":this.store=bi(i,this.store)}}}function tu(r,i){let o="";for(const l of r.entries()){r=l[0];const a=l[1];let d="";for(let m=0,v;m<a.length;m++){v=a[m]||[""];let y="";for(let C=0;C<v.length;C++)y+=(y?",":"")+(i==="string"?'"'+v[C]+'"':v[C]);y="["+y+"]",d+=(d?",":"")+y}d='["'+r+'",['+d+"]]",o+=(o?",":"")+d}return o}Ot.prototype.remove=function(r,i){const o=this.reg.size&&(this.fastupdate?this.reg.get(r):this.reg.has(r));if(o){if(this.fastupdate){for(let l=0,a,d;l<o.length;l++)if((a=o[l])&&(d=a.length))if(a[d-1]===r)a.pop();else{const m=a.indexOf(r);m>=0&&a.splice(m,1)}}else $r(this.map,r),this.depth&&$r(this.ctx,r);i||this.reg.delete(r)}return this.db&&(this.commit_task.push({del:r}),this.M&&iu(this)),this.cache&&this.cache.remove(r),this};function $r(r,i){let o=0;var l=typeof i>"u";if(r.constructor===Array){for(let a=0,d,m,v;a<r.length;a++)if((d=r[a])&&d.length){if(l)return 1;if(m=d.indexOf(i),m>=0){if(d.length>1)return d.splice(m,1),1;if(delete r[a],o)return 1;v=1}else{if(v)return 1;o++}}}else for(let a of r.entries())l=a[0],$r(a[1],i)?o++:r.delete(l);return o}const Af={memory:{resolution:1},performance:{resolution:3,fastupdate:!0,context:{depth:1,resolution:1}},match:{tokenize:"forward"},score:{resolution:9,context:{depth:2,resolution:3}}};Ot.prototype.add=function(r,i,o,l){if(i&&(r||r===0)){if(!l&&!o&&this.reg.has(r))return this.update(r,i);l=this.depth,i=this.encoder.encode(i,!l);const C=i.length;if(C){const E=Ke(),L=Ke(),F=this.resolution;for(let M=0;M<C;M++){let V=i[this.rtl?C-1-M:M];var a=V.length;if(a&&(l||!L[V])){var d=this.score?this.score(i,V,M,null,0):Cs(F,C,M),m="";switch(this.tokenize){case"tolerant":if(Bt(this,L,V,d,r,o),a>2){for(let R=1,O,J,X,fe;R<a-1;R++)O=V.charAt(R),J=V.charAt(R+1),X=V.substring(0,R)+J,fe=V.substring(R+2),m=X+O+fe,Bt(this,L,m,d,r,o),m=X+fe,Bt(this,L,m,d,r,o);Bt(this,L,V.substring(0,V.length-1),d,r,o)}break;case"full":if(a>2){for(let R=0,O;R<a;R++)for(d=a;d>R;d--){m=V.substring(R,d),O=this.rtl?a-1-R:R;var v=this.score?this.score(i,V,M,m,O):Cs(F,C,M,a,O);Bt(this,L,m,v,r,o)}break}case"bidirectional":case"reverse":if(a>1){for(v=a-1;v>0;v--){m=V[this.rtl?a-1-v:v]+m;var y=this.score?this.score(i,V,M,m,v):Cs(F,C,M,a,v);Bt(this,L,m,y,r,o)}m=""}case"forward":if(a>1){for(v=0;v<a;v++)m+=V[this.rtl?a-1-v:v],Bt(this,L,m,d,r,o);break}default:if(Bt(this,L,V,d,r,o),l&&C>1&&M<C-1)for(a=this.N,m=V,d=Math.min(l+1,this.rtl?M+1:C-M),v=1;v<d;v++){V=i[this.rtl?C-1-M-v:M+v],y=this.bidirectional&&V>m;const R=this.score?this.score(i,m,M,V,v-1):Cs(a+(C/2>a?0:1),C,M,d-1,v-1);Bt(this,E,y?m:V,R,r,o,y?V:m)}}}}this.fastupdate||this.reg.add(r)}}return this.db&&(this.commit_task.push(o?{ins:r}:{del:r}),this.M&&iu(this)),this};function Bt(r,i,o,l,a,d,m){let v,y;if(!(v=i[o])||m&&!v[m]){if(m?(i=v||(i[o]=Ke()),i[m]=1,y=r.ctx,(v=y.get(m))?y=v:y.set(m,y=r.keystore?new Pt(r.keystore):new Map)):(y=r.map,i[o]=1),(v=y.get(o))?y=v:y.set(o,y=v=[]),d){for(let C=0,E;C<v.length;C++)if((E=v[C])&&E.includes(a)){if(C<=l)return;E.splice(E.indexOf(a),1),r.fastupdate&&(i=r.reg.get(a))&&i.splice(i.indexOf(E),1);break}}if(y=y[l]||(y[l]=[]),y.push(a),y.length===2**31-1){if(i=new bn(y),r.fastupdate)for(let C of r.reg.values())C.includes(y)&&(C[C.indexOf(y)]=i);v[l]=y=i}r.fastupdate&&((l=r.reg.get(a))?l.push(y):r.reg.set(a,[y]))}}function Cs(r,i,o,l,a){return o&&r>1?i+(l||0)<=r?o+(a||0):(r-1)/(i+(l||0))*(o+(a||0))+1|0:0}Ot.prototype.search=function(r,i,o){if(o||(i||typeof r!="object"?typeof i=="object"&&(o=i,i=0):(o=r,r="")),o&&o.cache)return o.cache=!1,r=this.searchCache(r,i,o),o.cache=!0,r;let l=[],a,d,m,v=0,y,C,E,L,F;o&&(r=o.query||r,i=o.limit||i,v=o.offset||0,d=o.context,m=o.suggest,F=(y=o.resolve)&&o.enrich,E=o.boost,L=o.resolution,C=this.db&&o.tag),typeof y>"u"&&(y=this.resolve),d=this.depth&&d!==!1;let M=this.encoder.encode(r,!d);if(a=M.length,i=i||(y?100:0),a===1)return ru.call(this,M[0],"",i,v,y,F,C);if(a===2&&d&&!m)return ru.call(this,M[1],M[0],i,v,y,F,C);let V=Ke(),R=0,O;if(d&&(O=M[0],R=1),L||L===0||(L=O?this.N:this.resolution),this.db){if(this.db.search&&(o=this.db.search(this,M,i,v,m,y,F,C),o!==!1))return o;const J=this;return(async function(){for(let X,fe;R<a;R++){if((fe=M[R])&&!V[fe]){if(V[fe]=1,X=await Ki(J,fe,O,0,0,!1,!1),X=su(X,l,m,L)){l=X;break}O&&(m&&X&&l.length||(O=fe))}m&&O&&R===a-1&&!l.length&&(L=J.resolution,O="",R=-1,V=Ke())}return nu(l,L,i,v,m,E,y)})()}for(let J,X;R<a;R++){if((X=M[R])&&!V[X]){if(V[X]=1,J=Ki(this,X,O,0,0,!1,!1),J=su(J,l,m,L)){l=J;break}O&&(m&&J&&l.length||(O=X))}m&&O&&R===a-1&&!l.length&&(L=this.resolution,O="",R=-1,V=Ke())}return nu(l,L,i,v,m,E,y)};function nu(r,i,o,l,a,d,m){let v=r.length,y=r;if(v>1)y=xs(r,i,o,l,a,d,m);else if(v===1)return m?Bi.call(null,r[0],o,l):new Fe(r[0],this);return m?y:new Fe(y,this)}function ru(r,i,o,l,a,d,m){return r=Ki(this,r,i,o,l,a,d,m),this.db?r.then(function(v){return a?v||[]:new Fe(v,this)}):r&&r.length?a?Bi.call(this,r,o,l):new Fe(r,this):a?[]:new Fe([],this)}function su(r,i,o,l){let a=[];if(r&&r.length){if(r.length<=l){i.push(r);return}for(let d=0,m;d<l;d++)(m=r[d])&&(a[d]=m);if(a.length){i.push(a);return}}if(!o)return a}function Ki(r,i,o,l,a,d,m,v){let y;return o&&(y=r.bidirectional&&i>o)&&(y=o,o=i,i=y),r.db?r.db.get(i,o,l,a,d,m,v):(r=o?(r=r.ctx.get(o))&&r.get(i):r.map.get(i),r)}function Ot(r,i){if(!this||this.constructor!==Ot)return new Ot(r);if(r){var o=$t(r)?r:r.preset;o&&(r=Object.assign({},Af[o],r))}else r={};o=r.context;const l=o===!0?{depth:1}:o||{},a=$t(r.encoder)?zi[r.encoder]:r.encode||r.encoder||{};this.encoder=a.encode?a:typeof a=="object"?new Hn(a):{encode:a},this.resolution=r.resolution||9,this.tokenize=o=(o=r.tokenize)&&o!=="default"&&o!=="exact"&&o||"strict",this.depth=o==="strict"&&l.depth||0,this.bidirectional=l.bidirectional!==!1,this.fastupdate=!!r.fastupdate,this.score=r.score||null,(o=r.keystore||0)&&(this.keystore=o),this.map=o?new Pt(o):new Map,this.ctx=o?new Pt(o):new Map,this.reg=i||(this.fastupdate?o?new Pt(o):new Map:o?new Et(o):new Set),this.N=l.resolution||3,this.rtl=a.rtl||r.rtl||!1,this.cache=(o=r.cache||null)&&new Cn(o),this.resolve=r.resolve!==!1,(o=r.db)&&(this.db=this.mount(o)),this.M=r.commit!==!1,this.commit_task=[],this.commit_timer=null,this.priority=r.priority||4}ie=Ot.prototype,ie.mount=function(r){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),r.mount(this)},ie.commit=function(){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.commit(this)},ie.destroy=function(){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.destroy()};function iu(r){r.commit_timer||(r.commit_timer=setTimeout(function(){r.commit_timer=null,r.db.commit(r)},1))}ie.clear=function(){return this.map.clear(),this.ctx.clear(),this.reg.clear(),this.cache&&this.cache.clear(),this.db?(this.commit_timer&&clearTimeout(this.commit_timer),this.commit_timer=null,this.commit_task=[],this.db.clear()):this},ie.append=function(r,i){return this.add(r,i,!0)},ie.contain=function(r){return this.db?this.db.has(r):this.reg.has(r)},ie.update=function(r,i){const o=this,l=this.remove(r);return l&&l.then?l.then(()=>o.add(r,i)):this.add(r,i)},ie.cleanup=function(){return this.fastupdate?($r(this.map),this.depth&&$r(this.ctx),this):this},ie.searchCache=_i,ie.export=function(r,i,o=0,l=0){let a,d;switch(l){case 0:a="reg",d=ql(this.reg);break;case 1:a="cfg",d=null;break;case 2:a="map",d=Hi(this.map,this.reg.size);break;case 3:a="ctx",d=Zl(this.ctx,this.reg.size);break;default:return}return ks.call(this,r,i,a,d,o,l)},ie.import=function(r,i){if(i)switch(typeof i=="string"&&(i=JSON.parse(i)),r=r.split("."),r[r.length-1]==="json"&&r.pop(),r.length===3&&r.shift(),r=r.length>1?r[1]:r[0],r){case"reg":this.fastupdate=!1,this.reg=eu(i,this.reg);break;case"map":this.map=bi(i,this.map);break;case"ctx":this.ctx=Gl(i,this.ctx)}},ie.serialize=function(r=!0){let i="",o="",l="";if(this.reg.size){let d;for(var a of this.reg.keys())d||(d=typeof a),i+=(i?",":"")+(d==="string"?'"'+a+'"':a);i="index.reg=new Set(["+i+"]);",o=tu(this.map,d),o="index.map=new Map(["+o+"]);";for(const m of this.ctx.entries()){a=m[0];let v=tu(m[1],d);v="new Map(["+v+"])",v='["'+a+'",'+v+"]",l+=(l?",":"")+v}l="index.ctx=new Map(["+l+"]);"}return r?"function inject(index){"+i+o+l+"}":i+o+l},Mi(Ot.prototype);const ou=typeof window<"u"&&(window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),$s=["map","ctx","tag","reg","cfg"],Pn=Ke();function Wi(r,i={}){if(!this||this.constructor!==Wi)return new Wi(r,i);typeof r=="object"&&(i=r,r=r.name),r||console.info("Default storage space was used, because a name was not passed."),this.id="flexsearch"+(r?":"+r.toLowerCase().replace(/[^a-z0-9_\-]/g,""):""),this.field=i.field?i.field.toLowerCase().replace(/[^a-z0-9_\-]/g,""):"",this.type=i.type,this.fastupdate=this.support_tag_search=!1,this.db=null,this.h={}}ie=Wi.prototype,ie.mount=function(r){return r.index?r.mount(this):(r.db=this,this.open())},ie.open=function(){if(this.db)return this.db;let r=this;navigator.storage&&navigator.storage.persist&&navigator.storage.persist(),Pn[r.id]||(Pn[r.id]=[]),Pn[r.id].push(r.field);const i=ou.open(r.id,1);return i.onupgradeneeded=function(){const o=r.db=this.result;for(let l=0,a;l<$s.length;l++){a=$s[l];for(let d=0,m;d<Pn[r.id].length;d++)m=Pn[r.id][d],o.objectStoreNames.contains(a+(a!=="reg"&&m?":"+m:""))||o.createObjectStore(a+(a!=="reg"&&m?":"+m:""))}},r.db=qt(i,function(o){r.db=o,r.db.onversionchange=function(){r.close()}})},ie.close=function(){this.db&&this.db.close(),this.db=null},ie.destroy=function(){const r=ou.deleteDatabase(this.id);return qt(r)},ie.clear=function(){const r=[];for(let o=0,l;o<$s.length;o++){l=$s[o];for(let a=0,d;a<Pn[this.id].length;a++)d=Pn[this.id][a],r.push(l+(l!=="reg"&&d?":"+d:""))}const i=this.db.transaction(r,"readwrite");for(let o=0;o<r.length;o++)i.objectStore(r[o]).clear();return qt(i)},ie.get=function(r,i,o=0,l=0,a=!0,d=!1){r=this.db.transaction((i?"ctx":"map")+(this.field?":"+this.field:""),"readonly").objectStore((i?"ctx":"map")+(this.field?":"+this.field:"")).get(i?i+":"+r:r);const m=this;return qt(r).then(function(v){let y=[];if(!v||!v.length)return y;if(a){if(!o&&!l&&v.length===1)return v[0];for(let C=0,E;C<v.length;C++)if((E=v[C])&&E.length){if(l>=E.length){l-=E.length;continue}const L=o?l+Math.min(E.length-l,o):E.length;for(let F=l;F<L;F++)y.push(E[F]);if(l=0,y.length===o)break}return d?m.enrich(y):y}return v})},ie.tag=function(r,i=0,o=0,l=!1){r=this.db.transaction("tag"+(this.field?":"+this.field:""),"readonly").objectStore("tag"+(this.field?":"+this.field:"")).get(r);const a=this;return qt(r).then(function(d){return!d||!d.length||o>=d.length?[]:!i&&!o?d:(d=d.slice(o,o+i),l?a.enrich(d):d)})},ie.enrich=function(r){typeof r!="object"&&(r=[r]);const i=this.db.transaction("reg","readonly").objectStore("reg"),o=[];for(let l=0;l<r.length;l++)o[l]=qt(i.get(r[l]));return Promise.all(o).then(function(l){for(let a=0;a<l.length;a++)l[a]={id:r[a],doc:l[a]?JSON.parse(l[a]):null};return l})},ie.has=function(r){return r=this.db.transaction("reg","readonly").objectStore("reg").getKey(r),qt(r).then(function(i){return!!i})},ie.search=null,ie.info=function(){},ie.transaction=function(r,i,o){r+=r!=="reg"&&this.field?":"+this.field:"";let l=this.h[r+":"+i];if(l)return o.call(this,l);let a=this.db.transaction(r,i);this.h[r+":"+i]=l=a.objectStore(r);const d=o.call(this,l);return this.h[r+":"+i]=null,qt(a).finally(function(){return d})},ie.commit=async function(r){let i=r.commit_task,o=[];r.commit_task=[];for(let l=0,a;l<i.length;l++)a=i[l],a.del&&o.push(a.del);o.length&&await this.remove(o),r.reg.size&&(await this.transaction("map","readwrite",function(l){for(const a of r.map){const d=a[0],m=a[1];m.length&&(l.get(d).onsuccess=function(){let v=this.result;var y;if(v&&v.length){const C=Math.max(v.length,m.length);for(let E=0,L,F;E<C;E++)if((F=m[E])&&F.length){if((L=v[E])&&L.length)for(y=0;y<F.length;y++)L.push(F[y]);else v[E]=F;y=1}}else v=m,y=1;y&&l.put(v,d)})}}),await this.transaction("ctx","readwrite",function(l){for(const a of r.ctx){const d=a[0],m=a[1];for(const v of m){const y=v[0],C=v[1];C.length&&(l.get(d+":"+y).onsuccess=function(){let E=this.result;var L;if(E&&E.length){const F=Math.max(E.length,C.length);for(let M=0,V,R;M<F;M++)if((R=C[M])&&R.length){if((V=E[M])&&V.length)for(L=0;L<R.length;L++)V.push(R[L]);else E[M]=R;L=1}}else E=C,L=1;L&&l.put(E,d+":"+y)})}}}),r.store?await this.transaction("reg","readwrite",function(l){for(const a of r.store){const d=a[0],m=a[1];l.put(typeof m=="object"?JSON.stringify(m):1,d)}}):r.bypass||await this.transaction("reg","readwrite",function(l){for(const a of r.reg.keys())l.put(1,a)}),r.tag&&await this.transaction("tag","readwrite",function(l){for(const a of r.tag){const d=a[0],m=a[1];m.length&&(l.get(d).onsuccess=function(){let v=this.result;v=v&&v.length?v.concat(m):m,l.put(v,d)})}}),r.map.clear(),r.ctx.clear(),r.tag&&r.tag.clear(),r.store&&r.store.clear(),r.document||r.reg.clear())};function Qi(r,i,o){const l=r.value;let a,d=0;for(let m=0,v;m<l.length;m++){if(v=o?l:l[m]){for(let y=0,C,E;y<i.length;y++)if(E=i[y],C=v.indexOf(E),C>=0)if(a=1,v.length>1)v.splice(C,1);else{l[m]=[];break}d+=v.length}if(o)break}d?a&&r.update(l):r.delete(),r.continue()}ie.remove=function(r){return typeof r!="object"&&(r=[r]),Promise.all([this.transaction("map","readwrite",function(i){i.openCursor().onsuccess=function(){const o=this.result;o&&Qi(o,r)}}),this.transaction("ctx","readwrite",function(i){i.openCursor().onsuccess=function(){const o=this.result;o&&Qi(o,r)}}),this.transaction("tag","readwrite",function(i){i.openCursor().onsuccess=function(){const o=this.result;o&&Qi(o,r,!0)}}),this.transaction("reg","readwrite",function(i){for(let o=0;o<r.length;o++)i.delete(r[o])})])};function qt(r,i){return new Promise((o,l)=>{r.onsuccess=r.oncomplete=function(){i&&i(this.result),i=null,o(this.result)},r.onerror=r.onblocked=l,r=null})}const Ps={Encoder:Hn,Document:$n},Lf=zi,Of={finalize:r=>{let i=[];for(const o of r)i.push(..._f(o));return i}};function Rf(r){return r>=19968&&r<=40959||r>=12352&&r<=12543||r>=44032&&r<=55203||r>=13312&&r<=19903||r>=131072&&r<=173791||r>=173824&&r<=191471||r>=196608&&r<=205743||r>=191472&&r<=192095||r>=63744&&r<=64255||r>=194560&&r<=195103}function _f(r){const i=[];let o="";for(const l of r){const a=l.codePointAt(0);Rf(a)?(o&&(i.push(o),o=""),i.push(l)):o+=l}return o&&i.push(o),i}const Yi=new Ps.Encoder(Lf.Default,Of);class If{constructor({adminUrl:i,apiKey:o,dir:l}){const a=l==="rtl",d=l==="rtl"?"reverse":"forward";this.apiUrl=i,this.apiKey=o,this.postsIndex=new Ps.Document({tokenize:d,rtl:a,document:{id:"id",index:["title","excerpt"],store:!0},encoder:Yi}),this.authorsIndex=new Ps.Document({tokenize:d,rtl:a,document:{id:"id",index:["name"],store:!0},encoder:Yi}),this.tagsIndex=new Ps.Document({tokenize:d,rtl:a,document:{id:"id",index:["name"],store:!0},encoder:Yi}),this.init=this.init.bind(this),this.search=this.search.bind(this)}async#t(){const i=await this.#n();i.length>0&&this.#r(i)}async#n(){try{const i=`${this.apiUrl}/ghost/api/content/search-index/posts/?key=${this.apiKey}`;return(await(await fetch(i)).json()).posts}catch(i){return console.error("Error fetching posts:",i),[]}}#r(i){i.forEach(o=>{this.postsIndex.add(o)})}async#s(){const i=await this.#i();i.length>0&&this.#o(i)}async#i(){try{const i=`${this.apiUrl}/ghost/api/content/search-index/authors/?key=${this.apiKey}`;return(await(await fetch(i)).json()).authors}catch(i){return console.error("Error fetching authors:",i),[]}}#o(i){i.forEach(o=>{this.authorsIndex.add(o)})}async#l(){const i=await this.#u();i.length>0&&this.#a(i)}async#u(){try{const i=`${this.apiUrl}/ghost/api/content/search-index/tags/?key=${this.apiKey}`;return(await(await fetch(i)).json()).tags}catch(i){return console.error("Error fetching tags:",i),[]}}#a(i){i.forEach(o=>{this.tagsIndex.add(o)})}async init(){await this.#t(),await this.#s(),await this.#l()}#e(i){const o=[],l={};return i.forEach(a=>{a.result.forEach(d=>{l[d.id]||(o.push(d.doc),l[d.id]=!0)})}),o}search(i){const o=this.postsIndex.search(i,{enrich:!0}),l=this.authorsIndex.search(i,{enrich:!0}),a=this.tagsIndex.search(i,{enrich:!0});return{posts:this.#e(o),authors:this.#e(l),tags:this.#e(a)}}}var En={exports:{}},Jn={exports:{}};const zf={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Mf={Authors:"الكتّاب",Cancel:"إلغاء","No matches found":"لا يوجد نتائج مطابقة",Posts:"منشورات","Search posts, tags and authors":"قم بالبحث عن المنشورات، الوسوم و الكتّاب","Show more results":"اظهر المزيد من النتائج",Tags:"الوسوم"},Ff={Authors:"Автори",Cancel:"Отказ","No matches found":"Няма съвпадения",Posts:"Публикации","Search posts, tags and authors":"Търсене в публикации, етикети и автори","Show more results":"Покажи още резултати",Tags:"Етикети"},Df={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Uf={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Bf={Authors:"Autors",Cancel:"Cancel·la","No matches found":"No s'ha trobat cap resultat",Posts:"Articles","Search posts, tags and authors":"Cerca articles, etiquetes i autors","Show more results":"Mostra més resultats",Tags:"Etiquetes"},Vf={Authors:"Autoři",Cancel:"Zrušit","No matches found":"Nenalezeno",Posts:"Články","Search posts, tags and authors":"Prohledat články, štítky a autory","Show more results":"Zobrazit více výsledků",Tags:"Štítky"},Hf={Authors:"Forfattere",Cancel:"Annuller","No matches found":"Ingen resultater fundet",Posts:"Indlæg","Search posts, tags and authors":"Søg i indlæg, tags og forfattere","Show more results":"Vis flere resultater",Tags:"Tags"},bf={Authors:"Autoren",Cancel:"Abbrechen","No matches found":"Keine Treffer gefunden",Posts:"Beiträge","Search posts, tags and authors":"Nach Posts, Tags und Autoren suchen","Show more results":"Mehr Ergebnisse anzeigen",Tags:"Tags"},Kf={Authors:"Autor*innen",Cancel:"Abbrechen","No matches found":"Keine Treffer gefunden",Posts:"Posts","Search posts, tags and authors":"Posts, Tags und Autor*innen durchsuchen","Show more results":"Mehr Ergebnisse anzeigen",Tags:"Tags"},Wf={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Qf={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Yf={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Jf={Authors:"Autores",Cancel:"Cancelar","No matches found":"No se encontraron resultados",Posts:"Publicaciones","Search posts, tags and authors":"Buscar publicaciones, etiquetas y autores","Show more results":"Mostrar más resultados",Tags:"Etiquetas"},Xf={Authors:"Autorid",Cancel:"Tühista","No matches found":"Vasteid ei leitud",Posts:"Postitused","Search posts, tags and authors":"Otsi postitusi, silte ja autoreid","Show more results":"Näita rohkem tulemusi",Tags:"Sildid"},Zf={Authors:"Autoreak",Cancel:"Utzi","No matches found":"Ez da bat datorren ezer topatu",Posts:"Artikuluak","Search posts, tags and authors":"Bilatu artikuluak, etiketak eta autoreak","Show more results":"Erakutsi emaitza gehiago",Tags:"Etiketak"},Gf={Authors:"نویسندگان",Cancel:"لغو","No matches found":"موردی یافت نشد",Posts:"نوشته‌ها","Search posts, tags and authors":"جست‌وجوی نوشته‌ها، برچسب‌ها و نویسندگان","Show more results":"نمایش نتایج بیشتر",Tags:"برچسب‌ها"},qf={Authors:"Kirjoittajat",Cancel:"Peruuta","No matches found":"Ei hakutuloksia",Posts:"Kirjoitukset","Search posts, tags and authors":"Etsi kirjoituksia, tunnisteita ja kirjoittajia","Show more results":"Näytä enemmän tuloksia",Tags:"Tunnisteet"},eh={Authors:"Auteurs",Cancel:"Annuler","No matches found":"Aucun résultat trouvé",Posts:"Articles","Search posts, tags and authors":"Rechercher des articles, des catégories et des auteurs","Show more results":"Plus de résultats",Tags:"Catégories"},th={Authors:"Ùghdaran",Cancel:"Sguir dheth","No matches found":"Cha deach dad a lorg a fhreagras ris na lorg thu",Posts:"Postaichean","Search posts, tags and authors":"Lorg sna postaichean, tagaichean agus ùghdaran","Show more results":"Seall barrachd thoraidhean",Tags:"Tagaichean"},nh={Authors:"מחברים",Cancel:"ביטול","No matches found":"לא נמצאו התאמות",Posts:"פוסטים","Search posts, tags and authors":"חיפוש פוסטים, תגיות ומחברים","Show more results":"הצגת תוצאות נוספות",Tags:"תגיות"},rh={Authors:"लेखक",Cancel:"रद्द करें","No matches found":"कोई मैच नहीं मिला",Posts:"पोस्ट","Search posts, tags and authors":"पोस्ट, टैग और लेखक की तलाश करें","Show more results":"और परिणाम दिखाएं",Tags:"टैग"},sh={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},ih={Authors:"Szerzők",Cancel:"Mégse","No matches found":"Nincs találat",Posts:"Bejegyzések","Search posts, tags and authors":"Keresés a bejegyzések, a címkék és a szerzők között","Show more results":"További találatok megjelenítése",Tags:"Címkék"},oh={Authors:"Penulis",Cancel:"Batalkan","No matches found":"Tidak ada hasil yang ditemukan",Posts:"Postingan","Search posts, tags and authors":"Cari postingan, tag, dan penulis","Show more results":"Tampilkan lebih banyak hasil",Tags:"Tag"},lh={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},uh={Authors:"Autori",Cancel:"Annulla","No matches found":"Nessun risultato trovato",Posts:"Articoli","Search posts, tags and authors":"Cerca articoli, tag e autori","Show more results":"Mostra più risultati",Tags:"Tag"},ah={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},ch={Authors:"작성자",Cancel:"취소","No matches found":"일치하는 결과가 없어요",Posts:"게시물","Search posts, tags and authors":"게시물, 태그, 작성자 검색","Show more results":"더 많은 결과 보기",Tags:"태그"},fh={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},hh={Authors:"Autoriai",Cancel:"Atšaukti","No matches found":"Atitikmenų nerasta",Posts:"Įrašai","Search posts, tags and authors":"Ieškoti įrašų, žymų ir autorių","Show more results":"Rodyti daugiau rezultatų",Tags:"Žymos"},dh={Authors:"Autori",Cancel:"Atcelt","No matches found":"Nav atrasta neviena atbilstība",Posts:"Ziņas","Search posts, tags and authors":"Meklēt ziņas, atzīmes un autorus","Show more results":"Rādīt vairāk rezultātu",Tags:"Tagi"},ph={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},gh={Authors:"Нийтлэгчид",Cancel:"Цуцлах","No matches found":"Тохирох хайлтын үр дүн олдсонгүй",Posts:"Нийтлэлүүд","Search posts, tags and authors":"Нийтлэл, ангилал, нийтлэгчдээр хайх","Show more results":"Илүү олон үр дүн харуулах",Tags:"Ангилалууд"},mh={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},yh={Authors:"Forfattere",Cancel:"Avbryt","No matches found":"Ingen treff funnet",Posts:"Innlegg","Search posts, tags and authors":"Søk i innlegg, etiketter og forfattere","Show more results":"Vis flere resultater",Tags:"Etiketter"},vh={Authors:"लेखकहरू",Cancel:"रद्द गर्नुहोस्","No matches found":"कुनै परिणाम भेटिएन",Posts:"पोस्टहरू","Search posts, tags and authors":"पोस्टहरू, ट्यागहरू र लेखकहरू खोज्नुहोस्","Show more results":"थप परिणामहरू देखाउनुहोस्",Tags:"ट्यागहरू"},wh={Authors:"Auteurs",Cancel:"Annuleren","No matches found":"Geen resultaten gevonden",Posts:"Berichten","Search posts, tags and authors":"Zoek berichten, tags en auteurs","Show more results":"Meer resultaten weergeven",Tags:"Tags"},xh={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Sh={Authors:"ਲੇਖਕ",Cancel:"ਰੱਦ ਕਰੋ","No matches found":"ਕੋਈ ਮੇਲ ਨਹੀਂ ਮਿਲਿਆ",Posts:"ਪੋਸਟਾਂ","Search posts, tags and authors":"ਪੋਸਟਾਂ, ਟੈਗ ਅਤੇ ਲੇਖਕ ਖੋਜੋ","Show more results":"ਹੋਰ ਨਤੀਜੇ ਦਿਖਾਓ",Tags:"ਟੈਗ"},kh={Authors:"Autorzy",Cancel:"Anuluj","No matches found":"Nie znaleziono dopasowań",Posts:"Posty","Search posts, tags and authors":"Szukaj postów, tagów lub autorów","Show more results":"Pokaż więcej wyników",Tags:"Tagi"},Ch={Authors:"Autores",Cancel:"Cancelar","No matches found":"Nenhum resultado encontrado",Posts:"Publicações","Search posts, tags and authors":"Buscar posts, tags e autores","Show more results":"Mostrar mais resultados",Tags:"Tags"},$h={Authors:"Autores",Cancel:"Cancelar","No matches found":"Nenhum resultado encontrado",Posts:"Publicações","Search posts, tags and authors":"Procurar publicações, marcadores e autores","Show more results":"Mostrar mais resultados",Tags:"Marcadores"},Ph={Authors:"Autori",Cancel:"Anulează","No matches found":"Nu s-au găsit rezultate",Posts:"Postări","Search posts, tags and authors":"Caută postări, etichete și autori","Show more results":"Afișează mai multe rezultate",Tags:"Etichete"},Eh={Authors:"Авторы",Cancel:"Отмена","No matches found":"Совпадений не найдено",Posts:"Записи","Search posts, tags and authors":"Поиск по записям, тегам и авторам","Show more results":"Показать больше результатов",Tags:"Теги"},Th={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},jh={Authors:"Autori",Cancel:"Zrušiť","No matches found":"Nenašli sa žiadne výsledky",Posts:"Príspevky","Search posts, tags and authors":"Vyhľadajte príspevky, tagy a autorov","Show more results":"Zobraziť viac výsledkov",Tags:"Tagy"},Nh={Authors:"Avtorji",Cancel:"Prekliči","No matches found":"Ni najdenih zadetkov",Posts:"Članki","Search posts, tags and authors":"Iščite članke, oznake in avtorje","Show more results":"Prikaži več rezultatov",Tags:"Oznake"},Ah={Authors:"Autorët",Cancel:"Anulo","No matches found":"Nuk u gjet asnjë rezultat",Posts:"Postimet","Search posts, tags and authors":"Kërko postime, etiketa dhe autorë","Show more results":"Shfaq më shumë rezultate",Tags:"Etiketat"},Lh={Authors:"Аутори",Cancel:"Откажите","No matches found":"Нема резултата",Posts:"Објаве","Search posts, tags and authors":"Претражите објаве, tag-ове и ауторе","Show more results":"Прикажите више резултата",Tags:"Tag-ови"},Oh={Authors:"Autori",Cancel:"Otkažite","No matches found":"Nema rezultata",Posts:"Objave","Search posts, tags and authors":"Pretražite objave, tag-ove i autore","Show more results":"Prikažite više rezultata",Tags:"Tag-ovi"},Rh={Authors:"Författare",Cancel:"Avbryt","No matches found":"Inga träffar hittade",Posts:"Inlägg","Search posts, tags and authors":"Sök inlägg, taggar och författare","Show more results":"Visa fler resultat",Tags:"Taggar"},_h={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Ih={Authors:"ஆசிரியர்கள்",Cancel:"ரத்து செய்","No matches found":"பொருத்தங்கள் எதுவும் இல்லை",Posts:"பதிவுகள்","Search posts, tags and authors":"பதிவுகள், குறிச்சொற்கள் மற்றும் ஆசிரியர்களைத் தேடுங்கள்","Show more results":"மேலும் முடிவுகளைக் காட்டு",Tags:"குறிச்சொற்கள்"},zh={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Mh={Authors:"Yazarlar",Cancel:"İptal","No matches found":"Eşleşme bulunamadı",Posts:"Yazılar","Search posts, tags and authors":"Yazıları, etiketleri ve yazarları ara","Show more results":"Daha fazla sonuç göster",Tags:"Etiketler"},Fh={Authors:"Автори",Cancel:"Скасувати","No matches found":"Збігів не знайдено",Posts:"Публікації","Search posts, tags and authors":"Шукайте публікацій, теги та авторів","Show more results":"Показати більше результатів",Tags:"Теги"},Dh={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Uh={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Bh={Authors:"Tác giả",Cancel:"Hủy","No matches found":"Không tìm thấy",Posts:"Bài viết","Search posts, tags and authors":"Tìm bài viết, thẻ và tác giả","Show more results":"Xem thêm kết quả",Tags:"Thẻ"},Vh={Authors:"作者",Cancel:"取消","No matches found":"無相符結果",Posts:"文章","Search posts, tags and authors":"搜尋文章、標籤與作者","Show more results":"更多結果",Tags:"標籤"},Hh={Authors:"作者",Cancel:"取消","No matches found":"未找到匹配项",Posts:"文章","Search posts, tags and authors":"搜索文章、标签和作者","Show more results":"显示更多结果",Tags:"标签"};var lu;function uu(){return lu||(lu={"/ghost/i18n/locales/af/search.json":function(){return zf},"/ghost/i18n/locales/ar/search.json":function(){return Mf},"/ghost/i18n/locales/bg/search.json":function(){return Ff},"/ghost/i18n/locales/bn/search.json":function(){return Df},"/ghost/i18n/locales/bs/search.json":function(){return Uf},"/ghost/i18n/locales/ca/search.json":function(){return Bf},"/ghost/i18n/locales/cs/search.json":function(){return Vf},"/ghost/i18n/locales/da/search.json":function(){return Hf},"/ghost/i18n/locales/de-CH/search.json":function(){return bf},"/ghost/i18n/locales/de/search.json":function(){return Kf},"/ghost/i18n/locales/el/search.json":function(){return Wf},"/ghost/i18n/locales/en/search.json":function(){return Qf},"/ghost/i18n/locales/eo/search.json":function(){return Yf},"/ghost/i18n/locales/es/search.json":function(){return Jf},"/ghost/i18n/locales/et/search.json":function(){return Xf},"/ghost/i18n/locales/eu/search.json":function(){return Zf},"/ghost/i18n/locales/fa/search.json":function(){return Gf},"/ghost/i18n/locales/fi/search.json":function(){return qf},"/ghost/i18n/locales/fr/search.json":function(){return eh},"/ghost/i18n/locales/gd/search.json":function(){return th},"/ghost/i18n/locales/he/search.json":function(){return nh},"/ghost/i18n/locales/hi/search.json":function(){return rh},"/ghost/i18n/locales/hr/search.json":function(){return sh},"/ghost/i18n/locales/hu/search.json":function(){return ih},"/ghost/i18n/locales/id/search.json":function(){return oh},"/ghost/i18n/locales/is/search.json":function(){return lh},"/ghost/i18n/locales/it/search.json":function(){return uh},"/ghost/i18n/locales/ja/search.json":function(){return ah},"/ghost/i18n/locales/ko/search.json":function(){return ch},"/ghost/i18n/locales/kz/search.json":function(){return fh},"/ghost/i18n/locales/lt/search.json":function(){return hh},"/ghost/i18n/locales/lv/search.json":function(){return dh},"/ghost/i18n/locales/mk/search.json":function(){return ph},"/ghost/i18n/locales/mn/search.json":function(){return gh},"/ghost/i18n/locales/ms/search.json":function(){return mh},"/ghost/i18n/locales/nb/search.json":function(){return yh},"/ghost/i18n/locales/ne/search.json":function(){return vh},"/ghost/i18n/locales/nl/search.json":function(){return wh},"/ghost/i18n/locales/nn/search.json":function(){return xh},"/ghost/i18n/locales/pa/search.json":function(){return Sh},"/ghost/i18n/locales/pl/search.json":function(){return kh},"/ghost/i18n/locales/pt-BR/search.json":function(){return Ch},"/ghost/i18n/locales/pt/search.json":function(){return $h},"/ghost/i18n/locales/ro/search.json":function(){return Ph},"/ghost/i18n/locales/ru/search.json":function(){return Eh},"/ghost/i18n/locales/si/search.json":function(){return Th},"/ghost/i18n/locales/sk/search.json":function(){return jh},"/ghost/i18n/locales/sl/search.json":function(){return Nh},"/ghost/i18n/locales/sq/search.json":function(){return Ah},"/ghost/i18n/locales/sr-Cyrl/search.json":function(){return Lh},"/ghost/i18n/locales/sr/search.json":function(){return Oh},"/ghost/i18n/locales/sv/search.json":function(){return Rh},"/ghost/i18n/locales/sw/search.json":function(){return _h},"/ghost/i18n/locales/ta/search.json":function(){return Ih},"/ghost/i18n/locales/th/search.json":function(){return zh},"/ghost/i18n/locales/tr/search.json":function(){return Mh},"/ghost/i18n/locales/uk/search.json":function(){return Fh},"/ghost/i18n/locales/ur/search.json":function(){return Dh},"/ghost/i18n/locales/uz/search.json":function(){return Uh},"/ghost/i18n/locales/vi/search.json":function(){return Bh},"/ghost/i18n/locales/zh-Hant/search.json":function(){return Vh},"/ghost/i18n/locales/zh/search.json":function(){return Hh}})}function au(r){function i(o){var l=cu(o,r);if(l!==null)return uu()[l]();throw new Error('Could not dynamically require "'+o+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}return i.resolve=function(o){var l=cu(o,r);return l!==null?l:require.resolve(o)},i}function cu(r,i){var o=bh(r);r=Es(r);var l;r[0]==="/"&&(i="");for(var a=uu(),d=["",".js",".json"];o?l=Es(i+"/node_modules/"+r):l=Es(i+"/"+r),!l.endsWith("/..");){for(var m=0;m<d.length;m++){var v=l+d[m];if(a[v])return v}if(!o)break;var y=Es(i+"/..");if(y===i)break;i=y}return null}function bh(r){var i=r[0];if(i==="/"||i==="\\")return!1;var o=r[1],l=r[2];return!(i==="."&&(!o||o==="/"||o==="\\")||i==="."&&o==="."&&(!l||l==="/"||l==="\\")||o===":"&&(l==="/"||l==="\\"))}function Es(r){r=r.replace(/\\/g,"/");for(var i=r.split("/"),o=i[0]==="",l=1;l<i.length;l++)(i[l]==="."||i[l]==="")&&i.splice(l--,1);for(var l=1;l<i.length;l++)i[l]===".."&&l>0&&i[l-1]!==".."&&i[l-1]!=="."&&(i.splice(--l,2),l--);return r=i.join("/"),o&&r[0]!=="/"?r="/"+r:r.length===0&&(r="."),r}var Ji,fu;function Kh(){if(fu)return Ji;fu=1;const r=S=>typeof S=="string",i=()=>{let S,c;const h=new Promise((g,x)=>{S=g,c=x});return h.resolve=S,h.reject=c,h},o=S=>S==null?"":""+S,l=(S,c,h)=>{S.forEach(g=>{c[g]&&(h[g]=c[g])})},a=/###/g,d=S=>S&&S.indexOf("###")>-1?S.replace(a,"."):S,m=S=>!S||r(S),v=(S,c,h)=>{const g=r(c)?c.split("."):c;let x=0;for(;x<g.length-1;){if(m(S))return{};const k=d(g[x]);!S[k]&&h&&(S[k]=new h),Object.prototype.hasOwnProperty.call(S,k)?S=S[k]:S={},++x}return m(S)?{}:{obj:S,k:d(g[x])}},y=(S,c,h)=>{const{obj:g,k:x}=v(S,c,Object);if(g!==void 0||c.length===1){g[x]=h;return}let k=c[c.length-1],j=c.slice(0,c.length-1),I=v(S,j,Object);for(;I.obj===void 0&&j.length;)k=`${j[j.length-1]}.${k}`,j=j.slice(0,j.length-1),I=v(S,j,Object),I&&I.obj&&typeof I.obj[`${I.k}.${k}`]<"u"&&(I.obj=void 0);I.obj[`${I.k}.${k}`]=h},C=(S,c,h,g)=>{const{obj:x,k}=v(S,c,Object);x[k]=x[k]||[],x[k].push(h)},E=(S,c)=>{const{obj:h,k:g}=v(S,c);if(h)return h[g]},L=(S,c,h)=>{const g=E(S,h);return g!==void 0?g:E(c,h)},F=(S,c,h)=>{for(const g in c)g!=="__proto__"&&g!=="constructor"&&(g in S?r(S[g])||S[g]instanceof String||r(c[g])||c[g]instanceof String?h&&(S[g]=c[g]):F(S[g],c[g],h):S[g]=c[g]);return S},M=S=>S.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var V={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const R=S=>r(S)?S.replace(/[&<>"'\/]/g,c=>V[c]):S;class O{constructor(c){this.capacity=c,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(c){const h=this.regExpMap.get(c);if(h!==void 0)return h;const g=new RegExp(c);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(c,g),this.regExpQueue.push(c),g}}const J=[" ",",","?","!",";"],X=new O(20),fe=(S,c,h)=>{c=c||"",h=h||"";const g=J.filter(j=>c.indexOf(j)<0&&h.indexOf(j)<0);if(g.length===0)return!0;const x=X.getRegExp(`(${g.map(j=>j==="?"?"\\?":j).join("|")})`);let k=!x.test(S);if(!k){const j=S.indexOf(h);j>0&&!x.test(S.substring(0,j))&&(k=!0)}return k},de=function(S,c){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!S)return;if(S[c])return S[c];const g=c.split(h);let x=S;for(let k=0;k<g.length;){if(!x||typeof x!="object")return;let j,I="";for(let z=k;z<g.length;++z)if(z!==k&&(I+=h),I+=g[z],j=x[I],j!==void 0){if(["string","number","boolean"].indexOf(typeof j)>-1&&z<g.length-1)continue;k+=z-k+1;break}x=j}return x},he=S=>S&&S.replace("_","-"),ae={type:"logger",log(S){this.output("log",S)},warn(S){this.output("warn",S)},error(S){this.output("error",S)},output(S,c){console&&console[S]&&console[S].apply(console,c)}};class ue{constructor(c){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(c,h)}init(c){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=h.prefix||"i18next:",this.logger=c||ae,this.options=h,this.debug=h.debug}log(){for(var c=arguments.length,h=new Array(c),g=0;g<c;g++)h[g]=arguments[g];return this.forward(h,"log","",!0)}warn(){for(var c=arguments.length,h=new Array(c),g=0;g<c;g++)h[g]=arguments[g];return this.forward(h,"warn","",!0)}error(){for(var c=arguments.length,h=new Array(c),g=0;g<c;g++)h[g]=arguments[g];return this.forward(h,"error","")}deprecate(){for(var c=arguments.length,h=new Array(c),g=0;g<c;g++)h[g]=arguments[g];return this.forward(h,"warn","WARNING DEPRECATED: ",!0)}forward(c,h,g,x){return x&&!this.debug?null:(r(c[0])&&(c[0]=`${g}${this.prefix} ${c[0]}`),this.logger[h](c))}create(c){return new ue(this.logger,{prefix:`${this.prefix}:${c}:`,...this.options})}clone(c){return c=c||this.options,c.prefix=c.prefix||this.prefix,new ue(this.logger,c)}}var q=new ue;class oe{constructor(){this.observers={}}on(c,h){return c.split(" ").forEach(g=>{this.observers[g]||(this.observers[g]=new Map);const x=this.observers[g].get(h)||0;this.observers[g].set(h,x+1)}),this}off(c,h){if(this.observers[c]){if(!h){delete this.observers[c];return}this.observers[c].delete(h)}}emit(c){for(var h=arguments.length,g=new Array(h>1?h-1:0),x=1;x<h;x++)g[x-1]=arguments[x];this.observers[c]&&Array.from(this.observers[c].entries()).forEach(j=>{let[I,z]=j;for(let b=0;b<z;b++)I(...g)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(j=>{let[I,z]=j;for(let b=0;b<z;b++)I.apply(I,[c,...g])})}}class Pe extends oe{constructor(c){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=c||{},this.options=h,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(c){this.options.ns.indexOf(c)<0&&this.options.ns.push(c)}removeNamespaces(c){const h=this.options.ns.indexOf(c);h>-1&&this.options.ns.splice(h,1)}getResource(c,h,g){let x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const k=x.keySeparator!==void 0?x.keySeparator:this.options.keySeparator,j=x.ignoreJSONStructure!==void 0?x.ignoreJSONStructure:this.options.ignoreJSONStructure;let I;c.indexOf(".")>-1?I=c.split("."):(I=[c,h],g&&(Array.isArray(g)?I.push(...g):r(g)&&k?I.push(...g.split(k)):I.push(g)));const z=E(this.data,I);return!z&&!h&&!g&&c.indexOf(".")>-1&&(c=I[0],h=I[1],g=I.slice(2).join(".")),z||!j||!r(g)?z:de(this.data&&this.data[c]&&this.data[c][h],g,k)}addResource(c,h,g,x){let k=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const j=k.keySeparator!==void 0?k.keySeparator:this.options.keySeparator;let I=[c,h];g&&(I=I.concat(j?g.split(j):g)),c.indexOf(".")>-1&&(I=c.split("."),x=h,h=I[1]),this.addNamespaces(h),y(this.data,I,x),k.silent||this.emit("added",c,h,g,x)}addResources(c,h,g){let x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const k in g)(r(g[k])||Array.isArray(g[k]))&&this.addResource(c,h,k,g[k],{silent:!0});x.silent||this.emit("added",c,h,g)}addResourceBundle(c,h,g,x,k){let j=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},I=[c,h];c.indexOf(".")>-1&&(I=c.split("."),x=g,g=h,h=I[1]),this.addNamespaces(h);let z=E(this.data,I)||{};j.skipCopy||(g=JSON.parse(JSON.stringify(g))),x?F(z,g,k):z={...z,...g},y(this.data,I,z),j.silent||this.emit("added",c,h,g)}removeResourceBundle(c,h){this.hasResourceBundle(c,h)&&delete this.data[c][h],this.removeNamespaces(h),this.emit("removed",c,h)}hasResourceBundle(c,h){return this.getResource(c,h)!==void 0}getResourceBundle(c,h){return h||(h=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(c,h)}:this.getResource(c,h)}getDataByLanguage(c){return this.data[c]}hasLanguageSomeTranslations(c){const h=this.getDataByLanguage(c);return!!(h&&Object.keys(h)||[]).find(x=>h[x]&&Object.keys(h[x]).length>0)}toJSON(){return this.data}}var xe={processors:{},addPostProcessor(S){this.processors[S.name]=S},handle(S,c,h,g,x){return S.forEach(k=>{this.processors[k]&&(c=this.processors[k].process(c,h,g,x))}),c}};const Ee={};class ke extends oe{constructor(c){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),l(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],c,this),this.options=h,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=q.create("translator")}changeLanguage(c){c&&(this.language=c)}exists(c){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(c==null)return!1;const g=this.resolve(c,h);return g&&g.res!==void 0}extractFromKey(c,h){let g=h.nsSeparator!==void 0?h.nsSeparator:this.options.nsSeparator;g===void 0&&(g=":");const x=h.keySeparator!==void 0?h.keySeparator:this.options.keySeparator;let k=h.ns||this.options.defaultNS||[];const j=g&&c.indexOf(g)>-1,I=!this.options.userDefinedKeySeparator&&!h.keySeparator&&!this.options.userDefinedNsSeparator&&!h.nsSeparator&&!fe(c,g,x);if(j&&!I){const z=c.match(this.interpolator.nestingRegexp);if(z&&z.length>0)return{key:c,namespaces:r(k)?[k]:k};const b=c.split(g);(g!==x||g===x&&this.options.ns.indexOf(b[0])>-1)&&(k=b.shift()),c=b.join(x)}return{key:c,namespaces:r(k)?[k]:k}}translate(c,h,g){if(typeof h!="object"&&this.options.overloadTranslationOptionHandler&&(h=this.options.overloadTranslationOptionHandler(arguments)),typeof h=="object"&&(h={...h}),h||(h={}),c==null)return"";Array.isArray(c)||(c=[String(c)]);const x=h.returnDetails!==void 0?h.returnDetails:this.options.returnDetails,k=h.keySeparator!==void 0?h.keySeparator:this.options.keySeparator,{key:j,namespaces:I}=this.extractFromKey(c[c.length-1],h),z=I[I.length-1],b=h.lng||this.language,Y=h.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(b&&b.toLowerCase()==="cimode"){if(Y){const ze=h.nsSeparator||this.options.nsSeparator;return x?{res:`${z}${ze}${j}`,usedKey:j,exactUsedKey:j,usedLng:b,usedNS:z,usedParams:this.getUsedParamsDetails(h)}:`${z}${ze}${j}`}return x?{res:j,usedKey:j,exactUsedKey:j,usedLng:b,usedNS:z,usedParams:this.getUsedParamsDetails(h)}:j}const re=this.resolve(c,h);let U=re&&re.res;const pe=re&&re.usedKey||j,Le=re&&re.exactUsedKey||j,Ve=Object.prototype.toString.apply(U),Ie=["[object Number]","[object Function]","[object RegExp]"],Je=h.joinArrays!==void 0?h.joinArrays:this.options.joinArrays,Xe=!this.i18nFormat||this.i18nFormat.handleAsObject,Nt=!r(U)&&typeof U!="boolean"&&typeof U!="number";if(Xe&&U&&Nt&&Ie.indexOf(Ve)<0&&!(r(Je)&&Array.isArray(U))){if(!h.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const ze=this.options.returnedObjectHandler?this.options.returnedObjectHandler(pe,U,{...h,ns:I}):`key '${j} (${this.language})' returned an object instead of string.`;return x?(re.res=ze,re.usedParams=this.getUsedParamsDetails(h),re):ze}if(k){const ze=Array.isArray(U),lt=ze?[]:{},at=ze?Le:pe;for(const Ze in U)if(Object.prototype.hasOwnProperty.call(U,Ze)){const Xn=`${at}${k}${Ze}`;lt[Ze]=this.translate(Xn,{...h,joinArrays:!1,ns:I}),lt[Ze]===Xn&&(lt[Ze]=U[Ze])}U=lt}}else if(Xe&&r(Je)&&Array.isArray(U))U=U.join(Je),U&&(U=this.extendTranslation(U,c,h,g));else{let ze=!1,lt=!1;const at=h.count!==void 0&&!r(h.count),Ze=ke.hasDefaultValue(h),Xn=at?this.pluralResolver.getSuffix(b,h.count,h):"",Er=h.ordinal&&at?this.pluralResolver.getSuffix(b,h.count,{ordinal:!1}):"",Zn=at&&!h.ordinal&&h.count===0&&this.pluralResolver.shouldUseIntlApi(),Ht=Zn&&h[`defaultValue${this.options.pluralSeparator}zero`]||h[`defaultValue${Xn}`]||h[`defaultValue${Er}`]||h.defaultValue;!this.isValidLookup(U)&&Ze&&(ze=!0,U=Ht),this.isValidLookup(U)||(lt=!0,U=j);const en=(h.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&lt?void 0:U,vt=Ze&&Ht!==U&&this.options.updateMissing;if(lt||ze||vt){if(this.logger.log(vt?"updateKey":"missingKey",b,z,j,vt?Ht:U),k){const qe=this.resolve(j,{...h,keySeparator:!1});qe&&qe.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let tn=[];const jn=this.languageUtils.getFallbackCodes(this.options.fallbackLng,h.lng||this.language);if(this.options.saveMissingTo==="fallback"&&jn&&jn[0])for(let qe=0;qe<jn.length;qe++)tn.push(jn[qe]);else this.options.saveMissingTo==="all"?tn=this.languageUtils.toResolveHierarchy(h.lng||this.language):tn.push(h.lng||this.language);const Tr=(qe,_t,bt)=>{const jr=Ze&&bt!==U?bt:en;this.options.missingKeyHandler?this.options.missingKeyHandler(qe,z,_t,jr,vt,h):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(qe,z,_t,jr,vt,h),this.emit("missingKey",qe,z,_t,U)};this.options.saveMissing&&(this.options.saveMissingPlurals&&at?tn.forEach(qe=>{const _t=this.pluralResolver.getSuffixes(qe,h);Zn&&h[`defaultValue${this.options.pluralSeparator}zero`]&&_t.indexOf(`${this.options.pluralSeparator}zero`)<0&&_t.push(`${this.options.pluralSeparator}zero`),_t.forEach(bt=>{Tr([qe],j+bt,h[`defaultValue${bt}`]||Ht)})}):Tr(tn,j,Ht))}U=this.extendTranslation(U,c,h,re,g),lt&&U===j&&this.options.appendNamespaceToMissingKey&&(U=`${z}:${j}`),(lt||ze)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?U=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${z}:${j}`:j,ze?U:void 0):U=this.options.parseMissingKeyHandler(U))}return x?(re.res=U,re.usedParams=this.getUsedParamsDetails(h),re):U}extendTranslation(c,h,g,x,k){var j=this;if(this.i18nFormat&&this.i18nFormat.parse)c=this.i18nFormat.parse(c,{...this.options.interpolation.defaultVariables,...g},g.lng||this.language||x.usedLng,x.usedNS,x.usedKey,{resolved:x});else if(!g.skipInterpolation){g.interpolation&&this.interpolator.init({...g,interpolation:{...this.options.interpolation,...g.interpolation}});const b=r(c)&&(g&&g.interpolation&&g.interpolation.skipOnVariables!==void 0?g.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let Y;if(b){const U=c.match(this.interpolator.nestingRegexp);Y=U&&U.length}let re=g.replace&&!r(g.replace)?g.replace:g;if(this.options.interpolation.defaultVariables&&(re={...this.options.interpolation.defaultVariables,...re}),c=this.interpolator.interpolate(c,re,g.lng||this.language||x.usedLng,g),b){const U=c.match(this.interpolator.nestingRegexp),pe=U&&U.length;Y<pe&&(g.nest=!1)}!g.lng&&this.options.compatibilityAPI!=="v1"&&x&&x.res&&(g.lng=this.language||x.usedLng),g.nest!==!1&&(c=this.interpolator.nest(c,function(){for(var U=arguments.length,pe=new Array(U),Le=0;Le<U;Le++)pe[Le]=arguments[Le];return k&&k[0]===pe[0]&&!g.context?(j.logger.warn(`It seems you are nesting recursively key: ${pe[0]} in key: ${h[0]}`),null):j.translate(...pe,h)},g)),g.interpolation&&this.interpolator.reset()}const I=g.postProcess||this.options.postProcess,z=r(I)?[I]:I;return c!=null&&z&&z.length&&g.applyPostProcessor!==!1&&(c=xe.handle(z,c,h,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...x,usedParams:this.getUsedParamsDetails(g)},...g}:g,this)),c}resolve(c){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g,x,k,j,I;return r(c)&&(c=[c]),c.forEach(z=>{if(this.isValidLookup(g))return;const b=this.extractFromKey(z,h),Y=b.key;x=Y;let re=b.namespaces;this.options.fallbackNS&&(re=re.concat(this.options.fallbackNS));const U=h.count!==void 0&&!r(h.count),pe=U&&!h.ordinal&&h.count===0&&this.pluralResolver.shouldUseIntlApi(),Le=h.context!==void 0&&(r(h.context)||typeof h.context=="number")&&h.context!=="",Ve=h.lngs?h.lngs:this.languageUtils.toResolveHierarchy(h.lng||this.language,h.fallbackLng);re.forEach(Ie=>{this.isValidLookup(g)||(I=Ie,!Ee[`${Ve[0]}-${Ie}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(I)&&(Ee[`${Ve[0]}-${Ie}`]=!0,this.logger.warn(`key "${x}" for languages "${Ve.join(", ")}" won't get resolved as namespace "${I}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),Ve.forEach(Je=>{if(this.isValidLookup(g))return;j=Je;const Xe=[Y];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(Xe,Y,Je,Ie,h);else{let ze;U&&(ze=this.pluralResolver.getSuffix(Je,h.count,h));const lt=`${this.options.pluralSeparator}zero`,at=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(U&&(Xe.push(Y+ze),h.ordinal&&ze.indexOf(at)===0&&Xe.push(Y+ze.replace(at,this.options.pluralSeparator)),pe&&Xe.push(Y+lt)),Le){const Ze=`${Y}${this.options.contextSeparator}${h.context}`;Xe.push(Ze),U&&(Xe.push(Ze+ze),h.ordinal&&ze.indexOf(at)===0&&Xe.push(Ze+ze.replace(at,this.options.pluralSeparator)),pe&&Xe.push(Ze+lt))}}let Nt;for(;Nt=Xe.pop();)this.isValidLookup(g)||(k=Nt,g=this.getResource(Je,Ie,Nt,h))}))})}),{res:g,usedKey:x,exactUsedKey:k,usedLng:j,usedNS:I}}isValidLookup(c){return c!==void 0&&!(!this.options.returnNull&&c===null)&&!(!this.options.returnEmptyString&&c==="")}getResource(c,h,g){let x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(c,h,g,x):this.resourceStore.getResource(c,h,g,x)}getUsedParamsDetails(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const h=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],g=c.replace&&!r(c.replace);let x=g?c.replace:c;if(g&&typeof c.count<"u"&&(x.count=c.count),this.options.interpolation.defaultVariables&&(x={...this.options.interpolation.defaultVariables,...x}),!g){x={...x};for(const k of h)delete x[k]}return x}static hasDefaultValue(c){const h="defaultValue";for(const g in c)if(Object.prototype.hasOwnProperty.call(c,g)&&h===g.substring(0,h.length)&&c[g]!==void 0)return!0;return!1}}const Re=S=>S.charAt(0).toUpperCase()+S.slice(1);class ye{constructor(c){this.options=c,this.supportedLngs=this.options.supportedLngs||!1,this.logger=q.create("languageUtils")}getScriptPartFromCode(c){if(c=he(c),!c||c.indexOf("-")<0)return null;const h=c.split("-");return h.length===2||(h.pop(),h[h.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(h.join("-"))}getLanguagePartFromCode(c){if(c=he(c),!c||c.indexOf("-")<0)return c;const h=c.split("-");return this.formatLanguageCode(h[0])}formatLanguageCode(c){if(r(c)&&c.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let x=Intl.getCanonicalLocales(c)[0];if(x&&this.options.lowerCaseLng&&(x=x.toLowerCase()),x)return x}catch{}const h=["hans","hant","latn","cyrl","cans","mong","arab"];let g=c.split("-");return this.options.lowerCaseLng?g=g.map(x=>x.toLowerCase()):g.length===2?(g[0]=g[0].toLowerCase(),g[1]=g[1].toUpperCase(),h.indexOf(g[1].toLowerCase())>-1&&(g[1]=Re(g[1].toLowerCase()))):g.length===3&&(g[0]=g[0].toLowerCase(),g[1].length===2&&(g[1]=g[1].toUpperCase()),g[0]!=="sgn"&&g[2].length===2&&(g[2]=g[2].toUpperCase()),h.indexOf(g[1].toLowerCase())>-1&&(g[1]=Re(g[1].toLowerCase())),h.indexOf(g[2].toLowerCase())>-1&&(g[2]=Re(g[2].toLowerCase()))),g.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?c.toLowerCase():c}isSupportedCode(c){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(c=this.getLanguagePartFromCode(c)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(c)>-1}getBestMatchFromCodes(c){if(!c)return null;let h;return c.forEach(g=>{if(h)return;const x=this.formatLanguageCode(g);(!this.options.supportedLngs||this.isSupportedCode(x))&&(h=x)}),!h&&this.options.supportedLngs&&c.forEach(g=>{if(h)return;const x=this.getLanguagePartFromCode(g);if(this.isSupportedCode(x))return h=x;h=this.options.supportedLngs.find(k=>{if(k===x)return k;if(!(k.indexOf("-")<0&&x.indexOf("-")<0)&&(k.indexOf("-")>0&&x.indexOf("-")<0&&k.substring(0,k.indexOf("-"))===x||k.indexOf(x)===0&&x.length>1))return k})}),h||(h=this.getFallbackCodes(this.options.fallbackLng)[0]),h}getFallbackCodes(c,h){if(!c)return[];if(typeof c=="function"&&(c=c(h)),r(c)&&(c=[c]),Array.isArray(c))return c;if(!h)return c.default||[];let g=c[h];return g||(g=c[this.getScriptPartFromCode(h)]),g||(g=c[this.formatLanguageCode(h)]),g||(g=c[this.getLanguagePartFromCode(h)]),g||(g=c.default),g||[]}toResolveHierarchy(c,h){const g=this.getFallbackCodes(h||this.options.fallbackLng||[],c),x=[],k=j=>{j&&(this.isSupportedCode(j)?x.push(j):this.logger.warn(`rejecting language code not found in supportedLngs: ${j}`))};return r(c)&&(c.indexOf("-")>-1||c.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&k(this.formatLanguageCode(c)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&k(this.getScriptPartFromCode(c)),this.options.load!=="currentOnly"&&k(this.getLanguagePartFromCode(c))):r(c)&&k(this.formatLanguageCode(c)),g.forEach(j=>{x.indexOf(j)<0&&k(this.formatLanguageCode(j))}),x}}let De=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],A={1:S=>+(S>1),2:S=>+(S!=1),3:S=>0,4:S=>S%10==1&&S%100!=11?0:S%10>=2&&S%10<=4&&(S%100<10||S%100>=20)?1:2,5:S=>S==0?0:S==1?1:S==2?2:S%100>=3&&S%100<=10?3:S%100>=11?4:5,6:S=>S==1?0:S>=2&&S<=4?1:2,7:S=>S==1?0:S%10>=2&&S%10<=4&&(S%100<10||S%100>=20)?1:2,8:S=>S==1?0:S==2?1:S!=8&&S!=11?2:3,9:S=>+(S>=2),10:S=>S==1?0:S==2?1:S<7?2:S<11?3:4,11:S=>S==1||S==11?0:S==2||S==12?1:S>2&&S<20?2:3,12:S=>+(S%10!=1||S%100==11),13:S=>+(S!==0),14:S=>S==1?0:S==2?1:S==3?2:3,15:S=>S%10==1&&S%100!=11?0:S%10>=2&&(S%100<10||S%100>=20)?1:2,16:S=>S%10==1&&S%100!=11?0:S!==0?1:2,17:S=>S==1||S%10==1&&S%100!=11?0:1,18:S=>S==0?0:S==1?1:2,19:S=>S==1?0:S==0||S%100>1&&S%100<11?1:S%100>10&&S%100<20?2:3,20:S=>S==1?0:S==0||S%100>0&&S%100<20?1:2,21:S=>S%100==1?1:S%100==2?2:S%100==3||S%100==4?3:0,22:S=>S==1?0:S==2?1:(S<0||S>10)&&S%10==0?2:3};const Q=["v1","v2","v3"],me=["v4"],je={zero:0,one:1,two:2,few:3,many:4,other:5},B=()=>{const S={};return De.forEach(c=>{c.lngs.forEach(h=>{S[h]={numbers:c.nr,plurals:A[c.fc]}})}),S};class ee{constructor(c){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=c,this.options=h,this.logger=q.create("pluralResolver"),(!this.options.compatibilityJSON||me.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=B(),this.pluralRulesCache={}}addRule(c,h){this.rules[c]=h}clearCache(){this.pluralRulesCache={}}getRule(c){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const g=he(c==="dev"?"en":c),x=h.ordinal?"ordinal":"cardinal",k=JSON.stringify({cleanedCode:g,type:x});if(k in this.pluralRulesCache)return this.pluralRulesCache[k];let j;try{j=new Intl.PluralRules(g,{type:x})}catch{if(!c.match(/-|_/))return;const z=this.languageUtils.getLanguagePartFromCode(c);j=this.getRule(z,h)}return this.pluralRulesCache[k]=j,j}return this.rules[c]||this.rules[this.languageUtils.getLanguagePartFromCode(c)]}needsPlural(c){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const g=this.getRule(c,h);return this.shouldUseIntlApi()?g&&g.resolvedOptions().pluralCategories.length>1:g&&g.numbers.length>1}getPluralFormsOfKey(c,h){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(c,g).map(x=>`${h}${x}`)}getSuffixes(c){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const g=this.getRule(c,h);return g?this.shouldUseIntlApi()?g.resolvedOptions().pluralCategories.sort((x,k)=>je[x]-je[k]).map(x=>`${this.options.prepend}${h.ordinal?`ordinal${this.options.prepend}`:""}${x}`):g.numbers.map(x=>this.getSuffix(c,x,h)):[]}getSuffix(c,h){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const x=this.getRule(c,g);return x?this.shouldUseIntlApi()?`${this.options.prepend}${g.ordinal?`ordinal${this.options.prepend}`:""}${x.select(h)}`:this.getSuffixRetroCompatible(x,h):(this.logger.warn(`no plural rule found for: ${c}`),"")}getSuffixRetroCompatible(c,h){const g=c.noAbs?c.plurals(h):c.plurals(Math.abs(h));let x=c.numbers[g];this.options.simplifyPluralSuffix&&c.numbers.length===2&&c.numbers[0]===1&&(x===2?x="plural":x===1&&(x=""));const k=()=>this.options.prepend&&x.toString()?this.options.prepend+x.toString():x.toString();return this.options.compatibilityJSON==="v1"?x===1?"":typeof x=="number"?`_plural_${x.toString()}`:k():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&c.numbers.length===2&&c.numbers[0]===1?k():this.options.prepend&&g.toString()?this.options.prepend+g.toString():g.toString()}shouldUseIntlApi(){return!Q.includes(this.options.compatibilityJSON)}}const Z=function(S,c,h){let g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",x=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,k=L(S,c,h);return!k&&x&&r(h)&&(k=de(S,h,g),k===void 0&&(k=de(c,h,g))),k},K=S=>S.replace(/\$/g,"$$$$");class ne{constructor(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=q.create("interpolator"),this.options=c,this.format=c.interpolation&&c.interpolation.format||(h=>h),this.init(c)}init(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};c.interpolation||(c.interpolation={escapeValue:!0});const{escape:h,escapeValue:g,useRawValueToEscape:x,prefix:k,prefixEscaped:j,suffix:I,suffixEscaped:z,formatSeparator:b,unescapeSuffix:Y,unescapePrefix:re,nestingPrefix:U,nestingPrefixEscaped:pe,nestingSuffix:Le,nestingSuffixEscaped:Ve,nestingOptionsSeparator:Ie,maxReplaces:Je,alwaysFormat:Xe}=c.interpolation;this.escape=h!==void 0?h:R,this.escapeValue=g!==void 0?g:!0,this.useRawValueToEscape=x!==void 0?x:!1,this.prefix=k?M(k):j||"{{",this.suffix=I?M(I):z||"}}",this.formatSeparator=b||",",this.unescapePrefix=Y?"":re||"-",this.unescapeSuffix=this.unescapePrefix?"":Y||"",this.nestingPrefix=U?M(U):pe||M("$t("),this.nestingSuffix=Le?M(Le):Ve||M(")"),this.nestingOptionsSeparator=Ie||",",this.maxReplaces=Je||1e3,this.alwaysFormat=Xe!==void 0?Xe:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const c=(h,g)=>h&&h.source===g?(h.lastIndex=0,h):new RegExp(g,"g");this.regexp=c(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=c(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=c(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(c,h,g,x){let k,j,I;const z=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},b=pe=>{if(pe.indexOf(this.formatSeparator)<0){const Je=Z(h,z,pe,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(Je,void 0,g,{...x,...h,interpolationkey:pe}):Je}const Le=pe.split(this.formatSeparator),Ve=Le.shift().trim(),Ie=Le.join(this.formatSeparator).trim();return this.format(Z(h,z,Ve,this.options.keySeparator,this.options.ignoreJSONStructure),Ie,g,{...x,...h,interpolationkey:Ve})};this.resetRegExp();const Y=x&&x.missingInterpolationHandler||this.options.missingInterpolationHandler,re=x&&x.interpolation&&x.interpolation.skipOnVariables!==void 0?x.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:pe=>K(pe)},{regex:this.regexp,safeValue:pe=>this.escapeValue?K(this.escape(pe)):K(pe)}].forEach(pe=>{for(I=0;k=pe.regex.exec(c);){const Le=k[1].trim();if(j=b(Le),j===void 0)if(typeof Y=="function"){const Ie=Y(c,k,x);j=r(Ie)?Ie:""}else if(x&&Object.prototype.hasOwnProperty.call(x,Le))j="";else if(re){j=k[0];continue}else this.logger.warn(`missed to pass in variable ${Le} for interpolating ${c}`),j="";else!r(j)&&!this.useRawValueToEscape&&(j=o(j));const Ve=pe.safeValue(j);if(c=c.replace(k[0],Ve),re?(pe.regex.lastIndex+=j.length,pe.regex.lastIndex-=k[0].length):pe.regex.lastIndex=0,I++,I>=this.maxReplaces)break}}),c}nest(c,h){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},x,k,j;const I=(z,b)=>{const Y=this.nestingOptionsSeparator;if(z.indexOf(Y)<0)return z;const re=z.split(new RegExp(`${Y}[ ]*{`));let U=`{${re[1]}`;z=re[0],U=this.interpolate(U,j);const pe=U.match(/'/g),Le=U.match(/"/g);(pe&&pe.length%2===0&&!Le||Le.length%2!==0)&&(U=U.replace(/'/g,'"'));try{j=JSON.parse(U),b&&(j={...b,...j})}catch(Ve){return this.logger.warn(`failed parsing options string in nesting for key ${z}`,Ve),`${z}${Y}${U}`}return j.defaultValue&&j.defaultValue.indexOf(this.prefix)>-1&&delete j.defaultValue,z};for(;x=this.nestingRegexp.exec(c);){let z=[];j={...g},j=j.replace&&!r(j.replace)?j.replace:j,j.applyPostProcessor=!1,delete j.defaultValue;let b=!1;if(x[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(x[1])){const Y=x[1].split(this.formatSeparator).map(re=>re.trim());x[1]=Y.shift(),z=Y,b=!0}if(k=h(I.call(this,x[1].trim(),j),j),k&&x[0]===c&&!r(k))return k;r(k)||(k=o(k)),k||(this.logger.warn(`missed to resolve ${x[1]} for nesting ${c}`),k=""),b&&(k=z.reduce((Y,re)=>this.format(Y,re,g.lng,{...g,interpolationkey:x[1].trim()}),k.trim())),c=c.replace(x[0],k),this.regexp.lastIndex=0}return c}}const _e=S=>{let c=S.toLowerCase().trim();const h={};if(S.indexOf("(")>-1){const g=S.split("(");c=g[0].toLowerCase().trim();const x=g[1].substring(0,g[1].length-1);c==="currency"&&x.indexOf(":")<0?h.currency||(h.currency=x.trim()):c==="relativetime"&&x.indexOf(":")<0?h.range||(h.range=x.trim()):x.split(";").forEach(j=>{if(j){const[I,...z]=j.split(":"),b=z.join(":").trim().replace(/^'+|'+$/g,""),Y=I.trim();h[Y]||(h[Y]=b),b==="false"&&(h[Y]=!1),b==="true"&&(h[Y]=!0),isNaN(b)||(h[Y]=parseInt(b,10))}})}return{formatName:c,formatOptions:h}},Qe=S=>{const c={};return(h,g,x)=>{let k=x;x&&x.interpolationkey&&x.formatParams&&x.formatParams[x.interpolationkey]&&x[x.interpolationkey]&&(k={...k,[x.interpolationkey]:void 0});const j=g+JSON.stringify(k);let I=c[j];return I||(I=S(he(g),x),c[j]=I),I(h)}};class Tt{constructor(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=q.create("formatter"),this.options=c,this.formats={number:Qe((h,g)=>{const x=new Intl.NumberFormat(h,{...g});return k=>x.format(k)}),currency:Qe((h,g)=>{const x=new Intl.NumberFormat(h,{...g,style:"currency"});return k=>x.format(k)}),datetime:Qe((h,g)=>{const x=new Intl.DateTimeFormat(h,{...g});return k=>x.format(k)}),relativetime:Qe((h,g)=>{const x=new Intl.RelativeTimeFormat(h,{...g});return k=>x.format(k,g.range||"day")}),list:Qe((h,g)=>{const x=new Intl.ListFormat(h,{...g});return k=>x.format(k)})},this.init(c)}init(c){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=h.interpolation.formatSeparator||","}add(c,h){this.formats[c.toLowerCase().trim()]=h}addCached(c,h){this.formats[c.toLowerCase().trim()]=Qe(h)}format(c,h,g){let x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const k=h.split(this.formatSeparator);if(k.length>1&&k[0].indexOf("(")>1&&k[0].indexOf(")")<0&&k.find(I=>I.indexOf(")")>-1)){const I=k.findIndex(z=>z.indexOf(")")>-1);k[0]=[k[0],...k.splice(1,I)].join(this.formatSeparator)}return k.reduce((I,z)=>{const{formatName:b,formatOptions:Y}=_e(z);if(this.formats[b]){let re=I;try{const U=x&&x.formatParams&&x.formatParams[x.interpolationkey]||{},pe=U.locale||U.lng||x.locale||x.lng||g;re=this.formats[b](I,pe,{...Y,...x,...U})}catch(U){this.logger.warn(U)}return re}else this.logger.warn(`there was no format function for ${b}`);return I},c)}}const gt=(S,c)=>{S.pending[c]!==void 0&&(delete S.pending[c],S.pendingCount--)};class Zi extends oe{constructor(c,h,g){let x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=c,this.store=h,this.services=g,this.languageUtils=g.languageUtils,this.options=x,this.logger=q.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=x.maxParallelReads||10,this.readingCalls=0,this.maxRetries=x.maxRetries>=0?x.maxRetries:5,this.retryTimeout=x.retryTimeout>=1?x.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(g,x.backend,x)}queueLoad(c,h,g,x){const k={},j={},I={},z={};return c.forEach(b=>{let Y=!0;h.forEach(re=>{const U=`${b}|${re}`;!g.reload&&this.store.hasResourceBundle(b,re)?this.state[U]=2:this.state[U]<0||(this.state[U]===1?j[U]===void 0&&(j[U]=!0):(this.state[U]=1,Y=!1,j[U]===void 0&&(j[U]=!0),k[U]===void 0&&(k[U]=!0),z[re]===void 0&&(z[re]=!0)))}),Y||(I[b]=!0)}),(Object.keys(k).length||Object.keys(j).length)&&this.queue.push({pending:j,pendingCount:Object.keys(j).length,loaded:{},errors:[],callback:x}),{toLoad:Object.keys(k),pending:Object.keys(j),toLoadLanguages:Object.keys(I),toLoadNamespaces:Object.keys(z)}}loaded(c,h,g){const x=c.split("|"),k=x[0],j=x[1];h&&this.emit("failedLoading",k,j,h),!h&&g&&this.store.addResourceBundle(k,j,g,void 0,void 0,{skipCopy:!0}),this.state[c]=h?-1:2,h&&g&&(this.state[c]=0);const I={};this.queue.forEach(z=>{C(z.loaded,[k],j),gt(z,c),h&&z.errors.push(h),z.pendingCount===0&&!z.done&&(Object.keys(z.loaded).forEach(b=>{I[b]||(I[b]={});const Y=z.loaded[b];Y.length&&Y.forEach(re=>{I[b][re]===void 0&&(I[b][re]=!0)})}),z.done=!0,z.errors.length?z.callback(z.errors):z.callback())}),this.emit("loaded",I),this.queue=this.queue.filter(z=>!z.done)}read(c,h,g){let x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,k=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,j=arguments.length>5?arguments[5]:void 0;if(!c.length)return j(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:c,ns:h,fcName:g,tried:x,wait:k,callback:j});return}this.readingCalls++;const I=(b,Y)=>{if(this.readingCalls--,this.waitingReads.length>0){const re=this.waitingReads.shift();this.read(re.lng,re.ns,re.fcName,re.tried,re.wait,re.callback)}if(b&&Y&&x<this.maxRetries){setTimeout(()=>{this.read.call(this,c,h,g,x+1,k*2,j)},k);return}j(b,Y)},z=this.backend[g].bind(this.backend);if(z.length===2){try{const b=z(c,h);b&&typeof b.then=="function"?b.then(Y=>I(null,Y)).catch(I):I(null,b)}catch(b){I(b)}return}return z(c,h,I)}prepareLoading(c,h){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},x=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),x&&x();r(c)&&(c=this.languageUtils.toResolveHierarchy(c)),r(h)&&(h=[h]);const k=this.queueLoad(c,h,g,x);if(!k.toLoad.length)return k.pending.length||x(),null;k.toLoad.forEach(j=>{this.loadOne(j)})}load(c,h,g){this.prepareLoading(c,h,{},g)}reload(c,h,g){this.prepareLoading(c,h,{reload:!0},g)}loadOne(c){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const g=c.split("|"),x=g[0],k=g[1];this.read(x,k,"read",void 0,void 0,(j,I)=>{j&&this.logger.warn(`${h}loading namespace ${k} for language ${x} failed`,j),!j&&I&&this.logger.log(`${h}loaded namespace ${k} for language ${x}`,I),this.loaded(c,j,I)})}saveMissing(c,h,g,x,k){let j=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},I=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(h)){this.logger.warn(`did not save key "${g}" as the namespace "${h}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(g==null||g==="")){if(this.backend&&this.backend.create){const z={...j,isUpdate:k},b=this.backend.create.bind(this.backend);if(b.length<6)try{let Y;b.length===5?Y=b(c,h,g,x,z):Y=b(c,h,g,x),Y&&typeof Y.then=="function"?Y.then(re=>I(null,re)).catch(I):I(null,Y)}catch(Y){I(Y)}else b(c,h,g,x,I,z)}!c||!c[0]||this.store.addResource(c[0],h,g,x)}}}const Vt=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:S=>{let c={};if(typeof S[1]=="object"&&(c=S[1]),r(S[1])&&(c.defaultValue=S[1]),r(S[2])&&(c.tDescription=S[2]),typeof S[2]=="object"||typeof S[3]=="object"){const h=S[3]||S[2];Object.keys(h).forEach(g=>{c[g]=h[g]})}return c},interpolation:{escapeValue:!0,format:S=>S,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),jt=S=>(r(S.ns)&&(S.ns=[S.ns]),r(S.fallbackLng)&&(S.fallbackLng=[S.fallbackLng]),r(S.fallbackNS)&&(S.fallbackNS=[S.fallbackNS]),S.supportedLngs&&S.supportedLngs.indexOf("cimode")<0&&(S.supportedLngs=S.supportedLngs.concat(["cimode"])),S),Tn=()=>{},Gi=S=>{Object.getOwnPropertyNames(Object.getPrototypeOf(S)).forEach(h=>{typeof S[h]=="function"&&(S[h]=S[h].bind(S))})};class Rt extends oe{constructor(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=arguments.length>1?arguments[1]:void 0;if(super(),this.options=jt(c),this.services={},this.logger=q,this.modules={external:[]},Gi(this),h&&!this.isInitialized&&!c.isClone){if(!this.options.initImmediate)return this.init(c,h),this;setTimeout(()=>{this.init(c,h)},0)}}init(){var c=this;let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof h=="function"&&(g=h,h={}),!h.defaultNS&&h.defaultNS!==!1&&h.ns&&(r(h.ns)?h.defaultNS=h.ns:h.ns.indexOf("translation")<0&&(h.defaultNS=h.ns[0]));const x=Vt();this.options={...x,...this.options,...jt(h)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...x.interpolation,...this.options.interpolation}),h.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=h.keySeparator),h.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=h.nsSeparator);const k=Y=>Y?typeof Y=="function"?new Y:Y:null;if(!this.options.isClone){this.modules.logger?q.init(k(this.modules.logger),this.options):q.init(null,this.options);let Y;this.modules.formatter?Y=this.modules.formatter:typeof Intl<"u"&&(Y=Tt);const re=new ye(this.options);this.store=new Pe(this.options.resources,this.options);const U=this.services;U.logger=q,U.resourceStore=this.store,U.languageUtils=re,U.pluralResolver=new ee(re,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),Y&&(!this.options.interpolation.format||this.options.interpolation.format===x.interpolation.format)&&(U.formatter=k(Y),U.formatter.init(U,this.options),this.options.interpolation.format=U.formatter.format.bind(U.formatter)),U.interpolator=new ne(this.options),U.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},U.backendConnector=new Zi(k(this.modules.backend),U.resourceStore,U,this.options),U.backendConnector.on("*",function(pe){for(var Le=arguments.length,Ve=new Array(Le>1?Le-1:0),Ie=1;Ie<Le;Ie++)Ve[Ie-1]=arguments[Ie];c.emit(pe,...Ve)}),this.modules.languageDetector&&(U.languageDetector=k(this.modules.languageDetector),U.languageDetector.init&&U.languageDetector.init(U,this.options.detection,this.options)),this.modules.i18nFormat&&(U.i18nFormat=k(this.modules.i18nFormat),U.i18nFormat.init&&U.i18nFormat.init(this)),this.translator=new ke(this.services,this.options),this.translator.on("*",function(pe){for(var Le=arguments.length,Ve=new Array(Le>1?Le-1:0),Ie=1;Ie<Le;Ie++)Ve[Ie-1]=arguments[Ie];c.emit(pe,...Ve)}),this.modules.external.forEach(pe=>{pe.init&&pe.init(this)})}if(this.format=this.options.interpolation.format,g||(g=Tn),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const Y=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);Y.length>0&&Y[0]!=="dev"&&(this.options.lng=Y[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(Y=>{this[Y]=function(){return c.store[Y](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(Y=>{this[Y]=function(){return c.store[Y](...arguments),c}});const z=i(),b=()=>{const Y=(re,U)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),z.resolve(U),g(re,U)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return Y(null,this.t.bind(this));this.changeLanguage(this.options.lng,Y)};return this.options.resources||!this.options.initImmediate?b():setTimeout(b,0),z}loadResources(c){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Tn;const x=r(c)?c:this.language;if(typeof c=="function"&&(g=c),!this.options.resources||this.options.partialBundledLanguages){if(x&&x.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return g();const k=[],j=I=>{if(!I||I==="cimode")return;this.services.languageUtils.toResolveHierarchy(I).forEach(b=>{b!=="cimode"&&k.indexOf(b)<0&&k.push(b)})};x?j(x):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(z=>j(z)),this.options.preload&&this.options.preload.forEach(I=>j(I)),this.services.backendConnector.load(k,this.options.ns,I=>{!I&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),g(I)})}else g(null)}reloadResources(c,h,g){const x=i();return typeof c=="function"&&(g=c,c=void 0),typeof h=="function"&&(g=h,h=void 0),c||(c=this.languages),h||(h=this.options.ns),g||(g=Tn),this.services.backendConnector.reload(c,h,k=>{x.resolve(),g(k)}),x}use(c){if(!c)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!c.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return c.type==="backend"&&(this.modules.backend=c),(c.type==="logger"||c.log&&c.warn&&c.error)&&(this.modules.logger=c),c.type==="languageDetector"&&(this.modules.languageDetector=c),c.type==="i18nFormat"&&(this.modules.i18nFormat=c),c.type==="postProcessor"&&xe.addPostProcessor(c),c.type==="formatter"&&(this.modules.formatter=c),c.type==="3rdParty"&&this.modules.external.push(c),this}setResolvedLanguage(c){if(!(!c||!this.languages)&&!(["cimode","dev"].indexOf(c)>-1))for(let h=0;h<this.languages.length;h++){const g=this.languages[h];if(!(["cimode","dev"].indexOf(g)>-1)&&this.store.hasLanguageSomeTranslations(g)){this.resolvedLanguage=g;break}}}changeLanguage(c,h){var g=this;this.isLanguageChangingTo=c;const x=i();this.emit("languageChanging",c);const k=z=>{this.language=z,this.languages=this.services.languageUtils.toResolveHierarchy(z),this.resolvedLanguage=void 0,this.setResolvedLanguage(z)},j=(z,b)=>{b?(k(b),this.translator.changeLanguage(b),this.isLanguageChangingTo=void 0,this.emit("languageChanged",b),this.logger.log("languageChanged",b)):this.isLanguageChangingTo=void 0,x.resolve(function(){return g.t(...arguments)}),h&&h(z,function(){return g.t(...arguments)})},I=z=>{!c&&!z&&this.services.languageDetector&&(z=[]);const b=r(z)?z:this.services.languageUtils.getBestMatchFromCodes(z);b&&(this.language||k(b),this.translator.language||this.translator.changeLanguage(b),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(b)),this.loadResources(b,Y=>{j(Y,b)})};return!c&&this.services.languageDetector&&!this.services.languageDetector.async?I(this.services.languageDetector.detect()):!c&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(I):this.services.languageDetector.detect(I):I(c),x}getFixedT(c,h,g){var x=this;const k=function(j,I){let z;if(typeof I!="object"){for(var b=arguments.length,Y=new Array(b>2?b-2:0),re=2;re<b;re++)Y[re-2]=arguments[re];z=x.options.overloadTranslationOptionHandler([j,I].concat(Y))}else z={...I};z.lng=z.lng||k.lng,z.lngs=z.lngs||k.lngs,z.ns=z.ns||k.ns,z.keyPrefix!==""&&(z.keyPrefix=z.keyPrefix||g||k.keyPrefix);const U=x.options.keySeparator||".";let pe;return z.keyPrefix&&Array.isArray(j)?pe=j.map(Le=>`${z.keyPrefix}${U}${Le}`):pe=z.keyPrefix?`${z.keyPrefix}${U}${j}`:j,x.t(pe,z)};return r(c)?k.lng=c:k.lngs=c,k.ns=h,k.keyPrefix=g,k}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(c){this.options.defaultNS=c}hasLoadedNamespace(c){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const g=h.lng||this.resolvedLanguage||this.languages[0],x=this.options?this.options.fallbackLng:!1,k=this.languages[this.languages.length-1];if(g.toLowerCase()==="cimode")return!0;const j=(I,z)=>{const b=this.services.backendConnector.state[`${I}|${z}`];return b===-1||b===0||b===2};if(h.precheck){const I=h.precheck(this,j);if(I!==void 0)return I}return!!(this.hasResourceBundle(g,c)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||j(g,c)&&(!x||j(k,c)))}loadNamespaces(c,h){const g=i();return this.options.ns?(r(c)&&(c=[c]),c.forEach(x=>{this.options.ns.indexOf(x)<0&&this.options.ns.push(x)}),this.loadResources(x=>{g.resolve(),h&&h(x)}),g):(h&&h(),Promise.resolve())}loadLanguages(c,h){const g=i();r(c)&&(c=[c]);const x=this.options.preload||[],k=c.filter(j=>x.indexOf(j)<0&&this.services.languageUtils.isSupportedCode(j));return k.length?(this.options.preload=x.concat(k),this.loadResources(j=>{g.resolve(),h&&h(j)}),g):(h&&h(),Promise.resolve())}dir(c){if(c||(c=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!c)return"rtl";const h=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],g=this.services&&this.services.languageUtils||new ye(Vt());return h.indexOf(g.getLanguagePartFromCode(c))>-1||c.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=arguments.length>1?arguments[1]:void 0;return new Rt(c,h)}cloneInstance(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Tn;const g=c.forkResourceStore;g&&delete c.forkResourceStore;const x={...this.options,...c,isClone:!0},k=new Rt(x);return(c.debug!==void 0||c.prefix!==void 0)&&(k.logger=k.logger.clone(c)),["store","services","language"].forEach(I=>{k[I]=this[I]}),k.services={...this.services},k.services.utils={hasLoadedNamespace:k.hasLoadedNamespace.bind(k)},g&&(k.store=new Pe(this.store.data,x),k.services.resourceStore=k.store),k.translator=new ke(k.services,x),k.translator.on("*",function(I){for(var z=arguments.length,b=new Array(z>1?z-1:0),Y=1;Y<z;Y++)b[Y-1]=arguments[Y];k.emit(I,...b)}),k.init(x,h),k.translator.options=x,k.translator.backendConnector.services.utils={hasLoadedNamespace:k.hasLoadedNamespace.bind(k)},k}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Pr=Rt.createInstance();return Pr.createInstance=Rt.createInstance,Ji=Pr,Ji}const Wh=[{code:"af",label:"Afrikaans"},{code:"ar",label:"Arabic"},{code:"bg",label:"Bulgarian"},{code:"bn",label:"Bengali"},{code:"bs",label:"Bosnian"},{code:"ca",label:"Catalan"},{code:"cs",label:"Czech"},{code:"da",label:"Danish"},{code:"de",label:"German"},{code:"de-CH",label:"Swiss German"},{code:"el",label:"Greek"},{code:"en",label:"English"},{code:"eo",label:"Esperanto"},{code:"es",label:"Spanish"},{code:"et",label:"Estonian"},{code:"eu",label:"Basque"},{code:"fa",label:"Persian/Farsi"},{code:"fi",label:"Finnish"},{code:"fr",label:"French"},{code:"gd",label:"Gaelic (Scottish)"},{code:"he",label:"Hebrew"},{code:"hi",label:"Hindi"},{code:"hr",label:"Croatian"},{code:"hu",label:"Hungarian"},{code:"id",label:"Indonesian"},{code:"is",label:"Icelandic"},{code:"it",label:"Italian"},{code:"ja",label:"Japanese"},{code:"ko",label:"Korean"},{code:"kz",label:"Kazakh"},{code:"lt",label:"Lithuanian"},{code:"lv",label:"Latvian"},{code:"mk",label:"Macedonian"},{code:"mn",label:"Mongolian"},{code:"ms",label:"Malay"},{code:"nb",label:"Norwegian Bokmål"},{code:"ne",label:"Nepali"},{code:"nl",label:"Dutch"},{code:"nn",label:"Norwegian Nynorsk"},{code:"pa",label:"Punjabi"},{code:"pl",label:"Polish"},{code:"pt",label:"Portuguese"},{code:"pt-BR",label:"Portuguese (Brazil)"},{code:"ro",label:"Romanian"},{code:"ru",label:"Russian"},{code:"si",label:"Sinhala"},{code:"sk",label:"Slovak"},{code:"sl",label:"Slovenian"},{code:"sq",label:"Albanian"},{code:"sr",label:"Serbian"},{code:"sr-Cyrl",label:"Serbian (Cyrillic)"},{code:"sv",label:"Swedish"},{code:"sw",label:"Swahili"},{code:"ta",label:"Tamil"},{code:"th",label:"Thai"},{code:"tr",label:"Turkish"},{code:"uk",label:"Ukrainian"},{code:"ur",label:"Urdu"},{code:"uz",label:"Uzbek"},{code:"vi",label:"Vietnamese"},{code:"zh",label:"Chinese"},{code:"zh-Hant",label:"Traditional Chinese"}];var Xi,hu;function Qh(){if(hu)return Xi;hu=1;const r=Kh(),i=Wh,o=i.map(d=>d.code);function l(d,m){return d.reduce((v,y)=>{let C;try{C=au("/ghost/i18n/lib")(`../locales/${y}/${m}.json`)}catch{C=au("/ghost/i18n/lib")(`../locales/en/${m}.json`)}return v[y]={[m]:{...C,...C.default&&typeof C.default=="object"?C.default:{}}},v},{})}function a({generateThemeResources:d}){return(m="en",v="portal",y={})=>{const C=r.createInstance(),E={prefix:"{",suffix:"}"};(v==="theme"||v==="portal")&&(E.escapeValue=!1);let L;return v!=="theme"?L=l(o,v):L=d(m,y),C.init({lng:m,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:{no:["nb","en"],default:["en"]},ns:v,defaultNS:v,interpolation:E,resources:L}),C}}return Xi={createI18n:a,generateResources:l,LOCALE_DATA:i,SUPPORTED_LOCALES:o},Xi}var du;function Yh(){if(du)return Jn.exports;du=1;const{createI18n:r,generateResources:i,LOCALE_DATA:o,SUPPORTED_LOCALES:l}=Qh();function a(m){return{[m]:{theme:{}}}}const d=r({generateThemeResources:a});return Jn.exports=d,Jn.exports.SUPPORTED_LOCALES=l,Jn.exports.LOCALE_DATA=o,Jn.exports.generateResources=i,Jn.exports}var pu;function Jh(){if(pu)return En.exports;pu=1;const r=Yh();return En.exports=r,En.exports.default=r,En.exports.LOCALE_DATA=r.LOCALE_DATA,En.exports.SUPPORTED_LOCALES=r.SUPPORTED_LOCALES,En.exports.generateResources=r.generateResources,En.exports}var Xh=Jh();const Zh=$i(Xh);class Gh extends Xt.Component{constructor(i){super(i);const o=this.props.locale||"en",l=Zh(o,"search"),a=l.dir()||"ltr",d=new If({adminUrl:i.adminUrl,apiKey:i.apiKey,dir:a});this.state={searchIndex:d,showPopup:!1,indexStarted:!1,indexComplete:!1,t:l.t,dir:a,scrollbarWidth:0},this.inputRef=Xt.createRef()}componentDidMount(){const i=this.getScrollbarWidth();this.setState({scrollbarWidth:i}),this.initSetup()}componentDidUpdate(i,o){if(o.showPopup!==this.state.showPopup)try{this.state.showPopup?(this.bodyScroll=window.document?.body?.style?.overflow,this.bodyMargin=window.getComputedStyle(document.body).getPropertyValue("margin-right"),window.document.body.style.overflow="hidden",this.state.scrollbarWidth&&document.body.scrollHeight>window.innerHeight&&(window.document.body.style.marginRight=`calc(${this.bodyMargin} + ${this.state.scrollbarWidth}px)`)):(window.document.body.style.overflow=this.bodyScroll||"",!this.bodyMargin||this.bodyMargin==="0px"?window.document.body.style.marginRight="":window.document.body.style.marginRight=this.bodyMargin)}catch{}this.state.showPopup!==o?.showPopup&&!this.state.showPopup&&this.setState({searchValue:""}),this.state.showPopup&&!this.state.indexStarted&&this.setupSearchIndex()}async setupSearchIndex(){this.setState({indexStarted:!0}),await this.state.searchIndex.init(),this.setState({indexComplete:!0})}componentWillUnmount(){window.removeEventListener("hashchange",this.hashHandler,!1),window.removeEventListener("keydown",this.handleKeyDown,!1)}initSetup(){this.handleSearchUrl(),this.addKeyboardShortcuts(),this.setupCustomTriggerButton(),this.hashHandler=()=>{this.handleSearchUrl()},window.addEventListener("hashchange",this.hashHandler,!1)}getScrollbarWidth(){const i=document.createElement("div");i.style.visibility="hidden",i.style.overflow="scroll",document.body.appendChild(i);const o=i.offsetWidth-i.clientWidth;return document.body.removeChild(i),o}setupCustomTriggerButton(){this.clickHandler=i=>{i.preventDefault(),this.setState({showPopup:!0});const o=document.createElement("input");o.style.opacity="0",o.style.position="fixed",o.style.top="0",document.body.appendChild(o),o.focus(),setTimeout(()=>{this.inputRef.current.focus(),document.body.removeChild(o)},150)},this.customTriggerButtons=this.getCustomTriggerButtons(),this.customTriggerButtons.forEach(i=>{i.removeEventListener("click",this.clickHandler),i.addEventListener("click",this.clickHandler)})}getCustomTriggerButtons(){return document.querySelectorAll("[data-ghost-search]")||[]}handleSearchUrl(){const[i]=window.location.hash.substr(1).split("?");(i==="/search"||i==="/search/")&&(this.setState({showPopup:!0}),window.history.replaceState("",document.title,window.location.pathname))}addKeyboardShortcuts(){this.getCustomTriggerButtons()?.length&&(this.handleKeyDown=o=>{if(o.key==="k"&&o.metaKey)return this.setState({showPopup:!0}),o.preventDefault(),o.stopPropagation(),!1},document.addEventListener("keydown",this.handleKeyDown))}render(){return G.jsx(nt.Provider,{value:{page:"search",showPopup:this.state.showPopup,adminUrl:this.props.adminUrl,stylesUrl:this.props.stylesUrl,searchIndex:this.state.searchIndex,indexComplete:this.state.indexComplete,searchValue:this.state.searchValue,inputRef:this.inputRef,onAction:()=>{},dispatch:(i,o)=>{i==="update"&&this.setState({...this.state,...o})},t:this.state.t,dir:this.state.dir},children:G.jsx(df,{})})}}const gu="sodo-search-root";function qh(){const r=document.createElement("div");r.id=gu,document.body.appendChild(r)}function ed(){const r=document.querySelector("script[data-sodo-search]");if(r){const i=r.dataset.sodoSearch,o=r.dataset.key,l=r.dataset.styles,a=r.dataset.locale||"en";return{adminUrl:i,apiKey:o,stylesUrl:l,locale:a}}return{}}function td(){qh()}function nd(){const{adminUrl:r,apiKey:i,stylesUrl:o,locale:l}=ed(),a=(r||window.location.origin)?.replace(/\/+$/,"");td(),Uc.render(G.jsx(Xt.StrictMode,{children:G.jsx(Gh,{adminUrl:a,apiKey:i,stylesUrl:o,locale:l})}),document.getElementById(gu))}nd();const rd=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}))}));
17
+ `,i=this.context.stylesUrl;return i?F.jsxs(F.Fragment,{children:[F.jsx("link",{rel:"stylesheet",href:i}),F.jsx("style",{dangerouslySetInnerHTML:{__html:s}}),F.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"})]}):F.jsxs(F.Fragment,{children:[F.jsx("style",{dangerouslySetInnerHTML:{__html:s}}),F.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"})]})}renderFrameContainer(){const s=uf(),i={...s.frame.common};return F.jsx("div",{style:s.modalContainer,className:"gh-root-frame",children:F.jsxs(of,{style:i,title:"portal-popup",head:this.renderFrameStyles(),searchdir:this.context.dir,children:[F.jsx("div",{onClick:o=>this.handlePopupClose(o),className:"absolute top-0 bottom-0 left-0 right-0 block backdrop-blur-[2px] animate-fadein z-0 bg-gradient-to-br from-[rgba(0,0,0,0.2)] to-[rgba(0,0,0,0.1)]"}),F.jsx(cf,{})]})})}render(){const{showPopup:s}=this.context;return s?this.renderFrameContainer():null}}var J;function je(r,s,i){const o=typeof i,l=typeof r;if(o!=="undefined"){if(l!=="undefined"){if(i){if(l==="function"&&o===l)return function(p){return r(i(p))};if(s=r.constructor,s===i.constructor){if(s===Array)return i.concat(r);if(s===Map){var c=new Map(i);for(var f of r)c.set(f[0],f[1]);return c}if(s===Set){f=new Set(i);for(c of r.values())f.add(c);return f}}}return r}return i}return l==="undefined"?s:r}function un(r,s){return typeof r>"u"?s:r}function Te(){return Object.create(null)}function et(r){return typeof r=="string"}function Kn(r){return typeof r=="object"}function Wn(r,s){if(et(s))r=r[s];else for(let i=0;r&&i<s.length;i++)r=r[s[i]];return r}const Af=/[^\p{L}\p{N}]+/u,jf=/(\d{3})/g,Lf=/(\D)(\d{3})/g,Of=/(\d{3})(\D)/g,Al=/[\u0300-\u036f]/g;function cn(r={}){if(!this||this.constructor!==cn)return new cn(...arguments);if(arguments.length)for(r=0;r<arguments.length;r++)this.assign(arguments[r]);else this.assign(r)}J=cn.prototype,J.assign=function(r){this.normalize=je(r.normalize,!0,this.normalize);let s=r.include,i=s||r.exclude||r.split,o;if(i||i===""){if(typeof i=="object"&&i.constructor!==RegExp){let l="";o=!s,s||(l+="\\p{Z}"),i.letter&&(l+="\\p{L}"),i.number&&(l+="\\p{N}",o=!!s),i.symbol&&(l+="\\p{S}"),i.punctuation&&(l+="\\p{P}"),i.control&&(l+="\\p{C}"),(i=i.char)&&(l+=typeof i=="object"?i.join(""):i);try{this.split=new RegExp("["+(s?"^":"")+l+"]+","u")}catch{this.split=/\s+/}}else this.split=i,o=i===!1||"a1a".split(i).length<2;this.numeric=je(r.numeric,o)}else{try{this.split=je(this.split,Af)}catch{this.split=/\s+/}this.numeric=je(r.numeric,je(this.numeric,!0))}if(this.prepare=je(r.prepare,null,this.prepare),this.finalize=je(r.finalize,null,this.finalize),i=r.filter,this.filter=typeof i=="function"?i:je(i&&new Set(i),null,this.filter),this.dedupe=je(r.dedupe,!0,this.dedupe),this.matcher=je((i=r.matcher)&&new Map(i),null,this.matcher),this.mapper=je((i=r.mapper)&&new Map(i),null,this.mapper),this.stemmer=je((i=r.stemmer)&&new Map(i),null,this.stemmer),this.replacer=je(r.replacer,null,this.replacer),this.minlength=je(r.minlength,1,this.minlength),this.maxlength=je(r.maxlength,1024,this.maxlength),this.rtl=je(r.rtl,!1,this.rtl),(this.cache=i=je(r.cache,!0,this.cache))&&(this.F=null,this.L=typeof i=="number"?i:2e5,this.B=new Map,this.D=new Map,this.I=this.H=128),this.h="",this.J=null,this.A="",this.K=null,this.matcher)for(const l of this.matcher.keys())this.h+=(this.h?"|":"")+l;if(this.stemmer)for(const l of this.stemmer.keys())this.A+=(this.A?"|":"")+l;return this},J.addStemmer=function(r,s){return this.stemmer||(this.stemmer=new Map),this.stemmer.set(r,s),this.A+=(this.A?"|":"")+r,this.K=null,this.cache&&Kt(this),this},J.addFilter=function(r){return typeof r=="function"?this.filter=r:(this.filter||(this.filter=new Set),this.filter.add(r)),this.cache&&Kt(this),this},J.addMapper=function(r,s){return typeof r=="object"?this.addReplacer(r,s):r.length>1?this.addMatcher(r,s):(this.mapper||(this.mapper=new Map),this.mapper.set(r,s),this.cache&&Kt(this),this)},J.addMatcher=function(r,s){return typeof r=="object"?this.addReplacer(r,s):r.length<2&&(this.dedupe||this.mapper)?this.addMapper(r,s):(this.matcher||(this.matcher=new Map),this.matcher.set(r,s),this.h+=(this.h?"|":"")+r,this.J=null,this.cache&&Kt(this),this)},J.addReplacer=function(r,s){return typeof r=="string"?this.addMatcher(r,s):(this.replacer||(this.replacer=[]),this.replacer.push(r,s),this.cache&&Kt(this),this)},J.encode=function(r,s){if(this.cache&&r.length<=this.H)if(this.F){if(this.B.has(r))return this.B.get(r)}else this.F=setTimeout(Kt,50,this);this.normalize&&(typeof this.normalize=="function"?r=this.normalize(r):r=Al?r.normalize("NFKD").replace(Al,"").toLowerCase():r.toLowerCase()),this.prepare&&(r=this.prepare(r)),this.numeric&&r.length>3&&(r=r.replace(Lf,"$1 $2").replace(Of,"$1 $2").replace(jf,"$1 "));const i=!(this.dedupe||this.mapper||this.filter||this.matcher||this.stemmer||this.replacer);let o=[],l=Te(),c,f,p=this.split||this.split===""?r.split(this.split):[r];for(let m=0,v,x;m<p.length;m++)if((v=x=p[m])&&!(v.length<this.minlength||v.length>this.maxlength)){if(s){if(l[v])continue;l[v]=1}else{if(c===v)continue;c=v}if(i)o.push(v);else if(!this.filter||(typeof this.filter=="function"?this.filter(v):!this.filter.has(v))){if(this.cache&&v.length<=this.I)if(this.F){var d=this.D.get(v);if(d||d===""){d&&o.push(d);continue}}else this.F=setTimeout(Kt,50,this);if(this.stemmer){this.K||(this.K=new RegExp("(?!^)("+this.A+")$"));let w;for(;w!==v&&v.length>2;)w=v,v=v.replace(this.K,C=>this.stemmer.get(C))}if(v&&(this.mapper||this.dedupe&&v.length>1)){d="";for(let w=0,C="",N,E;w<v.length;w++)N=v.charAt(w),N===C&&this.dedupe||((E=this.mapper&&this.mapper.get(N))||E===""?E===C&&this.dedupe||!(C=E)||(d+=E):d+=C=N);v=d}if(this.matcher&&v.length>1&&(this.J||(this.J=new RegExp("("+this.h+")","g")),v=v.replace(this.J,w=>this.matcher.get(w))),v&&this.replacer)for(d=0;v&&d<this.replacer.length;d+=2)v=v.replace(this.replacer[d],this.replacer[d+1]);if(this.cache&&x.length<=this.I&&(this.D.set(x,v),this.D.size>this.L&&(this.D.clear(),this.I=this.I/1.1|0)),v){if(v!==x)if(s){if(l[v])continue;l[v]=1}else{if(f===v)continue;f=v}o.push(v)}}}return this.finalize&&(o=this.finalize(o)||o),this.cache&&r.length<=this.H&&(this.B.set(r,o),this.B.size>this.L&&(this.B.clear(),this.H=this.H/1.1|0)),o};function Kt(r){r.F=null,r.B.clear(),r.D.clear()}function fi(r,s,i){i||(s||typeof r!="object"?typeof s=="object"&&(i=s,s=0):i=r),i&&(r=i.query||r,s=i.limit||s);let o=""+(s||0);i&&(o+=(i.offset||0)+!!i.context+!!i.suggest+(i.resolve!==!1)+(i.resolution||this.resolution)+(i.boost||0)),r=(""+r).toLowerCase(),this.cache||(this.cache=new Wt);let l=this.cache.get(r+o);if(!l){const c=i&&i.cache;c&&(i.cache=!1),l=this.search(r,s,i),c&&(i.cache=c),this.cache.set(r+o,l)}return l}function Wt(r){this.limit=r&&r!==!0?r:1e3,this.cache=new Map,this.h=""}Wt.prototype.set=function(r,s){this.cache.set(this.h=r,s),this.cache.size>this.limit&&this.cache.delete(this.cache.keys().next().value)},Wt.prototype.get=function(r){const s=this.cache.get(r);return s&&this.h!==r&&(this.cache.delete(r),this.cache.set(this.h=r,s)),s},Wt.prototype.remove=function(r){for(const s of this.cache){const i=s[0];s[1].includes(r)&&this.cache.delete(i)}},Wt.prototype.clear=function(){this.cache.clear(),this.h=""};const jl={normalize:!1,numeric:!1,dedupe:!1},Ur={},hi=new Map([["b","p"],["v","f"],["w","f"],["z","s"],["x","s"],["d","t"],["n","m"],["c","k"],["g","k"],["j","k"],["q","k"],["i","e"],["y","e"],["u","o"]]),Ll=new Map([["ae","a"],["oe","o"],["sh","s"],["kh","k"],["th","t"],["ph","f"],["pf","f"]]),Ol=[/([^aeo])h(.)/g,"$1$2",/([aeo])h([^aeo]|$)/g,"$1$2",/(.)\1+/g,"$1"],Rl={a:"",e:"",i:"",o:"",u:"",y:"",b:1,f:1,p:1,v:1,c:2,g:2,j:2,k:2,q:2,s:2,x:2,z:2,ß:2,d:3,t:3,l:4,m:5,n:5,r:6};var di={Exact:jl,Default:Ur,Normalize:Ur,LatinBalance:{mapper:hi},LatinAdvanced:{mapper:hi,matcher:Ll,replacer:Ol},LatinExtra:{mapper:hi,replacer:Ol.concat([/(?!^)[aeo]/g,""]),matcher:Ll},LatinSoundex:{dedupe:!1,include:{letter:!0},finalize:function(r){for(let i=0;i<r.length;i++){var s=r[i];let o=s.charAt(0),l=Rl[o];for(let c=1,f;c<s.length&&(f=s.charAt(c),f==="h"||f==="w"||!(f=Rl[f])||f===l||(o+=f,l=f,o.length!==4));c++);r[i]=o}}},CJK:{split:""},LatinExact:jl,LatinDefault:Ur,LatinSimple:Ur};function Il(r,s,i,o){let l=[];for(let c=0,f;c<r.index.length;c++)if(f=r.index[c],s>=f.length)s-=f.length;else{s=f[o?"splice":"slice"](s,i);const p=s.length;if(p&&(l=l.length?l.concat(s):s,i-=p,o&&(r.length-=p),!i))break;s=0}return l}function fn(r){if(!this||this.constructor!==fn)return new fn(r);this.index=r?[r]:[],this.length=r?r.length:0;const s=this;return new Proxy([],{get(i,o){if(o==="length")return s.length;if(o==="push")return function(l){s.index[s.index.length-1].push(l),s.length++};if(o==="pop")return function(){if(s.length)return s.length--,s.index[s.index.length-1].pop()};if(o==="indexOf")return function(l){let c=0;for(let f=0,p,d;f<s.index.length;f++){if(p=s.index[f],d=p.indexOf(l),d>=0)return c+d;c+=p.length}return-1};if(o==="includes")return function(l){for(let c=0;c<s.index.length;c++)if(s.index[c].includes(l))return!0;return!1};if(o==="slice")return function(l,c){return Il(s,l||0,c||s.length,!1)};if(o==="splice")return function(l,c){return Il(s,l||0,c||s.length,!0)};if(o==="constructor")return Array;if(typeof o!="symbol")return(i=s.index[o/2**31|0])&&i[o]},set(i,o,l){return i=o/2**31|0,(s.index[i]||(s.index[i]=[]))[o]=l,s.length++,!0}})}fn.prototype.clear=function(){this.index.length=0},fn.prototype.push=function(){};function tt(r=8){if(!this||this.constructor!==tt)return new tt(r);this.index=Te(),this.h=[],this.size=0,r>32?(this.B=Ml,this.A=BigInt(r)):(this.B=zl,this.A=r)}tt.prototype.get=function(r){const s=this.index[this.B(r)];return s&&s.get(r)},tt.prototype.set=function(r,s){var i=this.B(r);let o=this.index[i];o?(i=o.size,o.set(r,s),(i-=o.size)&&this.size++):(this.index[i]=o=new Map([[r,s]]),this.h.push(o),this.size++)};function nt(r=8){if(!this||this.constructor!==nt)return new nt(r);this.index=Te(),this.h=[],this.size=0,r>32?(this.B=Ml,this.A=BigInt(r)):(this.B=zl,this.A=r)}nt.prototype.add=function(r){var s=this.B(r);let i=this.index[s];i?(s=i.size,i.add(r),(s-=i.size)&&this.size++):(this.index[s]=i=new Set([r]),this.h.push(i),this.size++)},J=tt.prototype,J.has=nt.prototype.has=function(r){const s=this.index[this.B(r)];return s&&s.has(r)},J.delete=nt.prototype.delete=function(r){const s=this.index[this.B(r)];s&&s.delete(r)&&this.size--},J.clear=nt.prototype.clear=function(){this.index=Te(),this.h=[],this.size=0},J.values=nt.prototype.values=function*(){for(let r=0;r<this.h.length;r++)for(let s of this.h[r].values())yield s},J.keys=nt.prototype.keys=function*(){for(let r=0;r<this.h.length;r++)for(let s of this.h[r].keys())yield s},J.entries=nt.prototype.entries=function*(){for(let r=0;r<this.h.length;r++)for(let s of this.h[r].entries())yield s};function zl(r){let s=2**this.A-1;if(typeof r=="number")return r&s;let i=0,o=this.A+1;for(let l=0;l<r.length;l++)i=(i*o^r.charCodeAt(l))&s;return this.A===32?i+2**31:i}function Ml(r){let s=BigInt(2)**this.A-BigInt(1);var i=typeof r;if(i==="bigint")return r&s;if(i==="number")return BigInt(r)&s;i=BigInt(0);let o=this.A+BigInt(1);for(let l=0;l<r.length;l++)i=(i*o^BigInt(r.charCodeAt(l)))&s;return i}let hn,Qn;async function Rf(r){r=r.data;var s=r.task;const i=r.id;let o=r.args;if(s==="init")Qn=r.options||{},(s=r.factory)?(Function("return "+s)()(self),hn=new self.FlexSearch.Index(Qn),delete self.FlexSearch):hn=new ot(Qn),postMessage({id:i});else{let l;s==="export"&&(o[1]?(o[0]=Qn.export,o[2]=0,o[3]=1):o=null),s==="import"?o[0]&&(r=await Qn.import.call(hn,o[0]),hn.import(o[0],r)):((l=o&&hn[s].apply(hn,o))&&l.then&&(l=await l),l&&l.await&&(l=await l.await),s==="search"&&l.result&&(l=l.result)),postMessage(s==="search"?{id:i,msg:l}:{id:i})}}function pi(r){dn.call(r,"add"),dn.call(r,"append"),dn.call(r,"search"),dn.call(r,"update"),dn.call(r,"remove"),dn.call(r,"searchCache")}let gi,Dl,br;function If(){gi=br=0}function dn(r){this[r+"Async"]=function(){const s=arguments;var i=s[s.length-1];let o;if(typeof i=="function"&&(o=i,delete s[s.length-1]),gi?br||(br=Date.now()-Dl>=this.priority*this.priority*3):(gi=setTimeout(If,0),Dl=Date.now()),br){const c=this;return new Promise(f=>{setTimeout(function(){f(c[r+"Async"].apply(c,s))},0)})}const l=this[r].apply(this,s);return i=l.then?l:new Promise(c=>c(l)),o&&i.then(o),i}}let kt=0;function pn(r={},s){function i(p){function d(m){m=m.data||m;const v=m.id,x=v&&c.h[v];x&&(x(m.msg),delete c.h[v])}if(this.worker=p,this.h=Te(),this.worker)return l?this.worker.on("message",d):this.worker.onmessage=d,r.config?new Promise(function(m){kt>1e9&&(kt=0),c.h[++kt]=function(){m(c)},c.worker.postMessage({id:kt,task:"init",factory:o,options:r})}):(this.priority=r.priority||4,this.encoder=s||null,this.worker.postMessage({task:"init",factory:o,options:r}),this)}if(!this||this.constructor!==pn)return new pn(r);let o=typeof self<"u"?self._factory:typeof window<"u"?window._factory:null;o&&(o=o.toString());const l=typeof window>"u",c=this,f=zf(o,l,r.worker);return f.then?f.then(function(p){return i.call(c,p)}):i.call(this,f)}Ct("add"),Ct("append"),Ct("search"),Ct("update"),Ct("remove"),Ct("clear"),Ct("export"),Ct("import"),pn.prototype.searchCache=fi,pi(pn.prototype);function Ct(r){pn.prototype[r]=function(){const s=this,i=[].slice.call(arguments);var o=i[i.length-1];let l;return typeof o=="function"&&(l=o,i.pop()),o=new Promise(function(c){r==="export"&&typeof i[0]=="function"&&(i[0]=null),kt>1e9&&(kt=0),s.h[++kt]=c,s.worker.postMessage({task:r,id:kt,args:i})}),l?(o.then(l),this):o}}function zf(r,s,i){return s?typeof module<"u"?new(require("worker_threads")).Worker(__dirname+"/worker/node.js"):Promise.resolve().then(()=>Vd).then(function(o){return new o.Worker("undefined/node/node.mjs")}):r?new window.Worker(URL.createObjectURL(new Blob(["onmessage="+Rf.toString()],{type:"text/javascript"}))):new window.Worker(typeof i=="string"?i:(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:ln&&ln.tagName.toUpperCase()==="SCRIPT"&&ln.src||new URL("sodo-search.min.js",document.baseURI).href).replace("/worker.js","/worker/worker.js").replace("flexsearch.bundle.module.min.js","module/worker/worker.js").replace("flexsearch.bundle.module.min.mjs","module/worker/worker.js"),{type:"module"})}Qt.prototype.add=function(r,s,i){if(Kn(r)&&(s=r,r=Wn(s,this.key)),s&&(r||r===0)){if(!i&&this.reg.has(r))return this.update(r,s);for(let p=0,d;p<this.field.length;p++){d=this.B[p];var o=this.index.get(this.field[p]);if(typeof d=="function"){var l=d(s);l&&o.add(r,l,i,!0)}else l=d.G,(!l||l(s))&&(d.constructor===String?d=[""+d]:et(d)&&(d=[d]),yi(s,d,this.D,0,o,r,d[0],i))}if(this.tag)for(o=0;o<this.A.length;o++){var c=this.A[o];l=this.tag.get(this.F[o]);let p=Te();if(typeof c=="function"){if(c=c(s),!c)continue}else{var f=c.G;if(f&&!f(s))continue;c.constructor===String&&(c=""+c),c=Wn(s,c)}if(l&&c){et(c)&&(c=[c]);for(let d=0,m,v;d<c.length;d++)if(m=c[d],!p[m]&&(p[m]=1,(f=l.get(m))?v=f:l.set(m,v=[]),!i||!v.includes(r))){if(v.length===2**31-1){if(f=new fn(v),this.fastupdate)for(let x of this.reg.values())x.includes(v)&&(x[x.indexOf(v)]=f);l.set(m,v=f)}v.push(r),this.fastupdate&&((f=this.reg.get(r))?f.push(v):this.reg.set(r,[v]))}}}if(this.store&&(!i||!this.store.has(r))){let p;if(this.h){p=Te();for(let d=0,m;d<this.h.length;d++){if(m=this.h[d],(i=m.G)&&!i(s))continue;let v;if(typeof m=="function"){if(v=m(s),!v)continue;m=[m.O]}else if(et(m)||m.constructor===String){p[m]=s[m];continue}mi(s,p,m,0,m[0],v)}}this.store.set(r,p||s)}this.worker&&(this.fastupdate||this.reg.add(r))}return this};function mi(r,s,i,o,l,c){if(r=r[l],o===i.length-1)s[l]=c||r;else if(r)if(r.constructor===Array)for(s=s[l]=Array(r.length),l=0;l<r.length;l++)mi(r,s,i,o,l);else s=s[l]||(s[l]=Te()),l=i[++o],mi(r,s,i,o,l)}function yi(r,s,i,o,l,c,f,p){if(r=r[f])if(o===s.length-1){if(r.constructor===Array){if(i[o]){for(s=0;s<r.length;s++)l.add(c,r[s],!0,!0);return}r=r.join(" ")}l.add(c,r,p,!0)}else if(r.constructor===Array)for(f=0;f<r.length;f++)yi(r,s,i,o,l,c,f,p);else f=s[++o],yi(r,s,i,o,l,c,f,p)}function vi(r,s,i,o){if(!r.length)return r;if(r.length===1)return r=r[0],r=i||r.length>s?r.slice(i,i+s):r,o?gn.call(this,r):r;let l=[];for(let c=0,f,p;c<r.length;c++)if((f=r[c])&&(p=f.length)){if(i){if(i>=p){i-=p;continue}f=f.slice(i,i+s),p=f.length,i=0}if(p>s&&(f=f.slice(0,s),p=s),!l.length&&p>=s)return o?gn.call(this,f):f;if(l.push(f),s-=p,!s)break}return l=l.length>1?[].concat.apply([],l):l[0],o?gn.call(this,l):l}function Br(r,s,i,o){var l=o[0];if(l[0]&&l[0].query)return r[s].apply(r,l);if(!(s!=="and"&&s!=="not"||r.result.length||r.await||l.suggest))return o.length>1&&(l=o[o.length-1]),(o=l.resolve)?r.await||r.result:r;let c=[],f=0,p=0,d,m,v,x,w;for(s=0;s<o.length;s++)if(l=o[s]){var C=void 0;if(l.constructor===Ce)C=l.await||l.result;else if(l.then||l.constructor===Array)C=l;else{f=l.limit||0,p=l.offset||0,v=l.suggest,m=l.resolve,d=((x=l.highlight||r.highlight)||l.enrich)&&m,C=l.queue;let N=l.async||C,E=l.index,_=l.query;if(E?r.index||(r.index=E):E=r.index,_||l.tag){const D=l.field||l.pluck;if(D&&(!_||r.query&&!x||(r.query=_,r.field=D,r.highlight=x),E=E.index.get(D)),C&&(w||r.await)){w=1;let z;const G=r.C.length,K=new Promise(function(Z){z=Z});(function(Z,H){K.h=function(){H.index=null,H.resolve=!1;let B=N?Z.searchAsync(H):Z.search(H);return B.then?B.then(function(V){return r.C[G]=V=V.result||V,z(V),V}):(B=B.result||B,z(B),B)}})(E,Object.assign({},l)),r.C.push(K),c[s]=K;continue}else l.resolve=!1,l.index=null,C=N?E.searchAsync(l):E.search(l),l.resolve=m,l.index=E}else if(l.and)C=Vr(l,"and",E);else if(l.or)C=Vr(l,"or",E);else if(l.not)C=Vr(l,"not",E);else if(l.xor)C=Vr(l,"xor",E);else continue}C.await?(w=1,C=C.await):C.then?(w=1,C=C.then(function(N){return N.result||N})):C=C.result||C,c[s]=C}if(w&&!r.await&&(r.await=new Promise(function(N){r.return=N})),w){const N=Promise.all(c).then(function(E){for(let _=0;_<r.C.length;_++)if(r.C[_]===N){r.C[_]=function(){return i.call(r,E,f,p,d,m,v,x)};break}wi(r)});r.C.push(N)}else if(r.await)r.C.push(function(){return i.call(r,c,f,p,d,m,v,x)});else return i.call(r,c,f,p,d,m,v,x);return m?r.await||r.result:r}function Vr(r,s,i){r=r[s];const o=r[0]||r;return o.index||(o.index=i),i=new Ce(o),r.length>1&&(i=i[s].apply(i,r.slice(1))),i}Ce.prototype.or=function(){return Br(this,"or",Mf,arguments)};function Mf(r,s,i,o,l,c,f){return r.length&&(this.result.length&&r.push(this.result),r.length<2?this.result=r[0]:(this.result=Fl(r,s,i,!1,this.h),i=0)),l&&(this.await=null),l?this.resolve(s,i,o,f):this}Ce.prototype.and=function(){return Br(this,"and",Df,arguments)};function Df(r,s,i,o,l,c,f){if(!c&&!this.result.length)return l?this.result:this;let p;if(r.length)if(this.result.length&&r.unshift(this.result),r.length<2)this.result=r[0];else{let d=0;for(let m=0,v,x;m<r.length;m++)if((v=r[m])&&(x=v.length))d<x&&(d=x);else if(!c){d=0;break}d?(this.result=Kr(r,d,s,i,c,this.h,l),p=!0):this.result=[]}else c||(this.result=r);return l&&(this.await=null),l?this.resolve(s,i,o,f,p):this}Ce.prototype.xor=function(){return Br(this,"xor",Ff,arguments)};function Ff(r,s,i,o,l,c,f){if(r.length)if(this.result.length&&r.unshift(this.result),r.length<2)this.result=r[0];else{e:{c=i;var p=this.h;const d=[],m=Te();let v=0;for(let x=0,w;x<r.length;x++)if(w=r[x]){v<w.length&&(v=w.length);for(let C=0,N;C<w.length;C++)if(N=w[C])for(let E=0,_;E<N.length;E++)_=N[E],m[_]=m[_]?2:1}for(let x=0,w,C=0;x<v;x++)for(let N=0,E;N<r.length;N++)if((E=r[N])&&(w=E[x])){for(let _=0,D;_<w.length;_++)if(D=w[_],m[D]===1)if(c)c--;else if(l){if(d.push(D),d.length===s){r=d;break e}}else{const z=x+(N?p:0);if(d[z]||(d[z]=[]),d[z].push(D),++C===s){r=d;break e}}}r=d}this.result=r,p=!0}else c||(this.result=r);return l&&(this.await=null),l?this.resolve(s,i,o,f,p):this}Ce.prototype.not=function(){return Br(this,"not",Uf,arguments)};function Uf(r,s,i,o,l,c,f){if(!c&&!this.result.length)return l?this.result:this;if(r.length&&this.result.length){e:{c=i;var p=[];r=new Set(r.flat().flat());for(let d=0,m,v=0;d<this.result.length;d++)if(m=this.result[d]){for(let x=0,w;x<m.length;x++)if(w=m[x],!r.has(w)){if(c)c--;else if(l){if(p.push(w),p.length===s){r=p;break e}}else if(p[d]||(p[d]=[]),p[d].push(w),++v===s){r=p;break e}}}r=p}this.result=r,p=!0}return l&&(this.await=null),l?this.resolve(s,i,o,f,p):this}function Hr(r,s,i,o,l){let c,f,p;typeof l=="string"?(c=l,l=""):c=l.template,f=c.indexOf("$1"),p=c.substring(f+2),f=c.substring(0,f);let d=l&&l.boundary,m=!l||l.clip!==!1,v=l&&l.merge&&p&&f&&new RegExp(p+" "+f,"g");l=l&&l.ellipsis;var x=0;if(typeof l=="object"){var w=l.template;x=w.length-2,l=l.pattern}typeof l!="string"&&(l=l===!1?"":"..."),x&&(l=w.replace("$1",l)),w=l.length-x;let C,N;typeof d=="object"&&(C=d.before,C===0&&(C=-1),N=d.after,N===0&&(N=-1),d=d.total||9e5),x=new Map;for(let T=0,O,te,he;T<s.length;T++){let L;if(o)L=s,he=o;else{var E=s[T];if(he=E.field,!he)continue;L=E.result}te=i.get(he),O=te.encoder,E=x.get(O),typeof E!="string"&&(E=O.encode(r),x.set(O,E));for(let b=0;b<L.length;b++){var _=L[b].doc;if(!_||(_=Wn(_,he),!_))continue;var D=_.trim().split(/\s+/);if(!D.length)continue;_="";var z=[];let U=[];for(var G=-1,K=-1,Z=0,H=0;H<D.length;H++){var B=D[H],V=O.encode(B);V=V.length>1?V.join(" "):V[0];let M;if(V&&B){for(var q=B.length,fe=(O.split?B.replace(O.split,""):B).length-V.length,se="",ge=0,pe=0;pe<E.length;pe++){var we=E[pe];if(we){var ne=we.length;ne+=fe<0?0:fe,ge&&ne<=ge||(we=V.indexOf(we),we>-1&&(se=(we?B.substring(0,we):"")+f+B.substring(we,we+ne)+p+(we+ne<q?B.substring(we+ne):""),ge=ne,M=!0))}}se&&(d&&(G<0&&(G=_.length+(_?1:0)),K=_.length+(_?1:0)+se.length,Z+=q,U.push(z.length),z.push({match:se})),_+=(_?" ":"")+se)}if(!M)B=D[H],_+=(_?" ":"")+B,d&&z.push({text:B});else if(d&&Z>=d)break}if(Z=U.length*(c.length-2),C||N||d&&_.length-Z>d)if(Z=d+Z-w*2,H=K-G,C>0&&(H+=C),N>0&&(H+=N),H<=Z)D=C?G-(C>0?C:0):G-((Z-H)/2|0),z=N?K+(N>0?N:0):D+Z,m||(D>0&&_.charAt(D)!==" "&&_.charAt(D-1)!==" "&&(D=_.indexOf(" ",D),D<0&&(D=0)),z<_.length&&_.charAt(z-1)!==" "&&_.charAt(z)!==" "&&(z=_.lastIndexOf(" ",z),z<K?z=K:++z)),_=(D?l:"")+_.substring(D,z)+(z<_.length?l:"");else{for(K=[],G={},Z={},H={},B={},V={},se=fe=q=0,pe=ge=1;;){var xe=void 0;for(let M=0,Q;M<U.length;M++){if(Q=U[M],se)if(fe!==se){if(H[M+1])continue;if(Q+=se,G[Q]){q-=w,Z[M+1]=1,H[M+1]=1;continue}if(Q>=z.length-1){if(Q>=z.length){H[M+1]=1,Q>=D.length&&(Z[M+1]=1);continue}q-=w}if(_=z[Q].text,ne=N&&V[M])if(ne>0){if(_.length>ne)if(H[M+1]=1,m)_=_.substring(0,ne);else continue;(ne-=_.length)||(ne=-1),V[M]=ne}else{H[M+1]=1;continue}if(q+_.length+1<=d)_=" "+_,K[M]+=_;else if(m)xe=d-q-1,xe>0&&(_=" "+_.substring(0,xe),K[M]+=_),H[M+1]=1;else{H[M+1]=1;continue}}else{if(H[M])continue;if(Q-=fe,G[Q]){q-=w,H[M]=1,Z[M]=1;continue}if(Q<=0){if(Q<0){H[M]=1,Z[M]=1;continue}q-=w}if(_=z[Q].text,ne=C&&B[M])if(ne>0){if(_.length>ne)if(H[M]=1,m)_=_.substring(_.length-ne);else continue;(ne-=_.length)||(ne=-1),B[M]=ne}else{H[M]=1;continue}if(q+_.length+1<=d)_+=" ",K[M]=_+K[M];else if(m)xe=_.length+1-(d-q),xe>=0&&xe<_.length&&(_=_.substring(xe)+" ",K[M]=_+K[M]),H[M]=1;else{H[M]=1;continue}}else{_=z[Q].match,C&&(B[M]=C),N&&(V[M]=N),M&&q++;let Se;if(Q?!M&&w&&(q+=w):(Z[M]=1,H[M]=1),Q>=D.length-1||Q<z.length-1&&z[Q+1].match?Se=1:w&&(q+=w),q-=c.length-2,!M||q+_.length<=d)K[M]=_;else{xe=ge=pe=Z[M]=0;break}Se&&(Z[M+1]=1,H[M+1]=1)}q+=_.length,xe=G[Q]=1}if(xe)fe===se?se++:fe++;else{if(fe===se?ge=0:pe=0,!ge&&!pe)break;ge?(fe++,se=fe):se++}}_="";for(let M=0,Q;M<K.length;M++)Q=(Z[M]?M?" ":"":(M&&!l?" ":"")+l)+K[M],_+=Q;l&&!Z[K.length]&&(_+=l)}v&&(_=_.replace(v," ")),L[b].highlight=_}if(o)break}return s}function Ce(r,s){if(!this||this.constructor!==Ce)return new Ce(r,s);let i=0,o,l,c,f,p,d;if(r&&r.index){const m=r;if(s=m.index,i=m.boost||0,l=m.query){c=m.field||m.pluck,f=m.highlight;const v=m.resolve;r=m.async||m.queue,m.resolve=!1,m.index=null,r=r?s.searchAsync(m):s.search(m),m.resolve=v,m.index=s,r=r.result||r}else r=[]}if(r&&r.then){const m=this;r=r.then(function(v){m.C[0]=m.result=v.result||v,wi(m)}),o=[r],r=[],p=new Promise(function(v){d=v})}this.index=s||null,this.result=r||[],this.h=i,this.C=o||[],this.await=p||null,this.return=d||null,this.highlight=f||null,this.query=l||"",this.field=c||""}J=Ce.prototype,J.limit=function(r){if(this.await){const s=this;this.C.push(function(){return s.limit(r).result})}else if(this.result.length){const s=[];for(let i=0,o;i<this.result.length;i++)if(o=this.result[i])if(o.length<=r){if(s[i]=o,r-=o.length,!r)break}else{s[i]=o.slice(0,r);break}this.result=s}return this},J.offset=function(r){if(this.await){const s=this;this.C.push(function(){return s.offset(r).result})}else if(this.result.length){const s=[];for(let i=0,o;i<this.result.length;i++)(o=this.result[i])&&(o.length<=r?r-=o.length:(s[i]=o.slice(r),r=0));this.result=s}return this},J.boost=function(r){if(this.await){const s=this;this.C.push(function(){return s.boost(r).result})}else this.h+=r;return this};function wi(r,s){let i=r.result;var o=r.await;r.await=null;for(let l=0,c;l<r.C.length;l++)if(c=r.C[l]){if(typeof c=="function")i=c(),r.C[l]=i=i.result||i,l--;else if(c.h)i=c.h(),r.C[l]=i=i.result||i,l--;else if(c.then)return r.await=o}return o=r.return,r.C=[],r.return=null,s||o(i),i}J.resolve=function(r,s,i,o,l){let c=this.await?wi(this,!0):this.result;if(c.then){const f=this;return c.then(function(){return f.resolve(r,s,i,o,l)})}return c.length&&(typeof r=="object"?(o=r.highlight||this.highlight,i=!!o||r.enrich,s=r.offset,r=r.limit):(o=o||this.highlight,i=!!o||i),c=l?i?gn.call(this.index,c):c:vi.call(this.index,c,r||100,s,i)),this.finalize(c,o)},J.finalize=function(r,s){if(r.then){const o=this;return r.then(function(l){return o.finalize(l,s)})}s&&r.length&&this.query&&(r=Hr(this.query,r,this.index.index,this.field,s));const i=this.return;return this.highlight=this.index=this.result=this.C=this.await=this.return=null,this.query=this.field="",i&&i(r),r};function Kr(r,s,i,o,l,c,f){const p=r.length;let d=[],m,v;m=Te();for(let x=0,w,C,N,E;x<s;x++)for(let _=0;_<p;_++)if(N=r[_],x<N.length&&(w=N[x]))for(let D=0;D<w.length;D++){if(C=w[D],(v=m[C])?m[C]++:(v=0,m[C]=1),E=d[v]||(d[v]=[]),!f){let z=x+(_||!l?0:c||0);E=E[z]||(E[z]=[])}if(E.push(C),f&&i&&v===p-1&&E.length-o===i)return o?E.slice(o):E}if(r=d.length)if(l)d=d.length>1?Fl(d,i,o,f,c):(d=d[0])&&i&&d.length>i||o?d.slice(o,i+o):d;else{if(r<p)return[];if(d=d[r-1],i||o)if(f)(d.length>i||o)&&(d=d.slice(o,i+o));else{l=[];for(let x=0,w;x<d.length;x++)if(w=d[x]){if(o&&w.length>o)o-=w.length;else if((i&&w.length>i||o)&&(w=w.slice(o,i+o),i-=w.length,o&&(o-=w.length)),l.push(w),!i)break}d=l}}return d}function Fl(r,s,i,o,l){const c=[],f=Te();let p;var d=r.length;let m;if(o){for(l=d-1;l>=0;l--)if(m=(o=r[l])&&o.length){for(d=0;d<m;d++)if(p=o[d],!f[p]){if(f[p]=1,i)i--;else if(c.push(p),c.length===s)return c}}}else for(let v=d-1,x,w=0;v>=0;v--){x=r[v];for(let C=0;C<x.length;C++)if(m=(o=x[C])&&o.length){for(let N=0;N<m;N++)if(p=o[N],!f[p])if(f[p]=1,i)i--;else{let E=(C+(v<d-1&&l||0))/(v+1)|0;if((c[E]||(c[E]=[])).push(p),++w===s)return c}}}return c}function bf(r,s,i,o,l){const c=Te(),f=[];for(let p=0,d;p<s.length;p++){d=s[p];for(let m=0;m<d.length;m++)c[d[m]]=1}if(l){for(let p=0,d;p<r.length;p++)if(d=r[p],c[d]){if(o)o--;else if(f.push(d),c[d]=0,i&&--i===0)break}}else for(let p=0,d,m;p<r.result.length;p++)for(d=r.result[p],s=0;s<d.length;s++)m=d[s],c[m]&&((f[p]||(f[p]=[])).push(m),c[m]=0);return f}Qt.prototype.search=function(r,s,i,o){i||(!s&&Kn(r)?(i=r,r=""):Kn(s)&&(i=s,s=0));let l=[];var c=[];let f,p,d,m,v,x,w=0,C=!0,N;if(i){i.constructor===Array&&(i={index:i}),r=i.query||r,f=i.pluck,p=i.merge,m=i.boost,x=f||i.field||(x=i.index)&&(x.index?null:x);var E=this.tag&&i.tag;d=i.suggest,C=i.resolve!==!1,v=i.cache,N=C&&this.store&&i.highlight;var _=!!N||C&&this.store&&i.enrich;s=i.limit||s;var D=i.offset||0;if(s||(s=C?100:0),E&&(!this.db||!o)){E.constructor!==Array&&(E=[E]);var z=[];for(let B=0,V;B<E.length;B++)if(V=E[B],V.field&&V.tag){var G=V.tag;if(G.constructor===Array)for(var K=0;K<G.length;K++)z.push(V.field,G[K]);else z.push(V.field,G)}else{G=Object.keys(V);for(let q=0,fe,se;q<G.length;q++)if(fe=G[q],se=V[fe],se.constructor===Array)for(K=0;K<se.length;K++)z.push(fe,se[K]);else z.push(fe,se)}if(E=z,!r){if(c=[],z.length)for(E=0;E<z.length;E+=2){if(this.db){if(o=this.index.get(z[E]),!o)continue;c.push(o=o.db.tag(z[E+1],s,D,_))}else o=Bf.call(this,z[E],z[E+1],s,D,_);l.push(C?{field:z[E],tag:z[E+1],result:o}:[o])}if(c.length){const B=this;return Promise.all(c).then(function(V){for(let q=0;q<V.length;q++)C?l[q].result=V[q]:l[q]=V[q];return C?l:new Ce(l.length>1?Kr(l,1,0,0,d,m):l[0],B)})}return C?l:new Ce(l.length>1?Kr(l,1,0,0,d,m):l[0],this)}}C||f||!(x=x||this.field)||(et(x)?f=x:(x.constructor===Array&&x.length===1&&(x=x[0]),f=x.field||x.index)),x&&x.constructor!==Array&&(x=[x])}x||(x=this.field);let Z;z=(this.worker||this.db)&&!o&&[];for(let B=0,V,q,fe;B<x.length;B++){if(q=x[B],this.db&&this.tag&&!this.B[B])continue;let se;if(et(q)||(se=q,q=se.field,r=se.query||r,s=un(se.limit,s),D=un(se.offset,D),d=un(se.suggest,d),N=C&&this.store&&un(se.highlight,N),_=!!N||C&&this.store&&un(se.enrich,_),v=un(se.cache,v)),o)V=o[B];else{G=se||i||{},K=G.enrich;var H=this.index.get(q);if(E&&(this.db&&(G.tag=E,G.field=x,Z=H.db.support_tag_search),!Z&&K&&(G.enrich=!1),Z||(G.limit=0,G.offset=0)),V=v?H.searchCache(r,E&&!Z?0:s,G):H.search(r,E&&!Z?0:s,G),E&&!Z&&(G.limit=s,G.offset=D),K&&(G.enrich=K),z){z[B]=V;continue}}if(fe=(V=V.result||V)&&V.length,E&&fe){if(G=[],K=0,this.db&&o){if(!Z)for(H=x.length;H<o.length;H++){let ge=o[H];if(ge&&ge.length)K++,G.push(ge);else if(!d)return C?l:new Ce(l,this)}}else for(let ge=0,pe,we;ge<E.length;ge+=2){if(pe=this.tag.get(E[ge]),!pe){if(d)continue;return C?l:new Ce(l,this)}if(we=(pe=pe&&pe.get(E[ge+1]))&&pe.length)K++,G.push(pe);else if(!d)return C?l:new Ce(l,this)}if(K){if(V=bf(V,G,s,D,C),fe=V.length,!fe&&!d)return C?V:new Ce(V,this);K--}}if(fe)c[w]=q,l.push(V),w++;else if(x.length===1)return C?l:new Ce(l,this)}if(z){if(this.db&&E&&E.length&&!Z)for(_=0;_<E.length;_+=2){if(c=this.index.get(E[_]),!c){if(d)continue;return C?l:new Ce(l,this)}z.push(c.db.tag(E[_+1],s,D,!1))}const B=this;return Promise.all(z).then(function(V){return i&&(i.resolve=C),V.length&&(V=B.search(r,s,i,V)),V})}if(!w)return C?l:new Ce(l,this);if(f&&(!_||!this.store))return l=l[0],C?l:new Ce(l,this);for(z=[],D=0;D<c.length;D++){if(E=l[D],_&&E.length&&typeof E[0].doc>"u"&&(this.db?z.push(E=this.index.get(this.field[0]).db.enrich(E)):E=gn.call(this,E)),f)return C?N?Hr(r,E,this.index,f,N):E:new Ce(E,this);l[D]={field:c[D],result:E}}if(_&&this.db&&z.length){const B=this;return Promise.all(z).then(function(V){for(let q=0;q<V.length;q++)l[q].result=V[q];return N&&(l=Hr(r,l,B.index,f,N)),p?Ul(l):l})}return N&&(l=Hr(r,l,this.index,f,N)),p?Ul(l):l};function Ul(r){const s=[],i=Te(),o=Te();for(let l=0,c,f,p,d,m,v,x;l<r.length;l++){c=r[l],f=c.field,p=c.result;for(let w=0;w<p.length;w++)m=p[w],typeof m!="object"?m={id:d=m}:d=m.id,(v=i[d])?v.push(f):(m.field=i[d]=[f],s.push(m)),(x=m.highlight)&&(v=o[d],v||(o[d]=v={},m.highlight=v),v[f]=x)}return s}function Bf(r,s,i,o,l){return r=this.tag.get(r),r?(r=r.get(s),r?(s=r.length-o,s>0&&((i&&s>i||o)&&(r=r.slice(o,o+i)),l&&(r=gn.call(this,r))),r):[]):[]}function gn(r){if(!this||!this.store)return r;if(this.db)return this.index.get(this.field[0]).db.enrich(r);const s=Array(r.length);for(let i=0,o;i<r.length;i++)o=r[i],s[i]={id:o,doc:this.store.get(o)};return s}function Qt(r){if(!this||this.constructor!==Qt)return new Qt(r);const s=r.document||r.doc||r;let i,o;if(this.B=[],this.field=[],this.D=[],this.key=(i=s.key||s.id)&&Wr(i,this.D)||"id",(o=r.keystore||0)&&(this.keystore=o),this.fastupdate=!!r.fastupdate,this.reg=!this.fastupdate||r.worker||r.db?o?new nt(o):new Set:o?new tt(o):new Map,this.h=(i=s.store||null)&&i&&i!==!0&&[],this.store=i?o?new tt(o):new Map:null,this.cache=(i=r.cache||null)&&new Wt(i),r.cache=!1,this.worker=r.worker||!1,this.priority=r.priority||4,this.index=Vf.call(this,r,s),this.tag=null,(i=s.tag)&&(typeof i=="string"&&(i=[i]),i.length)){this.tag=new Map,this.A=[],this.F=[];for(let l=0,c,f;l<i.length;l++){if(c=i[l],f=c.field||c,!f)throw Error("The tag field from the document descriptor is undefined.");c.custom?this.A[l]=c.custom:(this.A[l]=Wr(f,this.D),c.filter&&(typeof this.A[l]=="string"&&(this.A[l]=new String(this.A[l])),this.A[l].G=c.filter)),this.F[l]=f,this.tag.set(f,new Map)}}if(this.worker){this.fastupdate=!1,r=[];for(const l of this.index.values())l.then&&r.push(l);if(r.length){const l=this;return Promise.all(r).then(function(c){let f=0;for(const p of l.index.entries()){const d=p[0];let m=p[1];m.then&&(m=c[f],l.index.set(d,m),f++)}return l})}}else r.db&&(this.fastupdate=!1,this.mount(r.db))}J=Qt.prototype,J.mount=function(r){let s=this.field;if(this.tag)for(let c=0,f;c<this.F.length;c++){f=this.F[c];var i=void 0;this.index.set(f,i=new ot({},this.reg)),s===this.field&&(s=s.slice(0)),s.push(f),i.tag=this.tag.get(f)}i=[];const o={db:r.db,type:r.type,fastupdate:r.fastupdate};for(let c=0,f,p;c<s.length;c++){o.field=p=s[c],f=this.index.get(p);const d=new r.constructor(r.id,o);d.id=r.id,i[c]=d.mount(f),f.document=!0,c?f.bypass=!0:f.store=this.store}const l=this;return this.db=Promise.all(i).then(function(){l.db=!0})},J.commit=async function(){const r=[];for(const s of this.index.values())r.push(s.commit());await Promise.all(r),this.reg.clear()},J.destroy=function(){const r=[];for(const s of this.index.values())r.push(s.destroy());return Promise.all(r)};function Vf(r,s){const i=new Map;let o=s.index||s.field||s;et(o)&&(o=[o]);for(let c=0,f,p;c<o.length;c++){if(f=o[c],et(f)||(p=f,f=f.field),p=Kn(p)?Object.assign({},r,p):r,this.worker){var l=void 0;l=(l=p.encoder)&&l.encode?l:new cn(typeof l=="string"?di[l]:l||{}),l=new pn(p,l),i.set(f,l)}this.worker||i.set(f,new ot(p,this.reg)),p.custom?this.B[c]=p.custom:(this.B[c]=Wr(f,this.D),p.filter&&(typeof this.B[c]=="string"&&(this.B[c]=new String(this.B[c])),this.B[c].G=p.filter)),this.field[c]=f}if(this.h){r=s.store,et(r)&&(r=[r]);for(let c=0,f,p;c<r.length;c++)f=r[c],p=f.field||f,f.custom?(this.h[c]=f.custom,f.custom.O=p):(this.h[c]=Wr(p,this.D),f.filter&&(typeof this.h[c]=="string"&&(this.h[c]=new String(this.h[c])),this.h[c].G=f.filter))}return i}function Wr(r,s){const i=r.split(":");let o=0;for(let l=0;l<i.length;l++)r=i[l],r[r.length-1]==="]"&&(r=r.substring(0,r.length-2))&&(s[o]=!0),r&&(i[o++]=r);return o<i.length&&(i.length=o),o>1?i:i[0]}J.append=function(r,s){return this.add(r,s,!0)},J.update=function(r,s){return this.remove(r).add(r,s)},J.remove=function(r){Kn(r)&&(r=Wn(r,this.key));for(var s of this.index.values())s.remove(r,!0);if(this.reg.has(r)){if(this.tag&&!this.fastupdate)for(let i of this.tag.values())for(let o of i){s=o[0];const l=o[1],c=l.indexOf(r);c>-1&&(l.length>1?l.splice(c,1):i.delete(s))}this.store&&this.store.delete(r),this.reg.delete(r)}return this.cache&&this.cache.remove(r),this},J.clear=function(){const r=[];for(const s of this.index.values()){const i=s.clear();i.then&&r.push(i)}if(this.tag)for(const s of this.tag.values())s.clear();return this.store&&this.store.clear(),this.cache&&this.cache.clear(),r.length?Promise.all(r):this},J.contain=function(r){return this.db?this.index.get(this.field[0]).db.has(r):this.reg.has(r)},J.cleanup=function(){for(const r of this.index.values())r.cleanup();return this},J.get=function(r){return this.db?this.index.get(this.field[0]).db.enrich(r).then(function(s){return s[0]&&s[0].doc||null}):this.store.get(r)||null},J.set=function(r,s){return typeof r=="object"&&(s=r,r=Wn(s,this.key)),this.store.set(r,s),this},J.searchCache=fi,J.export=Hf,J.import=Kf,pi(Qt.prototype);function xi(r,s=0){let i=[],o=[];s&&(s=25e4/s*5e3|0);for(const l of r.entries())o.push(l),o.length===s&&(i.push(o),o=[]);return o.length&&i.push(o),i}function Si(r,s){s||(s=new Map);for(let i=0,o;i<r.length;i++)o=r[i],s.set(o[0],o[1]);return s}function bl(r,s=0){let i=[],o=[];s&&(s=25e4/s*1e3|0);for(const l of r.entries())o.push([l[0],xi(l[1])[0]||[]]),o.length===s&&(i.push(o),o=[]);return o.length&&i.push(o),i}function Bl(r,s){s||(s=new Map);for(let i=0,o,l;i<r.length;i++)o=r[i],l=s.get(o[0]),s.set(o[0],Si(o[1],l));return s}function Vl(r){let s=[],i=[];for(const o of r.keys())i.push(o),i.length===25e4&&(s.push(i),i=[]);return i.length&&s.push(i),s}function Hl(r,s){s||(s=new Set);for(let i=0;i<r.length;i++)s.add(r[i]);return s}function Qr(r,s,i,o,l,c,f=0){const p=o&&o.constructor===Array;var d=p?o.shift():o;if(!d)return this.export(r,s,l,c+1);if((d=r((s?s+".":"")+(f+1)+"."+i,JSON.stringify(d)))&&d.then){const m=this;return d.then(function(){return Qr.call(m,r,s,i,p?o:null,l,c,f+1)})}return Qr.call(this,r,s,i,p?o:null,l,c,f+1)}function Hf(r,s,i=0,o=0){if(i<this.field.length){const f=this.field[i];if((s=this.index.get(f).export(r,f,i,o=1))&&s.then){const p=this;return s.then(function(){return p.export(r,f,i+1)})}return this.export(r,f,i+1)}let l,c;switch(o){case 0:l="reg",c=Vl(this.reg),s=null;break;case 1:l="tag",c=this.tag&&bl(this.tag,this.reg.size),s=null;break;case 2:l="doc",c=this.store&&xi(this.store),s=null;break;default:return}return Qr.call(this,r,s,l,c||null,i,o)}function Kf(r,s){var i=r.split(".");i[i.length-1]==="json"&&i.pop();const o=i.length>2?i[0]:"";if(i=i.length>2?i[2]:i[1],this.worker&&o)return this.index.get(o).import(r);if(s){if(typeof s=="string"&&(s=JSON.parse(s)),o)return this.index.get(o).import(i,s);switch(i){case"reg":this.fastupdate=!1,this.reg=Hl(s,this.reg);for(let l=0,c;l<this.field.length;l++)c=this.index.get(this.field[l]),c.fastupdate=!1,c.reg=this.reg;if(this.worker){s=[];for(const l of this.index.values())s.push(l.import(r));return Promise.all(s)}break;case"tag":this.tag=Bl(s,this.tag);break;case"doc":this.store=Si(s,this.store)}}}function Kl(r,s){let i="";for(const o of r.entries()){r=o[0];const l=o[1];let c="";for(let f=0,p;f<l.length;f++){p=l[f]||[""];let d="";for(let m=0;m<p.length;m++)d+=(d?",":"")+(s==="string"?'"'+p[m]+'"':p[m]);d="["+d+"]",c+=(c?",":"")+d}c='["'+r+'",['+c+"]]",i+=(i?",":"")+c}return i}ot.prototype.remove=function(r,s){const i=this.reg.size&&(this.fastupdate?this.reg.get(r):this.reg.has(r));if(i){if(this.fastupdate){for(let o=0,l,c;o<i.length;o++)if((l=i[o])&&(c=l.length))if(l[c-1]===r)l.pop();else{const f=l.indexOf(r);f>=0&&l.splice(f,1)}}else Yn(this.map,r),this.depth&&Yn(this.ctx,r);s||this.reg.delete(r)}return this.db&&(this.commit_task.push({del:r}),this.M&&Jl(this)),this.cache&&this.cache.remove(r),this};function Yn(r,s){let i=0;var o=typeof s>"u";if(r.constructor===Array){for(let l=0,c,f,p;l<r.length;l++)if((c=r[l])&&c.length){if(o)return 1;if(f=c.indexOf(s),f>=0){if(c.length>1)return c.splice(f,1),1;if(delete r[l],i)return 1;p=1}else{if(p)return 1;i++}}}else for(let l of r.entries())o=l[0],Yn(l[1],s)?i++:r.delete(o);return i}const Wf={memory:{resolution:1},performance:{resolution:3,fastupdate:!0,context:{depth:1,resolution:1}},match:{tokenize:"forward"},score:{resolution:9,context:{depth:2,resolution:3}}};ot.prototype.add=function(r,s,i,o){if(s&&(r||r===0)){if(!o&&!i&&this.reg.has(r))return this.update(r,s);o=this.depth,s=this.encoder.encode(s,!o);const m=s.length;if(m){const v=Te(),x=Te(),w=this.resolution;for(let C=0;C<m;C++){let N=s[this.rtl?m-1-C:C];var l=N.length;if(l&&(o||!x[N])){var c=this.score?this.score(s,N,C,null,0):Yr(w,m,C),f="";switch(this.tokenize){case"tolerant":if(pt(this,x,N,c,r,i),l>2){for(let E=1,_,D,z,G;E<l-1;E++)_=N.charAt(E),D=N.charAt(E+1),z=N.substring(0,E)+D,G=N.substring(E+2),f=z+_+G,pt(this,x,f,c,r,i),f=z+G,pt(this,x,f,c,r,i);pt(this,x,N.substring(0,N.length-1),c,r,i)}break;case"full":if(l>2){for(let E=0,_;E<l;E++)for(c=l;c>E;c--){f=N.substring(E,c),_=this.rtl?l-1-E:E;var p=this.score?this.score(s,N,C,f,_):Yr(w,m,C,l,_);pt(this,x,f,p,r,i)}break}case"bidirectional":case"reverse":if(l>1){for(p=l-1;p>0;p--){f=N[this.rtl?l-1-p:p]+f;var d=this.score?this.score(s,N,C,f,p):Yr(w,m,C,l,p);pt(this,x,f,d,r,i)}f=""}case"forward":if(l>1){for(p=0;p<l;p++)f+=N[this.rtl?l-1-p:p],pt(this,x,f,c,r,i);break}default:if(pt(this,x,N,c,r,i),o&&m>1&&C<m-1)for(l=this.N,f=N,c=Math.min(o+1,this.rtl?C+1:m-C),p=1;p<c;p++){N=s[this.rtl?m-1-C-p:C+p],d=this.bidirectional&&N>f;const E=this.score?this.score(s,f,C,N,p-1):Yr(l+(m/2>l?0:1),m,C,c-1,p-1);pt(this,v,d?f:N,E,r,i,d?N:f)}}}}this.fastupdate||this.reg.add(r)}}return this.db&&(this.commit_task.push(i?{ins:r}:{del:r}),this.M&&Jl(this)),this};function pt(r,s,i,o,l,c,f){let p,d;if(!(p=s[i])||f&&!p[f]){if(f?(s=p||(s[i]=Te()),s[f]=1,d=r.ctx,(p=d.get(f))?d=p:d.set(f,d=r.keystore?new tt(r.keystore):new Map)):(d=r.map,s[i]=1),(p=d.get(i))?d=p:d.set(i,d=p=[]),c){for(let m=0,v;m<p.length;m++)if((v=p[m])&&v.includes(l)){if(m<=o)return;v.splice(v.indexOf(l),1),r.fastupdate&&(s=r.reg.get(l))&&s.splice(s.indexOf(v),1);break}}if(d=d[o]||(d[o]=[]),d.push(l),d.length===2**31-1){if(s=new fn(d),r.fastupdate)for(let m of r.reg.values())m.includes(d)&&(m[m.indexOf(d)]=s);p[o]=d=s}r.fastupdate&&((o=r.reg.get(l))?o.push(d):r.reg.set(l,[d]))}}function Yr(r,s,i,o,l){return i&&r>1?s+(o||0)<=r?i+(l||0):(r-1)/(s+(o||0))*(i+(l||0))+1|0:0}ot.prototype.search=function(r,s,i){if(i||(s||typeof r!="object"?typeof s=="object"&&(i=s,s=0):(i=r,r="")),i&&i.cache)return i.cache=!1,r=this.searchCache(r,s,i),i.cache=!0,r;let o=[],l,c,f,p=0,d,m,v,x,w;i&&(r=i.query||r,s=i.limit||s,p=i.offset||0,c=i.context,f=i.suggest,w=(d=i.resolve)&&i.enrich,v=i.boost,x=i.resolution,m=this.db&&i.tag),typeof d>"u"&&(d=this.resolve),c=this.depth&&c!==!1;let C=this.encoder.encode(r,!c);if(l=C.length,s=s||(d?100:0),l===1)return Ql.call(this,C[0],"",s,p,d,w,m);if(l===2&&c&&!f)return Ql.call(this,C[1],C[0],s,p,d,w,m);let N=Te(),E=0,_;if(c&&(_=C[0],E=1),x||x===0||(x=_?this.N:this.resolution),this.db){if(this.db.search&&(i=this.db.search(this,C,s,p,f,d,w,m),i!==!1))return i;const D=this;return(async function(){for(let z,G;E<l;E++){if((G=C[E])&&!N[G]){if(N[G]=1,z=await ki(D,G,_,0,0,!1,!1),z=Yl(z,o,f,x)){o=z;break}_&&(f&&z&&o.length||(_=G))}f&&_&&E===l-1&&!o.length&&(x=D.resolution,_="",E=-1,N=Te())}return Wl(o,x,s,p,f,v,d)})()}for(let D,z;E<l;E++){if((z=C[E])&&!N[z]){if(N[z]=1,D=ki(this,z,_,0,0,!1,!1),D=Yl(D,o,f,x)){o=D;break}_&&(f&&D&&o.length||(_=z))}f&&_&&E===l-1&&!o.length&&(x=this.resolution,_="",E=-1,N=Te())}return Wl(o,x,s,p,f,v,d)};function Wl(r,s,i,o,l,c,f){let p=r.length,d=r;if(p>1)d=Kr(r,s,i,o,l,c,f);else if(p===1)return f?vi.call(null,r[0],i,o):new Ce(r[0],this);return f?d:new Ce(d,this)}function Ql(r,s,i,o,l,c,f){return r=ki(this,r,s,i,o,l,c,f),this.db?r.then(function(p){return l?p||[]:new Ce(p,this)}):r&&r.length?l?vi.call(this,r,i,o):new Ce(r,this):l?[]:new Ce([],this)}function Yl(r,s,i,o){let l=[];if(r&&r.length){if(r.length<=o){s.push(r);return}for(let c=0,f;c<o;c++)(f=r[c])&&(l[c]=f);if(l.length){s.push(l);return}}if(!i)return l}function ki(r,s,i,o,l,c,f,p){let d;return i&&(d=r.bidirectional&&s>i)&&(d=i,i=s,s=d),r.db?r.db.get(s,i,o,l,c,f,p):(r=i?(r=r.ctx.get(i))&&r.get(s):r.map.get(s),r)}function ot(r,s){if(!this||this.constructor!==ot)return new ot(r);if(r){var i=et(r)?r:r.preset;i&&(r=Object.assign({},Wf[i],r))}else r={};i=r.context;const o=i===!0?{depth:1}:i||{},l=et(r.encoder)?di[r.encoder]:r.encode||r.encoder||{};this.encoder=l.encode?l:typeof l=="object"?new cn(l):{encode:l},this.resolution=r.resolution||9,this.tokenize=i=(i=r.tokenize)&&i!=="default"&&i!=="exact"&&i||"strict",this.depth=i==="strict"&&o.depth||0,this.bidirectional=o.bidirectional!==!1,this.fastupdate=!!r.fastupdate,this.score=r.score||null,(i=r.keystore||0)&&(this.keystore=i),this.map=i?new tt(i):new Map,this.ctx=i?new tt(i):new Map,this.reg=s||(this.fastupdate?i?new tt(i):new Map:i?new nt(i):new Set),this.N=o.resolution||3,this.rtl=l.rtl||r.rtl||!1,this.cache=(i=r.cache||null)&&new Wt(i),this.resolve=r.resolve!==!1,(i=r.db)&&(this.db=this.mount(i)),this.M=r.commit!==!1,this.commit_task=[],this.commit_timer=null,this.priority=r.priority||4}J=ot.prototype,J.mount=function(r){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),r.mount(this)},J.commit=function(){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.commit(this)},J.destroy=function(){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.destroy()};function Jl(r){r.commit_timer||(r.commit_timer=setTimeout(function(){r.commit_timer=null,r.db.commit(r)},1))}J.clear=function(){return this.map.clear(),this.ctx.clear(),this.reg.clear(),this.cache&&this.cache.clear(),this.db?(this.commit_timer&&clearTimeout(this.commit_timer),this.commit_timer=null,this.commit_task=[],this.db.clear()):this},J.append=function(r,s){return this.add(r,s,!0)},J.contain=function(r){return this.db?this.db.has(r):this.reg.has(r)},J.update=function(r,s){const i=this,o=this.remove(r);return o&&o.then?o.then(()=>i.add(r,s)):this.add(r,s)},J.cleanup=function(){return this.fastupdate?(Yn(this.map),this.depth&&Yn(this.ctx),this):this},J.searchCache=fi,J.export=function(r,s,i=0,o=0){let l,c;switch(o){case 0:l="reg",c=Vl(this.reg);break;case 1:l="cfg",c=null;break;case 2:l="map",c=xi(this.map,this.reg.size);break;case 3:l="ctx",c=bl(this.ctx,this.reg.size);break;default:return}return Qr.call(this,r,s,l,c,i,o)},J.import=function(r,s){if(s)switch(typeof s=="string"&&(s=JSON.parse(s)),r=r.split("."),r[r.length-1]==="json"&&r.pop(),r.length===3&&r.shift(),r=r.length>1?r[1]:r[0],r){case"reg":this.fastupdate=!1,this.reg=Hl(s,this.reg);break;case"map":this.map=Si(s,this.map);break;case"ctx":this.ctx=Bl(s,this.ctx)}},J.serialize=function(r=!0){let s="",i="",o="";if(this.reg.size){let c;for(var l of this.reg.keys())c||(c=typeof l),s+=(s?",":"")+(c==="string"?'"'+l+'"':l);s="index.reg=new Set(["+s+"]);",i=Kl(this.map,c),i="index.map=new Map(["+i+"]);";for(const f of this.ctx.entries()){l=f[0];let p=Kl(f[1],c);p="new Map(["+p+"])",p='["'+l+'",'+p+"]",o+=(o?",":"")+p}o="index.ctx=new Map(["+o+"]);"}return r?"function inject(index){"+s+i+o+"}":s+i+o},pi(ot.prototype);const Xl=typeof window<"u"&&(window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),Jr=["map","ctx","tag","reg","cfg"],Yt=Te();function Ci(r,s={}){if(!this||this.constructor!==Ci)return new Ci(r,s);typeof r=="object"&&(s=r,r=r.name),r||console.info("Default storage space was used, because a name was not passed."),this.id="flexsearch"+(r?":"+r.toLowerCase().replace(/[^a-z0-9_\-]/g,""):""),this.field=s.field?s.field.toLowerCase().replace(/[^a-z0-9_\-]/g,""):"",this.type=s.type,this.fastupdate=this.support_tag_search=!1,this.db=null,this.h={}}J=Ci.prototype,J.mount=function(r){return r.index?r.mount(this):(r.db=this,this.open())},J.open=function(){if(this.db)return this.db;let r=this;navigator.storage&&navigator.storage.persist&&navigator.storage.persist(),Yt[r.id]||(Yt[r.id]=[]),Yt[r.id].push(r.field);const s=Xl.open(r.id,1);return s.onupgradeneeded=function(){const i=r.db=this.result;for(let o=0,l;o<Jr.length;o++){l=Jr[o];for(let c=0,f;c<Yt[r.id].length;c++)f=Yt[r.id][c],i.objectStoreNames.contains(l+(l!=="reg"&&f?":"+f:""))||i.createObjectStore(l+(l!=="reg"&&f?":"+f:""))}},r.db=$t(s,function(i){r.db=i,r.db.onversionchange=function(){r.close()}})},J.close=function(){this.db&&this.db.close(),this.db=null},J.destroy=function(){const r=Xl.deleteDatabase(this.id);return $t(r)},J.clear=function(){const r=[];for(let i=0,o;i<Jr.length;i++){o=Jr[i];for(let l=0,c;l<Yt[this.id].length;l++)c=Yt[this.id][l],r.push(o+(o!=="reg"&&c?":"+c:""))}const s=this.db.transaction(r,"readwrite");for(let i=0;i<r.length;i++)s.objectStore(r[i]).clear();return $t(s)},J.get=function(r,s,i=0,o=0,l=!0,c=!1){r=this.db.transaction((s?"ctx":"map")+(this.field?":"+this.field:""),"readonly").objectStore((s?"ctx":"map")+(this.field?":"+this.field:"")).get(s?s+":"+r:r);const f=this;return $t(r).then(function(p){let d=[];if(!p||!p.length)return d;if(l){if(!i&&!o&&p.length===1)return p[0];for(let m=0,v;m<p.length;m++)if((v=p[m])&&v.length){if(o>=v.length){o-=v.length;continue}const x=i?o+Math.min(v.length-o,i):v.length;for(let w=o;w<x;w++)d.push(v[w]);if(o=0,d.length===i)break}return c?f.enrich(d):d}return p})},J.tag=function(r,s=0,i=0,o=!1){r=this.db.transaction("tag"+(this.field?":"+this.field:""),"readonly").objectStore("tag"+(this.field?":"+this.field:"")).get(r);const l=this;return $t(r).then(function(c){return!c||!c.length||i>=c.length?[]:!s&&!i?c:(c=c.slice(i,i+s),o?l.enrich(c):c)})},J.enrich=function(r){typeof r!="object"&&(r=[r]);const s=this.db.transaction("reg","readonly").objectStore("reg"),i=[];for(let o=0;o<r.length;o++)i[o]=$t(s.get(r[o]));return Promise.all(i).then(function(o){for(let l=0;l<o.length;l++)o[l]={id:r[l],doc:o[l]?JSON.parse(o[l]):null};return o})},J.has=function(r){return r=this.db.transaction("reg","readonly").objectStore("reg").getKey(r),$t(r).then(function(s){return!!s})},J.search=null,J.info=function(){},J.transaction=function(r,s,i){r+=r!=="reg"&&this.field?":"+this.field:"";let o=this.h[r+":"+s];if(o)return i.call(this,o);let l=this.db.transaction(r,s);this.h[r+":"+s]=o=l.objectStore(r);const c=i.call(this,o);return this.h[r+":"+s]=null,$t(l).finally(function(){return c})},J.commit=async function(r){let s=r.commit_task,i=[];r.commit_task=[];for(let o=0,l;o<s.length;o++)l=s[o],l.del&&i.push(l.del);i.length&&await this.remove(i),r.reg.size&&(await this.transaction("map","readwrite",function(o){for(const l of r.map){const c=l[0],f=l[1];f.length&&(o.get(c).onsuccess=function(){let p=this.result;var d;if(p&&p.length){const m=Math.max(p.length,f.length);for(let v=0,x,w;v<m;v++)if((w=f[v])&&w.length){if((x=p[v])&&x.length)for(d=0;d<w.length;d++)x.push(w[d]);else p[v]=w;d=1}}else p=f,d=1;d&&o.put(p,c)})}}),await this.transaction("ctx","readwrite",function(o){for(const l of r.ctx){const c=l[0],f=l[1];for(const p of f){const d=p[0],m=p[1];m.length&&(o.get(c+":"+d).onsuccess=function(){let v=this.result;var x;if(v&&v.length){const w=Math.max(v.length,m.length);for(let C=0,N,E;C<w;C++)if((E=m[C])&&E.length){if((N=v[C])&&N.length)for(x=0;x<E.length;x++)N.push(E[x]);else v[C]=E;x=1}}else v=m,x=1;x&&o.put(v,c+":"+d)})}}}),r.store?await this.transaction("reg","readwrite",function(o){for(const l of r.store){const c=l[0],f=l[1];o.put(typeof f=="object"?JSON.stringify(f):1,c)}}):r.bypass||await this.transaction("reg","readwrite",function(o){for(const l of r.reg.keys())o.put(1,l)}),r.tag&&await this.transaction("tag","readwrite",function(o){for(const l of r.tag){const c=l[0],f=l[1];f.length&&(o.get(c).onsuccess=function(){let p=this.result;p=p&&p.length?p.concat(f):f,o.put(p,c)})}}),r.map.clear(),r.ctx.clear(),r.tag&&r.tag.clear(),r.store&&r.store.clear(),r.document||r.reg.clear())};function $i(r,s,i){const o=r.value;let l,c=0;for(let f=0,p;f<o.length;f++){if(p=i?o:o[f]){for(let d=0,m,v;d<s.length;d++)if(v=s[d],m=p.indexOf(v),m>=0)if(l=1,p.length>1)p.splice(m,1);else{o[f]=[];break}c+=p.length}if(i)break}c?l&&r.update(o):r.delete(),r.continue()}J.remove=function(r){return typeof r!="object"&&(r=[r]),Promise.all([this.transaction("map","readwrite",function(s){s.openCursor().onsuccess=function(){const i=this.result;i&&$i(i,r)}}),this.transaction("ctx","readwrite",function(s){s.openCursor().onsuccess=function(){const i=this.result;i&&$i(i,r)}}),this.transaction("tag","readwrite",function(s){s.openCursor().onsuccess=function(){const i=this.result;i&&$i(i,r,!0)}}),this.transaction("reg","readwrite",function(s){for(let i=0;i<r.length;i++)s.delete(r[i])})])};function $t(r,s){return new Promise((i,o)=>{r.onsuccess=r.oncomplete=function(){s&&s(this.result),s=null,i(this.result)},r.onerror=r.onblocked=o,r=null})}const Xr={Encoder:cn,Document:Qt},Qf=di,Yf={finalize:r=>{let s=[];for(const i of r)s.push(...Xf(i));return s}};function Jf(r){return r>=19968&&r<=40959||r>=12352&&r<=12543||r>=44032&&r<=55203||r>=13312&&r<=19903||r>=131072&&r<=173791||r>=173824&&r<=191471||r>=196608&&r<=205743||r>=191472&&r<=192095||r>=63744&&r<=64255||r>=194560&&r<=195103}function Xf(r){const s=[];let i="";for(const o of r){const l=o.codePointAt(0);Jf(l)?(i&&(s.push(i),i=""),s.push(o)):i+=o}return i&&s.push(i),s}const _i=new Xr.Encoder(Qf.Default,Yf);class Zf{constructor({adminUrl:s,apiKey:i,dir:o}){const l=o==="rtl",c=o==="rtl"?"reverse":"forward";this.apiUrl=s,this.apiKey=i,this.postsIndex=new Xr.Document({tokenize:c,rtl:l,document:{id:"id",index:["title","excerpt"],store:!0},encoder:_i}),this.authorsIndex=new Xr.Document({tokenize:c,rtl:l,document:{id:"id",index:["name"],store:!0},encoder:_i}),this.tagsIndex=new Xr.Document({tokenize:c,rtl:l,document:{id:"id",index:["name"],store:!0},encoder:_i}),this.init=this.init.bind(this),this.search=this.search.bind(this)}async#t(){const s=await this.#n();s.length>0&&this.#r(s)}async#n(){try{const s=`${this.apiUrl}/ghost/api/content/search-index/posts/?key=${this.apiKey}`;return(await(await fetch(s)).json()).posts}catch(s){return console.error("Error fetching posts:",s),[]}}#r(s){s.forEach(i=>{this.postsIndex.add(i)})}async#s(){const s=await this.#i();s.length>0&&this.#o(s)}async#i(){try{const s=`${this.apiUrl}/ghost/api/content/search-index/authors/?key=${this.apiKey}`;return(await(await fetch(s)).json()).authors}catch(s){return console.error("Error fetching authors:",s),[]}}#o(s){s.forEach(i=>{this.authorsIndex.add(i)})}async#l(){const s=await this.#a();s.length>0&&this.#u(s)}async#a(){try{const s=`${this.apiUrl}/ghost/api/content/search-index/tags/?key=${this.apiKey}`;return(await(await fetch(s)).json()).tags}catch(s){return console.error("Error fetching tags:",s),[]}}#u(s){s.forEach(i=>{this.tagsIndex.add(i)})}async init(){await this.#t(),await this.#s(),await this.#l()}#e(s){const i=[],o={};return s.forEach(l=>{l.result.forEach(c=>{o[c.id]||(i.push(c.doc),o[c.id]=!0)})}),i}search(s){const i=this.postsIndex.search(s,{enrich:!0}),o=this.authorsIndex.search(s,{enrich:!0}),l=this.tagsIndex.search(s,{enrich:!0});return{posts:this.#e(i),authors:this.#e(o),tags:this.#e(l)}}}const Gf={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},qf={Authors:"الكتّاب",Cancel:"إلغاء","No matches found":"لا يوجد نتائج مطابقة",Posts:"منشورات","Search posts, tags and authors":"قم بالبحث عن المنشورات، الوسوم و الكتّاب","Show more results":"اظهر المزيد من النتائج",Tags:"الوسوم"},eh={Authors:"Автори",Cancel:"Отказ","No matches found":"Няма съвпадения",Posts:"Публикации","Search posts, tags and authors":"Търсене в публикации, етикети и автори","Show more results":"Покажи още резултати",Tags:"Етикети"},th={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},nh={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},rh={Authors:"Autors",Cancel:"Cancel·la","No matches found":"No s'ha trobat cap resultat",Posts:"Articles","Search posts, tags and authors":"Cerca articles, etiquetes i autors","Show more results":"Mostra més resultats",Tags:"Etiquetes"},sh={Authors:"Autoři",Cancel:"Zrušit","No matches found":"Nenalezeno",Posts:"Články","Search posts, tags and authors":"Prohledat články, štítky a autory","Show more results":"Zobrazit více výsledků",Tags:"Štítky"},ih={Authors:"Forfattere",Cancel:"Annuller","No matches found":"Ingen resultater fundet",Posts:"Indlæg","Search posts, tags and authors":"Søg i indlæg, tags og forfattere","Show more results":"Vis flere resultater",Tags:"Tags"},oh={Authors:"Autoren",Cancel:"Abbrechen","No matches found":"Keine Treffer gefunden",Posts:"Beiträge","Search posts, tags and authors":"Nach Posts, Tags und Autoren suchen","Show more results":"Mehr Ergebnisse anzeigen",Tags:"Tags"},lh={Authors:"Autor*innen",Cancel:"Abbrechen","No matches found":"Keine Treffer gefunden",Posts:"Posts","Search posts, tags and authors":"Posts, Tags und Autor*innen durchsuchen","Show more results":"Mehr Ergebnisse anzeigen",Tags:"Tags"},ah={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},uh={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},ch={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},fh={Authors:"Autores",Cancel:"Cancelar","No matches found":"No se encontraron resultados",Posts:"Publicaciones","Search posts, tags and authors":"Buscar publicaciones, etiquetas y autores","Show more results":"Mostrar más resultados",Tags:"Etiquetas"},hh={Authors:"Autorid",Cancel:"Tühista","No matches found":"Vasteid ei leitud",Posts:"Postitused","Search posts, tags and authors":"Otsi postitusi, silte ja autoreid","Show more results":"Näita rohkem tulemusi",Tags:"Sildid"},dh={Authors:"Autoreak",Cancel:"Utzi","No matches found":"Ez da bat datorren ezer topatu",Posts:"Artikuluak","Search posts, tags and authors":"Bilatu artikuluak, etiketak eta autoreak","Show more results":"Erakutsi emaitza gehiago",Tags:"Etiketak"},ph={Authors:"نویسندگان",Cancel:"لغو","No matches found":"موردی یافت نشد",Posts:"نوشته‌ها","Search posts, tags and authors":"جست‌وجوی نوشته‌ها، برچسب‌ها و نویسندگان","Show more results":"نمایش نتایج بیشتر",Tags:"برچسب‌ها"},gh={Authors:"Kirjoittajat",Cancel:"Peruuta","No matches found":"Ei hakutuloksia",Posts:"Kirjoitukset","Search posts, tags and authors":"Etsi kirjoituksia, tunnisteita ja kirjoittajia","Show more results":"Näytä enemmän tuloksia",Tags:"Tunnisteet"},mh={Authors:"Auteurs",Cancel:"Annuler","No matches found":"Aucun résultat trouvé",Posts:"Articles","Search posts, tags and authors":"Rechercher des articles, des catégories et des auteurs","Show more results":"Plus de résultats",Tags:"Catégories"},yh={Authors:"Ùghdaran",Cancel:"Sguir dheth","No matches found":"Cha deach dad a lorg a fhreagras ris na lorg thu",Posts:"Postaichean","Search posts, tags and authors":"Lorg sna postaichean, tagaichean agus ùghdaran","Show more results":"Seall barrachd thoraidhean",Tags:"Tagaichean"},vh={Authors:"מחברים",Cancel:"ביטול","No matches found":"לא נמצאו התאמות",Posts:"פוסטים","Search posts, tags and authors":"חיפוש פוסטים, תגיות ומחברים","Show more results":"הצגת תוצאות נוספות",Tags:"תגיות"},wh={Authors:"लेखक",Cancel:"रद्द करें","No matches found":"कोई मैच नहीं मिला",Posts:"पोस्ट","Search posts, tags and authors":"पोस्ट, टैग और लेखक की तलाश करें","Show more results":"और परिणाम दिखाएं",Tags:"टैग"},xh={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Sh={Authors:"Szerzők",Cancel:"Mégse","No matches found":"Nincs találat",Posts:"Bejegyzések","Search posts, tags and authors":"Keresés a bejegyzések, a címkék és a szerzők között","Show more results":"További találatok megjelenítése",Tags:"Címkék"},kh={Authors:"Penulis",Cancel:"Batalkan","No matches found":"Tidak ada hasil yang ditemukan",Posts:"Postingan","Search posts, tags and authors":"Cari postingan, tag, dan penulis","Show more results":"Tampilkan lebih banyak hasil",Tags:"Tag"},Ch={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},$h={Authors:"Autori",Cancel:"Annulla","No matches found":"Nessun risultato trovato",Posts:"Articoli","Search posts, tags and authors":"Cerca articoli, tag e autori","Show more results":"Mostra più risultati",Tags:"Tag"},_h={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Ph={Authors:"작성자",Cancel:"취소","No matches found":"일치하는 결과가 없어요",Posts:"게시물","Search posts, tags and authors":"게시물, 태그, 작성자 검색","Show more results":"더 많은 결과 보기",Tags:"태그"},Eh={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Th={Authors:"Autoriai",Cancel:"Atšaukti","No matches found":"Atitikmenų nerasta",Posts:"Įrašai","Search posts, tags and authors":"Ieškoti įrašų, žymų ir autorių","Show more results":"Rodyti daugiau rezultatų",Tags:"Žymos"},Nh={Authors:"Autori",Cancel:"Atcelt","No matches found":"Nav atrasta neviena atbilstība",Posts:"Ziņas","Search posts, tags and authors":"Meklēt ziņas, atzīmes un autorus","Show more results":"Rādīt vairāk rezultātu",Tags:"Tagi"},Ah={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},jh={Authors:"Нийтлэгчид",Cancel:"Цуцлах","No matches found":"Тохирох хайлтын үр дүн олдсонгүй",Posts:"Нийтлэлүүд","Search posts, tags and authors":"Нийтлэл, ангилал, нийтлэгчдээр хайх","Show more results":"Илүү олон үр дүн харуулах",Tags:"Ангилалууд"},Lh={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Oh={Authors:"Forfattere",Cancel:"Avbryt","No matches found":"Ingen treff funnet",Posts:"Innlegg","Search posts, tags and authors":"Søk i innlegg, etiketter og forfattere","Show more results":"Vis flere resultater",Tags:"Etiketter"},Rh={Authors:"लेखकहरू",Cancel:"रद्द गर्नुहोस्","No matches found":"कुनै परिणाम भेटिएन",Posts:"पोस्टहरू","Search posts, tags and authors":"पोस्टहरू, ट्यागहरू र लेखकहरू खोज्नुहोस्","Show more results":"थप परिणामहरू देखाउनुहोस्",Tags:"ट्यागहरू"},Ih={Authors:"Auteurs",Cancel:"Annuleren","No matches found":"Geen resultaten gevonden",Posts:"Berichten","Search posts, tags and authors":"Zoek berichten, tags en auteurs","Show more results":"Meer resultaten weergeven",Tags:"Tags"},zh={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Mh={Authors:"ਲੇਖਕ",Cancel:"ਰੱਦ ਕਰੋ","No matches found":"ਕੋਈ ਮੇਲ ਨਹੀਂ ਮਿਲਿਆ",Posts:"ਪੋਸਟਾਂ","Search posts, tags and authors":"ਪੋਸਟਾਂ, ਟੈਗ ਅਤੇ ਲੇਖਕ ਖੋਜੋ","Show more results":"ਹੋਰ ਨਤੀਜੇ ਦਿਖਾਓ",Tags:"ਟੈਗ"},Dh={Authors:"Autorzy",Cancel:"Anuluj","No matches found":"Nie znaleziono dopasowań",Posts:"Posty","Search posts, tags and authors":"Szukaj postów, tagów lub autorów","Show more results":"Pokaż więcej wyników",Tags:"Tagi"},Fh={Authors:"Autores",Cancel:"Cancelar","No matches found":"Nenhum resultado encontrado",Posts:"Publicações","Search posts, tags and authors":"Buscar posts, tags e autores","Show more results":"Mostrar mais resultados",Tags:"Tags"},Uh={Authors:"Autores",Cancel:"Cancelar","No matches found":"Nenhum resultado encontrado",Posts:"Publicações","Search posts, tags and authors":"Procurar publicações, marcadores e autores","Show more results":"Mostrar mais resultados",Tags:"Marcadores"},bh={Authors:"Autori",Cancel:"Anulează","No matches found":"Nu s-au găsit rezultate",Posts:"Postări","Search posts, tags and authors":"Caută postări, etichete și autori","Show more results":"Afișează mai multe rezultate",Tags:"Etichete"},Bh={Authors:"Авторы",Cancel:"Отмена","No matches found":"Совпадений не найдено",Posts:"Записи","Search posts, tags and authors":"Поиск по записям, тегам и авторам","Show more results":"Показать больше результатов",Tags:"Теги"},Vh={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Hh={Authors:"Autori",Cancel:"Zrušiť","No matches found":"Nenašli sa žiadne výsledky",Posts:"Príspevky","Search posts, tags and authors":"Vyhľadajte príspevky, tagy a autorov","Show more results":"Zobraziť viac výsledkov",Tags:"Tagy"},Kh={Authors:"Avtorji",Cancel:"Prekliči","No matches found":"Ni najdenih zadetkov",Posts:"Članki","Search posts, tags and authors":"Iščite članke, oznake in avtorje","Show more results":"Prikaži več rezultatov",Tags:"Oznake"},Wh={Authors:"Autorët",Cancel:"Anulo","No matches found":"Nuk u gjet asnjë rezultat",Posts:"Postimet","Search posts, tags and authors":"Kërko postime, etiketa dhe autorë","Show more results":"Shfaq më shumë rezultate",Tags:"Etiketat"},Qh={Authors:"Аутори",Cancel:"Откажите","No matches found":"Нема резултата",Posts:"Објаве","Search posts, tags and authors":"Претражите објаве, tag-ове и ауторе","Show more results":"Прикажите више резултата",Tags:"Tag-ови"},Yh={Authors:"Autori",Cancel:"Otkažite","No matches found":"Nema rezultata",Posts:"Objave","Search posts, tags and authors":"Pretražite objave, tag-ove i autore","Show more results":"Prikažite više rezultata",Tags:"Tag-ovi"},Jh={Authors:"Författare",Cancel:"Avbryt","No matches found":"Inga träffar hittade",Posts:"Inlägg","Search posts, tags and authors":"Sök inlägg, taggar och författare","Show more results":"Visa fler resultat",Tags:"Taggar"},Xh={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Zh={Authors:"ஆசிரியர்கள்",Cancel:"ரத்து செய்","No matches found":"பொருத்தங்கள் எதுவும் இல்லை",Posts:"பதிவுகள்","Search posts, tags and authors":"பதிவுகள், குறிச்சொற்கள் மற்றும் ஆசிரியர்களைத் தேடுங்கள்","Show more results":"மேலும் முடிவுகளைக் காட்டு",Tags:"குறிச்சொற்கள்"},Gh={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},qh={Authors:"Yazarlar",Cancel:"İptal","No matches found":"Eşleşme bulunamadı",Posts:"Yazılar","Search posts, tags and authors":"Yazıları, etiketleri ve yazarları ara","Show more results":"Daha fazla sonuç göster",Tags:"Etiketler"},ed={Authors:"Автори",Cancel:"Скасувати","No matches found":"Збігів не знайдено",Posts:"Публікації","Search posts, tags and authors":"Шукайте публікацій, теги та авторів","Show more results":"Показати більше результатів",Tags:"Теги"},td={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},nd={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},rd={Authors:"Tác giả",Cancel:"Hủy","No matches found":"Không tìm thấy",Posts:"Bài viết","Search posts, tags and authors":"Tìm bài viết, thẻ và tác giả","Show more results":"Xem thêm kết quả",Tags:"Thẻ"},sd={Authors:"作者",Cancel:"取消","No matches found":"無相符結果",Posts:"文章","Search posts, tags and authors":"搜尋文章、標籤與作者","Show more results":"更多結果",Tags:"標籤"},id={Authors:"作者",Cancel:"取消","No matches found":"未找到匹配项",Posts:"文章","Search posts, tags and authors":"搜索文章、标签和作者","Show more results":"显示更多结果",Tags:"标签"},le=r=>typeof r=="string",Jn=()=>{let r,s;const i=new Promise((o,l)=>{r=o,s=l});return i.resolve=r,i.reject=s,i},Zl=r=>r==null?"":""+r,od=(r,s,i)=>{r.forEach(o=>{s[o]&&(i[o]=s[o])})},ld=/###/g,Gl=r=>r&&r.indexOf("###")>-1?r.replace(ld,"."):r,ql=r=>!r||le(r),Xn=(r,s,i)=>{const o=le(s)?s.split("."):s;let l=0;for(;l<o.length-1;){if(ql(r))return{};const c=Gl(o[l]);!r[c]&&i&&(r[c]=new i),Object.prototype.hasOwnProperty.call(r,c)?r=r[c]:r={},++l}return ql(r)?{}:{obj:r,k:Gl(o[l])}},ea=(r,s,i)=>{const{obj:o,k:l}=Xn(r,s,Object);if(o!==void 0||s.length===1){o[l]=i;return}let c=s[s.length-1],f=s.slice(0,s.length-1),p=Xn(r,f,Object);for(;p.obj===void 0&&f.length;)c=`${f[f.length-1]}.${c}`,f=f.slice(0,f.length-1),p=Xn(r,f,Object),p&&p.obj&&typeof p.obj[`${p.k}.${c}`]<"u"&&(p.obj=void 0);p.obj[`${p.k}.${c}`]=i},ad=(r,s,i,o)=>{const{obj:l,k:c}=Xn(r,s,Object);l[c]=l[c]||[],l[c].push(i)},Zr=(r,s)=>{const{obj:i,k:o}=Xn(r,s);if(i)return i[o]},ud=(r,s,i)=>{const o=Zr(r,i);return o!==void 0?o:Zr(s,i)},ta=(r,s,i)=>{for(const o in s)o!=="__proto__"&&o!=="constructor"&&(o in r?le(r[o])||r[o]instanceof String||le(s[o])||s[o]instanceof String?i&&(r[o]=s[o]):ta(r[o],s[o],i):r[o]=s[o]);return r},mn=r=>r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var cd={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const fd=r=>le(r)?r.replace(/[&<>"'\/]/g,s=>cd[s]):r;class hd{constructor(s){this.capacity=s,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(s){const i=this.regExpMap.get(s);if(i!==void 0)return i;const o=new RegExp(s);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(s,o),this.regExpQueue.push(s),o}}const dd=[" ",",","?","!",";"],pd=new hd(20),gd=(r,s,i)=>{s=s||"",i=i||"";const o=dd.filter(f=>s.indexOf(f)<0&&i.indexOf(f)<0);if(o.length===0)return!0;const l=pd.getRegExp(`(${o.map(f=>f==="?"?"\\?":f).join("|")})`);let c=!l.test(r);if(!c){const f=r.indexOf(i);f>0&&!l.test(r.substring(0,f))&&(c=!0)}return c},Pi=function(r,s){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!r)return;if(r[s])return r[s];const o=s.split(i);let l=r;for(let c=0;c<o.length;){if(!l||typeof l!="object")return;let f,p="";for(let d=c;d<o.length;++d)if(d!==c&&(p+=i),p+=o[d],f=l[p],f!==void 0){if(["string","number","boolean"].indexOf(typeof f)>-1&&d<o.length-1)continue;c+=d-c+1;break}l=f}return l},Gr=r=>r&&r.replace("_","-"),md={type:"logger",log(r){this.output("log",r)},warn(r){this.output("warn",r)},error(r){this.output("error",r)},output(r,s){console&&console[r]&&console[r].apply(console,s)}};class qr{constructor(s){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(s,i)}init(s){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=i.prefix||"i18next:",this.logger=s||md,this.options=i,this.debug=i.debug}log(){for(var s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];return this.forward(i,"log","",!0)}warn(){for(var s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];return this.forward(i,"warn","",!0)}error(){for(var s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];return this.forward(i,"error","")}deprecate(){for(var s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];return this.forward(i,"warn","WARNING DEPRECATED: ",!0)}forward(s,i,o,l){return l&&!this.debug?null:(le(s[0])&&(s[0]=`${o}${this.prefix} ${s[0]}`),this.logger[i](s))}create(s){return new qr(this.logger,{prefix:`${this.prefix}:${s}:`,...this.options})}clone(s){return s=s||this.options,s.prefix=s.prefix||this.prefix,new qr(this.logger,s)}}var lt=new qr;class es{constructor(){this.observers={}}on(s,i){return s.split(" ").forEach(o=>{this.observers[o]||(this.observers[o]=new Map);const l=this.observers[o].get(i)||0;this.observers[o].set(i,l+1)}),this}off(s,i){if(this.observers[s]){if(!i){delete this.observers[s];return}this.observers[s].delete(i)}}emit(s){for(var i=arguments.length,o=new Array(i>1?i-1:0),l=1;l<i;l++)o[l-1]=arguments[l];this.observers[s]&&Array.from(this.observers[s].entries()).forEach(f=>{let[p,d]=f;for(let m=0;m<d;m++)p(...o)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(f=>{let[p,d]=f;for(let m=0;m<d;m++)p.apply(p,[s,...o])})}}class na extends es{constructor(s){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=s||{},this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(s){this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}removeNamespaces(s){const i=this.options.ns.indexOf(s);i>-1&&this.options.ns.splice(i,1)}getResource(s,i,o){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const c=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,f=l.ignoreJSONStructure!==void 0?l.ignoreJSONStructure:this.options.ignoreJSONStructure;let p;s.indexOf(".")>-1?p=s.split("."):(p=[s,i],o&&(Array.isArray(o)?p.push(...o):le(o)&&c?p.push(...o.split(c)):p.push(o)));const d=Zr(this.data,p);return!d&&!i&&!o&&s.indexOf(".")>-1&&(s=p[0],i=p[1],o=p.slice(2).join(".")),d||!f||!le(o)?d:Pi(this.data&&this.data[s]&&this.data[s][i],o,c)}addResource(s,i,o,l){let c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const f=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator;let p=[s,i];o&&(p=p.concat(f?o.split(f):o)),s.indexOf(".")>-1&&(p=s.split("."),l=i,i=p[1]),this.addNamespaces(i),ea(this.data,p,l),c.silent||this.emit("added",s,i,o,l)}addResources(s,i,o){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const c in o)(le(o[c])||Array.isArray(o[c]))&&this.addResource(s,i,c,o[c],{silent:!0});l.silent||this.emit("added",s,i,o)}addResourceBundle(s,i,o,l,c){let f=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},p=[s,i];s.indexOf(".")>-1&&(p=s.split("."),l=o,o=i,i=p[1]),this.addNamespaces(i);let d=Zr(this.data,p)||{};f.skipCopy||(o=JSON.parse(JSON.stringify(o))),l?ta(d,o,c):d={...d,...o},ea(this.data,p,d),f.silent||this.emit("added",s,i,o)}removeResourceBundle(s,i){this.hasResourceBundle(s,i)&&delete this.data[s][i],this.removeNamespaces(i),this.emit("removed",s,i)}hasResourceBundle(s,i){return this.getResource(s,i)!==void 0}getResourceBundle(s,i){return i||(i=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(s,i)}:this.getResource(s,i)}getDataByLanguage(s){return this.data[s]}hasLanguageSomeTranslations(s){const i=this.getDataByLanguage(s);return!!(i&&Object.keys(i)||[]).find(l=>i[l]&&Object.keys(i[l]).length>0)}toJSON(){return this.data}}var ra={processors:{},addPostProcessor(r){this.processors[r.name]=r},handle(r,s,i,o,l){return r.forEach(c=>{this.processors[c]&&(s=this.processors[c].process(s,i,o,l))}),s}};const sa={};class ts extends es{constructor(s){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),od(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],s,this),this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=lt.create("translator")}changeLanguage(s){s&&(this.language=s)}exists(s){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(s==null)return!1;const o=this.resolve(s,i);return o&&o.res!==void 0}extractFromKey(s,i){let o=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");const l=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let c=i.ns||this.options.defaultNS||[];const f=o&&s.indexOf(o)>-1,p=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!gd(s,o,l);if(f&&!p){const d=s.match(this.interpolator.nestingRegexp);if(d&&d.length>0)return{key:s,namespaces:le(c)?[c]:c};const m=s.split(o);(o!==l||o===l&&this.options.ns.indexOf(m[0])>-1)&&(c=m.shift()),s=m.join(l)}return{key:s,namespaces:le(c)?[c]:c}}translate(s,i,o){if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),s==null)return"";Array.isArray(s)||(s=[String(s)]);const l=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,c=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:f,namespaces:p}=this.extractFromKey(s[s.length-1],i),d=p[p.length-1],m=i.lng||this.language,v=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(m&&m.toLowerCase()==="cimode"){if(v){const K=i.nsSeparator||this.options.nsSeparator;return l?{res:`${d}${K}${f}`,usedKey:f,exactUsedKey:f,usedLng:m,usedNS:d,usedParams:this.getUsedParamsDetails(i)}:`${d}${K}${f}`}return l?{res:f,usedKey:f,exactUsedKey:f,usedLng:m,usedNS:d,usedParams:this.getUsedParamsDetails(i)}:f}const x=this.resolve(s,i);let w=x&&x.res;const C=x&&x.usedKey||f,N=x&&x.exactUsedKey||f,E=Object.prototype.toString.apply(w),_=["[object Number]","[object Function]","[object RegExp]"],D=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,z=!this.i18nFormat||this.i18nFormat.handleAsObject,G=!le(w)&&typeof w!="boolean"&&typeof w!="number";if(z&&w&&G&&_.indexOf(E)<0&&!(le(D)&&Array.isArray(w))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const K=this.options.returnedObjectHandler?this.options.returnedObjectHandler(C,w,{...i,ns:p}):`key '${f} (${this.language})' returned an object instead of string.`;return l?(x.res=K,x.usedParams=this.getUsedParamsDetails(i),x):K}if(c){const K=Array.isArray(w),Z=K?[]:{},H=K?N:C;for(const B in w)if(Object.prototype.hasOwnProperty.call(w,B)){const V=`${H}${c}${B}`;Z[B]=this.translate(V,{...i,joinArrays:!1,ns:p}),Z[B]===V&&(Z[B]=w[B])}w=Z}}else if(z&&le(D)&&Array.isArray(w))w=w.join(D),w&&(w=this.extendTranslation(w,s,i,o));else{let K=!1,Z=!1;const H=i.count!==void 0&&!le(i.count),B=ts.hasDefaultValue(i),V=H?this.pluralResolver.getSuffix(m,i.count,i):"",q=i.ordinal&&H?this.pluralResolver.getSuffix(m,i.count,{ordinal:!1}):"",fe=H&&!i.ordinal&&i.count===0&&this.pluralResolver.shouldUseIntlApi(),se=fe&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${V}`]||i[`defaultValue${q}`]||i.defaultValue;!this.isValidLookup(w)&&B&&(K=!0,w=se),this.isValidLookup(w)||(Z=!0,w=f);const pe=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Z?void 0:w,we=B&&se!==w&&this.options.updateMissing;if(Z||K||we){if(this.logger.log(we?"updateKey":"missingKey",m,d,f,we?se:w),c){const O=this.resolve(f,{...i,keySeparator:!1});O&&O.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let ne=[];const xe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&xe&&xe[0])for(let O=0;O<xe.length;O++)ne.push(xe[O]);else this.options.saveMissingTo==="all"?ne=this.languageUtils.toResolveHierarchy(i.lng||this.language):ne.push(i.lng||this.language);const T=(O,te,he)=>{const L=B&&he!==w?he:pe;this.options.missingKeyHandler?this.options.missingKeyHandler(O,d,te,L,we,i):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(O,d,te,L,we,i),this.emit("missingKey",O,d,te,w)};this.options.saveMissing&&(this.options.saveMissingPlurals&&H?ne.forEach(O=>{const te=this.pluralResolver.getSuffixes(O,i);fe&&i[`defaultValue${this.options.pluralSeparator}zero`]&&te.indexOf(`${this.options.pluralSeparator}zero`)<0&&te.push(`${this.options.pluralSeparator}zero`),te.forEach(he=>{T([O],f+he,i[`defaultValue${he}`]||se)})}):T(ne,f,se))}w=this.extendTranslation(w,s,i,x,o),Z&&w===f&&this.options.appendNamespaceToMissingKey&&(w=`${d}:${f}`),(Z||K)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?w=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}:${f}`:f,K?w:void 0):w=this.options.parseMissingKeyHandler(w))}return l?(x.res=w,x.usedParams=this.getUsedParamsDetails(i),x):w}extendTranslation(s,i,o,l,c){var f=this;if(this.i18nFormat&&this.i18nFormat.parse)s=this.i18nFormat.parse(s,{...this.options.interpolation.defaultVariables,...o},o.lng||this.language||l.usedLng,l.usedNS,l.usedKey,{resolved:l});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init({...o,interpolation:{...this.options.interpolation,...o.interpolation}});const m=le(s)&&(o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let v;if(m){const w=s.match(this.interpolator.nestingRegexp);v=w&&w.length}let x=o.replace&&!le(o.replace)?o.replace:o;if(this.options.interpolation.defaultVariables&&(x={...this.options.interpolation.defaultVariables,...x}),s=this.interpolator.interpolate(s,x,o.lng||this.language||l.usedLng,o),m){const w=s.match(this.interpolator.nestingRegexp),C=w&&w.length;v<C&&(o.nest=!1)}!o.lng&&this.options.compatibilityAPI!=="v1"&&l&&l.res&&(o.lng=this.language||l.usedLng),o.nest!==!1&&(s=this.interpolator.nest(s,function(){for(var w=arguments.length,C=new Array(w),N=0;N<w;N++)C[N]=arguments[N];return c&&c[0]===C[0]&&!o.context?(f.logger.warn(`It seems you are nesting recursively key: ${C[0]} in key: ${i[0]}`),null):f.translate(...C,i)},o)),o.interpolation&&this.interpolator.reset()}const p=o.postProcess||this.options.postProcess,d=le(p)?[p]:p;return s!=null&&d&&d.length&&o.applyPostProcessor!==!1&&(s=ra.handle(d,s,i,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...l,usedParams:this.getUsedParamsDetails(o)},...o}:o,this)),s}resolve(s){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o,l,c,f,p;return le(s)&&(s=[s]),s.forEach(d=>{if(this.isValidLookup(o))return;const m=this.extractFromKey(d,i),v=m.key;l=v;let x=m.namespaces;this.options.fallbackNS&&(x=x.concat(this.options.fallbackNS));const w=i.count!==void 0&&!le(i.count),C=w&&!i.ordinal&&i.count===0&&this.pluralResolver.shouldUseIntlApi(),N=i.context!==void 0&&(le(i.context)||typeof i.context=="number")&&i.context!=="",E=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);x.forEach(_=>{this.isValidLookup(o)||(p=_,!sa[`${E[0]}-${_}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(p)&&(sa[`${E[0]}-${_}`]=!0,this.logger.warn(`key "${l}" for languages "${E.join(", ")}" won't get resolved as namespace "${p}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),E.forEach(D=>{if(this.isValidLookup(o))return;f=D;const z=[v];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(z,v,D,_,i);else{let K;w&&(K=this.pluralResolver.getSuffix(D,i.count,i));const Z=`${this.options.pluralSeparator}zero`,H=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(w&&(z.push(v+K),i.ordinal&&K.indexOf(H)===0&&z.push(v+K.replace(H,this.options.pluralSeparator)),C&&z.push(v+Z)),N){const B=`${v}${this.options.contextSeparator}${i.context}`;z.push(B),w&&(z.push(B+K),i.ordinal&&K.indexOf(H)===0&&z.push(B+K.replace(H,this.options.pluralSeparator)),C&&z.push(B+Z))}}let G;for(;G=z.pop();)this.isValidLookup(o)||(c=G,o=this.getResource(D,_,G,i))}))})}),{res:o,usedKey:l,exactUsedKey:c,usedLng:f,usedNS:p}}isValidLookup(s){return s!==void 0&&!(!this.options.returnNull&&s===null)&&!(!this.options.returnEmptyString&&s==="")}getResource(s,i,o){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(s,i,o,l):this.resourceStore.getResource(s,i,o,l)}getUsedParamsDetails(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const i=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],o=s.replace&&!le(s.replace);let l=o?s.replace:s;if(o&&typeof s.count<"u"&&(l.count=s.count),this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),!o){l={...l};for(const c of i)delete l[c]}return l}static hasDefaultValue(s){const i="defaultValue";for(const o in s)if(Object.prototype.hasOwnProperty.call(s,o)&&i===o.substring(0,i.length)&&s[o]!==void 0)return!0;return!1}}const Ei=r=>r.charAt(0).toUpperCase()+r.slice(1);class ia{constructor(s){this.options=s,this.supportedLngs=this.options.supportedLngs||!1,this.logger=lt.create("languageUtils")}getScriptPartFromCode(s){if(s=Gr(s),!s||s.indexOf("-")<0)return null;const i=s.split("-");return i.length===2||(i.pop(),i[i.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(i.join("-"))}getLanguagePartFromCode(s){if(s=Gr(s),!s||s.indexOf("-")<0)return s;const i=s.split("-");return this.formatLanguageCode(i[0])}formatLanguageCode(s){if(le(s)&&s.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let l=Intl.getCanonicalLocales(s)[0];if(l&&this.options.lowerCaseLng&&(l=l.toLowerCase()),l)return l}catch{}const i=["hans","hant","latn","cyrl","cans","mong","arab"];let o=s.split("-");return this.options.lowerCaseLng?o=o.map(l=>l.toLowerCase()):o.length===2?(o[0]=o[0].toLowerCase(),o[1]=o[1].toUpperCase(),i.indexOf(o[1].toLowerCase())>-1&&(o[1]=Ei(o[1].toLowerCase()))):o.length===3&&(o[0]=o[0].toLowerCase(),o[1].length===2&&(o[1]=o[1].toUpperCase()),o[0]!=="sgn"&&o[2].length===2&&(o[2]=o[2].toUpperCase()),i.indexOf(o[1].toLowerCase())>-1&&(o[1]=Ei(o[1].toLowerCase())),i.indexOf(o[2].toLowerCase())>-1&&(o[2]=Ei(o[2].toLowerCase()))),o.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?s.toLowerCase():s}isSupportedCode(s){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(s=this.getLanguagePartFromCode(s)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(s)>-1}getBestMatchFromCodes(s){if(!s)return null;let i;return s.forEach(o=>{if(i)return;const l=this.formatLanguageCode(o);(!this.options.supportedLngs||this.isSupportedCode(l))&&(i=l)}),!i&&this.options.supportedLngs&&s.forEach(o=>{if(i)return;const l=this.getLanguagePartFromCode(o);if(this.isSupportedCode(l))return i=l;i=this.options.supportedLngs.find(c=>{if(c===l)return c;if(!(c.indexOf("-")<0&&l.indexOf("-")<0)&&(c.indexOf("-")>0&&l.indexOf("-")<0&&c.substring(0,c.indexOf("-"))===l||c.indexOf(l)===0&&l.length>1))return c})}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}getFallbackCodes(s,i){if(!s)return[];if(typeof s=="function"&&(s=s(i)),le(s)&&(s=[s]),Array.isArray(s))return s;if(!i)return s.default||[];let o=s[i];return o||(o=s[this.getScriptPartFromCode(i)]),o||(o=s[this.formatLanguageCode(i)]),o||(o=s[this.getLanguagePartFromCode(i)]),o||(o=s.default),o||[]}toResolveHierarchy(s,i){const o=this.getFallbackCodes(i||this.options.fallbackLng||[],s),l=[],c=f=>{f&&(this.isSupportedCode(f)?l.push(f):this.logger.warn(`rejecting language code not found in supportedLngs: ${f}`))};return le(s)&&(s.indexOf("-")>-1||s.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&c(this.formatLanguageCode(s)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&c(this.getScriptPartFromCode(s)),this.options.load!=="currentOnly"&&c(this.getLanguagePartFromCode(s))):le(s)&&c(this.formatLanguageCode(s)),o.forEach(f=>{l.indexOf(f)<0&&c(this.formatLanguageCode(f))}),l}}let yd=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],vd={1:r=>+(r>1),2:r=>+(r!=1),3:r=>0,4:r=>r%10==1&&r%100!=11?0:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?1:2,5:r=>r==0?0:r==1?1:r==2?2:r%100>=3&&r%100<=10?3:r%100>=11?4:5,6:r=>r==1?0:r>=2&&r<=4?1:2,7:r=>r==1?0:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?1:2,8:r=>r==1?0:r==2?1:r!=8&&r!=11?2:3,9:r=>+(r>=2),10:r=>r==1?0:r==2?1:r<7?2:r<11?3:4,11:r=>r==1||r==11?0:r==2||r==12?1:r>2&&r<20?2:3,12:r=>+(r%10!=1||r%100==11),13:r=>+(r!==0),14:r=>r==1?0:r==2?1:r==3?2:3,15:r=>r%10==1&&r%100!=11?0:r%10>=2&&(r%100<10||r%100>=20)?1:2,16:r=>r%10==1&&r%100!=11?0:r!==0?1:2,17:r=>r==1||r%10==1&&r%100!=11?0:1,18:r=>r==0?0:r==1?1:2,19:r=>r==1?0:r==0||r%100>1&&r%100<11?1:r%100>10&&r%100<20?2:3,20:r=>r==1?0:r==0||r%100>0&&r%100<20?1:2,21:r=>r%100==1?1:r%100==2?2:r%100==3||r%100==4?3:0,22:r=>r==1?0:r==2?1:(r<0||r>10)&&r%10==0?2:3};const wd=["v1","v2","v3"],xd=["v4"],oa={zero:0,one:1,two:2,few:3,many:4,other:5},Sd=()=>{const r={};return yd.forEach(s=>{s.lngs.forEach(i=>{r[i]={numbers:s.nr,plurals:vd[s.fc]}})}),r};class kd{constructor(s){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=s,this.options=i,this.logger=lt.create("pluralResolver"),(!this.options.compatibilityJSON||xd.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Sd(),this.pluralRulesCache={}}addRule(s,i){this.rules[s]=i}clearCache(){this.pluralRulesCache={}}getRule(s){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const o=Gr(s==="dev"?"en":s),l=i.ordinal?"ordinal":"cardinal",c=JSON.stringify({cleanedCode:o,type:l});if(c in this.pluralRulesCache)return this.pluralRulesCache[c];let f;try{f=new Intl.PluralRules(o,{type:l})}catch{if(!s.match(/-|_/))return;const d=this.languageUtils.getLanguagePartFromCode(s);f=this.getRule(d,i)}return this.pluralRulesCache[c]=f,f}return this.rules[s]||this.rules[this.languageUtils.getLanguagePartFromCode(s)]}needsPlural(s){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=this.getRule(s,i);return this.shouldUseIntlApi()?o&&o.resolvedOptions().pluralCategories.length>1:o&&o.numbers.length>1}getPluralFormsOfKey(s,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(s,o).map(l=>`${i}${l}`)}getSuffixes(s){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=this.getRule(s,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort((l,c)=>oa[l]-oa[c]).map(l=>`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${l}`):o.numbers.map(l=>this.getSuffix(s,l,i)):[]}getSuffix(s,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const l=this.getRule(s,o);return l?this.shouldUseIntlApi()?`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${l.select(i)}`:this.getSuffixRetroCompatible(l,i):(this.logger.warn(`no plural rule found for: ${s}`),"")}getSuffixRetroCompatible(s,i){const o=s.noAbs?s.plurals(i):s.plurals(Math.abs(i));let l=s.numbers[o];this.options.simplifyPluralSuffix&&s.numbers.length===2&&s.numbers[0]===1&&(l===2?l="plural":l===1&&(l=""));const c=()=>this.options.prepend&&l.toString()?this.options.prepend+l.toString():l.toString();return this.options.compatibilityJSON==="v1"?l===1?"":typeof l=="number"?`_plural_${l.toString()}`:c():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&s.numbers.length===2&&s.numbers[0]===1?c():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}shouldUseIntlApi(){return!wd.includes(this.options.compatibilityJSON)}}const la=function(r,s,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,c=ud(r,s,i);return!c&&l&&le(i)&&(c=Pi(r,i,o),c===void 0&&(c=Pi(s,i,o))),c},Ti=r=>r.replace(/\$/g,"$$$$");class Cd{constructor(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=lt.create("interpolator"),this.options=s,this.format=s.interpolation&&s.interpolation.format||(i=>i),this.init(s)}init(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};s.interpolation||(s.interpolation={escapeValue:!0});const{escape:i,escapeValue:o,useRawValueToEscape:l,prefix:c,prefixEscaped:f,suffix:p,suffixEscaped:d,formatSeparator:m,unescapeSuffix:v,unescapePrefix:x,nestingPrefix:w,nestingPrefixEscaped:C,nestingSuffix:N,nestingSuffixEscaped:E,nestingOptionsSeparator:_,maxReplaces:D,alwaysFormat:z}=s.interpolation;this.escape=i!==void 0?i:fd,this.escapeValue=o!==void 0?o:!0,this.useRawValueToEscape=l!==void 0?l:!1,this.prefix=c?mn(c):f||"{{",this.suffix=p?mn(p):d||"}}",this.formatSeparator=m||",",this.unescapePrefix=v?"":x||"-",this.unescapeSuffix=this.unescapePrefix?"":v||"",this.nestingPrefix=w?mn(w):C||mn("$t("),this.nestingSuffix=N?mn(N):E||mn(")"),this.nestingOptionsSeparator=_||",",this.maxReplaces=D||1e3,this.alwaysFormat=z!==void 0?z:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const s=(i,o)=>i&&i.source===o?(i.lastIndex=0,i):new RegExp(o,"g");this.regexp=s(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=s(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=s(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(s,i,o,l){let c,f,p;const d=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},m=C=>{if(C.indexOf(this.formatSeparator)<0){const D=la(i,d,C,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(D,void 0,o,{...l,...i,interpolationkey:C}):D}const N=C.split(this.formatSeparator),E=N.shift().trim(),_=N.join(this.formatSeparator).trim();return this.format(la(i,d,E,this.options.keySeparator,this.options.ignoreJSONStructure),_,o,{...l,...i,interpolationkey:E})};this.resetRegExp();const v=l&&l.missingInterpolationHandler||this.options.missingInterpolationHandler,x=l&&l.interpolation&&l.interpolation.skipOnVariables!==void 0?l.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:C=>Ti(C)},{regex:this.regexp,safeValue:C=>this.escapeValue?Ti(this.escape(C)):Ti(C)}].forEach(C=>{for(p=0;c=C.regex.exec(s);){const N=c[1].trim();if(f=m(N),f===void 0)if(typeof v=="function"){const _=v(s,c,l);f=le(_)?_:""}else if(l&&Object.prototype.hasOwnProperty.call(l,N))f="";else if(x){f=c[0];continue}else this.logger.warn(`missed to pass in variable ${N} for interpolating ${s}`),f="";else!le(f)&&!this.useRawValueToEscape&&(f=Zl(f));const E=C.safeValue(f);if(s=s.replace(c[0],E),x?(C.regex.lastIndex+=f.length,C.regex.lastIndex-=c[0].length):C.regex.lastIndex=0,p++,p>=this.maxReplaces)break}}),s}nest(s,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l,c,f;const p=(d,m)=>{const v=this.nestingOptionsSeparator;if(d.indexOf(v)<0)return d;const x=d.split(new RegExp(`${v}[ ]*{`));let w=`{${x[1]}`;d=x[0],w=this.interpolate(w,f);const C=w.match(/'/g),N=w.match(/"/g);(C&&C.length%2===0&&!N||N.length%2!==0)&&(w=w.replace(/'/g,'"'));try{f=JSON.parse(w),m&&(f={...m,...f})}catch(E){return this.logger.warn(`failed parsing options string in nesting for key ${d}`,E),`${d}${v}${w}`}return f.defaultValue&&f.defaultValue.indexOf(this.prefix)>-1&&delete f.defaultValue,d};for(;l=this.nestingRegexp.exec(s);){let d=[];f={...o},f=f.replace&&!le(f.replace)?f.replace:f,f.applyPostProcessor=!1,delete f.defaultValue;let m=!1;if(l[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(l[1])){const v=l[1].split(this.formatSeparator).map(x=>x.trim());l[1]=v.shift(),d=v,m=!0}if(c=i(p.call(this,l[1].trim(),f),f),c&&l[0]===s&&!le(c))return c;le(c)||(c=Zl(c)),c||(this.logger.warn(`missed to resolve ${l[1]} for nesting ${s}`),c=""),m&&(c=d.reduce((v,x)=>this.format(v,x,o.lng,{...o,interpolationkey:l[1].trim()}),c.trim())),s=s.replace(l[0],c),this.regexp.lastIndex=0}return s}}const $d=r=>{let s=r.toLowerCase().trim();const i={};if(r.indexOf("(")>-1){const o=r.split("(");s=o[0].toLowerCase().trim();const l=o[1].substring(0,o[1].length-1);s==="currency"&&l.indexOf(":")<0?i.currency||(i.currency=l.trim()):s==="relativetime"&&l.indexOf(":")<0?i.range||(i.range=l.trim()):l.split(";").forEach(f=>{if(f){const[p,...d]=f.split(":"),m=d.join(":").trim().replace(/^'+|'+$/g,""),v=p.trim();i[v]||(i[v]=m),m==="false"&&(i[v]=!1),m==="true"&&(i[v]=!0),isNaN(m)||(i[v]=parseInt(m,10))}})}return{formatName:s,formatOptions:i}},yn=r=>{const s={};return(i,o,l)=>{let c=l;l&&l.interpolationkey&&l.formatParams&&l.formatParams[l.interpolationkey]&&l[l.interpolationkey]&&(c={...c,[l.interpolationkey]:void 0});const f=o+JSON.stringify(c);let p=s[f];return p||(p=r(Gr(o),l),s[f]=p),p(i)}};class _d{constructor(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=lt.create("formatter"),this.options=s,this.formats={number:yn((i,o)=>{const l=new Intl.NumberFormat(i,{...o});return c=>l.format(c)}),currency:yn((i,o)=>{const l=new Intl.NumberFormat(i,{...o,style:"currency"});return c=>l.format(c)}),datetime:yn((i,o)=>{const l=new Intl.DateTimeFormat(i,{...o});return c=>l.format(c)}),relativetime:yn((i,o)=>{const l=new Intl.RelativeTimeFormat(i,{...o});return c=>l.format(c,o.range||"day")}),list:yn((i,o)=>{const l=new Intl.ListFormat(i,{...o});return c=>l.format(c)})},this.init(s)}init(s){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=i.interpolation.formatSeparator||","}add(s,i){this.formats[s.toLowerCase().trim()]=i}addCached(s,i){this.formats[s.toLowerCase().trim()]=yn(i)}format(s,i,o){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const c=i.split(this.formatSeparator);if(c.length>1&&c[0].indexOf("(")>1&&c[0].indexOf(")")<0&&c.find(p=>p.indexOf(")")>-1)){const p=c.findIndex(d=>d.indexOf(")")>-1);c[0]=[c[0],...c.splice(1,p)].join(this.formatSeparator)}return c.reduce((p,d)=>{const{formatName:m,formatOptions:v}=$d(d);if(this.formats[m]){let x=p;try{const w=l&&l.formatParams&&l.formatParams[l.interpolationkey]||{},C=w.locale||w.lng||l.locale||l.lng||o;x=this.formats[m](p,C,{...v,...l,...w})}catch(w){this.logger.warn(w)}return x}else this.logger.warn(`there was no format function for ${m}`);return p},s)}}const Pd=(r,s)=>{r.pending[s]!==void 0&&(delete r.pending[s],r.pendingCount--)};class Ed extends es{constructor(s,i,o){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=s,this.store=i,this.services=o,this.languageUtils=o.languageUtils,this.options=l,this.logger=lt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=l.maxParallelReads||10,this.readingCalls=0,this.maxRetries=l.maxRetries>=0?l.maxRetries:5,this.retryTimeout=l.retryTimeout>=1?l.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(o,l.backend,l)}queueLoad(s,i,o,l){const c={},f={},p={},d={};return s.forEach(m=>{let v=!0;i.forEach(x=>{const w=`${m}|${x}`;!o.reload&&this.store.hasResourceBundle(m,x)?this.state[w]=2:this.state[w]<0||(this.state[w]===1?f[w]===void 0&&(f[w]=!0):(this.state[w]=1,v=!1,f[w]===void 0&&(f[w]=!0),c[w]===void 0&&(c[w]=!0),d[x]===void 0&&(d[x]=!0)))}),v||(p[m]=!0)}),(Object.keys(c).length||Object.keys(f).length)&&this.queue.push({pending:f,pendingCount:Object.keys(f).length,loaded:{},errors:[],callback:l}),{toLoad:Object.keys(c),pending:Object.keys(f),toLoadLanguages:Object.keys(p),toLoadNamespaces:Object.keys(d)}}loaded(s,i,o){const l=s.split("|"),c=l[0],f=l[1];i&&this.emit("failedLoading",c,f,i),!i&&o&&this.store.addResourceBundle(c,f,o,void 0,void 0,{skipCopy:!0}),this.state[s]=i?-1:2,i&&o&&(this.state[s]=0);const p={};this.queue.forEach(d=>{ad(d.loaded,[c],f),Pd(d,s),i&&d.errors.push(i),d.pendingCount===0&&!d.done&&(Object.keys(d.loaded).forEach(m=>{p[m]||(p[m]={});const v=d.loaded[m];v.length&&v.forEach(x=>{p[m][x]===void 0&&(p[m][x]=!0)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",p),this.queue=this.queue.filter(d=>!d.done)}read(s,i,o){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,f=arguments.length>5?arguments[5]:void 0;if(!s.length)return f(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:s,ns:i,fcName:o,tried:l,wait:c,callback:f});return}this.readingCalls++;const p=(m,v)=>{if(this.readingCalls--,this.waitingReads.length>0){const x=this.waitingReads.shift();this.read(x.lng,x.ns,x.fcName,x.tried,x.wait,x.callback)}if(m&&v&&l<this.maxRetries){setTimeout(()=>{this.read.call(this,s,i,o,l+1,c*2,f)},c);return}f(m,v)},d=this.backend[o].bind(this.backend);if(d.length===2){try{const m=d(s,i);m&&typeof m.then=="function"?m.then(v=>p(null,v)).catch(p):p(null,m)}catch(m){p(m)}return}return d(s,i,p)}prepareLoading(s,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();le(s)&&(s=this.languageUtils.toResolveHierarchy(s)),le(i)&&(i=[i]);const c=this.queueLoad(s,i,o,l);if(!c.toLoad.length)return c.pending.length||l(),null;c.toLoad.forEach(f=>{this.loadOne(f)})}load(s,i,o){this.prepareLoading(s,i,{},o)}reload(s,i,o){this.prepareLoading(s,i,{reload:!0},o)}loadOne(s){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const o=s.split("|"),l=o[0],c=o[1];this.read(l,c,"read",void 0,void 0,(f,p)=>{f&&this.logger.warn(`${i}loading namespace ${c} for language ${l} failed`,f),!f&&p&&this.logger.log(`${i}loaded namespace ${c} for language ${l}`,p),this.loaded(s,f,p)})}saveMissing(s,i,o,l,c){let f=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},p=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(i)){this.logger.warn(`did not save key "${o}" as the namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(o==null||o==="")){if(this.backend&&this.backend.create){const d={...f,isUpdate:c},m=this.backend.create.bind(this.backend);if(m.length<6)try{let v;m.length===5?v=m(s,i,o,l,d):v=m(s,i,o,l),v&&typeof v.then=="function"?v.then(x=>p(null,x)).catch(p):p(null,v)}catch(v){p(v)}else m(s,i,o,l,p,d)}!s||!s[0]||this.store.addResource(s[0],i,o,l)}}}const aa=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:r=>{let s={};if(typeof r[1]=="object"&&(s=r[1]),le(r[1])&&(s.defaultValue=r[1]),le(r[2])&&(s.tDescription=r[2]),typeof r[2]=="object"||typeof r[3]=="object"){const i=r[3]||r[2];Object.keys(i).forEach(o=>{s[o]=i[o]})}return s},interpolation:{escapeValue:!0,format:r=>r,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),ua=r=>(le(r.ns)&&(r.ns=[r.ns]),le(r.fallbackLng)&&(r.fallbackLng=[r.fallbackLng]),le(r.fallbackNS)&&(r.fallbackNS=[r.fallbackNS]),r.supportedLngs&&r.supportedLngs.indexOf("cimode")<0&&(r.supportedLngs=r.supportedLngs.concat(["cimode"])),r),ns=()=>{},Td=r=>{Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(i=>{typeof r[i]=="function"&&(r[i]=r[i].bind(r))})};class Zn extends es{constructor(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(super(),this.options=ua(s),this.services={},this.logger=lt,this.modules={external:[]},Td(this),i&&!this.isInitialized&&!s.isClone){if(!this.options.initImmediate)return this.init(s,i),this;setTimeout(()=>{this.init(s,i)},0)}}init(){var s=this;let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof i=="function"&&(o=i,i={}),!i.defaultNS&&i.defaultNS!==!1&&i.ns&&(le(i.ns)?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));const l=aa();this.options={...l,...this.options,...ua(i)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...l.interpolation,...this.options.interpolation}),i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator);const c=v=>v?typeof v=="function"?new v:v:null;if(!this.options.isClone){this.modules.logger?lt.init(c(this.modules.logger),this.options):lt.init(null,this.options);let v;this.modules.formatter?v=this.modules.formatter:typeof Intl<"u"&&(v=_d);const x=new ia(this.options);this.store=new na(this.options.resources,this.options);const w=this.services;w.logger=lt,w.resourceStore=this.store,w.languageUtils=x,w.pluralResolver=new kd(x,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),v&&(!this.options.interpolation.format||this.options.interpolation.format===l.interpolation.format)&&(w.formatter=c(v),w.formatter.init(w,this.options),this.options.interpolation.format=w.formatter.format.bind(w.formatter)),w.interpolator=new Cd(this.options),w.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},w.backendConnector=new Ed(c(this.modules.backend),w.resourceStore,w,this.options),w.backendConnector.on("*",function(C){for(var N=arguments.length,E=new Array(N>1?N-1:0),_=1;_<N;_++)E[_-1]=arguments[_];s.emit(C,...E)}),this.modules.languageDetector&&(w.languageDetector=c(this.modules.languageDetector),w.languageDetector.init&&w.languageDetector.init(w,this.options.detection,this.options)),this.modules.i18nFormat&&(w.i18nFormat=c(this.modules.i18nFormat),w.i18nFormat.init&&w.i18nFormat.init(this)),this.translator=new ts(this.services,this.options),this.translator.on("*",function(C){for(var N=arguments.length,E=new Array(N>1?N-1:0),_=1;_<N;_++)E[_-1]=arguments[_];s.emit(C,...E)}),this.modules.external.forEach(C=>{C.init&&C.init(this)})}if(this.format=this.options.interpolation.format,o||(o=ns),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const v=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);v.length>0&&v[0]!=="dev"&&(this.options.lng=v[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(v=>{this[v]=function(){return s.store[v](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(v=>{this[v]=function(){return s.store[v](...arguments),s}});const d=Jn(),m=()=>{const v=(x,w)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),d.resolve(w),o(x,w)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return v(null,this.t.bind(this));this.changeLanguage(this.options.lng,v)};return this.options.resources||!this.options.initImmediate?m():setTimeout(m,0),d}loadResources(s){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ns;const l=le(s)?s:this.language;if(typeof s=="function"&&(o=s),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return o();const c=[],f=p=>{if(!p||p==="cimode")return;this.services.languageUtils.toResolveHierarchy(p).forEach(m=>{m!=="cimode"&&c.indexOf(m)<0&&c.push(m)})};l?f(l):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>f(d)),this.options.preload&&this.options.preload.forEach(p=>f(p)),this.services.backendConnector.load(c,this.options.ns,p=>{!p&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),o(p)})}else o(null)}reloadResources(s,i,o){const l=Jn();return typeof s=="function"&&(o=s,s=void 0),typeof i=="function"&&(o=i,i=void 0),s||(s=this.languages),i||(i=this.options.ns),o||(o=ns),this.services.backendConnector.reload(s,i,c=>{l.resolve(),o(c)}),l}use(s){if(!s)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!s.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return s.type==="backend"&&(this.modules.backend=s),(s.type==="logger"||s.log&&s.warn&&s.error)&&(this.modules.logger=s),s.type==="languageDetector"&&(this.modules.languageDetector=s),s.type==="i18nFormat"&&(this.modules.i18nFormat=s),s.type==="postProcessor"&&ra.addPostProcessor(s),s.type==="formatter"&&(this.modules.formatter=s),s.type==="3rdParty"&&this.modules.external.push(s),this}setResolvedLanguage(s){if(!(!s||!this.languages)&&!(["cimode","dev"].indexOf(s)>-1))for(let i=0;i<this.languages.length;i++){const o=this.languages[i];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}changeLanguage(s,i){var o=this;this.isLanguageChangingTo=s;const l=Jn();this.emit("languageChanging",s);const c=d=>{this.language=d,this.languages=this.services.languageUtils.toResolveHierarchy(d),this.resolvedLanguage=void 0,this.setResolvedLanguage(d)},f=(d,m)=>{m?(c(m),this.translator.changeLanguage(m),this.isLanguageChangingTo=void 0,this.emit("languageChanged",m),this.logger.log("languageChanged",m)):this.isLanguageChangingTo=void 0,l.resolve(function(){return o.t(...arguments)}),i&&i(d,function(){return o.t(...arguments)})},p=d=>{!s&&!d&&this.services.languageDetector&&(d=[]);const m=le(d)?d:this.services.languageUtils.getBestMatchFromCodes(d);m&&(this.language||c(m),this.translator.language||this.translator.changeLanguage(m),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(m)),this.loadResources(m,v=>{f(v,m)})};return!s&&this.services.languageDetector&&!this.services.languageDetector.async?p(this.services.languageDetector.detect()):!s&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(p):this.services.languageDetector.detect(p):p(s),l}getFixedT(s,i,o){var l=this;const c=function(f,p){let d;if(typeof p!="object"){for(var m=arguments.length,v=new Array(m>2?m-2:0),x=2;x<m;x++)v[x-2]=arguments[x];d=l.options.overloadTranslationOptionHandler([f,p].concat(v))}else d={...p};d.lng=d.lng||c.lng,d.lngs=d.lngs||c.lngs,d.ns=d.ns||c.ns,d.keyPrefix!==""&&(d.keyPrefix=d.keyPrefix||o||c.keyPrefix);const w=l.options.keySeparator||".";let C;return d.keyPrefix&&Array.isArray(f)?C=f.map(N=>`${d.keyPrefix}${w}${N}`):C=d.keyPrefix?`${d.keyPrefix}${w}${f}`:f,l.t(C,d)};return le(s)?c.lng=s:c.lngs=s,c.ns=i,c.keyPrefix=o,c}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(s){this.options.defaultNS=s}hasLoadedNamespace(s){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const o=i.lng||this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,c=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;const f=(p,d)=>{const m=this.services.backendConnector.state[`${p}|${d}`];return m===-1||m===0||m===2};if(i.precheck){const p=i.precheck(this,f);if(p!==void 0)return p}return!!(this.hasResourceBundle(o,s)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||f(o,s)&&(!l||f(c,s)))}loadNamespaces(s,i){const o=Jn();return this.options.ns?(le(s)&&(s=[s]),s.forEach(l=>{this.options.ns.indexOf(l)<0&&this.options.ns.push(l)}),this.loadResources(l=>{o.resolve(),i&&i(l)}),o):(i&&i(),Promise.resolve())}loadLanguages(s,i){const o=Jn();le(s)&&(s=[s]);const l=this.options.preload||[],c=s.filter(f=>l.indexOf(f)<0&&this.services.languageUtils.isSupportedCode(f));return c.length?(this.options.preload=l.concat(c),this.loadResources(f=>{o.resolve(),i&&i(f)}),o):(i&&i(),Promise.resolve())}dir(s){if(s||(s=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!s)return"rtl";const i=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],o=this.services&&this.services.languageUtils||new ia(aa());return i.indexOf(o.getLanguagePartFromCode(s))>-1||s.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;return new Zn(s,i)}cloneInstance(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ns;const o=s.forkResourceStore;o&&delete s.forkResourceStore;const l={...this.options,...s,isClone:!0},c=new Zn(l);return(s.debug!==void 0||s.prefix!==void 0)&&(c.logger=c.logger.clone(s)),["store","services","language"].forEach(p=>{c[p]=this[p]}),c.services={...this.services},c.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},o&&(c.store=new na(this.store.data,l),c.services.resourceStore=c.store),c.translator=new ts(c.services,l),c.translator.on("*",function(p){for(var d=arguments.length,m=new Array(d>1?d-1:0),v=1;v<d;v++)m[v-1]=arguments[v];c.emit(p,...m)}),c.init(l,i),c.translator.options=l,c.translator.backendConnector.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},c}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ie=Zn.createInstance();Ie.createInstance=Zn.createInstance,Ie.createInstance,Ie.dir,Ie.init,Ie.loadResources,Ie.reloadResources,Ie.use,Ie.changeLanguage,Ie.getFixedT,Ie.t,Ie.exists,Ie.setDefaultNamespace,Ie.hasLoadedNamespace,Ie.loadNamespaces,Ie.loadLanguages;const ca=[{code:"af",label:"Afrikaans"},{code:"ar",label:"Arabic"},{code:"bg",label:"Bulgarian"},{code:"bn",label:"Bengali"},{code:"bs",label:"Bosnian"},{code:"ca",label:"Catalan"},{code:"cs",label:"Czech"},{code:"da",label:"Danish"},{code:"de",label:"German"},{code:"de-CH",label:"Swiss German"},{code:"el",label:"Greek"},{code:"en",label:"English"},{code:"eo",label:"Esperanto"},{code:"es",label:"Spanish"},{code:"et",label:"Estonian"},{code:"eu",label:"Basque"},{code:"fa",label:"Persian/Farsi"},{code:"fi",label:"Finnish"},{code:"fr",label:"French"},{code:"gd",label:"Gaelic (Scottish)"},{code:"he",label:"Hebrew"},{code:"hi",label:"Hindi"},{code:"hr",label:"Croatian"},{code:"hu",label:"Hungarian"},{code:"id",label:"Indonesian"},{code:"is",label:"Icelandic"},{code:"it",label:"Italian"},{code:"ja",label:"Japanese"},{code:"ko",label:"Korean"},{code:"kz",label:"Kazakh"},{code:"lt",label:"Lithuanian"},{code:"lv",label:"Latvian"},{code:"mk",label:"Macedonian"},{code:"mn",label:"Mongolian"},{code:"ms",label:"Malay"},{code:"nb",label:"Norwegian Bokmål"},{code:"ne",label:"Nepali"},{code:"nl",label:"Dutch"},{code:"nn",label:"Norwegian Nynorsk"},{code:"pa",label:"Punjabi"},{code:"pl",label:"Polish"},{code:"pt",label:"Portuguese"},{code:"pt-BR",label:"Portuguese (Brazil)"},{code:"ro",label:"Romanian"},{code:"ru",label:"Russian"},{code:"si",label:"Sinhala"},{code:"sk",label:"Slovak"},{code:"sl",label:"Slovenian"},{code:"sq",label:"Albanian"},{code:"sr",label:"Serbian"},{code:"sr-Cyrl",label:"Serbian (Cyrillic)"},{code:"sv",label:"Swedish"},{code:"sw",label:"Swahili"},{code:"ta",label:"Tamil"},{code:"th",label:"Thai"},{code:"tr",label:"Turkish"},{code:"uk",label:"Ukrainian"},{code:"ur",label:"Urdu"},{code:"uz",label:"Uzbek"},{code:"vi",label:"Vietnamese"},{code:"zh",label:"Chinese"},{code:"zh-Hant",label:"Traditional Chinese"}],fa=ca.map(r=>r.code);function ha(r){return{...r,...r.default&&typeof r.default=="object"?r.default:{}}}function Nd(r){return function(i,o){return i.reduce((l,c)=>{let f=r(c,o);return f===void 0&&(f=r("en",o)),l[c]={[o]:ha(f||{})},l},{})}}function Ad({generateThemeResources:r,generateResources:s}){return(i="en",o="portal",l={})=>{const c=Ie.createInstance(),f={prefix:"{",suffix:"}"};(o==="theme"||o==="portal")&&(f.escapeValue=!1);let p;return o!=="theme"?p=s(fa,o):p=r(i,l),c.init({lng:i,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:{no:["nb","en"],default:["en"]},ns:o,defaultNS:o,interpolation:f,resources:p}),c}}const jd=Object.freeze(Object.defineProperty({__proto__:null,LOCALE_DATA:ca,SUPPORTED_LOCALES:fa,createGenerateResources:Nd,createI18n:Ad,mergeDefaultExport:ha},Symbol.toStringTag,{value:"Module"})),{createI18n:Ld,createGenerateResources:Od,LOCALE_DATA:Rd,SUPPORTED_LOCALES:Id}=jd;function zd(r,s){const i={};for(const[o,l]of Object.entries(r))i[o.match(/\/locales\/([^/]+)\//)[1]]=l;return Md(i,s)}function Md(r,s){const i=Od(c=>r[c]);function o(c){return{[c]:{theme:{}}}}const l=Ld({generateResources:i,generateThemeResources:o});return l.LOCALE_DATA=Rd,l.SUPPORTED_LOCALES=Id,l.generateResources=i,l.namespace=s,l.default=l,l}const da=zd(Object.assign({"../../locales/af/search.json":Gf,"../../locales/ar/search.json":qf,"../../locales/bg/search.json":eh,"../../locales/bn/search.json":th,"../../locales/bs/search.json":nh,"../../locales/ca/search.json":rh,"../../locales/cs/search.json":sh,"../../locales/da/search.json":ih,"../../locales/de-CH/search.json":oh,"../../locales/de/search.json":lh,"../../locales/el/search.json":ah,"../../locales/en/search.json":uh,"../../locales/eo/search.json":ch,"../../locales/es/search.json":fh,"../../locales/et/search.json":hh,"../../locales/eu/search.json":dh,"../../locales/fa/search.json":ph,"../../locales/fi/search.json":gh,"../../locales/fr/search.json":mh,"../../locales/gd/search.json":yh,"../../locales/he/search.json":vh,"../../locales/hi/search.json":wh,"../../locales/hr/search.json":xh,"../../locales/hu/search.json":Sh,"../../locales/id/search.json":kh,"../../locales/is/search.json":Ch,"../../locales/it/search.json":$h,"../../locales/ja/search.json":_h,"../../locales/ko/search.json":Ph,"../../locales/kz/search.json":Eh,"../../locales/lt/search.json":Th,"../../locales/lv/search.json":Nh,"../../locales/mk/search.json":Ah,"../../locales/mn/search.json":jh,"../../locales/ms/search.json":Lh,"../../locales/nb/search.json":Oh,"../../locales/ne/search.json":Rh,"../../locales/nl/search.json":Ih,"../../locales/nn/search.json":zh,"../../locales/pa/search.json":Mh,"../../locales/pl/search.json":Dh,"../../locales/pt-BR/search.json":Fh,"../../locales/pt/search.json":Uh,"../../locales/ro/search.json":bh,"../../locales/ru/search.json":Bh,"../../locales/si/search.json":Vh,"../../locales/sk/search.json":Hh,"../../locales/sl/search.json":Kh,"../../locales/sq/search.json":Wh,"../../locales/sr-Cyrl/search.json":Qh,"../../locales/sr/search.json":Yh,"../../locales/sv/search.json":Jh,"../../locales/sw/search.json":Xh,"../../locales/ta/search.json":Zh,"../../locales/th/search.json":Gh,"../../locales/tr/search.json":qh,"../../locales/uk/search.json":ed,"../../locales/ur/search.json":td,"../../locales/uz/search.json":nd,"../../locales/vi/search.json":rd,"../../locales/zh-Hant/search.json":sd,"../../locales/zh/search.json":id}),"search"),{LOCALE_DATA:p1,SUPPORTED_LOCALES:g1,generateResources:m1}=da;class Dd extends St.Component{constructor(s){super(s);const i=this.props.locale||"en",o=da(i,"search"),l=o.dir()||"ltr",c=new Zf({adminUrl:s.adminUrl,apiKey:s.apiKey,dir:l});this.state={searchIndex:c,showPopup:!1,indexStarted:!1,indexComplete:!1,t:o.t,dir:l,scrollbarWidth:0},this.inputRef=St.createRef()}componentDidMount(){const s=this.getScrollbarWidth();this.setState({scrollbarWidth:s}),this.initSetup()}componentDidUpdate(s,i){if(i.showPopup!==this.state.showPopup)try{this.state.showPopup?(this.bodyScroll=window.document?.body?.style?.overflow,this.bodyMargin=window.getComputedStyle(document.body).getPropertyValue("margin-right"),window.document.body.style.overflow="hidden",this.state.scrollbarWidth&&document.body.scrollHeight>window.innerHeight&&(window.document.body.style.marginRight=`calc(${this.bodyMargin} + ${this.state.scrollbarWidth}px)`)):(window.document.body.style.overflow=this.bodyScroll||"",!this.bodyMargin||this.bodyMargin==="0px"?window.document.body.style.marginRight="":window.document.body.style.marginRight=this.bodyMargin)}catch{}this.state.showPopup!==i?.showPopup&&!this.state.showPopup&&this.setState({searchValue:""}),this.state.showPopup&&!this.state.indexStarted&&this.setupSearchIndex()}async setupSearchIndex(){this.setState({indexStarted:!0}),await this.state.searchIndex.init(),this.setState({indexComplete:!0})}componentWillUnmount(){window.removeEventListener("hashchange",this.hashHandler,!1),window.removeEventListener("keydown",this.handleKeyDown,!1)}initSetup(){this.handleSearchUrl(),this.addKeyboardShortcuts(),this.setupCustomTriggerButton(),this.hashHandler=()=>{this.handleSearchUrl()},window.addEventListener("hashchange",this.hashHandler,!1)}getScrollbarWidth(){const s=document.createElement("div");s.style.visibility="hidden",s.style.overflow="scroll",document.body.appendChild(s);const i=s.offsetWidth-s.clientWidth;return document.body.removeChild(s),i}setupCustomTriggerButton(){this.clickHandler=s=>{s.preventDefault(),this.setState({showPopup:!0});const i=document.createElement("input");i.style.opacity="0",i.style.position="fixed",i.style.top="0",document.body.appendChild(i),i.focus(),setTimeout(()=>{this.inputRef.current.focus(),document.body.removeChild(i)},150)},this.customTriggerButtons=this.getCustomTriggerButtons(),this.customTriggerButtons.forEach(s=>{s.removeEventListener("click",this.clickHandler),s.addEventListener("click",this.clickHandler)})}getCustomTriggerButtons(){return document.querySelectorAll("[data-ghost-search]")||[]}handleSearchUrl(){const[s]=window.location.hash.substr(1).split("?");(s==="/search"||s==="/search/")&&(this.setState({showPopup:!0}),window.history.replaceState("",document.title,window.location.pathname))}addKeyboardShortcuts(){this.getCustomTriggerButtons()?.length&&(this.handleKeyDown=i=>{if(i.key==="k"&&i.metaKey)return this.setState({showPopup:!0}),i.preventDefault(),i.stopPropagation(),!1},document.addEventListener("keydown",this.handleKeyDown))}render(){return F.jsx(Re.Provider,{value:{page:"search",showPopup:this.state.showPopup,adminUrl:this.props.adminUrl,stylesUrl:this.props.stylesUrl,searchIndex:this.state.searchIndex,indexComplete:this.state.indexComplete,searchValue:this.state.searchValue,inputRef:this.inputRef,onAction:()=>{},dispatch:(s,i)=>{s==="update"&&this.setState({...this.state,...i})},t:this.state.t,dir:this.state.dir},children:F.jsx(Nf,{})})}}const pa="sodo-search-root";function Fd(){const r=document.createElement("div");r.id=pa,document.body.appendChild(r)}function Ud(){const r=document.querySelector("script[data-sodo-search]");if(r){const s=r.dataset.sodoSearch,i=r.dataset.key,o=r.dataset.styles,l=r.dataset.locale||"en";return{adminUrl:s,apiKey:i,stylesUrl:o,locale:l}}return{}}function bd(){Fd()}function Bd(){const{adminUrl:r,apiKey:s,stylesUrl:i,locale:o}=Ud(),l=(r||window.location.origin)?.replace(/\/+$/,"");bd(),nf.render(F.jsx(St.StrictMode,{children:F.jsx(Dd,{adminUrl:l,apiKey:s,stylesUrl:i,locale:o})}),document.getElementById(pa))}Bd();const Vd=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}))}));