@tryghost/sodo-search 1.8.8 → 1.8.11

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,45 +1,45 @@
1
- (function(ee){typeof define=="function"&&define.amd?define(ee):ee()})(function(){"use strict";var ry=Object.defineProperty;var Oh=ee=>{throw TypeError(ee)};var sy=(ee,ne,he)=>ne in ee?ry(ee,ne,{enumerable:!0,configurable:!0,writable:!0,value:he}):ee[ne]=he;var mo=(ee,ne,he)=>sy(ee,typeof ne!="symbol"?ne+"":ne,he),oy=(ee,ne,he)=>ne.has(ee)||Oh("Cannot "+he);var Lh=(ee,ne,he)=>ne.has(ee)?Oh("Cannot add the same private member more than once"):ne instanceof WeakSet?ne.add(ee):ne.set(ee,he);var Oe=(ee,ne,he)=>(oy(ee,ne,"access private method"),he);var Y,_h,Rh,Fh,zh,Ih,Mh,Dh,Uh,Bh,yo;var ee=document.createElement("style");ee.textContent=`.App{text-align:center}.App-logo{height:40vmin;pointer-events:none}@media (prefers-reduced-motion: no-preference){.App-logo{animation:App-logo-spin infinite 20s linear}}.App-header{background-color:#282c34;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:calc(10px + 2vmin);color:#fff}.App-link{color:#61dafb}@keyframes App-logo-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
2
- /*$vite$:1*/`,document.head.appendChild(ee);var ne=typeof document<"u"?document.currentScript:null,he=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function bh(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}),n}var Ql={exports:{}},Mn={};/*
1
+ (function(te){typeof define=="function"&&define.amd?define(te):te()})(function(){"use strict";var R1=Object.defineProperty;var Id=te=>{throw TypeError(te)};var F1=(te,re,pe)=>re in te?R1(te,re,{enumerable:!0,configurable:!0,writable:!0,value:pe}):te[re]=pe;var _o=(te,re,pe)=>F1(te,typeof re!="symbol"?re+"":re,pe),I1=(te,re,pe)=>re.has(te)||Id("Cannot "+pe);var zd=(te,re,pe)=>re.has(te)?Id("Cannot add the same private member more than once"):re instanceof WeakSet?re.add(te):re.set(te,pe);var _e=(te,re,pe)=>(I1(te,re,"access private method"),pe);var Y,Md,Dd,bd,Ud,Bd,Vd,Hd,Wd,Kd,Ro;var te=document.createElement("style");te.textContent=`.App{text-align:center}.App-logo{height:40vmin;pointer-events:none}@media (prefers-reduced-motion: no-preference){.App-logo{animation:App-logo-spin infinite 20s linear}}.App-header{background-color:#282c34;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:calc(10px + 2vmin);color:#fff}.App-link{color:#61dafb}@keyframes App-logo-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
2
+ /*$vite$:1*/`,document.head.appendChild(te);var re=typeof document<"u"?document.currentScript:null,pe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function qd(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}),n}var $a={exports:{}},Wn={};/*
3
3
  object-assign
4
4
  (c) Sindre Sorhus
5
5
  @license MIT
6
- */var Jl=Object.getOwnPropertySymbols,Vh=Object.prototype.hasOwnProperty,Hh=Object.prototype.propertyIsEnumerable;function Kh(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Wh(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(r.join("")!=="0123456789")return!1;var s={};return"abcdefghijklmnopqrst".split("").forEach(function(o){s[o]=o}),Object.keys(Object.assign({},s)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var wo=Wh()?Object.assign:function(e,t){for(var n,r=Kh(e),s,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var i in n)Vh.call(n,i)&&(r[i]=n[i]);if(Jl){s=Jl(n);for(var l=0;l<s.length;l++)Hh.call(n,s[l])&&(r[s[l]]=n[s[l]])}}return r},Yl={exports:{}},b={};/** @license React v17.0.2
6
+ */var ka=Object.getOwnPropertySymbols,Gd=Object.prototype.hasOwnProperty,Qd=Object.prototype.propertyIsEnumerable;function Jd(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Yd(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(r.join("")!=="0123456789")return!1;var s={};return"abcdefghijklmnopqrst".split("").forEach(function(o){s[o]=o}),Object.keys(Object.assign({},s)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Pa=Yd()?Object.assign:function(e,t){for(var n,r=Jd(e),s,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var i in n)Gd.call(n,i)&&(r[i]=n[i]);if(ka){s=ka(n);for(var l=0;l<s.length;l++)Qd.call(n,s[l])&&(r[s[l]]=n[s[l]])}}return r},Ea={exports:{}},V={};/** @license React v17.0.2
7
7
  * react.production.min.js
8
8
  *
9
9
  * Copyright (c) Facebook, Inc. and its affiliates.
10
10
  *
11
11
  * This source code is licensed under the MIT license found in the
12
12
  * LICENSE file in the root directory of this source tree.
13
- */var So=wo,en=60103,Gl=60106;b.Fragment=60107,b.StrictMode=60108,b.Profiler=60114;var Zl=60109,Xl=60110,eu=60112;b.Suspense=60113;var tu=60115,nu=60116;if(typeof Symbol=="function"&&Symbol.for){var Ue=Symbol.for;en=Ue("react.element"),Gl=Ue("react.portal"),b.Fragment=Ue("react.fragment"),b.StrictMode=Ue("react.strict_mode"),b.Profiler=Ue("react.profiler"),Zl=Ue("react.provider"),Xl=Ue("react.context"),eu=Ue("react.forward_ref"),b.Suspense=Ue("react.suspense"),tu=Ue("react.memo"),nu=Ue("react.lazy")}var ru=typeof Symbol=="function"&&Symbol.iterator;function qh(e){return e===null||typeof e!="object"?null:(e=ru&&e[ru]||e["@@iterator"],typeof e=="function"?e:null)}function Dn(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var su={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ou={};function tn(e,t,n){this.props=e,this.context=t,this.refs=ou,this.updater=n||su}tn.prototype.isReactComponent={},tn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Dn(85));this.updater.enqueueSetState(this,e,t,"setState")},tn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function iu(){}iu.prototype=tn.prototype;function Co(e,t,n){this.props=e,this.context=t,this.refs=ou,this.updater=n||su}var xo=Co.prototype=new iu;xo.constructor=Co,So(xo,tn.prototype),xo.isPureReactComponent=!0;var $o={current:null},lu=Object.prototype.hasOwnProperty,uu={key:!0,ref:!0,__self:!0,__source:!0};function au(e,t,n){var r,s={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)lu.call(t,r)&&!uu.hasOwnProperty(r)&&(s[r]=t[r]);var l=arguments.length-2;if(l===1)s.children=n;else if(1<l){for(var u=Array(l),a=0;a<l;a++)u[a]=arguments[a+2];s.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)s[r]===void 0&&(s[r]=l[r]);return{$$typeof:en,type:e,key:o,ref:i,props:s,_owner:$o.current}}function Qh(e,t){return{$$typeof:en,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ko(e){return typeof e=="object"&&e!==null&&e.$$typeof===en}function Jh(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var cu=/\/+/g;function Eo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Jh(""+e.key):t.toString(36)}function Qr(e,t,n,r,s){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case en:case Gl:i=!0}}if(i)return i=e,s=s(i),e=r===""?"."+Eo(i,0):r,Array.isArray(s)?(n="",e!=null&&(n=e.replace(cu,"$&/")+"/"),Qr(s,t,n,"",function(a){return a})):s!=null&&(ko(s)&&(s=Qh(s,n+(!s.key||i&&i.key===s.key?"":(""+s.key).replace(cu,"$&/")+"/")+e)),t.push(s)),1;if(i=0,r=r===""?".":r+":",Array.isArray(e))for(var l=0;l<e.length;l++){o=e[l];var u=r+Eo(o,l);i+=Qr(o,t,n,u,s)}else if(u=qh(e),typeof u=="function")for(e=u.call(e),l=0;!(o=e.next()).done;)o=o.value,u=r+Eo(o,l++),i+=Qr(o,t,n,u,s);else if(o==="object")throw t=""+e,Error(Dn(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return i}function Jr(e,t,n){if(e==null)return e;var r=[],s=0;return Qr(e,r,"","",function(o){return t.call(n,o,s++)}),r}function Yh(e){if(e._status===-1){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(n){e._status===0&&(n=n.default,e._status=1,e._result=n)},function(n){e._status===0&&(e._status=2,e._result=n)})}if(e._status===1)return e._result;throw e._result}var fu={current:null};function nt(){var e=fu.current;if(e===null)throw Error(Dn(321));return e}var Gh={ReactCurrentDispatcher:fu,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:$o,IsSomeRendererActing:{current:!1},assign:So};b.Children={map:Jr,forEach:function(e,t,n){Jr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Jr(e,function(){t++}),t},toArray:function(e){return Jr(e,function(t){return t})||[]},only:function(e){if(!ko(e))throw Error(Dn(143));return e}},b.Component=tn,b.PureComponent=Co,b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Gh,b.cloneElement=function(e,t,n){if(e==null)throw Error(Dn(267,e));var r=So({},e.props),s=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=$o.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)lu.call(t,u)&&!uu.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&l!==void 0?l[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){l=Array(u);for(var a=0;a<u;a++)l[a]=arguments[a+2];r.children=l}return{$$typeof:en,type:e.type,key:s,ref:o,props:r,_owner:i}},b.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:Xl,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:Zl,_context:e},e.Consumer=e},b.createElement=au,b.createFactory=function(e){var t=au.bind(null,e);return t.type=e,t},b.createRef=function(){return{current:null}},b.forwardRef=function(e){return{$$typeof:eu,render:e}},b.isValidElement=ko,b.lazy=function(e){return{$$typeof:nu,_payload:{_status:-1,_result:e},_init:Yh}},b.memo=function(e,t){return{$$typeof:tu,type:e,compare:t===void 0?null:t}},b.useCallback=function(e,t){return nt().useCallback(e,t)},b.useContext=function(e,t){return nt().useContext(e,t)},b.useDebugValue=function(){},b.useEffect=function(e,t){return nt().useEffect(e,t)},b.useImperativeHandle=function(e,t,n){return nt().useImperativeHandle(e,t,n)},b.useLayoutEffect=function(e,t){return nt().useLayoutEffect(e,t)},b.useMemo=function(e,t){return nt().useMemo(e,t)},b.useReducer=function(e,t,n){return nt().useReducer(e,t,n)},b.useRef=function(e){return nt().useRef(e)},b.useState=function(e){return nt().useState(e)},b.version="17.0.2",Yl.exports=b;var D=Yl.exports;const at=vo(D);/** @license React v17.0.2
13
+ */var Io=Pa,rn=60103,ja=60106;V.Fragment=60107,V.StrictMode=60108,V.Profiler=60114;var Aa=60109,Ta=60110,Oa=60112;V.Suspense=60113;var Na=60115,La=60116;if(typeof Symbol=="function"&&Symbol.for){var Be=Symbol.for;rn=Be("react.element"),ja=Be("react.portal"),V.Fragment=Be("react.fragment"),V.StrictMode=Be("react.strict_mode"),V.Profiler=Be("react.profiler"),Aa=Be("react.provider"),Ta=Be("react.context"),Oa=Be("react.forward_ref"),V.Suspense=Be("react.suspense"),Na=Be("react.memo"),La=Be("react.lazy")}var _a=typeof Symbol=="function"&&Symbol.iterator;function Xd(e){return e===null||typeof e!="object"?null:(e=_a&&e[_a]||e["@@iterator"],typeof e=="function"?e:null)}function Kn(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Ra={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Fa={};function sn(e,t,n){this.props=e,this.context=t,this.refs=Fa,this.updater=n||Ra}sn.prototype.isReactComponent={},sn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Kn(85));this.updater.enqueueSetState(this,e,t,"setState")},sn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ia(){}Ia.prototype=sn.prototype;function zo(e,t,n){this.props=e,this.context=t,this.refs=Fa,this.updater=n||Ra}var Mo=zo.prototype=new Ia;Mo.constructor=zo,Io(Mo,sn.prototype),Mo.isPureReactComponent=!0;var Do={current:null},za=Object.prototype.hasOwnProperty,Ma={key:!0,ref:!0,__self:!0,__source:!0};function Da(e,t,n){var r,s={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)za.call(t,r)&&!Ma.hasOwnProperty(r)&&(s[r]=t[r]);var l=arguments.length-2;if(l===1)s.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];s.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)s[r]===void 0&&(s[r]=l[r]);return{$$typeof:rn,type:e,key:o,ref:i,props:s,_owner:Do.current}}function Zd(e,t){return{$$typeof:rn,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function bo(e){return typeof e=="object"&&e!==null&&e.$$typeof===rn}function ep(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var ba=/\/+/g;function Uo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?ep(""+e.key):t.toString(36)}function ss(e,t,n,r,s){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case rn:case ja:i=!0}}if(i)return i=e,s=s(i),e=r===""?"."+Uo(i,0):r,Array.isArray(s)?(n="",e!=null&&(n=e.replace(ba,"$&/")+"/"),ss(s,t,n,"",function(u){return u})):s!=null&&(bo(s)&&(s=Zd(s,n+(!s.key||i&&i.key===s.key?"":(""+s.key).replace(ba,"$&/")+"/")+e)),t.push(s)),1;if(i=0,r=r===""?".":r+":",Array.isArray(e))for(var l=0;l<e.length;l++){o=e[l];var a=r+Uo(o,l);i+=ss(o,t,n,a,s)}else if(a=Xd(e),typeof a=="function")for(e=a.call(e),l=0;!(o=e.next()).done;)o=o.value,a=r+Uo(o,l++),i+=ss(o,t,n,a,s);else if(o==="object")throw t=""+e,Error(Kn(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return i}function os(e,t,n){if(e==null)return e;var r=[],s=0;return ss(e,r,"","",function(o){return t.call(n,o,s++)}),r}function tp(e){if(e._status===-1){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(n){e._status===0&&(n=n.default,e._status=1,e._result=n)},function(n){e._status===0&&(e._status=2,e._result=n)})}if(e._status===1)return e._result;throw e._result}var Ua={current:null};function st(){var e=Ua.current;if(e===null)throw Error(Kn(321));return e}var np={ReactCurrentDispatcher:Ua,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:Do,IsSomeRendererActing:{current:!1},assign:Io};V.Children={map:os,forEach:function(e,t,n){os(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return os(e,function(){t++}),t},toArray:function(e){return os(e,function(t){return t})||[]},only:function(e){if(!bo(e))throw Error(Kn(143));return e}},V.Component=sn,V.PureComponent=zo,V.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=np,V.cloneElement=function(e,t,n){if(e==null)throw Error(Kn(267,e));var r=Io({},e.props),s=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=Do.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)za.call(t,a)&&!Ma.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:rn,type:e.type,key:s,ref:o,props:r,_owner:i}},V.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:Ta,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:Aa,_context:e},e.Consumer=e},V.createElement=Da,V.createFactory=function(e){var t=Da.bind(null,e);return t.type=e,t},V.createRef=function(){return{current:null}},V.forwardRef=function(e){return{$$typeof:Oa,render:e}},V.isValidElement=bo,V.lazy=function(e){return{$$typeof:La,_payload:{_status:-1,_result:e},_init:tp}},V.memo=function(e,t){return{$$typeof:Na,type:e,compare:t===void 0?null:t}},V.useCallback=function(e,t){return st().useCallback(e,t)},V.useContext=function(e,t){return st().useContext(e,t)},V.useDebugValue=function(){},V.useEffect=function(e,t){return st().useEffect(e,t)},V.useImperativeHandle=function(e,t,n){return st().useImperativeHandle(e,t,n)},V.useLayoutEffect=function(e,t){return st().useLayoutEffect(e,t)},V.useMemo=function(e,t){return st().useMemo(e,t)},V.useReducer=function(e,t,n){return st().useReducer(e,t,n)},V.useRef=function(e){return st().useRef(e)},V.useState=function(e){return st().useState(e)},V.version="17.0.2",Ea.exports=V;var D=Ea.exports;const ft=Fo(D);/** @license React v17.0.2
14
14
  * react-jsx-runtime.production.min.js
15
15
  *
16
16
  * Copyright (c) Facebook, Inc. and its affiliates.
17
17
  *
18
18
  * This source code is licensed under the MIT license found in the
19
19
  * LICENSE file in the root directory of this source tree.
20
- */var Zh=D,hu=60103;if(Mn.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var du=Symbol.for;hu=du("react.element"),Mn.Fragment=du("react.fragment")}var Xh=Zh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ed=Object.prototype.hasOwnProperty,td={key:!0,ref:!0,__self:!0,__source:!0};function pu(e,t,n){var r,s={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)ed.call(t,r)&&!td.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:hu,type:e,key:o,ref:i,props:s,_owner:Xh.current}}Mn.jsx=pu,Mn.jsxs=pu,Ql.exports=Mn;var T=Ql.exports,gu={exports:{}},Le={},mu={exports:{}},yu={};/** @license React v0.20.2
20
+ */var rp=D,Ba=60103;if(Wn.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var Va=Symbol.for;Ba=Va("react.element"),Wn.Fragment=Va("react.fragment")}var sp=rp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,op=Object.prototype.hasOwnProperty,ip={key:!0,ref:!0,__self:!0,__source:!0};function Ha(e,t,n){var r,s={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)op.call(t,r)&&!ip.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:Ba,type:e,key:o,ref:i,props:s,_owner:sp.current}}Wn.jsx=Ha,Wn.jsxs=Ha,$a.exports=Wn;var A=$a.exports,Wa={exports:{}},Re={},Ka={exports:{}},qa={};/** @license React v0.20.2
21
21
  * scheduler.production.min.js
22
22
  *
23
23
  * Copyright (c) Facebook, Inc. and its affiliates.
24
24
  *
25
25
  * This source code is licensed under the MIT license found in the
26
26
  * LICENSE file in the root directory of this source tree.
27
- */(function(e){var t,n,r,s;if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}if(typeof window>"u"||typeof MessageChannel!="function"){var u=null,a=null,c=function(){if(u!==null)try{var E=e.unstable_now();u(!0,E),u=null}catch(L){throw setTimeout(c,0),L}};t=function(E){u!==null?setTimeout(t,0,E):(u=E,setTimeout(c,0))},n=function(E,L){a=setTimeout(E,L)},r=function(){clearTimeout(a)},e.unstable_shouldYield=function(){return!1},s=e.unstable_forceFrameRate=function(){}}else{var h=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,w=null,d=-1,p=5,g=0;e.unstable_shouldYield=function(){return e.unstable_now()>=g},s=function(){},e.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):p=0<E?Math.floor(1e3/E):5};var S=new MessageChannel,y=S.port2;S.port1.onmessage=function(){if(w!==null){var E=e.unstable_now();g=E+p;try{w(!0,E)?y.postMessage(null):(v=!1,w=null)}catch(L){throw y.postMessage(null),L}}else v=!1},t=function(E){w=E,v||(v=!0,y.postMessage(null))},n=function(E,L){d=h(function(){E(e.unstable_now())},L)},r=function(){f(d),d=-1}}function $(E,L){var _=E.length;E.push(L);e:for(;;){var M=_-1>>>1,B=E[M];if(B!==void 0&&0<N(B,L))E[M]=L,E[_]=B,_=M;else break e}}function x(E){return E=E[0],E===void 0?null:E}function P(E){var L=E[0];if(L!==void 0){var _=E.pop();if(_!==L){E[0]=_;e:for(var M=0,B=E.length;M<B;){var ve=2*(M+1)-1,De=E[ve],Xt=ve+1,tt=E[Xt];if(De!==void 0&&0>N(De,_))tt!==void 0&&0>N(tt,De)?(E[M]=tt,E[Xt]=_,M=Xt):(E[M]=De,E[ve]=_,M=ve);else if(tt!==void 0&&0>N(tt,_))E[M]=tt,E[Xt]=_,M=Xt;else break e}}return L}return null}function N(E,L){var _=E.sortIndex-L.sortIndex;return _!==0?_:E.id-L.id}var O=[],U=[],Ne=1,fe=null,X=3,Me=!1,Ce=!1,Ae=!1;function C(E){for(var L=x(U);L!==null;){if(L.callback===null)P(U);else if(L.startTime<=E)P(U),L.sortIndex=L.expirationTime,$(O,L);else break;L=x(U)}}function k(E){if(Ae=!1,C(E),!Ce)if(x(O)!==null)Ce=!0,t(A);else{var L=x(U);L!==null&&n(k,L.startTime-E)}}function A(E,L){Ce=!1,Ae&&(Ae=!1,r()),Me=!0;var _=X;try{for(C(L),fe=x(O);fe!==null&&(!(fe.expirationTime>L)||E&&!e.unstable_shouldYield());){var M=fe.callback;if(typeof M=="function"){fe.callback=null,X=fe.priorityLevel;var B=M(fe.expirationTime<=L);L=e.unstable_now(),typeof B=="function"?fe.callback=B:fe===x(O)&&P(O),C(L)}else P(O);fe=x(O)}if(fe!==null)var ve=!0;else{var De=x(U);De!==null&&n(k,De.startTime-L),ve=!1}return ve}finally{fe=null,X=_,Me=!1}}var V=s;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(E){E.callback=null},e.unstable_continueExecution=function(){Ce||Me||(Ce=!0,t(A))},e.unstable_getCurrentPriorityLevel=function(){return X},e.unstable_getFirstCallbackNode=function(){return x(O)},e.unstable_next=function(E){switch(X){case 1:case 2:case 3:var L=3;break;default:L=X}var _=X;X=L;try{return E()}finally{X=_}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=V,e.unstable_runWithPriority=function(E,L){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var _=X;X=E;try{return L()}finally{X=_}},e.unstable_scheduleCallback=function(E,L,_){var M=e.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?M+_:M):_=M,E){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=_+B,E={id:Ne++,callback:L,priorityLevel:E,startTime:_,expirationTime:B,sortIndex:-1},_>M?(E.sortIndex=_,$(U,E),x(O)===null&&E===x(U)&&(Ae?r():Ae=!0,n(k,_-M))):(E.sortIndex=B,$(O,E),Ce||Me||(Ce=!0,t(A))),E},e.unstable_wrapCallback=function(E){var L=X;return function(){var _=X;X=L;try{return E.apply(this,arguments)}finally{X=_}}}})(yu),mu.exports=yu;var nd=mu.exports;/** @license React v17.0.2
27
+ */(function(e){var t,n,r,s;if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}if(typeof window>"u"||typeof MessageChannel!="function"){var a=null,u=null,f=function(){if(a!==null)try{var E=e.unstable_now();a(!0,E),a=null}catch(L){throw setTimeout(f,0),L}};t=function(E){a!==null?setTimeout(t,0,E):(a=E,setTimeout(f,0))},n=function(E,L){u=setTimeout(E,L)},r=function(){clearTimeout(u)},e.unstable_shouldYield=function(){return!1},s=e.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,c=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,w=null,d=-1,p=5,g=0;e.unstable_shouldYield=function(){return e.unstable_now()>=g},s=function(){},e.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):p=0<E?Math.floor(1e3/E):5};var S=new MessageChannel,y=S.port2;S.port1.onmessage=function(){if(w!==null){var E=e.unstable_now();g=E+p;try{w(!0,E)?y.postMessage(null):(v=!1,w=null)}catch(L){throw y.postMessage(null),L}}else v=!1},t=function(E){w=E,v||(v=!0,y.postMessage(null))},n=function(E,L){d=h(function(){E(e.unstable_now())},L)},r=function(){c(d),d=-1}}function $(E,L){var _=E.length;E.push(L);e:for(;;){var M=_-1>>>1,B=E[M];if(B!==void 0&&0<T(B,L))E[M]=L,E[_]=B,_=M;else break e}}function C(E){return E=E[0],E===void 0?null:E}function P(E){var L=E[0];if(L!==void 0){var _=E.pop();if(_!==L){E[0]=_;e:for(var M=0,B=E.length;M<B;){var Se=2*(M+1)-1,Ue=E[Se],nn=Se+1,rt=E[nn];if(Ue!==void 0&&0>T(Ue,_))rt!==void 0&&0>T(rt,Ue)?(E[M]=rt,E[nn]=_,M=nn):(E[M]=Ue,E[Se]=_,M=Se);else if(rt!==void 0&&0>T(rt,_))E[M]=rt,E[nn]=_,M=nn;else break e}}return L}return null}function T(E,L){var _=E.sortIndex-L.sortIndex;return _!==0?_:E.id-L.id}var N=[],U=[],Ne=1,de=null,ee=3,be=!1,$e=!1,Le=!1;function x(E){for(var L=C(U);L!==null;){if(L.callback===null)P(U);else if(L.startTime<=E)P(U),L.sortIndex=L.expirationTime,$(N,L);else break;L=C(U)}}function k(E){if(Le=!1,x(E),!$e)if(C(N)!==null)$e=!0,t(O);else{var L=C(U);L!==null&&n(k,L.startTime-E)}}function O(E,L){$e=!1,Le&&(Le=!1,r()),be=!0;var _=ee;try{for(x(L),de=C(N);de!==null&&(!(de.expirationTime>L)||E&&!e.unstable_shouldYield());){var M=de.callback;if(typeof M=="function"){de.callback=null,ee=de.priorityLevel;var B=M(de.expirationTime<=L);L=e.unstable_now(),typeof B=="function"?de.callback=B:de===C(N)&&P(N),x(L)}else P(N);de=C(N)}if(de!==null)var Se=!0;else{var Ue=C(U);Ue!==null&&n(k,Ue.startTime-L),Se=!1}return Se}finally{de=null,ee=_,be=!1}}var H=s;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(E){E.callback=null},e.unstable_continueExecution=function(){$e||be||($e=!0,t(O))},e.unstable_getCurrentPriorityLevel=function(){return ee},e.unstable_getFirstCallbackNode=function(){return C(N)},e.unstable_next=function(E){switch(ee){case 1:case 2:case 3:var L=3;break;default:L=ee}var _=ee;ee=L;try{return E()}finally{ee=_}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=H,e.unstable_runWithPriority=function(E,L){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var _=ee;ee=E;try{return L()}finally{ee=_}},e.unstable_scheduleCallback=function(E,L,_){var M=e.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?M+_:M):_=M,E){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=_+B,E={id:Ne++,callback:L,priorityLevel:E,startTime:_,expirationTime:B,sortIndex:-1},_>M?(E.sortIndex=_,$(U,E),C(N)===null&&E===C(U)&&(Le?r():Le=!0,n(k,_-M))):(E.sortIndex=B,$(N,E),$e||be||($e=!0,t(O))),E},e.unstable_wrapCallback=function(E){var L=ee;return function(){var _=ee;ee=L;try{return E.apply(this,arguments)}finally{ee=_}}}})(qa),Ka.exports=qa;var lp=Ka.exports;/** @license React v17.0.2
28
28
  * react-dom.production.min.js
29
29
  *
30
30
  * Copyright (c) Facebook, Inc. and its affiliates.
31
31
  *
32
32
  * This source code is licensed under the MIT license found in the
33
33
  * LICENSE file in the root directory of this source tree.
34
- */var Yr=D,Q=wo,oe=nd;function j(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(!Yr)throw Error(j(227));var vu=new Set,Un={};function _t(e,t){nn(e,t),nn(e+"Capture",t)}function nn(e,t){for(Un[e]=t,e=0;e<t.length;e++)vu.add(t[e])}var rt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rd=/^[: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]*$/,wu=Object.prototype.hasOwnProperty,Su={},Cu={};function sd(e){return wu.call(Cu,e)?!0:wu.call(Su,e)?!1:rd.test(e)?Cu[e]=!0:(Su[e]=!0,!1)}function od(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function id(e,t,n,r){if(t===null||typeof t>"u"||od(e,t,n,r))return!0;if(r)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 we(e,t,n,r,s,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){le[e]=new we(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];le[t]=new we(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){le[e]=new we(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){le[e]=new we(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){le[e]=new we(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){le[e]=new we(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){le[e]=new we(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){le[e]=new we(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){le[e]=new we(e,5,!1,e.toLowerCase(),null,!1,!1)});var Po=/[\-:]([a-z])/g;function jo(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(Po,jo);le[t]=new we(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(Po,jo);le[t]=new we(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(Po,jo);le[t]=new we(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){le[e]=new we(e,1,!1,e.toLowerCase(),null,!1,!1)}),le.xlinkHref=new we("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){le[e]=new we(e,1,!1,e.toLowerCase(),null,!0,!0)});function To(e,t,n,r){var s=le.hasOwnProperty(t)?le[t]:null,o=s!==null?s.type===0:r?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");o||(id(t,n,s,r)&&(n=null),r||s===null?sd(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Rt=Yr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Bn=60103,Ft=60106,ct=60107,No=60108,bn=60114,Ao=60109,Oo=60110,Gr=60112,Vn=60113,Zr=60120,Xr=60115,Lo=60116,_o=60121,Ro=60128,xu=60129,Fo=60130,zo=60131;if(typeof Symbol=="function"&&Symbol.for){var ie=Symbol.for;Bn=ie("react.element"),Ft=ie("react.portal"),ct=ie("react.fragment"),No=ie("react.strict_mode"),bn=ie("react.profiler"),Ao=ie("react.provider"),Oo=ie("react.context"),Gr=ie("react.forward_ref"),Vn=ie("react.suspense"),Zr=ie("react.suspense_list"),Xr=ie("react.memo"),Lo=ie("react.lazy"),_o=ie("react.block"),ie("react.scope"),Ro=ie("react.opaque.id"),xu=ie("react.debug_trace_mode"),Fo=ie("react.offscreen"),zo=ie("react.legacy_hidden")}var $u=typeof Symbol=="function"&&Symbol.iterator;function Hn(e){return e===null||typeof e!="object"?null:(e=$u&&e[$u]||e["@@iterator"],typeof e=="function"?e:null)}var Io;function Kn(e){if(Io===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Io=t&&t[1]||""}return`
35
- `+Io+e}var Mo=!1;function es(e,t){if(!e||Mo)return"";Mo=!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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(`
34
+ */var is=D,Q=Pa,ie=lp;function j(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(!is)throw Error(j(227));var Ga=new Set,qn={};function Ft(e,t){on(e,t),on(e+"Capture",t)}function on(e,t){for(qn[e]=t,e=0;e<t.length;e++)Ga.add(t[e])}var ot=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ap=/^[: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]*$/,Qa=Object.prototype.hasOwnProperty,Ja={},Ya={};function up(e){return Qa.call(Ya,e)?!0:Qa.call(Ja,e)?!1:ap.test(e)?Ya[e]=!0:(Ja[e]=!0,!1)}function cp(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function fp(e,t,n,r){if(t===null||typeof t>"u"||cp(e,t,n,r))return!0;if(r)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 xe(e,t,n,r,s,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ue[e]=new xe(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ue[t]=new xe(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){ue[e]=new xe(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ue[e]=new xe(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){ue[e]=new xe(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){ue[e]=new xe(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){ue[e]=new xe(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){ue[e]=new xe(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){ue[e]=new xe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Bo=/[\-:]([a-z])/g;function Vo(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(Bo,Vo);ue[t]=new xe(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(Bo,Vo);ue[t]=new xe(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(Bo,Vo);ue[t]=new xe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){ue[e]=new xe(e,1,!1,e.toLowerCase(),null,!1,!1)}),ue.xlinkHref=new xe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){ue[e]=new xe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ho(e,t,n,r){var s=ue.hasOwnProperty(t)?ue[t]:null,o=s!==null?s.type===0:r?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");o||(fp(t,n,s,r)&&(n=null),r||s===null?up(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var It=is.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Gn=60103,zt=60106,ht=60107,Wo=60108,Qn=60114,Ko=60109,qo=60110,ls=60112,Jn=60113,as=60120,us=60115,Go=60116,Qo=60121,Jo=60128,Xa=60129,Yo=60130,Xo=60131;if(typeof Symbol=="function"&&Symbol.for){var le=Symbol.for;Gn=le("react.element"),zt=le("react.portal"),ht=le("react.fragment"),Wo=le("react.strict_mode"),Qn=le("react.profiler"),Ko=le("react.provider"),qo=le("react.context"),ls=le("react.forward_ref"),Jn=le("react.suspense"),as=le("react.suspense_list"),us=le("react.memo"),Go=le("react.lazy"),Qo=le("react.block"),le("react.scope"),Jo=le("react.opaque.id"),Xa=le("react.debug_trace_mode"),Yo=le("react.offscreen"),Xo=le("react.legacy_hidden")}var Za=typeof Symbol=="function"&&Symbol.iterator;function Yn(e){return e===null||typeof e!="object"?null:(e=Za&&e[Za]||e["@@iterator"],typeof e=="function"?e:null)}var Zo;function Xn(e){if(Zo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Zo=t&&t[1]||""}return`
35
+ `+Zo+e}var ei=!1;function cs(e,t){if(!e||ei)return"";ei=!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(a){var r=a}Reflect.construct(e,[],t)}else{try{t.call()}catch(a){r=a}e.call(t.prototype)}else{try{throw Error()}catch(a){r=a}e()}}catch(a){if(a&&r&&typeof a.stack=="string"){for(var s=a.stack.split(`
36
36
  `),o=r.stack.split(`
37
37
  `),i=s.length-1,l=o.length-1;1<=i&&0<=l&&s[i]!==o[l];)l--;for(;1<=i&&0<=l;i--,l--)if(s[i]!==o[l]){if(i!==1||l!==1)do if(i--,l--,0>l||s[i]!==o[l])return`
38
- `+s[i].replace(" at new "," at ");while(1<=i&&0<=l);break}}}finally{Mo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Kn(e):""}function ld(e){switch(e.tag){case 5:return Kn(e.type);case 16:return Kn("Lazy");case 13:return Kn("Suspense");case 19:return Kn("SuspenseList");case 0:case 2:case 15:return e=es(e.type,!1),e;case 11:return e=es(e.type.render,!1),e;case 22:return e=es(e.type._render,!1),e;case 1:return e=es(e.type,!0),e;default:return""}}function rn(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 ct:return"Fragment";case Ft:return"Portal";case bn:return"Profiler";case No:return"StrictMode";case Vn:return"Suspense";case Zr:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Oo:return(e.displayName||"Context")+".Consumer";case Ao:return(e._context.displayName||"Context")+".Provider";case Gr:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case Xr:return rn(e.type);case _o:return rn(e._render);case Lo:t=e._payload,e=e._init;try{return rn(e(t))}catch{}}return null}function ft(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ku(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ud(e){var t=ku(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ts(e){e._valueTracker||(e._valueTracker=ud(e))}function Eu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ku(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ns(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 Do(e,t){var n=t.checked;return Q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Pu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ft(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ju(e,t){t=t.checked,t!=null&&To(e,"checked",t,!1)}function Uo(e,t){ju(e,t);var n=ft(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Bo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Bo(e,t.type,ft(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Tu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Bo(e,t,n){(t!=="number"||ns(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ad(e){var t="";return Yr.Children.forEach(e,function(n){n!=null&&(t+=n)}),t}function bo(e,t){return e=Q({children:void 0},t),(t=ad(t.children))&&(e.children=t),e}function sn(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ft(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Vo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(j(91));return Q({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Nu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(j(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(j(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ft(n)}}function Au(e,t){var n=ft(t.value),r=ft(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Ou(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var Ho={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function Lu(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 Ko(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Lu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var rs,_u=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!==Ho.svg||"innerHTML"in e)e.innerHTML=t;else{for(rs=rs||document.createElement("div"),rs.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=rs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Wn(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},cd=["Webkit","ms","Moz","O"];Object.keys(qn).forEach(function(e){cd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qn[t]=qn[e]})});function Ru(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 Fu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Ru(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var fd=Q({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 Wo(e,t){if(t){if(fd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(j(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(j(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(j(61))}if(t.style!=null&&typeof t.style!="object")throw Error(j(62))}}function qo(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 Qo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Jo=null,on=null,ln=null;function zu(e){if(e=hr(e)){if(typeof Jo!="function")throw Error(j(280));var t=e.stateNode;t&&(t=Cs(t),Jo(e.stateNode,e.type,t))}}function Iu(e){on?ln?ln.push(e):ln=[e]:on=e}function Mu(){if(on){var e=on,t=ln;if(ln=on=null,zu(e),t)for(e=0;e<t.length;e++)zu(t[e])}}function Yo(e,t){return e(t)}function Du(e,t,n,r,s){return e(t,n,r,s)}function Go(){}var Uu=Yo,zt=!1,Zo=!1;function Xo(){(on!==null||ln!==null)&&(Go(),Mu())}function hd(e,t,n){if(Zo)return e(t,n);Zo=!0;try{return Uu(e,t,n)}finally{Zo=!1,Xo()}}function Qn(e,t){var n=e.stateNode;if(n===null)return null;var r=Cs(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(j(231,t,typeof n));return n}var ei=!1;if(rt)try{var Jn={};Object.defineProperty(Jn,"passive",{get:function(){ei=!0}}),window.addEventListener("test",Jn,Jn),window.removeEventListener("test",Jn,Jn)}catch{ei=!1}function dd(e,t,n,r,s,o,i,l,u){var a=Array.prototype.slice.call(arguments,3);try{t.apply(n,a)}catch(c){this.onError(c)}}var Yn=!1,ss=null,os=!1,ti=null,pd={onError:function(e){Yn=!0,ss=e}};function gd(e,t,n,r,s,o,i,l,u){Yn=!1,ss=null,dd.apply(pd,arguments)}function md(e,t,n,r,s,o,i,l,u){if(gd.apply(this,arguments),Yn){if(Yn){var a=ss;Yn=!1,ss=null}else throw Error(j(198));os||(os=!0,ti=a)}}function It(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&1026&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Bu(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 bu(e){if(It(e)!==e)throw Error(j(188))}function yd(e){var t=e.alternate;if(!t){if(t=It(e),t===null)throw Error(j(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var o=s.alternate;if(o===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return bu(s),e;if(o===r)return bu(s),t;o=o.sibling}throw Error(j(188))}if(n.return!==r.return)n=s,r=o;else{for(var i=!1,l=s.child;l;){if(l===n){i=!0,n=s,r=o;break}if(l===r){i=!0,r=s,n=o;break}l=l.sibling}if(!i){for(l=o.child;l;){if(l===n){i=!0,n=o,r=s;break}if(l===r){i=!0,r=o,n=s;break}l=l.sibling}if(!i)throw Error(j(189))}}if(n.alternate!==r)throw Error(j(190))}if(n.tag!==3)throw Error(j(188));return n.stateNode.current===n?e:t}function Vu(e){if(e=yd(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 Hu(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var Ku,ni,Wu,qu,ri=!1,We=[],ht=null,dt=null,pt=null,Gn=new Map,Zn=new Map,Xn=[],Qu="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 si(e,t,n,r,s){return{blockedOn:e,domEventName:t,eventSystemFlags:n|16,nativeEvent:s,targetContainers:[r]}}function Ju(e,t){switch(e){case"focusin":case"focusout":ht=null;break;case"dragenter":case"dragleave":dt=null;break;case"mouseover":case"mouseout":pt=null;break;case"pointerover":case"pointerout":Gn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zn.delete(t.pointerId)}}function er(e,t,n,r,s,o){return e===null||e.nativeEvent!==o?(e=si(t,n,r,s,o),t!==null&&(t=hr(t),t!==null&&ni(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function vd(e,t,n,r,s){switch(t){case"focusin":return ht=er(ht,e,t,n,r,s),!0;case"dragenter":return dt=er(dt,e,t,n,r,s),!0;case"mouseover":return pt=er(pt,e,t,n,r,s),!0;case"pointerover":var o=s.pointerId;return Gn.set(o,er(Gn.get(o)||null,e,t,n,r,s)),!0;case"gotpointercapture":return o=s.pointerId,Zn.set(o,er(Zn.get(o)||null,e,t,n,r,s)),!0}return!1}function wd(e){var t=Mt(e.target);if(t!==null){var n=It(t);if(n!==null){if(t=n.tag,t===13){if(t=Bu(n),t!==null){e.blockedOn=t,qu(e.lanePriority,function(){oe.unstable_runWithPriority(e.priority,function(){Wu(n)})});return}}else if(t===3&&n.stateNode.hydrate){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function is(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ci(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null)return t=hr(n),t!==null&&ni(t),e.blockedOn=n,!1;t.shift()}return!0}function Yu(e,t,n){is(e)&&n.delete(t)}function Sd(){for(ri=!1;0<We.length;){var e=We[0];if(e.blockedOn!==null){e=hr(e.blockedOn),e!==null&&Ku(e);break}for(var t=e.targetContainers;0<t.length;){var n=ci(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null){e.blockedOn=n;break}t.shift()}e.blockedOn===null&&We.shift()}ht!==null&&is(ht)&&(ht=null),dt!==null&&is(dt)&&(dt=null),pt!==null&&is(pt)&&(pt=null),Gn.forEach(Yu),Zn.forEach(Yu)}function tr(e,t){e.blockedOn===t&&(e.blockedOn=null,ri||(ri=!0,oe.unstable_scheduleCallback(oe.unstable_NormalPriority,Sd)))}function Gu(e){function t(s){return tr(s,e)}if(0<We.length){tr(We[0],e);for(var n=1;n<We.length;n++){var r=We[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ht!==null&&tr(ht,e),dt!==null&&tr(dt,e),pt!==null&&tr(pt,e),Gn.forEach(t),Zn.forEach(t),n=0;n<Xn.length;n++)r=Xn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Xn.length&&(n=Xn[0],n.blockedOn===null);)wd(n),n.blockedOn===null&&Xn.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 un={animationend:ls("Animation","AnimationEnd"),animationiteration:ls("Animation","AnimationIteration"),animationstart:ls("Animation","AnimationStart"),transitionend:ls("Transition","TransitionEnd")},oi={},Zu={};rt&&(Zu=document.createElement("div").style,"AnimationEvent"in window||(delete un.animationend.animation,delete un.animationiteration.animation,delete un.animationstart.animation),"TransitionEvent"in window||delete un.transitionend.transition);function us(e){if(oi[e])return oi[e];if(!un[e])return e;var t=un[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Zu)return oi[e]=t[n];return e}var Xu=us("animationend"),ea=us("animationiteration"),ta=us("animationstart"),na=us("transitionend"),ra=new Map,ii=new Map,Cd=["abort","abort",Xu,"animationEnd",ea,"animationIteration",ta,"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",na,"transitionEnd","waiting","waiting"];function li(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],s=e[n+1];s="on"+(s[0].toUpperCase()+s.slice(1)),ii.set(r,t),ra.set(r,s),_t(s,[r])}}var xd=oe.unstable_now;xd();var K=8;function an(e){if(1&e)return K=15,1;if(2&e)return K=14,2;if(4&e)return K=13,4;var t=24&e;return t!==0?(K=12,t):e&32?(K=11,32):(t=192&e,t!==0?(K=10,t):e&256?(K=9,256):(t=3584&e,t!==0?(K=8,t):e&4096?(K=7,4096):(t=4186112&e,t!==0?(K=6,t):(t=62914560&e,t!==0?(K=5,t):e&67108864?(K=4,67108864):e&134217728?(K=3,134217728):(t=805306368&e,t!==0?(K=2,t):1073741824&e?(K=1,1073741824):(K=8,e))))))}function $d(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 kd(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(j(358,e))}}function nr(e,t){var n=e.pendingLanes;if(n===0)return K=0;var r=0,s=0,o=e.expiredLanes,i=e.suspendedLanes,l=e.pingedLanes;if(o!==0)r=o,s=K=15;else if(o=n&134217727,o!==0){var u=o&~i;u!==0?(r=an(u),s=K):(l&=o,l!==0&&(r=an(l),s=K))}else o=n&~i,o!==0?(r=an(o),s=K):l!==0&&(r=an(l),s=K);if(r===0)return 0;if(r=31-gt(r),r=n&((0>r?0:1<<r)<<1)-1,t!==0&&t!==r&&!(t&i)){if(an(t),s<=K)return t;K=s}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-gt(t),s=1<<n,r|=e[n],t&=~s;return r}function sa(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function as(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=cn(24&~t),e===0?as(10,t):e;case 10:return e=cn(192&~t),e===0?as(8,t):e;case 8:return e=cn(3584&~t),e===0&&(e=cn(4186112&~t),e===0&&(e=512)),e;case 2:return t=cn(805306368&~t),t===0&&(t=268435456),t}throw Error(j(358,e))}function cn(e){return e&-e}function ui(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function cs(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,e=e.eventTimes,t=31-gt(t),e[t]=n}var gt=Math.clz32?Math.clz32:jd,Ed=Math.log,Pd=Math.LN2;function jd(e){return e===0?32:31-(Ed(e)/Pd|0)|0}var Td=oe.unstable_UserBlockingPriority,Nd=oe.unstable_runWithPriority,fs=!0;function Ad(e,t,n,r){zt||Go();var s=ai,o=zt;zt=!0;try{Du(s,e,t,n,r)}finally{(zt=o)||Xo()}}function Od(e,t,n,r){Nd(Td,ai.bind(null,e,t,n,r))}function ai(e,t,n,r){if(fs){var s;if((s=(t&4)===0)&&0<We.length&&-1<Qu.indexOf(e))e=si(null,e,t,n,r),We.push(e);else{var o=ci(e,t,n,r);if(o===null)s&&Ju(e,r);else{if(s){if(-1<Qu.indexOf(e)){e=si(o,e,t,n,r),We.push(e);return}if(vd(o,e,t,n,r))return;Ju(e,r)}_a(e,t,r,null,n)}}}}function ci(e,t,n,r){var s=Qo(r);if(s=Mt(s),s!==null){var o=It(s);if(o===null)s=null;else{var i=o.tag;if(i===13){if(s=Bu(o),s!==null)return s;s=null}else if(i===3){if(o.stateNode.hydrate)return o.tag===3?o.stateNode.containerInfo:null;s=null}else o!==s&&(s=null)}}return _a(e,t,r,s,n),null}var mt=null,fi=null,hs=null;function oa(){if(hs)return hs;var e,t=fi,n=t.length,r,s="value"in mt?mt.value:mt.textContent,o=s.length;for(e=0;e<n&&t[e]===s[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===s[o-r];r++);return hs=s.slice(e,1<r?1-r:void 0)}function ds(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 ps(){return!0}function ia(){return!1}function je(e){function t(n,r,s,o,i){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ps:ia,this.isPropagationStopped=ia,this}return Q(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=ps)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ps)},persist:function(){},isPersistent:ps}),t}var fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hi=je(fn),rr=Q({},fn,{view:0,detail:0}),Ld=je(rr),di,pi,sr,gs=Q({},rr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:mi,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!==sr&&(sr&&e.type==="mousemove"?(di=e.screenX-sr.screenX,pi=e.screenY-sr.screenY):pi=di=0,sr=e),di)},movementY:function(e){return"movementY"in e?e.movementY:pi}}),la=je(gs),_d=Q({},gs,{dataTransfer:0}),Rd=je(_d),Fd=Q({},rr,{relatedTarget:0}),gi=je(Fd),zd=Q({},fn,{animationName:0,elapsedTime:0,pseudoElement:0}),Id=je(zd),Md=Q({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Dd=je(Md),Ud=Q({},fn,{data:0}),ua=je(Ud),Bd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bd={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"},Vd={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Hd(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Vd[e])?!!t[e]:!1}function mi(){return Hd}var Kd=Q({},rr,{key:function(e){if(e.key){var t=Bd[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ds(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?bd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:mi,charCode:function(e){return e.type==="keypress"?ds(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ds(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Wd=je(Kd),qd=Q({},gs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),aa=je(qd),Qd=Q({},rr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:mi}),Jd=je(Qd),Yd=Q({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Gd=je(Yd),Zd=Q({},gs,{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}),Xd=je(Zd),ep=[9,13,27,32],yi=rt&&"CompositionEvent"in window,or=null;rt&&"documentMode"in document&&(or=document.documentMode);var tp=rt&&"TextEvent"in window&&!or,ca=rt&&(!yi||or&&8<or&&11>=or),fa=" ",ha=!1;function da(e,t){switch(e){case"keyup":return ep.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pa(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var hn=!1;function np(e,t){switch(e){case"compositionend":return pa(t);case"keypress":return t.which!==32?null:(ha=!0,fa);case"textInput":return e=t.data,e===fa&&ha?null:e;default:return null}}function rp(e,t){if(hn)return e==="compositionend"||!yi&&da(e,t)?(e=oa(),hs=fi=mt=null,hn=!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 ca&&t.locale!=="ko"?null:t.data;default:return null}}var sp={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 ga(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!sp[e.type]:t==="textarea"}function ma(e,t,n,r){Iu(r),t=ys(t,"onChange"),0<t.length&&(n=new hi("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ir=null,lr=null;function op(e){Ta(e,0)}function ms(e){var t=yn(e);if(Eu(t))return e}function ip(e,t){if(e==="change")return t}var ya=!1;if(rt){var vi;if(rt){var wi="oninput"in document;if(!wi){var va=document.createElement("div");va.setAttribute("oninput","return;"),wi=typeof va.oninput=="function"}vi=wi}else vi=!1;ya=vi&&(!document.documentMode||9<document.documentMode)}function wa(){ir&&(ir.detachEvent("onpropertychange",Sa),lr=ir=null)}function Sa(e){if(e.propertyName==="value"&&ms(lr)){var t=[];if(ma(t,lr,e,Qo(e)),e=op,zt)e(t);else{zt=!0;try{Yo(e,t)}finally{zt=!1,Xo()}}}}function lp(e,t,n){e==="focusin"?(wa(),ir=t,lr=n,ir.attachEvent("onpropertychange",Sa)):e==="focusout"&&wa()}function up(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ms(lr)}function ap(e,t){if(e==="click")return ms(t)}function cp(e,t){if(e==="input"||e==="change")return ms(t)}function fp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _e=typeof Object.is=="function"?Object.is:fp,hp=Object.prototype.hasOwnProperty;function ur(e,t){if(_e(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!hp.call(t,n[r])||!_e(e[n[r]],t[n[r]]))return!1;return!0}function Ca(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xa(e,t){var n=Ca(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ca(n)}}function $a(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$a(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ka(){for(var e=window,t=ns();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ns(e.document)}return t}function Si(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 dp=rt&&"documentMode"in document&&11>=document.documentMode,dn=null,Ci=null,ar=null,xi=!1;function Ea(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xi||dn==null||dn!==ns(r)||(r=dn,"selectionStart"in r&&Si(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ar&&ur(ar,r)||(ar=r,r=ys(Ci,"onSelect"),0<r.length&&(t=new hi("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=dn)))}li("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),li("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),li(Cd,2);for(var Pa="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),$i=0;$i<Pa.length;$i++)ii.set(Pa[$i],0);nn("onMouseEnter",["mouseout","mouseover"]),nn("onMouseLeave",["mouseout","mouseover"]),nn("onPointerEnter",["pointerout","pointerover"]),nn("onPointerLeave",["pointerout","pointerover"]),_t("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),_t("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),_t("onBeforeInput",["compositionend","keypress","textInput","paste"]),_t("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),_t("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),_t("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var cr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),pp=new Set("cancel close invalid load scroll toggle".split(" ").concat(cr));function ja(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,md(r,t,void 0,e),e.currentTarget=null}function Ta(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],u=l.instance,a=l.currentTarget;if(l=l.listener,u!==o&&s.isPropagationStopped())break e;ja(s,l,a),o=u}else for(i=0;i<r.length;i++){if(l=r[i],u=l.instance,a=l.currentTarget,l=l.listener,u!==o&&s.isPropagationStopped())break e;ja(s,l,a),o=u}}}if(os)throw e=ti,os=!1,ti=null,e}function W(e,t){var n=Da(t),r=e+"__bubble";n.has(r)||(La(t,e,2,!1),n.add(r))}var Na="_reactListening"+Math.random().toString(36).slice(2);function Aa(e){e[Na]||(e[Na]=!0,vu.forEach(function(t){pp.has(t)||Oa(t,!1,e,null),Oa(t,!0,e,null)}))}function Oa(e,t,n,r){var s=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,o=n;e==="selectionchange"&&n.nodeType!==9&&(o=n.ownerDocument);var i=Da(o),l=e+"__"+(t?"capture":"bubble");i.has(l)||(t&&(s|=4),La(o,e,s,t),i.add(l))}function La(e,t,n,r){var s=ii.get(t);switch(s===void 0?2:s){case 0:s=Ad;break;case 1:s=Od;break;default:s=ai}n=s.bind(null,t,n,e),s=void 0,!ei||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function _a(e,t,n,r,s){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var l=r.stateNode.containerInfo;if(l===s||l.nodeType===8&&l.parentNode===s)break;if(i===4)for(i=r.return;i!==null;){var u=i.tag;if((u===3||u===4)&&(u=i.stateNode.containerInfo,u===s||u.nodeType===8&&u.parentNode===s))return;i=i.return}for(;l!==null;){if(i=Mt(l),i===null)return;if(u=i.tag,u===5||u===6){r=o=i;continue e}l=l.parentNode}}r=r.return}hd(function(){var a=o,c=Qo(n),h=[];e:{var f=ra.get(e);if(f!==void 0){var m=hi,v=e;switch(e){case"keypress":if(ds(n)===0)break e;case"keydown":case"keyup":m=Wd;break;case"focusin":v="focus",m=gi;break;case"focusout":v="blur",m=gi;break;case"beforeblur":case"afterblur":m=gi;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":m=la;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=Rd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=Jd;break;case Xu:case ea:case ta:m=Id;break;case na:m=Gd;break;case"scroll":m=Ld;break;case"wheel":m=Xd;break;case"copy":case"cut":case"paste":m=Dd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=aa}var w=(t&4)!==0,d=!w&&e==="scroll",p=w?f!==null?f+"Capture":null:f;w=[];for(var g=a,S;g!==null;){S=g;var y=S.stateNode;if(S.tag===5&&y!==null&&(S=y,p!==null&&(y=Qn(g,p),y!=null&&w.push(fr(g,y,S)))),d)break;g=g.return}0<w.length&&(f=new m(f,v,null,n,c),h.push({event:f,listeners:w}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",f&&!(t&16)&&(v=n.relatedTarget||n.fromElement)&&(Mt(v)||v[mn]))break e;if((m||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,m?(v=n.relatedTarget||n.toElement,m=a,v=v?Mt(v):null,v!==null&&(d=It(v),v!==d||v.tag!==5&&v.tag!==6)&&(v=null)):(m=null,v=a),m!==v)){if(w=la,y="onMouseLeave",p="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(w=aa,y="onPointerLeave",p="onPointerEnter",g="pointer"),d=m==null?f:yn(m),S=v==null?f:yn(v),f=new w(y,g+"leave",m,n,c),f.target=d,f.relatedTarget=S,y=null,Mt(c)===a&&(w=new w(p,g+"enter",v,n,c),w.target=S,w.relatedTarget=d,y=w),d=y,m&&v)t:{for(w=m,p=v,g=0,S=w;S;S=pn(S))g++;for(S=0,y=p;y;y=pn(y))S++;for(;0<g-S;)w=pn(w),g--;for(;0<S-g;)p=pn(p),S--;for(;g--;){if(w===p||p!==null&&w===p.alternate)break t;w=pn(w),p=pn(p)}w=null}else w=null;m!==null&&Ra(h,f,m,w,!1),v!==null&&d!==null&&Ra(h,d,v,w,!0)}}e:{if(f=a?yn(a):window,m=f.nodeName&&f.nodeName.toLowerCase(),m==="select"||m==="input"&&f.type==="file")var $=ip;else if(ga(f))if(ya)$=cp;else{$=up;var x=lp}else(m=f.nodeName)&&m.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&($=ap);if($&&($=$(e,a))){ma(h,$,n,c);break e}x&&x(e,f,a),e==="focusout"&&(x=f._wrapperState)&&x.controlled&&f.type==="number"&&Bo(f,"number",f.value)}switch(x=a?yn(a):window,e){case"focusin":(ga(x)||x.contentEditable==="true")&&(dn=x,Ci=a,ar=null);break;case"focusout":ar=Ci=dn=null;break;case"mousedown":xi=!0;break;case"contextmenu":case"mouseup":case"dragend":xi=!1,Ea(h,n,c);break;case"selectionchange":if(dp)break;case"keydown":case"keyup":Ea(h,n,c)}var P;if(yi)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else hn?da(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(ca&&n.locale!=="ko"&&(hn||N!=="onCompositionStart"?N==="onCompositionEnd"&&hn&&(P=oa()):(mt=c,fi="value"in mt?mt.value:mt.textContent,hn=!0)),x=ys(a,N),0<x.length&&(N=new ua(N,e,null,n,c),h.push({event:N,listeners:x}),P?N.data=P:(P=pa(n),P!==null&&(N.data=P)))),(P=tp?np(e,n):rp(e,n))&&(a=ys(a,"onBeforeInput"),0<a.length&&(c=new ua("onBeforeInput","beforeinput",null,n,c),h.push({event:c,listeners:a}),c.data=P))}Ta(h,t)})}function fr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ys(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,o=s.stateNode;s.tag===5&&o!==null&&(s=o,o=Qn(e,n),o!=null&&r.unshift(fr(e,o,s)),o=Qn(e,t),o!=null&&r.push(fr(e,o,s))),e=e.return}return r}function pn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Ra(e,t,n,r,s){for(var o=t._reactName,i=[];n!==null&&n!==r;){var l=n,u=l.alternate,a=l.stateNode;if(u!==null&&u===r)break;l.tag===5&&a!==null&&(l=a,s?(u=Qn(n,o),u!=null&&i.unshift(fr(n,u,l))):s||(u=Qn(n,o),u!=null&&i.push(fr(n,u,l)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}function vs(){}var ki=null,Ei=null;function Fa(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Pi(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 za=typeof setTimeout=="function"?setTimeout:void 0,gp=typeof clearTimeout=="function"?clearTimeout:void 0;function ji(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function gn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function Ia(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 Ti=0;function mp(e){return{$$typeof:Ro,toString:e,valueOf:e}}var ws=Math.random().toString(36).slice(2),yt="__reactFiber$"+ws,Ss="__reactProps$"+ws,mn="__reactContainer$"+ws,Ma="__reactEvents$"+ws;function Mt(e){var t=e[yt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mn]||n[yt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ia(e);e!==null;){if(n=e[yt])return n;e=Ia(e)}return t}e=n,n=e.parentNode}return null}function hr(e){return e=e[yt]||e[mn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function yn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(j(33))}function Cs(e){return e[Ss]||null}function Da(e){var t=e[Ma];return t===void 0&&(t=e[Ma]=new Set),t}var Ni=[],vn=-1;function vt(e){return{current:e}}function q(e){0>vn||(e.current=Ni[vn],Ni[vn]=null,vn--)}function G(e,t){vn++,Ni[vn]=e.current,e.current=t}var wt={},de=vt(wt),xe=vt(!1),Dt=wt;function wn(e,t){var n=e.type.contextTypes;if(!n)return wt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},o;for(o in n)s[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function $e(e){return e=e.childContextTypes,e!=null}function xs(){q(xe),q(de)}function Ua(e,t,n){if(de.current!==wt)throw Error(j(168));G(de,t),G(xe,n)}function Ba(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in e))throw Error(j(108,rn(t)||"Unknown",s));return Q({},n,r)}function $s(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wt,Dt=de.current,G(de,e),G(xe,xe.current),!0}function ba(e,t,n){var r=e.stateNode;if(!r)throw Error(j(169));n?(e=Ba(e,t,Dt),r.__reactInternalMemoizedMergedChildContext=e,q(xe),q(de),G(de,e)):q(xe),G(xe,n)}var Ai=null,Ut=null,yp=oe.unstable_runWithPriority,Oi=oe.unstable_scheduleCallback,Li=oe.unstable_cancelCallback,vp=oe.unstable_shouldYield,Va=oe.unstable_requestPaint,_i=oe.unstable_now,wp=oe.unstable_getCurrentPriorityLevel,ks=oe.unstable_ImmediatePriority,Ha=oe.unstable_UserBlockingPriority,Ka=oe.unstable_NormalPriority,Wa=oe.unstable_LowPriority,qa=oe.unstable_IdlePriority,Ri={},Sp=Va!==void 0?Va:function(){},st=null,Es=null,Fi=!1,Qa=_i(),pe=1e4>Qa?_i:function(){return _i()-Qa};function Sn(){switch(wp()){case ks:return 99;case Ha:return 98;case Ka:return 97;case Wa:return 96;case qa:return 95;default:throw Error(j(332))}}function Ja(e){switch(e){case 99:return ks;case 98:return Ha;case 97:return Ka;case 96:return Wa;case 95:return qa;default:throw Error(j(332))}}function Bt(e,t){return e=Ja(e),yp(e,t)}function dr(e,t,n){return e=Ja(e),Oi(e,t,n)}function qe(){if(Es!==null){var e=Es;Es=null,Li(e)}Ya()}function Ya(){if(!Fi&&st!==null){Fi=!0;var e=0;try{var t=st;Bt(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(n!==null)}}),st=null}catch(n){throw st!==null&&(st=st.slice(e+1)),Oi(ks,qe),n}finally{Fi=!1}}}var Cp=Rt.ReactCurrentBatchConfig;function Be(e,t){if(e&&e.defaultProps){t=Q({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Ps=vt(null),js=null,Cn=null,Ts=null;function zi(){Ts=Cn=js=null}function Ii(e){var t=Ps.current;q(Ps),e.type._context._currentValue=t}function Ga(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 xn(e,t){js=e,Ts=Cn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(be=!0),e.firstContext=null)}function Re(e,t){if(Ts!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(Ts=e,t=1073741823),t={context:e,observedBits:t,next:null},Cn===null){if(js===null)throw Error(j(308));Cn=t,js.dependencies={lanes:0,firstContext:t,responders:null}}else Cn=Cn.next=t;return e._currentValue}var St=!1;function Mi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function Za(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 Ct(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function xt(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 Xa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?s=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?s=o=t:o=o.next=t}else s=o=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function pr(e,t,n,r){var s=e.updateQueue;St=!1;var o=s.firstBaseUpdate,i=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var u=l,a=u.next;u.next=null,i===null?o=a:i.next=a,i=u;var c=e.alternate;if(c!==null){c=c.updateQueue;var h=c.lastBaseUpdate;h!==i&&(h===null?c.firstBaseUpdate=a:h.next=a,c.lastBaseUpdate=u)}}if(o!==null){h=s.baseState,i=0,c=a=u=null;do{l=o.lane;var f=o.eventTime;if((r&l)===l){c!==null&&(c=c.next={eventTime:f,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var m=e,v=o;switch(l=t,f=n,v.tag){case 1:if(m=v.payload,typeof m=="function"){h=m.call(f,h,l);break e}h=m;break e;case 3:m.flags=m.flags&-4097|64;case 0:if(m=v.payload,l=typeof m=="function"?m.call(f,h,l):m,l==null)break e;h=Q({},h,l);break e;case 2:St=!0}}o.callback!==null&&(e.flags|=32,l=s.effects,l===null?s.effects=[o]:l.push(o))}else f={eventTime:f,lane:l,tag:o.tag,payload:o.payload,callback:o.callback,next:null},c===null?(a=c=f,u=h):c=c.next=f,i|=l;if(o=o.next,o===null){if(l=s.shared.pending,l===null)break;o=l.next,l.next=null,s.lastBaseUpdate=l,s.shared.pending=null}}while(!0);c===null&&(u=h),s.baseState=u,s.firstBaseUpdate=a,s.lastBaseUpdate=c,Pr|=i,e.lanes=i,e.memoizedState=h}}function ec(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(j(191,s));s.call(r)}}}var tc=new Yr.Component().refs;function Ns(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Q({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var As={isMounted:function(e){return(e=e._reactInternals)?It(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Te(),s=Et(e),o=Ct(r,s);o.payload=t,n!=null&&(o.callback=n),xt(e,o),Pt(e,s,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Te(),s=Et(e),o=Ct(r,s);o.tag=1,o.payload=t,n!=null&&(o.callback=n),xt(e,o),Pt(e,s,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Te(),r=Et(e),s=Ct(n,r);s.tag=2,t!=null&&(s.callback=t),xt(e,s),Pt(e,r,n)}};function nc(e,t,n,r,s,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,i):t.prototype&&t.prototype.isPureReactComponent?!ur(n,r)||!ur(s,o):!0}function rc(e,t,n){var r=!1,s=wt,o=t.contextType;return typeof o=="object"&&o!==null?o=Re(o):(s=$e(t)?Dt:de.current,r=t.contextTypes,o=(r=r!=null)?wn(e,s):wt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=As,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=o),t}function sc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&As.enqueueReplaceState(t,t.state,null)}function Di(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs=tc,Mi(e);var o=t.contextType;typeof o=="object"&&o!==null?s.context=Re(o):(o=$e(t)?Dt:de.current,s.context=wn(e,o)),pr(e,n,s,r),s.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Ns(e,t,o,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&As.enqueueReplaceState(s,s.state,null),pr(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4)}var Os=Array.isArray;function gr(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(j(309));var r=n.stateNode}if(!r)throw Error(j(147,e));var s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var i=r.refs;i===tc&&(i=r.refs={}),o===null?delete i[s]:i[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(j(284));if(!n._owner)throw Error(j(290,e))}return e}function Ls(e,t){if(e.type!=="textarea")throw Error(j(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function oc(e){function t(d,p){if(e){var g=d.lastEffect;g!==null?(g.nextEffect=p,d.lastEffect=p):d.firstEffect=d.lastEffect=p,p.nextEffect=null,p.flags=8}}function n(d,p){if(!e)return null;for(;p!==null;)t(d,p),p=p.sibling;return null}function r(d,p){for(d=new Map;p!==null;)p.key!==null?d.set(p.key,p):d.set(p.index,p),p=p.sibling;return d}function s(d,p){return d=Nt(d,p),d.index=0,d.sibling=null,d}function o(d,p,g){return d.index=g,e?(g=d.alternate,g!==null?(g=g.index,g<p?(d.flags=2,p):g):(d.flags=2,p)):p}function i(d){return e&&d.alternate===null&&(d.flags=2),d}function l(d,p,g,S){return p===null||p.tag!==6?(p=Cl(g,d.mode,S),p.return=d,p):(p=s(p,g),p.return=d,p)}function u(d,p,g,S){return p!==null&&p.elementType===g.type?(S=s(p,g.props),S.ref=gr(d,p,g),S.return=d,S):(S=Ys(g.type,g.key,g.props,null,d.mode,S),S.ref=gr(d,p,g),S.return=d,S)}function a(d,p,g,S){return p===null||p.tag!==4||p.stateNode.containerInfo!==g.containerInfo||p.stateNode.implementation!==g.implementation?(p=xl(g,d.mode,S),p.return=d,p):(p=s(p,g.children||[]),p.return=d,p)}function c(d,p,g,S,y){return p===null||p.tag!==7?(p=An(g,d.mode,S,y),p.return=d,p):(p=s(p,g),p.return=d,p)}function h(d,p,g){if(typeof p=="string"||typeof p=="number")return p=Cl(""+p,d.mode,g),p.return=d,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Bn:return g=Ys(p.type,p.key,p.props,null,d.mode,g),g.ref=gr(d,null,p),g.return=d,g;case Ft:return p=xl(p,d.mode,g),p.return=d,p}if(Os(p)||Hn(p))return p=An(p,d.mode,g,null),p.return=d,p;Ls(d,p)}return null}function f(d,p,g,S){var y=p!==null?p.key:null;if(typeof g=="string"||typeof g=="number")return y!==null?null:l(d,p,""+g,S);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Bn:return g.key===y?g.type===ct?c(d,p,g.props.children,S,y):u(d,p,g,S):null;case Ft:return g.key===y?a(d,p,g,S):null}if(Os(g)||Hn(g))return y!==null?null:c(d,p,g,S,null);Ls(d,g)}return null}function m(d,p,g,S,y){if(typeof S=="string"||typeof S=="number")return d=d.get(g)||null,l(p,d,""+S,y);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Bn:return d=d.get(S.key===null?g:S.key)||null,S.type===ct?c(p,d,S.props.children,y,S.key):u(p,d,S,y);case Ft:return d=d.get(S.key===null?g:S.key)||null,a(p,d,S,y)}if(Os(S)||Hn(S))return d=d.get(g)||null,c(p,d,S,y,null);Ls(p,S)}return null}function v(d,p,g,S){for(var y=null,$=null,x=p,P=p=0,N=null;x!==null&&P<g.length;P++){x.index>P?(N=x,x=null):N=x.sibling;var O=f(d,x,g[P],S);if(O===null){x===null&&(x=N);break}e&&x&&O.alternate===null&&t(d,x),p=o(O,p,P),$===null?y=O:$.sibling=O,$=O,x=N}if(P===g.length)return n(d,x),y;if(x===null){for(;P<g.length;P++)x=h(d,g[P],S),x!==null&&(p=o(x,p,P),$===null?y=x:$.sibling=x,$=x);return y}for(x=r(d,x);P<g.length;P++)N=m(x,d,P,g[P],S),N!==null&&(e&&N.alternate!==null&&x.delete(N.key===null?P:N.key),p=o(N,p,P),$===null?y=N:$.sibling=N,$=N);return e&&x.forEach(function(U){return t(d,U)}),y}function w(d,p,g,S){var y=Hn(g);if(typeof y!="function")throw Error(j(150));if(g=y.call(g),g==null)throw Error(j(151));for(var $=y=null,x=p,P=p=0,N=null,O=g.next();x!==null&&!O.done;P++,O=g.next()){x.index>P?(N=x,x=null):N=x.sibling;var U=f(d,x,O.value,S);if(U===null){x===null&&(x=N);break}e&&x&&U.alternate===null&&t(d,x),p=o(U,p,P),$===null?y=U:$.sibling=U,$=U,x=N}if(O.done)return n(d,x),y;if(x===null){for(;!O.done;P++,O=g.next())O=h(d,O.value,S),O!==null&&(p=o(O,p,P),$===null?y=O:$.sibling=O,$=O);return y}for(x=r(d,x);!O.done;P++,O=g.next())O=m(x,d,P,O.value,S),O!==null&&(e&&O.alternate!==null&&x.delete(O.key===null?P:O.key),p=o(O,p,P),$===null?y=O:$.sibling=O,$=O);return e&&x.forEach(function(Ne){return t(d,Ne)}),y}return function(d,p,g,S){var y=typeof g=="object"&&g!==null&&g.type===ct&&g.key===null;y&&(g=g.props.children);var $=typeof g=="object"&&g!==null;if($)switch(g.$$typeof){case Bn:e:{for($=g.key,y=p;y!==null;){if(y.key===$){switch(y.tag){case 7:if(g.type===ct){n(d,y.sibling),p=s(y,g.props.children),p.return=d,d=p;break e}break;default:if(y.elementType===g.type){n(d,y.sibling),p=s(y,g.props),p.ref=gr(d,y,g),p.return=d,d=p;break e}}n(d,y);break}else t(d,y);y=y.sibling}g.type===ct?(p=An(g.props.children,d.mode,S,g.key),p.return=d,d=p):(S=Ys(g.type,g.key,g.props,null,d.mode,S),S.ref=gr(d,p,g),S.return=d,d=S)}return i(d);case Ft:e:{for(y=g.key;p!==null;){if(p.key===y)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){n(d,p.sibling),p=s(p,g.children||[]),p.return=d,d=p;break e}else{n(d,p);break}else t(d,p);p=p.sibling}p=xl(g,d.mode,S),p.return=d,d=p}return i(d)}if(typeof g=="string"||typeof g=="number")return g=""+g,p!==null&&p.tag===6?(n(d,p.sibling),p=s(p,g),p.return=d,d=p):(n(d,p),p=Cl(g,d.mode,S),p.return=d,d=p),i(d);if(Os(g))return v(d,p,g,S);if(Hn(g))return w(d,p,g,S);if($&&Ls(d,g),typeof g>"u"&&!y)switch(d.tag){case 1:case 22:case 0:case 11:case 15:throw Error(j(152,rn(d.type)||"Component"))}return n(d,p)}}var _s=oc(!0),ic=oc(!1),mr={},Qe=vt(mr),yr=vt(mr),vr=vt(mr);function bt(e){if(e===mr)throw Error(j(174));return e}function Ui(e,t){switch(G(vr,t),G(yr,e),G(Qe,mr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ko(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ko(t,e)}q(Qe),G(Qe,t)}function $n(){q(Qe),q(yr),q(vr)}function lc(e){bt(vr.current);var t=bt(Qe.current),n=Ko(t,e.type);t!==n&&(G(yr,e),G(Qe,n))}function Bi(e){yr.current===e&&(q(Qe),q(yr))}var Z=vt(0);function Rs(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)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 ot=null,$t=null,Je=!1;function uc(e,t){var n=Ie(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 ac(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 bi(e){if(Je){var t=$t;if(t){var n=t;if(!ac(e,t)){if(t=gn(n.nextSibling),!t||!ac(e,t)){e.flags=e.flags&-1025|2,Je=!1,ot=e;return}uc(ot,n)}ot=e,$t=gn(t.firstChild)}else e.flags=e.flags&-1025|2,Je=!1,ot=e}}function cc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ot=e}function Fs(e){if(e!==ot)return!1;if(!Je)return cc(e),Je=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!Pi(t,e.memoizedProps))for(t=$t;t;)uc(e,t),t=gn(t.nextSibling);if(cc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){$t=gn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}$t=null}}else $t=ot?gn(e.stateNode.nextSibling):null;return!0}function Vi(){$t=ot=null,Je=!1}var kn=[];function Hi(){for(var e=0;e<kn.length;e++)kn[e]._workInProgressVersionPrimary=null;kn.length=0}var wr=Rt.ReactCurrentDispatcher,Fe=Rt.ReactCurrentBatchConfig,Sr=0,te=null,ge=null,ue=null,zs=!1,Cr=!1;function ke(){throw Error(j(321))}function Ki(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!_e(e[n],t[n]))return!1;return!0}function Wi(e,t,n,r,s,o){if(Sr=o,te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,wr.current=e===null||e.memoizedState===null?$p:kp,e=n(r,s),Cr){o=0;do{if(Cr=!1,!(25>o))throw Error(j(301));o+=1,ue=ge=null,t.updateQueue=null,wr.current=Ep,e=n(r,s)}while(Cr)}if(wr.current=Us,t=ge!==null&&ge.next!==null,Sr=0,ue=ge=te=null,zs=!1,t)throw Error(j(300));return e}function Vt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ue===null?te.memoizedState=ue=e:ue=ue.next=e,ue}function Ht(){if(ge===null){var e=te.alternate;e=e!==null?e.memoizedState:null}else e=ge.next;var t=ue===null?te.memoizedState:ue.next;if(t!==null)ue=t,ge=e;else{if(e===null)throw Error(j(310));ge=e,e={memoizedState:ge.memoizedState,baseState:ge.baseState,baseQueue:ge.baseQueue,queue:ge.queue,next:null},ue===null?te.memoizedState=ue=e:ue=ue.next=e}return ue}function Ye(e,t){return typeof t=="function"?t(e):t}function xr(e){var t=Ht(),n=t.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=e;var r=ge,s=r.baseQueue,o=n.pending;if(o!==null){if(s!==null){var i=s.next;s.next=o.next,o.next=i}r.baseQueue=s=o,n.pending=null}if(s!==null){s=s.next,r=r.baseState;var l=i=o=null,u=s;do{var a=u.lane;if((Sr&a)===a)l!==null&&(l=l.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var c={lane:a,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};l===null?(i=l=c,o=r):l=l.next=c,te.lanes|=a,Pr|=a}u=u.next}while(u!==null&&u!==s);l===null?o=r:l.next=i,_e(r,t.memoizedState)||(be=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function $r(e){var t=Ht(),n=t.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,o=t.memoizedState;if(s!==null){n.pending=null;var i=s=s.next;do o=e(o,i.action),i=i.next;while(i!==s);_e(o,t.memoizedState)||(be=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function fc(e,t,n){var r=t._getVersion;r=r(t._source);var s=t._workInProgressVersionPrimary;if(s!==null?e=s===r:(e=e.mutableReadLanes,(e=(Sr&e)===e)&&(t._workInProgressVersionPrimary=r,kn.push(t))),e)return n(t._source);throw kn.push(t),Error(j(350))}function hc(e,t,n,r){var s=Se;if(s===null)throw Error(j(349));var o=t._getVersion,i=o(t._source),l=wr.current,u=l.useState(function(){return fc(s,t,n)}),a=u[1],c=u[0];u=ue;var h=e.memoizedState,f=h.refs,m=f.getSnapshot,v=h.source;h=h.subscribe;var w=te;return e.memoizedState={refs:f,source:t,subscribe:r},l.useEffect(function(){f.getSnapshot=n,f.setSnapshot=a;var d=o(t._source);if(!_e(i,d)){d=n(t._source),_e(c,d)||(a(d),d=Et(w),s.mutableReadLanes|=d&s.pendingLanes),d=s.mutableReadLanes,s.entangledLanes|=d;for(var p=s.entanglements,g=d;0<g;){var S=31-gt(g),y=1<<S;p[S]|=d,g&=~y}}},[n,t,r]),l.useEffect(function(){return r(t._source,function(){var d=f.getSnapshot,p=f.setSnapshot;try{p(d(t._source));var g=Et(w);s.mutableReadLanes|=g&s.pendingLanes}catch(S){p(function(){throw S})}})},[t,r]),_e(m,n)&&_e(v,t)&&_e(h,r)||(e={pending:null,dispatch:null,lastRenderedReducer:Ye,lastRenderedState:c},e.dispatch=a=Yi.bind(null,te,e),u.queue=e,u.baseQueue=null,c=fc(s,t,n),u.memoizedState=u.baseState=c),c}function dc(e,t,n){var r=Ht();return hc(r,e,t,n)}function kr(e){var t=Vt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Ye,lastRenderedState:e},e=e.dispatch=Yi.bind(null,te,e),[t.memoizedState,e]}function Is(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=te.updateQueue,t===null?(t={lastEffect:null},te.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function pc(e){var t=Vt();return e={current:e},t.memoizedState=e}function Ms(){return Ht().memoizedState}function qi(e,t,n,r){var s=Vt();te.flags|=e,s.memoizedState=Is(1|t,n,void 0,r===void 0?null:r)}function Qi(e,t,n,r){var s=Ht();r=r===void 0?null:r;var o=void 0;if(ge!==null){var i=ge.memoizedState;if(o=i.destroy,r!==null&&Ki(r,i.deps)){Is(t,n,o,r);return}}te.flags|=e,s.memoizedState=Is(1|t,n,o,r)}function gc(e,t){return qi(516,4,e,t)}function Ds(e,t){return Qi(516,4,e,t)}function mc(e,t){return Qi(4,2,e,t)}function yc(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 vc(e,t,n){return n=n!=null?n.concat([e]):null,Qi(4,2,yc.bind(null,t,e),n)}function Ji(){}function wc(e,t){var n=Ht();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ki(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Sc(e,t){var n=Ht();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ki(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function xp(e,t){var n=Sn();Bt(98>n?98:n,function(){e(!0)}),Bt(97<n?97:n,function(){var r=Fe.transition;Fe.transition=1;try{e(!1),t()}finally{Fe.transition=r}})}function Yi(e,t,n){var r=Te(),s=Et(e),o={lane:s,action:n,eagerReducer:null,eagerState:null,next:null},i=t.pending;if(i===null?o.next=o:(o.next=i.next,i.next=o),t.pending=o,i=e.alternate,e===te||i!==null&&i===te)Cr=zs=!0;else{if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,u=i(l,n);if(o.eagerReducer=i,o.eagerState=u,_e(u,l))return}catch{}finally{}Pt(e,s,r)}}var Us={readContext:Re,useCallback:ke,useContext:ke,useEffect:ke,useImperativeHandle:ke,useLayoutEffect:ke,useMemo:ke,useReducer:ke,useRef:ke,useState:ke,useDebugValue:ke,useDeferredValue:ke,useTransition:ke,useMutableSource:ke,useOpaqueIdentifier:ke,unstable_isNewReconciler:!1},$p={readContext:Re,useCallback:function(e,t){return Vt().memoizedState=[e,t===void 0?null:t],e},useContext:Re,useEffect:gc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,qi(4,2,yc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return qi(4,2,e,t)},useMemo:function(e,t){var n=Vt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Vt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=Yi.bind(null,te,e),[r.memoizedState,e]},useRef:pc,useState:kr,useDebugValue:Ji,useDeferredValue:function(e){var t=kr(e),n=t[0],r=t[1];return gc(function(){var s=Fe.transition;Fe.transition=1;try{r(e)}finally{Fe.transition=s}},[e]),n},useTransition:function(){var e=kr(!1),t=e[0];return e=xp.bind(null,e[1]),pc(e),[e,t]},useMutableSource:function(e,t,n){var r=Vt();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},hc(r,e,t,n)},useOpaqueIdentifier:function(){if(Je){var e=!1,t=mp(function(){throw e||(e=!0,n("r:"+(Ti++).toString(36))),Error(j(355))}),n=kr(t)[1];return!(te.mode&2)&&(te.flags|=516,Is(5,function(){n("r:"+(Ti++).toString(36))},void 0,null)),t}return t="r:"+(Ti++).toString(36),kr(t),t},unstable_isNewReconciler:!1},kp={readContext:Re,useCallback:wc,useContext:Re,useEffect:Ds,useImperativeHandle:vc,useLayoutEffect:mc,useMemo:Sc,useReducer:xr,useRef:Ms,useState:function(){return xr(Ye)},useDebugValue:Ji,useDeferredValue:function(e){var t=xr(Ye),n=t[0],r=t[1];return Ds(function(){var s=Fe.transition;Fe.transition=1;try{r(e)}finally{Fe.transition=s}},[e]),n},useTransition:function(){var e=xr(Ye)[0];return[Ms().current,e]},useMutableSource:dc,useOpaqueIdentifier:function(){return xr(Ye)[0]},unstable_isNewReconciler:!1},Ep={readContext:Re,useCallback:wc,useContext:Re,useEffect:Ds,useImperativeHandle:vc,useLayoutEffect:mc,useMemo:Sc,useReducer:$r,useRef:Ms,useState:function(){return $r(Ye)},useDebugValue:Ji,useDeferredValue:function(e){var t=$r(Ye),n=t[0],r=t[1];return Ds(function(){var s=Fe.transition;Fe.transition=1;try{r(e)}finally{Fe.transition=s}},[e]),n},useTransition:function(){var e=$r(Ye)[0];return[Ms().current,e]},useMutableSource:dc,useOpaqueIdentifier:function(){return $r(Ye)[0]},unstable_isNewReconciler:!1},Pp=Rt.ReactCurrentOwner,be=!1;function Ee(e,t,n,r){t.child=e===null?ic(t,null,n,r):_s(t,e.child,n,r)}function Cc(e,t,n,r,s){n=n.render;var o=t.ref;return xn(t,s),r=Wi(e,t,n,r,o,s),e!==null&&!be?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~s,it(e,t,s)):(t.flags|=1,Ee(e,t,r,s),t.child)}function xc(e,t,n,r,s,o){if(e===null){var i=n.type;return typeof i=="function"&&!wl(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,$c(e,t,i,r,s,o)):(e=Ys(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}return i=e.child,!(s&o)&&(s=i.memoizedProps,n=n.compare,n=n!==null?n:ur,n(s,r)&&e.ref===t.ref)?it(e,t,o):(t.flags|=1,e=Nt(i,r),e.ref=t.ref,e.return=t,t.child=e)}function $c(e,t,n,r,s,o){if(e!==null&&ur(e.memoizedProps,r)&&e.ref===t.ref)if(be=!1,(o&s)!==0)e.flags&16384&&(be=!0);else return t.lanes=e.lanes,it(e,t,o);return Zi(e,t,n,r,o)}function Gi(e,t,n){var r=t.pendingProps,s=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden"||r.mode==="unstable-defer-without-hiding")if(!(t.mode&4))t.memoizedState={baseLanes:0},Js(t,n);else if(n&1073741824)t.memoizedState={baseLanes:0},Js(t,o!==null?o.baseLanes:n);else return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Js(t,e),null;else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Js(t,r);return Ee(e,t,s,n),t.child}function kc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function Zi(e,t,n,r,s){var o=$e(n)?Dt:de.current;return o=wn(t,o),xn(t,s),n=Wi(e,t,n,r,o,s),e!==null&&!be?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~s,it(e,t,s)):(t.flags|=1,Ee(e,t,n,s),t.child)}function Ec(e,t,n,r,s){if($e(n)){var o=!0;$s(t)}else o=!1;if(xn(t,s),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),rc(t,n,r),Di(t,n,r,s),r=!0;else if(e===null){var i=t.stateNode,l=t.memoizedProps;i.props=l;var u=i.context,a=n.contextType;typeof a=="object"&&a!==null?a=Re(a):(a=$e(n)?Dt:de.current,a=wn(t,a));var c=n.getDerivedStateFromProps,h=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function";h||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==r||u!==a)&&sc(t,i,r,a),St=!1;var f=t.memoizedState;i.state=f,pr(t,r,i,s),u=t.memoizedState,l!==r||f!==u||xe.current||St?(typeof c=="function"&&(Ns(t,n,c,r),u=t.memoizedState),(l=St||nc(t,n,l,r,f,u,a))?(h||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4)):(typeof i.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=a,r=l):(typeof i.componentDidMount=="function"&&(t.flags|=4),r=!1)}else{i=t.stateNode,Za(e,t),l=t.memoizedProps,a=t.type===t.elementType?l:Be(t.type,l),i.props=a,h=t.pendingProps,f=i.context,u=n.contextType,typeof u=="object"&&u!==null?u=Re(u):(u=$e(n)?Dt:de.current,u=wn(t,u));var m=n.getDerivedStateFromProps;(c=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==h||f!==u)&&sc(t,i,r,u),St=!1,f=t.memoizedState,i.state=f,pr(t,r,i,s);var v=t.memoizedState;l!==h||f!==v||xe.current||St?(typeof m=="function"&&(Ns(t,n,m,r),v=t.memoizedState),(a=St||nc(t,n,a,r,f,v,u))?(c||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,v,u),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,v,u)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=v),i.props=r,i.state=v,i.context=u,r=a):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),r=!1)}return Xi(e,t,n,r,o,s)}function Xi(e,t,n,r,s,o){kc(e,t);var i=(t.flags&64)!==0;if(!r&&!i)return s&&ba(t,n,!1),it(e,t,o);r=t.stateNode,Pp.current=t;var l=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=_s(t,e.child,null,o),t.child=_s(t,null,l,o)):Ee(e,t,l,o),t.memoizedState=r.state,s&&ba(t,n,!0),t.child}function Pc(e){var t=e.stateNode;t.pendingContext?Ua(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ua(e,t.context,!1),Ui(e,t.containerInfo)}var Bs={dehydrated:null,retryLane:0};function jc(e,t,n){var r=t.pendingProps,s=Z.current,o=!1,i;return(i=(t.flags&64)!==0)||(i=e!==null&&e.memoizedState===null?!1:(s&2)!==0),i?(o=!0,t.flags&=-65):e!==null&&e.memoizedState===null||r.fallback===void 0||r.unstable_avoidThisFallback===!0||(s|=1),G(Z,s&1),e===null?(r.fallback!==void 0&&bi(t),e=r.children,s=r.fallback,o?(e=Tc(t,e,s,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Bs,e):typeof r.unstable_expectedLoadTime=="number"?(e=Tc(t,e,s,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Bs,t.lanes=33554432,e):(n=Sl({mode:"visible",children:e},t.mode,n,null),n.return=t,t.child=n)):e.memoizedState!==null?o?(r=Ac(e,t,r.children,r.fallback,n),o=t.child,s=e.child.memoizedState,o.memoizedState=s===null?{baseLanes:n}:{baseLanes:s.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Bs,r):(n=Nc(e,t,r.children,n),t.memoizedState=null,n):o?(r=Ac(e,t,r.children,r.fallback,n),o=t.child,s=e.child.memoizedState,o.memoizedState=s===null?{baseLanes:n}:{baseLanes:s.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Bs,r):(n=Nc(e,t,r.children,n),t.memoizedState=null,n)}function Tc(e,t,n,r){var s=e.mode,o=e.child;return t={mode:"hidden",children:t},!(s&2)&&o!==null?(o.childLanes=0,o.pendingProps=t):o=Sl(t,s,0,null),n=An(n,s,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function Nc(e,t,n,r){var s=e.child;return e=s.sibling,n=Nt(s,{mode:"visible",children:n}),!(t.mode&2)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Ac(e,t,n,r,s){var o=t.mode,i=e.child;e=i.sibling;var l={mode:"hidden",children:n};return!(o&2)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=l,i=n.lastEffect,i!==null?(t.firstEffect=n.firstEffect,t.lastEffect=i,i.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Nt(i,l),e!==null?r=Nt(e,r):(r=An(r,o,s,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Oc(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Ga(e.return,t)}function el(e,t,n,r,s,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s,lastEffect:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s,i.lastEffect=o)}function Lc(e,t,n){var r=t.pendingProps,s=r.revealOrder,o=r.tail;if(Ee(e,t,r.children,n),r=Z.current,r&2)r=r&1|2,t.flags|=64;else{if(e!==null&&e.flags&64)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}r&=1}if(G(Z,r),!(t.mode&2))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Rs(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),el(t,!1,s,n,o,t.lastEffect);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Rs(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}el(t,!0,n,null,o,t.lastEffect);break;case"together":el(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function it(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Pr|=t.lanes,n&t.childLanes){if(e!==null&&t.child!==e.child)throw Error(j(153));if(t.child!==null){for(e=t.child,n=Nt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Nt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}return null}var _c,tl,Rc,Fc;_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}},tl=function(){},Rc=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,bt(Qe.current);var o=null;switch(n){case"input":s=Do(e,s),r=Do(e,r),o=[];break;case"option":s=bo(e,s),r=bo(e,r),o=[];break;case"select":s=Q({},s,{value:void 0}),r=Q({},r,{value:void 0}),o=[];break;case"textarea":s=Vo(e,s),r=Vo(e,r),o=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=vs)}Wo(n,r);var i;n=null;for(a in s)if(!r.hasOwnProperty(a)&&s.hasOwnProperty(a)&&s[a]!=null)if(a==="style"){var l=s[a];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Un.hasOwnProperty(a)?o||(o=[]):(o=o||[]).push(a,null));for(a in r){var u=r[a];if(l=s!=null?s[a]:void 0,r.hasOwnProperty(a)&&u!==l&&(u!=null||l!=null))if(a==="style")if(l){for(i in l)!l.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&l[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(o||(o=[]),o.push(a,n)),n=u;else a==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,l=l?l.__html:void 0,u!=null&&l!==u&&(o=o||[]).push(a,u)):a==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(a,""+u):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(Un.hasOwnProperty(a)?(u!=null&&a==="onScroll"&&W("scroll",e),o||l===u||(o=[])):typeof u=="object"&&u!==null&&u.$$typeof===Ro?u.toString():(o=o||[]).push(a,u))}n&&(o=o||[]).push("style",n);var a=o;(t.updateQueue=a)&&(t.flags|=4)}},Fc=function(e,t,n,r){n!==r&&(t.flags|=4)};function Er(e,t){if(!Je)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function jp(e,t,n){var r=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 $e(t.type)&&xs(),null;case 3:return $n(),q(xe),q(de),Hi(),r=t.stateNode,r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Fs(t)?t.flags|=4:r.hydrate||(t.flags|=256)),tl(t),null;case 5:Bi(t);var s=bt(vr.current);if(n=t.type,e!==null&&t.stateNode!=null)Rc(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(t.stateNode===null)throw Error(j(166));return null}if(e=bt(Qe.current),Fs(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[yt]=t,r[Ss]=o,n){case"dialog":W("cancel",r),W("close",r);break;case"iframe":case"object":case"embed":W("load",r);break;case"video":case"audio":for(e=0;e<cr.length;e++)W(cr[e],r);break;case"source":W("error",r);break;case"img":case"image":case"link":W("error",r),W("load",r);break;case"details":W("toggle",r);break;case"input":Pu(r,o),W("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},W("invalid",r);break;case"textarea":Nu(r,o),W("invalid",r)}Wo(n,o),e=null;for(var i in o)o.hasOwnProperty(i)&&(s=o[i],i==="children"?typeof s=="string"?r.textContent!==s&&(e=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(e=["children",""+s]):Un.hasOwnProperty(i)&&s!=null&&i==="onScroll"&&W("scroll",r));switch(n){case"input":ts(r),Tu(r,o,!0);break;case"textarea":ts(r),Ou(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=vs)}r=e,t.updateQueue=r,r!==null&&(t.flags|=4)}else{switch(i=s.nodeType===9?s:s.ownerDocument,e===Ho.html&&(e=Lu(n)),e===Ho.html?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[yt]=t,e[Ss]=r,_c(e,t,!1,!1),t.stateNode=e,i=qo(n,r),n){case"dialog":W("cancel",e),W("close",e),s=r;break;case"iframe":case"object":case"embed":W("load",e),s=r;break;case"video":case"audio":for(s=0;s<cr.length;s++)W(cr[s],e);s=r;break;case"source":W("error",e),s=r;break;case"img":case"image":case"link":W("error",e),W("load",e),s=r;break;case"details":W("toggle",e),s=r;break;case"input":Pu(e,r),s=Do(e,r),W("invalid",e);break;case"option":s=bo(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=Q({},r,{value:void 0}),W("invalid",e);break;case"textarea":Nu(e,r),s=Vo(e,r),W("invalid",e);break;default:s=r}Wo(n,s);var l=s;for(o in l)if(l.hasOwnProperty(o)){var u=l[o];o==="style"?Fu(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&_u(e,u)):o==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Wn(e,u):typeof u=="number"&&Wn(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Un.hasOwnProperty(o)?u!=null&&o==="onScroll"&&W("scroll",e):u!=null&&To(e,o,u,i))}switch(n){case"input":ts(e),Tu(e,r,!1);break;case"textarea":ts(e),Ou(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ft(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?sn(e,!!r.multiple,o,!1):r.defaultValue!=null&&sn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=vs)}Fa(n,r)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)Fc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(j(166));n=bt(vr.current),bt(Qe.current),Fs(t)?(r=t.stateNode,n=t.memoizedProps,r[yt]=t,r.nodeValue!==n&&(t.flags|=4)):(r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[yt]=t,t.stateNode=r)}return null;case 13:return q(Z),r=t.memoizedState,t.flags&64?(t.lanes=n,t):(r=r!==null,n=!1,e===null?t.memoizedProps.fallback!==void 0&&Fs(t):n=e.memoizedState!==null,r&&!n&&t.mode&2&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||Z.current&1?ae===0&&(ae=3):((ae===0||ae===3)&&(ae=4),Se===null||!(Pr&134217727)&&!(Pn&134217727)||Tn(Se,me))),(r||n)&&(t.flags|=4),null);case 4:return $n(),tl(t),e===null&&Aa(t.stateNode.containerInfo),null;case 10:return Ii(t),null;case 17:return $e(t.type)&&xs(),null;case 19:if(q(Z),r=t.memoizedState,r===null)return null;if(o=(t.flags&64)!==0,i=r.rendering,i===null)if(o)Er(r,!1);else{if(ae!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(i=Rs(e),i!==null){for(t.flags|=64,Er(r,!1),o=i.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),r.lastEffect===null&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return G(Z,Z.current&1|2),t.child}e=e.sibling}r.tail!==null&&pe()>hl&&(t.flags|=64,o=!0,Er(r,!1),t.lanes=33554432)}else{if(!o)if(e=Rs(i),e!==null){if(t.flags|=64,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Er(r,!0),r.tail===null&&r.tailMode==="hidden"&&!i.alternate&&!Je)return t=t.lastEffect=r.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*pe()-r.renderingStartTime>hl&&n!==1073741824&&(t.flags|=64,o=!0,Er(r,!1),t.lanes=33554432);r.isBackwards?(i.sibling=t.child,t.child=i):(n=r.last,n!==null?n.sibling=i:t.child=i,r.last=i)}return r.tail!==null?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=pe(),n.sibling=null,t=Z.current,G(Z,o?t&1|2:t&1),n):null;case 23:case 24:return vl(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&r.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(j(156,t.tag))}function Tp(e){switch(e.tag){case 1:$e(e.type)&&xs();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if($n(),q(xe),q(de),Hi(),t=e.flags,t&64)throw Error(j(285));return e.flags=t&-4097|64,e;case 5:return Bi(e),null;case 13:return q(Z),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return q(Z),null;case 4:return $n(),null;case 10:return Ii(e),null;case 23:case 24:return vl(),null;default:return null}}function nl(e,t){try{var n="",r=t;do n+=ld(r),r=r.return;while(r);var s=n}catch(o){s=`
38
+ `+s[i].replace(" at new "," at ");while(1<=i&&0<=l);break}}}finally{ei=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Xn(e):""}function hp(e){switch(e.tag){case 5:return Xn(e.type);case 16:return Xn("Lazy");case 13:return Xn("Suspense");case 19:return Xn("SuspenseList");case 0:case 2:case 15:return e=cs(e.type,!1),e;case 11:return e=cs(e.type.render,!1),e;case 22:return e=cs(e.type._render,!1),e;case 1:return e=cs(e.type,!0),e;default:return""}}function ln(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 ht:return"Fragment";case zt:return"Portal";case Qn:return"Profiler";case Wo:return"StrictMode";case Jn:return"Suspense";case as:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case qo:return(e.displayName||"Context")+".Consumer";case Ko:return(e._context.displayName||"Context")+".Provider";case ls:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case us:return ln(e.type);case Qo:return ln(e._render);case Go:t=e._payload,e=e._init;try{return ln(e(t))}catch{}}return null}function dt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function eu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dp(e){var t=eu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function fs(e){e._valueTracker||(e._valueTracker=dp(e))}function tu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=eu(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function hs(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 ti(e,t){var n=t.checked;return Q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function nu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=dt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ru(e,t){t=t.checked,t!=null&&Ho(e,"checked",t,!1)}function ni(e,t){ru(e,t);var n=dt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ri(e,t.type,n):t.hasOwnProperty("defaultValue")&&ri(e,t.type,dt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function su(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ri(e,t,n){(t!=="number"||hs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function pp(e){var t="";return is.Children.forEach(e,function(n){n!=null&&(t+=n)}),t}function si(e,t){return e=Q({children:void 0},t),(t=pp(t.children))&&(e.children=t),e}function an(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+dt(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function oi(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(j(91));return Q({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ou(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(j(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(j(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:dt(n)}}function iu(e,t){var n=dt(t.value),r=dt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function lu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var ii={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function au(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 li(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?au(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ds,uu=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!==ii.svg||"innerHTML"in e)e.innerHTML=t;else{for(ds=ds||document.createElement("div"),ds.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ds.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var er={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},gp=["Webkit","ms","Moz","O"];Object.keys(er).forEach(function(e){gp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),er[t]=er[e]})});function cu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||er.hasOwnProperty(e)&&er[e]?(""+t).trim():t+"px"}function fu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=cu(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var mp=Q({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 ai(e,t){if(t){if(mp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(j(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(j(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(j(61))}if(t.style!=null&&typeof t.style!="object")throw Error(j(62))}}function ui(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 ci(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fi=null,un=null,cn=null;function hu(e){if(e=wr(e)){if(typeof fi!="function")throw Error(j(280));var t=e.stateNode;t&&(t=Ns(t),fi(e.stateNode,e.type,t))}}function du(e){un?cn?cn.push(e):cn=[e]:un=e}function pu(){if(un){var e=un,t=cn;if(cn=un=null,hu(e),t)for(e=0;e<t.length;e++)hu(t[e])}}function hi(e,t){return e(t)}function gu(e,t,n,r,s){return e(t,n,r,s)}function di(){}var mu=hi,Mt=!1,pi=!1;function gi(){(un!==null||cn!==null)&&(di(),pu())}function yp(e,t,n){if(pi)return e(t,n);pi=!0;try{return mu(e,t,n)}finally{pi=!1,gi()}}function tr(e,t){var n=e.stateNode;if(n===null)return null;var r=Ns(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(j(231,t,typeof n));return n}var mi=!1;if(ot)try{var nr={};Object.defineProperty(nr,"passive",{get:function(){mi=!0}}),window.addEventListener("test",nr,nr),window.removeEventListener("test",nr,nr)}catch{mi=!1}function vp(e,t,n,r,s,o,i,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var rr=!1,ps=null,gs=!1,yi=null,wp={onError:function(e){rr=!0,ps=e}};function Sp(e,t,n,r,s,o,i,l,a){rr=!1,ps=null,vp.apply(wp,arguments)}function xp(e,t,n,r,s,o,i,l,a){if(Sp.apply(this,arguments),rr){if(rr){var u=ps;rr=!1,ps=null}else throw Error(j(198));gs||(gs=!0,yi=u)}}function Dt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&1026&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function yu(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 vu(e){if(Dt(e)!==e)throw Error(j(188))}function Cp(e){var t=e.alternate;if(!t){if(t=Dt(e),t===null)throw Error(j(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var o=s.alternate;if(o===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return vu(s),e;if(o===r)return vu(s),t;o=o.sibling}throw Error(j(188))}if(n.return!==r.return)n=s,r=o;else{for(var i=!1,l=s.child;l;){if(l===n){i=!0,n=s,r=o;break}if(l===r){i=!0,r=s,n=o;break}l=l.sibling}if(!i){for(l=o.child;l;){if(l===n){i=!0,n=o,r=s;break}if(l===r){i=!0,r=o,n=s;break}l=l.sibling}if(!i)throw Error(j(189))}}if(n.alternate!==r)throw Error(j(190))}if(n.tag!==3)throw Error(j(188));return n.stateNode.current===n?e:t}function wu(e){if(e=Cp(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 Su(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var xu,vi,Cu,$u,wi=!1,Ge=[],pt=null,gt=null,mt=null,sr=new Map,or=new Map,ir=[],ku="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 Si(e,t,n,r,s){return{blockedOn:e,domEventName:t,eventSystemFlags:n|16,nativeEvent:s,targetContainers:[r]}}function Pu(e,t){switch(e){case"focusin":case"focusout":pt=null;break;case"dragenter":case"dragleave":gt=null;break;case"mouseover":case"mouseout":mt=null;break;case"pointerover":case"pointerout":sr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":or.delete(t.pointerId)}}function lr(e,t,n,r,s,o){return e===null||e.nativeEvent!==o?(e=Si(t,n,r,s,o),t!==null&&(t=wr(t),t!==null&&vi(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function $p(e,t,n,r,s){switch(t){case"focusin":return pt=lr(pt,e,t,n,r,s),!0;case"dragenter":return gt=lr(gt,e,t,n,r,s),!0;case"mouseover":return mt=lr(mt,e,t,n,r,s),!0;case"pointerover":var o=s.pointerId;return sr.set(o,lr(sr.get(o)||null,e,t,n,r,s)),!0;case"gotpointercapture":return o=s.pointerId,or.set(o,lr(or.get(o)||null,e,t,n,r,s)),!0}return!1}function kp(e){var t=bt(e.target);if(t!==null){var n=Dt(t);if(n!==null){if(t=n.tag,t===13){if(t=yu(n),t!==null){e.blockedOn=t,$u(e.lanePriority,function(){ie.unstable_runWithPriority(e.priority,function(){Cu(n)})});return}}else if(t===3&&n.stateNode.hydrate){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ms(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ei(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null)return t=wr(n),t!==null&&vi(t),e.blockedOn=n,!1;t.shift()}return!0}function Eu(e,t,n){ms(e)&&n.delete(t)}function Pp(){for(wi=!1;0<Ge.length;){var e=Ge[0];if(e.blockedOn!==null){e=wr(e.blockedOn),e!==null&&xu(e);break}for(var t=e.targetContainers;0<t.length;){var n=Ei(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null){e.blockedOn=n;break}t.shift()}e.blockedOn===null&&Ge.shift()}pt!==null&&ms(pt)&&(pt=null),gt!==null&&ms(gt)&&(gt=null),mt!==null&&ms(mt)&&(mt=null),sr.forEach(Eu),or.forEach(Eu)}function ar(e,t){e.blockedOn===t&&(e.blockedOn=null,wi||(wi=!0,ie.unstable_scheduleCallback(ie.unstable_NormalPriority,Pp)))}function ju(e){function t(s){return ar(s,e)}if(0<Ge.length){ar(Ge[0],e);for(var n=1;n<Ge.length;n++){var r=Ge[n];r.blockedOn===e&&(r.blockedOn=null)}}for(pt!==null&&ar(pt,e),gt!==null&&ar(gt,e),mt!==null&&ar(mt,e),sr.forEach(t),or.forEach(t),n=0;n<ir.length;n++)r=ir[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ir.length&&(n=ir[0],n.blockedOn===null);)kp(n),n.blockedOn===null&&ir.shift()}function ys(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var fn={animationend:ys("Animation","AnimationEnd"),animationiteration:ys("Animation","AnimationIteration"),animationstart:ys("Animation","AnimationStart"),transitionend:ys("Transition","TransitionEnd")},xi={},Au={};ot&&(Au=document.createElement("div").style,"AnimationEvent"in window||(delete fn.animationend.animation,delete fn.animationiteration.animation,delete fn.animationstart.animation),"TransitionEvent"in window||delete fn.transitionend.transition);function vs(e){if(xi[e])return xi[e];if(!fn[e])return e;var t=fn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Au)return xi[e]=t[n];return e}var Tu=vs("animationend"),Ou=vs("animationiteration"),Nu=vs("animationstart"),Lu=vs("transitionend"),_u=new Map,Ci=new Map,Ep=["abort","abort",Tu,"animationEnd",Ou,"animationIteration",Nu,"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 $i(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],s=e[n+1];s="on"+(s[0].toUpperCase()+s.slice(1)),Ci.set(r,t),_u.set(r,s),Ft(s,[r])}}var jp=ie.unstable_now;jp();var K=8;function hn(e){if(1&e)return K=15,1;if(2&e)return K=14,2;if(4&e)return K=13,4;var t=24&e;return t!==0?(K=12,t):e&32?(K=11,32):(t=192&e,t!==0?(K=10,t):e&256?(K=9,256):(t=3584&e,t!==0?(K=8,t):e&4096?(K=7,4096):(t=4186112&e,t!==0?(K=6,t):(t=62914560&e,t!==0?(K=5,t):e&67108864?(K=4,67108864):e&134217728?(K=3,134217728):(t=805306368&e,t!==0?(K=2,t):1073741824&e?(K=1,1073741824):(K=8,e))))))}function Ap(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 Tp(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(j(358,e))}}function ur(e,t){var n=e.pendingLanes;if(n===0)return K=0;var r=0,s=0,o=e.expiredLanes,i=e.suspendedLanes,l=e.pingedLanes;if(o!==0)r=o,s=K=15;else if(o=n&134217727,o!==0){var a=o&~i;a!==0?(r=hn(a),s=K):(l&=o,l!==0&&(r=hn(l),s=K))}else o=n&~i,o!==0?(r=hn(o),s=K):l!==0&&(r=hn(l),s=K);if(r===0)return 0;if(r=31-yt(r),r=n&((0>r?0:1<<r)<<1)-1,t!==0&&t!==r&&!(t&i)){if(hn(t),s<=K)return t;K=s}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-yt(t),s=1<<n,r|=e[n],t&=~s;return r}function Ru(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ws(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=dn(24&~t),e===0?ws(10,t):e;case 10:return e=dn(192&~t),e===0?ws(8,t):e;case 8:return e=dn(3584&~t),e===0&&(e=dn(4186112&~t),e===0&&(e=512)),e;case 2:return t=dn(805306368&~t),t===0&&(t=268435456),t}throw Error(j(358,e))}function dn(e){return e&-e}function ki(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ss(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,e=e.eventTimes,t=31-yt(t),e[t]=n}var yt=Math.clz32?Math.clz32:Lp,Op=Math.log,Np=Math.LN2;function Lp(e){return e===0?32:31-(Op(e)/Np|0)|0}var _p=ie.unstable_UserBlockingPriority,Rp=ie.unstable_runWithPriority,xs=!0;function Fp(e,t,n,r){Mt||di();var s=Pi,o=Mt;Mt=!0;try{gu(s,e,t,n,r)}finally{(Mt=o)||gi()}}function Ip(e,t,n,r){Rp(_p,Pi.bind(null,e,t,n,r))}function Pi(e,t,n,r){if(xs){var s;if((s=(t&4)===0)&&0<Ge.length&&-1<ku.indexOf(e))e=Si(null,e,t,n,r),Ge.push(e);else{var o=Ei(e,t,n,r);if(o===null)s&&Pu(e,r);else{if(s){if(-1<ku.indexOf(e)){e=Si(o,e,t,n,r),Ge.push(e);return}if($p(o,e,t,n,r))return;Pu(e,r)}uc(e,t,r,null,n)}}}}function Ei(e,t,n,r){var s=ci(r);if(s=bt(s),s!==null){var o=Dt(s);if(o===null)s=null;else{var i=o.tag;if(i===13){if(s=yu(o),s!==null)return s;s=null}else if(i===3){if(o.stateNode.hydrate)return o.tag===3?o.stateNode.containerInfo:null;s=null}else o!==s&&(s=null)}}return uc(e,t,r,s,n),null}var vt=null,ji=null,Cs=null;function Fu(){if(Cs)return Cs;var e,t=ji,n=t.length,r,s="value"in vt?vt.value:vt.textContent,o=s.length;for(e=0;e<n&&t[e]===s[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===s[o-r];r++);return Cs=s.slice(e,1<r?1-r:void 0)}function $s(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 ks(){return!0}function Iu(){return!1}function Te(e){function t(n,r,s,o,i){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ks:Iu,this.isPropagationStopped=Iu,this}return Q(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=ks)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ks)},persist:function(){},isPersistent:ks}),t}var pn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ai=Te(pn),cr=Q({},pn,{view:0,detail:0}),zp=Te(cr),Ti,Oi,fr,Ps=Q({},cr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Li,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!==fr&&(fr&&e.type==="mousemove"?(Ti=e.screenX-fr.screenX,Oi=e.screenY-fr.screenY):Oi=Ti=0,fr=e),Ti)},movementY:function(e){return"movementY"in e?e.movementY:Oi}}),zu=Te(Ps),Mp=Q({},Ps,{dataTransfer:0}),Dp=Te(Mp),bp=Q({},cr,{relatedTarget:0}),Ni=Te(bp),Up=Q({},pn,{animationName:0,elapsedTime:0,pseudoElement:0}),Bp=Te(Up),Vp=Q({},pn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Hp=Te(Vp),Wp=Q({},pn,{data:0}),Mu=Te(Wp),Kp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qp={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"},Gp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Qp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Gp[e])?!!t[e]:!1}function Li(){return Qp}var Jp=Q({},cr,{key:function(e){if(e.key){var t=Kp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$s(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?qp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Li,charCode:function(e){return e.type==="keypress"?$s(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$s(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Yp=Te(Jp),Xp=Q({},Ps,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Du=Te(Xp),Zp=Q({},cr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Li}),eg=Te(Zp),tg=Q({},pn,{propertyName:0,elapsedTime:0,pseudoElement:0}),ng=Te(tg),rg=Q({},Ps,{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}),sg=Te(rg),og=[9,13,27,32],_i=ot&&"CompositionEvent"in window,hr=null;ot&&"documentMode"in document&&(hr=document.documentMode);var ig=ot&&"TextEvent"in window&&!hr,bu=ot&&(!_i||hr&&8<hr&&11>=hr),Uu=" ",Bu=!1;function Vu(e,t){switch(e){case"keyup":return og.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 gn=!1;function lg(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 ag(e,t){if(gn)return e==="compositionend"||!_i&&Vu(e,t)?(e=Fu(),Cs=ji=vt=null,gn=!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 bu&&t.locale!=="ko"?null:t.data;default:return null}}var ug={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 Wu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ug[e.type]:t==="textarea"}function Ku(e,t,n,r){du(r),t=js(t,"onChange"),0<t.length&&(n=new Ai("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var dr=null,pr=null;function cg(e){sc(e,0)}function Es(e){var t=Sn(e);if(tu(t))return e}function fg(e,t){if(e==="change")return t}var qu=!1;if(ot){var Ri;if(ot){var Fi="oninput"in document;if(!Fi){var Gu=document.createElement("div");Gu.setAttribute("oninput","return;"),Fi=typeof Gu.oninput=="function"}Ri=Fi}else Ri=!1;qu=Ri&&(!document.documentMode||9<document.documentMode)}function Qu(){dr&&(dr.detachEvent("onpropertychange",Ju),pr=dr=null)}function Ju(e){if(e.propertyName==="value"&&Es(pr)){var t=[];if(Ku(t,pr,e,ci(e)),e=cg,Mt)e(t);else{Mt=!0;try{hi(e,t)}finally{Mt=!1,gi()}}}}function hg(e,t,n){e==="focusin"?(Qu(),dr=t,pr=n,dr.attachEvent("onpropertychange",Ju)):e==="focusout"&&Qu()}function dg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Es(pr)}function pg(e,t){if(e==="click")return Es(t)}function gg(e,t){if(e==="input"||e==="change")return Es(t)}function mg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Fe=typeof Object.is=="function"?Object.is:mg,yg=Object.prototype.hasOwnProperty;function gr(e,t){if(Fe(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!yg.call(t,n[r])||!Fe(e[n[r]],t[n[r]]))return!1;return!0}function Yu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Xu(e,t){var n=Yu(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Yu(n)}}function Zu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ec(){for(var e=window,t=hs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=hs(e.document)}return t}function Ii(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 vg=ot&&"documentMode"in document&&11>=document.documentMode,mn=null,zi=null,mr=null,Mi=!1;function tc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mi||mn==null||mn!==hs(r)||(r=mn,"selectionStart"in r&&Ii(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),mr&&gr(mr,r)||(mr=r,r=js(zi,"onSelect"),0<r.length&&(t=new Ai("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mn)))}$i("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),$i("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),$i(Ep,2);for(var nc="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Di=0;Di<nc.length;Di++)Ci.set(nc[Di],0);on("onMouseEnter",["mouseout","mouseover"]),on("onMouseLeave",["mouseout","mouseover"]),on("onPointerEnter",["pointerout","pointerover"]),on("onPointerLeave",["pointerout","pointerover"]),Ft("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ft("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ft("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ft("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ft("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ft("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),wg=new Set("cancel close invalid load scroll toggle".split(" ").concat(yr));function rc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,xp(r,t,void 0,e),e.currentTarget=null}function sc(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==o&&s.isPropagationStopped())break e;rc(s,l,u),o=a}else for(i=0;i<r.length;i++){if(l=r[i],a=l.instance,u=l.currentTarget,l=l.listener,a!==o&&s.isPropagationStopped())break e;rc(s,l,u),o=a}}}if(gs)throw e=yi,gs=!1,yi=null,e}function q(e,t){var n=gc(t),r=e+"__bubble";n.has(r)||(ac(t,e,2,!1),n.add(r))}var oc="_reactListening"+Math.random().toString(36).slice(2);function ic(e){e[oc]||(e[oc]=!0,Ga.forEach(function(t){wg.has(t)||lc(t,!1,e,null),lc(t,!0,e,null)}))}function lc(e,t,n,r){var s=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,o=n;e==="selectionchange"&&n.nodeType!==9&&(o=n.ownerDocument);var i=gc(o),l=e+"__"+(t?"capture":"bubble");i.has(l)||(t&&(s|=4),ac(o,e,s,t),i.add(l))}function ac(e,t,n,r){var s=Ci.get(t);switch(s===void 0?2:s){case 0:s=Fp;break;case 1:s=Ip;break;default:s=Pi}n=s.bind(null,t,n,e),s=void 0,!mi||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function uc(e,t,n,r,s){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var l=r.stateNode.containerInfo;if(l===s||l.nodeType===8&&l.parentNode===s)break;if(i===4)for(i=r.return;i!==null;){var a=i.tag;if((a===3||a===4)&&(a=i.stateNode.containerInfo,a===s||a.nodeType===8&&a.parentNode===s))return;i=i.return}for(;l!==null;){if(i=bt(l),i===null)return;if(a=i.tag,a===5||a===6){r=o=i;continue e}l=l.parentNode}}r=r.return}yp(function(){var u=o,f=ci(n),h=[];e:{var c=_u.get(e);if(c!==void 0){var m=Ai,v=e;switch(e){case"keypress":if($s(n)===0)break e;case"keydown":case"keyup":m=Yp;break;case"focusin":v="focus",m=Ni;break;case"focusout":v="blur",m=Ni;break;case"beforeblur":case"afterblur":m=Ni;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":m=zu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=Dp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=eg;break;case Tu:case Ou:case Nu:m=Bp;break;case Lu:m=ng;break;case"scroll":m=zp;break;case"wheel":m=sg;break;case"copy":case"cut":case"paste":m=Hp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Du}var w=(t&4)!==0,d=!w&&e==="scroll",p=w?c!==null?c+"Capture":null:c;w=[];for(var g=u,S;g!==null;){S=g;var y=S.stateNode;if(S.tag===5&&y!==null&&(S=y,p!==null&&(y=tr(g,p),y!=null&&w.push(vr(g,y,S)))),d)break;g=g.return}0<w.length&&(c=new m(c,v,null,n,f),h.push({event:c,listeners:w}))}}if(!(t&7)){e:{if(c=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",c&&!(t&16)&&(v=n.relatedTarget||n.fromElement)&&(bt(v)||v[wn]))break e;if((m||c)&&(c=f.window===f?f:(c=f.ownerDocument)?c.defaultView||c.parentWindow:window,m?(v=n.relatedTarget||n.toElement,m=u,v=v?bt(v):null,v!==null&&(d=Dt(v),v!==d||v.tag!==5&&v.tag!==6)&&(v=null)):(m=null,v=u),m!==v)){if(w=zu,y="onMouseLeave",p="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(w=Du,y="onPointerLeave",p="onPointerEnter",g="pointer"),d=m==null?c:Sn(m),S=v==null?c:Sn(v),c=new w(y,g+"leave",m,n,f),c.target=d,c.relatedTarget=S,y=null,bt(f)===u&&(w=new w(p,g+"enter",v,n,f),w.target=S,w.relatedTarget=d,y=w),d=y,m&&v)t:{for(w=m,p=v,g=0,S=w;S;S=yn(S))g++;for(S=0,y=p;y;y=yn(y))S++;for(;0<g-S;)w=yn(w),g--;for(;0<S-g;)p=yn(p),S--;for(;g--;){if(w===p||p!==null&&w===p.alternate)break t;w=yn(w),p=yn(p)}w=null}else w=null;m!==null&&cc(h,c,m,w,!1),v!==null&&d!==null&&cc(h,d,v,w,!0)}}e:{if(c=u?Sn(u):window,m=c.nodeName&&c.nodeName.toLowerCase(),m==="select"||m==="input"&&c.type==="file")var $=fg;else if(Wu(c))if(qu)$=gg;else{$=dg;var C=hg}else(m=c.nodeName)&&m.toLowerCase()==="input"&&(c.type==="checkbox"||c.type==="radio")&&($=pg);if($&&($=$(e,u))){Ku(h,$,n,f);break e}C&&C(e,c,u),e==="focusout"&&(C=c._wrapperState)&&C.controlled&&c.type==="number"&&ri(c,"number",c.value)}switch(C=u?Sn(u):window,e){case"focusin":(Wu(C)||C.contentEditable==="true")&&(mn=C,zi=u,mr=null);break;case"focusout":mr=zi=mn=null;break;case"mousedown":Mi=!0;break;case"contextmenu":case"mouseup":case"dragend":Mi=!1,tc(h,n,f);break;case"selectionchange":if(vg)break;case"keydown":case"keyup":tc(h,n,f)}var P;if(_i)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else gn?Vu(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(bu&&n.locale!=="ko"&&(gn||T!=="onCompositionStart"?T==="onCompositionEnd"&&gn&&(P=Fu()):(vt=f,ji="value"in vt?vt.value:vt.textContent,gn=!0)),C=js(u,T),0<C.length&&(T=new Mu(T,e,null,n,f),h.push({event:T,listeners:C}),P?T.data=P:(P=Hu(n),P!==null&&(T.data=P)))),(P=ig?lg(e,n):ag(e,n))&&(u=js(u,"onBeforeInput"),0<u.length&&(f=new Mu("onBeforeInput","beforeinput",null,n,f),h.push({event:f,listeners:u}),f.data=P))}sc(h,t)})}function vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function js(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,o=s.stateNode;s.tag===5&&o!==null&&(s=o,o=tr(e,n),o!=null&&r.unshift(vr(e,o,s)),o=tr(e,t),o!=null&&r.push(vr(e,o,s))),e=e.return}return r}function yn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function cc(e,t,n,r,s){for(var o=t._reactName,i=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,s?(a=tr(n,o),a!=null&&i.unshift(vr(n,a,l))):s||(a=tr(n,o),a!=null&&i.push(vr(n,a,l)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}function As(){}var bi=null,Ui=null;function fc(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Bi(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 hc=typeof setTimeout=="function"?setTimeout:void 0,Sg=typeof clearTimeout=="function"?clearTimeout:void 0;function Vi(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function vn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function dc(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 Hi=0;function xg(e){return{$$typeof:Jo,toString:e,valueOf:e}}var Ts=Math.random().toString(36).slice(2),wt="__reactFiber$"+Ts,Os="__reactProps$"+Ts,wn="__reactContainer$"+Ts,pc="__reactEvents$"+Ts;function bt(e){var t=e[wt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[wn]||n[wt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=dc(e);e!==null;){if(n=e[wt])return n;e=dc(e)}return t}e=n,n=e.parentNode}return null}function wr(e){return e=e[wt]||e[wn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Sn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(j(33))}function Ns(e){return e[Os]||null}function gc(e){var t=e[pc];return t===void 0&&(t=e[pc]=new Set),t}var Wi=[],xn=-1;function St(e){return{current:e}}function G(e){0>xn||(e.current=Wi[xn],Wi[xn]=null,xn--)}function X(e,t){xn++,Wi[xn]=e.current,e.current=t}var xt={},ge=St(xt),ke=St(!1),Ut=xt;function Cn(e,t){var n=e.type.contextTypes;if(!n)return xt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},o;for(o in n)s[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Pe(e){return e=e.childContextTypes,e!=null}function Ls(){G(ke),G(ge)}function mc(e,t,n){if(ge.current!==xt)throw Error(j(168));X(ge,t),X(ke,n)}function yc(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in e))throw Error(j(108,ln(t)||"Unknown",s));return Q({},n,r)}function _s(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xt,Ut=ge.current,X(ge,e),X(ke,ke.current),!0}function vc(e,t,n){var r=e.stateNode;if(!r)throw Error(j(169));n?(e=yc(e,t,Ut),r.__reactInternalMemoizedMergedChildContext=e,G(ke),G(ge),X(ge,e)):G(ke),X(ke,n)}var Ki=null,Bt=null,Cg=ie.unstable_runWithPriority,qi=ie.unstable_scheduleCallback,Gi=ie.unstable_cancelCallback,$g=ie.unstable_shouldYield,wc=ie.unstable_requestPaint,Qi=ie.unstable_now,kg=ie.unstable_getCurrentPriorityLevel,Rs=ie.unstable_ImmediatePriority,Sc=ie.unstable_UserBlockingPriority,xc=ie.unstable_NormalPriority,Cc=ie.unstable_LowPriority,$c=ie.unstable_IdlePriority,Ji={},Pg=wc!==void 0?wc:function(){},it=null,Fs=null,Yi=!1,kc=Qi(),me=1e4>kc?Qi:function(){return Qi()-kc};function $n(){switch(kg()){case Rs:return 99;case Sc:return 98;case xc:return 97;case Cc:return 96;case $c:return 95;default:throw Error(j(332))}}function Pc(e){switch(e){case 99:return Rs;case 98:return Sc;case 97:return xc;case 96:return Cc;case 95:return $c;default:throw Error(j(332))}}function Vt(e,t){return e=Pc(e),Cg(e,t)}function Sr(e,t,n){return e=Pc(e),qi(e,t,n)}function Qe(){if(Fs!==null){var e=Fs;Fs=null,Gi(e)}Ec()}function Ec(){if(!Yi&&it!==null){Yi=!0;var e=0;try{var t=it;Vt(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(n!==null)}}),it=null}catch(n){throw it!==null&&(it=it.slice(e+1)),qi(Rs,Qe),n}finally{Yi=!1}}}var Eg=It.ReactCurrentBatchConfig;function Ve(e,t){if(e&&e.defaultProps){t=Q({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Is=St(null),zs=null,kn=null,Ms=null;function Xi(){Ms=kn=zs=null}function Zi(e){var t=Is.current;G(Is),e.type._context._currentValue=t}function jc(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 Pn(e,t){zs=e,Ms=kn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(He=!0),e.firstContext=null)}function Ie(e,t){if(Ms!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(Ms=e,t=1073741823),t={context:e,observedBits:t,next:null},kn===null){if(zs===null)throw Error(j(308));kn=t,zs.dependencies={lanes:0,firstContext:t,responders:null}}else kn=kn.next=t;return e._currentValue}var Ct=!1;function el(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function Ac(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 $t(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function kt(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 Tc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?s=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?s=o=t:o=o.next=t}else s=o=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function xr(e,t,n,r){var s=e.updateQueue;Ct=!1;var o=s.firstBaseUpdate,i=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var a=l,u=a.next;a.next=null,i===null?o=u:i.next=u,i=a;var f=e.alternate;if(f!==null){f=f.updateQueue;var h=f.lastBaseUpdate;h!==i&&(h===null?f.firstBaseUpdate=u:h.next=u,f.lastBaseUpdate=a)}}if(o!==null){h=s.baseState,i=0,f=u=a=null;do{l=o.lane;var c=o.eventTime;if((r&l)===l){f!==null&&(f=f.next={eventTime:c,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var m=e,v=o;switch(l=t,c=n,v.tag){case 1:if(m=v.payload,typeof m=="function"){h=m.call(c,h,l);break e}h=m;break e;case 3:m.flags=m.flags&-4097|64;case 0:if(m=v.payload,l=typeof m=="function"?m.call(c,h,l):m,l==null)break e;h=Q({},h,l);break e;case 2:Ct=!0}}o.callback!==null&&(e.flags|=32,l=s.effects,l===null?s.effects=[o]:l.push(o))}else c={eventTime:c,lane:l,tag:o.tag,payload:o.payload,callback:o.callback,next:null},f===null?(u=f=c,a=h):f=f.next=c,i|=l;if(o=o.next,o===null){if(l=s.shared.pending,l===null)break;o=l.next,l.next=null,s.lastBaseUpdate=l,s.shared.pending=null}}while(!0);f===null&&(a=h),s.baseState=a,s.firstBaseUpdate=u,s.lastBaseUpdate=f,_r|=i,e.lanes=i,e.memoizedState=h}}function Oc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(j(191,s));s.call(r)}}}var Nc=new is.Component().refs;function Ds(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Q({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var bs={isMounted:function(e){return(e=e._reactInternals)?Dt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Oe(),s=jt(e),o=$t(r,s);o.payload=t,n!=null&&(o.callback=n),kt(e,o),At(e,s,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Oe(),s=jt(e),o=$t(r,s);o.tag=1,o.payload=t,n!=null&&(o.callback=n),kt(e,o),At(e,s,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Oe(),r=jt(e),s=$t(n,r);s.tag=2,t!=null&&(s.callback=t),kt(e,s),At(e,r,n)}};function Lc(e,t,n,r,s,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,i):t.prototype&&t.prototype.isPureReactComponent?!gr(n,r)||!gr(s,o):!0}function _c(e,t,n){var r=!1,s=xt,o=t.contextType;return typeof o=="object"&&o!==null?o=Ie(o):(s=Pe(t)?Ut:ge.current,r=t.contextTypes,o=(r=r!=null)?Cn(e,s):xt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=bs,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=o),t}function Rc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&bs.enqueueReplaceState(t,t.state,null)}function tl(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs=Nc,el(e);var o=t.contextType;typeof o=="object"&&o!==null?s.context=Ie(o):(o=Pe(t)?Ut:ge.current,s.context=Cn(e,o)),xr(e,n,s,r),s.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Ds(e,t,o,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&bs.enqueueReplaceState(s,s.state,null),xr(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4)}var Us=Array.isArray;function Cr(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(j(309));var r=n.stateNode}if(!r)throw Error(j(147,e));var s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var i=r.refs;i===Nc&&(i=r.refs={}),o===null?delete i[s]:i[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(j(284));if(!n._owner)throw Error(j(290,e))}return e}function Bs(e,t){if(e.type!=="textarea")throw Error(j(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Fc(e){function t(d,p){if(e){var g=d.lastEffect;g!==null?(g.nextEffect=p,d.lastEffect=p):d.firstEffect=d.lastEffect=p,p.nextEffect=null,p.flags=8}}function n(d,p){if(!e)return null;for(;p!==null;)t(d,p),p=p.sibling;return null}function r(d,p){for(d=new Map;p!==null;)p.key!==null?d.set(p.key,p):d.set(p.index,p),p=p.sibling;return d}function s(d,p){return d=Nt(d,p),d.index=0,d.sibling=null,d}function o(d,p,g){return d.index=g,e?(g=d.alternate,g!==null?(g=g.index,g<p?(d.flags=2,p):g):(d.flags=2,p)):p}function i(d){return e&&d.alternate===null&&(d.flags=2),d}function l(d,p,g,S){return p===null||p.tag!==6?(p=zl(g,d.mode,S),p.return=d,p):(p=s(p,g),p.return=d,p)}function a(d,p,g,S){return p!==null&&p.elementType===g.type?(S=s(p,g.props),S.ref=Cr(d,p,g),S.return=d,S):(S=io(g.type,g.key,g.props,null,d.mode,S),S.ref=Cr(d,p,g),S.return=d,S)}function u(d,p,g,S){return p===null||p.tag!==4||p.stateNode.containerInfo!==g.containerInfo||p.stateNode.implementation!==g.implementation?(p=Ml(g,d.mode,S),p.return=d,p):(p=s(p,g.children||[]),p.return=d,p)}function f(d,p,g,S,y){return p===null||p.tag!==7?(p=_n(g,d.mode,S,y),p.return=d,p):(p=s(p,g),p.return=d,p)}function h(d,p,g){if(typeof p=="string"||typeof p=="number")return p=zl(""+p,d.mode,g),p.return=d,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Gn:return g=io(p.type,p.key,p.props,null,d.mode,g),g.ref=Cr(d,null,p),g.return=d,g;case zt:return p=Ml(p,d.mode,g),p.return=d,p}if(Us(p)||Yn(p))return p=_n(p,d.mode,g,null),p.return=d,p;Bs(d,p)}return null}function c(d,p,g,S){var y=p!==null?p.key:null;if(typeof g=="string"||typeof g=="number")return y!==null?null:l(d,p,""+g,S);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Gn:return g.key===y?g.type===ht?f(d,p,g.props.children,S,y):a(d,p,g,S):null;case zt:return g.key===y?u(d,p,g,S):null}if(Us(g)||Yn(g))return y!==null?null:f(d,p,g,S,null);Bs(d,g)}return null}function m(d,p,g,S,y){if(typeof S=="string"||typeof S=="number")return d=d.get(g)||null,l(p,d,""+S,y);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Gn:return d=d.get(S.key===null?g:S.key)||null,S.type===ht?f(p,d,S.props.children,y,S.key):a(p,d,S,y);case zt:return d=d.get(S.key===null?g:S.key)||null,u(p,d,S,y)}if(Us(S)||Yn(S))return d=d.get(g)||null,f(p,d,S,y,null);Bs(p,S)}return null}function v(d,p,g,S){for(var y=null,$=null,C=p,P=p=0,T=null;C!==null&&P<g.length;P++){C.index>P?(T=C,C=null):T=C.sibling;var N=c(d,C,g[P],S);if(N===null){C===null&&(C=T);break}e&&C&&N.alternate===null&&t(d,C),p=o(N,p,P),$===null?y=N:$.sibling=N,$=N,C=T}if(P===g.length)return n(d,C),y;if(C===null){for(;P<g.length;P++)C=h(d,g[P],S),C!==null&&(p=o(C,p,P),$===null?y=C:$.sibling=C,$=C);return y}for(C=r(d,C);P<g.length;P++)T=m(C,d,P,g[P],S),T!==null&&(e&&T.alternate!==null&&C.delete(T.key===null?P:T.key),p=o(T,p,P),$===null?y=T:$.sibling=T,$=T);return e&&C.forEach(function(U){return t(d,U)}),y}function w(d,p,g,S){var y=Yn(g);if(typeof y!="function")throw Error(j(150));if(g=y.call(g),g==null)throw Error(j(151));for(var $=y=null,C=p,P=p=0,T=null,N=g.next();C!==null&&!N.done;P++,N=g.next()){C.index>P?(T=C,C=null):T=C.sibling;var U=c(d,C,N.value,S);if(U===null){C===null&&(C=T);break}e&&C&&U.alternate===null&&t(d,C),p=o(U,p,P),$===null?y=U:$.sibling=U,$=U,C=T}if(N.done)return n(d,C),y;if(C===null){for(;!N.done;P++,N=g.next())N=h(d,N.value,S),N!==null&&(p=o(N,p,P),$===null?y=N:$.sibling=N,$=N);return y}for(C=r(d,C);!N.done;P++,N=g.next())N=m(C,d,P,N.value,S),N!==null&&(e&&N.alternate!==null&&C.delete(N.key===null?P:N.key),p=o(N,p,P),$===null?y=N:$.sibling=N,$=N);return e&&C.forEach(function(Ne){return t(d,Ne)}),y}return function(d,p,g,S){var y=typeof g=="object"&&g!==null&&g.type===ht&&g.key===null;y&&(g=g.props.children);var $=typeof g=="object"&&g!==null;if($)switch(g.$$typeof){case Gn:e:{for($=g.key,y=p;y!==null;){if(y.key===$){switch(y.tag){case 7:if(g.type===ht){n(d,y.sibling),p=s(y,g.props.children),p.return=d,d=p;break e}break;default:if(y.elementType===g.type){n(d,y.sibling),p=s(y,g.props),p.ref=Cr(d,y,g),p.return=d,d=p;break e}}n(d,y);break}else t(d,y);y=y.sibling}g.type===ht?(p=_n(g.props.children,d.mode,S,g.key),p.return=d,d=p):(S=io(g.type,g.key,g.props,null,d.mode,S),S.ref=Cr(d,p,g),S.return=d,d=S)}return i(d);case zt:e:{for(y=g.key;p!==null;){if(p.key===y)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){n(d,p.sibling),p=s(p,g.children||[]),p.return=d,d=p;break e}else{n(d,p);break}else t(d,p);p=p.sibling}p=Ml(g,d.mode,S),p.return=d,d=p}return i(d)}if(typeof g=="string"||typeof g=="number")return g=""+g,p!==null&&p.tag===6?(n(d,p.sibling),p=s(p,g),p.return=d,d=p):(n(d,p),p=zl(g,d.mode,S),p.return=d,d=p),i(d);if(Us(g))return v(d,p,g,S);if(Yn(g))return w(d,p,g,S);if($&&Bs(d,g),typeof g>"u"&&!y)switch(d.tag){case 1:case 22:case 0:case 11:case 15:throw Error(j(152,ln(d.type)||"Component"))}return n(d,p)}}var Vs=Fc(!0),Ic=Fc(!1),$r={},Je=St($r),kr=St($r),Pr=St($r);function Ht(e){if(e===$r)throw Error(j(174));return e}function nl(e,t){switch(X(Pr,t),X(kr,e),X(Je,$r),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:li(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=li(t,e)}G(Je),X(Je,t)}function En(){G(Je),G(kr),G(Pr)}function zc(e){Ht(Pr.current);var t=Ht(Je.current),n=li(t,e.type);t!==n&&(X(kr,e),X(Je,n))}function rl(e){kr.current===e&&(G(Je),G(kr))}var Z=St(0);function Hs(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)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 lt=null,Pt=null,Ye=!1;function Mc(e,t){var n=De(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 Dc(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 sl(e){if(Ye){var t=Pt;if(t){var n=t;if(!Dc(e,t)){if(t=vn(n.nextSibling),!t||!Dc(e,t)){e.flags=e.flags&-1025|2,Ye=!1,lt=e;return}Mc(lt,n)}lt=e,Pt=vn(t.firstChild)}else e.flags=e.flags&-1025|2,Ye=!1,lt=e}}function bc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;lt=e}function Ws(e){if(e!==lt)return!1;if(!Ye)return bc(e),Ye=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!Bi(t,e.memoizedProps))for(t=Pt;t;)Mc(e,t),t=vn(t.nextSibling);if(bc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Pt=vn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Pt=null}}else Pt=lt?vn(e.stateNode.nextSibling):null;return!0}function ol(){Pt=lt=null,Ye=!1}var jn=[];function il(){for(var e=0;e<jn.length;e++)jn[e]._workInProgressVersionPrimary=null;jn.length=0}var Er=It.ReactCurrentDispatcher,ze=It.ReactCurrentBatchConfig,jr=0,ne=null,ye=null,ce=null,Ks=!1,Ar=!1;function Ee(){throw Error(j(321))}function ll(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Fe(e[n],t[n]))return!1;return!0}function al(e,t,n,r,s,o){if(jr=o,ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Er.current=e===null||e.memoizedState===null?Ag:Tg,e=n(r,s),Ar){o=0;do{if(Ar=!1,!(25>o))throw Error(j(301));o+=1,ce=ye=null,t.updateQueue=null,Er.current=Og,e=n(r,s)}while(Ar)}if(Er.current=Js,t=ye!==null&&ye.next!==null,jr=0,ce=ye=ne=null,Ks=!1,t)throw Error(j(300));return e}function Wt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ce===null?ne.memoizedState=ce=e:ce=ce.next=e,ce}function Kt(){if(ye===null){var e=ne.alternate;e=e!==null?e.memoizedState:null}else e=ye.next;var t=ce===null?ne.memoizedState:ce.next;if(t!==null)ce=t,ye=e;else{if(e===null)throw Error(j(310));ye=e,e={memoizedState:ye.memoizedState,baseState:ye.baseState,baseQueue:ye.baseQueue,queue:ye.queue,next:null},ce===null?ne.memoizedState=ce=e:ce=ce.next=e}return ce}function Xe(e,t){return typeof t=="function"?t(e):t}function Tr(e){var t=Kt(),n=t.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=e;var r=ye,s=r.baseQueue,o=n.pending;if(o!==null){if(s!==null){var i=s.next;s.next=o.next,o.next=i}r.baseQueue=s=o,n.pending=null}if(s!==null){s=s.next,r=r.baseState;var l=i=o=null,a=s;do{var u=a.lane;if((jr&u)===u)l!==null&&(l=l.next={lane:0,action:a.action,eagerReducer:a.eagerReducer,eagerState:a.eagerState,next:null}),r=a.eagerReducer===e?a.eagerState:e(r,a.action);else{var f={lane:u,action:a.action,eagerReducer:a.eagerReducer,eagerState:a.eagerState,next:null};l===null?(i=l=f,o=r):l=l.next=f,ne.lanes|=u,_r|=u}a=a.next}while(a!==null&&a!==s);l===null?o=r:l.next=i,Fe(r,t.memoizedState)||(He=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Or(e){var t=Kt(),n=t.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,o=t.memoizedState;if(s!==null){n.pending=null;var i=s=s.next;do o=e(o,i.action),i=i.next;while(i!==s);Fe(o,t.memoizedState)||(He=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Uc(e,t,n){var r=t._getVersion;r=r(t._source);var s=t._workInProgressVersionPrimary;if(s!==null?e=s===r:(e=e.mutableReadLanes,(e=(jr&e)===e)&&(t._workInProgressVersionPrimary=r,jn.push(t))),e)return n(t._source);throw jn.push(t),Error(j(350))}function Bc(e,t,n,r){var s=Ce;if(s===null)throw Error(j(349));var o=t._getVersion,i=o(t._source),l=Er.current,a=l.useState(function(){return Uc(s,t,n)}),u=a[1],f=a[0];a=ce;var h=e.memoizedState,c=h.refs,m=c.getSnapshot,v=h.source;h=h.subscribe;var w=ne;return e.memoizedState={refs:c,source:t,subscribe:r},l.useEffect(function(){c.getSnapshot=n,c.setSnapshot=u;var d=o(t._source);if(!Fe(i,d)){d=n(t._source),Fe(f,d)||(u(d),d=jt(w),s.mutableReadLanes|=d&s.pendingLanes),d=s.mutableReadLanes,s.entangledLanes|=d;for(var p=s.entanglements,g=d;0<g;){var S=31-yt(g),y=1<<S;p[S]|=d,g&=~y}}},[n,t,r]),l.useEffect(function(){return r(t._source,function(){var d=c.getSnapshot,p=c.setSnapshot;try{p(d(t._source));var g=jt(w);s.mutableReadLanes|=g&s.pendingLanes}catch(S){p(function(){throw S})}})},[t,r]),Fe(m,n)&&Fe(v,t)&&Fe(h,r)||(e={pending:null,dispatch:null,lastRenderedReducer:Xe,lastRenderedState:f},e.dispatch=u=hl.bind(null,ne,e),a.queue=e,a.baseQueue=null,f=Uc(s,t,n),a.memoizedState=a.baseState=f),f}function Vc(e,t,n){var r=Kt();return Bc(r,e,t,n)}function Nr(e){var t=Wt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Xe,lastRenderedState:e},e=e.dispatch=hl.bind(null,ne,e),[t.memoizedState,e]}function qs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,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:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Hc(e){var t=Wt();return e={current:e},t.memoizedState=e}function Gs(){return Kt().memoizedState}function ul(e,t,n,r){var s=Wt();ne.flags|=e,s.memoizedState=qs(1|t,n,void 0,r===void 0?null:r)}function cl(e,t,n,r){var s=Kt();r=r===void 0?null:r;var o=void 0;if(ye!==null){var i=ye.memoizedState;if(o=i.destroy,r!==null&&ll(r,i.deps)){qs(t,n,o,r);return}}ne.flags|=e,s.memoizedState=qs(1|t,n,o,r)}function Wc(e,t){return ul(516,4,e,t)}function Qs(e,t){return cl(516,4,e,t)}function Kc(e,t){return cl(4,2,e,t)}function qc(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 Gc(e,t,n){return n=n!=null?n.concat([e]):null,cl(4,2,qc.bind(null,t,e),n)}function fl(){}function Qc(e,t){var n=Kt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ll(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Jc(e,t){var n=Kt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ll(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function jg(e,t){var n=$n();Vt(98>n?98:n,function(){e(!0)}),Vt(97<n?97:n,function(){var r=ze.transition;ze.transition=1;try{e(!1),t()}finally{ze.transition=r}})}function hl(e,t,n){var r=Oe(),s=jt(e),o={lane:s,action:n,eagerReducer:null,eagerState:null,next:null},i=t.pending;if(i===null?o.next=o:(o.next=i.next,i.next=o),t.pending=o,i=e.alternate,e===ne||i!==null&&i===ne)Ar=Ks=!0;else{if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,a=i(l,n);if(o.eagerReducer=i,o.eagerState=a,Fe(a,l))return}catch{}finally{}At(e,s,r)}}var Js={readContext:Ie,useCallback:Ee,useContext:Ee,useEffect:Ee,useImperativeHandle:Ee,useLayoutEffect:Ee,useMemo:Ee,useReducer:Ee,useRef:Ee,useState:Ee,useDebugValue:Ee,useDeferredValue:Ee,useTransition:Ee,useMutableSource:Ee,useOpaqueIdentifier:Ee,unstable_isNewReconciler:!1},Ag={readContext:Ie,useCallback:function(e,t){return Wt().memoizedState=[e,t===void 0?null:t],e},useContext:Ie,useEffect:Wc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ul(4,2,qc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ul(4,2,e,t)},useMemo:function(e,t){var n=Wt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Wt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=hl.bind(null,ne,e),[r.memoizedState,e]},useRef:Hc,useState:Nr,useDebugValue:fl,useDeferredValue:function(e){var t=Nr(e),n=t[0],r=t[1];return Wc(function(){var s=ze.transition;ze.transition=1;try{r(e)}finally{ze.transition=s}},[e]),n},useTransition:function(){var e=Nr(!1),t=e[0];return e=jg.bind(null,e[1]),Hc(e),[e,t]},useMutableSource:function(e,t,n){var r=Wt();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},Bc(r,e,t,n)},useOpaqueIdentifier:function(){if(Ye){var e=!1,t=xg(function(){throw e||(e=!0,n("r:"+(Hi++).toString(36))),Error(j(355))}),n=Nr(t)[1];return!(ne.mode&2)&&(ne.flags|=516,qs(5,function(){n("r:"+(Hi++).toString(36))},void 0,null)),t}return t="r:"+(Hi++).toString(36),Nr(t),t},unstable_isNewReconciler:!1},Tg={readContext:Ie,useCallback:Qc,useContext:Ie,useEffect:Qs,useImperativeHandle:Gc,useLayoutEffect:Kc,useMemo:Jc,useReducer:Tr,useRef:Gs,useState:function(){return Tr(Xe)},useDebugValue:fl,useDeferredValue:function(e){var t=Tr(Xe),n=t[0],r=t[1];return Qs(function(){var s=ze.transition;ze.transition=1;try{r(e)}finally{ze.transition=s}},[e]),n},useTransition:function(){var e=Tr(Xe)[0];return[Gs().current,e]},useMutableSource:Vc,useOpaqueIdentifier:function(){return Tr(Xe)[0]},unstable_isNewReconciler:!1},Og={readContext:Ie,useCallback:Qc,useContext:Ie,useEffect:Qs,useImperativeHandle:Gc,useLayoutEffect:Kc,useMemo:Jc,useReducer:Or,useRef:Gs,useState:function(){return Or(Xe)},useDebugValue:fl,useDeferredValue:function(e){var t=Or(Xe),n=t[0],r=t[1];return Qs(function(){var s=ze.transition;ze.transition=1;try{r(e)}finally{ze.transition=s}},[e]),n},useTransition:function(){var e=Or(Xe)[0];return[Gs().current,e]},useMutableSource:Vc,useOpaqueIdentifier:function(){return Or(Xe)[0]},unstable_isNewReconciler:!1},Ng=It.ReactCurrentOwner,He=!1;function je(e,t,n,r){t.child=e===null?Ic(t,null,n,r):Vs(t,e.child,n,r)}function Yc(e,t,n,r,s){n=n.render;var o=t.ref;return Pn(t,s),r=al(e,t,n,r,o,s),e!==null&&!He?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~s,at(e,t,s)):(t.flags|=1,je(e,t,r,s),t.child)}function Xc(e,t,n,r,s,o){if(e===null){var i=n.type;return typeof i=="function"&&!Fl(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Zc(e,t,i,r,s,o)):(e=io(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}return i=e.child,!(s&o)&&(s=i.memoizedProps,n=n.compare,n=n!==null?n:gr,n(s,r)&&e.ref===t.ref)?at(e,t,o):(t.flags|=1,e=Nt(i,r),e.ref=t.ref,e.return=t,t.child=e)}function Zc(e,t,n,r,s,o){if(e!==null&&gr(e.memoizedProps,r)&&e.ref===t.ref)if(He=!1,(o&s)!==0)e.flags&16384&&(He=!0);else return t.lanes=e.lanes,at(e,t,o);return pl(e,t,n,r,o)}function dl(e,t,n){var r=t.pendingProps,s=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden"||r.mode==="unstable-defer-without-hiding")if(!(t.mode&4))t.memoizedState={baseLanes:0},oo(t,n);else if(n&1073741824)t.memoizedState={baseLanes:0},oo(t,o!==null?o.baseLanes:n);else return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},oo(t,e),null;else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,oo(t,r);return je(e,t,s,n),t.child}function ef(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function pl(e,t,n,r,s){var o=Pe(n)?Ut:ge.current;return o=Cn(t,o),Pn(t,s),n=al(e,t,n,r,o,s),e!==null&&!He?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~s,at(e,t,s)):(t.flags|=1,je(e,t,n,s),t.child)}function tf(e,t,n,r,s){if(Pe(n)){var o=!0;_s(t)}else o=!1;if(Pn(t,s),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),_c(t,n,r),tl(t,n,r,s),r=!0;else if(e===null){var i=t.stateNode,l=t.memoizedProps;i.props=l;var a=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ie(u):(u=Pe(n)?Ut:ge.current,u=Cn(t,u));var f=n.getDerivedStateFromProps,h=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function";h||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==r||a!==u)&&Rc(t,i,r,u),Ct=!1;var c=t.memoizedState;i.state=c,xr(t,r,i,s),a=t.memoizedState,l!==r||c!==a||ke.current||Ct?(typeof f=="function"&&(Ds(t,n,f,r),a=t.memoizedState),(l=Ct||Lc(t,n,l,r,c,a,u))?(h||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4)):(typeof i.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=a),i.props=r,i.state=a,i.context=u,r=l):(typeof i.componentDidMount=="function"&&(t.flags|=4),r=!1)}else{i=t.stateNode,Ac(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Ve(t.type,l),i.props=u,h=t.pendingProps,c=i.context,a=n.contextType,typeof a=="object"&&a!==null?a=Ie(a):(a=Pe(n)?Ut:ge.current,a=Cn(t,a));var m=n.getDerivedStateFromProps;(f=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==h||c!==a)&&Rc(t,i,r,a),Ct=!1,c=t.memoizedState,i.state=c,xr(t,r,i,s);var v=t.memoizedState;l!==h||c!==v||ke.current||Ct?(typeof m=="function"&&(Ds(t,n,m,r),v=t.memoizedState),(u=Ct||Lc(t,n,u,r,c,v,a))?(f||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,v,a),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,v,a)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=v),i.props=r,i.state=v,i.context=a,r=u):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=256),r=!1)}return gl(e,t,n,r,o,s)}function gl(e,t,n,r,s,o){ef(e,t);var i=(t.flags&64)!==0;if(!r&&!i)return s&&vc(t,n,!1),at(e,t,o);r=t.stateNode,Ng.current=t;var l=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Vs(t,e.child,null,o),t.child=Vs(t,null,l,o)):je(e,t,l,o),t.memoizedState=r.state,s&&vc(t,n,!0),t.child}function nf(e){var t=e.stateNode;t.pendingContext?mc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&mc(e,t.context,!1),nl(e,t.containerInfo)}var Ys={dehydrated:null,retryLane:0};function rf(e,t,n){var r=t.pendingProps,s=Z.current,o=!1,i;return(i=(t.flags&64)!==0)||(i=e!==null&&e.memoizedState===null?!1:(s&2)!==0),i?(o=!0,t.flags&=-65):e!==null&&e.memoizedState===null||r.fallback===void 0||r.unstable_avoidThisFallback===!0||(s|=1),X(Z,s&1),e===null?(r.fallback!==void 0&&sl(t),e=r.children,s=r.fallback,o?(e=sf(t,e,s,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ys,e):typeof r.unstable_expectedLoadTime=="number"?(e=sf(t,e,s,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ys,t.lanes=33554432,e):(n=Il({mode:"visible",children:e},t.mode,n,null),n.return=t,t.child=n)):e.memoizedState!==null?o?(r=lf(e,t,r.children,r.fallback,n),o=t.child,s=e.child.memoizedState,o.memoizedState=s===null?{baseLanes:n}:{baseLanes:s.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Ys,r):(n=of(e,t,r.children,n),t.memoizedState=null,n):o?(r=lf(e,t,r.children,r.fallback,n),o=t.child,s=e.child.memoizedState,o.memoizedState=s===null?{baseLanes:n}:{baseLanes:s.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Ys,r):(n=of(e,t,r.children,n),t.memoizedState=null,n)}function sf(e,t,n,r){var s=e.mode,o=e.child;return t={mode:"hidden",children:t},!(s&2)&&o!==null?(o.childLanes=0,o.pendingProps=t):o=Il(t,s,0,null),n=_n(n,s,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function of(e,t,n,r){var s=e.child;return e=s.sibling,n=Nt(s,{mode:"visible",children:n}),!(t.mode&2)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function lf(e,t,n,r,s){var o=t.mode,i=e.child;e=i.sibling;var l={mode:"hidden",children:n};return!(o&2)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=l,i=n.lastEffect,i!==null?(t.firstEffect=n.firstEffect,t.lastEffect=i,i.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Nt(i,l),e!==null?r=Nt(e,r):(r=_n(r,o,s,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function af(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),jc(e.return,t)}function ml(e,t,n,r,s,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s,lastEffect:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s,i.lastEffect=o)}function uf(e,t,n){var r=t.pendingProps,s=r.revealOrder,o=r.tail;if(je(e,t,r.children,n),r=Z.current,r&2)r=r&1|2,t.flags|=64;else{if(e!==null&&e.flags&64)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&af(e,n);else if(e.tag===19)af(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}r&=1}if(X(Z,r),!(t.mode&2))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Hs(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),ml(t,!1,s,n,o,t.lastEffect);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Hs(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}ml(t,!0,n,null,o,t.lastEffect);break;case"together":ml(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function at(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),_r|=t.lanes,n&t.childLanes){if(e!==null&&t.child!==e.child)throw Error(j(153));if(t.child!==null){for(e=t.child,n=Nt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Nt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}return null}var cf,yl,ff,hf;cf=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}},yl=function(){},ff=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Ht(Je.current);var o=null;switch(n){case"input":s=ti(e,s),r=ti(e,r),o=[];break;case"option":s=si(e,s),r=si(e,r),o=[];break;case"select":s=Q({},s,{value:void 0}),r=Q({},r,{value:void 0}),o=[];break;case"textarea":s=oi(e,s),r=oi(e,r),o=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=As)}ai(n,r);var i;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var l=s[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(qn.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var a=r[u];if(l=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(i in l)!l.hasOwnProperty(i)||a&&a.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in a)a.hasOwnProperty(i)&&l[i]!==a[i]&&(n||(n={}),n[i]=a[i])}else n||(o||(o=[]),o.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(o=o||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(qn.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&q("scroll",e),o||l===a||(o=[])):typeof a=="object"&&a!==null&&a.$$typeof===Jo?a.toString():(o=o||[]).push(u,a))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},hf=function(e,t,n,r){n!==r&&(t.flags|=4)};function Lr(e,t){if(!Ye)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Lg(e,t,n){var r=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 Pe(t.type)&&Ls(),null;case 3:return En(),G(ke),G(ge),il(),r=t.stateNode,r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ws(t)?t.flags|=4:r.hydrate||(t.flags|=256)),yl(t),null;case 5:rl(t);var s=Ht(Pr.current);if(n=t.type,e!==null&&t.stateNode!=null)ff(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(t.stateNode===null)throw Error(j(166));return null}if(e=Ht(Je.current),Ws(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[wt]=t,r[Os]=o,n){case"dialog":q("cancel",r),q("close",r);break;case"iframe":case"object":case"embed":q("load",r);break;case"video":case"audio":for(e=0;e<yr.length;e++)q(yr[e],r);break;case"source":q("error",r);break;case"img":case"image":case"link":q("error",r),q("load",r);break;case"details":q("toggle",r);break;case"input":nu(r,o),q("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},q("invalid",r);break;case"textarea":ou(r,o),q("invalid",r)}ai(n,o),e=null;for(var i in o)o.hasOwnProperty(i)&&(s=o[i],i==="children"?typeof s=="string"?r.textContent!==s&&(e=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(e=["children",""+s]):qn.hasOwnProperty(i)&&s!=null&&i==="onScroll"&&q("scroll",r));switch(n){case"input":fs(r),su(r,o,!0);break;case"textarea":fs(r),lu(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=As)}r=e,t.updateQueue=r,r!==null&&(t.flags|=4)}else{switch(i=s.nodeType===9?s:s.ownerDocument,e===ii.html&&(e=au(n)),e===ii.html?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[wt]=t,e[Os]=r,cf(e,t,!1,!1),t.stateNode=e,i=ui(n,r),n){case"dialog":q("cancel",e),q("close",e),s=r;break;case"iframe":case"object":case"embed":q("load",e),s=r;break;case"video":case"audio":for(s=0;s<yr.length;s++)q(yr[s],e);s=r;break;case"source":q("error",e),s=r;break;case"img":case"image":case"link":q("error",e),q("load",e),s=r;break;case"details":q("toggle",e),s=r;break;case"input":nu(e,r),s=ti(e,r),q("invalid",e);break;case"option":s=si(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=Q({},r,{value:void 0}),q("invalid",e);break;case"textarea":ou(e,r),s=oi(e,r),q("invalid",e);break;default:s=r}ai(n,s);var l=s;for(o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="style"?fu(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&uu(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Zn(e,a):typeof a=="number"&&Zn(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(qn.hasOwnProperty(o)?a!=null&&o==="onScroll"&&q("scroll",e):a!=null&&Ho(e,o,a,i))}switch(n){case"input":fs(e),su(e,r,!1);break;case"textarea":fs(e),lu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+dt(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?an(e,!!r.multiple,o,!1):r.defaultValue!=null&&an(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=As)}fc(n,r)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)hf(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(j(166));n=Ht(Pr.current),Ht(Je.current),Ws(t)?(r=t.stateNode,n=t.memoizedProps,r[wt]=t,r.nodeValue!==n&&(t.flags|=4)):(r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[wt]=t,t.stateNode=r)}return null;case 13:return G(Z),r=t.memoizedState,t.flags&64?(t.lanes=n,t):(r=r!==null,n=!1,e===null?t.memoizedProps.fallback!==void 0&&Ws(t):n=e.memoizedState!==null,r&&!n&&t.mode&2&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||Z.current&1?fe===0&&(fe=3):((fe===0||fe===3)&&(fe=4),Ce===null||!(_r&134217727)&&!(Tn&134217727)||Nn(Ce,ve))),(r||n)&&(t.flags|=4),null);case 4:return En(),yl(t),e===null&&ic(t.stateNode.containerInfo),null;case 10:return Zi(t),null;case 17:return Pe(t.type)&&Ls(),null;case 19:if(G(Z),r=t.memoizedState,r===null)return null;if(o=(t.flags&64)!==0,i=r.rendering,i===null)if(o)Lr(r,!1);else{if(fe!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(i=Hs(e),i!==null){for(t.flags|=64,Lr(r,!1),o=i.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),r.lastEffect===null&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return X(Z,Z.current&1|2),t.child}e=e.sibling}r.tail!==null&&me()>Al&&(t.flags|=64,o=!0,Lr(r,!1),t.lanes=33554432)}else{if(!o)if(e=Hs(i),e!==null){if(t.flags|=64,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Lr(r,!0),r.tail===null&&r.tailMode==="hidden"&&!i.alternate&&!Ye)return t=t.lastEffect=r.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*me()-r.renderingStartTime>Al&&n!==1073741824&&(t.flags|=64,o=!0,Lr(r,!1),t.lanes=33554432);r.isBackwards?(i.sibling=t.child,t.child=i):(n=r.last,n!==null?n.sibling=i:t.child=i,r.last=i)}return r.tail!==null?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=me(),n.sibling=null,t=Z.current,X(Z,o?t&1|2:t&1),n):null;case 23:case 24:return Rl(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&r.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(j(156,t.tag))}function _g(e){switch(e.tag){case 1:Pe(e.type)&&Ls();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(En(),G(ke),G(ge),il(),t=e.flags,t&64)throw Error(j(285));return e.flags=t&-4097|64,e;case 5:return rl(e),null;case 13:return G(Z),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return G(Z),null;case 4:return En(),null;case 10:return Zi(e),null;case 23:case 24:return Rl(),null;default:return null}}function vl(e,t){try{var n="",r=t;do n+=hp(r),r=r.return;while(r);var s=n}catch(o){s=`
39
39
  Error generating stack: `+o.message+`
40
- `+o.stack}return{value:e,source:t,stack:s}}function rl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Np=typeof WeakMap=="function"?WeakMap:Map;function zc(e,t,n){n=Ct(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hs||(Hs=!0,dl=r),rl(e,t)},n}function Ic(e,t,n){n=Ct(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return rl(e,t),r(s)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){typeof r!="function"&&(Ge===null?Ge=new Set([this]):Ge.add(this),rl(e,t));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}var Ap=typeof WeakSet=="function"?WeakSet:Set;function Mc(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){Tt(e,n)}else t.current=null}function Op(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,r=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:Be(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&ji(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(j(163))}function Lp(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 r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var s=e;r=s.next,s=s.tag,s&4&&s&1&&(Xc(n,e),Up(n,e)),e=r}while(e!==t)}return;case 1:e=n.stateNode,n.flags&4&&(t===null?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Be(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&ec(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}ec(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&Fa(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&&Gu(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(j(163))}function Dc(e,t){for(var n=e;;){if(n.tag===5){var r=n.stateNode;if(t)r=r.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var s=n.memoizedProps.style;s=s!=null&&s.hasOwnProperty("display")?s.display:null,r.style.display=Ru("display",s)}}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 Uc(e,t){if(Ut&&typeof Ut.onCommitFiberUnmount=="function")try{Ut.onCommitFiberUnmount(Ai,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 r=n,s=r.destroy;if(r=r.tag,s!==void 0)if(r&4)Xc(t,n);else{r=t;try{s()}catch(o){Tt(r,o)}}n=n.next}while(n!==e)}break;case 1:if(Mc(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){Tt(t,o)}break;case 5:Mc(t);break;case 4:Hc(e,t)}}function Bc(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 bc(e){return e.tag===5||e.tag===3||e.tag===4}function Vc(e){e:{for(var t=e.return;t!==null;){if(bc(t))break e;t=t.return}throw Error(j(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:t=t.containerInfo,r=!0;break;case 4:t=t.containerInfo,r=!0;break;default:throw Error(j(161))}n.flags&16&&(Wn(t,""),n.flags&=-17);e:t:for(n=e;;){for(;n.sibling===null;){if(n.return===null||bc(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}}r?sl(e,n,t):ol(e,n,t)}function sl(e,t,n){var r=e.tag,s=r===5||r===6;if(s)e=s?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(r!==4&&(e=e.child,e!==null))for(sl(e,t,n),e=e.sibling;e!==null;)sl(e,t,n),e=e.sibling}function ol(e,t,n){var r=e.tag,s=r===5||r===6;if(s)e=s?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ol(e,t,n),e=e.sibling;e!==null;)ol(e,t,n),e=e.sibling}function Hc(e,t){for(var n=t,r=!1,s,o;;){if(!r){r=n.return;e:for(;;){if(r===null)throw Error(j(160));switch(s=r.stateNode,r.tag){case 5:o=!1;break e;case 3:s=s.containerInfo,o=!0;break e;case 4:s=s.containerInfo,o=!0;break e}r=r.return}r=!0}if(n.tag===5||n.tag===6){e:for(var i=e,l=n,u=l;;)if(Uc(i,u),u.child!==null&&u.tag!==4)u.child.return=u,u=u.child;else{if(u===l)break e;for(;u.sibling===null;){if(u.return===null||u.return===l)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}o?(i=s,l=n.stateNode,i.nodeType===8?i.parentNode.removeChild(l):i.removeChild(l)):s.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){s=n.stateNode.containerInfo,o=!0,n.child.return=n,n=n.child;continue}}else if(Uc(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&&(r=!1)}n.sibling.return=n.return,n=n.sibling}}function il(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 r=n=n.next;do(r.tag&3)===3&&(e=r.destroy,r.destroy=void 0,e!==void 0&&e()),r=r.next;while(r!==n)}return;case 1:return;case 5:if(n=t.stateNode,n!=null){r=t.memoizedProps;var s=e!==null?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,o!==null){for(n[Ss]=r,e==="input"&&r.type==="radio"&&r.name!=null&&ju(n,r),qo(e,s),t=qo(e,r),s=0;s<o.length;s+=2){var i=o[s],l=o[s+1];i==="style"?Fu(n,l):i==="dangerouslySetInnerHTML"?_u(n,l):i==="children"?Wn(n,l):To(n,i,l,t)}switch(e){case"input":Uo(n,r);break;case"textarea":Au(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,o=r.value,o!=null?sn(n,!!r.multiple,o,!1):e!==!!r.multiple&&(r.defaultValue!=null?sn(n,!!r.multiple,r.defaultValue,!0):sn(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(j(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:n=t.stateNode,n.hydrate&&(n.hydrate=!1,Gu(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(fl=pe(),Dc(t.child,!0)),Kc(t);return;case 19:Kc(t);return;case 17:return;case 23:case 24:Dc(t,t.memoizedState!==null);return}throw Error(j(163))}function Kc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ap),t.forEach(function(r){var s=Vp.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function _p(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var Rp=Math.ceil,bs=Rt.ReactCurrentDispatcher,ll=Rt.ReactCurrentOwner,z=0,Se=null,se=null,me=0,Kt=0,ul=vt(0),ae=0,Vs=null,En=0,Pr=0,Pn=0,al=0,cl=null,fl=0,hl=1/0;function jn(){hl=pe()+500}var R=null,Hs=!1,dl=null,Ge=null,kt=!1,jr=null,Tr=90,pl=[],gl=[],lt=null,Nr=0,ml=null,Ks=-1,ut=0,Ws=0,Ar=null,qs=!1;function Te(){return z&48?pe():Ks!==-1?Ks:Ks=pe()}function Et(e){if(e=e.mode,!(e&2))return 1;if(!(e&4))return Sn()===99?1:2;if(ut===0&&(ut=En),Cp.transition!==0){Ws!==0&&(Ws=cl!==null?cl.pendingLanes:0),e=ut;var t=4186112&~Ws;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=Sn(),z&4&&e===98?e=as(12,ut):(e=$d(e),e=as(e,ut)),e}function Pt(e,t,n){if(50<Nr)throw Nr=0,ml=null,Error(j(185));if(e=Qs(e,t),e===null)return null;cs(e,t,n),e===Se&&(Pn|=t,ae===4&&Tn(e,me));var r=Sn();t===1?z&8&&!(z&48)?yl(e):(ze(e,n),z===0&&(jn(),qe())):(!(z&4)||r!==98&&r!==99||(lt===null?lt=new Set([e]):lt.add(e)),ze(e,n)),cl=e}function Qs(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 ze(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,s=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var l=31-gt(i),u=1<<l,a=o[l];if(a===-1){if(!(u&r)||u&s){a=t,an(u);var c=K;o[l]=10<=c?a+250:6<=c?a+5e3:-1}}else a<=t&&(e.expiredLanes|=u);i&=~u}if(r=nr(e,e===Se?me:0),t=K,r===0)n!==null&&(n!==Ri&&Li(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==Ri&&Li(n)}t===15?(n=yl.bind(null,e),st===null?(st=[n],Es=Oi(ks,Ya)):st.push(n),n=Ri):t===14?n=dr(99,yl.bind(null,e)):(n=kd(t),n=dr(n,Wc.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function Wc(e){if(Ks=-1,Ws=ut=0,z&48)throw Error(j(327));var t=e.callbackNode;if(jt()&&e.callbackNode!==t)return null;var n=nr(e,e===Se?me:0);if(n===0)return null;var r=n,s=z;z|=16;var o=Yc();(Se!==e||me!==r)&&(jn(),Nn(e,r));do try{Ip();break}catch(l){Jc(e,l)}while(!0);if(zi(),bs.current=o,z=s,se!==null?r=0:(Se=null,me=0,r=ae),En&Pn)Nn(e,0);else if(r!==0){if(r===2&&(z|=64,e.hydrate&&(e.hydrate=!1,ji(e.containerInfo)),n=sa(e),n!==0&&(r=Or(e,n))),r===1)throw t=Vs,Nn(e,0),Tn(e,n),ze(e,pe()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(j(345));case 2:Wt(e);break;case 3:if(Tn(e,n),(n&62914560)===n&&(r=fl+500-pe(),10<r)){if(nr(e,0)!==0)break;if(s=e.suspendedLanes,(s&n)!==n){Te(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=za(Wt.bind(null,e),r);break}Wt(e);break;case 4:if(Tn(e,n),(n&4186112)===n)break;for(r=e.eventTimes,s=-1;0<n;){var i=31-gt(n);o=1<<i,i=r[i],i>s&&(s=i),n&=~o}if(n=s,n=pe()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Rp(n/1960))-n,10<n){e.timeoutHandle=za(Wt.bind(null,e),n);break}Wt(e);break;case 5:Wt(e);break;default:throw Error(j(329))}}return ze(e,pe()),e.callbackNode===t?Wc.bind(null,e):null}function Tn(e,t){for(t&=~al,t&=~Pn,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-gt(t),r=1<<n;e[n]=-1,t&=~r}}function yl(e){if(z&48)throw Error(j(327));if(jt(),e===Se&&e.expiredLanes&me){var t=me,n=Or(e,t);En&Pn&&(t=nr(e,t),n=Or(e,t))}else t=nr(e,0),n=Or(e,t);if(e.tag!==0&&n===2&&(z|=64,e.hydrate&&(e.hydrate=!1,ji(e.containerInfo)),t=sa(e),t!==0&&(n=Or(e,t))),n===1)throw n=Vs,Nn(e,0),Tn(e,t),ze(e,pe()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Wt(e),ze(e,pe()),null}function Fp(){if(lt!==null){var e=lt;lt=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,ze(t,pe())})}qe()}function qc(e,t){var n=z;z|=1;try{return e(t)}finally{z=n,z===0&&(jn(),qe())}}function Qc(e,t){var n=z;z&=-2,z|=8;try{return e(t)}finally{z=n,z===0&&(jn(),qe())}}function Js(e,t){G(ul,Kt),Kt|=t,En|=t}function vl(){Kt=ul.current,q(ul)}function Nn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,gp(n)),se!==null)for(n=se.return;n!==null;){var r=n;switch(r.tag){case 1:r=r.type.childContextTypes,r!=null&&xs();break;case 3:$n(),q(xe),q(de),Hi();break;case 5:Bi(r);break;case 4:$n();break;case 13:q(Z);break;case 19:q(Z);break;case 10:Ii(r);break;case 23:case 24:vl()}n=n.return}Se=e,se=Nt(e.current,null),me=Kt=En=t,ae=0,Vs=null,al=Pn=Pr=0}function Jc(e,t){do{var n=se;try{if(zi(),wr.current=Us,zs){for(var r=te.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}zs=!1}if(Sr=0,ue=ge=te=null,Cr=!1,ll.current=null,n===null||n.return===null){ae=1,Vs=t,se=null;break}e:{var o=e,i=n.return,l=n,u=t;if(t=me,l.flags|=2048,l.firstEffect=l.lastEffect=null,u!==null&&typeof u=="object"&&typeof u.then=="function"){var a=u;if(!(l.mode&2)){var c=l.alternate;c?(l.updateQueue=c.updateQueue,l.memoizedState=c.memoizedState,l.lanes=c.lanes):(l.updateQueue=null,l.memoizedState=null)}var h=(Z.current&1)!==0,f=i;do{var m;if(m=f.tag===13){var v=f.memoizedState;if(v!==null)m=v.dehydrated!==null;else{var w=f.memoizedProps;m=w.fallback===void 0?!1:w.unstable_avoidThisFallback!==!0?!0:!h}}if(m){var d=f.updateQueue;if(d===null){var p=new Set;p.add(a),f.updateQueue=p}else d.add(a);if(!(f.mode&2)){if(f.flags|=64,l.flags|=16384,l.flags&=-2981,l.tag===1)if(l.alternate===null)l.tag=17;else{var g=Ct(-1,1);g.tag=2,xt(l,g)}l.lanes|=1;break e}u=void 0,l=t;var S=o.pingCache;if(S===null?(S=o.pingCache=new Np,u=new Set,S.set(a,u)):(u=S.get(a),u===void 0&&(u=new Set,S.set(a,u))),!u.has(l)){u.add(l);var y=bp.bind(null,o,a,l);a.then(y,y)}f.flags|=4096,f.lanes=t;break e}f=f.return}while(f!==null);u=Error((rn(l.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
40
+ `+o.stack}return{value:e,source:t,stack:s}}function wl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Rg=typeof WeakMap=="function"?WeakMap:Map;function df(e,t,n){n=$t(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){eo||(eo=!0,Tl=r),wl(e,t)},n}function pf(e,t,n){n=$t(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return wl(e,t),r(s)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){typeof r!="function"&&(Ze===null?Ze=new Set([this]):Ze.add(this),wl(e,t));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}var Fg=typeof WeakSet=="function"?WeakSet:Set;function gf(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){Ot(e,n)}else t.current=null}function Ig(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,r=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:Ve(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&Vi(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(j(163))}function zg(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 r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var s=e;r=s.next,s=s.tag,s&4&&s&1&&(Of(n,e),Wg(n,e)),e=r}while(e!==t)}return;case 1:e=n.stateNode,n.flags&4&&(t===null?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Ve(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&Oc(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}Oc(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&fc(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&&ju(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(j(163))}function mf(e,t){for(var n=e;;){if(n.tag===5){var r=n.stateNode;if(t)r=r.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var s=n.memoizedProps.style;s=s!=null&&s.hasOwnProperty("display")?s.display:null,r.style.display=cu("display",s)}}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 yf(e,t){if(Bt&&typeof Bt.onCommitFiberUnmount=="function")try{Bt.onCommitFiberUnmount(Ki,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 r=n,s=r.destroy;if(r=r.tag,s!==void 0)if(r&4)Of(t,n);else{r=t;try{s()}catch(o){Ot(r,o)}}n=n.next}while(n!==e)}break;case 1:if(gf(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){Ot(t,o)}break;case 5:gf(t);break;case 4:xf(e,t)}}function vf(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 wf(e){return e.tag===5||e.tag===3||e.tag===4}function Sf(e){e:{for(var t=e.return;t!==null;){if(wf(t))break e;t=t.return}throw Error(j(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:t=t.containerInfo,r=!0;break;case 4:t=t.containerInfo,r=!0;break;default:throw Error(j(161))}n.flags&16&&(Zn(t,""),n.flags&=-17);e:t:for(n=e;;){for(;n.sibling===null;){if(n.return===null||wf(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}}r?Sl(e,n,t):xl(e,n,t)}function Sl(e,t,n){var r=e.tag,s=r===5||r===6;if(s)e=s?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=As));else if(r!==4&&(e=e.child,e!==null))for(Sl(e,t,n),e=e.sibling;e!==null;)Sl(e,t,n),e=e.sibling}function xl(e,t,n){var r=e.tag,s=r===5||r===6;if(s)e=s?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(xl(e,t,n),e=e.sibling;e!==null;)xl(e,t,n),e=e.sibling}function xf(e,t){for(var n=t,r=!1,s,o;;){if(!r){r=n.return;e:for(;;){if(r===null)throw Error(j(160));switch(s=r.stateNode,r.tag){case 5:o=!1;break e;case 3:s=s.containerInfo,o=!0;break e;case 4:s=s.containerInfo,o=!0;break e}r=r.return}r=!0}if(n.tag===5||n.tag===6){e:for(var i=e,l=n,a=l;;)if(yf(i,a),a.child!==null&&a.tag!==4)a.child.return=a,a=a.child;else{if(a===l)break e;for(;a.sibling===null;){if(a.return===null||a.return===l)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}o?(i=s,l=n.stateNode,i.nodeType===8?i.parentNode.removeChild(l):i.removeChild(l)):s.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){s=n.stateNode.containerInfo,o=!0,n.child.return=n,n=n.child;continue}}else if(yf(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&&(r=!1)}n.sibling.return=n.return,n=n.sibling}}function Cl(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 r=n=n.next;do(r.tag&3)===3&&(e=r.destroy,r.destroy=void 0,e!==void 0&&e()),r=r.next;while(r!==n)}return;case 1:return;case 5:if(n=t.stateNode,n!=null){r=t.memoizedProps;var s=e!==null?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,o!==null){for(n[Os]=r,e==="input"&&r.type==="radio"&&r.name!=null&&ru(n,r),ui(e,s),t=ui(e,r),s=0;s<o.length;s+=2){var i=o[s],l=o[s+1];i==="style"?fu(n,l):i==="dangerouslySetInnerHTML"?uu(n,l):i==="children"?Zn(n,l):Ho(n,i,l,t)}switch(e){case"input":ni(n,r);break;case"textarea":iu(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,o=r.value,o!=null?an(n,!!r.multiple,o,!1):e!==!!r.multiple&&(r.defaultValue!=null?an(n,!!r.multiple,r.defaultValue,!0):an(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(j(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:n=t.stateNode,n.hydrate&&(n.hydrate=!1,ju(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(jl=me(),mf(t.child,!0)),Cf(t);return;case 19:Cf(t);return;case 17:return;case 23:case 24:mf(t,t.memoizedState!==null);return}throw Error(j(163))}function Cf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Fg),t.forEach(function(r){var s=Gg.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}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 Dg=Math.ceil,Xs=It.ReactCurrentDispatcher,$l=It.ReactCurrentOwner,I=0,Ce=null,oe=null,ve=0,qt=0,kl=St(0),fe=0,Zs=null,An=0,_r=0,Tn=0,Pl=0,El=null,jl=0,Al=1/0;function On(){Al=me()+500}var R=null,eo=!1,Tl=null,Ze=null,Et=!1,Rr=null,Fr=90,Ol=[],Nl=[],ut=null,Ir=0,Ll=null,to=-1,ct=0,no=0,zr=null,ro=!1;function Oe(){return I&48?me():to!==-1?to:to=me()}function jt(e){if(e=e.mode,!(e&2))return 1;if(!(e&4))return $n()===99?1:2;if(ct===0&&(ct=An),Eg.transition!==0){no!==0&&(no=El!==null?El.pendingLanes:0),e=ct;var t=4186112&~no;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=$n(),I&4&&e===98?e=ws(12,ct):(e=Ap(e),e=ws(e,ct)),e}function At(e,t,n){if(50<Ir)throw Ir=0,Ll=null,Error(j(185));if(e=so(e,t),e===null)return null;Ss(e,t,n),e===Ce&&(Tn|=t,fe===4&&Nn(e,ve));var r=$n();t===1?I&8&&!(I&48)?_l(e):(Me(e,n),I===0&&(On(),Qe())):(!(I&4)||r!==98&&r!==99||(ut===null?ut=new Set([e]):ut.add(e)),Me(e,n)),El=e}function so(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 Me(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,s=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var l=31-yt(i),a=1<<l,u=o[l];if(u===-1){if(!(a&r)||a&s){u=t,hn(a);var f=K;o[l]=10<=f?u+250:6<=f?u+5e3:-1}}else u<=t&&(e.expiredLanes|=a);i&=~a}if(r=ur(e,e===Ce?ve:0),t=K,r===0)n!==null&&(n!==Ji&&Gi(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==Ji&&Gi(n)}t===15?(n=_l.bind(null,e),it===null?(it=[n],Fs=qi(Rs,Ec)):it.push(n),n=Ji):t===14?n=Sr(99,_l.bind(null,e)):(n=Tp(t),n=Sr(n,$f.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function $f(e){if(to=-1,no=ct=0,I&48)throw Error(j(327));var t=e.callbackNode;if(Tt()&&e.callbackNode!==t)return null;var n=ur(e,e===Ce?ve:0);if(n===0)return null;var r=n,s=I;I|=16;var o=jf();(Ce!==e||ve!==r)&&(On(),Ln(e,r));do try{Bg();break}catch(l){Ef(e,l)}while(!0);if(Xi(),Xs.current=o,I=s,oe!==null?r=0:(Ce=null,ve=0,r=fe),An&Tn)Ln(e,0);else if(r!==0){if(r===2&&(I|=64,e.hydrate&&(e.hydrate=!1,Vi(e.containerInfo)),n=Ru(e),n!==0&&(r=Mr(e,n))),r===1)throw t=Zs,Ln(e,0),Nn(e,n),Me(e,me()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(j(345));case 2:Gt(e);break;case 3:if(Nn(e,n),(n&62914560)===n&&(r=jl+500-me(),10<r)){if(ur(e,0)!==0)break;if(s=e.suspendedLanes,(s&n)!==n){Oe(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=hc(Gt.bind(null,e),r);break}Gt(e);break;case 4:if(Nn(e,n),(n&4186112)===n)break;for(r=e.eventTimes,s=-1;0<n;){var i=31-yt(n);o=1<<i,i=r[i],i>s&&(s=i),n&=~o}if(n=s,n=me()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Dg(n/1960))-n,10<n){e.timeoutHandle=hc(Gt.bind(null,e),n);break}Gt(e);break;case 5:Gt(e);break;default:throw Error(j(329))}}return Me(e,me()),e.callbackNode===t?$f.bind(null,e):null}function Nn(e,t){for(t&=~Pl,t&=~Tn,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-yt(t),r=1<<n;e[n]=-1,t&=~r}}function _l(e){if(I&48)throw Error(j(327));if(Tt(),e===Ce&&e.expiredLanes&ve){var t=ve,n=Mr(e,t);An&Tn&&(t=ur(e,t),n=Mr(e,t))}else t=ur(e,0),n=Mr(e,t);if(e.tag!==0&&n===2&&(I|=64,e.hydrate&&(e.hydrate=!1,Vi(e.containerInfo)),t=Ru(e),t!==0&&(n=Mr(e,t))),n===1)throw n=Zs,Ln(e,0),Nn(e,t),Me(e,me()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Gt(e),Me(e,me()),null}function bg(){if(ut!==null){var e=ut;ut=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,Me(t,me())})}Qe()}function kf(e,t){var n=I;I|=1;try{return e(t)}finally{I=n,I===0&&(On(),Qe())}}function Pf(e,t){var n=I;I&=-2,I|=8;try{return e(t)}finally{I=n,I===0&&(On(),Qe())}}function oo(e,t){X(kl,qt),qt|=t,An|=t}function Rl(){qt=kl.current,G(kl)}function Ln(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Sg(n)),oe!==null)for(n=oe.return;n!==null;){var r=n;switch(r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ls();break;case 3:En(),G(ke),G(ge),il();break;case 5:rl(r);break;case 4:En();break;case 13:G(Z);break;case 19:G(Z);break;case 10:Zi(r);break;case 23:case 24:Rl()}n=n.return}Ce=e,oe=Nt(e.current,null),ve=qt=An=t,fe=0,Zs=null,Pl=Tn=_r=0}function Ef(e,t){do{var n=oe;try{if(Xi(),Er.current=Js,Ks){for(var r=ne.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Ks=!1}if(jr=0,ce=ye=ne=null,Ar=!1,$l.current=null,n===null||n.return===null){fe=1,Zs=t,oe=null;break}e:{var o=e,i=n.return,l=n,a=t;if(t=ve,l.flags|=2048,l.firstEffect=l.lastEffect=null,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a;if(!(l.mode&2)){var f=l.alternate;f?(l.updateQueue=f.updateQueue,l.memoizedState=f.memoizedState,l.lanes=f.lanes):(l.updateQueue=null,l.memoizedState=null)}var h=(Z.current&1)!==0,c=i;do{var m;if(m=c.tag===13){var v=c.memoizedState;if(v!==null)m=v.dehydrated!==null;else{var w=c.memoizedProps;m=w.fallback===void 0?!1:w.unstable_avoidThisFallback!==!0?!0:!h}}if(m){var d=c.updateQueue;if(d===null){var p=new Set;p.add(u),c.updateQueue=p}else d.add(u);if(!(c.mode&2)){if(c.flags|=64,l.flags|=16384,l.flags&=-2981,l.tag===1)if(l.alternate===null)l.tag=17;else{var g=$t(-1,1);g.tag=2,kt(l,g)}l.lanes|=1;break e}a=void 0,l=t;var S=o.pingCache;if(S===null?(S=o.pingCache=new Rg,a=new Set,S.set(u,a)):(a=S.get(u),a===void 0&&(a=new Set,S.set(u,a))),!a.has(l)){a.add(l);var y=qg.bind(null,o,u,l);u.then(y,y)}c.flags|=4096,c.lanes=t;break e}c=c.return}while(c!==null);a=Error((ln(l.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
41
41
 
42
- Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}ae!==5&&(ae=2),u=nl(u,l),f=i;do{switch(f.tag){case 3:o=u,f.flags|=4096,t&=-t,f.lanes|=t;var $=zc(f,o,t);Xa(f,$);break e;case 1:o=u;var x=f.type,P=f.stateNode;if(!(f.flags&64)&&(typeof x.getDerivedStateFromError=="function"||P!==null&&typeof P.componentDidCatch=="function"&&(Ge===null||!Ge.has(P)))){f.flags|=4096,t&=-t,f.lanes|=t;var N=Ic(f,o,t);Xa(f,N);break e}}f=f.return}while(f!==null)}Zc(n)}catch(O){t=O,se===n&&n!==null&&(se=n=n.return);continue}break}while(!0)}function Yc(){var e=bs.current;return bs.current=Us,e===null?Us:e}function Or(e,t){var n=z;z|=16;var r=Yc();Se===e&&me===t||Nn(e,t);do try{zp();break}catch(s){Jc(e,s)}while(!0);if(zi(),z=n,bs.current=r,se!==null)throw Error(j(261));return Se=null,me=0,ae}function zp(){for(;se!==null;)Gc(se)}function Ip(){for(;se!==null&&!vp();)Gc(se)}function Gc(e){var t=tf(e.alternate,e,Kt);e.memoizedProps=e.pendingProps,t===null?Zc(e):se=t,ll.current=null}function Zc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&2048){if(n=Tp(t),n!==null){n.flags&=2047,se=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(n=jp(n,t,Kt),n!==null){se=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||Kt&1073741824||!(n.mode&4)){for(var r=0,s=n.child;s!==null;)r|=s.lanes|s.childLanes,s=s.sibling;n.childLanes=r}e!==null&&!(e.flags&2048)&&(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))}if(t=t.sibling,t!==null){se=t;return}se=t=e}while(t!==null);ae===0&&(ae=5)}function Wt(e){var t=Sn();return Bt(99,Mp.bind(null,e,t)),null}function Mp(e,t){do jt();while(jr!==null);if(z&48)throw Error(j(327));var n=e.finishedWork;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(j(177));e.callbackNode=null;var r=n.lanes|n.childLanes,s=r,o=e.pendingLanes&~s;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=s,e.mutableReadLanes&=s,e.entangledLanes&=s,s=e.entanglements;for(var i=e.eventTimes,l=e.expirationTimes;0<o;){var u=31-gt(o),a=1<<u;s[u]=0,i[u]=-1,l[u]=-1,o&=~a}if(lt!==null&&!(r&24)&&lt.has(e)&&lt.delete(e),e===Se&&(se=Se=null,me=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,r!==null){if(s=z,z|=32,ll.current=null,ki=fs,i=ka(),Si(i)){if("selectionStart"in i)l={start:i.selectionStart,end:i.selectionEnd};else e:if(l=(l=i.ownerDocument)&&l.defaultView||window,(a=l.getSelection&&l.getSelection())&&a.rangeCount!==0){l=a.anchorNode,o=a.anchorOffset,u=a.focusNode,a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var c=0,h=-1,f=-1,m=0,v=0,w=i,d=null;t:for(;;){for(var p;w!==l||o!==0&&w.nodeType!==3||(h=c+o),w!==u||a!==0&&w.nodeType!==3||(f=c+a),w.nodeType===3&&(c+=w.nodeValue.length),(p=w.firstChild)!==null;)d=w,w=p;for(;;){if(w===i)break t;if(d===l&&++m===o&&(h=c),d===u&&++v===a&&(f=c),(p=w.nextSibling)!==null)break;w=d,d=w.parentNode}w=p}l=h===-1||f===-1?null:{start:h,end:f}}else l=null;l=l||{start:0,end:0}}else l=null;Ei={focusedElem:i,selectionRange:l},fs=!1,Ar=null,qs=!1,R=r;do try{Dp()}catch(O){if(R===null)throw Error(j(330));Tt(R,O),R=R.nextEffect}while(R!==null);Ar=null,R=r;do try{for(i=e;R!==null;){var g=R.flags;if(g&16&&Wn(R.stateNode,""),g&128){var S=R.alternate;if(S!==null){var y=S.ref;y!==null&&(typeof y=="function"?y(null):y.current=null)}}switch(g&1038){case 2:Vc(R),R.flags&=-3;break;case 6:Vc(R),R.flags&=-3,il(R.alternate,R);break;case 1024:R.flags&=-1025;break;case 1028:R.flags&=-1025,il(R.alternate,R);break;case 4:il(R.alternate,R);break;case 8:l=R,Hc(i,l);var $=l.alternate;Bc(l),$!==null&&Bc($)}R=R.nextEffect}}catch(O){if(R===null)throw Error(j(330));Tt(R,O),R=R.nextEffect}while(R!==null);if(y=Ei,S=ka(),g=y.focusedElem,i=y.selectionRange,S!==g&&g&&g.ownerDocument&&$a(g.ownerDocument.documentElement,g)){for(i!==null&&Si(g)&&(S=i.start,y=i.end,y===void 0&&(y=S),"selectionStart"in g?(g.selectionStart=S,g.selectionEnd=Math.min(y,g.value.length)):(y=(S=g.ownerDocument||document)&&S.defaultView||window,y.getSelection&&(y=y.getSelection(),l=g.textContent.length,$=Math.min(i.start,l),i=i.end===void 0?$:Math.min(i.end,l),!y.extend&&$>i&&(l=i,i=$,$=l),l=xa(g,$),o=xa(g,i),l&&o&&(y.rangeCount!==1||y.anchorNode!==l.node||y.anchorOffset!==l.offset||y.focusNode!==o.node||y.focusOffset!==o.offset)&&(S=S.createRange(),S.setStart(l.node,l.offset),y.removeAllRanges(),$>i?(y.addRange(S),y.extend(o.node,o.offset)):(S.setEnd(o.node,o.offset),y.addRange(S)))))),S=[],y=g;y=y.parentNode;)y.nodeType===1&&S.push({element:y,left:y.scrollLeft,top:y.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<S.length;g++)y=S[g],y.element.scrollLeft=y.left,y.element.scrollTop=y.top}fs=!!ki,Ei=ki=null,e.current=n,R=r;do try{for(g=e;R!==null;){var x=R.flags;if(x&36&&Lp(g,R.alternate,R),x&128){S=void 0;var P=R.ref;if(P!==null){var N=R.stateNode;switch(R.tag){case 5:S=N;break;default:S=N}typeof P=="function"?P(S):P.current=S}}R=R.nextEffect}}catch(O){if(R===null)throw Error(j(330));Tt(R,O),R=R.nextEffect}while(R!==null);R=null,Sp(),z=s}else e.current=n;if(kt)kt=!1,jr=e,Tr=t;else for(R=r;R!==null;)t=R.nextEffect,R.nextEffect=null,R.flags&8&&(x=R,x.sibling=null,x.stateNode=null),R=t;if(r=e.pendingLanes,r===0&&(Ge=null),r===1?e===ml?Nr++:(Nr=0,ml=e):Nr=0,n=n.stateNode,Ut&&typeof Ut.onCommitFiberRoot=="function")try{Ut.onCommitFiberRoot(Ai,n,void 0,(n.current.flags&64)===64)}catch{}if(ze(e,pe()),Hs)throw Hs=!1,e=dl,dl=null,e;return z&8||qe(),null}function Dp(){for(;R!==null;){var e=R.alternate;qs||Ar===null||(R.flags&8?Hu(R,Ar)&&(qs=!0):R.tag===13&&_p(e,R)&&Hu(R,Ar)&&(qs=!0));var t=R.flags;t&256&&Op(e,R),!(t&512)||kt||(kt=!0,dr(97,function(){return jt(),null})),R=R.nextEffect}}function jt(){if(Tr!==90){var e=97<Tr?97:Tr;return Tr=90,Bt(e,Bp)}return!1}function Up(e,t){pl.push(t,e),kt||(kt=!0,dr(97,function(){return jt(),null}))}function Xc(e,t){gl.push(t,e),kt||(kt=!0,dr(97,function(){return jt(),null}))}function Bp(){if(jr===null)return!1;var e=jr;if(jr=null,z&48)throw Error(j(331));var t=z;z|=32;var n=gl;gl=[];for(var r=0;r<n.length;r+=2){var s=n[r],o=n[r+1],i=s.destroy;if(s.destroy=void 0,typeof i=="function")try{i()}catch(u){if(o===null)throw Error(j(330));Tt(o,u)}}for(n=pl,pl=[],r=0;r<n.length;r+=2){s=n[r],o=n[r+1];try{var l=s.create;s.destroy=l()}catch(u){if(o===null)throw Error(j(330));Tt(o,u)}}for(l=e.current.firstEffect;l!==null;)e=l.nextEffect,l.nextEffect=null,l.flags&8&&(l.sibling=null,l.stateNode=null),l=e;return z=t,qe(),!0}function ef(e,t,n){t=nl(n,t),t=zc(e,t,1),xt(e,t),t=Te(),e=Qs(e,1),e!==null&&(cs(e,1,t),ze(e,t))}function Tt(e,t){if(e.tag===3)ef(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){ef(n,e,t);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ge===null||!Ge.has(r))){e=nl(t,e);var s=Ic(n,e,1);if(xt(n,s),s=Te(),n=Qs(n,1),n!==null)cs(n,1,s),ze(n,s);else if(typeof r.componentDidCatch=="function"&&(Ge===null||!Ge.has(r)))try{r.componentDidCatch(t,e)}catch{}break}}n=n.return}}function bp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Te(),e.pingedLanes|=e.suspendedLanes&n,Se===e&&(me&n)===n&&(ae===4||ae===3&&(me&62914560)===me&&500>pe()-fl?Nn(e,0):al|=n),ze(e,t)}function Vp(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(ut===0&&(ut=En),t=cn(62914560&~ut),t===0&&(t=4194304)):t=Sn()===99?1:2:t=1),n=Te(),e=Qs(e,t),e!==null&&(cs(e,t,n),ze(e,n))}var tf;tf=function(e,t,n){var r=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||xe.current)be=!0;else if(n&r)be=!!(e.flags&16384);else{switch(be=!1,t.tag){case 3:Pc(t),Vi();break;case 5:lc(t);break;case 1:$e(t.type)&&$s(t);break;case 4:Ui(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var s=t.type._context;G(Ps,s._currentValue),s._currentValue=r;break;case 13:if(t.memoizedState!==null)return n&t.child.childLanes?jc(e,t,n):(G(Z,Z.current&1),t=it(e,t,n),t!==null?t.sibling:null);G(Z,Z.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&64){if(r)return Lc(e,t,n);t.flags|=64}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),G(Z,Z.current),r)break;return null;case 23:case 24:return t.lanes=0,Gi(e,t,n)}return it(e,t,n)}else be=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,s=wn(t,de.current),xn(t,n),s=Wi(null,t,r,e,s,n),t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,$e(r)){var o=!0;$s(t)}else o=!1;t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Mi(t);var i=r.getDerivedStateFromProps;typeof i=="function"&&Ns(t,r,i,e),s.updater=As,t.stateNode=s,s._reactInternals=t,Di(t,r,e,n),t=Xi(null,t,r,!0,o,n)}else t.tag=0,Ee(null,t,s,n),t=t.child;return t;case 16:s=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=s._init,s=o(s._payload),t.type=s,o=t.tag=Kp(s),e=Be(s,e),o){case 0:t=Zi(null,t,s,e,n);break e;case 1:t=Ec(null,t,s,e,n);break e;case 11:t=Cc(null,t,s,e,n);break e;case 14:t=xc(null,t,s,Be(s.type,e),r,n);break e}throw Error(j(306,s,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Be(r,s),Zi(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Be(r,s),Ec(e,t,r,s,n);case 3:if(Pc(t),r=t.updateQueue,e===null||r===null)throw Error(j(282));if(r=t.pendingProps,s=t.memoizedState,s=s!==null?s.element:null,Za(e,t),pr(t,r,null,n),r=t.memoizedState.element,r===s)Vi(),t=it(e,t,n);else{if(s=t.stateNode,(o=s.hydrate)&&($t=gn(t.stateNode.containerInfo.firstChild),ot=t,o=Je=!0),o){if(e=s.mutableSourceEagerHydrationData,e!=null)for(s=0;s<e.length;s+=2)o=e[s],o._workInProgressVersionPrimary=e[s+1],kn.push(o);for(n=ic(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else Ee(e,t,r,n),Vi();t=t.child}return t;case 5:return lc(t),e===null&&bi(t),r=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,i=s.children,Pi(r,s)?i=null:o!==null&&Pi(r,o)&&(t.flags|=16),kc(e,t),Ee(e,t,i,n),t.child;case 6:return e===null&&bi(t),null;case 13:return jc(e,t,n);case 4:return Ui(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=_s(t,null,r,n):Ee(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Be(r,s),Cc(e,t,r,s,n);case 7:return Ee(e,t,t.pendingProps,n),t.child;case 8:return Ee(e,t,t.pendingProps.children,n),t.child;case 12:return Ee(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value;var l=t.type._context;if(G(Ps,l._currentValue),l._currentValue=o,i!==null)if(l=i.value,o=_e(l,o)?0:(typeof r._calculateChangedBits=="function"?r._calculateChangedBits(l,o):1073741823)|0,o===0){if(i.children===s.children&&!xe.current){t=it(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var u=l.dependencies;if(u!==null){i=l.child;for(var a=u.firstContext;a!==null;){if(a.context===r&&a.observedBits&o){l.tag===1&&(a=Ct(-1,n&-n),a.tag=2,xt(l,a)),l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),Ga(l.return,n),u.lanes|=n;break}a=a.next}}else i=l.tag===10&&l.type===t.type?null:l.child;if(i!==null)i.return=l;else for(i=l;i!==null;){if(i===t){i=null;break}if(l=i.sibling,l!==null){l.return=i.return,i=l;break}i=i.return}l=i}Ee(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,o=t.pendingProps,r=o.children,xn(t,n),s=Re(s,o.unstable_observedBits),r=r(s),t.flags|=1,Ee(e,t,r,n),t.child;case 14:return s=t.type,o=Be(s,t.pendingProps),o=Be(s.type,o),xc(e,t,s,o,r,n);case 15:return $c(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Be(r,s),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,$e(r)?(e=!0,$s(t)):e=!1,xn(t,n),rc(t,r,s),Di(t,r,s,n),Xi(null,t,r,!0,e,n);case 19:return Lc(e,t,n);case 23:return Gi(e,t,n);case 24:return Gi(e,t,n)}throw Error(j(156,t.tag))};function Hp(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Ie(e,t,n,r){return new Hp(e,t,n,r)}function wl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Kp(e){if(typeof e=="function")return wl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Gr)return 11;if(e===Xr)return 14}return 2}function Nt(e,t){var n=e.alternate;return n===null?(n=Ie(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 Ys(e,t,n,r,s,o){var i=2;if(r=e,typeof e=="function")wl(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case ct:return An(n.children,s,o,t);case xu:i=8,s|=16;break;case No:i=8,s|=1;break;case bn:return e=Ie(12,n,t,s|8),e.elementType=bn,e.type=bn,e.lanes=o,e;case Vn:return e=Ie(13,n,t,s),e.type=Vn,e.elementType=Vn,e.lanes=o,e;case Zr:return e=Ie(19,n,t,s),e.elementType=Zr,e.lanes=o,e;case Fo:return Sl(n,s,o,t);case zo:return e=Ie(24,n,t,s),e.elementType=zo,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ao:i=10;break e;case Oo:i=9;break e;case Gr:i=11;break e;case Xr:i=14;break e;case Lo:i=16,r=null;break e;case _o:i=22;break e}throw Error(j(130,e==null?e:typeof e,""))}return t=Ie(i,n,t,s),t.elementType=e,t.type=r,t.lanes=o,t}function An(e,t,n,r){return e=Ie(7,e,r,t),e.lanes=n,e}function Sl(e,t,n,r){return e=Ie(23,e,r,t),e.elementType=Fo,e.lanes=n,e}function Cl(e,t,n){return e=Ie(6,e,null,t),e.lanes=n,e}function xl(e,t,n){return t=Ie(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Wp(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=ui(0),this.expirationTimes=ui(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ui(0),this.mutableSourceEagerHydrationData=null}function qp(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ft,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Gs(e,t,n,r){var s=t.current,o=Te(),i=Et(s);e:if(n){n=n._reactInternals;t:{if(It(n)!==n||n.tag!==1)throw Error(j(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if($e(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(l!==null);throw Error(j(171))}if(n.tag===1){var u=n.type;if($e(u)){n=Ba(n,u,l);break e}}n=l}else n=wt;return t.context===null?t.context=n:t.pendingContext=n,t=Ct(o,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),xt(s,t),Pt(s,i,o),i}function $l(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function nf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function kl(e,t){nf(e,t),(e=e.alternate)&&nf(e,t)}function Qp(){return null}function El(e,t,n){var r=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new Wp(e,t,n!=null&&n.hydrate===!0),t=Ie(3,null,null,t===2?7:t===1?3:0),n.current=t,t.stateNode=n,Mi(t),e[mn]=n.current,Aa(e.nodeType===8?e.parentNode:e),r)for(e=0;e<r.length;e++){t=r[e];var s=t._getVersion;s=s(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,s]:n.mutableSourceEagerHydrationData.push(t,s)}this._internalRoot=n}El.prototype.render=function(e){Gs(e,this._internalRoot,null,null)},El.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Gs(null,e,null,function(){t[mn]=null})};function Lr(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Jp(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 El(e,0,t?{hydrate:!0}:void 0)}function Zs(e,t,n,r,s){var o=n._reactRootContainer;if(o){var i=o._internalRoot;if(typeof s=="function"){var l=s;s=function(){var a=$l(i);l.call(a)}}Gs(t,i,e,s)}else{if(o=n._reactRootContainer=Jp(n,r),i=o._internalRoot,typeof s=="function"){var u=s;s=function(){var a=$l(i);u.call(a)}}Qc(function(){Gs(t,i,e,s)})}return $l(i)}Ku=function(e){if(e.tag===13){var t=Te();Pt(e,4,t),kl(e,4)}},ni=function(e){if(e.tag===13){var t=Te();Pt(e,67108864,t),kl(e,67108864)}},Wu=function(e){if(e.tag===13){var t=Te(),n=Et(e);Pt(e,n,t),kl(e,n)}},qu=function(e,t){return t()},Jo=function(e,t,n){switch(t){case"input":if(Uo(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 r=n[t];if(r!==e&&r.form===e.form){var s=Cs(r);if(!s)throw Error(j(90));Eu(r),Uo(r,s)}}}break;case"textarea":Au(e,n);break;case"select":t=n.value,t!=null&&sn(e,!!n.multiple,t,!1)}},Yo=qc,Du=function(e,t,n,r,s){var o=z;z|=4;try{return Bt(98,e.bind(null,t,n,r,s))}finally{z=o,z===0&&(jn(),qe())}},Go=function(){!(z&49)&&(Fp(),jt())},Uu=function(e,t){var n=z;z|=2;try{return e(t)}finally{z=n,z===0&&(jn(),qe())}};function rf(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Lr(t))throw Error(j(200));return qp(e,t,null,n)}var Yp={Events:[hr,yn,Cs,Iu,Mu,jt,{current:!1}]},_r={findFiberByHostInstance:Mt,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},Gp={bundleType:_r.bundleType,version:_r.version,rendererPackageName:_r.rendererPackageName,rendererConfig:_r.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Rt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Vu(e),e===null?null:e.stateNode},findFiberByHostInstance:_r.findFiberByHostInstance||Qp,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Xs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xs.isDisabled&&Xs.supportsFiber)try{Ai=Xs.inject(Gp),Ut=Xs}catch{}}Le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Yp,Le.createPortal=rf,Le.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(j(188)):Error(j(268,Object.keys(e)));return e=Vu(t),e=e===null?null:e.stateNode,e},Le.flushSync=function(e,t){var n=z;if(n&48)return e(t);z|=1;try{if(e)return Bt(99,e.bind(null,t))}finally{z=n,qe()}},Le.hydrate=function(e,t,n){if(!Lr(t))throw Error(j(200));return Zs(null,e,t,!0,n)},Le.render=function(e,t,n){if(!Lr(t))throw Error(j(200));return Zs(null,e,t,!1,n)},Le.unmountComponentAtNode=function(e){if(!Lr(e))throw Error(j(40));return e._reactRootContainer?(Qc(function(){Zs(null,null,e,!1,function(){e._reactRootContainer=null,e[mn]=null})}),!0):!1},Le.unstable_batchedUpdates=qc,Le.unstable_createPortal=function(e,t){return rf(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},Le.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Lr(n))throw Error(j(200));if(e==null||e._reactInternals===void 0)throw Error(j(38));return Zs(e,t,n,!1,r)},Le.version="17.0.2";function sf(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sf)}catch(e){console.error(e)}}sf(),gu.exports=Le;var Pl=gu.exports;const Zp=vo(Pl),ye=at.createContext({posts:[],authors:[],tags:[],action:"",lastPage:"",page:"",pageData:{},dispatch:(e,t)=>{},searchIndex:null,indexComplete:!1,searchValue:"",t:()=>{},dir:"ltr"});class Xp extends D.Component{constructor(){super(...arguments);mo(this,"handleLoad",()=>{this.setupFrameBaseStyle()})}componentDidMount(){this.node.addEventListener("load",this.handleLoad)}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:n,head:r,title:s="",style:o={},...i}=this.props;return T.jsxs("iframe",{srcDoc:"<!DOCTYPE html>",...i,ref:l=>this.node=l,title:s,style:o,frameBorder:"0",children:[this.iframeHead&&Pl.createPortal(r,this.iframeHead),this.iframeRoot&&Pl.createPortal(n,this.iframeRoot)]})}}const eg=e=>D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:16,width:16,viewBox:"0 0 16 16",...e},D.createElement("title",null,"circle anim"),D.createElement("g",{fill:"#40413F",className:"nc-icon-wrapper"},D.createElement("g",{className:"nc-loop-circle-16-icon-f"},D.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"}),D.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"})),D.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)}}"))),tg=e=>D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:16,width:16,...e},D.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"})),ng=e=>D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:16,width:16,...e},D.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"})),of=10,rg=10,sg=()=>({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 lf extends at.Component{componentDidMount(){this.sendContainerHeightChangeEvent()}sendContainerHeightChangeEvent(){}componentDidUpdate(){this.sendContainerHeightChangeEvent()}handlePopupClose(t){t.preventDefault(),t.target===t.currentTarget&&this.context.dispatch("update",{showPopup:!1})}render(){return T.jsx(xg,{})}}mo(lf,"contextType",ye);function og(){const{searchValue:e,dispatch:t,inputRef:n,t:r}=D.useContext(ye),s=D.useRef(null);D.useEffect(()=>{setTimeout(()=>{var u;(u=n==null?void 0:n.current)==null||u.focus()},150);let i=u=>{u.key==="Escape"&&t("update",{showPopup:!1})};const l=s==null?void 0:s.current;return l==null||l.ownerDocument.removeEventListener("keyup",i),l==null||l.ownerDocument.addEventListener("keyup",i),()=>{l==null||l.ownerDocument.removeEventListener("keyup",i)}},[t,n]);let o="z-10 relative flex items-center py-5 px-4 sm:px-7 bg-white rounded-t-lg shadow";return e||(o="z-10 relative flex items-center py-5 px-4 sm:px-7 bg-white rounded-lg"),T.jsxs("div",{className:o,ref:s,children:[T.jsx("div",{className:"flex items-center justify-center w-4 h-4 me-3",children:T.jsx(ig,{})}),T.jsx("input",{ref:n,value:e||"",onChange:i=>{t("update",{searchValue:i.target.value})},onKeyDown:i=>{(i.key==="ArrowUp"||i.key==="ArrowDown")&&i.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:r("Search posts, tags and authors")}),T.jsx(lg,{}),T.jsx(ug,{})]})}function ig(){const{searchValue:e="",dispatch:t}=D.useContext(ye);return e?T.jsx("button",{alt:"Clear",className:"-mb-[1px]",onClick:()=>{t("update",{searchValue:""})},children:T.jsx(tg,{className:"text-neutral-900 hover:text-neutral-500 h-[1.1rem] w-[1.1rem]"})}):T.jsx(ng,{className:"text-neutral-900",alt:"Search"})}function lg(){const{indexComplete:e,searchValue:t}=D.useContext(ye);return!e&&t?T.jsx(eg,{className:"shrink-0"}):null}function ug(){const{dispatch:e,t}=D.useContext(ye);return T.jsx("button",{className:"ms-3 text-sm text-neutral-500 sm:hidden",alt:"Cancel",onClick:()=>{e("update",{showPopup:!1})},children:t("Cancel")})}function ag({tag:e,selectedResult:t,setSelectedResult:n}){const{name:r,url:s,id:o}=e;let i="flex items-center py-3 -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer";return o===t&&(i+=" bg-neutral-100"),T.jsxs("div",{className:i,onClick:()=>{s&&(window.location.href=s)},onMouseEnter:()=>{n(o)},children:[T.jsx("p",{className:"me-2 text-sm font-bold text-neutral-400",children:"#"}),T.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-900 truncate",children:r})]})}function cg({tags:e,selectedResult:t,setSelectedResult:n}){const{t:r}=D.useContext(ye);if(!(e!=null&&e.length))return null;const s=e.map(o=>T.jsx(ag,{tag:o,selectedResult:t,setSelectedResult:n},o.name));return T.jsxs("div",{className:"border-t border-gray-200 py-3 px-4 sm:px-7",children:[T.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:r("Tags")}),s]})}function fg({post:e,selectedResult:t,setSelectedResult:n}){const{searchValue:r}=D.useContext(ye),{title:s,excerpt:o,url:i,id:l}=e;let u="py-3 -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer";return l===t&&(u+=" bg-neutral-100"),T.jsxs("div",{className:u,onClick:()=>{i&&(window.location.href=i)},onMouseEnter:()=>{n(l)},children:[T.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-800",children:T.jsx(af,{text:s,highlight:r,isExcerpt:!1})}),T.jsx("p",{className:"text-neutral-400 leading-normal text-sm mt-0 mb-0 truncate",children:T.jsx(af,{text:o,highlight:r,isExcerpt:!0})})]})}function hg({text:e,highlight:t}){let n="";t==null||t.split(" ").forEach((i,l)=>{const u=String(i).replace(/\W/g,"\\&");l>0?n+="|^"+u+"|\\s"+u:n="^"+u+"|\\s"+u});const r=new RegExp(`${n}`,"ig");let s=e==null?void 0:e.matchAll(r);const o=[];for(const i of s)o.push({startIdx:i==null?void 0:i.index,endIdx:((i==null?void 0:i.index)||0)+((i==null?void 0:i[0].length)||0)});return o}function uf({text:e,highlight:t}){const n=hg({text:e,highlight:t}),r=[];let s=0;return n.forEach(o=>{s===o.startIdx?(r.push({text:e==null?void 0:e.slice(o.startIdx,o.endIdx),type:"highlight"}),s=o.endIdx):(r.push({text:e==null?void 0:e.slice(s,o.startIdx),type:"normal"}),r.push({text:e==null?void 0:e.slice(o.startIdx,o.endIdx),type:"highlight"}),s=o.endIdx)}),s<(e==null?void 0:e.length)&&r.push({text:e==null?void 0:e.slice(s,e.length),type:"normal"}),{parts:r,highlightIndexes:n}}function af({text:e="",highlight:t="",isExcerpt:n}){var i;e=e||"",t=t||"";let{parts:r,highlightIndexes:s}=uf({text:e,highlight:t});if(n&&(s!=null&&s[0])){const l=(i=s==null?void 0:s[0])==null?void 0:i.startIdx;if(l>50){e="..."+(e==null?void 0:e.slice(l-20));const{parts:u}=uf({text:e,highlight:t});r=u}}const o=r.map((l,u)=>(l==null?void 0:l.type)==="highlight"?T.jsx(at.Fragment,{children:T.jsx(dg,{word:l.text,isExcerpt:n})},u):T.jsx(at.Fragment,{children:l.text},u));return T.jsx(T.Fragment,{children:o})}function dg({word:e,isExcerpt:t}){return t?T.jsx(T.Fragment,{children:T.jsx("span",{className:"font-bold",children:e})}):T.jsx(T.Fragment,{children:T.jsx("span",{className:"font-bold text-neutral-900",children:e})})}function pg({posts:e,maxPosts:t,setMaxPosts:n}){const{t:r}=D.useContext(ye);return!(e!=null&&e.length)||t>=(e==null?void 0:e.length)?null:T.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 s=t+rg;n(s)},children:r("Show more results")})}function gg({posts:e,selectedResult:t,setSelectedResult:n}){const{t:r}=D.useContext(ye),[s,o]=D.useState(of),[i,l]=D.useState([]);if(D.useEffect(()=>{o(of)},[e]),D.useEffect(()=>{l(e==null?void 0:e.slice(0,s+1))},[s,e]),!(e!=null&&e.length))return null;function u(){return i.map(a=>T.jsx(fg,{post:a,selectedResult:t,setSelectedResult:n},a.title))}return T.jsxs("div",{className:"border-t border-neutral-200 py-3 px-4 sm:px-7",children:[T.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:r("Posts")}),T.jsx(u,{}),T.jsx(pg,{setMaxPosts:o,maxPosts:s,posts:e})]})}function mg({author:e,selectedResult:t,setSelectedResult:n}){const{name:r,profile_image:s,url:o,id:i}=e;let l="py-[1rem] -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer flex items-center";return i===t&&(l+=" bg-neutral-100"),T.jsxs("div",{className:l,onClick:()=>{o&&(window.location.href=o)},onMouseEnter:()=>{n(i)},children:[T.jsx(yg,{name:r,avatar:s}),T.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-900 truncate",children:r})]})}function yg({name:e,avatar:t}){const n=t==null?void 0:t.length,r=e.charAt(0);return n?T.jsx("img",{className:"rounded-full bg-neutral-300 w-7 h-7 me-2 object-cover",src:t,alt:e}):T.jsx("div",{className:"rounded-full bg-neutral-200 w-7 h-7 me-2 flex items-center justify-center font-bold",children:T.jsx("span",{className:"text-neutral-400",children:r})})}function vg({authors:e,selectedResult:t,setSelectedResult:n}){const{t:r}=D.useContext(ye);if(!(e!=null&&e.length))return null;const s=e.map(o=>T.jsx(mg,{author:o,selectedResult:t,setSelectedResult:n},o.name));return T.jsxs("div",{className:"border-t border-neutral-200 py-3 px-4 sm:px-7",children:[T.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:r("Authors")}),s]})}function wg(){const{searchValue:e="",searchIndex:t,indexComplete:n}=D.useContext(ye);let r=null,s=[],o=[],i=[];return n&&e&&(r=t==null?void 0:t.search(e),o=(r==null?void 0:r.posts)||[],i=(r==null?void 0:r.authors)||[],s=(r==null?void 0:r.tags)||[]),i=i.filter(u=>{const a=/\/404\/$/;return!(u!=null&&u.url&&a.test(u==null?void 0:u.url))}),s=s.filter(u=>{const a=/\/404\/$/;return!(u!=null&&u.url&&a.test(u==null?void 0:u.url))}),(o==null?void 0:o.length)||(i==null?void 0:i.length)||(s==null?void 0:s.length)?T.jsx(Sg,{posts:o,authors:i,tags:s}):e?T.jsx(Cg,{}):null}function Sg({posts:e,authors:t,tags:n}){var a;const{searchValue:r}=D.useContext(ye),s=D.useMemo(()=>[...t,...n,...e],[t,n,e]),o=((a=s==null?void 0:s[0])==null?void 0:a.id)||null,[i,l]=D.useState(o),u=D.useRef(null);return D.useEffect(()=>{var c;l(((c=s==null?void 0:s[0])==null?void 0:c.id)||null)},[s]),D.useEffect(()=>{let c=f=>{const m=s.findIndex(d=>d.id===i);let v=s[m+1],w=s[m-1];if(f.key==="ArrowUp"&&w?l(w==null?void 0:w.id):f.key==="ArrowDown"&&v&&l(v==null?void 0:v.id),f.key==="Enter"){const d=s.find(p=>p.id===i);window.location.href=d==null?void 0:d.url}};const h=u==null?void 0:u.current;return h==null||h.ownerDocument.removeEventListener("keyup",c),h==null||h.ownerDocument.addEventListener("keyup",c),()=>{var f;(f=h==null?void 0:h.ownerDocument)==null||f.removeEventListener("keyup",c)}},[s,i]),r?T.jsxs("div",{className:"overflow-y-auto max-h-[calc(100vh-172px)] sm:max-h-[70vh] -mt-[1px]",ref:u,children:[T.jsx(vg,{authors:t,selectedResult:i,setSelectedResult:l}),T.jsx(cg,{tags:n,selectedResult:i,setSelectedResult:l}),T.jsx(gg,{posts:e,selectedResult:i,setSelectedResult:l})]}):null}function Cg(){const{t:e}=D.useContext(ye);return T.jsx("div",{className:"py-4 px-7",children:T.jsx("p",{className:"text-[1.65rem] text-neutral-400 leading-normal",children:e("No matches found")})})}function xg(){const{dispatch:e}=D.useContext(ye);return T.jsx(T.Fragment,{children:T.jsx("div",{className:"h-screen w-screen pt-20 antialiased z-50 relative ghost-display",onClick:t=>{t.preventDefault(),t.target===t.currentTarget&&e("update",{showPopup:!1})},children:T.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:[T.jsx(og,{}),T.jsx(wg,{})]})})})}class cf extends at.Component{constructor(t){super(t),this.state={height:null}}onHeightChange(t){this.setState({height:t})}handlePopupClose(t){t.preventDefault(),t.target===t.currentTarget&&this.context.dispatch("update",{showPopup:!1})}renderFrameStyles(){const t=`
42
+ Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}fe!==5&&(fe=2),a=vl(a,l),c=i;do{switch(c.tag){case 3:o=a,c.flags|=4096,t&=-t,c.lanes|=t;var $=df(c,o,t);Tc(c,$);break e;case 1:o=a;var C=c.type,P=c.stateNode;if(!(c.flags&64)&&(typeof C.getDerivedStateFromError=="function"||P!==null&&typeof P.componentDidCatch=="function"&&(Ze===null||!Ze.has(P)))){c.flags|=4096,t&=-t,c.lanes|=t;var T=pf(c,o,t);Tc(c,T);break e}}c=c.return}while(c!==null)}Tf(n)}catch(N){t=N,oe===n&&n!==null&&(oe=n=n.return);continue}break}while(!0)}function jf(){var e=Xs.current;return Xs.current=Js,e===null?Js:e}function Mr(e,t){var n=I;I|=16;var r=jf();Ce===e&&ve===t||Ln(e,t);do try{Ug();break}catch(s){Ef(e,s)}while(!0);if(Xi(),I=n,Xs.current=r,oe!==null)throw Error(j(261));return Ce=null,ve=0,fe}function Ug(){for(;oe!==null;)Af(oe)}function Bg(){for(;oe!==null&&!$g();)Af(oe)}function Af(e){var t=Lf(e.alternate,e,qt);e.memoizedProps=e.pendingProps,t===null?Tf(e):oe=t,$l.current=null}function Tf(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&2048){if(n=_g(t),n!==null){n.flags&=2047,oe=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(n=Lg(n,t,qt),n!==null){oe=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||qt&1073741824||!(n.mode&4)){for(var r=0,s=n.child;s!==null;)r|=s.lanes|s.childLanes,s=s.sibling;n.childLanes=r}e!==null&&!(e.flags&2048)&&(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))}if(t=t.sibling,t!==null){oe=t;return}oe=t=e}while(t!==null);fe===0&&(fe=5)}function Gt(e){var t=$n();return Vt(99,Vg.bind(null,e,t)),null}function Vg(e,t){do Tt();while(Rr!==null);if(I&48)throw Error(j(327));var n=e.finishedWork;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(j(177));e.callbackNode=null;var r=n.lanes|n.childLanes,s=r,o=e.pendingLanes&~s;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=s,e.mutableReadLanes&=s,e.entangledLanes&=s,s=e.entanglements;for(var i=e.eventTimes,l=e.expirationTimes;0<o;){var a=31-yt(o),u=1<<a;s[a]=0,i[a]=-1,l[a]=-1,o&=~u}if(ut!==null&&!(r&24)&&ut.has(e)&&ut.delete(e),e===Ce&&(oe=Ce=null,ve=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,r!==null){if(s=I,I|=32,$l.current=null,bi=xs,i=ec(),Ii(i)){if("selectionStart"in i)l={start:i.selectionStart,end:i.selectionEnd};else e:if(l=(l=i.ownerDocument)&&l.defaultView||window,(u=l.getSelection&&l.getSelection())&&u.rangeCount!==0){l=u.anchorNode,o=u.anchorOffset,a=u.focusNode,u=u.focusOffset;try{l.nodeType,a.nodeType}catch{l=null;break e}var f=0,h=-1,c=-1,m=0,v=0,w=i,d=null;t:for(;;){for(var p;w!==l||o!==0&&w.nodeType!==3||(h=f+o),w!==a||u!==0&&w.nodeType!==3||(c=f+u),w.nodeType===3&&(f+=w.nodeValue.length),(p=w.firstChild)!==null;)d=w,w=p;for(;;){if(w===i)break t;if(d===l&&++m===o&&(h=f),d===a&&++v===u&&(c=f),(p=w.nextSibling)!==null)break;w=d,d=w.parentNode}w=p}l=h===-1||c===-1?null:{start:h,end:c}}else l=null;l=l||{start:0,end:0}}else l=null;Ui={focusedElem:i,selectionRange:l},xs=!1,zr=null,ro=!1,R=r;do try{Hg()}catch(N){if(R===null)throw Error(j(330));Ot(R,N),R=R.nextEffect}while(R!==null);zr=null,R=r;do try{for(i=e;R!==null;){var g=R.flags;if(g&16&&Zn(R.stateNode,""),g&128){var S=R.alternate;if(S!==null){var y=S.ref;y!==null&&(typeof y=="function"?y(null):y.current=null)}}switch(g&1038){case 2:Sf(R),R.flags&=-3;break;case 6:Sf(R),R.flags&=-3,Cl(R.alternate,R);break;case 1024:R.flags&=-1025;break;case 1028:R.flags&=-1025,Cl(R.alternate,R);break;case 4:Cl(R.alternate,R);break;case 8:l=R,xf(i,l);var $=l.alternate;vf(l),$!==null&&vf($)}R=R.nextEffect}}catch(N){if(R===null)throw Error(j(330));Ot(R,N),R=R.nextEffect}while(R!==null);if(y=Ui,S=ec(),g=y.focusedElem,i=y.selectionRange,S!==g&&g&&g.ownerDocument&&Zu(g.ownerDocument.documentElement,g)){for(i!==null&&Ii(g)&&(S=i.start,y=i.end,y===void 0&&(y=S),"selectionStart"in g?(g.selectionStart=S,g.selectionEnd=Math.min(y,g.value.length)):(y=(S=g.ownerDocument||document)&&S.defaultView||window,y.getSelection&&(y=y.getSelection(),l=g.textContent.length,$=Math.min(i.start,l),i=i.end===void 0?$:Math.min(i.end,l),!y.extend&&$>i&&(l=i,i=$,$=l),l=Xu(g,$),o=Xu(g,i),l&&o&&(y.rangeCount!==1||y.anchorNode!==l.node||y.anchorOffset!==l.offset||y.focusNode!==o.node||y.focusOffset!==o.offset)&&(S=S.createRange(),S.setStart(l.node,l.offset),y.removeAllRanges(),$>i?(y.addRange(S),y.extend(o.node,o.offset)):(S.setEnd(o.node,o.offset),y.addRange(S)))))),S=[],y=g;y=y.parentNode;)y.nodeType===1&&S.push({element:y,left:y.scrollLeft,top:y.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<S.length;g++)y=S[g],y.element.scrollLeft=y.left,y.element.scrollTop=y.top}xs=!!bi,Ui=bi=null,e.current=n,R=r;do try{for(g=e;R!==null;){var C=R.flags;if(C&36&&zg(g,R.alternate,R),C&128){S=void 0;var P=R.ref;if(P!==null){var T=R.stateNode;switch(R.tag){case 5:S=T;break;default:S=T}typeof P=="function"?P(S):P.current=S}}R=R.nextEffect}}catch(N){if(R===null)throw Error(j(330));Ot(R,N),R=R.nextEffect}while(R!==null);R=null,Pg(),I=s}else e.current=n;if(Et)Et=!1,Rr=e,Fr=t;else for(R=r;R!==null;)t=R.nextEffect,R.nextEffect=null,R.flags&8&&(C=R,C.sibling=null,C.stateNode=null),R=t;if(r=e.pendingLanes,r===0&&(Ze=null),r===1?e===Ll?Ir++:(Ir=0,Ll=e):Ir=0,n=n.stateNode,Bt&&typeof Bt.onCommitFiberRoot=="function")try{Bt.onCommitFiberRoot(Ki,n,void 0,(n.current.flags&64)===64)}catch{}if(Me(e,me()),eo)throw eo=!1,e=Tl,Tl=null,e;return I&8||Qe(),null}function Hg(){for(;R!==null;){var e=R.alternate;ro||zr===null||(R.flags&8?Su(R,zr)&&(ro=!0):R.tag===13&&Mg(e,R)&&Su(R,zr)&&(ro=!0));var t=R.flags;t&256&&Ig(e,R),!(t&512)||Et||(Et=!0,Sr(97,function(){return Tt(),null})),R=R.nextEffect}}function Tt(){if(Fr!==90){var e=97<Fr?97:Fr;return Fr=90,Vt(e,Kg)}return!1}function Wg(e,t){Ol.push(t,e),Et||(Et=!0,Sr(97,function(){return Tt(),null}))}function Of(e,t){Nl.push(t,e),Et||(Et=!0,Sr(97,function(){return Tt(),null}))}function Kg(){if(Rr===null)return!1;var e=Rr;if(Rr=null,I&48)throw Error(j(331));var t=I;I|=32;var n=Nl;Nl=[];for(var r=0;r<n.length;r+=2){var s=n[r],o=n[r+1],i=s.destroy;if(s.destroy=void 0,typeof i=="function")try{i()}catch(a){if(o===null)throw Error(j(330));Ot(o,a)}}for(n=Ol,Ol=[],r=0;r<n.length;r+=2){s=n[r],o=n[r+1];try{var l=s.create;s.destroy=l()}catch(a){if(o===null)throw Error(j(330));Ot(o,a)}}for(l=e.current.firstEffect;l!==null;)e=l.nextEffect,l.nextEffect=null,l.flags&8&&(l.sibling=null,l.stateNode=null),l=e;return I=t,Qe(),!0}function Nf(e,t,n){t=vl(n,t),t=df(e,t,1),kt(e,t),t=Oe(),e=so(e,1),e!==null&&(Ss(e,1,t),Me(e,t))}function Ot(e,t){if(e.tag===3)Nf(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){Nf(n,e,t);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ze===null||!Ze.has(r))){e=vl(t,e);var s=pf(n,e,1);if(kt(n,s),s=Oe(),n=so(n,1),n!==null)Ss(n,1,s),Me(n,s);else if(typeof r.componentDidCatch=="function"&&(Ze===null||!Ze.has(r)))try{r.componentDidCatch(t,e)}catch{}break}}n=n.return}}function qg(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Oe(),e.pingedLanes|=e.suspendedLanes&n,Ce===e&&(ve&n)===n&&(fe===4||fe===3&&(ve&62914560)===ve&&500>me()-jl?Ln(e,0):Pl|=n),Me(e,t)}function Gg(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(ct===0&&(ct=An),t=dn(62914560&~ct),t===0&&(t=4194304)):t=$n()===99?1:2:t=1),n=Oe(),e=so(e,t),e!==null&&(Ss(e,t,n),Me(e,n))}var Lf;Lf=function(e,t,n){var r=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||ke.current)He=!0;else if(n&r)He=!!(e.flags&16384);else{switch(He=!1,t.tag){case 3:nf(t),ol();break;case 5:zc(t);break;case 1:Pe(t.type)&&_s(t);break;case 4:nl(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var s=t.type._context;X(Is,s._currentValue),s._currentValue=r;break;case 13:if(t.memoizedState!==null)return n&t.child.childLanes?rf(e,t,n):(X(Z,Z.current&1),t=at(e,t,n),t!==null?t.sibling:null);X(Z,Z.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&64){if(r)return uf(e,t,n);t.flags|=64}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),X(Z,Z.current),r)break;return null;case 23:case 24:return t.lanes=0,dl(e,t,n)}return at(e,t,n)}else He=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,s=Cn(t,ge.current),Pn(t,n),s=al(null,t,r,e,s,n),t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pe(r)){var o=!0;_s(t)}else o=!1;t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,el(t);var i=r.getDerivedStateFromProps;typeof i=="function"&&Ds(t,r,i,e),s.updater=bs,t.stateNode=s,s._reactInternals=t,tl(t,r,e,n),t=gl(null,t,r,!0,o,n)}else t.tag=0,je(null,t,s,n),t=t.child;return t;case 16:s=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=s._init,s=o(s._payload),t.type=s,o=t.tag=Jg(s),e=Ve(s,e),o){case 0:t=pl(null,t,s,e,n);break e;case 1:t=tf(null,t,s,e,n);break e;case 11:t=Yc(null,t,s,e,n);break e;case 14:t=Xc(null,t,s,Ve(s.type,e),r,n);break e}throw Error(j(306,s,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Ve(r,s),pl(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Ve(r,s),tf(e,t,r,s,n);case 3:if(nf(t),r=t.updateQueue,e===null||r===null)throw Error(j(282));if(r=t.pendingProps,s=t.memoizedState,s=s!==null?s.element:null,Ac(e,t),xr(t,r,null,n),r=t.memoizedState.element,r===s)ol(),t=at(e,t,n);else{if(s=t.stateNode,(o=s.hydrate)&&(Pt=vn(t.stateNode.containerInfo.firstChild),lt=t,o=Ye=!0),o){if(e=s.mutableSourceEagerHydrationData,e!=null)for(s=0;s<e.length;s+=2)o=e[s],o._workInProgressVersionPrimary=e[s+1],jn.push(o);for(n=Ic(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else je(e,t,r,n),ol();t=t.child}return t;case 5:return zc(t),e===null&&sl(t),r=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,i=s.children,Bi(r,s)?i=null:o!==null&&Bi(r,o)&&(t.flags|=16),ef(e,t),je(e,t,i,n),t.child;case 6:return e===null&&sl(t),null;case 13:return rf(e,t,n);case 4:return nl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Vs(t,null,r,n):je(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Ve(r,s),Yc(e,t,r,s,n);case 7:return je(e,t,t.pendingProps,n),t.child;case 8:return je(e,t,t.pendingProps.children,n),t.child;case 12:return je(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value;var l=t.type._context;if(X(Is,l._currentValue),l._currentValue=o,i!==null)if(l=i.value,o=Fe(l,o)?0:(typeof r._calculateChangedBits=="function"?r._calculateChangedBits(l,o):1073741823)|0,o===0){if(i.children===s.children&&!ke.current){t=at(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var a=l.dependencies;if(a!==null){i=l.child;for(var u=a.firstContext;u!==null;){if(u.context===r&&u.observedBits&o){l.tag===1&&(u=$t(-1,n&-n),u.tag=2,kt(l,u)),l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),jc(l.return,n),a.lanes|=n;break}u=u.next}}else i=l.tag===10&&l.type===t.type?null:l.child;if(i!==null)i.return=l;else for(i=l;i!==null;){if(i===t){i=null;break}if(l=i.sibling,l!==null){l.return=i.return,i=l;break}i=i.return}l=i}je(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,o=t.pendingProps,r=o.children,Pn(t,n),s=Ie(s,o.unstable_observedBits),r=r(s),t.flags|=1,je(e,t,r,n),t.child;case 14:return s=t.type,o=Ve(s,t.pendingProps),o=Ve(s.type,o),Xc(e,t,s,o,r,n);case 15:return Zc(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Ve(r,s),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Pe(r)?(e=!0,_s(t)):e=!1,Pn(t,n),_c(t,r,s),tl(t,r,s,n),gl(null,t,r,!0,e,n);case 19:return uf(e,t,n);case 23:return dl(e,t,n);case 24:return dl(e,t,n)}throw Error(j(156,t.tag))};function Qg(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function De(e,t,n,r){return new Qg(e,t,n,r)}function Fl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jg(e){if(typeof e=="function")return Fl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ls)return 11;if(e===us)return 14}return 2}function Nt(e,t){var n=e.alternate;return n===null?(n=De(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 io(e,t,n,r,s,o){var i=2;if(r=e,typeof e=="function")Fl(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case ht:return _n(n.children,s,o,t);case Xa:i=8,s|=16;break;case Wo:i=8,s|=1;break;case Qn:return e=De(12,n,t,s|8),e.elementType=Qn,e.type=Qn,e.lanes=o,e;case Jn:return e=De(13,n,t,s),e.type=Jn,e.elementType=Jn,e.lanes=o,e;case as:return e=De(19,n,t,s),e.elementType=as,e.lanes=o,e;case Yo:return Il(n,s,o,t);case Xo:return e=De(24,n,t,s),e.elementType=Xo,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ko:i=10;break e;case qo:i=9;break e;case ls:i=11;break e;case us:i=14;break e;case Go:i=16,r=null;break e;case Qo:i=22;break e}throw Error(j(130,e==null?e:typeof e,""))}return t=De(i,n,t,s),t.elementType=e,t.type=r,t.lanes=o,t}function _n(e,t,n,r){return e=De(7,e,r,t),e.lanes=n,e}function Il(e,t,n,r){return e=De(23,e,r,t),e.elementType=Yo,e.lanes=n,e}function zl(e,t,n){return e=De(6,e,null,t),e.lanes=n,e}function Ml(e,t,n){return t=De(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Yg(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=ki(0),this.expirationTimes=ki(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ki(0),this.mutableSourceEagerHydrationData=null}function Xg(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:zt,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function lo(e,t,n,r){var s=t.current,o=Oe(),i=jt(s);e:if(n){n=n._reactInternals;t:{if(Dt(n)!==n||n.tag!==1)throw Error(j(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(Pe(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(l!==null);throw Error(j(171))}if(n.tag===1){var a=n.type;if(Pe(a)){n=yc(n,a,l);break e}}n=l}else n=xt;return t.context===null?t.context=n:t.pendingContext=n,t=$t(o,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),kt(s,t),At(s,i,o),i}function Dl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function _f(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function bl(e,t){_f(e,t),(e=e.alternate)&&_f(e,t)}function Zg(){return null}function Ul(e,t,n){var r=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new Yg(e,t,n!=null&&n.hydrate===!0),t=De(3,null,null,t===2?7:t===1?3:0),n.current=t,t.stateNode=n,el(t),e[wn]=n.current,ic(e.nodeType===8?e.parentNode:e),r)for(e=0;e<r.length;e++){t=r[e];var s=t._getVersion;s=s(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,s]:n.mutableSourceEagerHydrationData.push(t,s)}this._internalRoot=n}Ul.prototype.render=function(e){lo(e,this._internalRoot,null,null)},Ul.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;lo(null,e,null,function(){t[wn]=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 em(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 Ul(e,0,t?{hydrate:!0}:void 0)}function ao(e,t,n,r,s){var o=n._reactRootContainer;if(o){var i=o._internalRoot;if(typeof s=="function"){var l=s;s=function(){var u=Dl(i);l.call(u)}}lo(t,i,e,s)}else{if(o=n._reactRootContainer=em(n,r),i=o._internalRoot,typeof s=="function"){var a=s;s=function(){var u=Dl(i);a.call(u)}}Pf(function(){lo(t,i,e,s)})}return Dl(i)}xu=function(e){if(e.tag===13){var t=Oe();At(e,4,t),bl(e,4)}},vi=function(e){if(e.tag===13){var t=Oe();At(e,67108864,t),bl(e,67108864)}},Cu=function(e){if(e.tag===13){var t=Oe(),n=jt(e);At(e,n,t),bl(e,n)}},$u=function(e,t){return t()},fi=function(e,t,n){switch(t){case"input":if(ni(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 r=n[t];if(r!==e&&r.form===e.form){var s=Ns(r);if(!s)throw Error(j(90));tu(r),ni(r,s)}}}break;case"textarea":iu(e,n);break;case"select":t=n.value,t!=null&&an(e,!!n.multiple,t,!1)}},hi=kf,gu=function(e,t,n,r,s){var o=I;I|=4;try{return Vt(98,e.bind(null,t,n,r,s))}finally{I=o,I===0&&(On(),Qe())}},di=function(){!(I&49)&&(bg(),Tt())},mu=function(e,t){var n=I;I|=2;try{return e(t)}finally{I=n,I===0&&(On(),Qe())}};function Rf(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Dr(t))throw Error(j(200));return Xg(e,t,null,n)}var tm={Events:[wr,Sn,Ns,du,pu,Tt,{current:!1}]},br={findFiberByHostInstance:bt,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},nm={bundleType:br.bundleType,version:br.version,rendererPackageName:br.rendererPackageName,rendererConfig:br.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:It.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=wu(e),e===null?null:e.stateNode},findFiberByHostInstance:br.findFiberByHostInstance||Zg,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var uo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uo.isDisabled&&uo.supportsFiber)try{Ki=uo.inject(nm),Bt=uo}catch{}}Re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tm,Re.createPortal=Rf,Re.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(j(188)):Error(j(268,Object.keys(e)));return e=wu(t),e=e===null?null:e.stateNode,e},Re.flushSync=function(e,t){var n=I;if(n&48)return e(t);I|=1;try{if(e)return Vt(99,e.bind(null,t))}finally{I=n,Qe()}},Re.hydrate=function(e,t,n){if(!Dr(t))throw Error(j(200));return ao(null,e,t,!0,n)},Re.render=function(e,t,n){if(!Dr(t))throw Error(j(200));return ao(null,e,t,!1,n)},Re.unmountComponentAtNode=function(e){if(!Dr(e))throw Error(j(40));return e._reactRootContainer?(Pf(function(){ao(null,null,e,!1,function(){e._reactRootContainer=null,e[wn]=null})}),!0):!1},Re.unstable_batchedUpdates=kf,Re.unstable_createPortal=function(e,t){return Rf(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},Re.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Dr(n))throw Error(j(200));if(e==null||e._reactInternals===void 0)throw Error(j(38));return ao(e,t,n,!1,r)},Re.version="17.0.2";function Ff(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ff)}catch(e){console.error(e)}}Ff(),Wa.exports=Re;var Bl=Wa.exports;const rm=Fo(Bl),we=ft.createContext({posts:[],authors:[],tags:[],action:"",lastPage:"",page:"",pageData:{},dispatch:(e,t)=>{},searchIndex:null,indexComplete:!1,searchValue:"",t:()=>{},dir:"ltr"});class sm extends D.Component{constructor(){super(...arguments);_o(this,"handleLoad",()=>{this.setupFrameBaseStyle()})}componentDidMount(){this.node.addEventListener("load",this.handleLoad)}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:n,head:r,title:s="",style:o={},...i}=this.props;return A.jsxs("iframe",{srcDoc:"<!DOCTYPE html>",...i,ref:l=>this.node=l,title:s,style:o,frameBorder:"0",children:[this.iframeHead&&Bl.createPortal(r,this.iframeHead),this.iframeRoot&&Bl.createPortal(n,this.iframeRoot)]})}}const om=e=>D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:16,width:16,viewBox:"0 0 16 16",...e},D.createElement("title",null,"circle anim"),D.createElement("g",{fill:"#40413F",className:"nc-icon-wrapper"},D.createElement("g",{className:"nc-loop-circle-16-icon-f"},D.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"}),D.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"})),D.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)}}"))),im=e=>D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:16,width:16,...e},D.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"})),lm=e=>D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:16,width:16,...e},D.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"})),If=10,am=10,um=()=>({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 zf extends ft.Component{componentDidMount(){this.sendContainerHeightChangeEvent()}sendContainerHeightChangeEvent(){}componentDidUpdate(){this.sendContainerHeightChangeEvent()}handlePopupClose(t){t.preventDefault(),t.target===t.currentTarget&&this.context.dispatch("update",{showPopup:!1})}render(){return A.jsx(jm,{})}}_o(zf,"contextType",we);function cm(){const{searchValue:e,dispatch:t,inputRef:n,t:r}=D.useContext(we),s=D.useRef(null);D.useEffect(()=>{setTimeout(()=>{var a;(a=n==null?void 0:n.current)==null||a.focus()},150);let i=a=>{a.key==="Escape"&&t("update",{showPopup:!1})};const l=s==null?void 0:s.current;return l==null||l.ownerDocument.removeEventListener("keyup",i),l==null||l.ownerDocument.addEventListener("keyup",i),()=>{l==null||l.ownerDocument.removeEventListener("keyup",i)}},[t,n]);let o="z-10 relative flex items-center py-5 px-4 sm:px-7 bg-white rounded-t-lg shadow";return e||(o="z-10 relative flex items-center py-5 px-4 sm:px-7 bg-white rounded-lg"),A.jsxs("div",{className:o,ref:s,children:[A.jsx("div",{className:"flex items-center justify-center w-4 h-4 me-3",children:A.jsx(fm,{})}),A.jsx("input",{ref:n,value:e||"",onChange:i=>{t("update",{searchValue:i.target.value})},onKeyDown:i=>{(i.key==="ArrowUp"||i.key==="ArrowDown")&&i.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:r("Search posts, tags and authors")}),A.jsx(hm,{}),A.jsx(dm,{})]})}function fm(){const{searchValue:e="",dispatch:t}=D.useContext(we);return e?A.jsx("button",{alt:"Clear",className:"-mb-[1px]",onClick:()=>{t("update",{searchValue:""})},children:A.jsx(im,{className:"text-neutral-900 hover:text-neutral-500 h-[1.1rem] w-[1.1rem]"})}):A.jsx(lm,{className:"text-neutral-900",alt:"Search"})}function hm(){const{indexComplete:e,searchValue:t}=D.useContext(we);return!e&&t?A.jsx(om,{className:"shrink-0"}):null}function dm(){const{dispatch:e,t}=D.useContext(we);return A.jsx("button",{className:"ms-3 text-sm text-neutral-500 sm:hidden",alt:"Cancel",onClick:()=>{e("update",{showPopup:!1})},children:t("Cancel")})}function pm({tag:e,selectedResult:t,setSelectedResult:n}){const{name:r,url:s,id:o}=e;let i="flex items-center py-3 -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer";return o===t&&(i+=" bg-neutral-100"),A.jsxs("div",{className:i,onClick:()=>{s&&(window.location.href=s)},onMouseEnter:()=>{n(o)},children:[A.jsx("p",{className:"me-2 text-sm font-bold text-neutral-400",children:"#"}),A.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-900 truncate",children:r})]})}function gm({tags:e,selectedResult:t,setSelectedResult:n}){const{t:r}=D.useContext(we);if(!(e!=null&&e.length))return null;const s=e.map(o=>A.jsx(pm,{tag:o,selectedResult:t,setSelectedResult:n},o.name));return A.jsxs("div",{className:"border-t border-gray-200 py-3 px-4 sm:px-7",children:[A.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:r("Tags")}),s]})}function mm({post:e,selectedResult:t,setSelectedResult:n}){const{searchValue:r}=D.useContext(we),{title:s,excerpt:o,url:i,id:l}=e;let a="py-3 -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer";return l===t&&(a+=" bg-neutral-100"),A.jsxs("div",{className:a,onClick:()=>{i&&(window.location.href=i)},onMouseEnter:()=>{n(l)},children:[A.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-800",children:A.jsx(Df,{text:s,highlight:r,isExcerpt:!1})}),A.jsx("p",{className:"text-neutral-400 leading-normal text-sm mt-0 mb-0 truncate",children:A.jsx(Df,{text:o,highlight:r,isExcerpt:!0})})]})}function ym({text:e,highlight:t}){let n="";t==null||t.split(" ").forEach((i,l)=>{const a=String(i).replace(/\W/g,"\\&");l>0?n+="|^"+a+"|\\s"+a:n="^"+a+"|\\s"+a});const r=new RegExp(`${n}`,"ig");let s=e==null?void 0:e.matchAll(r);const o=[];for(const i of s)o.push({startIdx:i==null?void 0:i.index,endIdx:((i==null?void 0:i.index)||0)+((i==null?void 0:i[0].length)||0)});return o}function Mf({text:e,highlight:t}){const n=ym({text:e,highlight:t}),r=[];let s=0;return n.forEach(o=>{s===o.startIdx?(r.push({text:e==null?void 0:e.slice(o.startIdx,o.endIdx),type:"highlight"}),s=o.endIdx):(r.push({text:e==null?void 0:e.slice(s,o.startIdx),type:"normal"}),r.push({text:e==null?void 0:e.slice(o.startIdx,o.endIdx),type:"highlight"}),s=o.endIdx)}),s<(e==null?void 0:e.length)&&r.push({text:e==null?void 0:e.slice(s,e.length),type:"normal"}),{parts:r,highlightIndexes:n}}function Df({text:e="",highlight:t="",isExcerpt:n}){var i;e=e||"",t=t||"";let{parts:r,highlightIndexes:s}=Mf({text:e,highlight:t});if(n&&(s!=null&&s[0])){const l=(i=s==null?void 0:s[0])==null?void 0:i.startIdx;if(l>50){e="..."+(e==null?void 0:e.slice(l-20));const{parts:a}=Mf({text:e,highlight:t});r=a}}const o=r.map((l,a)=>(l==null?void 0:l.type)==="highlight"?A.jsx(ft.Fragment,{children:A.jsx(vm,{word:l.text,isExcerpt:n})},a):A.jsx(ft.Fragment,{children:l.text},a));return A.jsx(A.Fragment,{children:o})}function vm({word:e,isExcerpt:t}){return t?A.jsx(A.Fragment,{children:A.jsx("span",{className:"font-bold",children:e})}):A.jsx(A.Fragment,{children:A.jsx("span",{className:"font-bold text-neutral-900",children:e})})}function wm({posts:e,maxPosts:t,setMaxPosts:n}){const{t:r}=D.useContext(we);return!(e!=null&&e.length)||t>=(e==null?void 0:e.length)?null:A.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 s=t+am;n(s)},children:r("Show more results")})}function Sm({posts:e,selectedResult:t,setSelectedResult:n}){const{t:r}=D.useContext(we),[s,o]=D.useState(If),[i,l]=D.useState([]);if(D.useEffect(()=>{o(If)},[e]),D.useEffect(()=>{l(e==null?void 0:e.slice(0,s+1))},[s,e]),!(e!=null&&e.length))return null;function a(){return i.map(u=>A.jsx(mm,{post:u,selectedResult:t,setSelectedResult:n},u.title))}return A.jsxs("div",{className:"border-t border-neutral-200 py-3 px-4 sm:px-7",children:[A.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:r("Posts")}),A.jsx(a,{}),A.jsx(wm,{setMaxPosts:o,maxPosts:s,posts:e})]})}function xm({author:e,selectedResult:t,setSelectedResult:n}){const{name:r,profile_image:s,url:o,id:i}=e;let l="py-[1rem] -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer flex items-center";return i===t&&(l+=" bg-neutral-100"),A.jsxs("div",{className:l,onClick:()=>{o&&(window.location.href=o)},onMouseEnter:()=>{n(i)},children:[A.jsx(Cm,{name:r,avatar:s}),A.jsx("h2",{className:"text-[1.65rem] font-medium leading-tight text-neutral-900 truncate",children:r})]})}function Cm({name:e,avatar:t}){const n=t==null?void 0:t.length,r=e.charAt(0);return n?A.jsx("img",{className:"rounded-full bg-neutral-300 w-7 h-7 me-2 object-cover",src:t,alt:e}):A.jsx("div",{className:"rounded-full bg-neutral-200 w-7 h-7 me-2 flex items-center justify-center font-bold",children:A.jsx("span",{className:"text-neutral-400",children:r})})}function $m({authors:e,selectedResult:t,setSelectedResult:n}){const{t:r}=D.useContext(we);if(!(e!=null&&e.length))return null;const s=e.map(o=>A.jsx(xm,{author:o,selectedResult:t,setSelectedResult:n},o.name));return A.jsxs("div",{className:"border-t border-neutral-200 py-3 px-4 sm:px-7",children:[A.jsx("h1",{className:"uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide",children:r("Authors")}),s]})}function km(){const{searchValue:e="",searchIndex:t,indexComplete:n}=D.useContext(we);let r=null,s=[],o=[],i=[];return n&&e&&(r=t==null?void 0:t.search(e),o=(r==null?void 0:r.posts)||[],i=(r==null?void 0:r.authors)||[],s=(r==null?void 0:r.tags)||[]),i=i.filter(a=>{const u=/\/404\/$/;return!(a!=null&&a.url&&u.test(a==null?void 0:a.url))}),s=s.filter(a=>{const u=/\/404\/$/;return!(a!=null&&a.url&&u.test(a==null?void 0:a.url))}),(o==null?void 0:o.length)||(i==null?void 0:i.length)||(s==null?void 0:s.length)?A.jsx(Pm,{posts:o,authors:i,tags:s}):e?A.jsx(Em,{}):null}function Pm({posts:e,authors:t,tags:n}){var u;const{searchValue:r}=D.useContext(we),s=D.useMemo(()=>[...t,...n,...e],[t,n,e]),o=((u=s==null?void 0:s[0])==null?void 0:u.id)||null,[i,l]=D.useState(o),a=D.useRef(null);return D.useEffect(()=>{var f;l(((f=s==null?void 0:s[0])==null?void 0:f.id)||null)},[s]),D.useEffect(()=>{let f=c=>{const m=s.findIndex(d=>d.id===i);let v=s[m+1],w=s[m-1];if(c.key==="ArrowUp"&&w?l(w==null?void 0:w.id):c.key==="ArrowDown"&&v&&l(v==null?void 0:v.id),c.key==="Enter"){const d=s.find(p=>p.id===i);window.location.href=d==null?void 0:d.url}};const h=a==null?void 0:a.current;return h==null||h.ownerDocument.removeEventListener("keyup",f),h==null||h.ownerDocument.addEventListener("keyup",f),()=>{var c;(c=h==null?void 0:h.ownerDocument)==null||c.removeEventListener("keyup",f)}},[s,i]),r?A.jsxs("div",{className:"overflow-y-auto max-h-[calc(100vh-172px)] sm:max-h-[70vh] -mt-[1px]",ref:a,children:[A.jsx($m,{authors:t,selectedResult:i,setSelectedResult:l}),A.jsx(gm,{tags:n,selectedResult:i,setSelectedResult:l}),A.jsx(Sm,{posts:e,selectedResult:i,setSelectedResult:l})]}):null}function Em(){const{t:e}=D.useContext(we);return A.jsx("div",{className:"py-4 px-7",children:A.jsx("p",{className:"text-[1.65rem] text-neutral-400 leading-normal",children:e("No matches found")})})}function jm(){const{dispatch:e}=D.useContext(we);return A.jsx(A.Fragment,{children:A.jsx("div",{className:"h-screen w-screen pt-20 antialiased z-50 relative ghost-display",onClick:t=>{t.preventDefault(),t.target===t.currentTarget&&e("update",{showPopup:!1})},children:A.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:[A.jsx(cm,{}),A.jsx(km,{})]})})})}class bf extends ft.Component{constructor(t){super(t),this.state={height:null}}onHeightChange(t){this.setState({height:t})}handlePopupClose(t){t.preventDefault(),t.target===t.currentTarget&&this.context.dispatch("update",{showPopup:!1})}renderFrameStyles(){const t=`
43
43
  :root {
44
44
  --brandcolor: ${this.context.brandColor||""}
45
45
  }
@@ -47,21 +47,21 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
47
47
  .ghost-display {
48
48
  display: none;
49
49
  }
50
- `,n=this.context.stylesUrl;return n?T.jsxs(T.Fragment,{children:[T.jsx("link",{rel:"stylesheet",href:n}),T.jsx("style",{dangerouslySetInnerHTML:{__html:t}}),T.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"})]}):T.jsxs(T.Fragment,{children:[T.jsx("style",{dangerouslySetInnerHTML:{__html:t}}),T.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"})]})}renderFrameContainer(){const t=sg(),n={...t.frame.common};return T.jsx("div",{style:t.modalContainer,className:"gh-root-frame",children:T.jsxs(Xp,{style:n,title:"portal-popup",head:this.renderFrameStyles(),searchdir:this.context.dir,children:[T.jsx("div",{onClick:r=>this.handlePopupClose(r),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)]"}),T.jsx(lf,{})]})})}render(){const{showPopup:t}=this.context;return t?this.renderFrameContainer():null}}mo(cf,"contextType",ye);var F;function ce(e,t,n){const r=typeof n,s=typeof e;if(r!=="undefined"){if(s!=="undefined"){if(n){if(s==="function"&&r===s)return function(l){return e(n(l))};if(t=e.constructor,t===n.constructor){if(t===Array)return n.concat(e);if(t===Map){var o=new Map(n);for(var i of e)o.set(i[0],i[1]);return o}if(t===Set){i=new Set(n);for(o of e.values())i.add(o);return i}}}return e}return n}return s==="undefined"?t:e}function re(){return Object.create(null)}function Ve(e){return typeof e=="string"}function Rr(e){return typeof e=="object"}function $g(e){const t=[];for(const n of e.keys())t.push(n);return t}function Fr(e,t){if(Ve(t))e=e[t];else for(let n=0;e&&n<t.length;n++)e=e[t[n]];return e}function kg(e){let t=0;for(let n=0,r;n<e.length;n++)(r=e[n])&&t<r.length&&(t=r.length);return t}const Eg=/[^\p{L}\p{N}]+/u,Pg=/(\d{3})/g,jg=/(\D)(\d{3})/g,Tg=/(\d{3})(\D)/g,ff=/[\u0300-\u036f]/g;function zr(e={}){if(!this||this.constructor!==zr)return new zr(...arguments);if(arguments.length)for(e=0;e<arguments.length;e++)this.assign(arguments[e]);else this.assign(e)}F=zr.prototype,F.assign=function(e){this.normalize=ce(e.normalize,!0,this.normalize);let t=e.include,n=t||e.exclude||e.split,r;if(n||n===""){if(typeof n=="object"&&n.constructor!==RegExp){let s="";r=!t,t||(s+="\\p{Z}"),n.letter&&(s+="\\p{L}"),n.number&&(s+="\\p{N}",r=!!t),n.symbol&&(s+="\\p{S}"),n.punctuation&&(s+="\\p{P}"),n.control&&(s+="\\p{C}"),(n=n.char)&&(s+=typeof n=="object"?n.join(""):n);try{this.split=new RegExp("["+(t?"^":"")+s+"]+","u")}catch{this.split=/\s+/}}else this.split=n,r=n===!1||2>"a1a".split(n).length;this.numeric=ce(e.numeric,r)}else{try{this.split=ce(this.split,Eg)}catch{this.split=/\s+/}this.numeric=ce(e.numeric,ce(this.numeric,!0))}if(this.prepare=ce(e.prepare,null,this.prepare),this.finalize=ce(e.finalize,null,this.finalize),n=e.filter,this.filter=typeof n=="function"?n:ce(n&&new Set(n),null,this.filter),this.dedupe=ce(e.dedupe,!0,this.dedupe),this.matcher=ce((n=e.matcher)&&new Map(n),null,this.matcher),this.mapper=ce((n=e.mapper)&&new Map(n),null,this.mapper),this.stemmer=ce((n=e.stemmer)&&new Map(n),null,this.stemmer),this.replacer=ce(e.replacer,null,this.replacer),this.minlength=ce(e.minlength,1,this.minlength),this.maxlength=ce(e.maxlength,1024,this.maxlength),this.rtl=ce(e.rtl,!1,this.rtl),(this.cache=n=ce(e.cache,!0,this.cache))&&(this.H=null,this.S=typeof n=="number"?n:2e5,this.B=new Map,this.G=new Map,this.L=this.K=128),this.h="",this.M=null,this.A="",this.N=null,this.matcher)for(const s of this.matcher.keys())this.h+=(this.h?"|":"")+s;if(this.stemmer)for(const s of this.stemmer.keys())this.A+=(this.A?"|":"")+s;return this},F.addStemmer=function(e,t){return this.stemmer||(this.stemmer=new Map),this.stemmer.set(e,t),this.A+=(this.A?"|":"")+e,this.N=null,this.cache&&qt(this),this},F.addFilter=function(e){return typeof e=="function"?this.filter=e:(this.filter||(this.filter=new Set),this.filter.add(e)),this.cache&&qt(this),this},F.addMapper=function(e,t){return typeof e=="object"?this.addReplacer(e,t):1<e.length?this.addMatcher(e,t):(this.mapper||(this.mapper=new Map),this.mapper.set(e,t),this.cache&&qt(this),this)},F.addMatcher=function(e,t){return typeof e=="object"?this.addReplacer(e,t):2>e.length&&(this.dedupe||this.mapper)?this.addMapper(e,t):(this.matcher||(this.matcher=new Map),this.matcher.set(e,t),this.h+=(this.h?"|":"")+e,this.M=null,this.cache&&qt(this),this)},F.addReplacer=function(e,t){return typeof e=="string"?this.addMatcher(e,t):(this.replacer||(this.replacer=[]),this.replacer.push(e,t),this.cache&&qt(this),this)},F.encode=function(e){if(this.cache&&e.length<=this.K)if(this.H){if(this.B.has(e))return this.B.get(e)}else this.H=setTimeout(qt,50,this);this.normalize&&(typeof this.normalize=="function"?e=this.normalize(e):e=ff?e.normalize("NFKD").replace(ff,"").toLowerCase():e.toLowerCase()),this.prepare&&(e=this.prepare(e)),this.numeric&&3<e.length&&(e=e.replace(jg,"$1 $2").replace(Tg,"$1 $2").replace(Pg,"$1 "));const t=!(this.dedupe||this.mapper||this.filter||this.matcher||this.stemmer||this.replacer);let n=[],r=this.split||this.split===""?e.split(this.split):e;for(let o=0,i,l;o<r.length;o++)if((i=l=r[o])&&!(i.length<this.minlength||i.length>this.maxlength)){if(t)n.push(i);else if(!this.filter||(typeof this.filter=="function"?this.filter(i):!this.filter.has(i))){if(this.cache&&i.length<=this.L)if(this.H){var s=this.G.get(i);if(s||s===""){s&&n.push(s);continue}}else this.H=setTimeout(qt,50,this);if(this.stemmer&&2<i.length&&(this.N||(this.N=new RegExp("(?!^)("+this.A+")$")),i=i.replace(this.N,u=>this.stemmer.get(u))),i&&(this.mapper||this.dedupe&&1<i.length)){s="";for(let u=0,a="",c,h;u<i.length;u++)c=i.charAt(u),c===a&&this.dedupe||((h=this.mapper&&this.mapper.get(c))||h===""?h===a&&this.dedupe||!(a=h)||(s+=h):s+=a=c);i=s}if(this.matcher&&1<i.length&&(this.M||(this.M=new RegExp("("+this.h+")","g")),i=i.replace(this.M,u=>this.matcher.get(u))),i&&this.replacer)for(s=0;i&&s<this.replacer.length;s+=2)i=i.replace(this.replacer[s],this.replacer[s+1]);this.cache&&l.length<=this.L&&(this.G.set(l,i),this.G.size>this.S&&(this.G.clear(),this.L=this.L/1.1|0)),i&&n.push(i)}}return this.finalize&&(n=this.finalize(n)||n),this.cache&&e.length<=this.K&&(this.B.set(e,n),this.B.size>this.S&&(this.B.clear(),this.K=this.K/1.1|0)),n};function qt(e){e.H=null,e.B.clear(),e.G.clear()}let On,Ir;async function Ng(e){e=e.data;var t=e.task;const n=e.id;let r=e.args;switch(t){case"init":Ir=e.options||{},(t=e.factory)?(Function("return "+t)()(self),On=new self.FlexSearch.Index(Ir),delete self.FlexSearch):On=new Xe(Ir),postMessage({id:n});break;default:let s;t==="export"&&(r[1]?(r[0]=Ir.export,r[2]=0,r[3]=1):r=null),t==="import"?r[0]&&(e=await Ir.import.call(On,r[0]),On.import(r[0],e)):(s=r&&On[t].apply(On,r))&&s.then&&(s=await s),postMessage(t==="search"?{id:n,msg:s}:{id:n})}}function jl(e){Mr.call(e,"add"),Mr.call(e,"append"),Mr.call(e,"search"),Mr.call(e,"update"),Mr.call(e,"remove")}let Tl,hf,eo;function Ag(){Tl=eo=0}function Mr(e){this[e+"Async"]=function(){const t=arguments;var n=t[t.length-1];let r;if(typeof n=="function"&&(r=n,delete t[t.length-1]),Tl?eo||(eo=Date.now()-hf>=this.priority*this.priority*3):(Tl=setTimeout(Ag,0),hf=Date.now()),eo){const o=this;return new Promise(i=>{setTimeout(function(){i(o[e+"Async"].apply(o,t))},0)})}const s=this[e].apply(this,t);return n=s.then?s:new Promise(o=>o(s)),r&&n.then(r),n}}let Ln=0;function Dr(e={}){function t(i){function l(u){u=u.data||u;const a=u.id,c=a&&s.h[a];c&&(c(u.msg),delete s.h[a])}if(this.worker=i,this.h=re(),this.worker)return r?this.worker.on("message",l):this.worker.onmessage=l,e.config?new Promise(function(u){s.h[++Ln]=function(){u(s),1e9<Ln&&(Ln=0)},s.worker.postMessage({id:Ln,task:"init",factory:n,options:e})}):(this.worker.postMessage({task:"init",factory:n,options:e}),this.priority=e.priority||4,this)}if(!this||this.constructor!==Dr)return new Dr(e);let n=typeof self<"u"?self._factory:typeof window<"u"?window._factory:null;n&&(n=n.toString());const r=typeof window>"u",s=this,o=Og(n,r,e.worker);return o.then?o.then(function(i){return t.call(s,i)}):t.call(this,o)}At("add"),At("append"),At("search"),At("update"),At("remove"),At("clear"),At("export"),At("import"),jl(Dr.prototype);function At(e){Dr.prototype[e]=function(){const t=this,n=[].slice.call(arguments);var r=n[n.length-1];let s;return typeof r=="function"&&(s=r,n.pop()),r=new Promise(function(o){e==="export"&&typeof n[0]=="function"&&(n[0]=null),t.h[++Ln]=o,t.worker.postMessage({task:e,id:Ln,args:n})}),s?(r.then(s),this):r}}function Og(e,t,n){return t?typeof module<"u"?new(require("worker_threads")).Worker(__dirname+"/worker/node.js"):Promise.resolve().then(()=>sh).then(function(r){return new r.Worker("undefined/node/node.mjs")}):e?new window.Worker(URL.createObjectURL(new Blob(["onmessage="+Ng.toString()],{type:"text/javascript"}))):new window.Worker(typeof n=="string"?n:(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:ne&&ne.tagName.toUpperCase()==="SCRIPT"&&ne.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"),{type:"module"})}function Nl(e,t=0){let n=[],r=[];t&&(t=25e4/t*5e3|0);for(const s of e.entries())r.push(s),r.length===t&&(n.push(r),r=[]);return r.length&&n.push(r),n}function Al(e,t){t||(t=new Map);for(let n=0,r;n<e.length;n++)r=e[n],t.set(r[0],r[1]);return t}function df(e,t=0){let n=[],r=[];t&&(t=25e4/t*1e3|0);for(const s of e.entries())r.push([s[0],Nl(s[1])[0]]),r.length===t&&(n.push(r),r=[]);return r.length&&n.push(r),n}function pf(e,t){t||(t=new Map);for(let n=0,r,s;n<e.length;n++)r=e[n],s=t.get(r[0]),t.set(r[0],Al(r[1],s));return t}function gf(e){let t=[],n=[];for(const r of e.keys())n.push(r),n.length===25e4&&(t.push(n),n=[]);return n.length&&t.push(n),t}function mf(e,t){t||(t=new Set);for(let n=0;n<e.length;n++)t.add(e[n]);return t}function to(e,t,n,r,s,o,i=0){const l=r&&r.constructor===Array;var u=l?r.shift():r;if(!u)return this.export(e,t,s,o+1);if((u=e((t?t+".":"")+(i+1)+"."+n,JSON.stringify(u)))&&u.then){const a=this;return u.then(function(){return to.call(a,e,t,n,l?r:null,s,o,i+1)})}return to.call(this,e,t,n,l?r:null,s,o,i+1)}function yf(e,t){let n="";for(const r of e.entries()){e=r[0];const s=r[1];let o="";for(let i=0,l;i<s.length;i++){l=s[i]||[""];let u="";for(let a=0;a<l.length;a++)u+=(u?",":"")+(t==="string"?'"'+l[a]+'"':l[a]);u="["+u+"]",o+=(o?",":"")+u}o='["'+e+'",['+o+"]]",n+=(n?",":"")+o}return n}function vf(e,t,n,r){let s=[];for(let o=0,i;o<e.index.length;o++)if(i=e.index[o],t>=i.length)t-=i.length;else{t=i[r?"splice":"slice"](t,n);const l=t.length;if(l&&(s=s.length?s.concat(t):t,n-=l,r&&(e.length-=l),!n))break;t=0}return s}function Qt(e){if(!this||this.constructor!==Qt)return new Qt(e);this.index=e?[e]:[],this.length=e?e.length:0;const t=this;return new Proxy([],{get(n,r){if(r==="length")return t.length;if(r==="push")return function(s){t.index[t.index.length-1].push(s),t.length++};if(r==="pop")return function(){if(t.length)return t.length--,t.index[t.index.length-1].pop()};if(r==="indexOf")return function(s){let o=0;for(let i=0,l,u;i<t.index.length;i++){if(l=t.index[i],u=l.indexOf(s),0<=u)return o+u;o+=l.length}return-1};if(r==="includes")return function(s){for(let o=0;o<t.index.length;o++)if(t.index[o].includes(s))return!0;return!1};if(r==="slice")return function(s,o){return vf(t,s||0,o||t.length,!1)};if(r==="splice")return function(s,o){return vf(t,s||0,o||t.length,!0)};if(r==="constructor")return Array;if(typeof r!="symbol")return(n=t.index[r/2**31|0])&&n[r]},set(n,r,s){return n=r/2**31|0,(t.index[n]||(t.index[n]=[]))[r]=s,t.length++,!0}})}Qt.prototype.clear=function(){this.index.length=0},Qt.prototype.destroy=function(){this.proxy=this.index=null},Qt.prototype.push=function(){};function Ze(e=8){if(!this||this.constructor!==Ze)return new Ze(e);this.index=re(),this.h=[],this.size=0,32<e?(this.B=Sf,this.A=BigInt(e)):(this.B=wf,this.A=e)}Ze.prototype.get=function(e){const t=this.index[this.B(e)];return t&&t.get(e)},Ze.prototype.set=function(e,t){var n=this.B(e);let r=this.index[n];r?(n=r.size,r.set(e,t),(n-=r.size)&&this.size++):(this.index[n]=r=new Map([[e,t]]),this.h.push(r),this.size++)};function He(e=8){if(!this||this.constructor!==He)return new He(e);this.index=re(),this.h=[],this.size=0,32<e?(this.B=Sf,this.A=BigInt(e)):(this.B=wf,this.A=e)}He.prototype.add=function(e){var t=this.B(e);let n=this.index[t];n?(t=n.size,n.add(e),(t-=n.size)&&this.size++):(this.index[t]=n=new Set([e]),this.h.push(n),this.size++)},F=Ze.prototype,F.has=He.prototype.has=function(e){const t=this.index[this.B(e)];return t&&t.has(e)},F.delete=He.prototype.delete=function(e){const t=this.index[this.B(e)];t&&t.delete(e)&&this.size--},F.clear=He.prototype.clear=function(){this.index=re(),this.h=[],this.size=0},F.values=He.prototype.values=function*(){for(let e=0;e<this.h.length;e++)for(let t of this.h[e].values())yield t},F.keys=He.prototype.keys=function*(){for(let e=0;e<this.h.length;e++)for(let t of this.h[e].keys())yield t},F.entries=He.prototype.entries=function*(){for(let e=0;e<this.h.length;e++)for(let t of this.h[e].entries())yield t};function wf(e){let t=2**this.A-1;if(typeof e=="number")return e&t;let n=0,r=this.A+1;for(let s=0;s<e.length;s++)n=(n*r^e.charCodeAt(s))&t;return this.A===32?n+2**31:n}function Sf(e){let t=BigInt(2)**this.A-BigInt(1);var n=typeof e;if(n==="bigint")return e&t;if(n==="number")return BigInt(e)&t;n=BigInt(0);let r=this.A+BigInt(1);for(let s=0;s<e.length;s++)n=(n*r^BigInt(e.charCodeAt(s)))&t;return n}Jt.prototype.add=function(e,t,n){if(Rr(e)&&(t=e,e=Fr(t,this.key)),t&&(e||e===0)){if(!n&&this.reg.has(e))return this.update(e,t);for(let l=0,u;l<this.field.length;l++){u=this.D[l];var r=this.index.get(this.field[l]);if(typeof u=="function"){var s=u(t);s&&r.add(e,s,!1,!0)}else s=u.I,(!s||s(t))&&(u.constructor===String?u=[""+u]:Ve(u)&&(u=[u]),Ll(t,u,this.J,0,r,e,u[0],n))}if(this.tag)for(r=0;r<this.F.length;r++){var o=this.F[r];s=this.tag.get(this.R[r]);let l=re();if(typeof o=="function"){if(o=o(t),!o)continue}else{var i=o.I;if(i&&!i(t))continue;o.constructor===String&&(o=""+o),o=Fr(t,o)}if(s&&o){Ve(o)&&(o=[o]);for(let u=0,a,c;u<o.length;u++)if(a=o[u],!l[a]&&(l[a]=1,(i=s.get(a))?c=i:s.set(a,c=[]),!n||!c.includes(e))){if(c.length===2**31-1){if(i=new Qt(c),this.fastupdate)for(let h of this.reg.values())h.includes(c)&&(h[h.indexOf(c)]=i);s.set(a,c=i)}c.push(e),this.fastupdate&&((i=this.reg.get(e))?i.push(c):this.reg.set(e,[c]))}}}if(this.store&&(!n||!this.store.has(e))){let l;if(this.C){l=re();for(let u=0,a;u<this.C.length;u++){if(a=this.C[u],(n=a.I)&&!n(t))continue;let c;if(typeof a=="function"){if(c=a(t),!c)continue;a=[a.V]}else if(Ve(a)||a.constructor===String){l[a]=t[a];continue}Ol(t,l,a,0,a[0],c)}}this.store.set(e,l||t)}this.worker&&(this.fastupdate||this.reg.add(e))}return this};function Ol(e,t,n,r,s,o){if(e=e[s],r===n.length-1)t[s]=o||e;else if(e)if(e.constructor===Array)for(t=t[s]=Array(e.length),s=0;s<e.length;s++)Ol(e,t,n,r,s);else t=t[s]||(t[s]=re()),s=n[++r],Ol(e,t,n,r,s)}function Ll(e,t,n,r,s,o,i,l){if(e=e[i])if(r===t.length-1){if(e.constructor===Array){if(n[r]){for(t=0;t<e.length;t++)s.add(o,e[t],!0,!0);return}e=e.join(" ")}s.add(o,e,l,!0)}else if(e.constructor===Array)for(i=0;i<e.length;i++)Ll(e,t,n,r,s,o,i,l);else i=t[++r],Ll(e,t,n,r,s,o,i,l);else s.db&&s.remove(o)}function Cf(e,t,n,r,s,o,i){const l=e.length;let u=[],a,c;a=re();for(let h=0,f,m,v,w;h<t;h++)for(let d=0;d<l;d++)if(v=e[d],h<v.length&&(f=v[h]))for(let p=0;p<f.length;p++){if(m=f[p],(c=a[m])?a[m]++:(c=0,a[m]=1),w=u[c]||(u[c]=[]),!i){let g=h+(d||!s?0:o||0);w=w[g]||(w[g]=[])}if(w.push(m),i&&n&&c===l-1&&w.length-r===n)return r?w.slice(r):w}if(e=u.length)if(s)u=1<u.length?xf(u,n,r,i,o):(u=u[0]).length>n||r?u.slice(r,n+r):u;else{if(e<l)return[];if(u=u[e-1],n||r)if(i)(u.length>n||r)&&(u=u.slice(r,n+r));else{s=[];for(let h=0,f;h<u.length;h++)if(f=u[h],f.length>r)r-=f.length;else if((f.length>n||r)&&(f=f.slice(r,n+r),n-=f.length,r&&(r-=f.length)),s.push(f),!n)break;u=1<s.length?[].concat.apply([],s):s[0]}}return u}function xf(e,t,n,r,s){const o=[],i=re();let l;var u=e.length;let a;if(r){for(s=u-1;0<=s;s--)if(a=(r=e[s])&&r.length){for(u=0;u<a;u++)if(l=r[u],!i[l]){if(i[l]=1,n)n--;else if(o.push(l),o.length===t)return o}}}else for(let c=u-1,h,f=0;0<=c;c--){h=e[c];for(let m=0;m<h.length;m++)if(a=(r=h[m])&&r.length){for(let v=0;v<a;v++)if(l=r[v],!i[l])if(i[l]=1,n)n--;else{let w=(m+(c<u-1&&s||0))/(c+1)|0;if((o[w]||(o[w]=[])).push(l),++f===t)return o}}}return o}function Lg(e,t,n){const r=re(),s=[];for(let o=0,i;o<t.length;o++){i=t[o];for(let l=0;l<i.length;l++)r[i[l]]=1}if(n)for(let o=0,i;o<e.length;o++)i=e[o],r[i]&&(s.push(i),r[i]=0);else for(let o=0,i,l;o<e.result.length;o++)for(i=e.result[o],t=0;t<i.length;t++)l=i[t],r[l]&&((s[o]||(s[o]=[])).push(l),r[l]=0);return s}function _l(e,t,n,r){if(!e.length)return e;if(e.length===1)return e=e[0],e=n||e.length>t?t?e.slice(n,n+t):e.slice(n):e,r?Ot.call(this,e):e;let s=[];for(let o=0,i,l;o<e.length;o++)if((i=e[o])&&(l=i.length)){if(n){if(n>=l){n-=l;continue}n<l&&(i=t?i.slice(n,n+t):i.slice(n),l=i.length,n=0)}if(l>t&&(i=i.slice(0,t),l=t),!s.length&&l>=t)return r?Ot.call(this,i):i;if(s.push(i),t-=l,!t)break}return s=1<s.length?[].concat.apply([],s):s[0],r?Ot.call(this,s):s}function no(e,t,n){var r=n[0];if(r.then)return Promise.all(n).then(function(c){return e[t].apply(e,c)});if(r[0]&&r[0].index)return e[t].apply(e,r);r=[];let s=[],o=0,i=0,l,u,a;for(let c=0,h;c<n.length;c++)if(h=n[c]){let f;if(h.constructor===J)f=h.result;else if(h.constructor===Array)f=h;else if(o=h.limit||0,i=h.offset||0,a=h.suggest,u=h.resolve,l=h.enrich&&u,h.index)h.resolve=!1,f=h.index.search(h).result,h.resolve=u;else if(h.and)f=e.and(h.and);else if(h.or)f=e.or(h.or);else if(h.xor)f=e.xor(h.xor);else if(h.not)f=e.not(h.not);else continue;if(f.then)s.push(f);else if(f.length)r[c]=f;else if(!a&&(t==="and"||t==="xor")){r=[];break}}return{O:r,P:s,limit:o,offset:i,enrich:l,resolve:u,suggest:a}}J.prototype.or=function(){const{O:e,P:t,limit:n,offset:r,enrich:s,resolve:o}=no(this,"or",arguments);return $f.call(this,e,t,n,r,s,o)};function $f(e,t,n,r,s,o){if(t.length){const i=this;return Promise.all(t).then(function(l){e=[];for(let u=0,a;u<l.length;u++)(a=l[u]).length&&(e[u]=a);return $f.call(i,e,[],n,r,s,o)})}return e.length&&(this.result.length&&e.push(this.result),2>e.length?this.result=e[0]:(this.result=xf(e,n,r,!1,this.h),r=0)),o?this.resolve(n,r,s):this}J.prototype.and=function(){let e=this.result.length,t,n,r,s;if(!e){const o=arguments[0];o&&(e=!!o.suggest,s=o.resolve,t=o.limit,n=o.offset,r=o.enrich&&s)}if(e){const{O:o,P:i,limit:l,offset:u,enrich:a,resolve:c,suggest:h}=no(this,"and",arguments);return kf.call(this,o,i,l,u,a,c,h)}return s?this.resolve(t,n,r):this};function kf(e,t,n,r,s,o,i){if(t.length){const l=this;return Promise.all(t).then(function(u){e=[];for(let a=0,c;a<u.length;a++)(c=u[a]).length&&(e[a]=c);return kf.call(l,e,[],n,r,s,o,i)})}if(e.length)if(this.result.length&&e.unshift(this.result),2>e.length)this.result=e[0];else{if(t=kg(e))return this.result=Cf(e,t,n,r,i,this.h,o),o?s?Ot.call(this.index,this.result):this.result:this;this.result=[]}else i||(this.result=e);return o?this.resolve(n,r,s):this}J.prototype.xor=function(){const{O:e,P:t,limit:n,offset:r,enrich:s,resolve:o,suggest:i}=no(this,"xor",arguments);return Ef.call(this,e,t,n,r,s,o,i)};function Ef(e,t,n,r,s,o,i){if(t.length){const l=this;return Promise.all(t).then(function(u){e=[];for(let a=0,c;a<u.length;a++)(c=u[a]).length&&(e[a]=c);return Ef.call(l,e,[],n,r,s,o,i)})}if(e.length)if(this.result.length&&e.unshift(this.result),2>e.length)this.result=e[0];else return this.result=_g.call(this,e,n,r,o,this.h),o?s?Ot.call(this.index,this.result):this.result:this;else i||(this.result=e);return o?this.resolve(n,r,s):this}function _g(e,t,n,r,s){const o=[],i=re();let l=0;for(let u=0,a;u<e.length;u++)if(a=e[u]){l<a.length&&(l=a.length);for(let c=0,h;c<a.length;c++)if(h=a[c])for(let f=0,m;f<h.length;f++)m=h[f],i[m]=i[m]?2:1}for(let u=0,a,c=0;u<l;u++)for(let h=0,f;h<e.length;h++)if((f=e[h])&&(a=f[u])){for(let m=0,v;m<a.length;m++)if(v=a[m],i[v]===1)if(n)n--;else if(r){if(o.push(v),o.length===t)return o}else{const w=u+(h?s:0);if(o[w]||(o[w]=[]),o[w].push(v),++c===t)return o}}return o}J.prototype.not=function(){const{O:e,P:t,limit:n,offset:r,enrich:s,resolve:o,suggest:i}=no(this,"not",arguments);return Pf.call(this,e,t,n,r,s,o,i)};function Pf(e,t,n,r,s,o,i){if(t.length){const l=this;return Promise.all(t).then(function(u){e=[];for(let a=0,c;a<u.length;a++)(c=u[a]).length&&(e[a]=c);return Pf.call(l,e,[],n,r,s,o,i)})}if(e.length&&this.result.length)this.result=Rg.call(this,e,n,r,o);else if(o)return this.resolve(n,r,s);return o?s?Ot.call(this.index,this.result):this.result:this}function Rg(e,t,n,r){const s=[];e=new Set(e.flat().flat());for(let o=0,i,l=0;o<this.result.length;o++)if(i=this.result[o]){for(let u=0,a;u<i.length;u++)if(a=i[u],!e.has(a)){if(n)n--;else if(r){if(s.push(a),s.length===t)return s}else if(s[o]||(s[o]=[]),s[o].push(a),++l===t)return s}}return s}function J(e){if(!this||this.constructor!==J)return new J(e);if(e&&e.index)return e.resolve=!1,this.index=e.index,this.h=e.boost||0,this.result=e.index.search(e).result,this;this.index=null,this.result=e||[],this.h=0}J.prototype.limit=function(e){if(this.result.length){const t=[];for(let n=0,r;n<this.result.length;n++)if(r=this.result[n])if(r.length<=e){if(t[n]=r,e-=r.length,!e)break}else{t[n]=r.slice(0,e);break}this.result=t}return this},J.prototype.offset=function(e){if(this.result.length){const t=[];for(let n=0,r;n<this.result.length;n++)(r=this.result[n])&&(r.length<=e?e-=r.length:(t[n]=r.slice(e),e=0));this.result=t}return this},J.prototype.boost=function(e){return this.h+=e,this},J.prototype.resolve=function(e,t,n){const r=this.result,s=this.index;return this.result=this.index=null,r.length?(typeof e=="object"&&(n=e.enrich,t=e.offset,e=e.limit),_l.call(s,r,e||100,t,n)):r},Jt.prototype.search=function(e,t,n,r){n||(!t&&Rr(e)?(n=e,e=""):Rr(t)&&(n=t,t=0));let s=[];var o=[],i;let l,u,a,c=0;var h=!0;let f;if(n){n.constructor===Array&&(n={index:n}),e=n.query||e;var m=n.pluck;l=n.merge,u=m||n.field||(u=n.index)&&(u.index?null:u),a=this.tag&&n.tag;var v=n.suggest;h=n.resolve!==!1,h||m||!(u=u||this.field)||(Ve(u)?m=u:(u.constructor===Array&&u.length===1&&(u=u[0]),m=u.field||u.index)),f=(i=this.store&&n.enrich&&h)&&n.highlight,t=n.limit||t;var w=n.offset||0;if(t||(t=100),a&&(!this.db||!r)){a.constructor!==Array&&(a=[a]);var d=[];for(let y=0,$;y<a.length;y++)if($=a[y],$.field&&$.tag){var p=$.tag;if(p.constructor===Array)for(var g=0;g<p.length;g++)d.push($.field,p[g]);else d.push($.field,p)}else{p=Object.keys($);for(let x=0,P,N;x<p.length;x++)if(P=p[x],N=$[P],N.constructor===Array)for(g=0;g<N.length;g++)d.push(P,N[g]);else d.push(P,N)}if(a=d,!e){if(h=[],d.length)for(o=0;o<d.length;o+=2){if(this.db){if(m=this.index.get(d[o]),!m)continue;h.push(m=m.db.tag(d[o+1],t,w,i))}else m=Fg.call(this,d[o],d[o+1],t,w,i);s.push({field:d[o],tag:d[o+1],result:m})}return h.length?Promise.all(h).then(function(y){for(let $=0;$<y.length;$++)s[$].result=y[$];return s}):s}}u&&u.constructor!==Array&&(u=[u])}u||(u=this.field),d=!r&&(this.worker||this.db)&&[];let S;for(let y=0,$,x,P;y<u.length;y++){if(x=u[y],this.db&&this.tag&&!this.D[y])continue;let N;if(Ve(x)||(N=x,x=N.field,e=N.query||e,t=N.limit||t,w=N.offset||w,v=N.suggest||v,i=this.store&&(N.enrich||i)),r)$=r[y];else if(p=N||n,g=this.index.get(x),a&&(this.db&&(p.tag=a,S=g.db.support_tag_search,p.field=u),S||(p.enrich=!1)),d){d[y]=g.search(e,t,p),p&&i&&(p.enrich=i);continue}else $=g.search(e,t,p),p&&i&&(p.enrich=i);if(P=$&&(h?$.length:$.result.length),a&&P){if(p=[],g=0,this.db&&r){if(!S)for(let O=u.length;O<r.length;O++){let U=r[O];if(U&&U.length)g++,p.push(U);else if(!v)return h?s:new J(s)}}else for(let O=0,U,Ne;O<a.length;O+=2){if(U=this.tag.get(a[O]),!U){if(v)continue;return h?s:new J(s)}if(Ne=(U=U&&U.get(a[O+1]))&&U.length)g++,p.push(U);else if(!v)return h?s:new J(s)}if(g){if($=Lg($,p,h),P=$.length,!P&&!v)return h?$:new J($);g--}}if(P)o[c]=x,s.push($),c++;else if(u.length===1)return h?s:new J(s)}if(d){if(this.db&&a&&a.length&&!S)for(i=0;i<a.length;i+=2){if(o=this.index.get(a[i]),!o){if(v)continue;return h?s:new J(s)}d.push(o.db.tag(a[i+1],t,w,!1))}const y=this;return Promise.all(d).then(function($){return $.length?y.search(e,t,n,$):$})}if(!c)return h?s:new J(s);if(m&&(!i||!this.store))return s[0];for(d=[],w=0;w<o.length;w++){if(v=s[w],i&&v.length&&typeof v[0].doc>"u"&&(this.db?d.push(v=this.index.get(this.field[0]).db.enrich(v)):v=Ot.call(this,v)),m)return h?v:new J(v);s[w]={field:o[w],result:v}}if(i&&this.db&&d.length){const y=this;return Promise.all(d).then(function($){for(let x=0;x<$.length;x++)s[x].result=$[x];return l?Tf(s):f?jf(s,e,y.index,y.field,y.D,f):s})}return l?Tf(s):f?jf(s,e,this.index,this.field,this.D,f):s};function jf(e,t,n,r,s,o){let i,l,u;for(let a=0,c,h,f,m;a<e.length;a++){if(c=e[a].field,!c)continue;let v=e[a].result;f=n.get(c),h=f.encoder,u=f.tokenize,m=s[r.indexOf(c)],h!==i&&(i=h,l=i.encode(t));for(let w=0;w<v.length;w++){let d="",p=Fr(v[w].doc,m).split(/\s+/);for(let g=0,S,y;g<p.length;g++){S=p[g],y=h.encode(S),y=1<y.length?y.join(" "):y[0];let $;if(y&&S)for(let x=0,P;x<l.length;x++)if(P=l[x],u==="strict"){if(y===P){d+=(d?" ":"")+o.replace("$1",S),$=!0;break}}else{const N=y.indexOf(P);if(-1<N){d+=(d?" ":"")+S.substring(0,N)+o.replace("$1",S.substring(N,P.length))+S.substring(N+P.length),$=!0;break}}$||(d+=(d?" ":"")+p[g])}v[w].highlight=d}}return e}function Tf(e){const t=[],n=re();for(let r=0,s,o;r<e.length;r++){s=e[r],o=s.result;for(let i=0,l,u,a;i<o.length;i++)u=o[i],typeof u!="object"&&(u={id:u}),l=u.id,(a=n[l])?a.push(s.field):(u.field=n[l]=[s.field],t.push(u))}return t}function Fg(e,t,n,r,s){if(e=this.tag.get(e),!e)return[];if((t=(e=e&&e.get(t))&&e.length-r)&&0<t)return(t>n||r)&&(e=e.slice(r,r+n)),s&&(e=Ot.call(this,e)),e}function Ot(e){if(!this||!this.store)return e;const t=Array(e.length);for(let n=0,r;n<e.length;n++)r=e[n],t[n]={id:r,doc:this.store.get(r)};return t}function Jt(e){if(!this||this.constructor!==Jt)return new Jt(e);const t=e.document||e.doc||e;let n,r;if(this.D=[],this.field=[],this.J=[],this.key=(n=t.key||t.id)&&ro(n,this.J)||"id",(r=e.keystore||0)&&(this.keystore=r),this.fastupdate=!!e.fastupdate,this.reg=!this.fastupdate||e.worker||e.db?r?new He(r):new Set:r?new Ze(r):new Map,this.C=(n=t.store||null)&&n&&n!==!0&&[],this.store=n&&(r?new Ze(r):new Map),this.cache=(n=e.cache||null)&&new Yt(n),e.cache=!1,this.worker=e.worker,this.priority=e.priority||4,this.index=zg.call(this,e,t),this.tag=null,(n=t.tag)&&(typeof n=="string"&&(n=[n]),n.length)){this.tag=new Map,this.F=[],this.R=[];for(let s=0,o,i;s<n.length;s++){if(o=n[s],i=o.field||o,!i)throw Error("The tag field from the document descriptor is undefined.");o.custom?this.F[s]=o.custom:(this.F[s]=ro(i,this.J),o.filter&&(typeof this.F[s]=="string"&&(this.F[s]=new String(this.F[s])),this.F[s].I=o.filter)),this.R[s]=i,this.tag.set(i,new Map)}}if(this.worker){this.fastupdate=!1,e=[];for(const s of this.index.values())s.then&&e.push(s);if(e.length){const s=this;return Promise.all(e).then(function(o){let i=0;for(const l of s.index.entries()){const u=l[0];l[1].then&&s.index.set(u,o[i++])}return s})}}else e.db&&(this.fastupdate=!1,this.mount(e.db))}F=Jt.prototype,F.mount=function(e){let t=this.field;if(this.tag)for(let s=0,o;s<this.R.length;s++){o=this.R[s];var n=void 0;this.index.set(o,n=new Xe({},this.reg)),t===this.field&&(t=t.slice(0)),t.push(o),n.tag=this.tag.get(o)}n=[];const r={db:e.db,type:e.type,fastupdate:e.fastupdate};for(let s=0,o,i;s<t.length;s++){r.field=i=t[s],o=this.index.get(i);const l=new e.constructor(e.id,r);l.id=e.id,n[s]=l.mount(o),o.document=!0,s?o.bypass=!0:o.store=this.store}return this.db=!0,Promise.all(n)},F.commit=async function(e,t){const n=[];for(const r of this.index.values())n.push(r.commit(e,t));await Promise.all(n),this.reg.clear()},F.destroy=function(){const e=[];for(const t of this.index.values())e.push(t.destroy());return Promise.all(e)};function zg(e,t){const n=new Map;let r=t.index||t.field||t;Ve(r)&&(r=[r]);for(let s=0,o,i;s<r.length;s++){if(o=r[s],Ve(o)||(i=o,o=o.field),i=Rr(i)?Object.assign({},e,i):e,this.worker){const l=new Dr(i);n.set(o,l)}this.worker||n.set(o,new Xe(i,this.reg)),i.custom?this.D[s]=i.custom:(this.D[s]=ro(o,this.J),i.filter&&(typeof this.D[s]=="string"&&(this.D[s]=new String(this.D[s])),this.D[s].I=i.filter)),this.field[s]=o}if(this.C){e=t.store,Ve(e)&&(e=[e]);for(let s=0,o,i;s<e.length;s++)o=e[s],i=o.field||o,o.custom?(this.C[s]=o.custom,o.custom.V=i):(this.C[s]=ro(i,this.J),o.filter&&(typeof this.C[s]=="string"&&(this.C[s]=new String(this.C[s])),this.C[s].I=o.filter))}return n}function ro(e,t){const n=e.split(":");let r=0;for(let s=0;s<n.length;s++)e=n[s],e[e.length-1]==="]"&&(e=e.substring(0,e.length-2))&&(t[r]=!0),e&&(n[r++]=e);return r<n.length&&(n.length=r),1<r?n:n[0]}F.append=function(e,t){return this.add(e,t,!0)},F.update=function(e,t){return this.remove(e).add(e,t)},F.remove=function(e){Rr(e)&&(e=Fr(e,this.key));for(var t of this.index.values())t.remove(e,!0);if(this.reg.has(e)){if(this.tag&&!this.fastupdate)for(let n of this.tag.values())for(let r of n){t=r[0];const s=r[1],o=s.indexOf(e);-1<o&&(1<s.length?s.splice(o,1):n.delete(t))}this.store&&this.store.delete(e),this.reg.delete(e)}return this.cache&&this.cache.remove(e),this},F.clear=function(){const e=[];for(const t of this.index.values()){const n=t.clear();n.then&&e.push(n)}if(this.tag)for(const t of this.tag.values())t.clear();return this.store&&this.store.clear(),this.cache&&this.cache.clear(),e.length?Promise.all(e):this},F.contain=function(e){return this.db?this.index.get(this.field[0]).db.has(e):this.reg.has(e)},F.cleanup=function(){for(const e of this.index.values())e.cleanup();return this},F.get=function(e){return this.db?this.index.get(this.field[0]).db.enrich(e).then(function(t){return t[0]&&t[0].doc||null}):this.store.get(e)||null},F.set=function(e,t){return typeof e=="object"&&(t=e,e=Fr(t,this.key)),this.store.set(e,t),this},F.searchCache=Nf,F.export=function(e,t,n=0,r=0){if(n<this.field.length){const i=this.field[n];if((t=this.index.get(i).export(e,i,n,r=1))&&t.then){const l=this;return t.then(function(){return l.export(e,i,n+1)})}return this.export(e,i,n+1)}let s,o;switch(r){case 0:s="reg",o=gf(this.reg),t=null;break;case 1:s="tag",o=this.tag&&df(this.tag,this.reg.size),t=null;break;case 2:s="doc",o=this.store&&Nl(this.store),t=null;break;default:return}return to.call(this,e,t,s,o,n,r)},F.import=function(e,t){var n=e.split(".");n[n.length-1]==="json"&&n.pop();const r=2<n.length?n[0]:"";if(n=2<n.length?n[2]:n[1],this.worker&&r)return this.index.get(r).import(e);if(t){if(typeof t=="string"&&(t=JSON.parse(t)),r)return this.index.get(r).import(n,t);switch(n){case"reg":this.fastupdate=!1,this.reg=mf(t,this.reg);for(let s=0,o;s<this.field.length;s++)o=this.index.get(this.field[s]),o.fastupdate=!1,o.reg=this.reg;if(this.worker){t=[];for(const s of this.index.values())t.push(s.import(e));return Promise.all(t)}break;case"tag":this.tag=pf(t,this.tag);break;case"doc":this.store=Al(t,this.store)}}},jl(Jt.prototype);function Nf(e,t,n){e=(typeof e=="object"?""+e.query:e).toLowerCase(),this.cache||(this.cache=new Yt);let r=this.cache.get(e);if(!r){if(r=this.search(e,t,n),r.then){const s=this;r.then(function(o){return s.cache.set(e,o),o})}this.cache.set(e,r)}return r}function Yt(e){this.limit=e&&e!==!0?e:1e3,this.cache=new Map,this.h=""}Yt.prototype.set=function(e,t){this.cache.set(this.h=e,t),this.cache.size>this.limit&&this.cache.delete(this.cache.keys().next().value)},Yt.prototype.get=function(e){const t=this.cache.get(e);return t&&this.h!==e&&(this.cache.delete(e),this.cache.set(this.h=e,t)),t},Yt.prototype.remove=function(e){for(const t of this.cache){const n=t[0];t[1].includes(e)&&this.cache.delete(n)}},Yt.prototype.clear=function(){this.cache.clear(),this.h=""};const Af={normalize:!1,numeric:!1,dedupe:!1},so={},Rl=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"]]),Of=new Map([["ae","a"],["oe","o"],["sh","s"],["kh","k"],["th","t"],["ph","f"],["pf","f"]]),Lf=[/([^aeo])h(.)/g,"$1$2",/([aeo])h([^aeo]|$)/g,"$1$2",/(.)\1+/g,"$1"],_f={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 Rf={Exact:Af,Default:so,Normalize:so,LatinBalance:{mapper:Rl},LatinAdvanced:{mapper:Rl,matcher:Of,replacer:Lf},LatinExtra:{mapper:Rl,replacer:Lf.concat([/(?!^)[aeo]/g,""]),matcher:Of},LatinSoundex:{dedupe:!1,include:{letter:!0},finalize:function(e){for(let n=0;n<e.length;n++){var t=e[n];let r=t.charAt(0),s=_f[r];for(let o=1,i;o<t.length&&(i=t.charAt(o),i==="h"||i==="w"||!(i=_f[i])||i===s||(r+=i,s=i,r.length!==4));o++);e[n]=r}}},CJK:{split:""},LatinExact:Af,LatinDefault:so,LatinSimple:so};Xe.prototype.remove=function(e,t){const n=this.reg.size&&(this.fastupdate?this.reg.get(e):this.reg.has(e));if(n){if(this.fastupdate){for(let r=0,s;r<n.length;r++)if(s=n[r])if(2>s.length)s.pop();else{const o=s.indexOf(e);o===n.length-1?s.pop():s.splice(o,1)}}else Ur(this.map,e),this.depth&&Ur(this.ctx,e);t||this.reg.delete(e)}return this.db&&(this.commit_task.push({del:e}),this.T&&Mf(this)),this.cache&&this.cache.remove(e),this};function Ur(e,t){let n=0;var r=typeof t>"u";if(e.constructor===Array){for(let s=0,o,i;s<e.length;s++)if((o=e[s])&&o.length)if(r)n++;else if(i=o.indexOf(t),0<=i){1<o.length?(o.splice(i,1),n++):delete e[s];break}else n++}else for(let s of e.entries()){r=s[0];const o=Ur(s[1],t);o?n+=o:e.delete(r)}return n}const Ig={memory:{resolution:1},performance:{resolution:3,fastupdate:!0,context:{depth:1,resolution:1}},match:{tokenize:"forward"},score:{resolution:9,context:{depth:2,resolution:3}}};Xe.prototype.add=function(e,t,n,r){if(t&&(e||e===0)){if(!r&&!n&&this.reg.has(e))return this.update(e,t);if(t=this.encoder.encode(t),r=t.length){const a=re(),c=re(),h=this.depth,f=this.resolution;for(let m=0;m<r;m++){let v=t[this.rtl?r-1-m:m];var s=v.length;if(s&&(h||!c[v])){var o=this.score?this.score(t,v,m,null,0):oo(f,r,m),i="";switch(this.tokenize){case"full":if(2<s){for(let w=0,d;w<s;w++)for(o=s;o>w;o--){i=v.substring(w,o),d=this.rtl?s-1-w:w;var l=this.score?this.score(t,v,m,i,d):oo(f,r,m,s,d);Br(this,c,i,l,e,n)}break}case"bidirectional":case"reverse":if(1<s){for(l=s-1;0<l;l--){i=v[this.rtl?s-1-l:l]+i;var u=this.score?this.score(t,v,m,i,l):oo(f,r,m,s,l);Br(this,c,i,u,e,n)}i=""}case"forward":if(1<s){for(l=0;l<s;l++)i+=v[this.rtl?s-1-l:l],Br(this,c,i,o,e,n);break}default:if(Br(this,c,v,o,e,n),h&&1<r&&m<r-1){for(s=re(),i=this.U,o=v,l=Math.min(h+1,this.rtl?m+1:r-m),s[o]=1,u=1;u<l;u++)if((v=t[this.rtl?r-1-m-u:m+u])&&!s[v]){s[v]=1;const w=this.score?this.score(t,o,m,v,u-1):oo(i+(r/2>i?0:1),r,m,l-1,u-1),d=this.bidirectional&&v>o;Br(this,a,d?o:v,w,e,n,d?v:o)}}}}}this.fastupdate||this.reg.add(e)}else t=""}return this.db&&(t||this.commit_task.push({del:e}),this.T&&Mf(this)),this};function Br(e,t,n,r,s,o,i){let l=i?e.ctx:e.map,u;if((!t[n]||i&&!(u=t[n])[i])&&(i?(t=u||(t[n]=re()),t[i]=1,(u=l.get(i))?l=u:l.set(i,l=new Map)):t[n]=1,(u=l.get(n))?l=u:l.set(n,l=u=[]),l=l[r]||(l[r]=[]),!o||!l.includes(s))){if(l.length===2**31-1){if(t=new Qt(l),e.fastupdate)for(let a of e.reg.values())a.includes(l)&&(a[a.indexOf(l)]=t);u[r]=l=t}l.push(s),e.fastupdate&&((r=e.reg.get(s))?r.push(l):e.reg.set(s,[l]))}}function oo(e,t,n,r,s){return n&&1<e?t+(r||0)<=e?n+(s||0):(e-1)/(t+(r||0))*(n+(s||0))+1|0:0}Xe.prototype.search=function(e,t,n){n||(t||typeof e!="object"?typeof t=="object"&&(n=t,t=0):(n=e,e=""));let r=[],s,o,i,l=0,u,a,c,h,f;n?(e=n.query||e,t=n.limit||t,l=n.offset||0,o=n.context,i=n.suggest,f=(u=n.resolve!==!1)&&n.enrich,c=n.boost,h=n.resolution,a=this.db&&n.tag):u=this.resolve;let m=this.encoder.encode(e);if(s=m.length,t=t||(u?100:0),s===1)return zf.call(this,m[0],"",t,l,u,f,a);if(o=this.depth&&o!==!1,s===2&&o&&!i)return zf.call(this,m[1],m[0],t,l,u,f,a);let v=re(),w=0,d;if(o&&(d=m[0],w=1),h||h===0||(h=d?this.U:this.resolution),this.db){if(this.db.search&&(e=this.db.search(this,m,t,l,i,u,f,a),e!==!1))return e;const p=this;return async function(){for(let g,S;w<s;w++){if((S=m[w])&&!v[S]){if(v[S]=1,g=await Fl(p,S,d,0,0,!1,!1),g=If(g,r,i,h)){r=g;break}d&&(i&&g&&r.length||(d=S))}i&&d&&w===s-1&&!r.length&&(h=p.resolution,d="",w=-1,v=re())}return Ff(r,h,t,l,i,c,u)}()}for(let p,g;w<s;w++){if((g=m[w])&&!v[g]){if(v[g]=1,p=Fl(this,g,d,0,0,!1,!1),p=If(p,r,i,h)){r=p;break}d&&(i&&p&&r.length||(d=g))}i&&d&&w===s-1&&!r.length&&(h=this.resolution,d="",w=-1,v=re())}return Ff(r,h,t,l,i,c,u)};function Ff(e,t,n,r,s,o,i){let l=e.length,u=e;if(1<l)u=Cf(e,t,n,r,s,o,i);else if(l===1)return i?_l.call(null,e[0],n,r):new J(e[0]);return i?u:new J(u)}function zf(e,t,n,r,s,o,i){return e=Fl(this,e,t,n,r,s,o,i),this.db?e.then(function(l){return s?l||[]:new J(l)}):e&&e.length?s?_l.call(this,e,n,r):new J(e):s?[]:new J}function If(e,t,n,r){let s=[];if(e&&e.length){if(e.length<=r){t.push(e);return}for(let o=0,i;o<r;o++)(i=e[o])&&(s[o]=i);if(s.length){t.push(s);return}}if(!n)return s}function Fl(e,t,n,r,s,o,i,l){let u;return n&&(u=e.bidirectional&&t>n)&&(u=n,n=t,t=u),e.db?e.db.get(t,n,r,s,o,i,l):(e=n?(e=e.ctx.get(n))&&e.get(t):e.map.get(t),e)}function Xe(e,t){if(!this||this.constructor!==Xe)return new Xe(e);if(e){var n=Ve(e)?e:e.preset;n&&(e=Object.assign({},Ig[n],e))}else e={};n=e.context;const r=n===!0?{depth:1}:n||{},s=Ve(e.encoder)?Rf[e.encoder]:e.encode||e.encoder||{};this.encoder=s.encode?s:typeof s=="object"?new zr(s):{encode:s},this.resolution=e.resolution||9,this.tokenize=n=(n=e.tokenize)&&n!=="default"&&n!=="exact"&&n||"strict",this.depth=n==="strict"&&r.depth||0,this.bidirectional=r.bidirectional!==!1,this.fastupdate=!!e.fastupdate,this.score=e.score||null,(n=e.keystore||0)&&(this.keystore=n),this.map=n?new Ze(n):new Map,this.ctx=n?new Ze(n):new Map,this.reg=t||(this.fastupdate?n?new Ze(n):new Map:n?new He(n):new Set),this.U=r.resolution||3,this.rtl=s.rtl||e.rtl||!1,this.cache=(n=e.cache||null)&&new Yt(n),this.resolve=e.resolve!==!1,(n=e.db)&&(this.db=this.mount(n)),this.T=e.commit!==!1,this.commit_task=[],this.commit_timer=null,this.priority=e.priority||4}F=Xe.prototype,F.mount=function(e){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),e.mount(this)},F.commit=function(e,t){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.commit(this,e,t)},F.destroy=function(){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.destroy()};function Mf(e){e.commit_timer||(e.commit_timer=setTimeout(function(){e.commit_timer=null,e.db.commit(e,void 0,void 0)},1))}F.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=[{clear:!0}]),this},F.append=function(e,t){return this.add(e,t,!0)},F.contain=function(e){return this.db?this.db.has(e):this.reg.has(e)},F.update=function(e,t){const n=this,r=this.remove(e);return r&&r.then?r.then(()=>n.add(e,t)):this.add(e,t)},F.cleanup=function(){return this.fastupdate?(Ur(this.map),this.depth&&Ur(this.ctx),this):this},F.searchCache=Nf,F.export=function(e,t,n=0,r=0){let s,o;switch(r){case 0:s="reg",o=gf(this.reg);break;case 1:s="cfg",o=null;break;case 2:s="map",o=Nl(this.map,this.reg.size);break;case 3:s="ctx",o=df(this.ctx,this.reg.size);break;default:return}return to.call(this,e,t,s,o,n,r)},F.import=function(e,t){if(t)switch(typeof t=="string"&&(t=JSON.parse(t)),e=e.split("."),e[e.length-1]==="json"&&e.pop(),e.length===3&&e.shift(),e=1<e.length?e[1]:e[0],e){case"reg":this.fastupdate=!1,this.reg=mf(t,this.reg);break;case"map":this.map=Al(t,this.map);break;case"ctx":this.ctx=pf(t,this.ctx)}},F.serialize=function(e=!0){let t="",n="",r="";if(this.reg.size){let o;for(var s of this.reg.keys())o||(o=typeof s),t+=(t?",":"")+(o==="string"?'"'+s+'"':s);t="index.reg=new Set(["+t+"]);",n=yf(this.map,o),n="index.map=new Map(["+n+"]);";for(const i of this.ctx.entries()){s=i[0];let l=yf(i[1],o);l="new Map(["+l+"])",l='["'+s+'",'+l+"]",r+=(r?",":"")+l}r="index.ctx=new Map(["+r+"]);"}return e?"function inject(index){"+t+n+r+"}":t+n+r},jl(Xe.prototype);const Df=typeof window<"u"&&(window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),io=["map","ctx","tag","reg","cfg"],Gt=re();function Uf(e,t={}){if(!this)return new Uf(e,t);typeof e=="object"&&(t=e,e=e.name),e||console.info("Default storage space was used, because a name was not passed."),this.id="flexsearch"+(e?":"+e.toLowerCase().replace(/[^a-z0-9_\-]/g,""):""),this.field=t.field?t.field.toLowerCase().replace(/[^a-z0-9_\-]/g,""):"",this.type=t.type,this.fastupdate=this.support_tag_search=!1,this.db=null,this.h={}}F=Uf.prototype,F.mount=function(e){return e.encoder?(e.db=this,this.open()):e.mount(this)},F.open=function(){if(this.db)return this.db;let e=this;navigator.storage&&navigator.storage.persist(),Gt[e.id]||(Gt[e.id]=[]),Gt[e.id].push(e.field);const t=Df.open(e.id,1);return t.onupgradeneeded=function(){const n=e.db=this.result;for(let r=0,s;r<io.length;r++){s=io[r];for(let o=0,i;o<Gt[e.id].length;o++)i=Gt[e.id][o],n.objectStoreNames.contains(s+(s!=="reg"&&i?":"+i:""))||n.createObjectStore(s+(s!=="reg"&&i?":"+i:""))}},e.db=Lt(t,function(n){e.db=n,e.db.onversionchange=function(){e.close()}})},F.close=function(){this.db&&this.db.close(),this.db=null},F.destroy=function(){const e=Df.deleteDatabase(this.id);return Lt(e)},F.clear=function(){const e=[];for(let n=0,r;n<io.length;n++){r=io[n];for(let s=0,o;s<Gt[this.id].length;s++)o=Gt[this.id][s],e.push(r+(r!=="reg"&&o?":"+o:""))}const t=this.db.transaction(e,"readwrite");for(let n=0;n<e.length;n++)t.objectStore(e[n]).clear();return Lt(t)},F.get=function(e,t,n=0,r=0,s=!0,o=!1){e=this.db.transaction((t?"ctx":"map")+(this.field?":"+this.field:""),"readonly").objectStore((t?"ctx":"map")+(this.field?":"+this.field:"")).get(t?t+":"+e:e);const i=this;return Lt(e).then(function(l){let u=[];if(!l||!l.length)return u;if(s){if(!n&&!r&&l.length===1)return l[0];for(let a=0,c;a<l.length;a++)if((c=l[a])&&c.length){if(r>=c.length){r-=c.length;continue}const h=n?r+Math.min(c.length-r,n):c.length;for(let f=r;f<h;f++)u.push(c[f]);if(r=0,u.length===n)break}return o?i.enrich(u):u}return l})},F.tag=function(e,t=0,n=0,r=!1){e=this.db.transaction("tag"+(this.field?":"+this.field:""),"readonly").objectStore("tag"+(this.field?":"+this.field:"")).get(e);const s=this;return Lt(e).then(function(o){return!o||!o.length||n>=o.length?[]:!t&&!n?o:(o=o.slice(n,n+t),r?s.enrich(o):o)})},F.enrich=function(e){typeof e!="object"&&(e=[e]);const t=this.db.transaction("reg","readonly").objectStore("reg"),n=[];for(let r=0;r<e.length;r++)n[r]=Lt(t.get(e[r]));return Promise.all(n).then(function(r){for(let s=0;s<r.length;s++)r[s]={id:e[s],doc:r[s]?JSON.parse(r[s]):null};return r})},F.has=function(e){return e=this.db.transaction("reg","readonly").objectStore("reg").getKey(e),Lt(e).then(function(t){return!!t})},F.search=null,F.info=function(){},F.transaction=function(e,t,n){e+=e!=="reg"&&this.field?":"+this.field:"";let r=this.h[e+":"+t];if(r)return n.call(this,r);let s=this.db.transaction(e,t);this.h[e+":"+t]=r=s.objectStore(e);const o=n.call(this,r);return this.h[e+":"+t]=null,Lt(s).finally(function(){return s=r=null,o})},F.commit=async function(e,t,n){if(t)await this.clear(),e.commit_task=[];else{let r=e.commit_task;e.commit_task=[];for(let s=0,o;s<r.length;s++)if(o=r[s],o.clear){await this.clear(),t=!0;break}else r[s]=o.del;t||(n||(r=r.concat($g(e.reg))),r.length&&await this.remove(r))}e.reg.size&&(await this.transaction("map","readwrite",function(r){for(const s of e.map){const o=s[0],i=s[1];i.length&&(t?r.put(i,o):r.get(o).onsuccess=function(){let l=this.result;var u;if(l&&l.length){const a=Math.max(l.length,i.length);for(let c=0,h,f;c<a;c++)if((f=i[c])&&f.length){if((h=l[c])&&h.length)for(u=0;u<f.length;u++)h.push(f[u]);else l[c]=f;u=1}}else l=i,u=1;u&&r.put(l,o)})}}),await this.transaction("ctx","readwrite",function(r){for(const s of e.ctx){const o=s[0],i=s[1];for(const l of i){const u=l[0],a=l[1];a.length&&(t?r.put(a,o+":"+u):r.get(o+":"+u).onsuccess=function(){let c=this.result;var h;if(c&&c.length){const f=Math.max(c.length,a.length);for(let m=0,v,w;m<f;m++)if((w=a[m])&&w.length){if((v=c[m])&&v.length)for(h=0;h<w.length;h++)v.push(w[h]);else c[m]=w;h=1}}else c=a,h=1;h&&r.put(c,o+":"+u)})}}}),e.store?await this.transaction("reg","readwrite",function(r){for(const s of e.store){const o=s[0],i=s[1];r.put(typeof i=="object"?JSON.stringify(i):1,o)}}):e.bypass||await this.transaction("reg","readwrite",function(r){for(const s of e.reg.keys())r.put(1,s)}),e.tag&&await this.transaction("tag","readwrite",function(r){for(const s of e.tag){const o=s[0],i=s[1];i.length&&(r.get(o).onsuccess=function(){let l=this.result;l=l&&l.length?l.concat(i):i,r.put(l,o)})}}),e.map.clear(),e.ctx.clear(),e.tag&&e.tag.clear(),e.store&&e.store.clear(),e.document||e.reg.clear())};function zl(e,t,n){const r=e.value;let s,o=0;for(let i=0,l;i<r.length;i++){if(l=n?r:r[i]){for(let u=0,a,c;u<t.length;u++)if(c=t[u],a=l.indexOf(c),0<=a)if(s=1,1<l.length)l.splice(a,1);else{r[i]=[];break}o+=l.length}if(n)break}o?s&&e.update(r):e.delete(),e.continue()}F.remove=function(e){return typeof e!="object"&&(e=[e]),Promise.all([this.transaction("map","readwrite",function(t){t.openCursor().onsuccess=function(){const n=this.result;n&&zl(n,e)}}),this.transaction("ctx","readwrite",function(t){t.openCursor().onsuccess=function(){const n=this.result;n&&zl(n,e)}}),this.transaction("tag","readwrite",function(t){t.openCursor().onsuccess=function(){const n=this.result;n&&zl(n,e,!0)}}),this.transaction("reg","readwrite",function(t){for(let n=0;n<e.length;n++)t.delete(e[n])})])};function Lt(e,t){return new Promise((n,r)=>{e.onsuccess=e.oncomplete=function(){t&&t(this.result),t=null,n(this.result)},e.onerror=e.onblocked=r,e=null})}const lo={Encoder:zr,Document:Jt},Mg=Rf,Dg={finalize:e=>{let t=[];for(const n of e)t.push(...Bg(n));return t}};function Ug(e){return e>=19968&&e<=40959||e>=12352&&e<=12543||e>=44032&&e<=55203||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=191471||e>=196608&&e<=205743||e>=191472&&e<=192095||e>=63744&&e<=64255||e>=194560&&e<=195103}function Bg(e){const t=[];let n="";for(const r of e){const s=r.codePointAt(0);Ug(s)?(n&&(t.push(n),n=""),t.push(r)):n+=r}return n&&t.push(n),t}const Il=new lo.Encoder(Mg.Default,Dg);class bg{constructor({adminUrl:t,apiKey:n,dir:r}){Lh(this,Y);const s=r==="rtl",o=r==="rtl"?"reverse":"forward";this.apiUrl=t,this.apiKey=n,this.postsIndex=new lo.Document({tokenize:o,rtl:s,document:{id:"id",index:["title","excerpt"],store:!0},encoder:Il}),this.authorsIndex=new lo.Document({tokenize:o,rtl:s,document:{id:"id",index:["name"],store:!0},encoder:Il}),this.tagsIndex=new lo.Document({tokenize:o,rtl:s,document:{id:"id",index:["name"],store:!0},encoder:Il}),this.init=this.init.bind(this),this.search=this.search.bind(this)}async init(){await Oe(this,Y,_h).call(this),await Oe(this,Y,zh).call(this),await Oe(this,Y,Dh).call(this)}search(t){const n=this.postsIndex.search(t,{enrich:!0}),r=this.authorsIndex.search(t,{enrich:!0}),s=this.tagsIndex.search(t,{enrich:!0});return{posts:Oe(this,Y,yo).call(this,n),authors:Oe(this,Y,yo).call(this,r),tags:Oe(this,Y,yo).call(this,s)}}}Y=new WeakSet,_h=async function(){const t=await Oe(this,Y,Rh).call(this);t.length>0&&Oe(this,Y,Fh).call(this,t)},Rh=async function(){try{const t=`${this.apiUrl}/ghost/api/content/search-index/posts/?key=${this.apiKey}`;return(await(await fetch(t)).json()).posts}catch(t){return console.error("Error fetching posts:",t),[]}},Fh=function(t){t.forEach(n=>{this.postsIndex.add(n)})},zh=async function(){const t=await Oe(this,Y,Ih).call(this);t.length>0&&Oe(this,Y,Mh).call(this,t)},Ih=async function(){try{const t=`${this.apiUrl}/ghost/api/content/search-index/authors/?key=${this.apiKey}`;return(await(await fetch(t)).json()).authors}catch(t){return console.error("Error fetching authors:",t),[]}},Mh=function(t){t.forEach(n=>{this.authorsIndex.add(n)})},Dh=async function(){const t=await Oe(this,Y,Uh).call(this);t.length>0&&Oe(this,Y,Bh).call(this,t)},Uh=async function(){try{const t=`${this.apiUrl}/ghost/api/content/search-index/tags/?key=${this.apiKey}`;return(await(await fetch(t)).json()).tags}catch(t){return console.error("Error fetching tags:",t),[]}},Bh=function(t){t.forEach(n=>{this.tagsIndex.add(n)})},yo=function(t){const n=[],r={};return t.forEach(s=>{s.result.forEach(o=>{r[o.id]||(n.push(o.doc),r[o.id]=!0)})}),n};var _n={exports:{}};const Vg={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Hg={Authors:"الكتّاب",Cancel:"إلغاء","No matches found":"لا يوجد نتائج مطابقة",Posts:"منشورات","Search posts, tags and authors":"قم بالبحث عن المنشورات، الوسوم و الكتّاب","Show more results":"اظهر المزيد من النتائج",Tags:"الوسوم"},Kg={Authors:"Автори",Cancel:"Отказ","No matches found":"Няма съвпадения",Posts:"Публикации","Search posts, tags and authors":"Търсене в публикации, етикети и автори","Show more results":"Покажи още резултати",Tags:"Етикети"},Wg={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},qg={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Qg={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"},Jg={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"},Yg={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"},Gg={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"},Zg={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"},Xg={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},em={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},tm={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},nm={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"},rm={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"},sm={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"},om={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},im={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"},lm={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"},um={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"},am={Authors:"מחברים",Cancel:"ביטול","No matches found":"לא נמצאו התאמות",Posts:"פוסטים","Search posts, tags and authors":"חיפוש פוסטים, תגיות ומחברים","Show more results":"הצגת תוצאות נוספות",Tags:"תגיות"},cm={Authors:"लेखक",Cancel:"रद्द करें","No matches found":"कोई मैच नहीं मिला",Posts:"पोस्ट","Search posts, tags and authors":"पोस्ट, टैग और लेखक की तलाश करें","Show more results":"और परिणाम दिखाएं",Tags:"टैग"},fm={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},hm={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"},dm={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"},pm={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},gm={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"},mm={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},ym={Authors:"작성자",Cancel:"취소","No matches found":"일치하는 결과가 없어요",Posts:"게시물","Search posts, tags and authors":"게시물, 태그, 작성자 검색","Show more results":"더 많은 결과 보기",Tags:"태그"},vm={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},wm={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Sm={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"},Cm={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},xm={Authors:"Нийтлэгчид",Cancel:"Цуцлах","No matches found":"Тохирох хайлтын үр дүн олдсонгүй",Posts:"Нийтлэлүүд","Search posts, tags and authors":"Нийтлэл, ангилал, нийтлэгчдээр хайх","Show more results":"Илүү олон үр дүн харуулах",Tags:"Ангилалууд"},$m={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},km={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"},Em={Authors:"लेखकहरू",Cancel:"रद्द गर्नुहोस्","No matches found":"कुनै परिणाम भेटिएन",Posts:"पोस्टहरू","Search posts, tags and authors":"पोस्टहरू, ट्यागहरू र लेखकहरू खोज्नुहोस्","Show more results":"थप परिणामहरू देखाउनुहोस्",Tags:"ट्यागहरू"},Pm={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"},jm={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Tm={Authors:"ਲੇਖਕ",Cancel:"ਰੱਦ ਕਰੋ","No matches found":"ਕੋਈ ਮੇਲ ਨਹੀਂ ਮਿਲਿਆ",Posts:"ਪੋਸਟਾਂ","Search posts, tags and authors":"ਪੋਸਟਾਂ, ਟੈਗ ਅਤੇ ਲੇਖਕ ਖੋਜੋ","Show more results":"ਹੋਰ ਨਤੀਜੇ ਦਿਖਾਓ",Tags:"ਟੈਗ"},Nm={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"},Am={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"},Om={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"},Lm={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"},_m={Authors:"Авторы",Cancel:"Отмена","No matches found":"Совпадений не найдено",Posts:"Записи","Search posts, tags and authors":"Поиск по записям, тегам и авторам","Show more results":"Показать больше результатов",Tags:"Теги"},Rm={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Fm={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"},zm={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"},Im={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Mm={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"},Dm={Authors:"Аутори",Cancel:"Откажите","No matches found":"Нема резултата",Posts:"Објаве","Search posts, tags and authors":"Претражите објаве, tag-ове и ауторе","Show more results":"Прикажите више резултата",Tags:"Tag-ови"},Um={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"},Bm={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},bm={Authors:"ஆசிரியர்கள்",Cancel:"ரத்து செய்","No matches found":"பொருத்தங்கள் எதுவும் இல்லை",Posts:"பதிவுகள்","Search posts, tags and authors":"பதிவுகள், குறிச்சொற்கள் மற்றும் ஆசிரியர்களைத் தேடுங்கள்","Show more results":"மேலும் முடிவுகளைக் காட்டு",Tags:"குறிச்சொற்கள்"},Vm={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Hm={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"},Km={Authors:"Автори",Cancel:"Скасувати","No matches found":"Збігів не знайдено",Posts:"Публікації","Search posts, tags and authors":"Шукайте публікацій, теги та авторів","Show more results":"Показати більше результатів",Tags:"Теги"},Wm={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},qm={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Qm={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, chuyên mục & tác giả","Show more results":"Xem thêm kết quả",Tags:"Chuyên mục"},Jm={Authors:"作者",Cancel:"取消","No matches found":"未找到匹配项",Posts:"文章","Search posts, tags and authors":"搜索文章、标签和作者","Show more results":"显示更多结果",Tags:"标签"},Ym={Authors:"作者",Cancel:"取消","No matches found":"無相符結果",Posts:"文章","Search posts, tags and authors":"搜尋文章、標籤與作者","Show more results":"更多結果",Tags:"標籤"};var Bf;function bf(){return Bf||(Bf={"/ghost/i18n/locales/af/search.json":function(){return Vg},"/ghost/i18n/locales/ar/search.json":function(){return Hg},"/ghost/i18n/locales/bg/search.json":function(){return Kg},"/ghost/i18n/locales/bn/search.json":function(){return Wg},"/ghost/i18n/locales/bs/search.json":function(){return qg},"/ghost/i18n/locales/ca/search.json":function(){return Qg},"/ghost/i18n/locales/cs/search.json":function(){return Jg},"/ghost/i18n/locales/da/search.json":function(){return Yg},"/ghost/i18n/locales/de/search.json":function(){return Gg},"/ghost/i18n/locales/de-CH/search.json":function(){return Zg},"/ghost/i18n/locales/el/search.json":function(){return Xg},"/ghost/i18n/locales/en/search.json":function(){return em},"/ghost/i18n/locales/eo/search.json":function(){return tm},"/ghost/i18n/locales/es/search.json":function(){return nm},"/ghost/i18n/locales/et/search.json":function(){return rm},"/ghost/i18n/locales/eu/search.json":function(){return sm},"/ghost/i18n/locales/fa/search.json":function(){return om},"/ghost/i18n/locales/fi/search.json":function(){return im},"/ghost/i18n/locales/fr/search.json":function(){return lm},"/ghost/i18n/locales/gd/search.json":function(){return um},"/ghost/i18n/locales/he/search.json":function(){return am},"/ghost/i18n/locales/hi/search.json":function(){return cm},"/ghost/i18n/locales/hr/search.json":function(){return fm},"/ghost/i18n/locales/hu/search.json":function(){return hm},"/ghost/i18n/locales/id/search.json":function(){return dm},"/ghost/i18n/locales/is/search.json":function(){return pm},"/ghost/i18n/locales/it/search.json":function(){return gm},"/ghost/i18n/locales/ja/search.json":function(){return mm},"/ghost/i18n/locales/ko/search.json":function(){return ym},"/ghost/i18n/locales/kz/search.json":function(){return vm},"/ghost/i18n/locales/lt/search.json":function(){return wm},"/ghost/i18n/locales/lv/search.json":function(){return Sm},"/ghost/i18n/locales/mk/search.json":function(){return Cm},"/ghost/i18n/locales/mn/search.json":function(){return xm},"/ghost/i18n/locales/ms/search.json":function(){return $m},"/ghost/i18n/locales/nb/search.json":function(){return km},"/ghost/i18n/locales/ne/search.json":function(){return Em},"/ghost/i18n/locales/nl/search.json":function(){return Pm},"/ghost/i18n/locales/nn/search.json":function(){return jm},"/ghost/i18n/locales/pa/search.json":function(){return Tm},"/ghost/i18n/locales/pl/search.json":function(){return Nm},"/ghost/i18n/locales/pt/search.json":function(){return Am},"/ghost/i18n/locales/pt-BR/search.json":function(){return Om},"/ghost/i18n/locales/ro/search.json":function(){return Lm},"/ghost/i18n/locales/ru/search.json":function(){return _m},"/ghost/i18n/locales/si/search.json":function(){return Rm},"/ghost/i18n/locales/sk/search.json":function(){return Fm},"/ghost/i18n/locales/sl/search.json":function(){return zm},"/ghost/i18n/locales/sq/search.json":function(){return Im},"/ghost/i18n/locales/sr/search.json":function(){return Mm},"/ghost/i18n/locales/sr-Cyrl/search.json":function(){return Dm},"/ghost/i18n/locales/sv/search.json":function(){return Um},"/ghost/i18n/locales/sw/search.json":function(){return Bm},"/ghost/i18n/locales/ta/search.json":function(){return bm},"/ghost/i18n/locales/th/search.json":function(){return Vm},"/ghost/i18n/locales/tr/search.json":function(){return Hm},"/ghost/i18n/locales/uk/search.json":function(){return Km},"/ghost/i18n/locales/ur/search.json":function(){return Wm},"/ghost/i18n/locales/uz/search.json":function(){return qm},"/ghost/i18n/locales/vi/search.json":function(){return Qm},"/ghost/i18n/locales/zh/search.json":function(){return Jm},"/ghost/i18n/locales/zh-Hant/search.json":function(){return Ym}})}function Zt(e){function t(n){var r=Vf(n,e);if(r!==null)return bf()[r]();throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}return t.resolve=function(n){var r=Vf(n,e);return r!==null?r:require.resolve(n)},t}function Vf(e,t){var n=Gm(e);e=uo(e);var r;e[0]==="/"&&(t="");for(var s=bf(),o=["",".js",".json"];n?r=uo(t+"/node_modules/"+e):r=uo(t+"/"+e),!r.endsWith("/..");){for(var i=0;i<o.length;i++){var l=r+o[i];if(s[l])return l}if(!n)break;var u=uo(t+"/..");if(u===t)break;t=u}return null}function Gm(e){var t=e[0];if(t==="/"||t==="\\")return!1;var n=e[1],r=e[2];return!(t==="."&&(!n||n==="/"||n==="\\")||t==="."&&n==="."&&(!r||r==="/"||r==="\\")||n===":"&&(r==="/"||r==="\\"))}function uo(e){e=e.replace(/\\/g,"/");for(var t=e.split("/"),n=t[0]==="",r=1;r<t.length;r++)(t[r]==="."||t[r]==="")&&t.splice(r--,1);for(var r=1;r<t.length;r++)t[r]===".."&&r>0&&t[r-1]!==".."&&t[r-1]!=="."&&(t.splice(--r,2),r--);return e=t.join("/"),n&&e[0]!=="/"?e="/"+e:e.length===0&&(e="."),e}var br={exports:{}};const I=e=>typeof e=="string",Vr=()=>{let e,t;const n=new Promise((r,s)=>{e=r,t=s});return n.resolve=e,n.reject=t,n},Hf=e=>e==null?"":""+e,Zm=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},Xm=/###/g,Kf=e=>e&&e.indexOf("###")>-1?e.replace(Xm,"."):e,Wf=e=>!e||I(e),Hr=(e,t,n)=>{const r=I(t)?t.split("."):t;let s=0;for(;s<r.length-1;){if(Wf(e))return{};const o=Kf(r[s]);!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++s}return Wf(e)?{}:{obj:e,k:Kf(r[s])}},qf=(e,t,n)=>{const{obj:r,k:s}=Hr(e,t,Object);if(r!==void 0||t.length===1){r[s]=n;return}let o=t[t.length-1],i=t.slice(0,t.length-1),l=Hr(e,i,Object);for(;l.obj===void 0&&i.length;)o=`${i[i.length-1]}.${o}`,i=i.slice(0,i.length-1),l=Hr(e,i,Object),l&&l.obj&&typeof l.obj[`${l.k}.${o}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${o}`]=n},e0=(e,t,n,r)=>{const{obj:s,k:o}=Hr(e,t,Object);s[o]=s[o]||[],s[o].push(n)},ao=(e,t)=>{const{obj:n,k:r}=Hr(e,t);if(n)return n[r]},t0=(e,t,n)=>{const r=ao(e,n);return r!==void 0?r:ao(t,n)},Qf=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?I(e[r])||e[r]instanceof String||I(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Qf(e[r],t[r],n):e[r]=t[r]);return e},Rn=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var n0={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const r0=e=>I(e)?e.replace(/[&<>"'\/]/g,t=>n0[t]):e;class s0{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const o0=[" ",",","?","!",";"],i0=new s0(20),l0=(e,t,n)=>{t=t||"",n=n||"";const r=o0.filter(i=>t.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const s=i0.getRegExp(`(${r.map(i=>i==="?"?"\\?":i).join("|")})`);let o=!s.test(e);if(!o){const i=e.indexOf(n);i>0&&!s.test(e.substring(0,i))&&(o=!0)}return o},Ml=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let s=e;for(let o=0;o<r.length;){if(!s||typeof s!="object")return;let i,l="";for(let u=o;u<r.length;++u)if(u!==o&&(l+=n),l+=r[u],i=s[l],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&u<r.length-1)continue;o+=u-o+1;break}s=i}return s},co=e=>e&&e.replace("_","-"),u0={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class fo{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||u0,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,s){return s&&!this.debug?null:(I(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new fo(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new fo(this.logger,t)}}var et=new fo;class ho{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const s=this.observers[r].get(n)||0;this.observers[r].set(n,s+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(i=>{let[l,u]=i;for(let a=0;a<u;a++)l(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[l,u]=i;for(let a=0;a<u;a++)l.apply(l,[t,...r])})}}class Jf extends ho{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,i=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],r&&(Array.isArray(r)?l.push(...r):I(r)&&o?l.push(...r.split(o)):l.push(r)));const u=ao(this.data,l);return!u&&!n&&!r&&t.indexOf(".")>-1&&(t=l[0],n=l[1],r=l.slice(2).join(".")),u||!i||!I(r)?u:Ml(this.data&&this.data[t]&&this.data[t][n],r,o)}addResource(t,n,r,s){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let l=[t,n];r&&(l=l.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(l=t.split("."),s=n,n=l[1]),this.addNamespaces(n),qf(this.data,l,s),o.silent||this.emit("added",t,n,r,s)}addResources(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(I(r[o])||Array.isArray(r[o]))&&this.addResource(t,n,o,r[o],{silent:!0});s.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,s,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),s=r,r=n,n=l[1]),this.addNamespaces(n);let u=ao(this.data,l)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),s?Qf(u,r,o):u={...u,...r},qf(this.data,l,u),i.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(s=>n[s]&&Object.keys(n[s]).length>0)}toJSON(){return this.data}}var Yf={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,s){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,r,s))}),t}};const Gf={};class po extends ho{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Zm(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=et.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const i=r&&t.indexOf(r)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!l0(t,r,s);if(i&&!l){const u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:I(o)?[o]:o};const a=t.split(r);(r!==s||r===s&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),t=a.join(s)}return{key:t,namespaces:I(o)?[o]:o}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const s=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:i,namespaces:l}=this.extractFromKey(t[t.length-1],n),u=l[l.length-1],a=n.lng||this.language,c=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(a&&a.toLowerCase()==="cimode"){if(c){const y=n.nsSeparator||this.options.nsSeparator;return s?{res:`${u}${y}${i}`,usedKey:i,exactUsedKey:i,usedLng:a,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${y}${i}`}return s?{res:i,usedKey:i,exactUsedKey:i,usedLng:a,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:i}const h=this.resolve(t,n);let f=h&&h.res;const m=h&&h.usedKey||i,v=h&&h.exactUsedKey||i,w=Object.prototype.toString.apply(f),d=["[object Number]","[object Function]","[object RegExp]"],p=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,S=!I(f)&&typeof f!="boolean"&&typeof f!="number";if(g&&f&&S&&d.indexOf(w)<0&&!(I(p)&&Array.isArray(f))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const y=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,f,{...n,ns:l}):`key '${i} (${this.language})' returned an object instead of string.`;return s?(h.res=y,h.usedParams=this.getUsedParamsDetails(n),h):y}if(o){const y=Array.isArray(f),$=y?[]:{},x=y?v:m;for(const P in f)if(Object.prototype.hasOwnProperty.call(f,P)){const N=`${x}${o}${P}`;$[P]=this.translate(N,{...n,joinArrays:!1,ns:l}),$[P]===N&&($[P]=f[P])}f=$}}else if(g&&I(p)&&Array.isArray(f))f=f.join(p),f&&(f=this.extendTranslation(f,t,n,r));else{let y=!1,$=!1;const x=n.count!==void 0&&!I(n.count),P=po.hasDefaultValue(n),N=x?this.pluralResolver.getSuffix(a,n.count,n):"",O=n.ordinal&&x?this.pluralResolver.getSuffix(a,n.count,{ordinal:!1}):"",U=x&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),Ne=U&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${N}`]||n[`defaultValue${O}`]||n.defaultValue;!this.isValidLookup(f)&&P&&(y=!0,f=Ne),this.isValidLookup(f)||($=!0,f=i);const X=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&$?void 0:f,Me=P&&Ne!==f&&this.options.updateMissing;if($||y||Me){if(this.logger.log(Me?"updateKey":"missingKey",a,u,i,Me?Ne:f),o){const k=this.resolve(i,{...n,keySeparator:!1});k&&k.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 Ce=[];const Ae=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ae&&Ae[0])for(let k=0;k<Ae.length;k++)Ce.push(Ae[k]);else this.options.saveMissingTo==="all"?Ce=this.languageUtils.toResolveHierarchy(n.lng||this.language):Ce.push(n.lng||this.language);const C=(k,A,V)=>{const E=P&&V!==f?V:X;this.options.missingKeyHandler?this.options.missingKeyHandler(k,u,A,E,Me,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(k,u,A,E,Me,n),this.emit("missingKey",k,u,A,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&x?Ce.forEach(k=>{const A=this.pluralResolver.getSuffixes(k,n);U&&n[`defaultValue${this.options.pluralSeparator}zero`]&&A.indexOf(`${this.options.pluralSeparator}zero`)<0&&A.push(`${this.options.pluralSeparator}zero`),A.forEach(V=>{C([k],i+V,n[`defaultValue${V}`]||Ne)})}):C(Ce,i,Ne))}f=this.extendTranslation(f,t,n,h,r),$&&f===i&&this.options.appendNamespaceToMissingKey&&(f=`${u}:${i}`),($||y)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${i}`:i,y?f:void 0):f=this.options.parseMissingKeyHandler(f))}return s?(h.res=f,h.usedParams=this.getUsedParamsDetails(n),h):f}extendTranslation(t,n,r,s,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const a=I(t)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(a){const f=t.match(this.interpolator.nestingRegexp);c=f&&f.length}let h=r.replace&&!I(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),t=this.interpolator.interpolate(t,h,r.lng||this.language||s.usedLng,r),a){const f=t.match(this.interpolator.nestingRegexp),m=f&&f.length;c<m&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&s&&s.res&&(r.lng=this.language||s.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var f=arguments.length,m=new Array(f),v=0;v<f;v++)m[v]=arguments[v];return o&&o[0]===m[0]&&!r.context?(i.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${n[0]}`),null):i.translate(...m,n)},r)),r.interpolation&&this.interpolator.reset()}const l=r.postProcess||this.options.postProcess,u=I(l)?[l]:l;return t!=null&&u&&u.length&&r.applyPostProcessor!==!1&&(t=Yf.handle(u,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,s,o,i,l;return I(t)&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(r))return;const a=this.extractFromKey(u,n),c=a.key;s=c;let h=a.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const f=n.count!==void 0&&!I(n.count),m=f&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),v=n.context!==void 0&&(I(n.context)||typeof n.context=="number")&&n.context!=="",w=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);h.forEach(d=>{this.isValidLookup(r)||(l=d,!Gf[`${w[0]}-${d}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(Gf[`${w[0]}-${d}`]=!0,this.logger.warn(`key "${s}" for languages "${w.join(", ")}" won't get resolved as namespace "${l}" 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!!!")),w.forEach(p=>{if(this.isValidLookup(r))return;i=p;const g=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(g,c,p,d,n);else{let y;f&&(y=this.pluralResolver.getSuffix(p,n.count,n));const $=`${this.options.pluralSeparator}zero`,x=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(g.push(c+y),n.ordinal&&y.indexOf(x)===0&&g.push(c+y.replace(x,this.options.pluralSeparator)),m&&g.push(c+$)),v){const P=`${c}${this.options.contextSeparator}${n.context}`;g.push(P),f&&(g.push(P+y),n.ordinal&&y.indexOf(x)===0&&g.push(P+y.replace(x,this.options.pluralSeparator)),m&&g.push(P+$))}}let S;for(;S=g.pop();)this.isValidLookup(r)||(o=S,r=this.getResource(p,d,S,n))}))})}),{res:r,usedKey:s,exactUsedKey:o,usedLng:i,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,s):this.resourceStore.getResource(t,n,r,s)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!I(t.replace);let s=r?t.replace:t;if(r&&typeof t.count<"u"&&(s.count=t.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!r){s={...s};for(const o of n)delete s[o]}return s}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const Dl=e=>e.charAt(0).toUpperCase()+e.slice(1);class Zf{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=et.create("languageUtils")}getScriptPartFromCode(t){if(t=co(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=co(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(I(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let s=Intl.getCanonicalLocales(t)[0];if(s&&this.options.lowerCaseLng&&(s=s.toLowerCase()),s)return s}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(s=>s.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Dl(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Dl(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Dl(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const s=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(s))&&(n=s)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return n=s;n=this.options.supportedLngs.find(o=>{if(o===s)return o;if(!(o.indexOf("-")<0&&s.indexOf("-")<0)&&(o.indexOf("-")>0&&s.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===s||o.indexOf(s)===0&&s.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),I(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),s=[],o=i=>{i&&(this.isSupportedCode(i)?s.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return I(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):I(t)&&o(this.formatLanguageCode(t)),r.forEach(i=>{s.indexOf(i)<0&&o(this.formatLanguageCode(i))}),s}}let a0=[{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}],c0={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const f0=["v1","v2","v3"],h0=["v4"],Xf={zero:0,one:1,two:2,few:3,many:4,other:5},d0=()=>{const e={};return a0.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:c0[t.fc]}})}),e};class p0{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=et.create("pluralResolver"),(!this.options.compatibilityJSON||h0.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=d0(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const r=co(t==="dev"?"en":t),s=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:s});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let i;try{i=new Intl.PluralRules(r,{type:s})}catch{if(!t.match(/-|_/))return;const u=this.languageUtils.getLanguagePartFromCode(t);i=this.getRule(u,n)}return this.pluralRulesCache[o]=i,i}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(s=>`${n}${s}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((s,o)=>Xf[s]-Xf[o]).map(s=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${s}`):r.numbers.map(s=>this.getSuffix(t,s,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(t,r);return s?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${s.select(n)}`:this.getSuffixRetroCompatible(s,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let s=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));const o=()=>this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString();return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?`_plural_${s.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!f0.includes(this.options.compatibilityJSON)}}const eh=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=t0(e,t,n);return!o&&s&&I(n)&&(o=Ml(e,n,r),o===void 0&&(o=Ml(t,n,r))),o},Ul=e=>e.replace(/\$/g,"$$$$");class g0{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=et.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:s,prefix:o,prefixEscaped:i,suffix:l,suffixEscaped:u,formatSeparator:a,unescapeSuffix:c,unescapePrefix:h,nestingPrefix:f,nestingPrefixEscaped:m,nestingSuffix:v,nestingSuffixEscaped:w,nestingOptionsSeparator:d,maxReplaces:p,alwaysFormat:g}=t.interpolation;this.escape=n!==void 0?n:r0,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=o?Rn(o):i||"{{",this.suffix=l?Rn(l):u||"}}",this.formatSeparator=a||",",this.unescapePrefix=c?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=f?Rn(f):m||Rn("$t("),this.nestingSuffix=v?Rn(v):w||Rn(")"),this.nestingOptionsSeparator=d||",",this.maxReplaces=p||1e3,this.alwaysFormat=g!==void 0?g:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,s){let o,i,l;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},a=m=>{if(m.indexOf(this.formatSeparator)<0){const p=eh(n,u,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(p,void 0,r,{...s,...n,interpolationkey:m}):p}const v=m.split(this.formatSeparator),w=v.shift().trim(),d=v.join(this.formatSeparator).trim();return this.format(eh(n,u,w,this.options.keySeparator,this.options.ignoreJSONStructure),d,r,{...s,...n,interpolationkey:w})};this.resetRegExp();const c=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,h=s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>Ul(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?Ul(this.escape(m)):Ul(m)}].forEach(m=>{for(l=0;o=m.regex.exec(t);){const v=o[1].trim();if(i=a(v),i===void 0)if(typeof c=="function"){const d=c(t,o,s);i=I(d)?d:""}else if(s&&Object.prototype.hasOwnProperty.call(s,v))i="";else if(h){i=o[0];continue}else this.logger.warn(`missed to pass in variable ${v} for interpolating ${t}`),i="";else!I(i)&&!this.useRawValueToEscape&&(i=Hf(i));const w=m.safeValue(i);if(t=t.replace(o[0],w),h?(m.regex.lastIndex+=i.length,m.regex.lastIndex-=o[0].length):m.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,o,i;const l=(u,a)=>{const c=this.nestingOptionsSeparator;if(u.indexOf(c)<0)return u;const h=u.split(new RegExp(`${c}[ ]*{`));let f=`{${h[1]}`;u=h[0],f=this.interpolate(f,i);const m=f.match(/'/g),v=f.match(/"/g);(m&&m.length%2===0&&!v||v.length%2!==0)&&(f=f.replace(/'/g,'"'));try{i=JSON.parse(f),a&&(i={...a,...i})}catch(w){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,w),`${u}${c}${f}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,u};for(;s=this.nestingRegexp.exec(t);){let u=[];i={...r},i=i.replace&&!I(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let a=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const c=s[1].split(this.formatSeparator).map(h=>h.trim());s[1]=c.shift(),u=c,a=!0}if(o=n(l.call(this,s[1].trim(),i),i),o&&s[0]===t&&!I(o))return o;I(o)||(o=Hf(o)),o||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${t}`),o=""),a&&(o=u.reduce((c,h)=>this.format(c,h,r.lng,{...r,interpolationkey:s[1].trim()}),o.trim())),t=t.replace(s[0],o),this.regexp.lastIndex=0}return t}}const m0=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const s=r[1].substring(0,r[1].length-1);t==="currency"&&s.indexOf(":")<0?n.currency||(n.currency=s.trim()):t==="relativetime"&&s.indexOf(":")<0?n.range||(n.range=s.trim()):s.split(";").forEach(i=>{if(i){const[l,...u]=i.split(":"),a=u.join(":").trim().replace(/^'+|'+$/g,""),c=l.trim();n[c]||(n[c]=a),a==="false"&&(n[c]=!1),a==="true"&&(n[c]=!0),isNaN(a)||(n[c]=parseInt(a,10))}})}return{formatName:t,formatOptions:n}},Fn=e=>{const t={};return(n,r,s)=>{let o=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(o={...o,[s.interpolationkey]:void 0});const i=r+JSON.stringify(o);let l=t[i];return l||(l=e(co(r),s),t[i]=l),l(n)}};class y0{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=et.create("formatter"),this.options=t,this.formats={number:Fn((n,r)=>{const s=new Intl.NumberFormat(n,{...r});return o=>s.format(o)}),currency:Fn((n,r)=>{const s=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>s.format(o)}),datetime:Fn((n,r)=>{const s=new Intl.DateTimeFormat(n,{...r});return o=>s.format(o)}),relativetime:Fn((n,r)=>{const s=new Intl.RelativeTimeFormat(n,{...r});return o=>s.format(o,r.range||"day")}),list:Fn((n,r)=>{const s=new Intl.ListFormat(n,{...r});return o=>s.format(o)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Fn(n)}format(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=n.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(l=>l.indexOf(")")>-1)){const l=o.findIndex(u=>u.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,l)].join(this.formatSeparator)}return o.reduce((l,u)=>{const{formatName:a,formatOptions:c}=m0(u);if(this.formats[a]){let h=l;try{const f=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},m=f.locale||f.lng||s.locale||s.lng||r;h=this.formats[a](l,m,{...c,...s,...f})}catch(f){this.logger.warn(f)}return h}else this.logger.warn(`there was no format function for ${a}`);return l},t)}}const v0=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class w0 extends ho{constructor(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=s,this.logger=et.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,s.backend,s)}queueLoad(t,n,r,s){const o={},i={},l={},u={};return t.forEach(a=>{let c=!0;n.forEach(h=>{const f=`${a}|${h}`;!r.reload&&this.store.hasResourceBundle(a,h)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?i[f]===void 0&&(i[f]=!0):(this.state[f]=1,c=!1,i[f]===void 0&&(i[f]=!0),o[f]===void 0&&(o[f]=!0),u[h]===void 0&&(u[h]=!0)))}),c||(l[a]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(u)}}loaded(t,n,r){const s=t.split("|"),o=s[0],i=s[1];n&&this.emit("failedLoading",o,i,n),!n&&r&&this.store.addResourceBundle(o,i,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const l={};this.queue.forEach(u=>{e0(u.loaded,[o],i),v0(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(a=>{l[a]||(l[a]={});const c=u.loaded[a];c.length&&c.forEach(h=>{l[a][h]===void 0&&(l[a][h]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(u=>!u.done)}read(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:s,wait:o,callback:i});return}this.readingCalls++;const l=(a,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(a&&c&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,s+1,o*2,i)},o);return}i(a,c)},u=this.backend[r].bind(this.backend);if(u.length===2){try{const a=u(t,n);a&&typeof a.then=="function"?a.then(c=>l(null,c)).catch(l):l(null,a)}catch(a){l(a)}return}return u(t,n,l)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=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."),s&&s();I(t)&&(t=this.languageUtils.toResolveHierarchy(t)),I(n)&&(n=[n]);const o=this.queueLoad(t,n,r,s);if(!o.toLoad.length)return o.pending.length||s(),null;o.toLoad.forEach(i=>{this.loadOne(i)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),s=r[0],o=r[1];this.read(s,o,"read",void 0,void 0,(i,l)=>{i&&this.logger.warn(`${n}loading namespace ${o} for language ${s} failed`,i),!i&&l&&this.logger.log(`${n}loaded namespace ${o} for language ${s}`,l),this.loaded(t,i,l)})}saveMissing(t,n,r,s,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" 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(!(r==null||r==="")){if(this.backend&&this.backend.create){const u={...i,isUpdate:o},a=this.backend.create.bind(this.backend);if(a.length<6)try{let c;a.length===5?c=a(t,n,r,s,u):c=a(t,n,r,s),c&&typeof c.then=="function"?c.then(h=>l(null,h)).catch(l):l(null,c)}catch(c){l(c)}else a(t,n,r,s,l,u)}!t||!t[0]||this.store.addResource(t[0],n,r,s)}}}const th=()=>({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:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),I(e[1])&&(t.defaultValue=e[1]),I(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),nh=e=>(I(e.ns)&&(e.ns=[e.ns]),I(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),I(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),go=()=>{},S0=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class Kr extends ho{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=nh(t),this.services={},this.logger=et,this.modules={external:[]},S0(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(I(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const s=th();this.options={...s,...this.options,...nh(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...s.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const o=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?et.init(o(this.modules.logger),this.options):et.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=y0);const h=new Zf(this.options);this.store=new Jf(this.options.resources,this.options);const f=this.services;f.logger=et,f.resourceStore=this.store,f.languageUtils=h,f.pluralResolver=new p0(h,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(f.formatter=o(c),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new g0(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new w0(o(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(m){for(var v=arguments.length,w=new Array(v>1?v-1:0),d=1;d<v;d++)w[d-1]=arguments[d];t.emit(m,...w)}),this.modules.languageDetector&&(f.languageDetector=o(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=o(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new po(this.services,this.options),this.translator.on("*",function(m){for(var v=arguments.length,w=new Array(v>1?v-1:0),d=1;d<v;d++)w[d-1]=arguments[d];t.emit(m,...w)}),this.modules.external.forEach(m=>{m.init&&m.init(this)})}if(this.format=this.options.interpolation.format,r||(r=go),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[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(c=>{this[c]=function(){return t.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return t.store[c](...arguments),t}});const u=Vr(),a=()=>{const c=(h,f)=>{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),u.resolve(f),r(h,f)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),u}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:go;const s=I(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(s&&s.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],i=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(a=>{a!=="cimode"&&o.indexOf(a)<0&&o.push(a)})};s?i(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>i(u)),this.options.preload&&this.options.preload.forEach(l=>i(l)),this.services.backendConnector.load(o,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(l)})}else r(null)}reloadResources(t,n,r){const s=Vr();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=go),this.services.backendConnector.reload(t,n,o=>{s.resolve(),r(o)}),s}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&Yf.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const s=Vr();this.emit("languageChanging",t);const o=u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},i=(u,a)=>{a?(o(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit("languageChanged",a),this.logger.log("languageChanged",a)):this.isLanguageChangingTo=void 0,s.resolve(function(){return r.t(...arguments)}),n&&n(u,function(){return r.t(...arguments)})},l=u=>{!t&&!u&&this.services.languageDetector&&(u=[]);const a=I(u)?u:this.services.languageUtils.getBestMatchFromCodes(u);a&&(this.language||o(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(a)),this.loadResources(a,c=>{i(c,a)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),s}getFixedT(t,n,r){var s=this;const o=function(i,l){let u;if(typeof l!="object"){for(var a=arguments.length,c=new Array(a>2?a-2:0),h=2;h<a;h++)c[h-2]=arguments[h];u=s.options.overloadTranslationOptionHandler([i,l].concat(c))}else u={...l};u.lng=u.lng||o.lng,u.lngs=u.lngs||o.lngs,u.ns=u.ns||o.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||r||o.keyPrefix);const f=s.options.keySeparator||".";let m;return u.keyPrefix&&Array.isArray(i)?m=i.map(v=>`${u.keyPrefix}${f}${v}`):m=u.keyPrefix?`${u.keyPrefix}${f}${i}`:i,s.t(m,u)};return I(t)?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=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 r=n.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(l,u)=>{const a=this.services.backendConnector.state[`${l}|${u}`];return a===-1||a===0||a===2};if(n.precheck){const l=n.precheck(this,i);if(l!==void 0)return l}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,t)&&(!s||i(o,t)))}loadNamespaces(t,n){const r=Vr();return this.options.ns?(I(t)&&(t=[t]),t.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Vr();I(t)&&(t=[t]);const s=this.options.preload||[],o=t.filter(i=>s.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return o.length?(this.options.preload=s.concat(o),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["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"],r=this.services&&this.services.languageUtils||new Zf(th());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Kr(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:go;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const s={...this.options,...t,isClone:!0},o=new Kr(s);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(l=>{o[l]=this[l]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new Jf(this.store.data,s),o.services.resourceStore=o.store),o.translator=new po(o.services,s),o.translator.on("*",function(l){for(var u=arguments.length,a=new Array(u>1?u-1:0),c=1;c<u;c++)a[c-1]=arguments[c];o.emit(l,...a)}),o.init(s,n),o.translator.options=s,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const rh=Kr.createInstance();rh.createInstance=Kr.createInstance;var C0=rh;const sh=Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})),zn=bh(sh);var Bl={exports:{}},bl={},oh={exports:{}};(function(e){var t=zn,n=zn;function r(o){return n.existsSync(t.join(o,"package.json"))}function s(o,i){if(o=o||e.parent.filename,i=i||r,typeof o=="string"&&(o[o.length-1]!==t.sep&&(o+=t.sep),o=o.split(t.sep)),!o.length)throw new Error("package.json not found in path");o.pop();var l=o.join(t.sep);try{if(i(l))return l}catch{}return s(o,i)}e.exports=s})(oh);var x0=oh.exports,ih={exports:{}},lh={},$0=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"},Vl={exports:{}};typeof Object.create=="function"?Vl.exports=function(t,n){t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:Vl.exports=function(t,n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t};var k0=Vl.exports;(function(e){var t=/%[sdj%]/g;e.format=function(C){if(!S(C)){for(var k=[],A=0;A<arguments.length;A++)k.push(s(arguments[A]));return k.join(" ")}for(var A=1,V=arguments,E=V.length,L=String(C).replace(t,function(M){if(M==="%%")return"%";if(A>=E)return M;switch(M){case"%s":return String(V[A++]);case"%d":return Number(V[A++]);case"%j":try{return JSON.stringify(V[A++])}catch{return"[Circular]"}default:return M}}),_=V[A];A<E;_=V[++A])d(_)||!P(_)?L+=" "+_:L+=" "+s(_);return L},e.deprecate=function(C,k){if($(he.process))return function(){return e.deprecate(C,k).apply(this,arguments)};if(process.noDeprecation===!0)return C;var A=!1;function V(){if(!A){if(process.throwDeprecation)throw new Error(k);process.traceDeprecation?console.trace(k):console.error(k),A=!0}return C.apply(this,arguments)}return V};var n={},r;e.debuglog=function(C){if($(r)&&(r=process.env.NODE_DEBUG||""),C=C.toUpperCase(),!n[C])if(new RegExp("\\b"+C+"\\b","i").test(r)){var k=process.pid;n[C]=function(){var A=e.format.apply(e,arguments);console.error("%s %d: %s",C,k,A)}}else n[C]=function(){};return n[C]};function s(C,k){var A={seen:[],stylize:i};return arguments.length>=3&&(A.depth=arguments[2]),arguments.length>=4&&(A.colors=arguments[3]),w(k)?A.showHidden=k:k&&e._extend(A,k),$(A.showHidden)&&(A.showHidden=!1),$(A.depth)&&(A.depth=2),$(A.colors)&&(A.colors=!1),$(A.customInspect)&&(A.customInspect=!0),A.colors&&(A.stylize=o),u(A,C,A.depth)}e.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function o(C,k){var A=s.styles[k];return A?"\x1B["+s.colors[A][0]+"m"+C+"\x1B["+s.colors[A][1]+"m":C}function i(C,k){return C}function l(C){var k={};return C.forEach(function(A,V){k[A]=!0}),k}function u(C,k,A){if(C.customInspect&&k&&U(k.inspect)&&k.inspect!==e.inspect&&!(k.constructor&&k.constructor.prototype===k)){var V=k.inspect(A,C);return S(V)||(V=u(C,V,A)),V}var E=a(C,k);if(E)return E;var L=Object.keys(k),_=l(L);if(C.showHidden&&(L=Object.getOwnPropertyNames(k)),O(k)&&(L.indexOf("message")>=0||L.indexOf("description")>=0))return c(k);if(L.length===0){if(U(k)){var M=k.name?": "+k.name:"";return C.stylize("[Function"+M+"]","special")}if(x(k))return C.stylize(RegExp.prototype.toString.call(k),"regexp");if(N(k))return C.stylize(Date.prototype.toString.call(k),"date");if(O(k))return c(k)}var B="",ve=!1,De=["{","}"];if(v(k)&&(ve=!0,De=["[","]"]),U(k)){var Xt=k.name?": "+k.name:"";B=" [Function"+Xt+"]"}if(x(k)&&(B=" "+RegExp.prototype.toString.call(k)),N(k)&&(B=" "+Date.prototype.toUTCString.call(k)),O(k)&&(B=" "+c(k)),L.length===0&&(!ve||k.length==0))return De[0]+B+De[1];if(A<0)return x(k)?C.stylize(RegExp.prototype.toString.call(k),"regexp"):C.stylize("[Object]","special");C.seen.push(k);var tt;return ve?tt=h(C,k,A,_,L):tt=L.map(function(ny){return f(C,k,A,_,ny,ve)}),C.seen.pop(),m(tt,B,De)}function a(C,k){if($(k))return C.stylize("undefined","undefined");if(S(k)){var A="'"+JSON.stringify(k).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return C.stylize(A,"string")}if(g(k))return C.stylize(""+k,"number");if(w(k))return C.stylize(""+k,"boolean");if(d(k))return C.stylize("null","null")}function c(C){return"["+Error.prototype.toString.call(C)+"]"}function h(C,k,A,V,E){for(var L=[],_=0,M=k.length;_<M;++_)Ae(k,String(_))?L.push(f(C,k,A,V,String(_),!0)):L.push("");return E.forEach(function(B){B.match(/^\d+$/)||L.push(f(C,k,A,V,B,!0))}),L}function f(C,k,A,V,E,L){var _,M,B;if(B=Object.getOwnPropertyDescriptor(k,E)||{value:k[E]},B.get?B.set?M=C.stylize("[Getter/Setter]","special"):M=C.stylize("[Getter]","special"):B.set&&(M=C.stylize("[Setter]","special")),Ae(V,E)||(_="["+E+"]"),M||(C.seen.indexOf(B.value)<0?(d(A)?M=u(C,B.value,null):M=u(C,B.value,A-1),M.indexOf(`
50
+ `,n=this.context.stylesUrl;return n?A.jsxs(A.Fragment,{children:[A.jsx("link",{rel:"stylesheet",href:n}),A.jsx("style",{dangerouslySetInnerHTML:{__html:t}}),A.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"})]}):A.jsxs(A.Fragment,{children:[A.jsx("style",{dangerouslySetInnerHTML:{__html:t}}),A.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"})]})}renderFrameContainer(){const t=um(),n={...t.frame.common};return A.jsx("div",{style:t.modalContainer,className:"gh-root-frame",children:A.jsxs(sm,{style:n,title:"portal-popup",head:this.renderFrameStyles(),searchdir:this.context.dir,children:[A.jsx("div",{onClick:r=>this.handlePopupClose(r),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)]"}),A.jsx(zf,{})]})})}render(){const{showPopup:t}=this.context;return t?this.renderFrameContainer():null}}_o(bf,"contextType",we);var F;function he(e,t,n){const r=typeof n,s=typeof e;if(r!=="undefined"){if(s!=="undefined"){if(n){if(s==="function"&&r===s)return function(l){return e(n(l))};if(t=e.constructor,t===n.constructor){if(t===Array)return n.concat(e);if(t===Map){var o=new Map(n);for(var i of e)o.set(i[0],i[1]);return o}if(t===Set){i=new Set(n);for(o of e.values())i.add(o);return i}}}return e}return n}return s==="undefined"?t:e}function se(){return Object.create(null)}function We(e){return typeof e=="string"}function Ur(e){return typeof e=="object"}function Am(e){const t=[];for(const n of e.keys())t.push(n);return t}function Br(e,t){if(We(t))e=e[t];else for(let n=0;e&&n<t.length;n++)e=e[t[n]];return e}function Tm(e){let t=0;for(let n=0,r;n<e.length;n++)(r=e[n])&&t<r.length&&(t=r.length);return t}const Om=/[^\p{L}\p{N}]+/u,Nm=/(\d{3})/g,Lm=/(\D)(\d{3})/g,_m=/(\d{3})(\D)/g,Uf=/[\u0300-\u036f]/g;function Vr(e={}){if(!this||this.constructor!==Vr)return new Vr(...arguments);if(arguments.length)for(e=0;e<arguments.length;e++)this.assign(arguments[e]);else this.assign(e)}F=Vr.prototype,F.assign=function(e){this.normalize=he(e.normalize,!0,this.normalize);let t=e.include,n=t||e.exclude||e.split,r;if(n||n===""){if(typeof n=="object"&&n.constructor!==RegExp){let s="";r=!t,t||(s+="\\p{Z}"),n.letter&&(s+="\\p{L}"),n.number&&(s+="\\p{N}",r=!!t),n.symbol&&(s+="\\p{S}"),n.punctuation&&(s+="\\p{P}"),n.control&&(s+="\\p{C}"),(n=n.char)&&(s+=typeof n=="object"?n.join(""):n);try{this.split=new RegExp("["+(t?"^":"")+s+"]+","u")}catch{this.split=/\s+/}}else this.split=n,r=n===!1||2>"a1a".split(n).length;this.numeric=he(e.numeric,r)}else{try{this.split=he(this.split,Om)}catch{this.split=/\s+/}this.numeric=he(e.numeric,he(this.numeric,!0))}if(this.prepare=he(e.prepare,null,this.prepare),this.finalize=he(e.finalize,null,this.finalize),n=e.filter,this.filter=typeof n=="function"?n:he(n&&new Set(n),null,this.filter),this.dedupe=he(e.dedupe,!0,this.dedupe),this.matcher=he((n=e.matcher)&&new Map(n),null,this.matcher),this.mapper=he((n=e.mapper)&&new Map(n),null,this.mapper),this.stemmer=he((n=e.stemmer)&&new Map(n),null,this.stemmer),this.replacer=he(e.replacer,null,this.replacer),this.minlength=he(e.minlength,1,this.minlength),this.maxlength=he(e.maxlength,1024,this.maxlength),this.rtl=he(e.rtl,!1,this.rtl),(this.cache=n=he(e.cache,!0,this.cache))&&(this.H=null,this.S=typeof n=="number"?n:2e5,this.B=new Map,this.G=new Map,this.L=this.K=128),this.h="",this.M=null,this.A="",this.N=null,this.matcher)for(const s of this.matcher.keys())this.h+=(this.h?"|":"")+s;if(this.stemmer)for(const s of this.stemmer.keys())this.A+=(this.A?"|":"")+s;return this},F.addStemmer=function(e,t){return this.stemmer||(this.stemmer=new Map),this.stemmer.set(e,t),this.A+=(this.A?"|":"")+e,this.N=null,this.cache&&Qt(this),this},F.addFilter=function(e){return typeof e=="function"?this.filter=e:(this.filter||(this.filter=new Set),this.filter.add(e)),this.cache&&Qt(this),this},F.addMapper=function(e,t){return typeof e=="object"?this.addReplacer(e,t):1<e.length?this.addMatcher(e,t):(this.mapper||(this.mapper=new Map),this.mapper.set(e,t),this.cache&&Qt(this),this)},F.addMatcher=function(e,t){return typeof e=="object"?this.addReplacer(e,t):2>e.length&&(this.dedupe||this.mapper)?this.addMapper(e,t):(this.matcher||(this.matcher=new Map),this.matcher.set(e,t),this.h+=(this.h?"|":"")+e,this.M=null,this.cache&&Qt(this),this)},F.addReplacer=function(e,t){return typeof e=="string"?this.addMatcher(e,t):(this.replacer||(this.replacer=[]),this.replacer.push(e,t),this.cache&&Qt(this),this)},F.encode=function(e){if(this.cache&&e.length<=this.K)if(this.H){if(this.B.has(e))return this.B.get(e)}else this.H=setTimeout(Qt,50,this);this.normalize&&(typeof this.normalize=="function"?e=this.normalize(e):e=Uf?e.normalize("NFKD").replace(Uf,"").toLowerCase():e.toLowerCase()),this.prepare&&(e=this.prepare(e)),this.numeric&&3<e.length&&(e=e.replace(Lm,"$1 $2").replace(_m,"$1 $2").replace(Nm,"$1 "));const t=!(this.dedupe||this.mapper||this.filter||this.matcher||this.stemmer||this.replacer);let n=[],r=this.split||this.split===""?e.split(this.split):e;for(let o=0,i,l;o<r.length;o++)if((i=l=r[o])&&!(i.length<this.minlength||i.length>this.maxlength)){if(t)n.push(i);else if(!this.filter||(typeof this.filter=="function"?this.filter(i):!this.filter.has(i))){if(this.cache&&i.length<=this.L)if(this.H){var s=this.G.get(i);if(s||s===""){s&&n.push(s);continue}}else this.H=setTimeout(Qt,50,this);if(this.stemmer&&2<i.length&&(this.N||(this.N=new RegExp("(?!^)("+this.A+")$")),i=i.replace(this.N,a=>this.stemmer.get(a))),i&&(this.mapper||this.dedupe&&1<i.length)){s="";for(let a=0,u="",f,h;a<i.length;a++)f=i.charAt(a),f===u&&this.dedupe||((h=this.mapper&&this.mapper.get(f))||h===""?h===u&&this.dedupe||!(u=h)||(s+=h):s+=u=f);i=s}if(this.matcher&&1<i.length&&(this.M||(this.M=new RegExp("("+this.h+")","g")),i=i.replace(this.M,a=>this.matcher.get(a))),i&&this.replacer)for(s=0;i&&s<this.replacer.length;s+=2)i=i.replace(this.replacer[s],this.replacer[s+1]);this.cache&&l.length<=this.L&&(this.G.set(l,i),this.G.size>this.S&&(this.G.clear(),this.L=this.L/1.1|0)),i&&n.push(i)}}return this.finalize&&(n=this.finalize(n)||n),this.cache&&e.length<=this.K&&(this.B.set(e,n),this.B.size>this.S&&(this.B.clear(),this.K=this.K/1.1|0)),n};function Qt(e){e.H=null,e.B.clear(),e.G.clear()}let Rn,Hr;async function Rm(e){e=e.data;var t=e.task;const n=e.id;let r=e.args;switch(t){case"init":Hr=e.options||{},(t=e.factory)?(Function("return "+t)()(self),Rn=new self.FlexSearch.Index(Hr),delete self.FlexSearch):Rn=new tt(Hr),postMessage({id:n});break;default:let s;t==="export"&&(r[1]?(r[0]=Hr.export,r[2]=0,r[3]=1):r=null),t==="import"?r[0]&&(e=await Hr.import.call(Rn,r[0]),Rn.import(r[0],e)):(s=r&&Rn[t].apply(Rn,r))&&s.then&&(s=await s),postMessage(t==="search"?{id:n,msg:s}:{id:n})}}function Vl(e){Wr.call(e,"add"),Wr.call(e,"append"),Wr.call(e,"search"),Wr.call(e,"update"),Wr.call(e,"remove")}let Hl,Bf,co;function Fm(){Hl=co=0}function Wr(e){this[e+"Async"]=function(){const t=arguments;var n=t[t.length-1];let r;if(typeof n=="function"&&(r=n,delete t[t.length-1]),Hl?co||(co=Date.now()-Bf>=this.priority*this.priority*3):(Hl=setTimeout(Fm,0),Bf=Date.now()),co){const o=this;return new Promise(i=>{setTimeout(function(){i(o[e+"Async"].apply(o,t))},0)})}const s=this[e].apply(this,t);return n=s.then?s:new Promise(o=>o(s)),r&&n.then(r),n}}let Fn=0;function Kr(e={}){function t(i){function l(a){a=a.data||a;const u=a.id,f=u&&s.h[u];f&&(f(a.msg),delete s.h[u])}if(this.worker=i,this.h=se(),this.worker)return r?this.worker.on("message",l):this.worker.onmessage=l,e.config?new Promise(function(a){s.h[++Fn]=function(){a(s),1e9<Fn&&(Fn=0)},s.worker.postMessage({id:Fn,task:"init",factory:n,options:e})}):(this.worker.postMessage({task:"init",factory:n,options:e}),this.priority=e.priority||4,this)}if(!this||this.constructor!==Kr)return new Kr(e);let n=typeof self<"u"?self._factory:typeof window<"u"?window._factory:null;n&&(n=n.toString());const r=typeof window>"u",s=this,o=Im(n,r,e.worker);return o.then?o.then(function(i){return t.call(s,i)}):t.call(this,o)}Lt("add"),Lt("append"),Lt("search"),Lt("update"),Lt("remove"),Lt("clear"),Lt("export"),Lt("import"),Vl(Kr.prototype);function Lt(e){Kr.prototype[e]=function(){const t=this,n=[].slice.call(arguments);var r=n[n.length-1];let s;return typeof r=="function"&&(s=r,n.pop()),r=new Promise(function(o){e==="export"&&typeof n[0]=="function"&&(n[0]=null),t.h[++Fn]=o,t.worker.postMessage({task:e,id:Fn,args:n})}),s?(r.then(s),this):r}}function Im(e,t,n){return t?typeof module<"u"?new(require("worker_threads")).Worker(__dirname+"/worker/node.js"):Promise.resolve().then(()=>Rh).then(function(r){return new r.Worker("undefined/node/node.mjs")}):e?new window.Worker(URL.createObjectURL(new Blob(["onmessage="+Rm.toString()],{type:"text/javascript"}))):new window.Worker(typeof n=="string"?n:(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:re&&re.tagName.toUpperCase()==="SCRIPT"&&re.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"),{type:"module"})}function Wl(e,t=0){let n=[],r=[];t&&(t=25e4/t*5e3|0);for(const s of e.entries())r.push(s),r.length===t&&(n.push(r),r=[]);return r.length&&n.push(r),n}function Kl(e,t){t||(t=new Map);for(let n=0,r;n<e.length;n++)r=e[n],t.set(r[0],r[1]);return t}function Vf(e,t=0){let n=[],r=[];t&&(t=25e4/t*1e3|0);for(const s of e.entries())r.push([s[0],Wl(s[1])[0]]),r.length===t&&(n.push(r),r=[]);return r.length&&n.push(r),n}function Hf(e,t){t||(t=new Map);for(let n=0,r,s;n<e.length;n++)r=e[n],s=t.get(r[0]),t.set(r[0],Kl(r[1],s));return t}function Wf(e){let t=[],n=[];for(const r of e.keys())n.push(r),n.length===25e4&&(t.push(n),n=[]);return n.length&&t.push(n),t}function Kf(e,t){t||(t=new Set);for(let n=0;n<e.length;n++)t.add(e[n]);return t}function fo(e,t,n,r,s,o,i=0){const l=r&&r.constructor===Array;var a=l?r.shift():r;if(!a)return this.export(e,t,s,o+1);if((a=e((t?t+".":"")+(i+1)+"."+n,JSON.stringify(a)))&&a.then){const u=this;return a.then(function(){return fo.call(u,e,t,n,l?r:null,s,o,i+1)})}return fo.call(this,e,t,n,l?r:null,s,o,i+1)}function qf(e,t){let n="";for(const r of e.entries()){e=r[0];const s=r[1];let o="";for(let i=0,l;i<s.length;i++){l=s[i]||[""];let a="";for(let u=0;u<l.length;u++)a+=(a?",":"")+(t==="string"?'"'+l[u]+'"':l[u]);a="["+a+"]",o+=(o?",":"")+a}o='["'+e+'",['+o+"]]",n+=(n?",":"")+o}return n}function Gf(e,t,n,r){let s=[];for(let o=0,i;o<e.index.length;o++)if(i=e.index[o],t>=i.length)t-=i.length;else{t=i[r?"splice":"slice"](t,n);const l=t.length;if(l&&(s=s.length?s.concat(t):t,n-=l,r&&(e.length-=l),!n))break;t=0}return s}function Jt(e){if(!this||this.constructor!==Jt)return new Jt(e);this.index=e?[e]:[],this.length=e?e.length:0;const t=this;return new Proxy([],{get(n,r){if(r==="length")return t.length;if(r==="push")return function(s){t.index[t.index.length-1].push(s),t.length++};if(r==="pop")return function(){if(t.length)return t.length--,t.index[t.index.length-1].pop()};if(r==="indexOf")return function(s){let o=0;for(let i=0,l,a;i<t.index.length;i++){if(l=t.index[i],a=l.indexOf(s),0<=a)return o+a;o+=l.length}return-1};if(r==="includes")return function(s){for(let o=0;o<t.index.length;o++)if(t.index[o].includes(s))return!0;return!1};if(r==="slice")return function(s,o){return Gf(t,s||0,o||t.length,!1)};if(r==="splice")return function(s,o){return Gf(t,s||0,o||t.length,!0)};if(r==="constructor")return Array;if(typeof r!="symbol")return(n=t.index[r/2**31|0])&&n[r]},set(n,r,s){return n=r/2**31|0,(t.index[n]||(t.index[n]=[]))[r]=s,t.length++,!0}})}Jt.prototype.clear=function(){this.index.length=0},Jt.prototype.destroy=function(){this.proxy=this.index=null},Jt.prototype.push=function(){};function et(e=8){if(!this||this.constructor!==et)return new et(e);this.index=se(),this.h=[],this.size=0,32<e?(this.B=Jf,this.A=BigInt(e)):(this.B=Qf,this.A=e)}et.prototype.get=function(e){const t=this.index[this.B(e)];return t&&t.get(e)},et.prototype.set=function(e,t){var n=this.B(e);let r=this.index[n];r?(n=r.size,r.set(e,t),(n-=r.size)&&this.size++):(this.index[n]=r=new Map([[e,t]]),this.h.push(r),this.size++)};function Ke(e=8){if(!this||this.constructor!==Ke)return new Ke(e);this.index=se(),this.h=[],this.size=0,32<e?(this.B=Jf,this.A=BigInt(e)):(this.B=Qf,this.A=e)}Ke.prototype.add=function(e){var t=this.B(e);let n=this.index[t];n?(t=n.size,n.add(e),(t-=n.size)&&this.size++):(this.index[t]=n=new Set([e]),this.h.push(n),this.size++)},F=et.prototype,F.has=Ke.prototype.has=function(e){const t=this.index[this.B(e)];return t&&t.has(e)},F.delete=Ke.prototype.delete=function(e){const t=this.index[this.B(e)];t&&t.delete(e)&&this.size--},F.clear=Ke.prototype.clear=function(){this.index=se(),this.h=[],this.size=0},F.values=Ke.prototype.values=function*(){for(let e=0;e<this.h.length;e++)for(let t of this.h[e].values())yield t},F.keys=Ke.prototype.keys=function*(){for(let e=0;e<this.h.length;e++)for(let t of this.h[e].keys())yield t},F.entries=Ke.prototype.entries=function*(){for(let e=0;e<this.h.length;e++)for(let t of this.h[e].entries())yield t};function Qf(e){let t=2**this.A-1;if(typeof e=="number")return e&t;let n=0,r=this.A+1;for(let s=0;s<e.length;s++)n=(n*r^e.charCodeAt(s))&t;return this.A===32?n+2**31:n}function Jf(e){let t=BigInt(2)**this.A-BigInt(1);var n=typeof e;if(n==="bigint")return e&t;if(n==="number")return BigInt(e)&t;n=BigInt(0);let r=this.A+BigInt(1);for(let s=0;s<e.length;s++)n=(n*r^BigInt(e.charCodeAt(s)))&t;return n}Yt.prototype.add=function(e,t,n){if(Ur(e)&&(t=e,e=Br(t,this.key)),t&&(e||e===0)){if(!n&&this.reg.has(e))return this.update(e,t);for(let l=0,a;l<this.field.length;l++){a=this.D[l];var r=this.index.get(this.field[l]);if(typeof a=="function"){var s=a(t);s&&r.add(e,s,!1,!0)}else s=a.I,(!s||s(t))&&(a.constructor===String?a=[""+a]:We(a)&&(a=[a]),Gl(t,a,this.J,0,r,e,a[0],n))}if(this.tag)for(r=0;r<this.F.length;r++){var o=this.F[r];s=this.tag.get(this.R[r]);let l=se();if(typeof o=="function"){if(o=o(t),!o)continue}else{var i=o.I;if(i&&!i(t))continue;o.constructor===String&&(o=""+o),o=Br(t,o)}if(s&&o){We(o)&&(o=[o]);for(let a=0,u,f;a<o.length;a++)if(u=o[a],!l[u]&&(l[u]=1,(i=s.get(u))?f=i:s.set(u,f=[]),!n||!f.includes(e))){if(f.length===2**31-1){if(i=new Jt(f),this.fastupdate)for(let h of this.reg.values())h.includes(f)&&(h[h.indexOf(f)]=i);s.set(u,f=i)}f.push(e),this.fastupdate&&((i=this.reg.get(e))?i.push(f):this.reg.set(e,[f]))}}}if(this.store&&(!n||!this.store.has(e))){let l;if(this.C){l=se();for(let a=0,u;a<this.C.length;a++){if(u=this.C[a],(n=u.I)&&!n(t))continue;let f;if(typeof u=="function"){if(f=u(t),!f)continue;u=[u.V]}else if(We(u)||u.constructor===String){l[u]=t[u];continue}ql(t,l,u,0,u[0],f)}}this.store.set(e,l||t)}this.worker&&(this.fastupdate||this.reg.add(e))}return this};function ql(e,t,n,r,s,o){if(e=e[s],r===n.length-1)t[s]=o||e;else if(e)if(e.constructor===Array)for(t=t[s]=Array(e.length),s=0;s<e.length;s++)ql(e,t,n,r,s);else t=t[s]||(t[s]=se()),s=n[++r],ql(e,t,n,r,s)}function Gl(e,t,n,r,s,o,i,l){if(e=e[i])if(r===t.length-1){if(e.constructor===Array){if(n[r]){for(t=0;t<e.length;t++)s.add(o,e[t],!0,!0);return}e=e.join(" ")}s.add(o,e,l,!0)}else if(e.constructor===Array)for(i=0;i<e.length;i++)Gl(e,t,n,r,s,o,i,l);else i=t[++r],Gl(e,t,n,r,s,o,i,l);else s.db&&s.remove(o)}function Yf(e,t,n,r,s,o,i){const l=e.length;let a=[],u,f;u=se();for(let h=0,c,m,v,w;h<t;h++)for(let d=0;d<l;d++)if(v=e[d],h<v.length&&(c=v[h]))for(let p=0;p<c.length;p++){if(m=c[p],(f=u[m])?u[m]++:(f=0,u[m]=1),w=a[f]||(a[f]=[]),!i){let g=h+(d||!s?0:o||0);w=w[g]||(w[g]=[])}if(w.push(m),i&&n&&f===l-1&&w.length-r===n)return r?w.slice(r):w}if(e=a.length)if(s)a=1<a.length?Xf(a,n,r,i,o):(a=a[0]).length>n||r?a.slice(r,n+r):a;else{if(e<l)return[];if(a=a[e-1],n||r)if(i)(a.length>n||r)&&(a=a.slice(r,n+r));else{s=[];for(let h=0,c;h<a.length;h++)if(c=a[h],c.length>r)r-=c.length;else if((c.length>n||r)&&(c=c.slice(r,n+r),n-=c.length,r&&(r-=c.length)),s.push(c),!n)break;a=1<s.length?[].concat.apply([],s):s[0]}}return a}function Xf(e,t,n,r,s){const o=[],i=se();let l;var a=e.length;let u;if(r){for(s=a-1;0<=s;s--)if(u=(r=e[s])&&r.length){for(a=0;a<u;a++)if(l=r[a],!i[l]){if(i[l]=1,n)n--;else if(o.push(l),o.length===t)return o}}}else for(let f=a-1,h,c=0;0<=f;f--){h=e[f];for(let m=0;m<h.length;m++)if(u=(r=h[m])&&r.length){for(let v=0;v<u;v++)if(l=r[v],!i[l])if(i[l]=1,n)n--;else{let w=(m+(f<a-1&&s||0))/(f+1)|0;if((o[w]||(o[w]=[])).push(l),++c===t)return o}}}return o}function zm(e,t,n){const r=se(),s=[];for(let o=0,i;o<t.length;o++){i=t[o];for(let l=0;l<i.length;l++)r[i[l]]=1}if(n)for(let o=0,i;o<e.length;o++)i=e[o],r[i]&&(s.push(i),r[i]=0);else for(let o=0,i,l;o<e.result.length;o++)for(i=e.result[o],t=0;t<i.length;t++)l=i[t],r[l]&&((s[o]||(s[o]=[])).push(l),r[l]=0);return s}function Ql(e,t,n,r){if(!e.length)return e;if(e.length===1)return e=e[0],e=n||e.length>t?t?e.slice(n,n+t):e.slice(n):e,r?_t.call(this,e):e;let s=[];for(let o=0,i,l;o<e.length;o++)if((i=e[o])&&(l=i.length)){if(n){if(n>=l){n-=l;continue}n<l&&(i=t?i.slice(n,n+t):i.slice(n),l=i.length,n=0)}if(l>t&&(i=i.slice(0,t),l=t),!s.length&&l>=t)return r?_t.call(this,i):i;if(s.push(i),t-=l,!t)break}return s=1<s.length?[].concat.apply([],s):s[0],r?_t.call(this,s):s}function ho(e,t,n){var r=n[0];if(r.then)return Promise.all(n).then(function(f){return e[t].apply(e,f)});if(r[0]&&r[0].index)return e[t].apply(e,r);r=[];let s=[],o=0,i=0,l,a,u;for(let f=0,h;f<n.length;f++)if(h=n[f]){let c;if(h.constructor===J)c=h.result;else if(h.constructor===Array)c=h;else if(o=h.limit||0,i=h.offset||0,u=h.suggest,a=h.resolve,l=h.enrich&&a,h.index)h.resolve=!1,c=h.index.search(h).result,h.resolve=a;else if(h.and)c=e.and(h.and);else if(h.or)c=e.or(h.or);else if(h.xor)c=e.xor(h.xor);else if(h.not)c=e.not(h.not);else continue;if(c.then)s.push(c);else if(c.length)r[f]=c;else if(!u&&(t==="and"||t==="xor")){r=[];break}}return{O:r,P:s,limit:o,offset:i,enrich:l,resolve:a,suggest:u}}J.prototype.or=function(){const{O:e,P:t,limit:n,offset:r,enrich:s,resolve:o}=ho(this,"or",arguments);return Zf.call(this,e,t,n,r,s,o)};function Zf(e,t,n,r,s,o){if(t.length){const i=this;return Promise.all(t).then(function(l){e=[];for(let a=0,u;a<l.length;a++)(u=l[a]).length&&(e[a]=u);return Zf.call(i,e,[],n,r,s,o)})}return e.length&&(this.result.length&&e.push(this.result),2>e.length?this.result=e[0]:(this.result=Xf(e,n,r,!1,this.h),r=0)),o?this.resolve(n,r,s):this}J.prototype.and=function(){let e=this.result.length,t,n,r,s;if(!e){const o=arguments[0];o&&(e=!!o.suggest,s=o.resolve,t=o.limit,n=o.offset,r=o.enrich&&s)}if(e){const{O:o,P:i,limit:l,offset:a,enrich:u,resolve:f,suggest:h}=ho(this,"and",arguments);return eh.call(this,o,i,l,a,u,f,h)}return s?this.resolve(t,n,r):this};function eh(e,t,n,r,s,o,i){if(t.length){const l=this;return Promise.all(t).then(function(a){e=[];for(let u=0,f;u<a.length;u++)(f=a[u]).length&&(e[u]=f);return eh.call(l,e,[],n,r,s,o,i)})}if(e.length)if(this.result.length&&e.unshift(this.result),2>e.length)this.result=e[0];else{if(t=Tm(e))return this.result=Yf(e,t,n,r,i,this.h,o),o?s?_t.call(this.index,this.result):this.result:this;this.result=[]}else i||(this.result=e);return o?this.resolve(n,r,s):this}J.prototype.xor=function(){const{O:e,P:t,limit:n,offset:r,enrich:s,resolve:o,suggest:i}=ho(this,"xor",arguments);return th.call(this,e,t,n,r,s,o,i)};function th(e,t,n,r,s,o,i){if(t.length){const l=this;return Promise.all(t).then(function(a){e=[];for(let u=0,f;u<a.length;u++)(f=a[u]).length&&(e[u]=f);return th.call(l,e,[],n,r,s,o,i)})}if(e.length)if(this.result.length&&e.unshift(this.result),2>e.length)this.result=e[0];else return this.result=Mm.call(this,e,n,r,o,this.h),o?s?_t.call(this.index,this.result):this.result:this;else i||(this.result=e);return o?this.resolve(n,r,s):this}function Mm(e,t,n,r,s){const o=[],i=se();let l=0;for(let a=0,u;a<e.length;a++)if(u=e[a]){l<u.length&&(l=u.length);for(let f=0,h;f<u.length;f++)if(h=u[f])for(let c=0,m;c<h.length;c++)m=h[c],i[m]=i[m]?2:1}for(let a=0,u,f=0;a<l;a++)for(let h=0,c;h<e.length;h++)if((c=e[h])&&(u=c[a])){for(let m=0,v;m<u.length;m++)if(v=u[m],i[v]===1)if(n)n--;else if(r){if(o.push(v),o.length===t)return o}else{const w=a+(h?s:0);if(o[w]||(o[w]=[]),o[w].push(v),++f===t)return o}}return o}J.prototype.not=function(){const{O:e,P:t,limit:n,offset:r,enrich:s,resolve:o,suggest:i}=ho(this,"not",arguments);return nh.call(this,e,t,n,r,s,o,i)};function nh(e,t,n,r,s,o,i){if(t.length){const l=this;return Promise.all(t).then(function(a){e=[];for(let u=0,f;u<a.length;u++)(f=a[u]).length&&(e[u]=f);return nh.call(l,e,[],n,r,s,o,i)})}if(e.length&&this.result.length)this.result=Dm.call(this,e,n,r,o);else if(o)return this.resolve(n,r,s);return o?s?_t.call(this.index,this.result):this.result:this}function Dm(e,t,n,r){const s=[];e=new Set(e.flat().flat());for(let o=0,i,l=0;o<this.result.length;o++)if(i=this.result[o]){for(let a=0,u;a<i.length;a++)if(u=i[a],!e.has(u)){if(n)n--;else if(r){if(s.push(u),s.length===t)return s}else if(s[o]||(s[o]=[]),s[o].push(u),++l===t)return s}}return s}function J(e){if(!this||this.constructor!==J)return new J(e);if(e&&e.index)return e.resolve=!1,this.index=e.index,this.h=e.boost||0,this.result=e.index.search(e).result,this;this.index=null,this.result=e||[],this.h=0}J.prototype.limit=function(e){if(this.result.length){const t=[];for(let n=0,r;n<this.result.length;n++)if(r=this.result[n])if(r.length<=e){if(t[n]=r,e-=r.length,!e)break}else{t[n]=r.slice(0,e);break}this.result=t}return this},J.prototype.offset=function(e){if(this.result.length){const t=[];for(let n=0,r;n<this.result.length;n++)(r=this.result[n])&&(r.length<=e?e-=r.length:(t[n]=r.slice(e),e=0));this.result=t}return this},J.prototype.boost=function(e){return this.h+=e,this},J.prototype.resolve=function(e,t,n){const r=this.result,s=this.index;return this.result=this.index=null,r.length?(typeof e=="object"&&(n=e.enrich,t=e.offset,e=e.limit),Ql.call(s,r,e||100,t,n)):r},Yt.prototype.search=function(e,t,n,r){n||(!t&&Ur(e)?(n=e,e=""):Ur(t)&&(n=t,t=0));let s=[];var o=[],i;let l,a,u,f=0;var h=!0;let c;if(n){n.constructor===Array&&(n={index:n}),e=n.query||e;var m=n.pluck;l=n.merge,a=m||n.field||(a=n.index)&&(a.index?null:a),u=this.tag&&n.tag;var v=n.suggest;h=n.resolve!==!1,h||m||!(a=a||this.field)||(We(a)?m=a:(a.constructor===Array&&a.length===1&&(a=a[0]),m=a.field||a.index)),c=(i=this.store&&n.enrich&&h)&&n.highlight,t=n.limit||t;var w=n.offset||0;if(t||(t=100),u&&(!this.db||!r)){u.constructor!==Array&&(u=[u]);var d=[];for(let y=0,$;y<u.length;y++)if($=u[y],$.field&&$.tag){var p=$.tag;if(p.constructor===Array)for(var g=0;g<p.length;g++)d.push($.field,p[g]);else d.push($.field,p)}else{p=Object.keys($);for(let C=0,P,T;C<p.length;C++)if(P=p[C],T=$[P],T.constructor===Array)for(g=0;g<T.length;g++)d.push(P,T[g]);else d.push(P,T)}if(u=d,!e){if(h=[],d.length)for(o=0;o<d.length;o+=2){if(this.db){if(m=this.index.get(d[o]),!m)continue;h.push(m=m.db.tag(d[o+1],t,w,i))}else m=bm.call(this,d[o],d[o+1],t,w,i);s.push({field:d[o],tag:d[o+1],result:m})}return h.length?Promise.all(h).then(function(y){for(let $=0;$<y.length;$++)s[$].result=y[$];return s}):s}}a&&a.constructor!==Array&&(a=[a])}a||(a=this.field),d=!r&&(this.worker||this.db)&&[];let S;for(let y=0,$,C,P;y<a.length;y++){if(C=a[y],this.db&&this.tag&&!this.D[y])continue;let T;if(We(C)||(T=C,C=T.field,e=T.query||e,t=T.limit||t,w=T.offset||w,v=T.suggest||v,i=this.store&&(T.enrich||i)),r)$=r[y];else if(p=T||n,g=this.index.get(C),u&&(this.db&&(p.tag=u,S=g.db.support_tag_search,p.field=a),S||(p.enrich=!1)),d){d[y]=g.search(e,t,p),p&&i&&(p.enrich=i);continue}else $=g.search(e,t,p),p&&i&&(p.enrich=i);if(P=$&&(h?$.length:$.result.length),u&&P){if(p=[],g=0,this.db&&r){if(!S)for(let N=a.length;N<r.length;N++){let U=r[N];if(U&&U.length)g++,p.push(U);else if(!v)return h?s:new J(s)}}else for(let N=0,U,Ne;N<u.length;N+=2){if(U=this.tag.get(u[N]),!U){if(v)continue;return h?s:new J(s)}if(Ne=(U=U&&U.get(u[N+1]))&&U.length)g++,p.push(U);else if(!v)return h?s:new J(s)}if(g){if($=zm($,p,h),P=$.length,!P&&!v)return h?$:new J($);g--}}if(P)o[f]=C,s.push($),f++;else if(a.length===1)return h?s:new J(s)}if(d){if(this.db&&u&&u.length&&!S)for(i=0;i<u.length;i+=2){if(o=this.index.get(u[i]),!o){if(v)continue;return h?s:new J(s)}d.push(o.db.tag(u[i+1],t,w,!1))}const y=this;return Promise.all(d).then(function($){return $.length?y.search(e,t,n,$):$})}if(!f)return h?s:new J(s);if(m&&(!i||!this.store))return s[0];for(d=[],w=0;w<o.length;w++){if(v=s[w],i&&v.length&&typeof v[0].doc>"u"&&(this.db?d.push(v=this.index.get(this.field[0]).db.enrich(v)):v=_t.call(this,v)),m)return h?v:new J(v);s[w]={field:o[w],result:v}}if(i&&this.db&&d.length){const y=this;return Promise.all(d).then(function($){for(let C=0;C<$.length;C++)s[C].result=$[C];return l?sh(s):c?rh(s,e,y.index,y.field,y.D,c):s})}return l?sh(s):c?rh(s,e,this.index,this.field,this.D,c):s};function rh(e,t,n,r,s,o){let i,l,a;for(let u=0,f,h,c,m;u<e.length;u++){if(f=e[u].field,!f)continue;let v=e[u].result;c=n.get(f),h=c.encoder,a=c.tokenize,m=s[r.indexOf(f)],h!==i&&(i=h,l=i.encode(t));for(let w=0;w<v.length;w++){let d="",p=Br(v[w].doc,m).split(/\s+/);for(let g=0,S,y;g<p.length;g++){S=p[g],y=h.encode(S),y=1<y.length?y.join(" "):y[0];let $;if(y&&S)for(let C=0,P;C<l.length;C++)if(P=l[C],a==="strict"){if(y===P){d+=(d?" ":"")+o.replace("$1",S),$=!0;break}}else{const T=y.indexOf(P);if(-1<T){d+=(d?" ":"")+S.substring(0,T)+o.replace("$1",S.substring(T,P.length))+S.substring(T+P.length),$=!0;break}}$||(d+=(d?" ":"")+p[g])}v[w].highlight=d}}return e}function sh(e){const t=[],n=se();for(let r=0,s,o;r<e.length;r++){s=e[r],o=s.result;for(let i=0,l,a,u;i<o.length;i++)a=o[i],typeof a!="object"&&(a={id:a}),l=a.id,(u=n[l])?u.push(s.field):(a.field=n[l]=[s.field],t.push(a))}return t}function bm(e,t,n,r,s){if(e=this.tag.get(e),!e)return[];if((t=(e=e&&e.get(t))&&e.length-r)&&0<t)return(t>n||r)&&(e=e.slice(r,r+n)),s&&(e=_t.call(this,e)),e}function _t(e){if(!this||!this.store)return e;const t=Array(e.length);for(let n=0,r;n<e.length;n++)r=e[n],t[n]={id:r,doc:this.store.get(r)};return t}function Yt(e){if(!this||this.constructor!==Yt)return new Yt(e);const t=e.document||e.doc||e;let n,r;if(this.D=[],this.field=[],this.J=[],this.key=(n=t.key||t.id)&&po(n,this.J)||"id",(r=e.keystore||0)&&(this.keystore=r),this.fastupdate=!!e.fastupdate,this.reg=!this.fastupdate||e.worker||e.db?r?new Ke(r):new Set:r?new et(r):new Map,this.C=(n=t.store||null)&&n&&n!==!0&&[],this.store=n&&(r?new et(r):new Map),this.cache=(n=e.cache||null)&&new Xt(n),e.cache=!1,this.worker=e.worker,this.priority=e.priority||4,this.index=Um.call(this,e,t),this.tag=null,(n=t.tag)&&(typeof n=="string"&&(n=[n]),n.length)){this.tag=new Map,this.F=[],this.R=[];for(let s=0,o,i;s<n.length;s++){if(o=n[s],i=o.field||o,!i)throw Error("The tag field from the document descriptor is undefined.");o.custom?this.F[s]=o.custom:(this.F[s]=po(i,this.J),o.filter&&(typeof this.F[s]=="string"&&(this.F[s]=new String(this.F[s])),this.F[s].I=o.filter)),this.R[s]=i,this.tag.set(i,new Map)}}if(this.worker){this.fastupdate=!1,e=[];for(const s of this.index.values())s.then&&e.push(s);if(e.length){const s=this;return Promise.all(e).then(function(o){let i=0;for(const l of s.index.entries()){const a=l[0];l[1].then&&s.index.set(a,o[i++])}return s})}}else e.db&&(this.fastupdate=!1,this.mount(e.db))}F=Yt.prototype,F.mount=function(e){let t=this.field;if(this.tag)for(let s=0,o;s<this.R.length;s++){o=this.R[s];var n=void 0;this.index.set(o,n=new tt({},this.reg)),t===this.field&&(t=t.slice(0)),t.push(o),n.tag=this.tag.get(o)}n=[];const r={db:e.db,type:e.type,fastupdate:e.fastupdate};for(let s=0,o,i;s<t.length;s++){r.field=i=t[s],o=this.index.get(i);const l=new e.constructor(e.id,r);l.id=e.id,n[s]=l.mount(o),o.document=!0,s?o.bypass=!0:o.store=this.store}return this.db=!0,Promise.all(n)},F.commit=async function(e,t){const n=[];for(const r of this.index.values())n.push(r.commit(e,t));await Promise.all(n),this.reg.clear()},F.destroy=function(){const e=[];for(const t of this.index.values())e.push(t.destroy());return Promise.all(e)};function Um(e,t){const n=new Map;let r=t.index||t.field||t;We(r)&&(r=[r]);for(let s=0,o,i;s<r.length;s++){if(o=r[s],We(o)||(i=o,o=o.field),i=Ur(i)?Object.assign({},e,i):e,this.worker){const l=new Kr(i);n.set(o,l)}this.worker||n.set(o,new tt(i,this.reg)),i.custom?this.D[s]=i.custom:(this.D[s]=po(o,this.J),i.filter&&(typeof this.D[s]=="string"&&(this.D[s]=new String(this.D[s])),this.D[s].I=i.filter)),this.field[s]=o}if(this.C){e=t.store,We(e)&&(e=[e]);for(let s=0,o,i;s<e.length;s++)o=e[s],i=o.field||o,o.custom?(this.C[s]=o.custom,o.custom.V=i):(this.C[s]=po(i,this.J),o.filter&&(typeof this.C[s]=="string"&&(this.C[s]=new String(this.C[s])),this.C[s].I=o.filter))}return n}function po(e,t){const n=e.split(":");let r=0;for(let s=0;s<n.length;s++)e=n[s],e[e.length-1]==="]"&&(e=e.substring(0,e.length-2))&&(t[r]=!0),e&&(n[r++]=e);return r<n.length&&(n.length=r),1<r?n:n[0]}F.append=function(e,t){return this.add(e,t,!0)},F.update=function(e,t){return this.remove(e).add(e,t)},F.remove=function(e){Ur(e)&&(e=Br(e,this.key));for(var t of this.index.values())t.remove(e,!0);if(this.reg.has(e)){if(this.tag&&!this.fastupdate)for(let n of this.tag.values())for(let r of n){t=r[0];const s=r[1],o=s.indexOf(e);-1<o&&(1<s.length?s.splice(o,1):n.delete(t))}this.store&&this.store.delete(e),this.reg.delete(e)}return this.cache&&this.cache.remove(e),this},F.clear=function(){const e=[];for(const t of this.index.values()){const n=t.clear();n.then&&e.push(n)}if(this.tag)for(const t of this.tag.values())t.clear();return this.store&&this.store.clear(),this.cache&&this.cache.clear(),e.length?Promise.all(e):this},F.contain=function(e){return this.db?this.index.get(this.field[0]).db.has(e):this.reg.has(e)},F.cleanup=function(){for(const e of this.index.values())e.cleanup();return this},F.get=function(e){return this.db?this.index.get(this.field[0]).db.enrich(e).then(function(t){return t[0]&&t[0].doc||null}):this.store.get(e)||null},F.set=function(e,t){return typeof e=="object"&&(t=e,e=Br(t,this.key)),this.store.set(e,t),this},F.searchCache=oh,F.export=function(e,t,n=0,r=0){if(n<this.field.length){const i=this.field[n];if((t=this.index.get(i).export(e,i,n,r=1))&&t.then){const l=this;return t.then(function(){return l.export(e,i,n+1)})}return this.export(e,i,n+1)}let s,o;switch(r){case 0:s="reg",o=Wf(this.reg),t=null;break;case 1:s="tag",o=this.tag&&Vf(this.tag,this.reg.size),t=null;break;case 2:s="doc",o=this.store&&Wl(this.store),t=null;break;default:return}return fo.call(this,e,t,s,o,n,r)},F.import=function(e,t){var n=e.split(".");n[n.length-1]==="json"&&n.pop();const r=2<n.length?n[0]:"";if(n=2<n.length?n[2]:n[1],this.worker&&r)return this.index.get(r).import(e);if(t){if(typeof t=="string"&&(t=JSON.parse(t)),r)return this.index.get(r).import(n,t);switch(n){case"reg":this.fastupdate=!1,this.reg=Kf(t,this.reg);for(let s=0,o;s<this.field.length;s++)o=this.index.get(this.field[s]),o.fastupdate=!1,o.reg=this.reg;if(this.worker){t=[];for(const s of this.index.values())t.push(s.import(e));return Promise.all(t)}break;case"tag":this.tag=Hf(t,this.tag);break;case"doc":this.store=Kl(t,this.store)}}},Vl(Yt.prototype);function oh(e,t,n){e=(typeof e=="object"?""+e.query:e).toLowerCase(),this.cache||(this.cache=new Xt);let r=this.cache.get(e);if(!r){if(r=this.search(e,t,n),r.then){const s=this;r.then(function(o){return s.cache.set(e,o),o})}this.cache.set(e,r)}return r}function Xt(e){this.limit=e&&e!==!0?e:1e3,this.cache=new Map,this.h=""}Xt.prototype.set=function(e,t){this.cache.set(this.h=e,t),this.cache.size>this.limit&&this.cache.delete(this.cache.keys().next().value)},Xt.prototype.get=function(e){const t=this.cache.get(e);return t&&this.h!==e&&(this.cache.delete(e),this.cache.set(this.h=e,t)),t},Xt.prototype.remove=function(e){for(const t of this.cache){const n=t[0];t[1].includes(e)&&this.cache.delete(n)}},Xt.prototype.clear=function(){this.cache.clear(),this.h=""};const ih={normalize:!1,numeric:!1,dedupe:!1},go={},Jl=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"]]),lh=new Map([["ae","a"],["oe","o"],["sh","s"],["kh","k"],["th","t"],["ph","f"],["pf","f"]]),ah=[/([^aeo])h(.)/g,"$1$2",/([aeo])h([^aeo]|$)/g,"$1$2",/(.)\1+/g,"$1"],uh={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 ch={Exact:ih,Default:go,Normalize:go,LatinBalance:{mapper:Jl},LatinAdvanced:{mapper:Jl,matcher:lh,replacer:ah},LatinExtra:{mapper:Jl,replacer:ah.concat([/(?!^)[aeo]/g,""]),matcher:lh},LatinSoundex:{dedupe:!1,include:{letter:!0},finalize:function(e){for(let n=0;n<e.length;n++){var t=e[n];let r=t.charAt(0),s=uh[r];for(let o=1,i;o<t.length&&(i=t.charAt(o),i==="h"||i==="w"||!(i=uh[i])||i===s||(r+=i,s=i,r.length!==4));o++);e[n]=r}}},CJK:{split:""},LatinExact:ih,LatinDefault:go,LatinSimple:go};tt.prototype.remove=function(e,t){const n=this.reg.size&&(this.fastupdate?this.reg.get(e):this.reg.has(e));if(n){if(this.fastupdate){for(let r=0,s;r<n.length;r++)if(s=n[r])if(2>s.length)s.pop();else{const o=s.indexOf(e);o===n.length-1?s.pop():s.splice(o,1)}}else qr(this.map,e),this.depth&&qr(this.ctx,e);t||this.reg.delete(e)}return this.db&&(this.commit_task.push({del:e}),this.T&&ph(this)),this.cache&&this.cache.remove(e),this};function qr(e,t){let n=0;var r=typeof t>"u";if(e.constructor===Array){for(let s=0,o,i;s<e.length;s++)if((o=e[s])&&o.length)if(r)n++;else if(i=o.indexOf(t),0<=i){1<o.length?(o.splice(i,1),n++):delete e[s];break}else n++}else for(let s of e.entries()){r=s[0];const o=qr(s[1],t);o?n+=o:e.delete(r)}return n}const Bm={memory:{resolution:1},performance:{resolution:3,fastupdate:!0,context:{depth:1,resolution:1}},match:{tokenize:"forward"},score:{resolution:9,context:{depth:2,resolution:3}}};tt.prototype.add=function(e,t,n,r){if(t&&(e||e===0)){if(!r&&!n&&this.reg.has(e))return this.update(e,t);if(t=this.encoder.encode(t),r=t.length){const u=se(),f=se(),h=this.depth,c=this.resolution;for(let m=0;m<r;m++){let v=t[this.rtl?r-1-m:m];var s=v.length;if(s&&(h||!f[v])){var o=this.score?this.score(t,v,m,null,0):mo(c,r,m),i="";switch(this.tokenize){case"full":if(2<s){for(let w=0,d;w<s;w++)for(o=s;o>w;o--){i=v.substring(w,o),d=this.rtl?s-1-w:w;var l=this.score?this.score(t,v,m,i,d):mo(c,r,m,s,d);Gr(this,f,i,l,e,n)}break}case"bidirectional":case"reverse":if(1<s){for(l=s-1;0<l;l--){i=v[this.rtl?s-1-l:l]+i;var a=this.score?this.score(t,v,m,i,l):mo(c,r,m,s,l);Gr(this,f,i,a,e,n)}i=""}case"forward":if(1<s){for(l=0;l<s;l++)i+=v[this.rtl?s-1-l:l],Gr(this,f,i,o,e,n);break}default:if(Gr(this,f,v,o,e,n),h&&1<r&&m<r-1){for(s=se(),i=this.U,o=v,l=Math.min(h+1,this.rtl?m+1:r-m),s[o]=1,a=1;a<l;a++)if((v=t[this.rtl?r-1-m-a:m+a])&&!s[v]){s[v]=1;const w=this.score?this.score(t,o,m,v,a-1):mo(i+(r/2>i?0:1),r,m,l-1,a-1),d=this.bidirectional&&v>o;Gr(this,u,d?o:v,w,e,n,d?v:o)}}}}}this.fastupdate||this.reg.add(e)}else t=""}return this.db&&(t||this.commit_task.push({del:e}),this.T&&ph(this)),this};function Gr(e,t,n,r,s,o,i){let l=i?e.ctx:e.map,a;if((!t[n]||i&&!(a=t[n])[i])&&(i?(t=a||(t[n]=se()),t[i]=1,(a=l.get(i))?l=a:l.set(i,l=new Map)):t[n]=1,(a=l.get(n))?l=a:l.set(n,l=a=[]),l=l[r]||(l[r]=[]),!o||!l.includes(s))){if(l.length===2**31-1){if(t=new Jt(l),e.fastupdate)for(let u of e.reg.values())u.includes(l)&&(u[u.indexOf(l)]=t);a[r]=l=t}l.push(s),e.fastupdate&&((r=e.reg.get(s))?r.push(l):e.reg.set(s,[l]))}}function mo(e,t,n,r,s){return n&&1<e?t+(r||0)<=e?n+(s||0):(e-1)/(t+(r||0))*(n+(s||0))+1|0:0}tt.prototype.search=function(e,t,n){n||(t||typeof e!="object"?typeof t=="object"&&(n=t,t=0):(n=e,e=""));let r=[],s,o,i,l=0,a,u,f,h,c;n?(e=n.query||e,t=n.limit||t,l=n.offset||0,o=n.context,i=n.suggest,c=(a=n.resolve!==!1)&&n.enrich,f=n.boost,h=n.resolution,u=this.db&&n.tag):a=this.resolve;let m=this.encoder.encode(e);if(s=m.length,t=t||(a?100:0),s===1)return hh.call(this,m[0],"",t,l,a,c,u);if(o=this.depth&&o!==!1,s===2&&o&&!i)return hh.call(this,m[1],m[0],t,l,a,c,u);let v=se(),w=0,d;if(o&&(d=m[0],w=1),h||h===0||(h=d?this.U:this.resolution),this.db){if(this.db.search&&(e=this.db.search(this,m,t,l,i,a,c,u),e!==!1))return e;const p=this;return async function(){for(let g,S;w<s;w++){if((S=m[w])&&!v[S]){if(v[S]=1,g=await Yl(p,S,d,0,0,!1,!1),g=dh(g,r,i,h)){r=g;break}d&&(i&&g&&r.length||(d=S))}i&&d&&w===s-1&&!r.length&&(h=p.resolution,d="",w=-1,v=se())}return fh(r,h,t,l,i,f,a)}()}for(let p,g;w<s;w++){if((g=m[w])&&!v[g]){if(v[g]=1,p=Yl(this,g,d,0,0,!1,!1),p=dh(p,r,i,h)){r=p;break}d&&(i&&p&&r.length||(d=g))}i&&d&&w===s-1&&!r.length&&(h=this.resolution,d="",w=-1,v=se())}return fh(r,h,t,l,i,f,a)};function fh(e,t,n,r,s,o,i){let l=e.length,a=e;if(1<l)a=Yf(e,t,n,r,s,o,i);else if(l===1)return i?Ql.call(null,e[0],n,r):new J(e[0]);return i?a:new J(a)}function hh(e,t,n,r,s,o,i){return e=Yl(this,e,t,n,r,s,o,i),this.db?e.then(function(l){return s?l||[]:new J(l)}):e&&e.length?s?Ql.call(this,e,n,r):new J(e):s?[]:new J}function dh(e,t,n,r){let s=[];if(e&&e.length){if(e.length<=r){t.push(e);return}for(let o=0,i;o<r;o++)(i=e[o])&&(s[o]=i);if(s.length){t.push(s);return}}if(!n)return s}function Yl(e,t,n,r,s,o,i,l){let a;return n&&(a=e.bidirectional&&t>n)&&(a=n,n=t,t=a),e.db?e.db.get(t,n,r,s,o,i,l):(e=n?(e=e.ctx.get(n))&&e.get(t):e.map.get(t),e)}function tt(e,t){if(!this||this.constructor!==tt)return new tt(e);if(e){var n=We(e)?e:e.preset;n&&(e=Object.assign({},Bm[n],e))}else e={};n=e.context;const r=n===!0?{depth:1}:n||{},s=We(e.encoder)?ch[e.encoder]:e.encode||e.encoder||{};this.encoder=s.encode?s:typeof s=="object"?new Vr(s):{encode:s},this.resolution=e.resolution||9,this.tokenize=n=(n=e.tokenize)&&n!=="default"&&n!=="exact"&&n||"strict",this.depth=n==="strict"&&r.depth||0,this.bidirectional=r.bidirectional!==!1,this.fastupdate=!!e.fastupdate,this.score=e.score||null,(n=e.keystore||0)&&(this.keystore=n),this.map=n?new et(n):new Map,this.ctx=n?new et(n):new Map,this.reg=t||(this.fastupdate?n?new et(n):new Map:n?new Ke(n):new Set),this.U=r.resolution||3,this.rtl=s.rtl||e.rtl||!1,this.cache=(n=e.cache||null)&&new Xt(n),this.resolve=e.resolve!==!1,(n=e.db)&&(this.db=this.mount(n)),this.T=e.commit!==!1,this.commit_task=[],this.commit_timer=null,this.priority=e.priority||4}F=tt.prototype,F.mount=function(e){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),e.mount(this)},F.commit=function(e,t){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.commit(this,e,t)},F.destroy=function(){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.destroy()};function ph(e){e.commit_timer||(e.commit_timer=setTimeout(function(){e.commit_timer=null,e.db.commit(e,void 0,void 0)},1))}F.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=[{clear:!0}]),this},F.append=function(e,t){return this.add(e,t,!0)},F.contain=function(e){return this.db?this.db.has(e):this.reg.has(e)},F.update=function(e,t){const n=this,r=this.remove(e);return r&&r.then?r.then(()=>n.add(e,t)):this.add(e,t)},F.cleanup=function(){return this.fastupdate?(qr(this.map),this.depth&&qr(this.ctx),this):this},F.searchCache=oh,F.export=function(e,t,n=0,r=0){let s,o;switch(r){case 0:s="reg",o=Wf(this.reg);break;case 1:s="cfg",o=null;break;case 2:s="map",o=Wl(this.map,this.reg.size);break;case 3:s="ctx",o=Vf(this.ctx,this.reg.size);break;default:return}return fo.call(this,e,t,s,o,n,r)},F.import=function(e,t){if(t)switch(typeof t=="string"&&(t=JSON.parse(t)),e=e.split("."),e[e.length-1]==="json"&&e.pop(),e.length===3&&e.shift(),e=1<e.length?e[1]:e[0],e){case"reg":this.fastupdate=!1,this.reg=Kf(t,this.reg);break;case"map":this.map=Kl(t,this.map);break;case"ctx":this.ctx=Hf(t,this.ctx)}},F.serialize=function(e=!0){let t="",n="",r="";if(this.reg.size){let o;for(var s of this.reg.keys())o||(o=typeof s),t+=(t?",":"")+(o==="string"?'"'+s+'"':s);t="index.reg=new Set(["+t+"]);",n=qf(this.map,o),n="index.map=new Map(["+n+"]);";for(const i of this.ctx.entries()){s=i[0];let l=qf(i[1],o);l="new Map(["+l+"])",l='["'+s+'",'+l+"]",r+=(r?",":"")+l}r="index.ctx=new Map(["+r+"]);"}return e?"function inject(index){"+t+n+r+"}":t+n+r},Vl(tt.prototype);const gh=typeof window<"u"&&(window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),yo=["map","ctx","tag","reg","cfg"],Zt=se();function mh(e,t={}){if(!this)return new mh(e,t);typeof e=="object"&&(t=e,e=e.name),e||console.info("Default storage space was used, because a name was not passed."),this.id="flexsearch"+(e?":"+e.toLowerCase().replace(/[^a-z0-9_\-]/g,""):""),this.field=t.field?t.field.toLowerCase().replace(/[^a-z0-9_\-]/g,""):"",this.type=t.type,this.fastupdate=this.support_tag_search=!1,this.db=null,this.h={}}F=mh.prototype,F.mount=function(e){return e.encoder?(e.db=this,this.open()):e.mount(this)},F.open=function(){if(this.db)return this.db;let e=this;navigator.storage&&navigator.storage.persist(),Zt[e.id]||(Zt[e.id]=[]),Zt[e.id].push(e.field);const t=gh.open(e.id,1);return t.onupgradeneeded=function(){const n=e.db=this.result;for(let r=0,s;r<yo.length;r++){s=yo[r];for(let o=0,i;o<Zt[e.id].length;o++)i=Zt[e.id][o],n.objectStoreNames.contains(s+(s!=="reg"&&i?":"+i:""))||n.createObjectStore(s+(s!=="reg"&&i?":"+i:""))}},e.db=Rt(t,function(n){e.db=n,e.db.onversionchange=function(){e.close()}})},F.close=function(){this.db&&this.db.close(),this.db=null},F.destroy=function(){const e=gh.deleteDatabase(this.id);return Rt(e)},F.clear=function(){const e=[];for(let n=0,r;n<yo.length;n++){r=yo[n];for(let s=0,o;s<Zt[this.id].length;s++)o=Zt[this.id][s],e.push(r+(r!=="reg"&&o?":"+o:""))}const t=this.db.transaction(e,"readwrite");for(let n=0;n<e.length;n++)t.objectStore(e[n]).clear();return Rt(t)},F.get=function(e,t,n=0,r=0,s=!0,o=!1){e=this.db.transaction((t?"ctx":"map")+(this.field?":"+this.field:""),"readonly").objectStore((t?"ctx":"map")+(this.field?":"+this.field:"")).get(t?t+":"+e:e);const i=this;return Rt(e).then(function(l){let a=[];if(!l||!l.length)return a;if(s){if(!n&&!r&&l.length===1)return l[0];for(let u=0,f;u<l.length;u++)if((f=l[u])&&f.length){if(r>=f.length){r-=f.length;continue}const h=n?r+Math.min(f.length-r,n):f.length;for(let c=r;c<h;c++)a.push(f[c]);if(r=0,a.length===n)break}return o?i.enrich(a):a}return l})},F.tag=function(e,t=0,n=0,r=!1){e=this.db.transaction("tag"+(this.field?":"+this.field:""),"readonly").objectStore("tag"+(this.field?":"+this.field:"")).get(e);const s=this;return Rt(e).then(function(o){return!o||!o.length||n>=o.length?[]:!t&&!n?o:(o=o.slice(n,n+t),r?s.enrich(o):o)})},F.enrich=function(e){typeof e!="object"&&(e=[e]);const t=this.db.transaction("reg","readonly").objectStore("reg"),n=[];for(let r=0;r<e.length;r++)n[r]=Rt(t.get(e[r]));return Promise.all(n).then(function(r){for(let s=0;s<r.length;s++)r[s]={id:e[s],doc:r[s]?JSON.parse(r[s]):null};return r})},F.has=function(e){return e=this.db.transaction("reg","readonly").objectStore("reg").getKey(e),Rt(e).then(function(t){return!!t})},F.search=null,F.info=function(){},F.transaction=function(e,t,n){e+=e!=="reg"&&this.field?":"+this.field:"";let r=this.h[e+":"+t];if(r)return n.call(this,r);let s=this.db.transaction(e,t);this.h[e+":"+t]=r=s.objectStore(e);const o=n.call(this,r);return this.h[e+":"+t]=null,Rt(s).finally(function(){return s=r=null,o})},F.commit=async function(e,t,n){if(t)await this.clear(),e.commit_task=[];else{let r=e.commit_task;e.commit_task=[];for(let s=0,o;s<r.length;s++)if(o=r[s],o.clear){await this.clear(),t=!0;break}else r[s]=o.del;t||(n||(r=r.concat(Am(e.reg))),r.length&&await this.remove(r))}e.reg.size&&(await this.transaction("map","readwrite",function(r){for(const s of e.map){const o=s[0],i=s[1];i.length&&(t?r.put(i,o):r.get(o).onsuccess=function(){let l=this.result;var a;if(l&&l.length){const u=Math.max(l.length,i.length);for(let f=0,h,c;f<u;f++)if((c=i[f])&&c.length){if((h=l[f])&&h.length)for(a=0;a<c.length;a++)h.push(c[a]);else l[f]=c;a=1}}else l=i,a=1;a&&r.put(l,o)})}}),await this.transaction("ctx","readwrite",function(r){for(const s of e.ctx){const o=s[0],i=s[1];for(const l of i){const a=l[0],u=l[1];u.length&&(t?r.put(u,o+":"+a):r.get(o+":"+a).onsuccess=function(){let f=this.result;var h;if(f&&f.length){const c=Math.max(f.length,u.length);for(let m=0,v,w;m<c;m++)if((w=u[m])&&w.length){if((v=f[m])&&v.length)for(h=0;h<w.length;h++)v.push(w[h]);else f[m]=w;h=1}}else f=u,h=1;h&&r.put(f,o+":"+a)})}}}),e.store?await this.transaction("reg","readwrite",function(r){for(const s of e.store){const o=s[0],i=s[1];r.put(typeof i=="object"?JSON.stringify(i):1,o)}}):e.bypass||await this.transaction("reg","readwrite",function(r){for(const s of e.reg.keys())r.put(1,s)}),e.tag&&await this.transaction("tag","readwrite",function(r){for(const s of e.tag){const o=s[0],i=s[1];i.length&&(r.get(o).onsuccess=function(){let l=this.result;l=l&&l.length?l.concat(i):i,r.put(l,o)})}}),e.map.clear(),e.ctx.clear(),e.tag&&e.tag.clear(),e.store&&e.store.clear(),e.document||e.reg.clear())};function Xl(e,t,n){const r=e.value;let s,o=0;for(let i=0,l;i<r.length;i++){if(l=n?r:r[i]){for(let a=0,u,f;a<t.length;a++)if(f=t[a],u=l.indexOf(f),0<=u)if(s=1,1<l.length)l.splice(u,1);else{r[i]=[];break}o+=l.length}if(n)break}o?s&&e.update(r):e.delete(),e.continue()}F.remove=function(e){return typeof e!="object"&&(e=[e]),Promise.all([this.transaction("map","readwrite",function(t){t.openCursor().onsuccess=function(){const n=this.result;n&&Xl(n,e)}}),this.transaction("ctx","readwrite",function(t){t.openCursor().onsuccess=function(){const n=this.result;n&&Xl(n,e)}}),this.transaction("tag","readwrite",function(t){t.openCursor().onsuccess=function(){const n=this.result;n&&Xl(n,e,!0)}}),this.transaction("reg","readwrite",function(t){for(let n=0;n<e.length;n++)t.delete(e[n])})])};function Rt(e,t){return new Promise((n,r)=>{e.onsuccess=e.oncomplete=function(){t&&t(this.result),t=null,n(this.result)},e.onerror=e.onblocked=r,e=null})}const vo={Encoder:Vr,Document:Yt},Vm=ch,Hm={finalize:e=>{let t=[];for(const n of e)t.push(...Km(n));return t}};function Wm(e){return e>=19968&&e<=40959||e>=12352&&e<=12543||e>=44032&&e<=55203||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=191471||e>=196608&&e<=205743||e>=191472&&e<=192095||e>=63744&&e<=64255||e>=194560&&e<=195103}function Km(e){const t=[];let n="";for(const r of e){const s=r.codePointAt(0);Wm(s)?(n&&(t.push(n),n=""),t.push(r)):n+=r}return n&&t.push(n),t}const Zl=new vo.Encoder(Vm.Default,Hm);class qm{constructor({adminUrl:t,apiKey:n,dir:r}){zd(this,Y);const s=r==="rtl",o=r==="rtl"?"reverse":"forward";this.apiUrl=t,this.apiKey=n,this.postsIndex=new vo.Document({tokenize:o,rtl:s,document:{id:"id",index:["title","excerpt"],store:!0},encoder:Zl}),this.authorsIndex=new vo.Document({tokenize:o,rtl:s,document:{id:"id",index:["name"],store:!0},encoder:Zl}),this.tagsIndex=new vo.Document({tokenize:o,rtl:s,document:{id:"id",index:["name"],store:!0},encoder:Zl}),this.init=this.init.bind(this),this.search=this.search.bind(this)}async init(){await _e(this,Y,Md).call(this),await _e(this,Y,Ud).call(this),await _e(this,Y,Hd).call(this)}search(t){const n=this.postsIndex.search(t,{enrich:!0}),r=this.authorsIndex.search(t,{enrich:!0}),s=this.tagsIndex.search(t,{enrich:!0});return{posts:_e(this,Y,Ro).call(this,n),authors:_e(this,Y,Ro).call(this,r),tags:_e(this,Y,Ro).call(this,s)}}}Y=new WeakSet,Md=async function(){const t=await _e(this,Y,Dd).call(this);t.length>0&&_e(this,Y,bd).call(this,t)},Dd=async function(){try{const t=`${this.apiUrl}/ghost/api/content/search-index/posts/?key=${this.apiKey}`;return(await(await fetch(t)).json()).posts}catch(t){return console.error("Error fetching posts:",t),[]}},bd=function(t){t.forEach(n=>{this.postsIndex.add(n)})},Ud=async function(){const t=await _e(this,Y,Bd).call(this);t.length>0&&_e(this,Y,Vd).call(this,t)},Bd=async function(){try{const t=`${this.apiUrl}/ghost/api/content/search-index/authors/?key=${this.apiKey}`;return(await(await fetch(t)).json()).authors}catch(t){return console.error("Error fetching authors:",t),[]}},Vd=function(t){t.forEach(n=>{this.authorsIndex.add(n)})},Hd=async function(){const t=await _e(this,Y,Wd).call(this);t.length>0&&_e(this,Y,Kd).call(this,t)},Wd=async function(){try{const t=`${this.apiUrl}/ghost/api/content/search-index/tags/?key=${this.apiKey}`;return(await(await fetch(t)).json()).tags}catch(t){return console.error("Error fetching tags:",t),[]}},Kd=function(t){t.forEach(n=>{this.tagsIndex.add(n)})},Ro=function(t){const n=[],r={};return t.forEach(s=>{s.result.forEach(o=>{r[o.id]||(n.push(o.doc),r[o.id]=!0)})}),n};var In={exports:{}};const Gm={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Qm={Authors:"الكتّاب",Cancel:"إلغاء","No matches found":"لا يوجد نتائج مطابقة",Posts:"منشورات","Search posts, tags and authors":"قم بالبحث عن المنشورات، الوسوم و الكتّاب","Show more results":"اظهر المزيد من النتائج",Tags:"الوسوم"},Jm={Authors:"Автори",Cancel:"Отказ","No matches found":"Няма съвпадения",Posts:"Публикации","Search posts, tags and authors":"Търсене в публикации, етикети и автори","Show more results":"Покажи още резултати",Tags:"Етикети"},Ym={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Xm={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Zm={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"},ey={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"},ty={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"},ny={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"},ry={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"},sy={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},oy={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},iy={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},ly={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"},ay={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"},uy={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"},cy={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},fy={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"},hy={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"},dy={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"},py={Authors:"מחברים",Cancel:"ביטול","No matches found":"לא נמצאו התאמות",Posts:"פוסטים","Search posts, tags and authors":"חיפוש פוסטים, תגיות ומחברים","Show more results":"הצגת תוצאות נוספות",Tags:"תגיות"},gy={Authors:"लेखक",Cancel:"रद्द करें","No matches found":"कोई मैच नहीं मिला",Posts:"पोस्ट","Search posts, tags and authors":"पोस्ट, टैग और लेखक की तलाश करें","Show more results":"और परिणाम दिखाएं",Tags:"टैग"},my={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},yy={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"},vy={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"},wy={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Sy={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"},xy={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Cy={Authors:"작성자",Cancel:"취소","No matches found":"일치하는 결과가 없어요",Posts:"게시물","Search posts, tags and authors":"게시물, 태그, 작성자 검색","Show more results":"더 많은 결과 보기",Tags:"태그"},$y={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},ky={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Py={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"},Ey={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},jy={Authors:"Нийтлэгчид",Cancel:"Цуцлах","No matches found":"Тохирох хайлтын үр дүн олдсонгүй",Posts:"Нийтлэлүүд","Search posts, tags and authors":"Нийтлэл, ангилал, нийтлэгчдээр хайх","Show more results":"Илүү олон үр дүн харуулах",Tags:"Ангилалууд"},Ay={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Ty={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"},Oy={Authors:"लेखकहरू",Cancel:"रद्द गर्नुहोस्","No matches found":"कुनै परिणाम भेटिएन",Posts:"पोस्टहरू","Search posts, tags and authors":"पोस्टहरू, ट्यागहरू र लेखकहरू खोज्नुहोस्","Show more results":"थप परिणामहरू देखाउनुहोस्",Tags:"ट्यागहरू"},Ny={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"},Ly={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},_y={Authors:"ਲੇਖਕ",Cancel:"ਰੱਦ ਕਰੋ","No matches found":"ਕੋਈ ਮੇਲ ਨਹੀਂ ਮਿਲਿਆ",Posts:"ਪੋਸਟਾਂ","Search posts, tags and authors":"ਪੋਸਟਾਂ, ਟੈਗ ਅਤੇ ਲੇਖਕ ਖੋਜੋ","Show more results":"ਹੋਰ ਨਤੀਜੇ ਦਿਖਾਓ",Tags:"ਟੈਗ"},Ry={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"},Fy={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"},Iy={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"},zy={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"},My={Authors:"Авторы",Cancel:"Отмена","No matches found":"Совпадений не найдено",Posts:"Записи","Search posts, tags and authors":"Поиск по записям, тегам и авторам","Show more results":"Показать больше результатов",Tags:"Теги"},Dy={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},by={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"},Uy={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"},By={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Vy={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"},Hy={Authors:"Аутори",Cancel:"Откажите","No matches found":"Нема резултата",Posts:"Објаве","Search posts, tags and authors":"Претражите објаве, tag-ове и ауторе","Show more results":"Прикажите више резултата",Tags:"Tag-ови"},Wy={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"},Ky={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},qy={Authors:"ஆசிரியர்கள்",Cancel:"ரத்து செய்","No matches found":"பொருத்தங்கள் எதுவும் இல்லை",Posts:"பதிவுகள்","Search posts, tags and authors":"பதிவுகள், குறிச்சொற்கள் மற்றும் ஆசிரியர்களைத் தேடுங்கள்","Show more results":"மேலும் முடிவுகளைக் காட்டு",Tags:"குறிச்சொற்கள்"},Gy={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Qy={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"},Jy={Authors:"Автори",Cancel:"Скасувати","No matches found":"Збігів не знайдено",Posts:"Публікації","Search posts, tags and authors":"Шукайте публікацій, теги та авторів","Show more results":"Показати більше результатів",Tags:"Теги"},Yy={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Xy={Authors:"",Cancel:"","No matches found":"",Posts:"","Search posts, tags and authors":"","Show more results":"",Tags:""},Zy={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, chuyên mục & tác giả","Show more results":"Xem thêm kết quả",Tags:"Chuyên mục"},e0={Authors:"作者",Cancel:"取消","No matches found":"未找到匹配项",Posts:"文章","Search posts, tags and authors":"搜索文章、标签和作者","Show more results":"显示更多结果",Tags:"标签"},t0={Authors:"作者",Cancel:"取消","No matches found":"無相符結果",Posts:"文章","Search posts, tags and authors":"搜尋文章、標籤與作者","Show more results":"更多結果",Tags:"標籤"};var yh;function vh(){return yh||(yh={"/ghost/i18n/locales/af/search.json":function(){return Gm},"/ghost/i18n/locales/ar/search.json":function(){return Qm},"/ghost/i18n/locales/bg/search.json":function(){return Jm},"/ghost/i18n/locales/bn/search.json":function(){return Ym},"/ghost/i18n/locales/bs/search.json":function(){return Xm},"/ghost/i18n/locales/ca/search.json":function(){return Zm},"/ghost/i18n/locales/cs/search.json":function(){return ey},"/ghost/i18n/locales/da/search.json":function(){return ty},"/ghost/i18n/locales/de/search.json":function(){return ny},"/ghost/i18n/locales/de-CH/search.json":function(){return ry},"/ghost/i18n/locales/el/search.json":function(){return sy},"/ghost/i18n/locales/en/search.json":function(){return oy},"/ghost/i18n/locales/eo/search.json":function(){return iy},"/ghost/i18n/locales/es/search.json":function(){return ly},"/ghost/i18n/locales/et/search.json":function(){return ay},"/ghost/i18n/locales/eu/search.json":function(){return uy},"/ghost/i18n/locales/fa/search.json":function(){return cy},"/ghost/i18n/locales/fi/search.json":function(){return fy},"/ghost/i18n/locales/fr/search.json":function(){return hy},"/ghost/i18n/locales/gd/search.json":function(){return dy},"/ghost/i18n/locales/he/search.json":function(){return py},"/ghost/i18n/locales/hi/search.json":function(){return gy},"/ghost/i18n/locales/hr/search.json":function(){return my},"/ghost/i18n/locales/hu/search.json":function(){return yy},"/ghost/i18n/locales/id/search.json":function(){return vy},"/ghost/i18n/locales/is/search.json":function(){return wy},"/ghost/i18n/locales/it/search.json":function(){return Sy},"/ghost/i18n/locales/ja/search.json":function(){return xy},"/ghost/i18n/locales/ko/search.json":function(){return Cy},"/ghost/i18n/locales/kz/search.json":function(){return $y},"/ghost/i18n/locales/lt/search.json":function(){return ky},"/ghost/i18n/locales/lv/search.json":function(){return Py},"/ghost/i18n/locales/mk/search.json":function(){return Ey},"/ghost/i18n/locales/mn/search.json":function(){return jy},"/ghost/i18n/locales/ms/search.json":function(){return Ay},"/ghost/i18n/locales/nb/search.json":function(){return Ty},"/ghost/i18n/locales/ne/search.json":function(){return Oy},"/ghost/i18n/locales/nl/search.json":function(){return Ny},"/ghost/i18n/locales/nn/search.json":function(){return Ly},"/ghost/i18n/locales/pa/search.json":function(){return _y},"/ghost/i18n/locales/pl/search.json":function(){return Ry},"/ghost/i18n/locales/pt/search.json":function(){return Fy},"/ghost/i18n/locales/pt-BR/search.json":function(){return Iy},"/ghost/i18n/locales/ro/search.json":function(){return zy},"/ghost/i18n/locales/ru/search.json":function(){return My},"/ghost/i18n/locales/si/search.json":function(){return Dy},"/ghost/i18n/locales/sk/search.json":function(){return by},"/ghost/i18n/locales/sl/search.json":function(){return Uy},"/ghost/i18n/locales/sq/search.json":function(){return By},"/ghost/i18n/locales/sr/search.json":function(){return Vy},"/ghost/i18n/locales/sr-Cyrl/search.json":function(){return Hy},"/ghost/i18n/locales/sv/search.json":function(){return Wy},"/ghost/i18n/locales/sw/search.json":function(){return Ky},"/ghost/i18n/locales/ta/search.json":function(){return qy},"/ghost/i18n/locales/th/search.json":function(){return Gy},"/ghost/i18n/locales/tr/search.json":function(){return Qy},"/ghost/i18n/locales/uk/search.json":function(){return Jy},"/ghost/i18n/locales/ur/search.json":function(){return Yy},"/ghost/i18n/locales/uz/search.json":function(){return Xy},"/ghost/i18n/locales/vi/search.json":function(){return Zy},"/ghost/i18n/locales/zh/search.json":function(){return e0},"/ghost/i18n/locales/zh-Hant/search.json":function(){return t0}})}function en(e){function t(n){var r=wh(n,e);if(r!==null)return vh()[r]();throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}return t.resolve=function(n){var r=wh(n,e);return r!==null?r:require.resolve(n)},t}function wh(e,t){var n=n0(e);e=wo(e);var r;e[0]==="/"&&(t="");for(var s=vh(),o=["",".js",".json"];n?r=wo(t+"/node_modules/"+e):r=wo(t+"/"+e),!r.endsWith("/..");){for(var i=0;i<o.length;i++){var l=r+o[i];if(s[l])return l}if(!n)break;var a=wo(t+"/..");if(a===t)break;t=a}return null}function n0(e){var t=e[0];if(t==="/"||t==="\\")return!1;var n=e[1],r=e[2];return!(t==="."&&(!n||n==="/"||n==="\\")||t==="."&&n==="."&&(!r||r==="/"||r==="\\")||n===":"&&(r==="/"||r==="\\"))}function wo(e){e=e.replace(/\\/g,"/");for(var t=e.split("/"),n=t[0]==="",r=1;r<t.length;r++)(t[r]==="."||t[r]==="")&&t.splice(r--,1);for(var r=1;r<t.length;r++)t[r]===".."&&r>0&&t[r-1]!==".."&&t[r-1]!=="."&&(t.splice(--r,2),r--);return e=t.join("/"),n&&e[0]!=="/"?e="/"+e:e.length===0&&(e="."),e}var Qr={exports:{}};const z=e=>typeof e=="string",Jr=()=>{let e,t;const n=new Promise((r,s)=>{e=r,t=s});return n.resolve=e,n.reject=t,n},Sh=e=>e==null?"":""+e,r0=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},s0=/###/g,xh=e=>e&&e.indexOf("###")>-1?e.replace(s0,"."):e,Ch=e=>!e||z(e),Yr=(e,t,n)=>{const r=z(t)?t.split("."):t;let s=0;for(;s<r.length-1;){if(Ch(e))return{};const o=xh(r[s]);!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++s}return Ch(e)?{}:{obj:e,k:xh(r[s])}},$h=(e,t,n)=>{const{obj:r,k:s}=Yr(e,t,Object);if(r!==void 0||t.length===1){r[s]=n;return}let o=t[t.length-1],i=t.slice(0,t.length-1),l=Yr(e,i,Object);for(;l.obj===void 0&&i.length;)o=`${i[i.length-1]}.${o}`,i=i.slice(0,i.length-1),l=Yr(e,i,Object),l&&l.obj&&typeof l.obj[`${l.k}.${o}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${o}`]=n},o0=(e,t,n,r)=>{const{obj:s,k:o}=Yr(e,t,Object);s[o]=s[o]||[],s[o].push(n)},So=(e,t)=>{const{obj:n,k:r}=Yr(e,t);if(n)return n[r]},i0=(e,t,n)=>{const r=So(e,n);return r!==void 0?r:So(t,n)},kh=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?z(e[r])||e[r]instanceof String||z(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):kh(e[r],t[r],n):e[r]=t[r]);return e},zn=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var l0={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const a0=e=>z(e)?e.replace(/[&<>"'\/]/g,t=>l0[t]):e;class u0{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const c0=[" ",",","?","!",";"],f0=new u0(20),h0=(e,t,n)=>{t=t||"",n=n||"";const r=c0.filter(i=>t.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const s=f0.getRegExp(`(${r.map(i=>i==="?"?"\\?":i).join("|")})`);let o=!s.test(e);if(!o){const i=e.indexOf(n);i>0&&!s.test(e.substring(0,i))&&(o=!0)}return o},ea=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let s=e;for(let o=0;o<r.length;){if(!s||typeof s!="object")return;let i,l="";for(let a=o;a<r.length;++a)if(a!==o&&(l+=n),l+=r[a],i=s[l],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&a<r.length-1)continue;o+=a-o+1;break}s=i}return s},xo=e=>e&&e.replace("_","-"),d0={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Co{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||d0,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,s){return s&&!this.debug?null:(z(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Co(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Co(this.logger,t)}}var nt=new Co;class $o{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const s=this.observers[r].get(n)||0;this.observers[r].set(n,s+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(i=>{let[l,a]=i;for(let u=0;u<a;u++)l(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[l,a]=i;for(let u=0;u<a;u++)l.apply(l,[t,...r])})}}class Ph extends $o{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,i=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],r&&(Array.isArray(r)?l.push(...r):z(r)&&o?l.push(...r.split(o)):l.push(r)));const a=So(this.data,l);return!a&&!n&&!r&&t.indexOf(".")>-1&&(t=l[0],n=l[1],r=l.slice(2).join(".")),a||!i||!z(r)?a:ea(this.data&&this.data[t]&&this.data[t][n],r,o)}addResource(t,n,r,s){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let l=[t,n];r&&(l=l.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(l=t.split("."),s=n,n=l[1]),this.addNamespaces(n),$h(this.data,l,s),o.silent||this.emit("added",t,n,r,s)}addResources(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(z(r[o])||Array.isArray(r[o]))&&this.addResource(t,n,o,r[o],{silent:!0});s.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,s,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),s=r,r=n,n=l[1]),this.addNamespaces(n);let a=So(this.data,l)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),s?kh(a,r,o):a={...a,...r},$h(this.data,l,a),i.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(s=>n[s]&&Object.keys(n[s]).length>0)}toJSON(){return this.data}}var Eh={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,s){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,r,s))}),t}};const jh={};class ko extends $o{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),r0(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=nt.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const i=r&&t.indexOf(r)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!h0(t,r,s);if(i&&!l){const a=t.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:t,namespaces:z(o)?[o]:o};const u=t.split(r);(r!==s||r===s&&this.options.ns.indexOf(u[0])>-1)&&(o=u.shift()),t=u.join(s)}return{key:t,namespaces:z(o)?[o]:o}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const s=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:i,namespaces:l}=this.extractFromKey(t[t.length-1],n),a=l[l.length-1],u=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(f){const y=n.nsSeparator||this.options.nsSeparator;return s?{res:`${a}${y}${i}`,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:a,usedParams:this.getUsedParamsDetails(n)}:`${a}${y}${i}`}return s?{res:i,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:a,usedParams:this.getUsedParamsDetails(n)}:i}const h=this.resolve(t,n);let c=h&&h.res;const m=h&&h.usedKey||i,v=h&&h.exactUsedKey||i,w=Object.prototype.toString.apply(c),d=["[object Number]","[object Function]","[object RegExp]"],p=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,S=!z(c)&&typeof c!="boolean"&&typeof c!="number";if(g&&c&&S&&d.indexOf(w)<0&&!(z(p)&&Array.isArray(c))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const y=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,c,{...n,ns:l}):`key '${i} (${this.language})' returned an object instead of string.`;return s?(h.res=y,h.usedParams=this.getUsedParamsDetails(n),h):y}if(o){const y=Array.isArray(c),$=y?[]:{},C=y?v:m;for(const P in c)if(Object.prototype.hasOwnProperty.call(c,P)){const T=`${C}${o}${P}`;$[P]=this.translate(T,{...n,joinArrays:!1,ns:l}),$[P]===T&&($[P]=c[P])}c=$}}else if(g&&z(p)&&Array.isArray(c))c=c.join(p),c&&(c=this.extendTranslation(c,t,n,r));else{let y=!1,$=!1;const C=n.count!==void 0&&!z(n.count),P=ko.hasDefaultValue(n),T=C?this.pluralResolver.getSuffix(u,n.count,n):"",N=n.ordinal&&C?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",U=C&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),Ne=U&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${T}`]||n[`defaultValue${N}`]||n.defaultValue;!this.isValidLookup(c)&&P&&(y=!0,c=Ne),this.isValidLookup(c)||($=!0,c=i);const ee=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&$?void 0:c,be=P&&Ne!==c&&this.options.updateMissing;if($||y||be){if(this.logger.log(be?"updateKey":"missingKey",u,a,i,be?Ne:c),o){const k=this.resolve(i,{...n,keySeparator:!1});k&&k.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 $e=[];const Le=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Le&&Le[0])for(let k=0;k<Le.length;k++)$e.push(Le[k]);else this.options.saveMissingTo==="all"?$e=this.languageUtils.toResolveHierarchy(n.lng||this.language):$e.push(n.lng||this.language);const x=(k,O,H)=>{const E=P&&H!==c?H:ee;this.options.missingKeyHandler?this.options.missingKeyHandler(k,a,O,E,be,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(k,a,O,E,be,n),this.emit("missingKey",k,a,O,c)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?$e.forEach(k=>{const O=this.pluralResolver.getSuffixes(k,n);U&&n[`defaultValue${this.options.pluralSeparator}zero`]&&O.indexOf(`${this.options.pluralSeparator}zero`)<0&&O.push(`${this.options.pluralSeparator}zero`),O.forEach(H=>{x([k],i+H,n[`defaultValue${H}`]||Ne)})}):x($e,i,Ne))}c=this.extendTranslation(c,t,n,h,r),$&&c===i&&this.options.appendNamespaceToMissingKey&&(c=`${a}:${i}`),($||y)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?c=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${i}`:i,y?c:void 0):c=this.options.parseMissingKeyHandler(c))}return s?(h.res=c,h.usedParams=this.getUsedParamsDetails(n),h):c}extendTranslation(t,n,r,s,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=z(t)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let f;if(u){const c=t.match(this.interpolator.nestingRegexp);f=c&&c.length}let h=r.replace&&!z(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),t=this.interpolator.interpolate(t,h,r.lng||this.language||s.usedLng,r),u){const c=t.match(this.interpolator.nestingRegexp),m=c&&c.length;f<m&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&s&&s.res&&(r.lng=this.language||s.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var c=arguments.length,m=new Array(c),v=0;v<c;v++)m[v]=arguments[v];return o&&o[0]===m[0]&&!r.context?(i.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${n[0]}`),null):i.translate(...m,n)},r)),r.interpolation&&this.interpolator.reset()}const l=r.postProcess||this.options.postProcess,a=z(l)?[l]:l;return t!=null&&a&&a.length&&r.applyPostProcessor!==!1&&(t=Eh.handle(a,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,s,o,i,l;return z(t)&&(t=[t]),t.forEach(a=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(a,n),f=u.key;s=f;let h=u.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const c=n.count!==void 0&&!z(n.count),m=c&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),v=n.context!==void 0&&(z(n.context)||typeof n.context=="number")&&n.context!=="",w=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);h.forEach(d=>{this.isValidLookup(r)||(l=d,!jh[`${w[0]}-${d}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(jh[`${w[0]}-${d}`]=!0,this.logger.warn(`key "${s}" for languages "${w.join(", ")}" won't get resolved as namespace "${l}" 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!!!")),w.forEach(p=>{if(this.isValidLookup(r))return;i=p;const g=[f];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(g,f,p,d,n);else{let y;c&&(y=this.pluralResolver.getSuffix(p,n.count,n));const $=`${this.options.pluralSeparator}zero`,C=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(g.push(f+y),n.ordinal&&y.indexOf(C)===0&&g.push(f+y.replace(C,this.options.pluralSeparator)),m&&g.push(f+$)),v){const P=`${f}${this.options.contextSeparator}${n.context}`;g.push(P),c&&(g.push(P+y),n.ordinal&&y.indexOf(C)===0&&g.push(P+y.replace(C,this.options.pluralSeparator)),m&&g.push(P+$))}}let S;for(;S=g.pop();)this.isValidLookup(r)||(o=S,r=this.getResource(p,d,S,n))}))})}),{res:r,usedKey:s,exactUsedKey:o,usedLng:i,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,s):this.resourceStore.getResource(t,n,r,s)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!z(t.replace);let s=r?t.replace:t;if(r&&typeof t.count<"u"&&(s.count=t.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!r){s={...s};for(const o of n)delete s[o]}return s}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const ta=e=>e.charAt(0).toUpperCase()+e.slice(1);class Ah{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=nt.create("languageUtils")}getScriptPartFromCode(t){if(t=xo(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=xo(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(z(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let s=Intl.getCanonicalLocales(t)[0];if(s&&this.options.lowerCaseLng&&(s=s.toLowerCase()),s)return s}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(s=>s.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=ta(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=ta(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=ta(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const s=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(s))&&(n=s)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return n=s;n=this.options.supportedLngs.find(o=>{if(o===s)return o;if(!(o.indexOf("-")<0&&s.indexOf("-")<0)&&(o.indexOf("-")>0&&s.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===s||o.indexOf(s)===0&&s.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),z(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),s=[],o=i=>{i&&(this.isSupportedCode(i)?s.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return z(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):z(t)&&o(this.formatLanguageCode(t)),r.forEach(i=>{s.indexOf(i)<0&&o(this.formatLanguageCode(i))}),s}}let p0=[{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}],g0={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const m0=["v1","v2","v3"],y0=["v4"],Th={zero:0,one:1,two:2,few:3,many:4,other:5},v0=()=>{const e={};return p0.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:g0[t.fc]}})}),e};class w0{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=nt.create("pluralResolver"),(!this.options.compatibilityJSON||y0.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=v0(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const r=xo(t==="dev"?"en":t),s=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:s});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let i;try{i=new Intl.PluralRules(r,{type:s})}catch{if(!t.match(/-|_/))return;const a=this.languageUtils.getLanguagePartFromCode(t);i=this.getRule(a,n)}return this.pluralRulesCache[o]=i,i}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(s=>`${n}${s}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((s,o)=>Th[s]-Th[o]).map(s=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${s}`):r.numbers.map(s=>this.getSuffix(t,s,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(t,r);return s?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${s.select(n)}`:this.getSuffixRetroCompatible(s,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let s=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));const o=()=>this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString();return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?`_plural_${s.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!m0.includes(this.options.compatibilityJSON)}}const Oh=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=i0(e,t,n);return!o&&s&&z(n)&&(o=ea(e,n,r),o===void 0&&(o=ea(t,n,r))),o},na=e=>e.replace(/\$/g,"$$$$");class S0{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=nt.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:s,prefix:o,prefixEscaped:i,suffix:l,suffixEscaped:a,formatSeparator:u,unescapeSuffix:f,unescapePrefix:h,nestingPrefix:c,nestingPrefixEscaped:m,nestingSuffix:v,nestingSuffixEscaped:w,nestingOptionsSeparator:d,maxReplaces:p,alwaysFormat:g}=t.interpolation;this.escape=n!==void 0?n:a0,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=o?zn(o):i||"{{",this.suffix=l?zn(l):a||"}}",this.formatSeparator=u||",",this.unescapePrefix=f?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=c?zn(c):m||zn("$t("),this.nestingSuffix=v?zn(v):w||zn(")"),this.nestingOptionsSeparator=d||",",this.maxReplaces=p||1e3,this.alwaysFormat=g!==void 0?g:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,s){let o,i,l;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=m=>{if(m.indexOf(this.formatSeparator)<0){const p=Oh(n,a,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(p,void 0,r,{...s,...n,interpolationkey:m}):p}const v=m.split(this.formatSeparator),w=v.shift().trim(),d=v.join(this.formatSeparator).trim();return this.format(Oh(n,a,w,this.options.keySeparator,this.options.ignoreJSONStructure),d,r,{...s,...n,interpolationkey:w})};this.resetRegExp();const f=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,h=s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>na(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?na(this.escape(m)):na(m)}].forEach(m=>{for(l=0;o=m.regex.exec(t);){const v=o[1].trim();if(i=u(v),i===void 0)if(typeof f=="function"){const d=f(t,o,s);i=z(d)?d:""}else if(s&&Object.prototype.hasOwnProperty.call(s,v))i="";else if(h){i=o[0];continue}else this.logger.warn(`missed to pass in variable ${v} for interpolating ${t}`),i="";else!z(i)&&!this.useRawValueToEscape&&(i=Sh(i));const w=m.safeValue(i);if(t=t.replace(o[0],w),h?(m.regex.lastIndex+=i.length,m.regex.lastIndex-=o[0].length):m.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,o,i;const l=(a,u)=>{const f=this.nestingOptionsSeparator;if(a.indexOf(f)<0)return a;const h=a.split(new RegExp(`${f}[ ]*{`));let c=`{${h[1]}`;a=h[0],c=this.interpolate(c,i);const m=c.match(/'/g),v=c.match(/"/g);(m&&m.length%2===0&&!v||v.length%2!==0)&&(c=c.replace(/'/g,'"'));try{i=JSON.parse(c),u&&(i={...u,...i})}catch(w){return this.logger.warn(`failed parsing options string in nesting for key ${a}`,w),`${a}${f}${c}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,a};for(;s=this.nestingRegexp.exec(t);){let a=[];i={...r},i=i.replace&&!z(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const f=s[1].split(this.formatSeparator).map(h=>h.trim());s[1]=f.shift(),a=f,u=!0}if(o=n(l.call(this,s[1].trim(),i),i),o&&s[0]===t&&!z(o))return o;z(o)||(o=Sh(o)),o||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${t}`),o=""),u&&(o=a.reduce((f,h)=>this.format(f,h,r.lng,{...r,interpolationkey:s[1].trim()}),o.trim())),t=t.replace(s[0],o),this.regexp.lastIndex=0}return t}}const x0=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const s=r[1].substring(0,r[1].length-1);t==="currency"&&s.indexOf(":")<0?n.currency||(n.currency=s.trim()):t==="relativetime"&&s.indexOf(":")<0?n.range||(n.range=s.trim()):s.split(";").forEach(i=>{if(i){const[l,...a]=i.split(":"),u=a.join(":").trim().replace(/^'+|'+$/g,""),f=l.trim();n[f]||(n[f]=u),u==="false"&&(n[f]=!1),u==="true"&&(n[f]=!0),isNaN(u)||(n[f]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}},Mn=e=>{const t={};return(n,r,s)=>{let o=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(o={...o,[s.interpolationkey]:void 0});const i=r+JSON.stringify(o);let l=t[i];return l||(l=e(xo(r),s),t[i]=l),l(n)}};class C0{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=nt.create("formatter"),this.options=t,this.formats={number:Mn((n,r)=>{const s=new Intl.NumberFormat(n,{...r});return o=>s.format(o)}),currency:Mn((n,r)=>{const s=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>s.format(o)}),datetime:Mn((n,r)=>{const s=new Intl.DateTimeFormat(n,{...r});return o=>s.format(o)}),relativetime:Mn((n,r)=>{const s=new Intl.RelativeTimeFormat(n,{...r});return o=>s.format(o,r.range||"day")}),list:Mn((n,r)=>{const s=new Intl.ListFormat(n,{...r});return o=>s.format(o)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Mn(n)}format(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=n.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(l=>l.indexOf(")")>-1)){const l=o.findIndex(a=>a.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,l)].join(this.formatSeparator)}return o.reduce((l,a)=>{const{formatName:u,formatOptions:f}=x0(a);if(this.formats[u]){let h=l;try{const c=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},m=c.locale||c.lng||s.locale||s.lng||r;h=this.formats[u](l,m,{...f,...s,...c})}catch(c){this.logger.warn(c)}return h}else this.logger.warn(`there was no format function for ${u}`);return l},t)}}const $0=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class k0 extends $o{constructor(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=s,this.logger=nt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,s.backend,s)}queueLoad(t,n,r,s){const o={},i={},l={},a={};return t.forEach(u=>{let f=!0;n.forEach(h=>{const c=`${u}|${h}`;!r.reload&&this.store.hasResourceBundle(u,h)?this.state[c]=2:this.state[c]<0||(this.state[c]===1?i[c]===void 0&&(i[c]=!0):(this.state[c]=1,f=!1,i[c]===void 0&&(i[c]=!0),o[c]===void 0&&(o[c]=!0),a[h]===void 0&&(a[h]=!0)))}),f||(l[u]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(a)}}loaded(t,n,r){const s=t.split("|"),o=s[0],i=s[1];n&&this.emit("failedLoading",o,i,n),!n&&r&&this.store.addResourceBundle(o,i,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const l={};this.queue.forEach(a=>{o0(a.loaded,[o],i),$0(a,t),n&&a.errors.push(n),a.pendingCount===0&&!a.done&&(Object.keys(a.loaded).forEach(u=>{l[u]||(l[u]={});const f=a.loaded[u];f.length&&f.forEach(h=>{l[u][h]===void 0&&(l[u][h]=!0)})}),a.done=!0,a.errors.length?a.callback(a.errors):a.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(a=>!a.done)}read(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:s,wait:o,callback:i});return}this.readingCalls++;const l=(u,f)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(u&&f&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,s+1,o*2,i)},o);return}i(u,f)},a=this.backend[r].bind(this.backend);if(a.length===2){try{const u=a(t,n);u&&typeof u.then=="function"?u.then(f=>l(null,f)).catch(l):l(null,u)}catch(u){l(u)}return}return a(t,n,l)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=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."),s&&s();z(t)&&(t=this.languageUtils.toResolveHierarchy(t)),z(n)&&(n=[n]);const o=this.queueLoad(t,n,r,s);if(!o.toLoad.length)return o.pending.length||s(),null;o.toLoad.forEach(i=>{this.loadOne(i)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),s=r[0],o=r[1];this.read(s,o,"read",void 0,void 0,(i,l)=>{i&&this.logger.warn(`${n}loading namespace ${o} for language ${s} failed`,i),!i&&l&&this.logger.log(`${n}loaded namespace ${o} for language ${s}`,l),this.loaded(t,i,l)})}saveMissing(t,n,r,s,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" 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(!(r==null||r==="")){if(this.backend&&this.backend.create){const a={...i,isUpdate:o},u=this.backend.create.bind(this.backend);if(u.length<6)try{let f;u.length===5?f=u(t,n,r,s,a):f=u(t,n,r,s),f&&typeof f.then=="function"?f.then(h=>l(null,h)).catch(l):l(null,f)}catch(f){l(f)}else u(t,n,r,s,l,a)}!t||!t[0]||this.store.addResource(t[0],n,r,s)}}}const Nh=()=>({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:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),z(e[1])&&(t.defaultValue=e[1]),z(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Lh=e=>(z(e.ns)&&(e.ns=[e.ns]),z(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),z(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Po=()=>{},P0=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class Xr extends $o{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Lh(t),this.services={},this.logger=nt,this.modules={external:[]},P0(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(z(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const s=Nh();this.options={...s,...this.options,...Lh(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...s.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const o=f=>f?typeof f=="function"?new f:f:null;if(!this.options.isClone){this.modules.logger?nt.init(o(this.modules.logger),this.options):nt.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:typeof Intl<"u"&&(f=C0);const h=new Ah(this.options);this.store=new Ph(this.options.resources,this.options);const c=this.services;c.logger=nt,c.resourceStore=this.store,c.languageUtils=h,c.pluralResolver=new w0(h,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(c.formatter=o(f),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new S0(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new k0(o(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(m){for(var v=arguments.length,w=new Array(v>1?v-1:0),d=1;d<v;d++)w[d-1]=arguments[d];t.emit(m,...w)}),this.modules.languageDetector&&(c.languageDetector=o(this.modules.languageDetector),c.languageDetector.init&&c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=o(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new ko(this.services,this.options),this.translator.on("*",function(m){for(var v=arguments.length,w=new Array(v>1?v-1:0),d=1;d<v;d++)w[d-1]=arguments[d];t.emit(m,...w)}),this.modules.external.forEach(m=>{m.init&&m.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Po),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[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(f=>{this[f]=function(){return t.store[f](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=function(){return t.store[f](...arguments),t}});const a=Jr(),u=()=>{const f=(h,c)=>{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),a.resolve(c),r(h,c)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),a}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Po;const s=z(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(s&&s.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],i=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(u=>{u!=="cimode"&&o.indexOf(u)<0&&o.push(u)})};s?i(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(a=>i(a)),this.options.preload&&this.options.preload.forEach(l=>i(l)),this.services.backendConnector.load(o,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(l)})}else r(null)}reloadResources(t,n,r){const s=Jr();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=Po),this.services.backendConnector.reload(t,n,o=>{s.resolve(),r(o)}),s}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&Eh.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const s=Jr();this.emit("languageChanging",t);const o=a=>{this.language=a,this.languages=this.services.languageUtils.toResolveHierarchy(a),this.resolvedLanguage=void 0,this.setResolvedLanguage(a)},i=(a,u)=>{u?(o(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,s.resolve(function(){return r.t(...arguments)}),n&&n(a,function(){return r.t(...arguments)})},l=a=>{!t&&!a&&this.services.languageDetector&&(a=[]);const u=z(a)?a:this.services.languageUtils.getBestMatchFromCodes(a);u&&(this.language||o(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,f=>{i(f,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),s}getFixedT(t,n,r){var s=this;const o=function(i,l){let a;if(typeof l!="object"){for(var u=arguments.length,f=new Array(u>2?u-2:0),h=2;h<u;h++)f[h-2]=arguments[h];a=s.options.overloadTranslationOptionHandler([i,l].concat(f))}else a={...l};a.lng=a.lng||o.lng,a.lngs=a.lngs||o.lngs,a.ns=a.ns||o.ns,a.keyPrefix!==""&&(a.keyPrefix=a.keyPrefix||r||o.keyPrefix);const c=s.options.keySeparator||".";let m;return a.keyPrefix&&Array.isArray(i)?m=i.map(v=>`${a.keyPrefix}${c}${v}`):m=a.keyPrefix?`${a.keyPrefix}${c}${i}`:i,s.t(m,a)};return z(t)?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=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 r=n.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(l,a)=>{const u=this.services.backendConnector.state[`${l}|${a}`];return u===-1||u===0||u===2};if(n.precheck){const l=n.precheck(this,i);if(l!==void 0)return l}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,t)&&(!s||i(o,t)))}loadNamespaces(t,n){const r=Jr();return this.options.ns?(z(t)&&(t=[t]),t.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Jr();z(t)&&(t=[t]);const s=this.options.preload||[],o=t.filter(i=>s.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return o.length?(this.options.preload=s.concat(o),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["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"],r=this.services&&this.services.languageUtils||new Ah(Nh());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Xr(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Po;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const s={...this.options,...t,isClone:!0},o=new Xr(s);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(l=>{o[l]=this[l]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new Ph(this.store.data,s),o.services.resourceStore=o.store),o.translator=new ko(o.services,s),o.translator.on("*",function(l){for(var a=arguments.length,u=new Array(a>1?a-1:0),f=1;f<a;f++)u[f-1]=arguments[f];o.emit(l,...u)}),o.init(s,n),o.translator.options=s,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const _h=Xr.createInstance();_h.createInstance=Xr.createInstance;var E0=_h;const Rh=Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})),Dn=qd(Rh);var ra={exports:{}},sa={},Fh={exports:{}};(function(e){var t=Dn,n=Dn;function r(o){return n.existsSync(t.join(o,"package.json"))}function s(o,i){if(o=o||e.parent.filename,i=i||r,typeof o=="string"&&(o[o.length-1]!==t.sep&&(o+=t.sep),o=o.split(t.sep)),!o.length)throw new Error("package.json not found in path");o.pop();var l=o.join(t.sep);try{if(i(l))return l}catch{}return s(o,i)}e.exports=s})(Fh);var j0=Fh.exports,Ih={exports:{}},zh=Object.prototype.toString,Mh=function(t){var n=zh.call(t),r=n==="[object Arguments]";return r||(r=n!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&zh.call(t.callee)==="[object Function]"),r},oa,Dh;function A0(){if(Dh)return oa;Dh=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Mh,s=Object.prototype.propertyIsEnumerable,o=!s.call({toString:null},"toString"),i=s.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],a=function(c){var m=c.constructor;return m&&m.prototype===c},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if(typeof window>"u")return!1;for(var c in window)try{if(!u["$"+c]&&t.call(window,c)&&window[c]!==null&&typeof window[c]=="object")try{a(window[c])}catch{return!0}}catch{return!0}return!1}(),h=function(c){if(typeof window>"u"||!f)return a(c);try{return a(c)}catch{return!1}};e=function(m){var v=m!==null&&typeof m=="object",w=n.call(m)==="[object Function]",d=r(m),p=v&&n.call(m)==="[object String]",g=[];if(!v&&!w&&!d)throw new TypeError("Object.keys called on a non-object");var S=i&&w;if(p&&m.length>0&&!t.call(m,0))for(var y=0;y<m.length;++y)g.push(String(y));if(d&&m.length>0)for(var $=0;$<m.length;++$)g.push(String($));else for(var C in m)!(S&&C==="prototype")&&t.call(m,C)&&g.push(String(C));if(o)for(var P=h(m),T=0;T<l.length;++T)!(P&&l[T]==="constructor")&&t.call(m,l[T])&&g.push(l[T]);return g}}return oa=e,oa}var T0=Array.prototype.slice,O0=Mh,bh=Object.keys,Eo=bh?function(t){return bh(t)}:A0(),Uh=Object.keys;Eo.shim=function(){if(Object.keys){var t=function(){var n=Object.keys(arguments);return n&&n.length===arguments.length}(1,2);t||(Object.keys=function(r){return O0(r)?Uh(T0.call(r)):Uh(r)})}else Object.keys=Eo;return Object.keys||Eo};var N0=Eo,Bh=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var s=42;t[n]=s;for(var o in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(t,n);if(l.value!==s||l.enumerable!==!0)return!1}return!0},ia=Object,L0=Error,_0=EvalError,R0=RangeError,F0=ReferenceError,I0=SyntaxError,Vh=TypeError,z0=URIError,M0=Math.abs,D0=Math.floor,b0=Math.max,U0=Math.min,B0=Math.pow,V0=Math.round,H0=Number.isNaN||function(t){return t!==t},W0=H0,K0=function(t){return W0(t)||t===0?t:t<0?-1:1},q0=Object.getOwnPropertyDescriptor,jo=q0;if(jo)try{jo([],"length")}catch{jo=null}var Hh=jo,Ao=Object.defineProperty||!1;if(Ao)try{Ao({},"a",{value:1})}catch{Ao=!1}var G0=Ao,la,Wh;function Q0(){if(Wh)return la;Wh=1;var e=typeof Symbol<"u"&&Symbol,t=Bh;return la=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},la}var aa,Kh;function qh(){return Kh||(Kh=1,aa=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),aa}var ua,Gh;function Qh(){if(Gh)return ua;Gh=1;var e=ia;return ua=e.getPrototypeOf||null,ua}var J0="Function.prototype.bind called on incompatible ",Y0=Object.prototype.toString,X0=Math.max,Z0="[object Function]",Jh=function(t,n){for(var r=[],s=0;s<t.length;s+=1)r[s]=t[s];for(var o=0;o<n.length;o+=1)r[o+t.length]=n[o];return r},ev=function(t,n){for(var r=[],s=n,o=0;s<t.length;s+=1,o+=1)r[o]=t[s];return r},tv=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n},nv=function(t){var n=this;if(typeof n!="function"||Y0.apply(n)!==Z0)throw new TypeError(J0+n);for(var r=ev(arguments,1),s,o=function(){if(this instanceof s){var f=n.apply(this,Jh(r,arguments));return Object(f)===f?f:this}return n.apply(t,Jh(r,arguments))},i=X0(0,n.length-r.length),l=[],a=0;a<i;a++)l[a]="$"+a;if(s=Function("binder","return function ("+tv(l,",")+"){ return binder.apply(this,arguments); }")(o),n.prototype){var u=function(){};u.prototype=n.prototype,s.prototype=new u,u.prototype=null}return s},rv=nv,To=Function.prototype.bind||rv,ca=Function.prototype.call,fa,Yh;function Xh(){return Yh||(Yh=1,fa=Function.prototype.apply),fa}var sv=typeof Reflect<"u"&&Reflect&&Reflect.apply,ov=To,iv=Xh(),lv=ca,av=sv,uv=av||ov.call(lv,iv),cv=To,fv=Vh,hv=ca,dv=uv,Zh=function(t){if(t.length<1||typeof t[0]!="function")throw new fv("a function is required");return dv(cv,hv,t)},ha,ed;function pv(){if(ed)return ha;ed=1;var e=Zh,t=Hh,n;try{n=[].__proto__===Array.prototype}catch(i){if(!i||typeof i!="object"||!("code"in i)||i.code!=="ERR_PROTO_ACCESS")throw i}var r=!!n&&t&&t(Object.prototype,"__proto__"),s=Object,o=s.getPrototypeOf;return ha=r&&typeof r.get=="function"?e([r.get]):typeof o=="function"?function(l){return o(l==null?l:s(l))}:!1,ha}var da,td;function gv(){if(td)return da;td=1;var e=qh(),t=Qh(),n=pv();return da=e?function(s){return e(s)}:t?function(s){if(!s||typeof s!="object"&&typeof s!="function")throw new TypeError("getProto: not an object");return t(s)}:n?function(s){return n(s)}:null,da}var pa,nd;function mv(){if(nd)return pa;nd=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=To;return pa=n.call(e,t),pa}var b,yv=ia,vv=L0,wv=_0,Sv=R0,xv=F0,bn=I0,Un=Vh,Cv=z0,$v=M0,kv=D0,Pv=b0,Ev=U0,jv=B0,Av=V0,Tv=K0,rd=Function,ga=function(e){try{return rd('"use strict"; return ('+e+").constructor;")()}catch{}},Zr=Hh,Ov=G0,ma=function(){throw new Un},Nv=Zr?function(){try{return arguments.callee,ma}catch{try{return Zr(arguments,"callee").get}catch{return ma}}}():ma,Bn=Q0()(),ae=gv(),Lv=Qh(),_v=qh(),sd=Xh(),es=ca,Vn={},Rv=typeof Uint8Array>"u"||!ae?b:ae(Uint8Array),tn={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?b:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?b:ArrayBuffer,"%ArrayIteratorPrototype%":Bn&&ae?ae([][Symbol.iterator]()):b,"%AsyncFromSyncIteratorPrototype%":b,"%AsyncFunction%":Vn,"%AsyncGenerator%":Vn,"%AsyncGeneratorFunction%":Vn,"%AsyncIteratorPrototype%":Vn,"%Atomics%":typeof Atomics>"u"?b:Atomics,"%BigInt%":typeof BigInt>"u"?b:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?b:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?b:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?b:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":vv,"%eval%":eval,"%EvalError%":wv,"%Float16Array%":typeof Float16Array>"u"?b:Float16Array,"%Float32Array%":typeof Float32Array>"u"?b:Float32Array,"%Float64Array%":typeof Float64Array>"u"?b:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?b:FinalizationRegistry,"%Function%":rd,"%GeneratorFunction%":Vn,"%Int8Array%":typeof Int8Array>"u"?b:Int8Array,"%Int16Array%":typeof Int16Array>"u"?b:Int16Array,"%Int32Array%":typeof Int32Array>"u"?b:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Bn&&ae?ae(ae([][Symbol.iterator]())):b,"%JSON%":typeof JSON=="object"?JSON:b,"%Map%":typeof Map>"u"?b:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Bn||!ae?b:ae(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":yv,"%Object.getOwnPropertyDescriptor%":Zr,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?b:Promise,"%Proxy%":typeof Proxy>"u"?b:Proxy,"%RangeError%":Sv,"%ReferenceError%":xv,"%Reflect%":typeof Reflect>"u"?b:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?b:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Bn||!ae?b:ae(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?b:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Bn&&ae?ae(""[Symbol.iterator]()):b,"%Symbol%":Bn?Symbol:b,"%SyntaxError%":bn,"%ThrowTypeError%":Nv,"%TypedArray%":Rv,"%TypeError%":Un,"%Uint8Array%":typeof Uint8Array>"u"?b:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?b:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?b:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?b:Uint32Array,"%URIError%":Cv,"%WeakMap%":typeof WeakMap>"u"?b:WeakMap,"%WeakRef%":typeof WeakRef>"u"?b:WeakRef,"%WeakSet%":typeof WeakSet>"u"?b:WeakSet,"%Function.prototype.call%":es,"%Function.prototype.apply%":sd,"%Object.defineProperty%":Ov,"%Object.getPrototypeOf%":Lv,"%Math.abs%":$v,"%Math.floor%":kv,"%Math.max%":Pv,"%Math.min%":Ev,"%Math.pow%":jv,"%Math.round%":Av,"%Math.sign%":Tv,"%Reflect.getPrototypeOf%":_v};if(ae)try{null.error}catch(e){var Fv=ae(ae(e));tn["%Error.prototype%"]=Fv}var Iv=function e(t){var n;if(t==="%AsyncFunction%")n=ga("async function () {}");else if(t==="%GeneratorFunction%")n=ga("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=ga("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var s=e("%AsyncGenerator%");s&&ae&&(n=ae(s.prototype))}return tn[t]=n,n},od={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ts=To,Oo=mv(),zv=ts.call(es,Array.prototype.concat),Mv=ts.call(sd,Array.prototype.splice),id=ts.call(es,String.prototype.replace),No=ts.call(es,String.prototype.slice),Dv=ts.call(es,RegExp.prototype.exec),bv=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Uv=/\\(\\)?/g,Bv=function(t){var n=No(t,0,1),r=No(t,-1);if(n==="%"&&r!=="%")throw new bn("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new bn("invalid intrinsic syntax, expected opening `%`");var s=[];return id(t,bv,function(o,i,l,a){s[s.length]=l?id(a,Uv,"$1"):i||o}),s},Vv=function(t,n){var r=t,s;if(Oo(od,r)&&(s=od[r],r="%"+s[0]+"%"),Oo(tn,r)){var o=tn[r];if(o===Vn&&(o=Iv(r)),typeof o>"u"&&!n)throw new Un("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:s,name:r,value:o}}throw new bn("intrinsic "+t+" does not exist!")},Hv=function(t,n){if(typeof t!="string"||t.length===0)throw new Un("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Un('"allowMissing" argument must be a boolean');if(Dv(/^%?[^%]*%?$/,t)===null)throw new bn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=Bv(t),s=r.length>0?r[0]:"",o=Vv("%"+s+"%",n),i=o.name,l=o.value,a=!1,u=o.alias;u&&(s=u[0],Mv(r,zv([0,1],u)));for(var f=1,h=!0;f<r.length;f+=1){var c=r[f],m=No(c,0,1),v=No(c,-1);if((m==='"'||m==="'"||m==="`"||v==='"'||v==="'"||v==="`")&&m!==v)throw new bn("property names with quotes must have matching quotes");if((c==="constructor"||!h)&&(a=!0),s+="."+c,i="%"+s+"%",Oo(tn,i))l=tn[i];else if(l!=null){if(!(c in l)){if(!n)throw new Un("base intrinsic for "+t+" exists, but the property is not available.");return}if(Zr&&f+1>=r.length){var w=Zr(l,c);h=!!w,h&&"get"in w&&!("originalValue"in w.get)?l=w.get:l=l[c]}else h=Oo(l,c),l=l[c];h&&!a&&(tn[i]=l)}}return l},ld=Hv,ad=Zh,Wv=ad([ld("%String.prototype.indexOf%")]),Kv=function(t,n){var r=ld(t,!!n);return typeof r=="function"&&Wv(t,".prototype.")>-1?ad([r]):r},qv=N0,ud=Bh(),cd=Kv,Lo=ia,Gv=cd("Array.prototype.push"),fd=cd("Object.prototype.propertyIsEnumerable"),Qv=ud?Lo.getOwnPropertySymbols:null,Jv=function(t,n){if(t==null)throw new TypeError("target must be an object");var r=Lo(t);if(arguments.length===1)return r;for(var s=1;s<arguments.length;++s){var o=Lo(arguments[s]),i=qv(o),l=ud&&(Lo.getOwnPropertySymbols||Qv);if(l)for(var a=l(o),u=0;u<a.length;++u){var f=a[u];fd(o,f)&&Gv(i,f)}for(var h=0;h<i.length;++h){var c=i[h];if(fd(o,c)){var m=o[c];r[c]=m}}}return r},ya=Jv,Yv=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r<t.length;++r)n[t[r]]=t[r];var s=Object.assign({},n),o="";for(var i in s)o+=i;return e!==o},Xv=function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch{return e[1]==="y"}return!1},Zv=function(){return!Object.assign||Yv()||Xv()?ya:Object.assign},hd={},e1=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"},va={exports:{}};typeof Object.create=="function"?va.exports=function(t,n){t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:va.exports=function(t,n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t};var t1=va.exports;(function(e){var t=/%[sdj%]/g;e.format=function(x){if(!S(x)){for(var k=[],O=0;O<arguments.length;O++)k.push(s(arguments[O]));return k.join(" ")}for(var O=1,H=arguments,E=H.length,L=String(x).replace(t,function(M){if(M==="%%")return"%";if(O>=E)return M;switch(M){case"%s":return String(H[O++]);case"%d":return Number(H[O++]);case"%j":try{return JSON.stringify(H[O++])}catch{return"[Circular]"}default:return M}}),_=H[O];O<E;_=H[++O])d(_)||!P(_)?L+=" "+_:L+=" "+s(_);return L},e.deprecate=function(x,k){if($(pe.process))return function(){return e.deprecate(x,k).apply(this,arguments)};if(process.noDeprecation===!0)return x;var O=!1;function H(){if(!O){if(process.throwDeprecation)throw new Error(k);process.traceDeprecation?console.trace(k):console.error(k),O=!0}return x.apply(this,arguments)}return H};var n={},r;e.debuglog=function(x){if($(r)&&(r=process.env.NODE_DEBUG||""),x=x.toUpperCase(),!n[x])if(new RegExp("\\b"+x+"\\b","i").test(r)){var k=process.pid;n[x]=function(){var O=e.format.apply(e,arguments);console.error("%s %d: %s",x,k,O)}}else n[x]=function(){};return n[x]};function s(x,k){var O={seen:[],stylize:i};return arguments.length>=3&&(O.depth=arguments[2]),arguments.length>=4&&(O.colors=arguments[3]),w(k)?O.showHidden=k:k&&e._extend(O,k),$(O.showHidden)&&(O.showHidden=!1),$(O.depth)&&(O.depth=2),$(O.colors)&&(O.colors=!1),$(O.customInspect)&&(O.customInspect=!0),O.colors&&(O.stylize=o),a(O,x,O.depth)}e.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function o(x,k){var O=s.styles[k];return O?"\x1B["+s.colors[O][0]+"m"+x+"\x1B["+s.colors[O][1]+"m":x}function i(x,k){return x}function l(x){var k={};return x.forEach(function(O,H){k[O]=!0}),k}function a(x,k,O){if(x.customInspect&&k&&U(k.inspect)&&k.inspect!==e.inspect&&!(k.constructor&&k.constructor.prototype===k)){var H=k.inspect(O,x);return S(H)||(H=a(x,H,O)),H}var E=u(x,k);if(E)return E;var L=Object.keys(k),_=l(L);if(x.showHidden&&(L=Object.getOwnPropertyNames(k)),N(k)&&(L.indexOf("message")>=0||L.indexOf("description")>=0))return f(k);if(L.length===0){if(U(k)){var M=k.name?": "+k.name:"";return x.stylize("[Function"+M+"]","special")}if(C(k))return x.stylize(RegExp.prototype.toString.call(k),"regexp");if(T(k))return x.stylize(Date.prototype.toString.call(k),"date");if(N(k))return f(k)}var B="",Se=!1,Ue=["{","}"];if(v(k)&&(Se=!0,Ue=["[","]"]),U(k)){var nn=k.name?": "+k.name:"";B=" [Function"+nn+"]"}if(C(k)&&(B=" "+RegExp.prototype.toString.call(k)),T(k)&&(B=" "+Date.prototype.toUTCString.call(k)),N(k)&&(B=" "+f(k)),L.length===0&&(!Se||k.length==0))return Ue[0]+B+Ue[1];if(O<0)return C(k)?x.stylize(RegExp.prototype.toString.call(k),"regexp"):x.stylize("[Object]","special");x.seen.push(k);var rt;return Se?rt=h(x,k,O,_,L):rt=L.map(function(_1){return c(x,k,O,_,_1,Se)}),x.seen.pop(),m(rt,B,Ue)}function u(x,k){if($(k))return x.stylize("undefined","undefined");if(S(k)){var O="'"+JSON.stringify(k).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return x.stylize(O,"string")}if(g(k))return x.stylize(""+k,"number");if(w(k))return x.stylize(""+k,"boolean");if(d(k))return x.stylize("null","null")}function f(x){return"["+Error.prototype.toString.call(x)+"]"}function h(x,k,O,H,E){for(var L=[],_=0,M=k.length;_<M;++_)Le(k,String(_))?L.push(c(x,k,O,H,String(_),!0)):L.push("");return E.forEach(function(B){B.match(/^\d+$/)||L.push(c(x,k,O,H,B,!0))}),L}function c(x,k,O,H,E,L){var _,M,B;if(B=Object.getOwnPropertyDescriptor(k,E)||{value:k[E]},B.get?B.set?M=x.stylize("[Getter/Setter]","special"):M=x.stylize("[Getter]","special"):B.set&&(M=x.stylize("[Setter]","special")),Le(H,E)||(_="["+E+"]"),M||(x.seen.indexOf(B.value)<0?(d(O)?M=a(x,B.value,null):M=a(x,B.value,O-1),M.indexOf(`
51
51
  `)>-1&&(L?M=M.split(`
52
- `).map(function(ve){return" "+ve}).join(`
52
+ `).map(function(Se){return" "+Se}).join(`
53
53
  `).substr(2):M=`
54
54
  `+M.split(`
55
- `).map(function(ve){return" "+ve}).join(`
56
- `))):M=C.stylize("[Circular]","special")),$(_)){if(L&&E.match(/^\d+$/))return M;_=JSON.stringify(""+E),_.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(_=_.substr(1,_.length-2),_=C.stylize(_,"name")):(_=_.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),_=C.stylize(_,"string"))}return _+": "+M}function m(C,k,A){var V=C.reduce(function(E,L){return L.indexOf(`
57
- `)>=0,E+L.replace(/\u001b\[\d\d?m/g,"").length+1},0);return V>60?A[0]+(k===""?"":k+`
58
- `)+" "+C.join(`,
59
- `)+" "+A[1]:A[0]+k+" "+C.join(", ")+" "+A[1]}function v(C){return Array.isArray(C)}e.isArray=v;function w(C){return typeof C=="boolean"}e.isBoolean=w;function d(C){return C===null}e.isNull=d;function p(C){return C==null}e.isNullOrUndefined=p;function g(C){return typeof C=="number"}e.isNumber=g;function S(C){return typeof C=="string"}e.isString=S;function y(C){return typeof C=="symbol"}e.isSymbol=y;function $(C){return C===void 0}e.isUndefined=$;function x(C){return P(C)&&fe(C)==="[object RegExp]"}e.isRegExp=x;function P(C){return typeof C=="object"&&C!==null}e.isObject=P;function N(C){return P(C)&&fe(C)==="[object Date]"}e.isDate=N;function O(C){return P(C)&&(fe(C)==="[object Error]"||C instanceof Error)}e.isError=O;function U(C){return typeof C=="function"}e.isFunction=U;function Ne(C){return C===null||typeof C=="boolean"||typeof C=="number"||typeof C=="string"||typeof C=="symbol"||typeof C>"u"}e.isPrimitive=Ne,e.isBuffer=$0;function fe(C){return Object.prototype.toString.call(C)}function X(C){return C<10?"0"+C.toString(10):C.toString(10)}var Me=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ce(){var C=new Date,k=[X(C.getHours()),X(C.getMinutes()),X(C.getSeconds())].join(":");return[C.getDate(),Me[C.getMonth()],k].join(" ")}e.log=function(){console.log("%s - %s",Ce(),e.format.apply(e,arguments))},e.inherits=k0,e._extend=function(C,k){if(!k||!P(k))return C;for(var A=Object.keys(k),V=A.length;V--;)C[A[V]]=k[A[V]];return C};function Ae(C,k){return Object.prototype.hasOwnProperty.call(C,k)}})(lh);var E0=wo;/*!
55
+ `).map(function(Se){return" "+Se}).join(`
56
+ `))):M=x.stylize("[Circular]","special")),$(_)){if(L&&E.match(/^\d+$/))return M;_=JSON.stringify(""+E),_.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(_=_.substr(1,_.length-2),_=x.stylize(_,"name")):(_=_.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),_=x.stylize(_,"string"))}return _+": "+M}function m(x,k,O){var H=x.reduce(function(E,L){return L.indexOf(`
57
+ `)>=0,E+L.replace(/\u001b\[\d\d?m/g,"").length+1},0);return H>60?O[0]+(k===""?"":k+`
58
+ `)+" "+x.join(`,
59
+ `)+" "+O[1]:O[0]+k+" "+x.join(", ")+" "+O[1]}function v(x){return Array.isArray(x)}e.isArray=v;function w(x){return typeof x=="boolean"}e.isBoolean=w;function d(x){return x===null}e.isNull=d;function p(x){return x==null}e.isNullOrUndefined=p;function g(x){return typeof x=="number"}e.isNumber=g;function S(x){return typeof x=="string"}e.isString=S;function y(x){return typeof x=="symbol"}e.isSymbol=y;function $(x){return x===void 0}e.isUndefined=$;function C(x){return P(x)&&de(x)==="[object RegExp]"}e.isRegExp=C;function P(x){return typeof x=="object"&&x!==null}e.isObject=P;function T(x){return P(x)&&de(x)==="[object Date]"}e.isDate=T;function N(x){return P(x)&&(de(x)==="[object Error]"||x instanceof Error)}e.isError=N;function U(x){return typeof x=="function"}e.isFunction=U;function Ne(x){return x===null||typeof x=="boolean"||typeof x=="number"||typeof x=="string"||typeof x=="symbol"||typeof x>"u"}e.isPrimitive=Ne,e.isBuffer=e1;function de(x){return Object.prototype.toString.call(x)}function ee(x){return x<10?"0"+x.toString(10):x.toString(10)}var be=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function $e(){var x=new Date,k=[ee(x.getHours()),ee(x.getMinutes()),ee(x.getSeconds())].join(":");return[x.getDate(),be[x.getMonth()],k].join(" ")}e.log=function(){console.log("%s - %s",$e(),e.format.apply(e,arguments))},e.inherits=t1,e._extend=function(x,k){if(!k||!P(k))return x;for(var O=Object.keys(k),H=O.length;H--;)x[O[H]]=k[O[H]];return x};function Le(x,k){return Object.prototype.hasOwnProperty.call(x,k)}})(hd);var n1=Zv();/*!
60
60
  * The buffer module from node.js, for the browser.
61
61
  *
62
62
  * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
63
63
  * @license MIT
64
- */function uh(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,s=0,o=Math.min(n,r);s<o;++s)if(e[s]!==t[s]){n=e[s],r=t[s];break}return n<r?-1:r<n?1:0}function Wr(e){return he.Buffer&&typeof he.Buffer.isBuffer=="function"?he.Buffer.isBuffer(e):!!(e!=null&&e._isBuffer)}var Ke=lh,P0=Object.prototype.hasOwnProperty,ah=Array.prototype.slice,ch=function(){return(function(){}).name==="foo"}();function fh(e){return Object.prototype.toString.call(e)}function hh(e){return Wr(e)||typeof he.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e?!!(e instanceof DataView||e.buffer&&e.buffer instanceof ArrayBuffer):!1}var H=ih.exports=mh,j0=/\s*function\s+([^\(\s]*)\s*/;function dh(e){if(Ke.isFunction(e)){if(ch)return e.name;var t=e.toString(),n=t.match(j0);return n&&n[1]}}H.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=T0(this),this.generatedMessage=!0);var n=t.stackStartFunction||Pe;if(Error.captureStackTrace)Error.captureStackTrace(this,n);else{var r=new Error;if(r.stack){var s=r.stack,o=dh(n),i=s.indexOf(`
64
+ */function dd(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,s=0,o=Math.min(n,r);s<o;++s)if(e[s]!==t[s]){n=e[s],r=t[s];break}return n<r?-1:r<n?1:0}function ns(e){return pe.Buffer&&typeof pe.Buffer.isBuffer=="function"?pe.Buffer.isBuffer(e):!!(e!=null&&e._isBuffer)}var qe=hd,r1=Object.prototype.hasOwnProperty,pd=Array.prototype.slice,gd=function(){return(function(){}).name==="foo"}();function md(e){return Object.prototype.toString.call(e)}function yd(e){return ns(e)||typeof pe.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e?!!(e instanceof DataView||e.buffer&&e.buffer instanceof ArrayBuffer):!1}var W=Ih.exports=xd,s1=/\s*function\s+([^\(\s]*)\s*/;function vd(e){if(qe.isFunction(e)){if(gd)return e.name;var t=e.toString(),n=t.match(s1);return n&&n[1]}}W.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=o1(this),this.generatedMessage=!0);var n=t.stackStartFunction||Ae;if(Error.captureStackTrace)Error.captureStackTrace(this,n);else{var r=new Error;if(r.stack){var s=r.stack,o=vd(n),i=s.indexOf(`
65
65
  `+o);if(i>=0){var l=s.indexOf(`
66
- `,i+1);s=s.substring(l+1)}this.stack=s}}},Ke.inherits(H.AssertionError,Error);function ph(e,t){return typeof e=="string"?e.length<t?e:e.slice(0,t):e}function gh(e){if(ch||!Ke.isFunction(e))return Ke.inspect(e);var t=dh(e),n=t?": "+t:"";return"[Function"+n+"]"}function T0(e){return ph(gh(e.actual),128)+" "+e.operator+" "+ph(gh(e.expected),128)}function Pe(e,t,n,r,s){throw new H.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:s})}H.fail=Pe;function mh(e,t){e||Pe(e,!0,t,"==",H.ok)}H.ok=mh,H.equal=function(t,n,r){t!=n&&Pe(t,n,r,"==",H.equal)},H.notEqual=function(t,n,r){t==n&&Pe(t,n,r,"!=",H.notEqual)},H.deepEqual=function(t,n,r){In(t,n,!1)||Pe(t,n,r,"deepEqual",H.deepEqual)},H.deepStrictEqual=function(t,n,r){In(t,n,!0)||Pe(t,n,r,"deepStrictEqual",H.deepStrictEqual)};function In(e,t,n,r){if(e===t)return!0;if(Wr(e)&&Wr(t))return uh(e,t)===0;if(Ke.isDate(e)&&Ke.isDate(t))return e.getTime()===t.getTime();if(Ke.isRegExp(e)&&Ke.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if((e===null||typeof e!="object")&&(t===null||typeof t!="object"))return n?e===t:e==t;if(hh(e)&&hh(t)&&fh(e)===fh(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return uh(new Uint8Array(e.buffer),new Uint8Array(t.buffer))===0;if(Wr(e)!==Wr(t))return!1;r=r||{actual:[],expected:[]};var s=r.actual.indexOf(e);return s!==-1&&s===r.expected.indexOf(t)?!0:(r.actual.push(e),r.expected.push(t),N0(e,t,n,r))}function yh(e){return Object.prototype.toString.call(e)=="[object Arguments]"}function N0(e,t,n,r){if(e==null||t===null||t===void 0)return!1;if(Ke.isPrimitive(e)||Ke.isPrimitive(t))return e===t;if(n&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var s=yh(e),o=yh(t);if(s&&!o||!s&&o)return!1;if(s)return e=ah.call(e),t=ah.call(t),In(e,t,n);var i=xh(e),l=xh(t),u,a;if(i.length!==l.length)return!1;for(i.sort(),l.sort(),a=i.length-1;a>=0;a--)if(i[a]!==l[a])return!1;for(a=i.length-1;a>=0;a--)if(u=i[a],!In(e[u],t[u],n,r))return!1;return!0}H.notDeepEqual=function(t,n,r){In(t,n,!1)&&Pe(t,n,r,"notDeepEqual",H.notDeepEqual)},H.notDeepStrictEqual=vh;function vh(e,t,n){In(e,t,!0)&&Pe(e,t,n,"notDeepStrictEqual",vh)}H.strictEqual=function(t,n,r){t!==n&&Pe(t,n,r,"===",H.strictEqual)},H.notStrictEqual=function(t,n,r){t===n&&Pe(t,n,r,"!==",H.notStrictEqual)};function wh(e,t){if(!e||!t)return!1;if(Object.prototype.toString.call(t)=="[object RegExp]")return t.test(e);try{if(e instanceof t)return!0}catch{}return Error.isPrototypeOf(t)?!1:t.call({},e)===!0}function A0(e){var t;try{e()}catch(n){t=n}return t}function Sh(e,t,n,r){var s;if(typeof t!="function")throw new TypeError('"block" argument must be a function');typeof n=="string"&&(r=n,n=null),s=A0(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!s&&Pe(s,n,"Missing expected exception"+r);var o=typeof r=="string",i=!e&&Ke.isError(s),l=!e&&s&&!n;if((i&&o&&wh(s,n)||l)&&Pe(s,n,"Got unwanted exception"+r),e&&s&&n&&!wh(s,n)||!e&&s)throw s}H.throws=function(e,t,n){Sh(!0,e,t,n)},H.doesNotThrow=function(e,t,n){Sh(!1,e,t,n)},H.ifError=function(e){if(e)throw e};function Ch(e,t){e||Pe(e,!0,t,"==",Ch)}H.strict=E0(Ch,H,{equal:H.strictEqual,deepEqual:H.deepStrictEqual,notEqual:H.notStrictEqual,notDeepEqual:H.notDeepStrictEqual}),H.strict.strict=H.strict;var xh=Object.keys||function(e){var t=[];for(var n in e)P0.call(e,n)&&t.push(n);return t},O0=ih.exports,L0=O0,_0=function(e){var t,n,r,s,o;for(t=Error.prepareStackTrace,Error.prepareStackTrace=function(i,l){return Error.prepareStackTrace=t,l},n=new Error().stack,o=0;o<n.length&&n[o].getFileName()!==__filename;)o++;L0(o<n.length,"Unexpected: unable to find caller/index.js in the stack"),e=!e||isNaN(e)?1:e>n.length-2?n.length-2:e,n=n.slice(o+e+1);do s=n.shift(),r=s&&s.getFileName();while(n.length&&r==="module.js");return r};const R0=zn,F0=zn,$h=x0,z0=_0;bl.getCallerRoot=function(){try{return $h(z0(2))}catch{return}},bl.getProcessRoot=function(){let t=process.cwd();const n=F0.join(t,"current");try{R0.statSync(n).isDirectory()&&(t=n)}catch{}try{return $h(t)}catch{return}};var I0=bl,Hl={exports:{}},Kl,kh;function M0(){if(kh)return Kl;kh=1;var e=1e3,t=e*60,n=t*60,r=n*24,s=r*7,o=r*365.25;Kl=function(c,h){h=h||{};var f=typeof c;if(f==="string"&&c.length>0)return i(c);if(f==="number"&&isFinite(c))return h.long?u(c):l(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function i(c){if(c=String(c),!(c.length>100)){var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(c);if(h){var f=parseFloat(h[1]),m=(h[2]||"ms").toLowerCase();switch(m){case"years":case"year":case"yrs":case"yr":case"y":return f*o;case"weeks":case"week":case"w":return f*s;case"days":case"day":case"d":return f*r;case"hours":case"hour":case"hrs":case"hr":case"h":return f*n;case"minutes":case"minute":case"mins":case"min":case"m":return f*t;case"seconds":case"second":case"secs":case"sec":case"s":return f*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return f;default:return}}}}function l(c){var h=Math.abs(c);return h>=r?Math.round(c/r)+"d":h>=n?Math.round(c/n)+"h":h>=t?Math.round(c/t)+"m":h>=e?Math.round(c/e)+"s":c+"ms"}function u(c){var h=Math.abs(c);return h>=r?a(c,h,r,"day"):h>=n?a(c,h,n,"hour"):h>=t?a(c,h,t,"minute"):h>=e?a(c,h,e,"second"):c+" ms"}function a(c,h,f,m){var v=h>=f*1.5;return Math.round(c/f)+" "+m+(v?"s":"")}return Kl}function D0(e){n.debug=n,n.default=n,n.coerce=u,n.disable=i,n.enable=s,n.enabled=l,n.humanize=M0(),n.destroy=a,Object.keys(e).forEach(c=>{n[c]=e[c]}),n.names=[],n.skips=[],n.formatters={};function t(c){let h=0;for(let f=0;f<c.length;f++)h=(h<<5)-h+c.charCodeAt(f),h|=0;return n.colors[Math.abs(h)%n.colors.length]}n.selectColor=t;function n(c){let h,f=null,m,v;function w(...d){if(!w.enabled)return;const p=w,g=Number(new Date),S=g-(h||g);p.diff=S,p.prev=h,p.curr=g,h=g,d[0]=n.coerce(d[0]),typeof d[0]!="string"&&d.unshift("%O");let y=0;d[0]=d[0].replace(/%([a-zA-Z%])/g,(x,P)=>{if(x==="%%")return"%";y++;const N=n.formatters[P];if(typeof N=="function"){const O=d[y];x=N.call(p,O),d.splice(y,1),y--}return x}),n.formatArgs.call(p,d),(p.log||n.log).apply(p,d)}return w.namespace=c,w.useColors=n.useColors(),w.color=n.selectColor(c),w.extend=r,w.destroy=n.destroy,Object.defineProperty(w,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(m!==n.namespaces&&(m=n.namespaces,v=n.enabled(c)),v),set:d=>{f=d}}),typeof n.init=="function"&&n.init(w),w}function r(c,h){const f=n(this.namespace+(typeof h>"u"?":":h)+c);return f.log=this.log,f}function s(c){n.save(c),n.namespaces=c,n.names=[],n.skips=[];const h=(typeof c=="string"?c:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const f of h)f[0]==="-"?n.skips.push(f.slice(1)):n.names.push(f)}function o(c,h){let f=0,m=0,v=-1,w=0;for(;f<c.length;)if(m<h.length&&(h[m]===c[f]||h[m]==="*"))h[m]==="*"?(v=m,w=f,m++):(f++,m++);else if(v!==-1)m=v+1,w++,f=w;else return!1;for(;m<h.length&&h[m]==="*";)m++;return m===h.length}function i(){const c=[...n.names,...n.skips.map(h=>"-"+h)].join(",");return n.enable(""),c}function l(c){for(const h of n.skips)if(o(c,h))return!1;for(const h of n.names)if(o(c,h))return!0;return!1}function u(c){return c instanceof Error?c.stack||c.message:c}function a(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}var U0=D0;(function(e,t){t.formatArgs=r,t.save=s,t.load=o,t.useColors=n,t.storage=i(),t.destroy=(()=>{let u=!1;return()=>{u||(u=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let u;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(u=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(u[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(u){if(u[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+u[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const a="color: "+this.color;u.splice(1,0,a,"color: inherit");let c=0,h=0;u[0].replace(/%[a-zA-Z%]/g,f=>{f!=="%%"&&(c++,f==="%c"&&(h=c))}),u.splice(h,0,a)}t.log=console.debug||console.log||(()=>{});function s(u){try{u?t.storage.setItem("debug",u):t.storage.removeItem("debug")}catch{}}function o(){let u;try{u=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch{}return!u&&typeof process<"u"&&"env"in process&&(u=process.env.DEBUG),u}function i(){try{return localStorage}catch{}}e.exports=U0(t);const{formatters:l}=e.exports;l.j=function(u){try{return JSON.stringify(u)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}}})(Hl,Hl.exports);var B0=Hl.exports;const b0=I0,Eh=B0;Bl.exports=function(t){const n=b0.getCallerRoot();let r;try{const s=Zt("/node_modules/@tryghost/debug/lib")(n+"/package.json");s.alias?r=s.alias:r=s.name}catch{r="undefined"}return Eh(r+":"+t)},Bl.exports._base=Eh;var V0=Bl.exports,H0=V0;const K0=[{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"}],W0=C0,Ph=zn,Wl=zn,ql=H0("i18n"),jh=K0,Th=jh.map(e=>e.code);function Nh(e,t){return e.reduce((n,r)=>{let s;try{s=Zt("/ghost/i18n/lib")(`../locales/${r}/${t}.json`)}catch{s=Zt("/ghost/i18n/lib")(`../locales/en/${t}.json`)}return n[r]={[t]:{...s,...s.default&&typeof s.default=="object"?s.default:{}}},n},{})}function q0(e,t){if(!t)return{[e]:{theme:{}}};let n=[];try{n=Wl.readdirSync(t).filter(o=>o.endsWith(".json")).map(o=>o.replace(".json",""))}catch{n=[e,"en"]}return[...new Set([e,...n,"en"])].reduce((s,o)=>{let i,l=!1;const u=Ph.join(t,`${o}.json`);if(Wl.existsSync(u))try{delete require.cache[Zt("/ghost/i18n/lib").resolve(u)],i=Zt("/ghost/i18n/lib")(u)}catch{ql(`Error loading theme locale file: ${o}`),l=!0}else l=!0;if(l)if(o!=="en")try{const a=Ph.join(t,"en.json");Wl.existsSync(a)?(delete require.cache[Zt("/ghost/i18n/lib").resolve(a)],i=Zt("/ghost/i18n/lib")(a)):i={}}catch{i={}}else ql("Theme en.json file not found"),i={};return s[o]={theme:{...i,...i.default&&typeof i.default=="object"?i.default:{}}},s},{})}br.exports=(e="en",t="portal",n={})=>{const r=W0.createInstance(),s={prefix:"{",suffix:"}"};t==="theme"&&(s.escapeValue=!1);let o;return t!=="theme"?o=Nh(Th,t):(ql(`generateThemeResources: ${e}, ${n.themePath}`),o=q0(e,n.themePath)),r.init({lng:e,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:{no:["nb","en"],default:["en"]},ns:t,defaultNS:t,interpolation:s,resources:o}),r},br.exports.SUPPORTED_LOCALES=Th,br.exports.LOCALE_DATA=jh,br.exports.generateResources=Nh;var Q0=br.exports;const qr=Q0;_n.exports=qr,_n.exports.default=qr,_n.exports.LOCALE_DATA=qr.LOCALE_DATA,_n.exports.SUPPORTED_LOCALES=qr.SUPPORTED_LOCALES,_n.exports.generateResources=qr.generateResources;var J0=_n.exports;const Y0=vo(J0);class G0 extends at.Component{constructor(t){super(t);const n=this.props.locale||"en",r=Y0(n,"search"),s=r.dir()||"ltr",o=new bg({adminUrl:t.adminUrl,apiKey:t.apiKey,dir:s});this.state={searchIndex:o,showPopup:!1,indexStarted:!1,indexComplete:!1,t:r.t,dir:s,scrollbarWidth:0},this.inputRef=at.createRef()}componentDidMount(){const t=this.getScrollbarWidth();this.setState({scrollbarWidth:t}),this.initSetup()}componentDidUpdate(t,n){var r,s,o;if(n.showPopup!==this.state.showPopup)try{this.state.showPopup?(this.bodyScroll=(o=(s=(r=window.document)==null?void 0:r.body)==null?void 0:s.style)==null?void 0:o.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!==(n==null?void 0:n.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 t=document.createElement("div");t.style.visibility="hidden",t.style.overflow="scroll",document.body.appendChild(t);const n=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),n}setupCustomTriggerButton(){this.clickHandler=t=>{t.preventDefault(),this.setState({showPopup:!0});const n=document.createElement("input");n.style.opacity="0",n.style.position="fixed",n.style.top="0",document.body.appendChild(n),n.focus(),setTimeout(()=>{this.inputRef.current.focus(),document.body.removeChild(n)},150)},this.customTriggerButtons=this.getCustomTriggerButtons(),this.customTriggerButtons.forEach(t=>{t.removeEventListener("click",this.clickHandler),t.addEventListener("click",this.clickHandler)})}getCustomTriggerButtons(){return document.querySelectorAll("[data-ghost-search]")||[]}handleSearchUrl(){const[t]=window.location.hash.substr(1).split("?");(t==="/search"||t==="/search/")&&(this.setState({showPopup:!0}),window.history.replaceState("",document.title,window.location.pathname))}addKeyboardShortcuts(){const t=this.getCustomTriggerButtons();t!=null&&t.length&&(this.handleKeyDown=n=>{if(n.key==="k"&&n.metaKey)return this.setState({showPopup:!0}),n.preventDefault(),n.stopPropagation(),!1},document.addEventListener("keydown",this.handleKeyDown))}render(){return T.jsx(ye.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:(t,n)=>{t==="update"&&this.setState({...this.state,...n})},t:this.state.t,dir:this.state.dir},children:T.jsx(cf,{})})}}const Ah="sodo-search-root";function Z0(){const e=document.createElement("div");e.id=Ah,document.body.appendChild(e)}function X0(){const e=document.querySelector("script[data-sodo-search]");if(e){const t=e.dataset.sodoSearch,n=e.dataset.key,r=e.dataset.styles,s=e.dataset.locale||"en";return{adminUrl:t,apiKey:n,stylesUrl:r,locale:s}}return{}}function ey(){Z0()}function ty(){var o;const{adminUrl:e,apiKey:t,stylesUrl:n,locale:r}=X0(),s=(o=e||window.location.origin)==null?void 0:o.replace(/\/+$/,"");ey(),Zp.render(T.jsx(at.StrictMode,{children:T.jsx(G0,{adminUrl:s,apiKey:t,stylesUrl:n,locale:r})}),document.getElementById(Ah))}ty()});
66
+ `,i+1);s=s.substring(l+1)}this.stack=s}}},qe.inherits(W.AssertionError,Error);function wd(e,t){return typeof e=="string"?e.length<t?e:e.slice(0,t):e}function Sd(e){if(gd||!qe.isFunction(e))return qe.inspect(e);var t=vd(e),n=t?": "+t:"";return"[Function"+n+"]"}function o1(e){return wd(Sd(e.actual),128)+" "+e.operator+" "+wd(Sd(e.expected),128)}function Ae(e,t,n,r,s){throw new W.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:s})}W.fail=Ae;function xd(e,t){e||Ae(e,!0,t,"==",W.ok)}W.ok=xd,W.equal=function(t,n,r){t!=n&&Ae(t,n,r,"==",W.equal)},W.notEqual=function(t,n,r){t==n&&Ae(t,n,r,"!=",W.notEqual)},W.deepEqual=function(t,n,r){Hn(t,n,!1)||Ae(t,n,r,"deepEqual",W.deepEqual)},W.deepStrictEqual=function(t,n,r){Hn(t,n,!0)||Ae(t,n,r,"deepStrictEqual",W.deepStrictEqual)};function Hn(e,t,n,r){if(e===t)return!0;if(ns(e)&&ns(t))return dd(e,t)===0;if(qe.isDate(e)&&qe.isDate(t))return e.getTime()===t.getTime();if(qe.isRegExp(e)&&qe.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if((e===null||typeof e!="object")&&(t===null||typeof t!="object"))return n?e===t:e==t;if(yd(e)&&yd(t)&&md(e)===md(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return dd(new Uint8Array(e.buffer),new Uint8Array(t.buffer))===0;if(ns(e)!==ns(t))return!1;r=r||{actual:[],expected:[]};var s=r.actual.indexOf(e);return s!==-1&&s===r.expected.indexOf(t)?!0:(r.actual.push(e),r.expected.push(t),i1(e,t,n,r))}function Cd(e){return Object.prototype.toString.call(e)=="[object Arguments]"}function i1(e,t,n,r){if(e==null||t===null||t===void 0)return!1;if(qe.isPrimitive(e)||qe.isPrimitive(t))return e===t;if(n&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var s=Cd(e),o=Cd(t);if(s&&!o||!s&&o)return!1;if(s)return e=pd.call(e),t=pd.call(t),Hn(e,t,n);var i=jd(e),l=jd(t),a,u;if(i.length!==l.length)return!1;for(i.sort(),l.sort(),u=i.length-1;u>=0;u--)if(i[u]!==l[u])return!1;for(u=i.length-1;u>=0;u--)if(a=i[u],!Hn(e[a],t[a],n,r))return!1;return!0}W.notDeepEqual=function(t,n,r){Hn(t,n,!1)&&Ae(t,n,r,"notDeepEqual",W.notDeepEqual)},W.notDeepStrictEqual=$d;function $d(e,t,n){Hn(e,t,!0)&&Ae(e,t,n,"notDeepStrictEqual",$d)}W.strictEqual=function(t,n,r){t!==n&&Ae(t,n,r,"===",W.strictEqual)},W.notStrictEqual=function(t,n,r){t===n&&Ae(t,n,r,"!==",W.notStrictEqual)};function kd(e,t){if(!e||!t)return!1;if(Object.prototype.toString.call(t)=="[object RegExp]")return t.test(e);try{if(e instanceof t)return!0}catch{}return Error.isPrototypeOf(t)?!1:t.call({},e)===!0}function l1(e){var t;try{e()}catch(n){t=n}return t}function Pd(e,t,n,r){var s;if(typeof t!="function")throw new TypeError('"block" argument must be a function');typeof n=="string"&&(r=n,n=null),s=l1(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!s&&Ae(s,n,"Missing expected exception"+r);var o=typeof r=="string",i=!e&&qe.isError(s),l=!e&&s&&!n;if((i&&o&&kd(s,n)||l)&&Ae(s,n,"Got unwanted exception"+r),e&&s&&n&&!kd(s,n)||!e&&s)throw s}W.throws=function(e,t,n){Pd(!0,e,t,n)},W.doesNotThrow=function(e,t,n){Pd(!1,e,t,n)},W.ifError=function(e){if(e)throw e};function Ed(e,t){e||Ae(e,!0,t,"==",Ed)}W.strict=n1(Ed,W,{equal:W.strictEqual,deepEqual:W.deepStrictEqual,notEqual:W.notStrictEqual,notDeepEqual:W.notDeepStrictEqual}),W.strict.strict=W.strict;var jd=Object.keys||function(e){var t=[];for(var n in e)r1.call(e,n)&&t.push(n);return t},a1=Ih.exports,u1=a1,c1=function(e){var t,n,r,s,o;for(t=Error.prepareStackTrace,Error.prepareStackTrace=function(i,l){return Error.prepareStackTrace=t,l},n=new Error().stack,o=0;o<n.length&&n[o].getFileName()!==__filename;)o++;u1(o<n.length,"Unexpected: unable to find caller/index.js in the stack"),e=!e||isNaN(e)?1:e>n.length-2?n.length-2:e,n=n.slice(o+e+1);do s=n.shift(),r=s&&s.getFileName();while(n.length&&r==="module.js");return r};const f1=Dn,h1=Dn,Ad=j0,d1=c1;sa.getCallerRoot=function(){try{return Ad(d1(2))}catch{return}},sa.getProcessRoot=function(){let t=process.cwd();const n=h1.join(t,"current");try{f1.statSync(n).isDirectory()&&(t=n)}catch{}try{return Ad(t)}catch{return}};var p1=sa,wa={exports:{}},Sa,Td;function g1(){if(Td)return Sa;Td=1;var e=1e3,t=e*60,n=t*60,r=n*24,s=r*7,o=r*365.25;Sa=function(f,h){h=h||{};var c=typeof f;if(c==="string"&&f.length>0)return i(f);if(c==="number"&&isFinite(f))return h.long?a(f):l(f);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(f))};function i(f){if(f=String(f),!(f.length>100)){var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(f);if(h){var c=parseFloat(h[1]),m=(h[2]||"ms").toLowerCase();switch(m){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"weeks":case"week":case"w":return c*s;case"days":case"day":case"d":return c*r;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*t;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}}}function l(f){var h=Math.abs(f);return h>=r?Math.round(f/r)+"d":h>=n?Math.round(f/n)+"h":h>=t?Math.round(f/t)+"m":h>=e?Math.round(f/e)+"s":f+"ms"}function a(f){var h=Math.abs(f);return h>=r?u(f,h,r,"day"):h>=n?u(f,h,n,"hour"):h>=t?u(f,h,t,"minute"):h>=e?u(f,h,e,"second"):f+" ms"}function u(f,h,c,m){var v=h>=c*1.5;return Math.round(f/c)+" "+m+(v?"s":"")}return Sa}function m1(e){n.debug=n,n.default=n,n.coerce=a,n.disable=i,n.enable=s,n.enabled=l,n.humanize=g1(),n.destroy=u,Object.keys(e).forEach(f=>{n[f]=e[f]}),n.names=[],n.skips=[],n.formatters={};function t(f){let h=0;for(let c=0;c<f.length;c++)h=(h<<5)-h+f.charCodeAt(c),h|=0;return n.colors[Math.abs(h)%n.colors.length]}n.selectColor=t;function n(f){let h,c=null,m,v;function w(...d){if(!w.enabled)return;const p=w,g=Number(new Date),S=g-(h||g);p.diff=S,p.prev=h,p.curr=g,h=g,d[0]=n.coerce(d[0]),typeof d[0]!="string"&&d.unshift("%O");let y=0;d[0]=d[0].replace(/%([a-zA-Z%])/g,(C,P)=>{if(C==="%%")return"%";y++;const T=n.formatters[P];if(typeof T=="function"){const N=d[y];C=T.call(p,N),d.splice(y,1),y--}return C}),n.formatArgs.call(p,d),(p.log||n.log).apply(p,d)}return w.namespace=f,w.useColors=n.useColors(),w.color=n.selectColor(f),w.extend=r,w.destroy=n.destroy,Object.defineProperty(w,"enabled",{enumerable:!0,configurable:!1,get:()=>c!==null?c:(m!==n.namespaces&&(m=n.namespaces,v=n.enabled(f)),v),set:d=>{c=d}}),typeof n.init=="function"&&n.init(w),w}function r(f,h){const c=n(this.namespace+(typeof h>"u"?":":h)+f);return c.log=this.log,c}function s(f){n.save(f),n.namespaces=f,n.names=[],n.skips=[];const h=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const c of h)c[0]==="-"?n.skips.push(c.slice(1)):n.names.push(c)}function o(f,h){let c=0,m=0,v=-1,w=0;for(;c<f.length;)if(m<h.length&&(h[m]===f[c]||h[m]==="*"))h[m]==="*"?(v=m,w=c,m++):(c++,m++);else if(v!==-1)m=v+1,w++,c=w;else return!1;for(;m<h.length&&h[m]==="*";)m++;return m===h.length}function i(){const f=[...n.names,...n.skips.map(h=>"-"+h)].join(",");return n.enable(""),f}function l(f){for(const h of n.skips)if(o(f,h))return!1;for(const h of n.names)if(o(f,h))return!0;return!1}function a(f){return f instanceof Error?f.stack||f.message:f}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}var y1=m1;(function(e,t){t.formatArgs=r,t.save=s,t.load=o,t.useColors=n,t.storage=i(),t.destroy=(()=>{let a=!1;return()=>{a||(a=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let a;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(a=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(a[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(a){if(a[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+a[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const u="color: "+this.color;a.splice(1,0,u,"color: inherit");let f=0,h=0;a[0].replace(/%[a-zA-Z%]/g,c=>{c!=="%%"&&(f++,c==="%c"&&(h=f))}),a.splice(h,0,u)}t.log=console.debug||console.log||(()=>{});function s(a){try{a?t.storage.setItem("debug",a):t.storage.removeItem("debug")}catch{}}function o(){let a;try{a=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch{}return!a&&typeof process<"u"&&"env"in process&&(a=process.env.DEBUG),a}function i(){try{return localStorage}catch{}}e.exports=y1(t);const{formatters:l}=e.exports;l.j=function(a){try{return JSON.stringify(a)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}}})(wa,wa.exports);var v1=wa.exports;const w1=p1,Od=v1;ra.exports=function(t){const n=w1.getCallerRoot();let r;try{const s=en("/node_modules/.pnpm/@tryghost+debug@0.1.40/node_modules/@tryghost/debug/lib")(n+"/package.json");s.alias?r=s.alias:r=s.name}catch{r="undefined"}return Od(r+":"+t)},ra.exports._base=Od;var S1=ra.exports,x1=S1;const C1=[{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"}],$1=E0,Nd=Dn,xa=Dn,Ca=x1("i18n"),Ld=C1,_d=Ld.map(e=>e.code);function Rd(e,t){return e.reduce((n,r)=>{let s;try{s=en("/ghost/i18n/lib")(`../locales/${r}/${t}.json`)}catch{s=en("/ghost/i18n/lib")(`../locales/en/${t}.json`)}return n[r]={[t]:{...s,...s.default&&typeof s.default=="object"?s.default:{}}},n},{})}function k1(e,t){if(!t)return{[e]:{theme:{}}};let n=[];try{n=xa.readdirSync(t).filter(o=>o.endsWith(".json")).map(o=>o.replace(".json",""))}catch{n=[e,"en"]}return[...new Set([e,...n,"en"])].reduce((s,o)=>{let i,l=!1;const a=Nd.join(t,`${o}.json`);if(xa.existsSync(a))try{delete require.cache[en("/ghost/i18n/lib").resolve(a)],i=en("/ghost/i18n/lib")(a)}catch{Ca(`Error loading theme locale file: ${o}`),l=!0}else l=!0;if(l)if(o!=="en")try{const u=Nd.join(t,"en.json");xa.existsSync(u)?(delete require.cache[en("/ghost/i18n/lib").resolve(u)],i=en("/ghost/i18n/lib")(u)):i={}}catch{i={}}else Ca("Theme en.json file not found"),i={};return s[o]={theme:{...i,...i.default&&typeof i.default=="object"?i.default:{}}},s},{})}Qr.exports=(e="en",t="portal",n={})=>{const r=$1.createInstance(),s={prefix:"{",suffix:"}"};t==="theme"&&(s.escapeValue=!1);let o;return t!=="theme"?o=Rd(_d,t):(Ca(`generateThemeResources: ${e}, ${n.themePath}`),o=k1(e,n.themePath)),r.init({lng:e,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:{no:["nb","en"],default:["en"]},ns:t,defaultNS:t,interpolation:s,resources:o}),r},Qr.exports.SUPPORTED_LOCALES=_d,Qr.exports.LOCALE_DATA=Ld,Qr.exports.generateResources=Rd;var P1=Qr.exports;const rs=P1;In.exports=rs,In.exports.default=rs,In.exports.LOCALE_DATA=rs.LOCALE_DATA,In.exports.SUPPORTED_LOCALES=rs.SUPPORTED_LOCALES,In.exports.generateResources=rs.generateResources;var E1=In.exports;const j1=Fo(E1);class A1 extends ft.Component{constructor(t){super(t);const n=this.props.locale||"en",r=j1(n,"search"),s=r.dir()||"ltr",o=new qm({adminUrl:t.adminUrl,apiKey:t.apiKey,dir:s});this.state={searchIndex:o,showPopup:!1,indexStarted:!1,indexComplete:!1,t:r.t,dir:s,scrollbarWidth:0},this.inputRef=ft.createRef()}componentDidMount(){const t=this.getScrollbarWidth();this.setState({scrollbarWidth:t}),this.initSetup()}componentDidUpdate(t,n){var r,s,o;if(n.showPopup!==this.state.showPopup)try{this.state.showPopup?(this.bodyScroll=(o=(s=(r=window.document)==null?void 0:r.body)==null?void 0:s.style)==null?void 0:o.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!==(n==null?void 0:n.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 t=document.createElement("div");t.style.visibility="hidden",t.style.overflow="scroll",document.body.appendChild(t);const n=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),n}setupCustomTriggerButton(){this.clickHandler=t=>{t.preventDefault(),this.setState({showPopup:!0});const n=document.createElement("input");n.style.opacity="0",n.style.position="fixed",n.style.top="0",document.body.appendChild(n),n.focus(),setTimeout(()=>{this.inputRef.current.focus(),document.body.removeChild(n)},150)},this.customTriggerButtons=this.getCustomTriggerButtons(),this.customTriggerButtons.forEach(t=>{t.removeEventListener("click",this.clickHandler),t.addEventListener("click",this.clickHandler)})}getCustomTriggerButtons(){return document.querySelectorAll("[data-ghost-search]")||[]}handleSearchUrl(){const[t]=window.location.hash.substr(1).split("?");(t==="/search"||t==="/search/")&&(this.setState({showPopup:!0}),window.history.replaceState("",document.title,window.location.pathname))}addKeyboardShortcuts(){const t=this.getCustomTriggerButtons();t!=null&&t.length&&(this.handleKeyDown=n=>{if(n.key==="k"&&n.metaKey)return this.setState({showPopup:!0}),n.preventDefault(),n.stopPropagation(),!1},document.addEventListener("keydown",this.handleKeyDown))}render(){return A.jsx(we.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:(t,n)=>{t==="update"&&this.setState({...this.state,...n})},t:this.state.t,dir:this.state.dir},children:A.jsx(bf,{})})}}const Fd="sodo-search-root";function T1(){const e=document.createElement("div");e.id=Fd,document.body.appendChild(e)}function O1(){const e=document.querySelector("script[data-sodo-search]");if(e){const t=e.dataset.sodoSearch,n=e.dataset.key,r=e.dataset.styles,s=e.dataset.locale||"en";return{adminUrl:t,apiKey:n,stylesUrl:r,locale:s}}return{}}function N1(){T1()}function L1(){var o;const{adminUrl:e,apiKey:t,stylesUrl:n,locale:r}=O1(),s=(o=e||window.location.origin)==null?void 0:o.replace(/\/+$/,"");N1(),rm.render(A.jsx(ft.StrictMode,{children:A.jsx(A1,{adminUrl:s,apiKey:t,stylesUrl:n,locale:r})}),document.getElementById(Fd))}L1()});
67
67
  //# sourceMappingURL=sodo-search.min.js.map