diff --git a/assets/index-9RauixJQ.js b/assets/index-D2uoOxZe.js similarity index 92% rename from assets/index-9RauixJQ.js rename to assets/index-D2uoOxZe.js index 3b07882..ee9475b 100644 --- a/assets/index-9RauixJQ.js +++ b/assets/index-D2uoOxZe.js @@ -6,7 +6,7 @@ var Ul=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var ht=(e,t,n)=>(Ul( * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var zi=Symbol.for("react.element"),dg=Symbol.for("react.portal"),pg=Symbol.for("react.fragment"),hg=Symbol.for("react.strict_mode"),gg=Symbol.for("react.profiler"),mg=Symbol.for("react.provider"),vg=Symbol.for("react.context"),yg=Symbol.for("react.forward_ref"),wg=Symbol.for("react.suspense"),Sg=Symbol.for("react.memo"),xg=Symbol.for("react.lazy"),Mu=Symbol.iterator;function kg(e){return e===null||typeof e!="object"?null:(e=Mu&&e[Mu]||e["@@iterator"],typeof e=="function"?e:null)}var Bf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},bf=Object.assign,Hf={};function Rr(e,t,n){this.props=e,this.context=t,this.refs=Hf,this.updater=n||Bf}Rr.prototype.isReactComponent={};Rr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Rr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Vf(){}Vf.prototype=Rr.prototype;function ws(e,t,n){this.props=e,this.context=t,this.refs=Hf,this.updater=n||Bf}var Ss=ws.prototype=new Vf;Ss.constructor=ws;bf(Ss,Rr.prototype);Ss.isPureReactComponent=!0;var Iu=Array.isArray,Wf=Object.prototype.hasOwnProperty,xs={current:null},Kf={key:!0,ref:!0,__self:!0,__source:!0};function Qf(e,t,n){var r,i={},o=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(o=""+t.key),t)Wf.call(t,r)&&!Kf.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1{if(!t.has(e))throw TypeError("Cannot "+n)};var ht=(e,t,n)=>(Ul( * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Zf=R,qe=Mg;function T(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wa=Object.prototype.hasOwnProperty,Ig=/^[: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]*$/,Au={},zu={};function Fg(e){return wa.call(zu,e)?!0:wa.call(Au,e)?!1:Ig.test(e)?zu[e]=!0:(Au[e]=!0,!1)}function Ag(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 zg(e,t,n,r){if(t===null||typeof t>"u"||Ag(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 Ue(e,t,n,r,i,o,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var Oe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Oe[e]=new Ue(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Oe[t]=new Ue(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Oe[e]=new Ue(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Oe[e]=new Ue(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){Oe[e]=new Ue(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Oe[e]=new Ue(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Oe[e]=new Ue(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Oe[e]=new Ue(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Oe[e]=new Ue(e,5,!1,e.toLowerCase(),null,!1,!1)});var Es=/[\-:]([a-z])/g;function Cs(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(Es,Cs);Oe[t]=new Ue(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(Es,Cs);Oe[t]=new Ue(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(Es,Cs);Oe[t]=new Ue(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Oe[e]=new Ue(e,1,!1,e.toLowerCase(),null,!1,!1)});Oe.xlinkHref=new Ue("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Oe[e]=new Ue(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ls(e,t,n,r){var i=Oe.hasOwnProperty(t)?Oe[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wa=Object.prototype.hasOwnProperty,Ig=/^[: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]*$/,Au={},zu={};function Fg(e){return wa.call(zu,e)?!0:wa.call(Au,e)?!1:Ig.test(e)?zu[e]=!0:(Au[e]=!0,!1)}function Ag(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 zg(e,t,n,r){if(t===null||typeof t>"u"||Ag(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 Ue(e,t,n,r,i,o,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var Oe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Oe[e]=new Ue(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Oe[t]=new Ue(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Oe[e]=new Ue(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Oe[e]=new Ue(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){Oe[e]=new Ue(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Oe[e]=new Ue(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Oe[e]=new Ue(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Oe[e]=new Ue(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Oe[e]=new Ue(e,5,!1,e.toLowerCase(),null,!1,!1)});var Es=/[\-:]([a-z])/g;function Cs(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(Es,Cs);Oe[t]=new Ue(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(Es,Cs);Oe[t]=new Ue(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(Es,Cs);Oe[t]=new Ue(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Oe[e]=new Ue(e,1,!1,e.toLowerCase(),null,!1,!1)});Oe.xlinkHref=new Ue("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Oe[e]=new Ue(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ls(e,t,n,r){var i=Oe.hasOwnProperty(t)?Oe[t]:null;(i!==null?i.type!==0:r||!(2a||i[l]!==o[a]){var s=` -`+i[l].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=l&&0<=a);break}}}finally{Hl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?qr(e):""}function $g(e){switch(e.tag){case 5:return qr(e.type);case 16:return qr("Lazy");case 13:return qr("Suspense");case 19:return qr("SuspenseList");case 0:case 2:case 15:return e=Vl(e.type,!1),e;case 11:return e=Vl(e.type.render,!1),e;case 1:return e=Vl(e.type,!0),e;default:return""}}function Ea(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 Zn:return"Fragment";case Xn:return"Portal";case Sa:return"Profiler";case Ps:return"StrictMode";case xa:return"Suspense";case ka:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case td:return(e.displayName||"Context")+".Consumer";case ed:return(e._context.displayName||"Context")+".Provider";case Rs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ts:return t=e.displayName||null,t!==null?t:Ea(e.type)||"Memo";case qt:t=e._payload,e=e._init;try{return Ea(e(t))}catch{}}return null}function Ug(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ea(t);case 8:return t===Ps?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function hn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Bg(e){var t=rd(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 i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function eo(e){e._valueTracker||(e._valueTracker=Bg(e))}function id(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=rd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Mo(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 Ca(e,t){var n=t.checked;return se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Uu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=hn(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 od(e,t){t=t.checked,t!=null&&Ls(e,"checked",t,!1)}function La(e,t){od(e,t);var n=hn(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")?Pa(e,t.type,n):t.hasOwnProperty("defaultValue")&&Pa(e,t.type,hn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Bu(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 Pa(e,t,n){(t!=="number"||Mo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ei=Array.isArray;function fr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=to.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function mi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ii={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},bg=["Webkit","ms","Moz","O"];Object.keys(ii).forEach(function(e){bg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ii[t]=ii[e]})});function ud(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ii.hasOwnProperty(e)&&ii[e]?(""+t).trim():t+"px"}function cd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=ud(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Hg=se({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 Na(e,t){if(t){if(Hg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(T(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(T(61))}if(t.style!=null&&typeof t.style!="object")throw Error(T(62))}}function Oa(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _a=null;function Ns(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Da=null,dr=null,pr=null;function Vu(e){if(e=Bi(e)){if(typeof Da!="function")throw Error(T(280));var t=e.stateNode;t&&(t=ml(t),Da(e.stateNode,e.type,t))}}function fd(e){dr?pr?pr.push(e):pr=[e]:dr=e}function dd(){if(dr){var e=dr,t=pr;if(pr=dr=null,Vu(e),t)for(e=0;e>>=0,e===0?32:31-(em(e)/tm|0)|0}var no=64,ro=4194304;function ti(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function zo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~i;a!==0?r=ti(a):(o&=l,o!==0&&(r=ti(o)))}else l=n&~i,l!==0?r=ti(l):o!==0&&(r=ti(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function $i(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xt(t),e[t]=n}function om(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=li),qu=" ",ec=!1;function Dd(e,t){switch(e){case"keyup":return jm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qn=!1;function Im(e,t){switch(e){case"compositionend":return jd(t);case"keypress":return t.which!==32?null:(ec=!0,qu);case"textInput":return e=t.data,e===qu&&ec?null:e;default:return null}}function Fm(e,t){if(qn)return e==="compositionend"||!As&&Dd(e,t)?(e=Od(),Co=Ms=rn=null,qn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ic(n)}}function Ad(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ad(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zd(){for(var e=window,t=Mo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Mo(e.document)}return t}function zs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Wm(e){var t=zd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ad(n.ownerDocument.documentElement,n)){if(r!==null&&zs(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=oc(n,o);var l=oc(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,er=null,za=null,si=null,$a=!1;function lc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;$a||er==null||er!==Mo(r)||(r=er,"selectionStart"in r&&zs(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}),si&&ki(si,r)||(si=r,r=Bo(za,"onSelect"),0rr||(e.current=Wa[rr],Wa[rr]=null,rr--)}function te(e,t){rr++,Wa[rr]=e.current,e.current=t}var gn={},Me=vn(gn),Ve=vn(!1),In=gn;function wr(e,t){var n=e.type.contextTypes;if(!n)return gn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function We(e){return e=e.childContextTypes,e!=null}function Ho(){ie(Ve),ie(Me)}function pc(e,t,n){if(Me.current!==gn)throw Error(T(168));te(Me,t),te(Ve,n)}function Qd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(T(108,Ug(e)||"Unknown",i));return se({},n,r)}function Vo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gn,In=Me.current,te(Me,e),te(Ve,Ve.current),!0}function hc(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=Qd(e,t,In),r.__reactInternalMemoizedMergedChildContext=e,ie(Ve),ie(Me),te(Me,e)):ie(Ve),te(Ve,n)}var It=null,vl=!1,ia=!1;function Gd(e){It===null?It=[e]:It.push(e)}function rv(e){vl=!0,Gd(e)}function yn(){if(!ia&&It!==null){ia=!0;var e=0,t=X;try{var n=It;for(X=1;e>=l,i-=l,Ft=1<<32-xt(t)+i|n<O?(I=C,C=null):I=C.sibling;var z=f(h,C,g[O],x);if(z===null){C===null&&(C=I);break}e&&C&&z.alternate===null&&t(h,C),p=o(z,p,O),m===null?P=z:m.sibling=z,m=z,C=I}if(O===g.length)return n(h,C),oe&&Cn(h,O),P;if(C===null){for(;OO?(I=C,C=null):I=C.sibling;var H=f(h,C,z.value,x);if(H===null){C===null&&(C=I);break}e&&C&&H.alternate===null&&t(h,C),p=o(H,p,O),m===null?P=H:m.sibling=H,m=H,C=I}if(z.done)return n(h,C),oe&&Cn(h,O),P;if(C===null){for(;!z.done;O++,z=g.next())z=d(h,z.value,x),z!==null&&(p=o(z,p,O),m===null?P=z:m.sibling=z,m=z);return oe&&Cn(h,O),P}for(C=r(h,C);!z.done;O++,z=g.next())z=y(C,h,O,z.value,x),z!==null&&(e&&z.alternate!==null&&C.delete(z.key===null?O:z.key),p=o(z,p,O),m===null?P=z:m.sibling=z,m=z);return e&&C.forEach(function(ge){return t(h,ge)}),oe&&Cn(h,O),P}function E(h,p,g,x){if(typeof g=="object"&&g!==null&&g.type===Zn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case qi:e:{for(var P=g.key,m=p;m!==null;){if(m.key===P){if(P=g.type,P===Zn){if(m.tag===7){n(h,m.sibling),p=i(m,g.props.children),p.return=h,h=p;break e}}else if(m.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===qt&&xc(P)===m.type){n(h,m.sibling),p=i(m,g.props),p.ref=Br(h,m,g),p.return=h,h=p;break e}n(h,m);break}else t(h,m);m=m.sibling}g.type===Zn?(p=Mn(g.props.children,h.mode,x,g.key),p.return=h,h=p):(x=Do(g.type,g.key,g.props,null,h.mode,x),x.ref=Br(h,p,g),x.return=h,h=x)}return l(h);case Xn:e:{for(m=g.key;p!==null;){if(p.key===m)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){n(h,p.sibling),p=i(p,g.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=da(g,h.mode,x),p.return=h,h=p}return l(h);case qt:return m=g._init,E(h,p,m(g._payload),x)}if(ei(g))return v(h,p,g,x);if(Fr(g))return S(h,p,g,x);co(h,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,p!==null&&p.tag===6?(n(h,p.sibling),p=i(p,g),p.return=h,h=p):(n(h,p),p=fa(g,h.mode,x),p.return=h,h=p),l(h)):n(h,p)}return E}var xr=np(!0),rp=np(!1),bi={},Dt=vn(bi),Pi=vn(bi),Ri=vn(bi);function Tn(e){if(e===bi)throw Error(T(174));return e}function Qs(e,t){switch(te(Ri,t),te(Pi,e),te(Dt,bi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ta(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ta(t,e)}ie(Dt),te(Dt,t)}function kr(){ie(Dt),ie(Pi),ie(Ri)}function ip(e){Tn(Ri.current);var t=Tn(Dt.current),n=Ta(t,e.type);t!==n&&(te(Pi,e),te(Dt,n))}function Gs(e){Pi.current===e&&(ie(Dt),ie(Pi))}var le=vn(0);function Jo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var oa=[];function Ys(){for(var e=0;en?n:4,e(!0);var r=la.transition;la.transition={};try{e(!1),t()}finally{X=n,la.transition=r}}function Sp(){return dt().memoizedState}function av(e,t,n){var r=dn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},xp(e))kp(t,n);else if(n=Zd(e,t,n,r),n!==null){var i=ze();kt(n,e,r,i),Ep(n,t,r)}}function sv(e,t,n){var r=dn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(xp(e))kp(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,a=o(l,n);if(i.hasEagerState=!0,i.eagerState=a,Et(a,l)){var s=t.interleaved;s===null?(i.next=i,Ws(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=Zd(e,t,i,r),n!==null&&(i=ze(),kt(n,e,r,i),Ep(n,t,r))}}function xp(e){var t=e.alternate;return e===ae||t!==null&&t===ae}function kp(e,t){ui=Xo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ep(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_s(e,n)}}var Zo={readContext:ft,useCallback:_e,useContext:_e,useEffect:_e,useImperativeHandle:_e,useInsertionEffect:_e,useLayoutEffect:_e,useMemo:_e,useReducer:_e,useRef:_e,useState:_e,useDebugValue:_e,useDeferredValue:_e,useTransition:_e,useMutableSource:_e,useSyncExternalStore:_e,useId:_e,unstable_isNewReconciler:!1},uv={readContext:ft,useCallback:function(e,t){return Pt().memoizedState=[e,t===void 0?null:t],e},useContext:ft,useEffect:Ec,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,To(4194308,4,gp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return To(4194308,4,e,t)},useInsertionEffect:function(e,t){return To(4,2,e,t)},useMemo:function(e,t){var n=Pt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Pt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=av.bind(null,ae,e),[r.memoizedState,e]},useRef:function(e){var t=Pt();return e={current:e},t.memoizedState=e},useState:kc,useDebugValue:eu,useDeferredValue:function(e){return Pt().memoizedState=e},useTransition:function(){var e=kc(!1),t=e[0];return e=lv.bind(null,e[1]),Pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ae,i=Pt();if(oe){if(n===void 0)throw Error(T(407));n=n()}else{if(n=t(),Ee===null)throw Error(T(349));An&30||ap(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Ec(up.bind(null,r,o,e),[e]),r.flags|=2048,Oi(9,sp.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Pt(),t=Ee.identifierPrefix;if(oe){var n=At,r=Ft;n=(r&~(1<<32-xt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ti++,0")&&(s=s.replace("",e.displayName)),s}while(1<=l&&0<=a);break}}}finally{Hl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ei(e):""}function $g(e){switch(e.tag){case 5:return ei(e.type);case 16:return ei("Lazy");case 13:return ei("Suspense");case 19:return ei("SuspenseList");case 0:case 2:case 15:return e=Vl(e.type,!1),e;case 11:return e=Vl(e.type.render,!1),e;case 1:return e=Vl(e.type,!0),e;default:return""}}function Ea(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 qn:return"Fragment";case Zn:return"Portal";case Sa:return"Profiler";case Ps:return"StrictMode";case xa:return"Suspense";case ka:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case td:return(e.displayName||"Context")+".Consumer";case ed:return(e._context.displayName||"Context")+".Provider";case Rs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ts:return t=e.displayName||null,t!==null?t:Ea(e.type)||"Memo";case qt:t=e._payload,e=e._init;try{return Ea(e(t))}catch{}}return null}function Ug(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ea(t);case 8:return t===Ps?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function hn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Bg(e){var t=rd(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 i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function eo(e){e._valueTracker||(e._valueTracker=Bg(e))}function id(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=rd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Mo(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 Ca(e,t){var n=t.checked;return se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Uu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=hn(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 od(e,t){t=t.checked,t!=null&&Ls(e,"checked",t,!1)}function La(e,t){od(e,t);var n=hn(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")?Pa(e,t.type,n):t.hasOwnProperty("defaultValue")&&Pa(e,t.type,hn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Bu(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 Pa(e,t,n){(t!=="number"||Mo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ti=Array.isArray;function dr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=to.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function mi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ii={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},bg=["Webkit","ms","Moz","O"];Object.keys(ii).forEach(function(e){bg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ii[t]=ii[e]})});function ud(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ii.hasOwnProperty(e)&&ii[e]?(""+t).trim():t+"px"}function cd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=ud(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Hg=se({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 Na(e,t){if(t){if(Hg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(T(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(T(61))}if(t.style!=null&&typeof t.style!="object")throw Error(T(62))}}function Oa(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _a=null;function Ns(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Da=null,pr=null,hr=null;function Vu(e){if(e=Bi(e)){if(typeof Da!="function")throw Error(T(280));var t=e.stateNode;t&&(t=ml(t),Da(e.stateNode,e.type,t))}}function fd(e){pr?hr?hr.push(e):hr=[e]:pr=e}function dd(){if(pr){var e=pr,t=hr;if(hr=pr=null,Vu(e),t)for(e=0;e>>=0,e===0?32:31-(em(e)/tm|0)|0}var no=64,ro=4194304;function ni(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function zo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~i;a!==0?r=ni(a):(o&=l,o!==0&&(r=ni(o)))}else l=n&~i,l!==0?r=ni(l):o!==0&&(r=ni(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function $i(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xt(t),e[t]=n}function om(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=li),qu=" ",ec=!1;function Dd(e,t){switch(e){case"keyup":return jm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var er=!1;function Im(e,t){switch(e){case"compositionend":return jd(t);case"keypress":return t.which!==32?null:(ec=!0,qu);case"textInput":return e=t.data,e===qu&&ec?null:e;default:return null}}function Fm(e,t){if(er)return e==="compositionend"||!As&&Dd(e,t)?(e=Od(),Co=Ms=rn=null,er=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ic(n)}}function Ad(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ad(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zd(){for(var e=window,t=Mo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Mo(e.document)}return t}function zs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Wm(e){var t=zd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ad(n.ownerDocument.documentElement,n)){if(r!==null&&zs(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=oc(n,o);var l=oc(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,tr=null,za=null,si=null,$a=!1;function lc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;$a||tr==null||tr!==Mo(r)||(r=tr,"selectionStart"in r&&zs(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}),si&&ki(si,r)||(si=r,r=Bo(za,"onSelect"),0ir||(e.current=Wa[ir],Wa[ir]=null,ir--)}function te(e,t){ir++,Wa[ir]=e.current,e.current=t}var gn={},Me=vn(gn),Ve=vn(!1),In=gn;function Sr(e,t){var n=e.type.contextTypes;if(!n)return gn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function We(e){return e=e.childContextTypes,e!=null}function Ho(){ie(Ve),ie(Me)}function pc(e,t,n){if(Me.current!==gn)throw Error(T(168));te(Me,t),te(Ve,n)}function Qd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(T(108,Ug(e)||"Unknown",i));return se({},n,r)}function Vo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gn,In=Me.current,te(Me,e),te(Ve,Ve.current),!0}function hc(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=Qd(e,t,In),r.__reactInternalMemoizedMergedChildContext=e,ie(Ve),ie(Me),te(Me,e)):ie(Ve),te(Ve,n)}var It=null,vl=!1,ia=!1;function Gd(e){It===null?It=[e]:It.push(e)}function rv(e){vl=!0,Gd(e)}function yn(){if(!ia&&It!==null){ia=!0;var e=0,t=X;try{var n=It;for(X=1;e>=l,i-=l,Ft=1<<32-xt(t)+i|n<O?(I=C,C=null):I=C.sibling;var z=f(h,C,g[O],x);if(z===null){C===null&&(C=I);break}e&&C&&z.alternate===null&&t(h,C),p=o(z,p,O),m===null?P=z:m.sibling=z,m=z,C=I}if(O===g.length)return n(h,C),oe&&Cn(h,O),P;if(C===null){for(;OO?(I=C,C=null):I=C.sibling;var H=f(h,C,z.value,x);if(H===null){C===null&&(C=I);break}e&&C&&H.alternate===null&&t(h,C),p=o(H,p,O),m===null?P=H:m.sibling=H,m=H,C=I}if(z.done)return n(h,C),oe&&Cn(h,O),P;if(C===null){for(;!z.done;O++,z=g.next())z=d(h,z.value,x),z!==null&&(p=o(z,p,O),m===null?P=z:m.sibling=z,m=z);return oe&&Cn(h,O),P}for(C=r(h,C);!z.done;O++,z=g.next())z=y(C,h,O,z.value,x),z!==null&&(e&&z.alternate!==null&&C.delete(z.key===null?O:z.key),p=o(z,p,O),m===null?P=z:m.sibling=z,m=z);return e&&C.forEach(function(ge){return t(h,ge)}),oe&&Cn(h,O),P}function E(h,p,g,x){if(typeof g=="object"&&g!==null&&g.type===qn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case qi:e:{for(var P=g.key,m=p;m!==null;){if(m.key===P){if(P=g.type,P===qn){if(m.tag===7){n(h,m.sibling),p=i(m,g.props.children),p.return=h,h=p;break e}}else if(m.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===qt&&xc(P)===m.type){n(h,m.sibling),p=i(m,g.props),p.ref=br(h,m,g),p.return=h,h=p;break e}n(h,m);break}else t(h,m);m=m.sibling}g.type===qn?(p=Mn(g.props.children,h.mode,x,g.key),p.return=h,h=p):(x=Do(g.type,g.key,g.props,null,h.mode,x),x.ref=br(h,p,g),x.return=h,h=x)}return l(h);case Zn:e:{for(m=g.key;p!==null;){if(p.key===m)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){n(h,p.sibling),p=i(p,g.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=da(g,h.mode,x),p.return=h,h=p}return l(h);case qt:return m=g._init,E(h,p,m(g._payload),x)}if(ti(g))return v(h,p,g,x);if(Ar(g))return S(h,p,g,x);co(h,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,p!==null&&p.tag===6?(n(h,p.sibling),p=i(p,g),p.return=h,h=p):(n(h,p),p=fa(g,h.mode,x),p.return=h,h=p),l(h)):n(h,p)}return E}var kr=np(!0),rp=np(!1),bi={},Dt=vn(bi),Pi=vn(bi),Ri=vn(bi);function Tn(e){if(e===bi)throw Error(T(174));return e}function Qs(e,t){switch(te(Ri,t),te(Pi,e),te(Dt,bi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ta(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ta(t,e)}ie(Dt),te(Dt,t)}function Er(){ie(Dt),ie(Pi),ie(Ri)}function ip(e){Tn(Ri.current);var t=Tn(Dt.current),n=Ta(t,e.type);t!==n&&(te(Pi,e),te(Dt,n))}function Gs(e){Pi.current===e&&(ie(Dt),ie(Pi))}var le=vn(0);function Jo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var oa=[];function Ys(){for(var e=0;en?n:4,e(!0);var r=la.transition;la.transition={};try{e(!1),t()}finally{X=n,la.transition=r}}function Sp(){return dt().memoizedState}function av(e,t,n){var r=dn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},xp(e))kp(t,n);else if(n=Zd(e,t,n,r),n!==null){var i=ze();kt(n,e,r,i),Ep(n,t,r)}}function sv(e,t,n){var r=dn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(xp(e))kp(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,a=o(l,n);if(i.hasEagerState=!0,i.eagerState=a,Et(a,l)){var s=t.interleaved;s===null?(i.next=i,Ws(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=Zd(e,t,i,r),n!==null&&(i=ze(),kt(n,e,r,i),Ep(n,t,r))}}function xp(e){var t=e.alternate;return e===ae||t!==null&&t===ae}function kp(e,t){ui=Xo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ep(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_s(e,n)}}var Zo={readContext:ft,useCallback:_e,useContext:_e,useEffect:_e,useImperativeHandle:_e,useInsertionEffect:_e,useLayoutEffect:_e,useMemo:_e,useReducer:_e,useRef:_e,useState:_e,useDebugValue:_e,useDeferredValue:_e,useTransition:_e,useMutableSource:_e,useSyncExternalStore:_e,useId:_e,unstable_isNewReconciler:!1},uv={readContext:ft,useCallback:function(e,t){return Pt().memoizedState=[e,t===void 0?null:t],e},useContext:ft,useEffect:Ec,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,To(4194308,4,gp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return To(4194308,4,e,t)},useInsertionEffect:function(e,t){return To(4,2,e,t)},useMemo:function(e,t){var n=Pt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Pt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=av.bind(null,ae,e),[r.memoizedState,e]},useRef:function(e){var t=Pt();return e={current:e},t.memoizedState=e},useState:kc,useDebugValue:eu,useDeferredValue:function(e){return Pt().memoizedState=e},useTransition:function(){var e=kc(!1),t=e[0];return e=lv.bind(null,e[1]),Pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ae,i=Pt();if(oe){if(n===void 0)throw Error(T(407));n=n()}else{if(n=t(),Ee===null)throw Error(T(349));An&30||ap(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Ec(up.bind(null,r,o,e),[e]),r.flags|=2048,Oi(9,sp.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Pt(),t=Ee.identifierPrefix;if(oe){var n=At,r=Ft;n=(r&~(1<<32-xt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ti++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Rt]=t,e[Li]=r,Dp(e,t,!1,!1),t.stateNode=e;e:{switch(l=Oa(n,r),n){case"dialog":re("cancel",e),re("close",e),i=r;break;case"iframe":case"object":case"embed":re("load",e),i=r;break;case"video":case"audio":for(i=0;iCr&&(t.flags|=128,r=!0,br(o,!1),t.lanes=4194304)}else{if(!r)if(e=Jo(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),br(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!oe)return De(t),null}else 2*he()-o.renderingStartTime>Cr&&n!==1073741824&&(t.flags|=128,r=!0,br(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=he(),t.sibling=null,n=le.current,te(le,r?n&1|2:n&1),t):(De(t),null);case 22:case 23:return lu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Je&1073741824&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),null;case 24:return null;case 25:return null}throw Error(T(156,t.tag))}function vv(e,t){switch(Us(t),t.tag){case 1:return We(t.type)&&Ho(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return kr(),ie(Ve),ie(Me),Ys(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Gs(t),null;case 13:if(ie(le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));Sr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(le),null;case 4:return kr(),null;case 10:return Vs(t.type._context),null;case 22:case 23:return lu(),null;case 24:return null;default:return null}}var po=!1,je=!1,yv=typeof WeakSet=="function"?WeakSet:Set,j=null;function ar(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){fe(e,t,r)}else n.current=null}function rs(e,t,n){try{n()}catch(r){fe(e,t,r)}}var Dc=!1;function wv(e,t){if(Ua=$o,e=zd(),zs(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,a=-1,s=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var y;d!==n||i!==0&&d.nodeType!==3||(a=l+i),d!==o||r!==0&&d.nodeType!==3||(s=l+r),d.nodeType===3&&(l+=d.nodeValue.length),(y=d.firstChild)!==null;)f=d,d=y;for(;;){if(d===e)break t;if(f===n&&++u===i&&(a=l),f===o&&++c===r&&(s=l),(y=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=y}n=a===-1||s===-1?null:{start:a,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ba={focusedElem:e,selectionRange:n},$o=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var S=v.memoizedProps,E=v.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?S:mt(t.type,S),E);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(x){fe(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return v=Dc,Dc=!1,v}function ci(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&rs(t,n,o)}i=i.next}while(i!==r)}}function Sl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function is(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ip(e){var t=e.alternate;t!==null&&(e.alternate=null,Ip(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Rt],delete t[Li],delete t[Va],delete t[tv],delete t[nv])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Fp(e){return e.tag===5||e.tag===3||e.tag===4}function jc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function os(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=bo));else if(r!==4&&(e=e.child,e!==null))for(os(e,t,n),e=e.sibling;e!==null;)os(e,t,n),e=e.sibling}function ls(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ls(e,t,n),e=e.sibling;e!==null;)ls(e,t,n),e=e.sibling}var Re=null,vt=!1;function Jt(e,t,n){for(n=n.child;n!==null;)Ap(e,t,n),n=n.sibling}function Ap(e,t,n){if(_t&&typeof _t.onCommitFiberUnmount=="function")try{_t.onCommitFiberUnmount(dl,n)}catch{}switch(n.tag){case 5:je||ar(n,t);case 6:var r=Re,i=vt;Re=null,Jt(e,t,n),Re=r,vt=i,Re!==null&&(vt?(e=Re,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Re.removeChild(n.stateNode));break;case 18:Re!==null&&(vt?(e=Re,n=n.stateNode,e.nodeType===8?ra(e.parentNode,n):e.nodeType===1&&ra(e,n),Si(e)):ra(Re,n.stateNode));break;case 4:r=Re,i=vt,Re=n.stateNode.containerInfo,vt=!0,Jt(e,t,n),Re=r,vt=i;break;case 0:case 11:case 14:case 15:if(!je&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&rs(n,t,l),i=i.next}while(i!==r)}Jt(e,t,n);break;case 1:if(!je&&(ar(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){fe(n,t,a)}Jt(e,t,n);break;case 21:Jt(e,t,n);break;case 22:n.mode&1?(je=(r=je)||n.memoizedState!==null,Jt(e,t,n),je=r):Jt(e,t,n);break;default:Jt(e,t,n)}}function Mc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new yv),t.forEach(function(r){var i=Tv.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function gt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=l),r&=~o}if(r=i,r=he()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xv(r/1960))-r,10e?16:e,on===null)var r=!1;else{if(e=on,on=null,tl=0,Y&6)throw Error(T(331));var i=Y;for(Y|=4,j=e.current;j!==null;){var o=j,l=o.child;if(j.flags&16){var a=o.deletions;if(a!==null){for(var s=0;she()-iu?jn(e,0):ru|=n),Ke(e,t)}function Wp(e,t){t===0&&(e.mode&1?(t=ro,ro<<=1,!(ro&130023424)&&(ro=4194304)):t=1);var n=ze();e=bt(e,t),e!==null&&($i(e,t,n),Ke(e,n))}function Rv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Wp(e,n)}function Tv(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(T(314))}r!==null&&r.delete(t),Wp(e,n)}var Kp;Kp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ve.current)He=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return He=!1,gv(e,t,n);He=!!(e.flags&131072)}else He=!1,oe&&t.flags&1048576&&Yd(t,Ko,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;No(e,t),e=t.pendingProps;var i=wr(t,Me.current);gr(t,n),i=Xs(null,t,r,e,i,n);var o=Zs();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,We(r)?(o=!0,Vo(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Ks(t),i.updater=yl,t.stateNode=i,i._reactInternals=t,Ja(t,r,e,n),t=qa(null,t,r,!0,o,n)):(t.tag=0,oe&&o&&$s(t),Ae(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(No(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Ov(r),e=mt(r,e),i){case 0:t=Za(null,t,r,e,n);break e;case 1:t=Nc(null,t,r,e,n);break e;case 11:t=Rc(null,t,r,e,n);break e;case 14:t=Tc(null,t,r,mt(r.type,e),n);break e}throw Error(T(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mt(r,i),Za(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mt(r,i),Nc(e,t,r,i,n);case 3:e:{if(Np(t),e===null)throw Error(T(387));r=t.pendingProps,o=t.memoizedState,i=o.element,qd(e,t),Yo(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Er(Error(T(423)),t),t=Oc(e,t,r,n,i);break e}else if(r!==i){i=Er(Error(T(424)),t),t=Oc(e,t,r,n,i);break e}else for(Xe=un(t.stateNode.containerInfo.firstChild),Ze=t,oe=!0,wt=null,n=rp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Sr(),r===i){t=Ht(e,t,n);break e}Ae(e,t,r,n)}t=t.child}return t;case 5:return ip(t),e===null&&Qa(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,ba(r,i)?l=null:o!==null&&ba(r,o)&&(t.flags|=32),Tp(e,t),Ae(e,t,l,n),t.child;case 6:return e===null&&Qa(t),null;case 13:return Op(e,t,n);case 4:return Qs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=xr(t,null,r,n):Ae(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mt(r,i),Rc(e,t,r,i,n);case 7:return Ae(e,t,t.pendingProps,n),t.child;case 8:return Ae(e,t,t.pendingProps.children,n),t.child;case 12:return Ae(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,te(Qo,r._currentValue),r._currentValue=l,o!==null)if(Et(o.value,l)){if(o.children===i.children&&!Ve.current){t=Ht(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){l=o.child;for(var s=a.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=zt(-1,n&-n),s.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Ga(o.return,n,t),a.lanes|=n;break}s=s.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(T(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),Ga(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}Ae(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,gr(t,n),i=ft(i),r=r(i),t.flags|=1,Ae(e,t,r,n),t.child;case 14:return r=t.type,i=mt(r,t.pendingProps),i=mt(r.type,i),Tc(e,t,r,i,n);case 15:return Pp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mt(r,i),No(e,t),t.tag=1,We(r)?(e=!0,Vo(t)):e=!1,gr(t,n),tp(t,r,i),Ja(t,r,i,n),qa(null,t,r,!0,e,n);case 19:return _p(e,t,n);case 22:return Rp(e,t,n)}throw Error(T(156,t.tag))};function Qp(e,t){return wd(e,t)}function Nv(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ut(e,t,n,r){return new Nv(e,t,n,r)}function su(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ov(e){if(typeof e=="function")return su(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Rs)return 11;if(e===Ts)return 14}return 2}function pn(e,t){var n=e.alternate;return n===null?(n=ut(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Do(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")su(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Zn:return Mn(n.children,i,o,t);case Ps:l=8,i|=8;break;case Sa:return e=ut(12,n,t,i|2),e.elementType=Sa,e.lanes=o,e;case xa:return e=ut(13,n,t,i),e.elementType=xa,e.lanes=o,e;case ka:return e=ut(19,n,t,i),e.elementType=ka,e.lanes=o,e;case nd:return kl(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ed:l=10;break e;case td:l=9;break e;case Rs:l=11;break e;case Ts:l=14;break e;case qt:l=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=ut(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Mn(e,t,n,r){return e=ut(7,e,r,t),e.lanes=n,e}function kl(e,t,n,r){return e=ut(22,e,r,t),e.elementType=nd,e.lanes=n,e.stateNode={isHidden:!1},e}function fa(e,t,n){return e=ut(6,e,null,t),e.lanes=n,e}function da(e,t,n){return t=ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _v(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Kl(0),this.expirationTimes=Kl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function uu(e,t,n,r,i,o,l,a,s){return e=new _v(e,t,n,a,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ut(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ks(o),e}function Dv(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Xp)}catch(e){console.error(e)}}Xp(),Yf.exports=et;var pu=Yf.exports;const Av=ul(pu),zv=zf({__proto__:null,default:Av},[pu]);var bc=pu;ya.createRoot=bc.createRoot,ya.hydrateRoot=bc.hydrateRoot;const $v="modulepreload",Uv=function(e){return"/bingo-frontend/"+e},Hc={},ri=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),a=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));i=Promise.all(n.map(s=>{if(s=Uv(s),s in Hc)return;Hc[s]=!0;const u=s.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(!!r)for(let y=o.length-1;y>=0;y--){const v=o[y];if(v.href===s&&(!u||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${c}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":$v,u||(f.as="script",f.crossOrigin=""),f.href=s,a&&f.setAttribute("nonce",a),document.head.appendChild(f),u)return new Promise((y,v)=>{f.addEventListener("load",y),f.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${s}`)))})}))}return i.then(()=>t()).catch(o=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o})},Bv=e=>{e&&e instanceof Function&&ri(()=>import("./web-vitals-BhWu73fZ.js"),[]).then(({getCLS:t,getFID:n,getFCP:r,getLCP:i,getTTFB:o})=>{t(e),n(e),r(e),i(e),o(e)})};/** +`+o.stack}return{value:e,source:t,stack:i,digest:null}}function ua(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Xa(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var dv=typeof WeakMap=="function"?WeakMap:Map;function Cp(e,t,n){n=zt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){el||(el=!0,as=r),Xa(e,t)},n}function Lp(e,t,n){n=zt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Xa(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Xa(e,t),typeof r!="function"&&(fn===null?fn=new Set([this]):fn.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Cc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new dv;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Pv.bind(null,e,t,n),t.then(e,e))}function Lc(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Pc(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=zt(-1,1),t.tag=2,cn(n,t,1))),n.lanes|=1),e)}var pv=Vt.ReactCurrentOwner,He=!1;function Ae(e,t,n,r){t.child=e===null?rp(t,null,n,r):kr(t,e.child,n,r)}function Rc(e,t,n,r,i){n=n.render;var o=t.ref;return mr(t,i),r=Xs(e,t,n,r,o,i),n=Zs(),e!==null&&!He?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ht(e,t,i)):(oe&&n&&$s(t),t.flags|=1,Ae(e,t,r,i),t.child)}function Tc(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!su(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Pp(e,t,o,r,i)):(e=Do(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var l=o.memoizedProps;if(n=n.compare,n=n!==null?n:ki,n(l,r)&&e.ref===t.ref)return Ht(e,t,i)}return t.flags|=1,e=pn(o,r),e.ref=t.ref,e.return=t,t.child=e}function Pp(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(ki(o,r)&&e.ref===t.ref)if(He=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(He=!0);else return t.lanes=e.lanes,Ht(e,t,i)}return Za(e,t,n,r,i)}function Rp(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},te(ur,Je),Je|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,te(ur,Je),Je|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,te(ur,Je),Je|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,te(ur,Je),Je|=r;return Ae(e,t,i,n),t.child}function Tp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Za(e,t,n,r,i){var o=We(n)?In:Me.current;return o=Sr(t,o),mr(t,i),n=Xs(e,t,n,r,o,i),r=Zs(),e!==null&&!He?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ht(e,t,i)):(oe&&r&&$s(t),t.flags|=1,Ae(e,t,n,i),t.child)}function Nc(e,t,n,r,i){if(We(n)){var o=!0;Vo(t)}else o=!1;if(mr(t,i),t.stateNode===null)No(e,t),tp(t,n,r),Ja(t,n,r,i),r=!0;else if(e===null){var l=t.stateNode,a=t.memoizedProps;l.props=a;var s=l.context,u=n.contextType;typeof u=="object"&&u!==null?u=ft(u):(u=We(n)?In:Me.current,u=Sr(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof l.getSnapshotBeforeUpdate=="function";d||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==r||s!==u)&&Sc(t,l,r,u),en=!1;var f=t.memoizedState;l.state=f,Yo(t,r,l,i),s=t.memoizedState,a!==r||f!==s||Ve.current||en?(typeof c=="function"&&(Ya(t,n,c,r),s=t.memoizedState),(a=en||wc(t,n,a,r,f,s,u))?(d||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),l.props=r,l.state=s,l.context=u,r=a):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,qd(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:mt(t.type,a),l.props=u,d=t.pendingProps,f=l.context,s=n.contextType,typeof s=="object"&&s!==null?s=ft(s):(s=We(n)?In:Me.current,s=Sr(t,s));var y=n.getDerivedStateFromProps;(c=typeof y=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==d||f!==s)&&Sc(t,l,r,s),en=!1,f=t.memoizedState,l.state=f,Yo(t,r,l,i);var v=t.memoizedState;a!==d||f!==v||Ve.current||en?(typeof y=="function"&&(Ya(t,n,y,r),v=t.memoizedState),(u=en||wc(t,n,u,r,f,v,s)||!1)?(c||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,v,s),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,v,s)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),l.props=r,l.state=v,l.context=s,r=u):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return qa(e,t,n,r,o,i)}function qa(e,t,n,r,i,o){Tp(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return i&&hc(t,n,!1),Ht(e,t,o);r=t.stateNode,pv.current=t;var a=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=kr(t,e.child,null,o),t.child=kr(t,null,a,o)):Ae(e,t,a,o),t.memoizedState=r.state,i&&hc(t,n,!0),t.child}function Np(e){var t=e.stateNode;t.pendingContext?pc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&pc(e,t.context,!1),Qs(e,t.containerInfo)}function Oc(e,t,n,r,i){return xr(),Bs(i),t.flags|=256,Ae(e,t,n,r),t.child}var es={dehydrated:null,treeContext:null,retryLane:0};function ts(e){return{baseLanes:e,cachePool:null,transitions:null}}function Op(e,t,n){var r=t.pendingProps,i=le.current,o=!1,l=(t.flags&128)!==0,a;if((a=l)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),te(le,i&1),e===null)return Qa(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,o?(r=t.mode,o=t.child,l={mode:"hidden",children:l},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=l):o=kl(l,r,0,null),e=Mn(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=ts(n),t.memoizedState=es,e):tu(t,l));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return hv(e,t,l,r,a,i,n);if(o){o=r.fallback,l=t.mode,i=e.child,a=i.sibling;var s={mode:"hidden",children:r.children};return!(l&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=pn(i,s),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=pn(a,o):(o=Mn(o,l,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,l=e.child.memoizedState,l=l===null?ts(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},o.memoizedState=l,o.childLanes=e.childLanes&~n,t.memoizedState=es,r}return o=e.child,e=o.sibling,r=pn(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function tu(e,t){return t=kl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function fo(e,t,n,r){return r!==null&&Bs(r),kr(t,e.child,null,n),e=tu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function hv(e,t,n,r,i,o,l){if(n)return t.flags&256?(t.flags&=-257,r=ua(Error(T(422))),fo(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=kl({mode:"visible",children:r.children},i,0,null),o=Mn(o,i,l,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&kr(t,e.child,null,l),t.child.memoizedState=ts(l),t.memoizedState=es,o);if(!(t.mode&1))return fo(e,t,l,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(T(419)),r=ua(o,r,void 0),fo(e,t,l,r)}if(a=(l&e.childLanes)!==0,He||a){if(r=Ee,r!==null){switch(l&-l){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|l)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,bt(e,i),kt(r,e,i,-1))}return au(),r=ua(Error(T(421))),fo(e,t,l,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Rv.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Xe=un(i.nextSibling),Ze=t,oe=!0,wt=null,e!==null&&(at[st++]=Ft,at[st++]=At,at[st++]=Fn,Ft=e.id,At=e.overflow,Fn=t),t=tu(t,r.children),t.flags|=4096,t)}function _c(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ga(e.return,t,n)}function ca(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function _p(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ae(e,t,r.children,n),r=le.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&_c(e,n,t);else if(e.tag===19)_c(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(te(le,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Jo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ca(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Jo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ca(t,!0,n,null,o);break;case"together":ca(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function No(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ht(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),zn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(T(153));if(t.child!==null){for(e=t.child,n=pn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=pn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function gv(e,t,n){switch(t.tag){case 3:Np(t),xr();break;case 5:ip(t);break;case 1:We(t.type)&&Vo(t);break;case 4:Qs(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;te(Qo,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(te(le,le.current&1),t.flags|=128,null):n&t.child.childLanes?Op(e,t,n):(te(le,le.current&1),e=Ht(e,t,n),e!==null?e.sibling:null);te(le,le.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return _p(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),te(le,le.current),r)break;return null;case 22:case 23:return t.lanes=0,Rp(e,t,n)}return Ht(e,t,n)}var Dp,ns,jp,Mp;Dp=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}};ns=function(){};jp=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Tn(Dt.current);var o=null;switch(n){case"input":i=Ca(e,i),r=Ca(e,r),o=[];break;case"select":i=se({},i,{value:void 0}),r=se({},r,{value:void 0}),o=[];break;case"textarea":i=Ra(e,i),r=Ra(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=bo)}Na(n,r);var l;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(l in a)a.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(gi.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var s=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&s!==a&&(s!=null||a!=null))if(u==="style")if(a){for(l in a)!a.hasOwnProperty(l)||s&&s.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in s)s.hasOwnProperty(l)&&a[l]!==s[l]&&(n||(n={}),n[l]=s[l])}else n||(o||(o=[]),o.push(u,n)),n=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,a=a?a.__html:void 0,s!=null&&a!==s&&(o=o||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(o=o||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(gi.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&re("scroll",e),o||a===s||(o=[])):(o=o||[]).push(u,s))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};Mp=function(e,t,n,r){n!==r&&(t.flags|=4)};function Hr(e,t){if(!oe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function De(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function mv(e,t,n){var r=t.pendingProps;switch(Us(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return De(t),null;case 1:return We(t.type)&&Ho(),De(t),null;case 3:return r=t.stateNode,Er(),ie(Ve),ie(Me),Ys(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(uo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,wt!==null&&(cs(wt),wt=null))),ns(e,t),De(t),null;case 5:Gs(t);var i=Tn(Ri.current);if(n=t.type,e!==null&&t.stateNode!=null)jp(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(T(166));return De(t),null}if(e=Tn(Dt.current),uo(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Rt]=t,r[Li]=o,e=(t.mode&1)!==0,n){case"dialog":re("cancel",r),re("close",r);break;case"iframe":case"object":case"embed":re("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Rt]=t,e[Li]=r,Dp(e,t,!1,!1),t.stateNode=e;e:{switch(l=Oa(n,r),n){case"dialog":re("cancel",e),re("close",e),i=r;break;case"iframe":case"object":case"embed":re("load",e),i=r;break;case"video":case"audio":for(i=0;iLr&&(t.flags|=128,r=!0,Hr(o,!1),t.lanes=4194304)}else{if(!r)if(e=Jo(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Hr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!oe)return De(t),null}else 2*he()-o.renderingStartTime>Lr&&n!==1073741824&&(t.flags|=128,r=!0,Hr(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=he(),t.sibling=null,n=le.current,te(le,r?n&1|2:n&1),t):(De(t),null);case 22:case 23:return lu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Je&1073741824&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),null;case 24:return null;case 25:return null}throw Error(T(156,t.tag))}function vv(e,t){switch(Us(t),t.tag){case 1:return We(t.type)&&Ho(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Er(),ie(Ve),ie(Me),Ys(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Gs(t),null;case 13:if(ie(le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));xr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(le),null;case 4:return Er(),null;case 10:return Vs(t.type._context),null;case 22:case 23:return lu(),null;case 24:return null;default:return null}}var po=!1,je=!1,yv=typeof WeakSet=="function"?WeakSet:Set,j=null;function sr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){fe(e,t,r)}else n.current=null}function rs(e,t,n){try{n()}catch(r){fe(e,t,r)}}var Dc=!1;function wv(e,t){if(Ua=$o,e=zd(),zs(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,a=-1,s=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var y;d!==n||i!==0&&d.nodeType!==3||(a=l+i),d!==o||r!==0&&d.nodeType!==3||(s=l+r),d.nodeType===3&&(l+=d.nodeValue.length),(y=d.firstChild)!==null;)f=d,d=y;for(;;){if(d===e)break t;if(f===n&&++u===i&&(a=l),f===o&&++c===r&&(s=l),(y=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=y}n=a===-1||s===-1?null:{start:a,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ba={focusedElem:e,selectionRange:n},$o=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var S=v.memoizedProps,E=v.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?S:mt(t.type,S),E);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(x){fe(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return v=Dc,Dc=!1,v}function ci(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&rs(t,n,o)}i=i.next}while(i!==r)}}function Sl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function is(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ip(e){var t=e.alternate;t!==null&&(e.alternate=null,Ip(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Rt],delete t[Li],delete t[Va],delete t[tv],delete t[nv])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Fp(e){return e.tag===5||e.tag===3||e.tag===4}function jc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function os(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=bo));else if(r!==4&&(e=e.child,e!==null))for(os(e,t,n),e=e.sibling;e!==null;)os(e,t,n),e=e.sibling}function ls(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ls(e,t,n),e=e.sibling;e!==null;)ls(e,t,n),e=e.sibling}var Re=null,vt=!1;function Jt(e,t,n){for(n=n.child;n!==null;)Ap(e,t,n),n=n.sibling}function Ap(e,t,n){if(_t&&typeof _t.onCommitFiberUnmount=="function")try{_t.onCommitFiberUnmount(dl,n)}catch{}switch(n.tag){case 5:je||sr(n,t);case 6:var r=Re,i=vt;Re=null,Jt(e,t,n),Re=r,vt=i,Re!==null&&(vt?(e=Re,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Re.removeChild(n.stateNode));break;case 18:Re!==null&&(vt?(e=Re,n=n.stateNode,e.nodeType===8?ra(e.parentNode,n):e.nodeType===1&&ra(e,n),Si(e)):ra(Re,n.stateNode));break;case 4:r=Re,i=vt,Re=n.stateNode.containerInfo,vt=!0,Jt(e,t,n),Re=r,vt=i;break;case 0:case 11:case 14:case 15:if(!je&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&rs(n,t,l),i=i.next}while(i!==r)}Jt(e,t,n);break;case 1:if(!je&&(sr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){fe(n,t,a)}Jt(e,t,n);break;case 21:Jt(e,t,n);break;case 22:n.mode&1?(je=(r=je)||n.memoizedState!==null,Jt(e,t,n),je=r):Jt(e,t,n);break;default:Jt(e,t,n)}}function Mc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new yv),t.forEach(function(r){var i=Tv.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function gt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=l),r&=~o}if(r=i,r=he()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xv(r/1960))-r,10e?16:e,on===null)var r=!1;else{if(e=on,on=null,tl=0,Y&6)throw Error(T(331));var i=Y;for(Y|=4,j=e.current;j!==null;){var o=j,l=o.child;if(j.flags&16){var a=o.deletions;if(a!==null){for(var s=0;she()-iu?jn(e,0):ru|=n),Ke(e,t)}function Wp(e,t){t===0&&(e.mode&1?(t=ro,ro<<=1,!(ro&130023424)&&(ro=4194304)):t=1);var n=ze();e=bt(e,t),e!==null&&($i(e,t,n),Ke(e,n))}function Rv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Wp(e,n)}function Tv(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(T(314))}r!==null&&r.delete(t),Wp(e,n)}var Kp;Kp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ve.current)He=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return He=!1,gv(e,t,n);He=!!(e.flags&131072)}else He=!1,oe&&t.flags&1048576&&Yd(t,Ko,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;No(e,t),e=t.pendingProps;var i=Sr(t,Me.current);mr(t,n),i=Xs(null,t,r,e,i,n);var o=Zs();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,We(r)?(o=!0,Vo(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Ks(t),i.updater=yl,t.stateNode=i,i._reactInternals=t,Ja(t,r,e,n),t=qa(null,t,r,!0,o,n)):(t.tag=0,oe&&o&&$s(t),Ae(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(No(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Ov(r),e=mt(r,e),i){case 0:t=Za(null,t,r,e,n);break e;case 1:t=Nc(null,t,r,e,n);break e;case 11:t=Rc(null,t,r,e,n);break e;case 14:t=Tc(null,t,r,mt(r.type,e),n);break e}throw Error(T(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mt(r,i),Za(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mt(r,i),Nc(e,t,r,i,n);case 3:e:{if(Np(t),e===null)throw Error(T(387));r=t.pendingProps,o=t.memoizedState,i=o.element,qd(e,t),Yo(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Cr(Error(T(423)),t),t=Oc(e,t,r,n,i);break e}else if(r!==i){i=Cr(Error(T(424)),t),t=Oc(e,t,r,n,i);break e}else for(Xe=un(t.stateNode.containerInfo.firstChild),Ze=t,oe=!0,wt=null,n=rp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(xr(),r===i){t=Ht(e,t,n);break e}Ae(e,t,r,n)}t=t.child}return t;case 5:return ip(t),e===null&&Qa(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,ba(r,i)?l=null:o!==null&&ba(r,o)&&(t.flags|=32),Tp(e,t),Ae(e,t,l,n),t.child;case 6:return e===null&&Qa(t),null;case 13:return Op(e,t,n);case 4:return Qs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=kr(t,null,r,n):Ae(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mt(r,i),Rc(e,t,r,i,n);case 7:return Ae(e,t,t.pendingProps,n),t.child;case 8:return Ae(e,t,t.pendingProps.children,n),t.child;case 12:return Ae(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,te(Qo,r._currentValue),r._currentValue=l,o!==null)if(Et(o.value,l)){if(o.children===i.children&&!Ve.current){t=Ht(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){l=o.child;for(var s=a.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=zt(-1,n&-n),s.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Ga(o.return,n,t),a.lanes|=n;break}s=s.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(T(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),Ga(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}Ae(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,mr(t,n),i=ft(i),r=r(i),t.flags|=1,Ae(e,t,r,n),t.child;case 14:return r=t.type,i=mt(r,t.pendingProps),i=mt(r.type,i),Tc(e,t,r,i,n);case 15:return Pp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mt(r,i),No(e,t),t.tag=1,We(r)?(e=!0,Vo(t)):e=!1,mr(t,n),tp(t,r,i),Ja(t,r,i,n),qa(null,t,r,!0,e,n);case 19:return _p(e,t,n);case 22:return Rp(e,t,n)}throw Error(T(156,t.tag))};function Qp(e,t){return wd(e,t)}function Nv(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ut(e,t,n,r){return new Nv(e,t,n,r)}function su(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ov(e){if(typeof e=="function")return su(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Rs)return 11;if(e===Ts)return 14}return 2}function pn(e,t){var n=e.alternate;return n===null?(n=ut(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Do(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")su(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case qn:return Mn(n.children,i,o,t);case Ps:l=8,i|=8;break;case Sa:return e=ut(12,n,t,i|2),e.elementType=Sa,e.lanes=o,e;case xa:return e=ut(13,n,t,i),e.elementType=xa,e.lanes=o,e;case ka:return e=ut(19,n,t,i),e.elementType=ka,e.lanes=o,e;case nd:return kl(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ed:l=10;break e;case td:l=9;break e;case Rs:l=11;break e;case Ts:l=14;break e;case qt:l=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=ut(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Mn(e,t,n,r){return e=ut(7,e,r,t),e.lanes=n,e}function kl(e,t,n,r){return e=ut(22,e,r,t),e.elementType=nd,e.lanes=n,e.stateNode={isHidden:!1},e}function fa(e,t,n){return e=ut(6,e,null,t),e.lanes=n,e}function da(e,t,n){return t=ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _v(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Kl(0),this.expirationTimes=Kl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function uu(e,t,n,r,i,o,l,a,s){return e=new _v(e,t,n,a,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ut(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ks(o),e}function Dv(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Xp)}catch(e){console.error(e)}}Xp(),Yf.exports=et;var pu=Yf.exports;const Av=ul(pu),zv=zf({__proto__:null,default:Av},[pu]);var bc=pu;ya.createRoot=bc.createRoot,ya.hydrateRoot=bc.hydrateRoot;const $v="modulepreload",Uv=function(e){return"/bingo-frontend/"+e},Hc={},Xn=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),a=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));i=Promise.all(n.map(s=>{if(s=Uv(s),s in Hc)return;Hc[s]=!0;const u=s.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(!!r)for(let y=o.length-1;y>=0;y--){const v=o[y];if(v.href===s&&(!u||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${c}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":$v,u||(f.as="script",f.crossOrigin=""),f.href=s,a&&f.setAttribute("nonce",a),document.head.appendChild(f),u)return new Promise((y,v)=>{f.addEventListener("load",y),f.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${s}`)))})}))}return i.then(()=>t()).catch(o=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o})},Bv=e=>{e&&e instanceof Function&&Xn(()=>import("./web-vitals-BhWu73fZ.js"),[]).then(({getCLS:t,getFID:n,getFCP:r,getLCP:i,getTTFB:o})=>{t(e),n(e),r(e),i(e),o(e)})};/** * @remix-run/router v1.15.3 * * Copyright (c) Remix Software Inc. @@ -46,8 +46,8 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function de(){return de=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Lr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Hv(){return Math.random().toString(36).substr(2,8)}function Wc(e,t){return{usr:e.state,key:e.key,idx:t}}function Di(e,t,n,r){return n===void 0&&(n=null),de({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Wt(t):t,{state:n,key:t&&t.key||r||Hv()})}function Un(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Wt(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Vv(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,l=i.history,a=pe.Pop,s=null,u=c();u==null&&(u=0,l.replaceState(de({},l.state,{idx:u}),""));function c(){return(l.state||{idx:null}).idx}function d(){a=pe.Pop;let E=c(),h=E==null?null:E-u;u=E,s&&s({action:a,location:S.location,delta:h})}function f(E,h){a=pe.Push;let p=Di(S.location,E,h);n&&n(p,E),u=c()+1;let g=Wc(p,u),x=S.createHref(p);try{l.pushState(g,"",x)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;i.location.assign(x)}o&&s&&s({action:a,location:S.location,delta:1})}function y(E,h){a=pe.Replace;let p=Di(S.location,E,h);n&&n(p,E),u=c();let g=Wc(p,u),x=S.createHref(p);l.replaceState(g,"",x),o&&s&&s({action:a,location:S.location,delta:0})}function v(E){let h=i.location.origin!=="null"?i.location.origin:i.location.href,p=typeof E=="string"?E:Un(E);return p=p.replace(/ $/,"%20"),W(h,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,h)}let S={get action(){return a},get location(){return e(i,l)},listen(E){if(s)throw new Error("A history only accepts one active listener");return i.addEventListener(Vc,d),s=E,()=>{i.removeEventListener(Vc,d),s=null}},createHref(E){return t(i,E)},createURL:v,encodeLocation(E){let h=v(E);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:f,replace:y,go(E){return l.go(E)}};return S}var ce;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ce||(ce={}));const Wv=new Set(["lazy","caseSensitive","path","id","index","children"]);function Kv(e){return e.index===!0}function fs(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,o)=>{let l=[...n,o],a=typeof i.id=="string"?i.id:l.join("-");if(W(i.index!==!0||!i.children,"Cannot specify children on an index route"),W(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),Kv(i)){let s=de({},i,t(i),{id:a});return r[a]=s,s}else{let s=de({},i,t(i),{id:a,children:void 0});return r[a]=s,i.children&&(s.children=fs(i.children,t,l,r)),s}})}function ur(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Wt(t):t,i=Or(r.pathname||"/",n);if(i==null)return null;let o=Zp(e);Gv(o);let l=null;for(let a=0;l==null&&a{let s={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};s.relativePath.startsWith("/")&&(W(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=$t([r,s.relativePath]),c=n.concat(s);o.children&&o.children.length>0&&(W(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Zp(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:t1(u,o.index),routesMeta:c})};return e.forEach((o,l)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,l);else for(let s of qp(o.path))i(o,l,s)}),t}function qp(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let l=qp(r.join("/")),a=[];return a.push(...l.map(s=>s===""?o:[o,s].join("/"))),i&&a.push(...l),a.map(s=>e.startsWith("/")&&s===""?"/":s)}function Gv(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:n1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Yv=/^:[\w-]+$/,Jv=3,Xv=2,Zv=1,qv=10,e1=-2,Kc=e=>e==="*";function t1(e,t){let n=e.split("/"),r=n.length;return n.some(Kc)&&(r+=e1),t&&(r+=Xv),n.filter(i=>!Kc(i)).reduce((i,o)=>i+(Yv.test(o)?Jv:o===""?Zv:qv),r)}function n1(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function r1(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let l=0;l{let{paramName:f,isOptional:y}=c;if(f==="*"){let S=a[d]||"";l=o.slice(0,o.length-S.length).replace(/(.)\/+$/,"$1")}const v=a[d];return y&&!v?u[f]=void 0:u[f]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:l,pattern:e}}function o1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Lr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,a,s)=>(r.push({paramName:a,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function l1(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Lr(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Or(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function a1(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Wt(e):e;return{pathname:n?n.startsWith("/")?n:s1(n,t):t,search:c1(r),hash:f1(i)}}function s1(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function pa(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function eh(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function hu(e,t){let n=eh(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function gu(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Wt(e):(i=de({},e),W(!i.pathname||!i.pathname.includes("?"),pa("?","pathname","search",i)),W(!i.pathname||!i.pathname.includes("#"),pa("#","pathname","hash",i)),W(!i.search||!i.search.includes("#"),pa("#","search","hash",i)));let o=e===""||i.pathname==="",l=o?"/":i.pathname,a;if(l==null)a=n;else{let d=t.length-1;if(!r&&l.startsWith("..")){let f=l.split("/");for(;f[0]==="..";)f.shift(),d-=1;i.pathname=f.join("/")}a=d>=0?t[d]:"/"}let s=a1(i,a),u=l&&l!=="/"&&l.endsWith("/"),c=(o||l===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}const $t=e=>e.join("/").replace(/\/\/+/g,"/"),u1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),c1=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,f1=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class mu{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function th(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const nh=["post","put","patch","delete"],d1=new Set(nh),p1=["get",...nh],h1=new Set(p1),g1=new Set([301,302,303,307,308]),m1=new Set([307,308]),ha={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},v1={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Vr={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},rh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,y1=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),ih="remix-router-transitions";function w1(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;W(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let w=e.detectErrorBoundary;i=k=>({hasErrorBoundary:w(k)})}else i=y1;let o={},l=fs(e.routes,i,void 0,o),a,s=e.basename||"/",u=de({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),c=null,d=new Set,f=null,y=null,v=null,S=e.hydrationData!=null,E=ur(l,e.history.location,s),h=null;if(E==null){let w=lt(404,{pathname:e.history.location.pathname}),{matches:k,route:L}=ef(l);E=k,h={[L.id]:w}}let p,g=E.some(w=>w.route.lazy),x=E.some(w=>w.route.loader);if(g)p=!1;else if(!x)p=!0;else if(u.v7_partialHydration){let w=e.hydrationData?e.hydrationData.loaderData:null,k=e.hydrationData?e.hydrationData.errors:null,L=D=>D.route.loader?D.route.loader.hydrate===!0?!1:w&&w[D.route.id]!==void 0||k&&k[D.route.id]!==void 0:!0;if(k){let D=E.findIndex(M=>k[M.route.id]!==void 0);p=E.slice(0,D+1).every(L)}else p=E.every(L)}else p=e.hydrationData!=null;let P,m={historyAction:e.history.action,location:e.history.location,matches:E,initialized:p,navigation:ha,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||h,fetchers:new Map,blockers:new Map},C=pe.Pop,O=!1,I,z=!1,H=new Map,ge=null,ue=!1,we=!1,rt=[],Qe=[],q=new Map,_=0,F=-1,$=new Map,G=new Set,ne=new Map,Ct=new Map,Ce=new Set,pt=new Map,Fe=new Map,Kt=!1;function Xh(){if(c=e.history.listen(w=>{let{action:k,location:L,delta:D}=w;if(Kt){Kt=!1;return}Lr(Fe.size===0||D!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let M=Ou({currentLocation:m.location,nextLocation:L,historyAction:k});if(M&&D!=null){Kt=!0,e.history.go(D*-1),Qi(M,{state:"blocked",location:L,proceed(){Qi(M,{state:"proceeding",proceed:void 0,reset:void 0,location:L}),e.history.go(D)},reset(){let V=new Map(m.blockers);V.set(M,Vr),Ge({blockers:V})}});return}return xn(k,L)}),n){O1(t,H);let w=()=>_1(t,H);t.addEventListener("pagehide",w),ge=()=>t.removeEventListener("pagehide",w)}return m.initialized||xn(pe.Pop,m.location,{initialHydration:!0}),P}function Zh(){c&&c(),ge&&ge(),d.clear(),I&&I.abort(),m.fetchers.forEach((w,k)=>Ki(k)),m.blockers.forEach((w,k)=>Nu(k))}function qh(w){return d.add(w),()=>d.delete(w)}function Ge(w,k){k===void 0&&(k={}),m=de({},m,w);let L=[],D=[];u.v7_fetcherPersist&&m.fetchers.forEach((M,V)=>{M.state==="idle"&&(Ce.has(V)?D.push(V):L.push(V))}),[...d].forEach(M=>M(m,{deletedFetchers:D,unstable_viewTransitionOpts:k.viewTransitionOpts,unstable_flushSync:k.flushSync===!0})),u.v7_fetcherPersist&&(L.forEach(M=>m.fetchers.delete(M)),D.forEach(M=>Ki(M)))}function Dr(w,k,L){var D,M;let{flushSync:V}=L===void 0?{}:L,B=m.actionData!=null&&m.navigation.formMethod!=null&&yt(m.navigation.formMethod)&&m.navigation.state==="loading"&&((D=w.state)==null?void 0:D._isRedirect)!==!0,U;k.actionData?Object.keys(k.actionData).length>0?U=k.actionData:U=null:B?U=m.actionData:U=null;let A=k.loaderData?qc(m.loaderData,k.loaderData,k.matches||[],k.errors):m.loaderData,Q=m.blockers;Q.size>0&&(Q=new Map(Q),Q.forEach((ee,Le)=>Q.set(Le,Vr)));let Se=O===!0||m.navigation.formMethod!=null&&yt(m.navigation.formMethod)&&((M=w.state)==null?void 0:M._isRedirect)!==!0;a&&(l=a,a=void 0),ue||C===pe.Pop||(C===pe.Push?e.history.push(w,w.state):C===pe.Replace&&e.history.replace(w,w.state));let b;if(C===pe.Pop){let ee=H.get(m.location.pathname);ee&&ee.has(w.pathname)?b={currentLocation:m.location,nextLocation:w}:H.has(w.pathname)&&(b={currentLocation:w,nextLocation:m.location})}else if(z){let ee=H.get(m.location.pathname);ee?ee.add(w.pathname):(ee=new Set([w.pathname]),H.set(m.location.pathname,ee)),b={currentLocation:m.location,nextLocation:w}}Ge(de({},k,{actionData:U,loaderData:A,historyAction:C,location:w,initialized:!0,navigation:ha,revalidation:"idle",restoreScrollPosition:Du(w,k.matches||m.matches),preventScrollReset:Se,blockers:Q}),{viewTransitionOpts:b,flushSync:V===!0}),C=pe.Pop,O=!1,z=!1,ue=!1,we=!1,rt=[],Qe=[]}async function Eu(w,k){if(typeof w=="number"){e.history.go(w);return}let L=ds(m.location,m.matches,s,u.v7_prependBasename,w,u.v7_relativeSplatPath,k==null?void 0:k.fromRouteId,k==null?void 0:k.relative),{path:D,submission:M,error:V}=Qc(u.v7_normalizeFormMethod,!1,L,k),B=m.location,U=Di(m.location,D,k&&k.state);U=de({},U,e.history.encodeLocation(U));let A=k&&k.replace!=null?k.replace:void 0,Q=pe.Push;A===!0?Q=pe.Replace:A===!1||M!=null&&yt(M.formMethod)&&M.formAction===m.location.pathname+m.location.search&&(Q=pe.Replace);let Se=k&&"preventScrollReset"in k?k.preventScrollReset===!0:void 0,b=(k&&k.unstable_flushSync)===!0,ee=Ou({currentLocation:B,nextLocation:U,historyAction:Q});if(ee){Qi(ee,{state:"blocked",location:U,proceed(){Qi(ee,{state:"proceeding",proceed:void 0,reset:void 0,location:U}),Eu(w,k)},reset(){let Le=new Map(m.blockers);Le.set(ee,Vr),Ge({blockers:Le})}});return}return await xn(Q,U,{submission:M,pendingError:V,preventScrollReset:Se,replace:k&&k.replace,enableViewTransition:k&&k.unstable_viewTransition,flushSync:b})}function eg(){if(Il(),Ge({revalidation:"loading"}),m.navigation.state!=="submitting"){if(m.navigation.state==="idle"){xn(m.historyAction,m.location,{startUninterruptedRevalidation:!0});return}xn(C||m.historyAction,m.navigation.location,{overrideNavigation:m.navigation})}}async function xn(w,k,L){I&&I.abort(),I=null,C=w,ue=(L&&L.startUninterruptedRevalidation)===!0,ug(m.location,m.matches),O=(L&&L.preventScrollReset)===!0,z=(L&&L.enableViewTransition)===!0;let D=a||l,M=L&&L.overrideNavigation,V=ur(D,k,s),B=(L&&L.flushSync)===!0;if(!V){let Le=lt(404,{pathname:k.pathname}),{matches:Ye,route:xe}=ef(D);Fl(),Dr(k,{matches:Ye,loaderData:{},errors:{[xe.id]:Le}},{flushSync:B});return}if(m.initialized&&!we&&C1(m.location,k)&&!(L&&L.submission&&yt(L.submission.formMethod))){Dr(k,{matches:V},{flushSync:B});return}I=new AbortController;let U=Kr(e.history,k,I.signal,L&&L.submission),A,Q;if(L&&L.pendingError)Q={[pi(V).route.id]:L.pendingError};else if(L&&L.submission&&yt(L.submission.formMethod)){let Le=await tg(U,k,L.submission,V,{replace:L.replace,flushSync:B});if(Le.shortCircuited)return;A=Le.pendingActionData,Q=Le.pendingActionError,M=ga(k,L.submission),B=!1,U=new Request(U.url,{signal:U.signal})}let{shortCircuited:Se,loaderData:b,errors:ee}=await ng(U,k,V,M,L&&L.submission,L&&L.fetcherSubmission,L&&L.replace,L&&L.initialHydration===!0,B,A,Q);Se||(I=null,Dr(k,de({matches:V},A?{actionData:A}:{},{loaderData:b,errors:ee})))}async function tg(w,k,L,D,M){M===void 0&&(M={}),Il();let V=T1(k,L);Ge({navigation:V},{flushSync:M.flushSync===!0});let B,U=hs(D,k);if(!U.route.action&&!U.route.lazy)B={type:ce.error,error:lt(405,{method:w.method,pathname:k.pathname,routeId:U.route.id})};else if(B=await Wr("action",w,U,D,o,i,s,u.v7_relativeSplatPath),w.signal.aborted)return{shortCircuited:!0};if(On(B)){let A;return M&&M.replace!=null?A=M.replace:A=B.location===m.location.pathname+m.location.search,await jr(m,B,{submission:L,replace:A}),{shortCircuited:!0}}if(cr(B)){let A=pi(D,U.route.id);return(M&&M.replace)!==!0&&(C=pe.Push),{pendingActionData:{},pendingActionError:{[A.route.id]:B.error}}}if(Nn(B))throw lt(400,{type:"defer-action"});return{pendingActionData:{[U.route.id]:B.data}}}async function ng(w,k,L,D,M,V,B,U,A,Q,Se){let b=D||ga(k,M),ee=M||V||rf(b),Le=a||l,[Ye,xe]=Gc(e.history,m,L,ee,k,u.v7_partialHydration&&U===!0,we,rt,Qe,Ce,ne,G,Le,s,Q,Se);if(Fl(J=>!(L&&L.some(Z=>Z.route.id===J))||Ye&&Ye.some(Z=>Z.route.id===J)),F=++_,Ye.length===0&&xe.length===0){let J=Ru();return Dr(k,de({matches:L,loaderData:{},errors:Se||null},Q?{actionData:Q}:{},J?{fetchers:new Map(m.fetchers)}:{}),{flushSync:A}),{shortCircuited:!0}}if(!ue&&(!u.v7_partialHydration||!U)){xe.forEach(Z=>{let Be=m.fetchers.get(Z.key),Yi=Qr(void 0,Be?Be.data:void 0);m.fetchers.set(Z.key,Yi)});let J=Q||m.actionData;Ge(de({navigation:b},J?Object.keys(J).length===0?{actionData:null}:{actionData:J}:{},xe.length>0?{fetchers:new Map(m.fetchers)}:{}),{flushSync:A})}xe.forEach(J=>{q.has(J.key)&&Gt(J.key),J.controller&&q.set(J.key,J.controller)});let Vn=()=>xe.forEach(J=>Gt(J.key));I&&I.signal.addEventListener("abort",Vn);let{results:Al,loaderResults:Wn,fetcherResults:Yt}=await Cu(m.matches,L,Ye,xe,w);if(w.signal.aborted)return{shortCircuited:!0};I&&I.signal.removeEventListener("abort",Vn),xe.forEach(J=>q.delete(J.key));let kn=tf(Al);if(kn){if(kn.idx>=Ye.length){let J=xe[kn.idx-Ye.length].key;G.add(J)}return await jr(m,kn.result,{replace:B}),{shortCircuited:!0}}let{loaderData:zl,errors:Ir}=Zc(m,L,Ye,Wn,Se,xe,Yt,pt);pt.forEach((J,Z)=>{J.subscribe(Be=>{(Be||J.done)&&pt.delete(Z)})}),u.v7_partialHydration&&U&&m.errors&&Object.entries(m.errors).filter(J=>{let[Z]=J;return!Ye.some(Be=>Be.route.id===Z)}).forEach(J=>{let[Z,Be]=J;Ir=Object.assign(Ir||{},{[Z]:Be})});let $l=Ru(),Kn=Tu(F),Gi=$l||Kn||xe.length>0;return de({loaderData:zl,errors:Ir},Gi?{fetchers:new Map(m.fetchers)}:{})}function rg(w,k,L,D){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");q.has(w)&&Gt(w);let M=(D&&D.unstable_flushSync)===!0,V=a||l,B=ds(m.location,m.matches,s,u.v7_prependBasename,L,u.v7_relativeSplatPath,k,D==null?void 0:D.relative),U=ur(V,B,s);if(!U){Mr(w,k,lt(404,{pathname:B}),{flushSync:M});return}let{path:A,submission:Q,error:Se}=Qc(u.v7_normalizeFormMethod,!0,B,D);if(Se){Mr(w,k,Se,{flushSync:M});return}let b=hs(U,A);if(O=(D&&D.preventScrollReset)===!0,Q&&yt(Q.formMethod)){ig(w,k,A,b,U,M,Q);return}ne.set(w,{routeId:k,path:A}),og(w,k,A,b,U,M,Q)}async function ig(w,k,L,D,M,V,B){if(Il(),ne.delete(w),!D.route.action&&!D.route.lazy){let Z=lt(405,{method:B.formMethod,pathname:L,routeId:k});Mr(w,k,Z,{flushSync:V});return}let U=m.fetchers.get(w);Qt(w,N1(B,U),{flushSync:V});let A=new AbortController,Q=Kr(e.history,L,A.signal,B);q.set(w,A);let Se=_,b=await Wr("action",Q,D,M,o,i,s,u.v7_relativeSplatPath);if(Q.signal.aborted){q.get(w)===A&&q.delete(w);return}if(u.v7_fetcherPersist&&Ce.has(w)){if(On(b)||cr(b)){Qt(w,Zt(void 0));return}}else{if(On(b))if(q.delete(w),F>Se){Qt(w,Zt(void 0));return}else return G.add(w),Qt(w,Qr(B)),jr(m,b,{fetcherSubmission:B});if(cr(b)){Mr(w,k,b.error);return}}if(Nn(b))throw lt(400,{type:"defer-action"});let ee=m.navigation.location||m.location,Le=Kr(e.history,ee,A.signal),Ye=a||l,xe=m.navigation.state!=="idle"?ur(Ye,m.navigation.location,s):m.matches;W(xe,"Didn't find any matches after fetcher action");let Vn=++_;$.set(w,Vn);let Al=Qr(B,b.data);m.fetchers.set(w,Al);let[Wn,Yt]=Gc(e.history,m,xe,B,ee,!1,we,rt,Qe,Ce,ne,G,Ye,s,{[D.route.id]:b.data},void 0);Yt.filter(Z=>Z.key!==w).forEach(Z=>{let Be=Z.key,Yi=m.fetchers.get(Be),fg=Qr(void 0,Yi?Yi.data:void 0);m.fetchers.set(Be,fg),q.has(Be)&&Gt(Be),Z.controller&&q.set(Be,Z.controller)}),Ge({fetchers:new Map(m.fetchers)});let kn=()=>Yt.forEach(Z=>Gt(Z.key));A.signal.addEventListener("abort",kn);let{results:zl,loaderResults:Ir,fetcherResults:$l}=await Cu(m.matches,xe,Wn,Yt,Le);if(A.signal.aborted)return;A.signal.removeEventListener("abort",kn),$.delete(w),q.delete(w),Yt.forEach(Z=>q.delete(Z.key));let Kn=tf(zl);if(Kn){if(Kn.idx>=Wn.length){let Z=Yt[Kn.idx-Wn.length].key;G.add(Z)}return jr(m,Kn.result)}let{loaderData:Gi,errors:J}=Zc(m,m.matches,Wn,Ir,void 0,Yt,$l,pt);if(m.fetchers.has(w)){let Z=Zt(b.data);m.fetchers.set(w,Z)}Tu(Vn),m.navigation.state==="loading"&&Vn>F?(W(C,"Expected pending action"),I&&I.abort(),Dr(m.navigation.location,{matches:xe,loaderData:Gi,errors:J,fetchers:new Map(m.fetchers)})):(Ge({errors:J,loaderData:qc(m.loaderData,Gi,xe,J),fetchers:new Map(m.fetchers)}),we=!1)}async function og(w,k,L,D,M,V,B){let U=m.fetchers.get(w);Qt(w,Qr(B,U?U.data:void 0),{flushSync:V});let A=new AbortController,Q=Kr(e.history,L,A.signal);q.set(w,A);let Se=_,b=await Wr("loader",Q,D,M,o,i,s,u.v7_relativeSplatPath);if(Nn(b)&&(b=await ah(b,Q.signal,!0)||b),q.get(w)===A&&q.delete(w),!Q.signal.aborted){if(Ce.has(w)){Qt(w,Zt(void 0));return}if(On(b))if(F>Se){Qt(w,Zt(void 0));return}else{G.add(w),await jr(m,b);return}if(cr(b)){Mr(w,k,b.error);return}W(!Nn(b),"Unhandled fetcher deferred data"),Qt(w,Zt(b.data))}}async function jr(w,k,L){let{submission:D,fetcherSubmission:M,replace:V}=L===void 0?{}:L;k.revalidate&&(we=!0);let B=Di(w.location,k.location,{_isRedirect:!0});if(W(B,"Expected a location on the redirect navigation"),n){let ee=!1;if(k.reloadDocument)ee=!0;else if(rh.test(k.location)){const Le=e.history.createURL(k.location);ee=Le.origin!==t.location.origin||Or(Le.pathname,s)==null}if(ee){V?t.location.replace(k.location):t.location.assign(k.location);return}}I=null;let U=V===!0?pe.Replace:pe.Push,{formMethod:A,formAction:Q,formEncType:Se}=w.navigation;!D&&!M&&A&&Q&&Se&&(D=rf(w.navigation));let b=D||M;if(m1.has(k.status)&&b&&yt(b.formMethod))await xn(U,B,{submission:de({},b,{formAction:k.location}),preventScrollReset:O});else{let ee=ga(B,D);await xn(U,B,{overrideNavigation:ee,fetcherSubmission:M,preventScrollReset:O})}}async function Cu(w,k,L,D,M){let V=await Promise.all([...L.map(A=>Wr("loader",M,A,k,o,i,s,u.v7_relativeSplatPath)),...D.map(A=>A.matches&&A.match&&A.controller?Wr("loader",Kr(e.history,A.path,A.controller.signal),A.match,A.matches,o,i,s,u.v7_relativeSplatPath):{type:ce.error,error:lt(404,{pathname:A.path})})]),B=V.slice(0,L.length),U=V.slice(L.length);return await Promise.all([nf(w,L,B,B.map(()=>M.signal),!1,m.loaderData),nf(w,D.map(A=>A.match),U,D.map(A=>A.controller?A.controller.signal:null),!0)]),{results:V,loaderResults:B,fetcherResults:U}}function Il(){we=!0,rt.push(...Fl()),ne.forEach((w,k)=>{q.has(k)&&(Qe.push(k),Gt(k))})}function Qt(w,k,L){L===void 0&&(L={}),m.fetchers.set(w,k),Ge({fetchers:new Map(m.fetchers)},{flushSync:(L&&L.flushSync)===!0})}function Mr(w,k,L,D){D===void 0&&(D={});let M=pi(m.matches,k);Ki(w),Ge({errors:{[M.route.id]:L},fetchers:new Map(m.fetchers)},{flushSync:(D&&D.flushSync)===!0})}function Lu(w){return u.v7_fetcherPersist&&(Ct.set(w,(Ct.get(w)||0)+1),Ce.has(w)&&Ce.delete(w)),m.fetchers.get(w)||v1}function Ki(w){let k=m.fetchers.get(w);q.has(w)&&!(k&&k.state==="loading"&&$.has(w))&&Gt(w),ne.delete(w),$.delete(w),G.delete(w),Ce.delete(w),m.fetchers.delete(w)}function lg(w){if(u.v7_fetcherPersist){let k=(Ct.get(w)||0)-1;k<=0?(Ct.delete(w),Ce.add(w)):Ct.set(w,k)}else Ki(w);Ge({fetchers:new Map(m.fetchers)})}function Gt(w){let k=q.get(w);W(k,"Expected fetch controller: "+w),k.abort(),q.delete(w)}function Pu(w){for(let k of w){let L=Lu(k),D=Zt(L.data);m.fetchers.set(k,D)}}function Ru(){let w=[],k=!1;for(let L of G){let D=m.fetchers.get(L);W(D,"Expected fetcher: "+L),D.state==="loading"&&(G.delete(L),w.push(L),k=!0)}return Pu(w),k}function Tu(w){let k=[];for(let[L,D]of $)if(D0}function ag(w,k){let L=m.blockers.get(w)||Vr;return Fe.get(w)!==k&&Fe.set(w,k),L}function Nu(w){m.blockers.delete(w),Fe.delete(w)}function Qi(w,k){let L=m.blockers.get(w)||Vr;W(L.state==="unblocked"&&k.state==="blocked"||L.state==="blocked"&&k.state==="blocked"||L.state==="blocked"&&k.state==="proceeding"||L.state==="blocked"&&k.state==="unblocked"||L.state==="proceeding"&&k.state==="unblocked","Invalid blocker state transition: "+L.state+" -> "+k.state);let D=new Map(m.blockers);D.set(w,k),Ge({blockers:D})}function Ou(w){let{currentLocation:k,nextLocation:L,historyAction:D}=w;if(Fe.size===0)return;Fe.size>1&&Lr(!1,"A router only supports one blocker at a time");let M=Array.from(Fe.entries()),[V,B]=M[M.length-1],U=m.blockers.get(V);if(!(U&&U.state==="proceeding")&&B({currentLocation:k,nextLocation:L,historyAction:D}))return V}function Fl(w){let k=[];return pt.forEach((L,D)=>{(!w||w(D))&&(L.cancel(),k.push(D),pt.delete(D))}),k}function sg(w,k,L){if(f=w,v=k,y=L||null,!S&&m.navigation===ha){S=!0;let D=Du(m.location,m.matches);D!=null&&Ge({restoreScrollPosition:D})}return()=>{f=null,v=null,y=null}}function _u(w,k){return y&&y(w,k.map(D=>Qv(D,m.loaderData)))||w.key}function ug(w,k){if(f&&v){let L=_u(w,k);f[L]=v()}}function Du(w,k){if(f){let L=_u(w,k),D=f[L];if(typeof D=="number")return D}return null}function cg(w){o={},a=fs(w,i,void 0,o)}return P={get basename(){return s},get future(){return u},get state(){return m},get routes(){return l},get window(){return t},initialize:Xh,subscribe:qh,enableScrollRestoration:sg,navigate:Eu,fetch:rg,revalidate:eg,createHref:w=>e.history.createHref(w),encodeLocation:w=>e.history.encodeLocation(w),getFetcher:Lu,deleteFetcher:lg,dispose:Zh,getBlocker:ag,deleteBlocker:Nu,_internalFetchControllers:q,_internalActiveDeferreds:pt,_internalSetRoutes:cg},P}function S1(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function ds(e,t,n,r,i,o,l,a){let s,u;if(l){s=[];for(let d of t)if(s.push(d),d.route.id===l){u=d;break}}else s=t,u=t[t.length-1];let c=gu(i||".",hu(s,o),Or(e.pathname,n)||e.pathname,a==="path");return i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&u&&u.route.index&&!vu(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:$t([n,c.pathname])),Un(c)}function Qc(e,t,n,r){if(!r||!S1(r))return{path:n};if(r.formMethod&&!R1(r.formMethod))return{path:n,error:lt(405,{method:r.formMethod})};let i=()=>({path:n,error:lt(400,{type:"invalid-body"})}),o=r.formMethod||"get",l=e?o.toUpperCase():o.toLowerCase(),a=lh(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!yt(l))return i();let f=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((y,v)=>{let[S,E]=v;return""+y+S+"="+E+` -`},""):String(r.body);return{path:n,submission:{formMethod:l,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:f}}}else if(r.formEncType==="application/json"){if(!yt(l))return i();try{let f=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:l,formAction:a,formEncType:r.formEncType,formData:void 0,json:f,text:void 0}}}catch{return i()}}}W(typeof FormData=="function","FormData is not available in this environment");let s,u;if(r.formData)s=ps(r.formData),u=r.formData;else if(r.body instanceof FormData)s=ps(r.body),u=r.body;else if(r.body instanceof URLSearchParams)s=r.body,u=Xc(s);else if(r.body==null)s=new URLSearchParams,u=new FormData;else try{s=new URLSearchParams(r.body),u=Xc(s)}catch{return i()}let c={formMethod:l,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(yt(c.formMethod))return{path:n,submission:c};let d=Wt(n);return t&&d.search&&vu(d.search)&&s.append("index",""),d.search="?"+s,{path:Un(d),submission:c}}function x1(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Gc(e,t,n,r,i,o,l,a,s,u,c,d,f,y,v,S){let E=S?Object.values(S)[0]:v?Object.values(v)[0]:void 0,h=e.createURL(t.location),p=e.createURL(i),g=S?Object.keys(S)[0]:void 0,P=x1(n,g).filter((C,O)=>{let{route:I}=C;if(I.lazy)return!0;if(I.loader==null)return!1;if(o)return I.loader.hydrate?!0:t.loaderData[I.id]===void 0&&(!t.errors||t.errors[I.id]===void 0);if(k1(t.loaderData,t.matches[O],C)||a.some(ge=>ge===C.route.id))return!0;let z=t.matches[O],H=C;return Yc(C,de({currentUrl:h,currentParams:z.params,nextUrl:p,nextParams:H.params},r,{actionResult:E,defaultShouldRevalidate:l||h.pathname+h.search===p.pathname+p.search||h.search!==p.search||oh(z,H)}))}),m=[];return c.forEach((C,O)=>{if(o||!n.some(ue=>ue.route.id===C.routeId)||u.has(O))return;let I=ur(f,C.path,y);if(!I){m.push({key:O,routeId:C.routeId,path:C.path,matches:null,match:null,controller:null});return}let z=t.fetchers.get(O),H=hs(I,C.path),ge=!1;d.has(O)?ge=!1:s.includes(O)?ge=!0:z&&z.state!=="idle"&&z.data===void 0?ge=l:ge=Yc(H,de({currentUrl:h,currentParams:t.matches[t.matches.length-1].params,nextUrl:p,nextParams:n[n.length-1].params},r,{actionResult:E,defaultShouldRevalidate:l})),ge&&m.push({key:O,routeId:C.routeId,path:C.path,matches:I,match:H,controller:new AbortController})}),[P,m]}function k1(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function oh(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Yc(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Jc(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];W(i,"No route found in manifest");let o={};for(let l in r){let s=i[l]!==void 0&&l!=="hasErrorBoundary";Lr(!s,'Route "'+i.id+'" has a static property "'+l+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+l+'" will be ignored.')),!s&&!Wv.has(l)&&(o[l]=r[l])}Object.assign(i,o),Object.assign(i,de({},t(i),{lazy:void 0}))}async function Wr(e,t,n,r,i,o,l,a,s){s===void 0&&(s={});let u,c,d,f=S=>{let E,h=new Promise((p,g)=>E=g);return d=()=>E(),t.signal.addEventListener("abort",d),Promise.race([S({request:t,params:n.params,context:s.requestContext}),h])};try{let S=n.route[e];if(n.route.lazy)if(S){let E,h=await Promise.all([f(S).catch(p=>{E=p}),Jc(n.route,o,i)]);if(E)throw E;c=h[0]}else if(await Jc(n.route,o,i),S=n.route[e],S)c=await f(S);else if(e==="action"){let E=new URL(t.url),h=E.pathname+E.search;throw lt(405,{method:t.method,pathname:h,routeId:n.route.id})}else return{type:ce.data,data:void 0};else if(S)c=await f(S);else{let E=new URL(t.url),h=E.pathname+E.search;throw lt(404,{pathname:h})}W(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(S){u=ce.error,c=S}finally{d&&t.signal.removeEventListener("abort",d)}if(P1(c)){let S=c.status;if(g1.has(S)){let h=c.headers.get("Location");if(W(h,"Redirects returned/thrown from loaders/actions must have a Location header"),!rh.test(h))h=ds(new URL(t.url),r.slice(0,r.indexOf(n)+1),l,!0,h,a);else if(!s.isStaticRequest){let p=new URL(t.url),g=h.startsWith("//")?new URL(p.protocol+h):new URL(h),x=Or(g.pathname,l)!=null;g.origin===p.origin&&x&&(h=g.pathname+g.search+g.hash)}if(s.isStaticRequest)throw c.headers.set("Location",h),c;return{type:ce.redirect,status:S,location:h,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(s.isRouteRequest)throw{type:u===ce.error?ce.error:ce.data,response:c};let E;try{let h=c.headers.get("Content-Type");h&&/\bapplication\/json\b/.test(h)?c.body==null?E=null:E=await c.json():E=await c.text()}catch(h){return{type:ce.error,error:h}}return u===ce.error?{type:u,error:new mu(S,c.statusText,E),headers:c.headers}:{type:ce.data,data:E,statusCode:c.status,headers:c.headers}}if(u===ce.error)return{type:u,error:c};if(L1(c)){var y,v;return{type:ce.deferred,deferredData:c,statusCode:(y=c.init)==null?void 0:y.status,headers:((v=c.init)==null?void 0:v.headers)&&new Headers(c.init.headers)}}return{type:ce.data,data:c}}function Kr(e,t,n,r){let i=e.createURL(lh(t)).toString(),o={signal:n};if(r&&yt(r.formMethod)){let{formMethod:l,formEncType:a}=r;o.method=l.toUpperCase(),a==="application/json"?(o.headers=new Headers({"Content-Type":a}),o.body=JSON.stringify(r.json)):a==="text/plain"?o.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?o.body=ps(r.formData):o.body=r.formData}return new Request(i,o)}function ps(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Xc(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function E1(e,t,n,r,i){let o={},l=null,a,s=!1,u={};return n.forEach((c,d)=>{let f=t[d].route.id;if(W(!On(c),"Cannot handle redirect results in processLoaderData"),cr(c)){let y=pi(e,f),v=c.error;r&&(v=Object.values(r)[0],r=void 0),l=l||{},l[y.route.id]==null&&(l[y.route.id]=v),o[f]=void 0,s||(s=!0,a=th(c.error)?c.error.status:500),c.headers&&(u[f]=c.headers)}else Nn(c)?(i.set(f,c.deferredData),o[f]=c.deferredData.data):o[f]=c.data,c.statusCode!=null&&c.statusCode!==200&&!s&&(a=c.statusCode),c.headers&&(u[f]=c.headers)}),r&&(l=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:l,statusCode:a||200,loaderHeaders:u}}function Zc(e,t,n,r,i,o,l,a){let{loaderData:s,errors:u}=E1(t,n,r,i,a);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function ef(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function lt(e,t){let{pathname:n,routeId:r,method:i,type:o}=t===void 0?{}:t,l="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(l="Bad Request",i&&n&&r?a="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?a="defer() is not supported in actions":o==="invalid-body"&&(a="Unable to encode submission body")):e===403?(l="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):e===404?(l="Not Found",a='No route matches URL "'+n+'"'):e===405&&(l="Method Not Allowed",i&&n&&r?a="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(a='Invalid request method "'+i.toUpperCase()+'"')),new mu(e||500,l,new Error(a),!0)}function tf(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(On(n))return{result:n,idx:t}}}function lh(e){let t=typeof e=="string"?Wt(e):e;return Un(de({},t,{hash:""}))}function C1(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Nn(e){return e.type===ce.deferred}function cr(e){return e.type===ce.error}function On(e){return(e&&e.type)===ce.redirect}function L1(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function P1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function R1(e){return h1.has(e.toLowerCase())}function yt(e){return d1.has(e.toLowerCase())}async function nf(e,t,n,r,i,o){for(let l=0;ld.route.id===s.route.id),c=u!=null&&!oh(u,s)&&(o&&o[s.route.id])!==void 0;if(Nn(a)&&(i||c)){let d=r[l];W(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await ah(a,d,i).then(f=>{f&&(n[l]=f||n[l])})}}}async function ah(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:ce.data,data:e.deferredData.unwrappedData}}catch(i){return{type:ce.error,error:i}}return{type:ce.data,data:e.deferredData.data}}}function vu(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function hs(e,t){let n=typeof t=="string"?Wt(t).search:t.search;if(e[e.length-1].route.index&&vu(n||""))return e[e.length-1];let r=eh(e);return r[r.length-1]}function rf(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:o,json:l}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(l!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:l,text:void 0}}}function ga(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function T1(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Qr(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function N1(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Zt(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function O1(e,t){try{let n=e.sessionStorage.getItem(ih);if(n){let r=JSON.parse(n);for(let[i,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(i,new Set(o||[]))}}catch{}}function _1(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(ih,JSON.stringify(n))}catch(r){Lr(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function de(){return de=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Pr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Hv(){return Math.random().toString(36).substr(2,8)}function Wc(e,t){return{usr:e.state,key:e.key,idx:t}}function Di(e,t,n,r){return n===void 0&&(n=null),de({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Wt(t):t,{state:n,key:t&&t.key||r||Hv()})}function Un(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Wt(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Vv(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,l=i.history,a=pe.Pop,s=null,u=c();u==null&&(u=0,l.replaceState(de({},l.state,{idx:u}),""));function c(){return(l.state||{idx:null}).idx}function d(){a=pe.Pop;let E=c(),h=E==null?null:E-u;u=E,s&&s({action:a,location:S.location,delta:h})}function f(E,h){a=pe.Push;let p=Di(S.location,E,h);n&&n(p,E),u=c()+1;let g=Wc(p,u),x=S.createHref(p);try{l.pushState(g,"",x)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;i.location.assign(x)}o&&s&&s({action:a,location:S.location,delta:1})}function y(E,h){a=pe.Replace;let p=Di(S.location,E,h);n&&n(p,E),u=c();let g=Wc(p,u),x=S.createHref(p);l.replaceState(g,"",x),o&&s&&s({action:a,location:S.location,delta:0})}function v(E){let h=i.location.origin!=="null"?i.location.origin:i.location.href,p=typeof E=="string"?E:Un(E);return p=p.replace(/ $/,"%20"),W(h,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,h)}let S={get action(){return a},get location(){return e(i,l)},listen(E){if(s)throw new Error("A history only accepts one active listener");return i.addEventListener(Vc,d),s=E,()=>{i.removeEventListener(Vc,d),s=null}},createHref(E){return t(i,E)},createURL:v,encodeLocation(E){let h=v(E);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:f,replace:y,go(E){return l.go(E)}};return S}var ce;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ce||(ce={}));const Wv=new Set(["lazy","caseSensitive","path","id","index","children"]);function Kv(e){return e.index===!0}function fs(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,o)=>{let l=[...n,o],a=typeof i.id=="string"?i.id:l.join("-");if(W(i.index!==!0||!i.children,"Cannot specify children on an index route"),W(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),Kv(i)){let s=de({},i,t(i),{id:a});return r[a]=s,s}else{let s=de({},i,t(i),{id:a,children:void 0});return r[a]=s,i.children&&(s.children=fs(i.children,t,l,r)),s}})}function cr(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Wt(t):t,i=_r(r.pathname||"/",n);if(i==null)return null;let o=Zp(e);Gv(o);let l=null;for(let a=0;l==null&&a{let s={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};s.relativePath.startsWith("/")&&(W(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=$t([r,s.relativePath]),c=n.concat(s);o.children&&o.children.length>0&&(W(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Zp(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:t1(u,o.index),routesMeta:c})};return e.forEach((o,l)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,l);else for(let s of qp(o.path))i(o,l,s)}),t}function qp(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let l=qp(r.join("/")),a=[];return a.push(...l.map(s=>s===""?o:[o,s].join("/"))),i&&a.push(...l),a.map(s=>e.startsWith("/")&&s===""?"/":s)}function Gv(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:n1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Yv=/^:[\w-]+$/,Jv=3,Xv=2,Zv=1,qv=10,e1=-2,Kc=e=>e==="*";function t1(e,t){let n=e.split("/"),r=n.length;return n.some(Kc)&&(r+=e1),t&&(r+=Xv),n.filter(i=>!Kc(i)).reduce((i,o)=>i+(Yv.test(o)?Jv:o===""?Zv:qv),r)}function n1(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function r1(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let l=0;l{let{paramName:f,isOptional:y}=c;if(f==="*"){let S=a[d]||"";l=o.slice(0,o.length-S.length).replace(/(.)\/+$/,"$1")}const v=a[d];return y&&!v?u[f]=void 0:u[f]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:l,pattern:e}}function o1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Pr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,a,s)=>(r.push({paramName:a,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function l1(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Pr(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function _r(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function a1(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Wt(e):e;return{pathname:n?n.startsWith("/")?n:s1(n,t):t,search:c1(r),hash:f1(i)}}function s1(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function pa(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function eh(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function hu(e,t){let n=eh(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function gu(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Wt(e):(i=de({},e),W(!i.pathname||!i.pathname.includes("?"),pa("?","pathname","search",i)),W(!i.pathname||!i.pathname.includes("#"),pa("#","pathname","hash",i)),W(!i.search||!i.search.includes("#"),pa("#","search","hash",i)));let o=e===""||i.pathname==="",l=o?"/":i.pathname,a;if(l==null)a=n;else{let d=t.length-1;if(!r&&l.startsWith("..")){let f=l.split("/");for(;f[0]==="..";)f.shift(),d-=1;i.pathname=f.join("/")}a=d>=0?t[d]:"/"}let s=a1(i,a),u=l&&l!=="/"&&l.endsWith("/"),c=(o||l===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}const $t=e=>e.join("/").replace(/\/\/+/g,"/"),u1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),c1=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,f1=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class mu{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function th(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const nh=["post","put","patch","delete"],d1=new Set(nh),p1=["get",...nh],h1=new Set(p1),g1=new Set([301,302,303,307,308]),m1=new Set([307,308]),ha={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},v1={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Wr={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},rh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,y1=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),ih="remix-router-transitions";function w1(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;W(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let w=e.detectErrorBoundary;i=k=>({hasErrorBoundary:w(k)})}else i=y1;let o={},l=fs(e.routes,i,void 0,o),a,s=e.basename||"/",u=de({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),c=null,d=new Set,f=null,y=null,v=null,S=e.hydrationData!=null,E=cr(l,e.history.location,s),h=null;if(E==null){let w=lt(404,{pathname:e.history.location.pathname}),{matches:k,route:L}=ef(l);E=k,h={[L.id]:w}}let p,g=E.some(w=>w.route.lazy),x=E.some(w=>w.route.loader);if(g)p=!1;else if(!x)p=!0;else if(u.v7_partialHydration){let w=e.hydrationData?e.hydrationData.loaderData:null,k=e.hydrationData?e.hydrationData.errors:null,L=D=>D.route.loader?D.route.loader.hydrate===!0?!1:w&&w[D.route.id]!==void 0||k&&k[D.route.id]!==void 0:!0;if(k){let D=E.findIndex(M=>k[M.route.id]!==void 0);p=E.slice(0,D+1).every(L)}else p=E.every(L)}else p=e.hydrationData!=null;let P,m={historyAction:e.history.action,location:e.history.location,matches:E,initialized:p,navigation:ha,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||h,fetchers:new Map,blockers:new Map},C=pe.Pop,O=!1,I,z=!1,H=new Map,ge=null,ue=!1,we=!1,rt=[],Qe=[],q=new Map,_=0,F=-1,$=new Map,G=new Set,ne=new Map,Ct=new Map,Ce=new Set,pt=new Map,Fe=new Map,Kt=!1;function Xh(){if(c=e.history.listen(w=>{let{action:k,location:L,delta:D}=w;if(Kt){Kt=!1;return}Pr(Fe.size===0||D!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let M=Ou({currentLocation:m.location,nextLocation:L,historyAction:k});if(M&&D!=null){Kt=!0,e.history.go(D*-1),Qi(M,{state:"blocked",location:L,proceed(){Qi(M,{state:"proceeding",proceed:void 0,reset:void 0,location:L}),e.history.go(D)},reset(){let V=new Map(m.blockers);V.set(M,Wr),Ge({blockers:V})}});return}return xn(k,L)}),n){O1(t,H);let w=()=>_1(t,H);t.addEventListener("pagehide",w),ge=()=>t.removeEventListener("pagehide",w)}return m.initialized||xn(pe.Pop,m.location,{initialHydration:!0}),P}function Zh(){c&&c(),ge&&ge(),d.clear(),I&&I.abort(),m.fetchers.forEach((w,k)=>Ki(k)),m.blockers.forEach((w,k)=>Nu(k))}function qh(w){return d.add(w),()=>d.delete(w)}function Ge(w,k){k===void 0&&(k={}),m=de({},m,w);let L=[],D=[];u.v7_fetcherPersist&&m.fetchers.forEach((M,V)=>{M.state==="idle"&&(Ce.has(V)?D.push(V):L.push(V))}),[...d].forEach(M=>M(m,{deletedFetchers:D,unstable_viewTransitionOpts:k.viewTransitionOpts,unstable_flushSync:k.flushSync===!0})),u.v7_fetcherPersist&&(L.forEach(M=>m.fetchers.delete(M)),D.forEach(M=>Ki(M)))}function jr(w,k,L){var D,M;let{flushSync:V}=L===void 0?{}:L,B=m.actionData!=null&&m.navigation.formMethod!=null&&yt(m.navigation.formMethod)&&m.navigation.state==="loading"&&((D=w.state)==null?void 0:D._isRedirect)!==!0,U;k.actionData?Object.keys(k.actionData).length>0?U=k.actionData:U=null:B?U=m.actionData:U=null;let A=k.loaderData?qc(m.loaderData,k.loaderData,k.matches||[],k.errors):m.loaderData,Q=m.blockers;Q.size>0&&(Q=new Map(Q),Q.forEach((ee,Le)=>Q.set(Le,Wr)));let Se=O===!0||m.navigation.formMethod!=null&&yt(m.navigation.formMethod)&&((M=w.state)==null?void 0:M._isRedirect)!==!0;a&&(l=a,a=void 0),ue||C===pe.Pop||(C===pe.Push?e.history.push(w,w.state):C===pe.Replace&&e.history.replace(w,w.state));let b;if(C===pe.Pop){let ee=H.get(m.location.pathname);ee&&ee.has(w.pathname)?b={currentLocation:m.location,nextLocation:w}:H.has(w.pathname)&&(b={currentLocation:w,nextLocation:m.location})}else if(z){let ee=H.get(m.location.pathname);ee?ee.add(w.pathname):(ee=new Set([w.pathname]),H.set(m.location.pathname,ee)),b={currentLocation:m.location,nextLocation:w}}Ge(de({},k,{actionData:U,loaderData:A,historyAction:C,location:w,initialized:!0,navigation:ha,revalidation:"idle",restoreScrollPosition:Du(w,k.matches||m.matches),preventScrollReset:Se,blockers:Q}),{viewTransitionOpts:b,flushSync:V===!0}),C=pe.Pop,O=!1,z=!1,ue=!1,we=!1,rt=[],Qe=[]}async function Eu(w,k){if(typeof w=="number"){e.history.go(w);return}let L=ds(m.location,m.matches,s,u.v7_prependBasename,w,u.v7_relativeSplatPath,k==null?void 0:k.fromRouteId,k==null?void 0:k.relative),{path:D,submission:M,error:V}=Qc(u.v7_normalizeFormMethod,!1,L,k),B=m.location,U=Di(m.location,D,k&&k.state);U=de({},U,e.history.encodeLocation(U));let A=k&&k.replace!=null?k.replace:void 0,Q=pe.Push;A===!0?Q=pe.Replace:A===!1||M!=null&&yt(M.formMethod)&&M.formAction===m.location.pathname+m.location.search&&(Q=pe.Replace);let Se=k&&"preventScrollReset"in k?k.preventScrollReset===!0:void 0,b=(k&&k.unstable_flushSync)===!0,ee=Ou({currentLocation:B,nextLocation:U,historyAction:Q});if(ee){Qi(ee,{state:"blocked",location:U,proceed(){Qi(ee,{state:"proceeding",proceed:void 0,reset:void 0,location:U}),Eu(w,k)},reset(){let Le=new Map(m.blockers);Le.set(ee,Wr),Ge({blockers:Le})}});return}return await xn(Q,U,{submission:M,pendingError:V,preventScrollReset:Se,replace:k&&k.replace,enableViewTransition:k&&k.unstable_viewTransition,flushSync:b})}function eg(){if(Il(),Ge({revalidation:"loading"}),m.navigation.state!=="submitting"){if(m.navigation.state==="idle"){xn(m.historyAction,m.location,{startUninterruptedRevalidation:!0});return}xn(C||m.historyAction,m.navigation.location,{overrideNavigation:m.navigation})}}async function xn(w,k,L){I&&I.abort(),I=null,C=w,ue=(L&&L.startUninterruptedRevalidation)===!0,ug(m.location,m.matches),O=(L&&L.preventScrollReset)===!0,z=(L&&L.enableViewTransition)===!0;let D=a||l,M=L&&L.overrideNavigation,V=cr(D,k,s),B=(L&&L.flushSync)===!0;if(!V){let Le=lt(404,{pathname:k.pathname}),{matches:Ye,route:xe}=ef(D);Fl(),jr(k,{matches:Ye,loaderData:{},errors:{[xe.id]:Le}},{flushSync:B});return}if(m.initialized&&!we&&C1(m.location,k)&&!(L&&L.submission&&yt(L.submission.formMethod))){jr(k,{matches:V},{flushSync:B});return}I=new AbortController;let U=Qr(e.history,k,I.signal,L&&L.submission),A,Q;if(L&&L.pendingError)Q={[pi(V).route.id]:L.pendingError};else if(L&&L.submission&&yt(L.submission.formMethod)){let Le=await tg(U,k,L.submission,V,{replace:L.replace,flushSync:B});if(Le.shortCircuited)return;A=Le.pendingActionData,Q=Le.pendingActionError,M=ga(k,L.submission),B=!1,U=new Request(U.url,{signal:U.signal})}let{shortCircuited:Se,loaderData:b,errors:ee}=await ng(U,k,V,M,L&&L.submission,L&&L.fetcherSubmission,L&&L.replace,L&&L.initialHydration===!0,B,A,Q);Se||(I=null,jr(k,de({matches:V},A?{actionData:A}:{},{loaderData:b,errors:ee})))}async function tg(w,k,L,D,M){M===void 0&&(M={}),Il();let V=T1(k,L);Ge({navigation:V},{flushSync:M.flushSync===!0});let B,U=hs(D,k);if(!U.route.action&&!U.route.lazy)B={type:ce.error,error:lt(405,{method:w.method,pathname:k.pathname,routeId:U.route.id})};else if(B=await Kr("action",w,U,D,o,i,s,u.v7_relativeSplatPath),w.signal.aborted)return{shortCircuited:!0};if(On(B)){let A;return M&&M.replace!=null?A=M.replace:A=B.location===m.location.pathname+m.location.search,await Mr(m,B,{submission:L,replace:A}),{shortCircuited:!0}}if(fr(B)){let A=pi(D,U.route.id);return(M&&M.replace)!==!0&&(C=pe.Push),{pendingActionData:{},pendingActionError:{[A.route.id]:B.error}}}if(Nn(B))throw lt(400,{type:"defer-action"});return{pendingActionData:{[U.route.id]:B.data}}}async function ng(w,k,L,D,M,V,B,U,A,Q,Se){let b=D||ga(k,M),ee=M||V||rf(b),Le=a||l,[Ye,xe]=Gc(e.history,m,L,ee,k,u.v7_partialHydration&&U===!0,we,rt,Qe,Ce,ne,G,Le,s,Q,Se);if(Fl(J=>!(L&&L.some(Z=>Z.route.id===J))||Ye&&Ye.some(Z=>Z.route.id===J)),F=++_,Ye.length===0&&xe.length===0){let J=Ru();return jr(k,de({matches:L,loaderData:{},errors:Se||null},Q?{actionData:Q}:{},J?{fetchers:new Map(m.fetchers)}:{}),{flushSync:A}),{shortCircuited:!0}}if(!ue&&(!u.v7_partialHydration||!U)){xe.forEach(Z=>{let Be=m.fetchers.get(Z.key),Yi=Gr(void 0,Be?Be.data:void 0);m.fetchers.set(Z.key,Yi)});let J=Q||m.actionData;Ge(de({navigation:b},J?Object.keys(J).length===0?{actionData:null}:{actionData:J}:{},xe.length>0?{fetchers:new Map(m.fetchers)}:{}),{flushSync:A})}xe.forEach(J=>{q.has(J.key)&&Gt(J.key),J.controller&&q.set(J.key,J.controller)});let Vn=()=>xe.forEach(J=>Gt(J.key));I&&I.signal.addEventListener("abort",Vn);let{results:Al,loaderResults:Wn,fetcherResults:Yt}=await Cu(m.matches,L,Ye,xe,w);if(w.signal.aborted)return{shortCircuited:!0};I&&I.signal.removeEventListener("abort",Vn),xe.forEach(J=>q.delete(J.key));let kn=tf(Al);if(kn){if(kn.idx>=Ye.length){let J=xe[kn.idx-Ye.length].key;G.add(J)}return await Mr(m,kn.result,{replace:B}),{shortCircuited:!0}}let{loaderData:zl,errors:Fr}=Zc(m,L,Ye,Wn,Se,xe,Yt,pt);pt.forEach((J,Z)=>{J.subscribe(Be=>{(Be||J.done)&&pt.delete(Z)})}),u.v7_partialHydration&&U&&m.errors&&Object.entries(m.errors).filter(J=>{let[Z]=J;return!Ye.some(Be=>Be.route.id===Z)}).forEach(J=>{let[Z,Be]=J;Fr=Object.assign(Fr||{},{[Z]:Be})});let $l=Ru(),Kn=Tu(F),Gi=$l||Kn||xe.length>0;return de({loaderData:zl,errors:Fr},Gi?{fetchers:new Map(m.fetchers)}:{})}function rg(w,k,L,D){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");q.has(w)&&Gt(w);let M=(D&&D.unstable_flushSync)===!0,V=a||l,B=ds(m.location,m.matches,s,u.v7_prependBasename,L,u.v7_relativeSplatPath,k,D==null?void 0:D.relative),U=cr(V,B,s);if(!U){Ir(w,k,lt(404,{pathname:B}),{flushSync:M});return}let{path:A,submission:Q,error:Se}=Qc(u.v7_normalizeFormMethod,!0,B,D);if(Se){Ir(w,k,Se,{flushSync:M});return}let b=hs(U,A);if(O=(D&&D.preventScrollReset)===!0,Q&&yt(Q.formMethod)){ig(w,k,A,b,U,M,Q);return}ne.set(w,{routeId:k,path:A}),og(w,k,A,b,U,M,Q)}async function ig(w,k,L,D,M,V,B){if(Il(),ne.delete(w),!D.route.action&&!D.route.lazy){let Z=lt(405,{method:B.formMethod,pathname:L,routeId:k});Ir(w,k,Z,{flushSync:V});return}let U=m.fetchers.get(w);Qt(w,N1(B,U),{flushSync:V});let A=new AbortController,Q=Qr(e.history,L,A.signal,B);q.set(w,A);let Se=_,b=await Kr("action",Q,D,M,o,i,s,u.v7_relativeSplatPath);if(Q.signal.aborted){q.get(w)===A&&q.delete(w);return}if(u.v7_fetcherPersist&&Ce.has(w)){if(On(b)||fr(b)){Qt(w,Zt(void 0));return}}else{if(On(b))if(q.delete(w),F>Se){Qt(w,Zt(void 0));return}else return G.add(w),Qt(w,Gr(B)),Mr(m,b,{fetcherSubmission:B});if(fr(b)){Ir(w,k,b.error);return}}if(Nn(b))throw lt(400,{type:"defer-action"});let ee=m.navigation.location||m.location,Le=Qr(e.history,ee,A.signal),Ye=a||l,xe=m.navigation.state!=="idle"?cr(Ye,m.navigation.location,s):m.matches;W(xe,"Didn't find any matches after fetcher action");let Vn=++_;$.set(w,Vn);let Al=Gr(B,b.data);m.fetchers.set(w,Al);let[Wn,Yt]=Gc(e.history,m,xe,B,ee,!1,we,rt,Qe,Ce,ne,G,Ye,s,{[D.route.id]:b.data},void 0);Yt.filter(Z=>Z.key!==w).forEach(Z=>{let Be=Z.key,Yi=m.fetchers.get(Be),fg=Gr(void 0,Yi?Yi.data:void 0);m.fetchers.set(Be,fg),q.has(Be)&&Gt(Be),Z.controller&&q.set(Be,Z.controller)}),Ge({fetchers:new Map(m.fetchers)});let kn=()=>Yt.forEach(Z=>Gt(Z.key));A.signal.addEventListener("abort",kn);let{results:zl,loaderResults:Fr,fetcherResults:$l}=await Cu(m.matches,xe,Wn,Yt,Le);if(A.signal.aborted)return;A.signal.removeEventListener("abort",kn),$.delete(w),q.delete(w),Yt.forEach(Z=>q.delete(Z.key));let Kn=tf(zl);if(Kn){if(Kn.idx>=Wn.length){let Z=Yt[Kn.idx-Wn.length].key;G.add(Z)}return Mr(m,Kn.result)}let{loaderData:Gi,errors:J}=Zc(m,m.matches,Wn,Fr,void 0,Yt,$l,pt);if(m.fetchers.has(w)){let Z=Zt(b.data);m.fetchers.set(w,Z)}Tu(Vn),m.navigation.state==="loading"&&Vn>F?(W(C,"Expected pending action"),I&&I.abort(),jr(m.navigation.location,{matches:xe,loaderData:Gi,errors:J,fetchers:new Map(m.fetchers)})):(Ge({errors:J,loaderData:qc(m.loaderData,Gi,xe,J),fetchers:new Map(m.fetchers)}),we=!1)}async function og(w,k,L,D,M,V,B){let U=m.fetchers.get(w);Qt(w,Gr(B,U?U.data:void 0),{flushSync:V});let A=new AbortController,Q=Qr(e.history,L,A.signal);q.set(w,A);let Se=_,b=await Kr("loader",Q,D,M,o,i,s,u.v7_relativeSplatPath);if(Nn(b)&&(b=await ah(b,Q.signal,!0)||b),q.get(w)===A&&q.delete(w),!Q.signal.aborted){if(Ce.has(w)){Qt(w,Zt(void 0));return}if(On(b))if(F>Se){Qt(w,Zt(void 0));return}else{G.add(w),await Mr(m,b);return}if(fr(b)){Ir(w,k,b.error);return}W(!Nn(b),"Unhandled fetcher deferred data"),Qt(w,Zt(b.data))}}async function Mr(w,k,L){let{submission:D,fetcherSubmission:M,replace:V}=L===void 0?{}:L;k.revalidate&&(we=!0);let B=Di(w.location,k.location,{_isRedirect:!0});if(W(B,"Expected a location on the redirect navigation"),n){let ee=!1;if(k.reloadDocument)ee=!0;else if(rh.test(k.location)){const Le=e.history.createURL(k.location);ee=Le.origin!==t.location.origin||_r(Le.pathname,s)==null}if(ee){V?t.location.replace(k.location):t.location.assign(k.location);return}}I=null;let U=V===!0?pe.Replace:pe.Push,{formMethod:A,formAction:Q,formEncType:Se}=w.navigation;!D&&!M&&A&&Q&&Se&&(D=rf(w.navigation));let b=D||M;if(m1.has(k.status)&&b&&yt(b.formMethod))await xn(U,B,{submission:de({},b,{formAction:k.location}),preventScrollReset:O});else{let ee=ga(B,D);await xn(U,B,{overrideNavigation:ee,fetcherSubmission:M,preventScrollReset:O})}}async function Cu(w,k,L,D,M){let V=await Promise.all([...L.map(A=>Kr("loader",M,A,k,o,i,s,u.v7_relativeSplatPath)),...D.map(A=>A.matches&&A.match&&A.controller?Kr("loader",Qr(e.history,A.path,A.controller.signal),A.match,A.matches,o,i,s,u.v7_relativeSplatPath):{type:ce.error,error:lt(404,{pathname:A.path})})]),B=V.slice(0,L.length),U=V.slice(L.length);return await Promise.all([nf(w,L,B,B.map(()=>M.signal),!1,m.loaderData),nf(w,D.map(A=>A.match),U,D.map(A=>A.controller?A.controller.signal:null),!0)]),{results:V,loaderResults:B,fetcherResults:U}}function Il(){we=!0,rt.push(...Fl()),ne.forEach((w,k)=>{q.has(k)&&(Qe.push(k),Gt(k))})}function Qt(w,k,L){L===void 0&&(L={}),m.fetchers.set(w,k),Ge({fetchers:new Map(m.fetchers)},{flushSync:(L&&L.flushSync)===!0})}function Ir(w,k,L,D){D===void 0&&(D={});let M=pi(m.matches,k);Ki(w),Ge({errors:{[M.route.id]:L},fetchers:new Map(m.fetchers)},{flushSync:(D&&D.flushSync)===!0})}function Lu(w){return u.v7_fetcherPersist&&(Ct.set(w,(Ct.get(w)||0)+1),Ce.has(w)&&Ce.delete(w)),m.fetchers.get(w)||v1}function Ki(w){let k=m.fetchers.get(w);q.has(w)&&!(k&&k.state==="loading"&&$.has(w))&&Gt(w),ne.delete(w),$.delete(w),G.delete(w),Ce.delete(w),m.fetchers.delete(w)}function lg(w){if(u.v7_fetcherPersist){let k=(Ct.get(w)||0)-1;k<=0?(Ct.delete(w),Ce.add(w)):Ct.set(w,k)}else Ki(w);Ge({fetchers:new Map(m.fetchers)})}function Gt(w){let k=q.get(w);W(k,"Expected fetch controller: "+w),k.abort(),q.delete(w)}function Pu(w){for(let k of w){let L=Lu(k),D=Zt(L.data);m.fetchers.set(k,D)}}function Ru(){let w=[],k=!1;for(let L of G){let D=m.fetchers.get(L);W(D,"Expected fetcher: "+L),D.state==="loading"&&(G.delete(L),w.push(L),k=!0)}return Pu(w),k}function Tu(w){let k=[];for(let[L,D]of $)if(D0}function ag(w,k){let L=m.blockers.get(w)||Wr;return Fe.get(w)!==k&&Fe.set(w,k),L}function Nu(w){m.blockers.delete(w),Fe.delete(w)}function Qi(w,k){let L=m.blockers.get(w)||Wr;W(L.state==="unblocked"&&k.state==="blocked"||L.state==="blocked"&&k.state==="blocked"||L.state==="blocked"&&k.state==="proceeding"||L.state==="blocked"&&k.state==="unblocked"||L.state==="proceeding"&&k.state==="unblocked","Invalid blocker state transition: "+L.state+" -> "+k.state);let D=new Map(m.blockers);D.set(w,k),Ge({blockers:D})}function Ou(w){let{currentLocation:k,nextLocation:L,historyAction:D}=w;if(Fe.size===0)return;Fe.size>1&&Pr(!1,"A router only supports one blocker at a time");let M=Array.from(Fe.entries()),[V,B]=M[M.length-1],U=m.blockers.get(V);if(!(U&&U.state==="proceeding")&&B({currentLocation:k,nextLocation:L,historyAction:D}))return V}function Fl(w){let k=[];return pt.forEach((L,D)=>{(!w||w(D))&&(L.cancel(),k.push(D),pt.delete(D))}),k}function sg(w,k,L){if(f=w,v=k,y=L||null,!S&&m.navigation===ha){S=!0;let D=Du(m.location,m.matches);D!=null&&Ge({restoreScrollPosition:D})}return()=>{f=null,v=null,y=null}}function _u(w,k){return y&&y(w,k.map(D=>Qv(D,m.loaderData)))||w.key}function ug(w,k){if(f&&v){let L=_u(w,k);f[L]=v()}}function Du(w,k){if(f){let L=_u(w,k),D=f[L];if(typeof D=="number")return D}return null}function cg(w){o={},a=fs(w,i,void 0,o)}return P={get basename(){return s},get future(){return u},get state(){return m},get routes(){return l},get window(){return t},initialize:Xh,subscribe:qh,enableScrollRestoration:sg,navigate:Eu,fetch:rg,revalidate:eg,createHref:w=>e.history.createHref(w),encodeLocation:w=>e.history.encodeLocation(w),getFetcher:Lu,deleteFetcher:lg,dispose:Zh,getBlocker:ag,deleteBlocker:Nu,_internalFetchControllers:q,_internalActiveDeferreds:pt,_internalSetRoutes:cg},P}function S1(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function ds(e,t,n,r,i,o,l,a){let s,u;if(l){s=[];for(let d of t)if(s.push(d),d.route.id===l){u=d;break}}else s=t,u=t[t.length-1];let c=gu(i||".",hu(s,o),_r(e.pathname,n)||e.pathname,a==="path");return i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&u&&u.route.index&&!vu(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:$t([n,c.pathname])),Un(c)}function Qc(e,t,n,r){if(!r||!S1(r))return{path:n};if(r.formMethod&&!R1(r.formMethod))return{path:n,error:lt(405,{method:r.formMethod})};let i=()=>({path:n,error:lt(400,{type:"invalid-body"})}),o=r.formMethod||"get",l=e?o.toUpperCase():o.toLowerCase(),a=lh(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!yt(l))return i();let f=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((y,v)=>{let[S,E]=v;return""+y+S+"="+E+` +`},""):String(r.body);return{path:n,submission:{formMethod:l,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:f}}}else if(r.formEncType==="application/json"){if(!yt(l))return i();try{let f=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:l,formAction:a,formEncType:r.formEncType,formData:void 0,json:f,text:void 0}}}catch{return i()}}}W(typeof FormData=="function","FormData is not available in this environment");let s,u;if(r.formData)s=ps(r.formData),u=r.formData;else if(r.body instanceof FormData)s=ps(r.body),u=r.body;else if(r.body instanceof URLSearchParams)s=r.body,u=Xc(s);else if(r.body==null)s=new URLSearchParams,u=new FormData;else try{s=new URLSearchParams(r.body),u=Xc(s)}catch{return i()}let c={formMethod:l,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(yt(c.formMethod))return{path:n,submission:c};let d=Wt(n);return t&&d.search&&vu(d.search)&&s.append("index",""),d.search="?"+s,{path:Un(d),submission:c}}function x1(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Gc(e,t,n,r,i,o,l,a,s,u,c,d,f,y,v,S){let E=S?Object.values(S)[0]:v?Object.values(v)[0]:void 0,h=e.createURL(t.location),p=e.createURL(i),g=S?Object.keys(S)[0]:void 0,P=x1(n,g).filter((C,O)=>{let{route:I}=C;if(I.lazy)return!0;if(I.loader==null)return!1;if(o)return I.loader.hydrate?!0:t.loaderData[I.id]===void 0&&(!t.errors||t.errors[I.id]===void 0);if(k1(t.loaderData,t.matches[O],C)||a.some(ge=>ge===C.route.id))return!0;let z=t.matches[O],H=C;return Yc(C,de({currentUrl:h,currentParams:z.params,nextUrl:p,nextParams:H.params},r,{actionResult:E,defaultShouldRevalidate:l||h.pathname+h.search===p.pathname+p.search||h.search!==p.search||oh(z,H)}))}),m=[];return c.forEach((C,O)=>{if(o||!n.some(ue=>ue.route.id===C.routeId)||u.has(O))return;let I=cr(f,C.path,y);if(!I){m.push({key:O,routeId:C.routeId,path:C.path,matches:null,match:null,controller:null});return}let z=t.fetchers.get(O),H=hs(I,C.path),ge=!1;d.has(O)?ge=!1:s.includes(O)?ge=!0:z&&z.state!=="idle"&&z.data===void 0?ge=l:ge=Yc(H,de({currentUrl:h,currentParams:t.matches[t.matches.length-1].params,nextUrl:p,nextParams:n[n.length-1].params},r,{actionResult:E,defaultShouldRevalidate:l})),ge&&m.push({key:O,routeId:C.routeId,path:C.path,matches:I,match:H,controller:new AbortController})}),[P,m]}function k1(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function oh(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Yc(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Jc(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];W(i,"No route found in manifest");let o={};for(let l in r){let s=i[l]!==void 0&&l!=="hasErrorBoundary";Pr(!s,'Route "'+i.id+'" has a static property "'+l+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+l+'" will be ignored.')),!s&&!Wv.has(l)&&(o[l]=r[l])}Object.assign(i,o),Object.assign(i,de({},t(i),{lazy:void 0}))}async function Kr(e,t,n,r,i,o,l,a,s){s===void 0&&(s={});let u,c,d,f=S=>{let E,h=new Promise((p,g)=>E=g);return d=()=>E(),t.signal.addEventListener("abort",d),Promise.race([S({request:t,params:n.params,context:s.requestContext}),h])};try{let S=n.route[e];if(n.route.lazy)if(S){let E,h=await Promise.all([f(S).catch(p=>{E=p}),Jc(n.route,o,i)]);if(E)throw E;c=h[0]}else if(await Jc(n.route,o,i),S=n.route[e],S)c=await f(S);else if(e==="action"){let E=new URL(t.url),h=E.pathname+E.search;throw lt(405,{method:t.method,pathname:h,routeId:n.route.id})}else return{type:ce.data,data:void 0};else if(S)c=await f(S);else{let E=new URL(t.url),h=E.pathname+E.search;throw lt(404,{pathname:h})}W(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(S){u=ce.error,c=S}finally{d&&t.signal.removeEventListener("abort",d)}if(P1(c)){let S=c.status;if(g1.has(S)){let h=c.headers.get("Location");if(W(h,"Redirects returned/thrown from loaders/actions must have a Location header"),!rh.test(h))h=ds(new URL(t.url),r.slice(0,r.indexOf(n)+1),l,!0,h,a);else if(!s.isStaticRequest){let p=new URL(t.url),g=h.startsWith("//")?new URL(p.protocol+h):new URL(h),x=_r(g.pathname,l)!=null;g.origin===p.origin&&x&&(h=g.pathname+g.search+g.hash)}if(s.isStaticRequest)throw c.headers.set("Location",h),c;return{type:ce.redirect,status:S,location:h,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(s.isRouteRequest)throw{type:u===ce.error?ce.error:ce.data,response:c};let E;try{let h=c.headers.get("Content-Type");h&&/\bapplication\/json\b/.test(h)?c.body==null?E=null:E=await c.json():E=await c.text()}catch(h){return{type:ce.error,error:h}}return u===ce.error?{type:u,error:new mu(S,c.statusText,E),headers:c.headers}:{type:ce.data,data:E,statusCode:c.status,headers:c.headers}}if(u===ce.error)return{type:u,error:c};if(L1(c)){var y,v;return{type:ce.deferred,deferredData:c,statusCode:(y=c.init)==null?void 0:y.status,headers:((v=c.init)==null?void 0:v.headers)&&new Headers(c.init.headers)}}return{type:ce.data,data:c}}function Qr(e,t,n,r){let i=e.createURL(lh(t)).toString(),o={signal:n};if(r&&yt(r.formMethod)){let{formMethod:l,formEncType:a}=r;o.method=l.toUpperCase(),a==="application/json"?(o.headers=new Headers({"Content-Type":a}),o.body=JSON.stringify(r.json)):a==="text/plain"?o.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?o.body=ps(r.formData):o.body=r.formData}return new Request(i,o)}function ps(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Xc(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function E1(e,t,n,r,i){let o={},l=null,a,s=!1,u={};return n.forEach((c,d)=>{let f=t[d].route.id;if(W(!On(c),"Cannot handle redirect results in processLoaderData"),fr(c)){let y=pi(e,f),v=c.error;r&&(v=Object.values(r)[0],r=void 0),l=l||{},l[y.route.id]==null&&(l[y.route.id]=v),o[f]=void 0,s||(s=!0,a=th(c.error)?c.error.status:500),c.headers&&(u[f]=c.headers)}else Nn(c)?(i.set(f,c.deferredData),o[f]=c.deferredData.data):o[f]=c.data,c.statusCode!=null&&c.statusCode!==200&&!s&&(a=c.statusCode),c.headers&&(u[f]=c.headers)}),r&&(l=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:l,statusCode:a||200,loaderHeaders:u}}function Zc(e,t,n,r,i,o,l,a){let{loaderData:s,errors:u}=E1(t,n,r,i,a);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function ef(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function lt(e,t){let{pathname:n,routeId:r,method:i,type:o}=t===void 0?{}:t,l="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(l="Bad Request",i&&n&&r?a="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?a="defer() is not supported in actions":o==="invalid-body"&&(a="Unable to encode submission body")):e===403?(l="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):e===404?(l="Not Found",a='No route matches URL "'+n+'"'):e===405&&(l="Method Not Allowed",i&&n&&r?a="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(a='Invalid request method "'+i.toUpperCase()+'"')),new mu(e||500,l,new Error(a),!0)}function tf(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(On(n))return{result:n,idx:t}}}function lh(e){let t=typeof e=="string"?Wt(e):e;return Un(de({},t,{hash:""}))}function C1(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Nn(e){return e.type===ce.deferred}function fr(e){return e.type===ce.error}function On(e){return(e&&e.type)===ce.redirect}function L1(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function P1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function R1(e){return h1.has(e.toLowerCase())}function yt(e){return d1.has(e.toLowerCase())}async function nf(e,t,n,r,i,o){for(let l=0;ld.route.id===s.route.id),c=u!=null&&!oh(u,s)&&(o&&o[s.route.id])!==void 0;if(Nn(a)&&(i||c)){let d=r[l];W(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await ah(a,d,i).then(f=>{f&&(n[l]=f||n[l])})}}}async function ah(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:ce.data,data:e.deferredData.unwrappedData}}catch(i){return{type:ce.error,error:i}}return{type:ce.data,data:e.deferredData.data}}}function vu(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function hs(e,t){let n=typeof t=="string"?Wt(t).search:t.search;if(e[e.length-1].route.index&&vu(n||""))return e[e.length-1];let r=eh(e);return r[r.length-1]}function rf(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:o,json:l}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(l!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:l,text:void 0}}}function ga(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function T1(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Gr(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function N1(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Zt(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function O1(e,t){try{let n=e.sessionStorage.getItem(ih);if(n){let r=JSON.parse(n);for(let[i,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(i,new Set(o||[]))}}catch{}}function _1(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(ih,JSON.stringify(n))}catch(r){Pr(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.22.3 * * Copyright (c) Remix Software Inc. @@ -56,7 +56,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function ji(){return ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),R.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let d=gu(u,JSON.parse(l),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:$t([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,l,o,e])}const I1=R.createContext(null);function F1(e){let t=R.useContext(wn).outlet;return t&&R.createElement(I1.Provider,{value:e},t)}function fh(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=R.useContext(Hn),{matches:i}=R.useContext(wn),{pathname:o}=Nl(),l=JSON.stringify(hu(i,r.v7_relativeSplatPath));return R.useMemo(()=>gu(e,JSON.parse(l),o,n==="path"),[e,l,o,n])}function A1(e,t,n,r){Hi()||W(!1);let{navigator:i}=R.useContext(Hn),{matches:o}=R.useContext(wn),l=o[o.length-1],a=l?l.params:{};l&&l.pathname;let s=l?l.pathnameBase:"/";l&&l.route;let u=Nl(),c;if(t){var d;let E=typeof t=="string"?Wt(t):t;s==="/"||(d=E.pathname)!=null&&d.startsWith(s)||W(!1),c=E}else c=u;let f=c.pathname||"/",y=f;if(s!=="/"){let E=s.replace(/^\//,"").split("/");y="/"+f.replace(/^\//,"").split("/").slice(E.length).join("/")}let v=ur(e,{pathname:y}),S=b1(v&&v.map(E=>Object.assign({},E,{params:Object.assign({},a,E.params),pathname:$t([s,i.encodeLocation?i.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?s:$t([s,i.encodeLocation?i.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),o,n,r);return t&&S?R.createElement(Tl.Provider,{value:{location:ji({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:pe.Pop}},S):S}function z1(){let e=W1(),t=th(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return R.createElement(R.Fragment,null,R.createElement("h2",null,"Unexpected Application Error!"),R.createElement("h3",{style:{fontStyle:"italic"}},t),n?R.createElement("pre",{style:i},n):null,null)}const $1=R.createElement(z1,null);class U1 extends R.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?R.createElement(wn.Provider,{value:this.props.routeContext},R.createElement(uh.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function B1(e){let{routeContext:t,match:n,children:r}=e,i=R.useContext(Rl);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),R.createElement(wn.Provider,{value:t},r)}function b1(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let l=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let c=l.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id]));c>=0||W(!1),l=l.slice(0,Math.min(l.length,c+1))}let s=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?l=l.slice(0,u+1):l=[l[0]];break}}}return l.reduceRight((c,d,f)=>{let y,v=!1,S=null,E=null;n&&(y=a&&d.route.id?a[d.route.id]:void 0,S=d.route.errorElement||$1,s&&(u<0&&f===0?(Q1("route-fallback",!1),v=!0,E=null):u===f&&(v=!0,E=d.route.hydrateFallbackElement||null)));let h=t.concat(l.slice(0,f+1)),p=()=>{let g;return y?g=S:v?g=E:d.route.Component?g=R.createElement(d.route.Component,null):d.route.element?g=d.route.element:g=c,R.createElement(B1,{match:d,routeContext:{outlet:c,matches:h,isDataRoute:n!=null},children:g})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?R.createElement(U1,{location:n.location,revalidation:n.revalidation,component:S,error:y,children:p(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):p()},null)}var dh=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(dh||{}),Pr=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Pr||{});function H1(e){let t=R.useContext(Rl);return t||W(!1),t}function ph(e){let t=R.useContext(sh);return t||W(!1),t}function V1(e){let t=R.useContext(wn);return t||W(!1),t}function yu(e){let t=V1(),n=t.matches[t.matches.length-1];return n.route.id||W(!1),n.route.id}function Ol(){let e=ph(Pr.UseLoaderData),t=yu(Pr.UseLoaderData);if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function W1(){var e;let t=R.useContext(uh),n=ph(Pr.UseRouteError),r=yu(Pr.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function K1(){let{router:e}=H1(dh.UseNavigateStable),t=yu(Pr.UseNavigateStable),n=R.useRef(!1);return ch(()=>{n.current=!0}),R.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,ji({fromRouteId:t},o)))},[e,t])}const of={};function Q1(e,t,n){!t&&!of[e]&&(of[e]=!0)}function G1(e){return F1(e.context)}function Y1(e){let{basename:t="/",children:n=null,location:r,navigationType:i=pe.Pop,navigator:o,static:l=!1,future:a}=e;Hi()&&W(!1);let s=t.replace(/^\/*/,"/"),u=R.useMemo(()=>({basename:s,navigator:o,static:l,future:ji({v7_relativeSplatPath:!1},a)}),[s,a,o,l]);typeof r=="string"&&(r=Wt(r));let{pathname:c="/",search:d="",hash:f="",state:y=null,key:v="default"}=r,S=R.useMemo(()=>{let E=Or(c,s);return E==null?null:{location:{pathname:E,search:d,hash:f,state:y,key:v},navigationType:i}},[s,c,d,f,y,v,i]);return S==null?null:R.createElement(Hn.Provider,{value:u},R.createElement(Tl.Provider,{children:n,value:S}))}new Promise(()=>{});function J1(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:R.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:R.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:R.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function ji(){return ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),R.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let d=gu(u,JSON.parse(l),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:$t([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,l,o,e])}const I1=R.createContext(null);function F1(e){let t=R.useContext(wn).outlet;return t&&R.createElement(I1.Provider,{value:e},t)}function fh(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=R.useContext(Hn),{matches:i}=R.useContext(wn),{pathname:o}=Nl(),l=JSON.stringify(hu(i,r.v7_relativeSplatPath));return R.useMemo(()=>gu(e,JSON.parse(l),o,n==="path"),[e,l,o,n])}function A1(e,t,n,r){Hi()||W(!1);let{navigator:i}=R.useContext(Hn),{matches:o}=R.useContext(wn),l=o[o.length-1],a=l?l.params:{};l&&l.pathname;let s=l?l.pathnameBase:"/";l&&l.route;let u=Nl(),c;if(t){var d;let E=typeof t=="string"?Wt(t):t;s==="/"||(d=E.pathname)!=null&&d.startsWith(s)||W(!1),c=E}else c=u;let f=c.pathname||"/",y=f;if(s!=="/"){let E=s.replace(/^\//,"").split("/");y="/"+f.replace(/^\//,"").split("/").slice(E.length).join("/")}let v=cr(e,{pathname:y}),S=b1(v&&v.map(E=>Object.assign({},E,{params:Object.assign({},a,E.params),pathname:$t([s,i.encodeLocation?i.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?s:$t([s,i.encodeLocation?i.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),o,n,r);return t&&S?R.createElement(Tl.Provider,{value:{location:ji({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:pe.Pop}},S):S}function z1(){let e=W1(),t=th(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return R.createElement(R.Fragment,null,R.createElement("h2",null,"Unexpected Application Error!"),R.createElement("h3",{style:{fontStyle:"italic"}},t),n?R.createElement("pre",{style:i},n):null,null)}const $1=R.createElement(z1,null);class U1 extends R.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?R.createElement(wn.Provider,{value:this.props.routeContext},R.createElement(uh.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function B1(e){let{routeContext:t,match:n,children:r}=e,i=R.useContext(Rl);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),R.createElement(wn.Provider,{value:t},r)}function b1(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let l=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let c=l.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id]));c>=0||W(!1),l=l.slice(0,Math.min(l.length,c+1))}let s=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?l=l.slice(0,u+1):l=[l[0]];break}}}return l.reduceRight((c,d,f)=>{let y,v=!1,S=null,E=null;n&&(y=a&&d.route.id?a[d.route.id]:void 0,S=d.route.errorElement||$1,s&&(u<0&&f===0?(Q1("route-fallback",!1),v=!0,E=null):u===f&&(v=!0,E=d.route.hydrateFallbackElement||null)));let h=t.concat(l.slice(0,f+1)),p=()=>{let g;return y?g=S:v?g=E:d.route.Component?g=R.createElement(d.route.Component,null):d.route.element?g=d.route.element:g=c,R.createElement(B1,{match:d,routeContext:{outlet:c,matches:h,isDataRoute:n!=null},children:g})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?R.createElement(U1,{location:n.location,revalidation:n.revalidation,component:S,error:y,children:p(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):p()},null)}var dh=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(dh||{}),Rr=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Rr||{});function H1(e){let t=R.useContext(Rl);return t||W(!1),t}function ph(e){let t=R.useContext(sh);return t||W(!1),t}function V1(e){let t=R.useContext(wn);return t||W(!1),t}function yu(e){let t=V1(),n=t.matches[t.matches.length-1];return n.route.id||W(!1),n.route.id}function Ol(){let e=ph(Rr.UseLoaderData),t=yu(Rr.UseLoaderData);if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function W1(){var e;let t=R.useContext(uh),n=ph(Rr.UseRouteError),r=yu(Rr.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function K1(){let{router:e}=H1(dh.UseNavigateStable),t=yu(Rr.UseNavigateStable),n=R.useRef(!1);return ch(()=>{n.current=!0}),R.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,ji({fromRouteId:t},o)))},[e,t])}const of={};function Q1(e,t,n){!t&&!of[e]&&(of[e]=!0)}function G1(e){return F1(e.context)}function Y1(e){let{basename:t="/",children:n=null,location:r,navigationType:i=pe.Pop,navigator:o,static:l=!1,future:a}=e;Hi()&&W(!1);let s=t.replace(/^\/*/,"/"),u=R.useMemo(()=>({basename:s,navigator:o,static:l,future:ji({v7_relativeSplatPath:!1},a)}),[s,a,o,l]);typeof r=="string"&&(r=Wt(r));let{pathname:c="/",search:d="",hash:f="",state:y=null,key:v="default"}=r,S=R.useMemo(()=>{let E=_r(c,s);return E==null?null:{location:{pathname:E,search:d,hash:f,state:y,key:v},navigationType:i}},[s,c,d,f,y,v,i]);return S==null?null:R.createElement(Hn.Provider,{value:u},R.createElement(Tl.Provider,{children:n,value:S}))}new Promise(()=>{});function J1(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:R.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:R.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:R.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.22.3 * * Copyright (c) Remix Software Inc. @@ -65,9 +65,9 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Mi(){return Mi=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function Z1(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function q1(e,t){return e.button===0&&(!t||t==="_self")&&!Z1(e)}const e0=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],t0="6";try{window.__reactRouterVersion=t0}catch{}function n0(e,t){return w1({basename:t==null?void 0:t.basename,future:Mi({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:bv({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||r0(),routes:e,mapRouteProperties:J1,window:t==null?void 0:t.window}).initialize()}function r0(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Mi({},t,{errors:i0(t.errors)})),t}function i0(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new mu(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let o=window[i.__subType];if(typeof o=="function")try{let l=new o(i.message);l.stack="",n[r]=l}catch{}}if(n[r]==null){let o=new Error(i.message);o.stack="",n[r]=o}}else n[r]=i;return n}const o0=R.createContext({isTransitioning:!1}),l0=R.createContext(new Map),a0="startTransition",lf=Rg[a0],s0="flushSync",af=zv[s0];function u0(e){lf?lf(e):e()}function Gr(e){af?af(e):e()}class c0{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function f0(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=R.useState(n.state),[l,a]=R.useState(),[s,u]=R.useState({isTransitioning:!1}),[c,d]=R.useState(),[f,y]=R.useState(),[v,S]=R.useState(),E=R.useRef(new Map),{v7_startTransition:h}=r||{},p=R.useCallback(C=>{h?u0(C):C()},[h]),g=R.useCallback((C,O)=>{let{deletedFetchers:I,unstable_flushSync:z,unstable_viewTransitionOpts:H}=O;I.forEach(ue=>E.current.delete(ue)),C.fetchers.forEach((ue,we)=>{ue.data!==void 0&&E.current.set(we,ue.data)});let ge=n.window==null||typeof n.window.document.startViewTransition!="function";if(!H||ge){z?Gr(()=>o(C)):p(()=>o(C));return}if(z){Gr(()=>{f&&(c&&c.resolve(),f.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:H.currentLocation,nextLocation:H.nextLocation})});let ue=n.window.document.startViewTransition(()=>{Gr(()=>o(C))});ue.finished.finally(()=>{Gr(()=>{d(void 0),y(void 0),a(void 0),u({isTransitioning:!1})})}),Gr(()=>y(ue));return}f?(c&&c.resolve(),f.skipTransition(),S({state:C,currentLocation:H.currentLocation,nextLocation:H.nextLocation})):(a(C),u({isTransitioning:!0,flushSync:!1,currentLocation:H.currentLocation,nextLocation:H.nextLocation}))},[n.window,f,c,E,p]);R.useLayoutEffect(()=>n.subscribe(g),[n,g]),R.useEffect(()=>{s.isTransitioning&&!s.flushSync&&d(new c0)},[s]),R.useEffect(()=>{if(c&&l&&n.window){let C=l,O=c.promise,I=n.window.document.startViewTransition(async()=>{p(()=>o(C)),await O});I.finished.finally(()=>{d(void 0),y(void 0),a(void 0),u({isTransitioning:!1})}),y(I)}},[p,l,c,n.window]),R.useEffect(()=>{c&&l&&i.location.key===l.location.key&&c.resolve()},[c,f,i.location,l]),R.useEffect(()=>{!s.isTransitioning&&v&&(a(v.state),u({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),S(void 0))},[s.isTransitioning,v]),R.useEffect(()=>{},[]);let x=R.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:C=>n.navigate(C),push:(C,O,I)=>n.navigate(C,{state:O,preventScrollReset:I==null?void 0:I.preventScrollReset}),replace:(C,O,I)=>n.navigate(C,{replace:!0,state:O,preventScrollReset:I==null?void 0:I.preventScrollReset})}),[n]),P=n.basename||"/",m=R.useMemo(()=>({router:n,navigator:x,static:!1,basename:P}),[n,x,P]);return R.createElement(R.Fragment,null,R.createElement(Rl.Provider,{value:m},R.createElement(sh.Provider,{value:i},R.createElement(l0.Provider,{value:E.current},R.createElement(o0.Provider,{value:s},R.createElement(Y1,{basename:P,location:i.location,navigationType:i.historyAction,navigator:x,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},i.initialized||n.future.v7_partialHydration?R.createElement(d0,{routes:n.routes,future:n.future,state:i}):t))))),null)}function d0(e){let{routes:t,future:n,state:r}=e;return A1(t,void 0,r,n)}const p0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",h0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wu=R.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:l,state:a,target:s,to:u,preventScrollReset:c,unstable_viewTransition:d}=t,f=X1(t,e0),{basename:y}=R.useContext(Hn),v,S=!1;if(typeof u=="string"&&h0.test(u)&&(v=u,p0))try{let g=new URL(window.location.href),x=u.startsWith("//")?new URL(g.protocol+u):new URL(u),P=Or(x.pathname,y);x.origin===g.origin&&P!=null?u=P+x.search+x.hash:S=!0}catch{}let E=D1(u,{relative:i}),h=g0(u,{replace:l,state:a,target:s,preventScrollReset:c,relative:i,unstable_viewTransition:d});function p(g){r&&r(g),g.defaultPrevented||h(g)}return R.createElement("a",Mi({},f,{href:v||E,onClick:S||o?r:p,ref:n,target:s}))});var sf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(sf||(sf={}));var uf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(uf||(uf={}));function g0(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:l,unstable_viewTransition:a}=t===void 0?{}:t,s=j1(),u=Nl(),c=fh(e,{relative:l});return R.useCallback(d=>{if(q1(d,n)){d.preventDefault();let f=r!==void 0?r:Un(u)===Un(c);s(e,{replace:f,state:i,preventScrollReset:o,relative:l,unstable_viewTransition:a})}},[u,s,c,r,i,n,e,o,l,a])}const m0={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 il{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||m0,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+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),i=1;i{let[a,s]=l;for(let u=0;u{let[a,s]=l;for(let u=0;u{e=r,t=i});return n.resolve=e,n.reject=t,n}function cf(e){return e==null?"":""+e}function v0(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}const y0=/###/g;function hi(e,t,n){function r(a){return a&&a.indexOf("###")>-1?a.replace(y0,"."):a}function i(){return!e||typeof e=="string"}const o=typeof t!="string"?t:t.split(".");let l=0;for(;l":">",'"':""","'":"'","/":"/"};function k0(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>x0[t]):e}class E0{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=[" ",",","?","!",";"],L0=new E0(20);function P0(e,t,n){t=t||"",n=n||"";const r=C0.filter(l=>t.indexOf(l)<0&&n.indexOf(l)<0);if(r.length===0)return!0;const i=L0.getRegExp(`(${r.map(l=>l==="?"?"\\?":l).join("|")})`);let o=!i.test(e);if(!o){const l=e.indexOf(n);l>0&&!i.test(e.substring(0,l))&&(o=!0)}return o}function gs(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 i=e;for(let o=0;o-1&&s0?e.replace("_","-"):e}class df extends _l{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 i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,l=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;t.indexOf(".")>-1?a=t.split("."):(a=[t,n],r&&(Array.isArray(r)?a.push(...r):typeof r=="string"&&o?a.push(...r.split(o)):a.push(r)));const s=ol(this.data,a);return!s&&!n&&!r&&t.indexOf(".")>-1&&(t=a[0],n=a[1],r=a.slice(2).join(".")),s||!l||typeof r!="string"?s:gs(this.data&&this.data[t]&&this.data[t][n],r,o)}addResource(t,n,r,i){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let a=[t,n];r&&(a=a.concat(l?r.split(l):r)),t.indexOf(".")>-1&&(a=t.split("."),i=n,n=a[1]),this.addNamespaces(n),ff(this.data,a,i),o.silent||this.emit("added",t,n,r,i)}addResources(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(typeof r[o]=="string"||Object.prototype.toString.apply(r[o])==="[object Array]")&&this.addResource(t,n,o,r[o],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,o){let l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},a=[t,n];t.indexOf(".")>-1&&(a=t.split("."),i=r,r=n,n=a[1]),this.addNamespaces(n);let s=ol(this.data,a)||{};l.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?hh(s,r,o):s={...s,...r},ff(this.data,a,s),l.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(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var gh={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,r,i))}),t}};const pf={};class al extends _l{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),v0(["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 i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const l=r&&t.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!P0(t,r,i);if(l&&!a){const s=t.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:t,namespaces:o};const u=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(u[0])>-1)&&(o=u.shift()),t=u.join(i)}return typeof o=="string"&&(o=[o]),{key:t,namespaces: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 i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:l,namespaces:a}=this.extractFromKey(t[t.length-1],n),s=a[a.length-1],u=n.lng||this.language,c=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(c){const x=n.nsSeparator||this.options.nsSeparator;return i?{res:`${s}${x}${l}`,usedKey:l,exactUsedKey:l,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(n)}:`${s}${x}${l}`}return i?{res:l,usedKey:l,exactUsedKey:l,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(n)}:l}const d=this.resolve(t,n);let f=d&&d.res;const y=d&&d.usedKey||l,v=d&&d.exactUsedKey||l,S=Object.prototype.toString.apply(f),E=["[object Number]","[object Function]","[object RegExp]"],h=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,p=!this.i18nFormat||this.i18nFormat.handleAsObject;if(p&&f&&(typeof f!="string"&&typeof f!="boolean"&&typeof f!="number")&&E.indexOf(S)<0&&!(typeof h=="string"&&S==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const x=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,f,{...n,ns:a}):`key '${l} (${this.language})' returned an object instead of string.`;return i?(d.res=x,d.usedParams=this.getUsedParamsDetails(n),d):x}if(o){const x=S==="[object Array]",P=x?[]:{},m=x?v:y;for(const C in f)if(Object.prototype.hasOwnProperty.call(f,C)){const O=`${m}${o}${C}`;P[C]=this.translate(O,{...n,joinArrays:!1,ns:a}),P[C]===O&&(P[C]=f[C])}f=P}}else if(p&&typeof h=="string"&&S==="[object Array]")f=f.join(h),f&&(f=this.extendTranslation(f,t,n,r));else{let x=!1,P=!1;const m=n.count!==void 0&&typeof n.count!="string",C=al.hasDefaultValue(n),O=m?this.pluralResolver.getSuffix(u,n.count,n):"",I=n.ordinal&&m?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",z=m&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),H=z&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${O}`]||n[`defaultValue${I}`]||n.defaultValue;!this.isValidLookup(f)&&C&&(x=!0,f=H),this.isValidLookup(f)||(P=!0,f=l);const ue=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&P?void 0:f,we=C&&H!==f&&this.options.updateMissing;if(P||x||we){if(this.logger.log(we?"updateKey":"missingKey",u,s,l,we?H:f),o){const _=this.resolve(l,{...n,keySeparator:!1});_&&_.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 rt=[];const Qe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Qe&&Qe[0])for(let _=0;_{const G=C&&$!==f?$:ue;this.options.missingKeyHandler?this.options.missingKeyHandler(_,s,F,G,we,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(_,s,F,G,we,n),this.emit("missingKey",_,s,F,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&m?rt.forEach(_=>{const F=this.pluralResolver.getSuffixes(_,n);z&&n[`defaultValue${this.options.pluralSeparator}zero`]&&F.indexOf(`${this.options.pluralSeparator}zero`)<0&&F.push(`${this.options.pluralSeparator}zero`),F.forEach($=>{q([_],l+$,n[`defaultValue${$}`]||H)})}):q(rt,l,H))}f=this.extendTranslation(f,t,n,d,r),P&&f===l&&this.options.appendNamespaceToMissingKey&&(f=`${s}:${l}`),(P||x)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${l}`:l,x?f:void 0):f=this.options.parseMissingKeyHandler(f))}return i?(d.res=f,d.usedParams=this.getUsedParamsDetails(n),d):f}extendTranslation(t,n,r,i,o){var l=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const f=t.match(this.interpolator.nestingRegexp);c=f&&f.length}let d=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),t=this.interpolator.interpolate(t,d,r.lng||this.language,r),u){const f=t.match(this.interpolator.nestingRegexp),y=f&&f.length;c1&&arguments[1]!==void 0?arguments[1]:{},r,i,o,l,a;return typeof t=="string"&&(t=[t]),t.forEach(s=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(s,n),c=u.key;i=c;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const f=n.count!==void 0&&typeof n.count!="string",y=f&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),v=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",S=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(E=>{this.isValidLookup(r)||(a=E,!pf[`${S[0]}-${E}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(pf[`${S[0]}-${E}`]=!0,this.logger.warn(`key "${i}" for languages "${S.join(", ")}" won't get resolved as namespace "${a}" 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!!!")),S.forEach(h=>{if(this.isValidLookup(r))return;l=h;const p=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(p,c,h,E,n);else{let x;f&&(x=this.pluralResolver.getSuffix(h,n.count,n));const P=`${this.options.pluralSeparator}zero`,m=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(p.push(c+x),n.ordinal&&x.indexOf(m)===0&&p.push(c+x.replace(m,this.options.pluralSeparator)),y&&p.push(c+P)),v){const C=`${c}${this.options.contextSeparator}${n.context}`;p.push(C),f&&(p.push(C+x),n.ordinal&&x.indexOf(m)===0&&p.push(C+x.replace(m,this.options.pluralSeparator)),y&&p.push(C+P))}}let g;for(;g=p.pop();)this.isValidLookup(r)||(o=g,r=this.getResource(h,E,g,n))}))})}),{res:r,usedKey:i,exactUsedKey:o,usedLng:l,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}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&&typeof t.replace!="string";let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const o of n)delete i[o]}return i}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}}function ma(e){return e.charAt(0).toUpperCase()+e.slice(1)}class hf{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Nt.create("languageUtils")}getScriptPartFromCode(t){if(t=ll(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=ll(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=ma(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]=ma(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=ma(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 i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(o=>{if(o===i)return o;if(!(o.indexOf("-")<0&&i.indexOf("-")<0)&&(o.indexOf("-")>0&&i.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===i||o.indexOf(i)===0&&i.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)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")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),i=[],o=l=>{l&&(this.isSupportedCode(l)?i.push(l):this.logger.warn(`rejecting language code not found in supportedLngs: ${l}`))};return typeof t=="string"&&(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))):typeof t=="string"&&o(this.formatLanguageCode(t)),r.forEach(l=>{i.indexOf(l)<0&&o(this.formatLanguageCode(l))}),i}}let R0=[{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}],T0={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const N0=["v1","v2","v3"],O0=["v4"],gf={zero:0,one:1,two:2,few:3,many:4,other:5};function _0(){const e={};return R0.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:T0[t.fc]}})}),e}class D0{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||O0.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=_0()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(ll(t==="dev"?"en":t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}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(i=>`${n}${i}`)}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((i,o)=>gf[i]-gf[o]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,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 i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const o=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.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!N0.includes(this.options.compatibilityJSON)}}function mf(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=S0(e,t,n);return!o&&i&&typeof n=="string"&&(o=gs(e,n,r),o===void 0&&(o=gs(t,n,r))),o}class j0{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 n=t.interpolation;this.escape=n.escape!==void 0?n.escape:k0,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?Yn(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Yn(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?Yn(n.nestingPrefix):n.nestingPrefixEscaped||Yn("$t("),this.nestingSuffix=n.nestingSuffix?Yn(n.nestingSuffix):n.nestingSuffixEscaped||Yn(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!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,i){let o,l,a;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(v){return v.replace(/\$/g,"$$$$")}const c=v=>{if(v.indexOf(this.formatSeparator)<0){const p=mf(n,s,v,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(p,void 0,r,{...i,...n,interpolationkey:v}):p}const S=v.split(this.formatSeparator),E=S.shift().trim(),h=S.join(this.formatSeparator).trim();return this.format(mf(n,s,E,this.options.keySeparator,this.options.ignoreJSONStructure),h,r,{...i,...n,interpolationkey:E})};this.resetRegExp();const d=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,f=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:v=>u(v)},{regex:this.regexp,safeValue:v=>this.escapeValue?u(this.escape(v)):u(v)}].forEach(v=>{for(a=0;o=v.regex.exec(t);){const S=o[1].trim();if(l=c(S),l===void 0)if(typeof d=="function"){const h=d(t,o,i);l=typeof h=="string"?h:""}else if(i&&Object.prototype.hasOwnProperty.call(i,S))l="";else if(f){l=o[0];continue}else this.logger.warn(`missed to pass in variable ${S} for interpolating ${t}`),l="";else typeof l!="string"&&!this.useRawValueToEscape&&(l=cf(l));const E=v.safeValue(l);if(t=t.replace(o[0],E),f?(v.regex.lastIndex+=l.length,v.regex.lastIndex-=o[0].length):v.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,o,l;function a(s,u){const c=this.nestingOptionsSeparator;if(s.indexOf(c)<0)return s;const d=s.split(new RegExp(`${c}[ ]*{`));let f=`{${d[1]}`;s=d[0],f=this.interpolate(f,l);const y=f.match(/'/g),v=f.match(/"/g);(y&&y.length%2===0&&!v||v.length%2!==0)&&(f=f.replace(/'/g,'"'));try{l=JSON.parse(f),u&&(l={...u,...l})}catch(S){return this.logger.warn(`failed parsing options string in nesting for key ${s}`,S),`${s}${c}${f}`}return l.defaultValue&&l.defaultValue.indexOf(this.prefix)>-1&&delete l.defaultValue,s}for(;i=this.nestingRegexp.exec(t);){let s=[];l={...r},l=l.replace&&typeof l.replace!="string"?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;let u=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const c=i[1].split(this.formatSeparator).map(d=>d.trim());i[1]=c.shift(),s=c,u=!0}if(o=n(a.call(this,i[1].trim(),l),l),o&&i[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=cf(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),o=""),u&&(o=s.reduce((c,d)=>this.format(c,d,r.lng,{...r,interpolationkey:i[1].trim()}),o.trim())),t=t.replace(i[0],o),this.regexp.lastIndex=0}return t}}function M0(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(l=>{if(!l)return;const[a,...s]=l.split(":"),u=s.join(":").trim().replace(/^'+|'+$/g,"");n[a.trim()]||(n[a.trim()]=u),u==="false"&&(n[a.trim()]=!1),u==="true"&&(n[a.trim()]=!0),isNaN(u)||(n[a.trim()]=parseInt(u,10))})}return{formatName:t,formatOptions:n}}function Jn(e){const t={};return function(r,i,o){const l=i+JSON.stringify(o);let a=t[l];return a||(a=e(ll(i),o),t[l]=a),a(r)}}class I0{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Nt.create("formatter"),this.options=t,this.formats={number:Jn((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return o=>i.format(o)}),currency:Jn((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>i.format(o)}),datetime:Jn((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return o=>i.format(o)}),relativetime:Jn((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return o=>i.format(o,r.range||"day")}),list:Jn((n,r)=>{const i=new Intl.ListFormat(n,{...r});return o=>i.format(o)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Jn(n)}format(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((a,s)=>{const{formatName:u,formatOptions:c}=M0(s);if(this.formats[u]){let d=a;try{const f=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},y=f.locale||f.lng||i.locale||i.lng||r;d=this.formats[u](a,y,{...c,...i,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${u}`);return a},t)}}function F0(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class A0 extends _l{constructor(t,n,r){let i=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=i,this.logger=Nt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(t,n,r,i){const o={},l={},a={},s={};return t.forEach(u=>{let c=!0;n.forEach(d=>{const f=`${u}|${d}`;!r.reload&&this.store.hasResourceBundle(u,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?l[f]===void 0&&(l[f]=!0):(this.state[f]=1,c=!1,l[f]===void 0&&(l[f]=!0),o[f]===void 0&&(o[f]=!0),s[d]===void 0&&(s[d]=!0)))}),c||(a[u]=!0)}),(Object.keys(o).length||Object.keys(l).length)&&this.queue.push({pending:l,pendingCount:Object.keys(l).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(l),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(t,n,r){const i=t.split("|"),o=i[0],l=i[1];n&&this.emit("failedLoading",o,l,n),r&&this.store.addResourceBundle(o,l,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2;const a={};this.queue.forEach(s=>{w0(s.loaded,[o],l),F0(s,t),n&&s.errors.push(n),s.pendingCount===0&&!s.done&&(Object.keys(s.loaded).forEach(u=>{a[u]||(a[u]={});const c=s.loaded[u];c.length&&c.forEach(d=>{a[u][d]===void 0&&(a[u][d]=!0)})}),s.done=!0,s.errors.length?s.callback(s.errors):s.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(s=>!s.done)}read(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,l=arguments.length>5?arguments[5]:void 0;if(!t.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:o,callback:l});return}this.readingCalls++;const a=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&c&&i{this.read.call(this,t,n,r,i+1,o*2,l)},o);return}l(u,c)},s=this.backend[r].bind(this.backend);if(s.length===2){try{const u=s(t,n);u&&typeof u.then=="function"?u.then(c=>a(null,c)).catch(a):a(null,u)}catch(u){a(u)}return}return s(t,n,a)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=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."),i&&i();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const o=this.queueLoad(t,n,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(l=>{this.loadOne(l)})}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("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(l,a)=>{l&&this.logger.warn(`${n}loading namespace ${o} for language ${i} failed`,l),!l&&a&&this.logger.log(`${n}loaded namespace ${o} for language ${i}`,a),this.loaded(t,l,a)})}saveMissing(t,n,r,i,o){let l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=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 s={...l,isUpdate:o},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(t,n,r,i,s):c=u(t,n,r,i),c&&typeof c.then=="function"?c.then(d=>a(null,d)).catch(a):a(null,c)}catch(c){a(c)}else u(t,n,r,i,a,s)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}function vf(){return{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:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(i=>{n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function yf(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function mo(){}function z0(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class Ii extends _l{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=yf(t),this.services={},this.logger=Nt,this.modules={external:[]},z0(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&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=vf();this.options={...i,...this.options,...yf(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function o(c){return c?typeof c=="function"?new c:c:null}if(!this.options.isClone){this.modules.logger?Nt.init(o(this.modules.logger),this.options):Nt.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=I0);const d=new hf(this.options);this.store=new df(this.options.resources,this.options);const f=this.services;f.logger=Nt,f.resourceStore=this.store,f.languageUtils=d,f.pluralResolver=new D0(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===i.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 j0(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new A0(o(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(y){for(var v=arguments.length,S=new Array(v>1?v-1:0),E=1;E1?v-1:0),E=1;E{y.init&&y.init(this)})}if(this.format=this.options.interpolation.format,r||(r=mo),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 s=Yr(),u=()=>{const c=(d,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),s.resolve(f),r(d,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?u():setTimeout(u,0),s}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mo;const i=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],l=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(u=>{u!=="cimode"&&o.indexOf(u)<0&&o.push(u)})};i?l(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(s=>l(s)),this.options.preload&&this.options.preload.forEach(a=>l(a)),this.services.backendConnector.load(o,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(a)})}else r(null)}reloadResources(t,n,r){const i=Yr();return t||(t=this.languages),n||(n=this.options.ns),r||(r=mo),this.services.backendConnector.reload(t,n,o=>{i.resolve(),r(o)}),i}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"&&gh.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-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const i=Yr();this.emit("languageChanging",t);const o=s=>{this.language=s,this.languages=this.services.languageUtils.toResolveHierarchy(s),this.resolvedLanguage=void 0,this.setResolvedLanguage(s)},l=(s,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,i.resolve(function(){return r.t(...arguments)}),n&&n(s,function(){return r.t(...arguments)})},a=s=>{!t&&!s&&this.services.languageDetector&&(s=[]);const u=typeof s=="string"?s:this.services.languageUtils.getBestMatchFromCodes(s);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,c=>{l(c,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),i}getFixedT(t,n,r){var i=this;const o=function(l,a){let s;if(typeof a!="object"){for(var u=arguments.length,c=new Array(u>2?u-2:0),d=2;d`${s.keyPrefix}${f}${v}`):y=s.keyPrefix?`${s.keyPrefix}${f}${l}`:l,i.t(y,s)};return typeof t=="string"?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],i=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const l=(a,s)=>{const u=this.services.backendConnector.state[`${a}|${s}`];return u===-1||u===2};if(n.precheck){const a=n.precheck(this,l);if(a!==void 0)return a}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||l(r,t)&&(!i||l(o,t)))}loadNamespaces(t,n){const r=Yr();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Yr();typeof t=="string"&&(t=[t]);const i=this.options.preload||[],o=t.filter(l=>i.indexOf(l)<0);return o.length?(this.options.preload=i.concat(o),this.loadResources(l=>{r.resolve(),n&&n(l)}),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 hf(vf());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 Ii(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mo;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},o=new Ii(i);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(a=>{o[a]=this[a]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new df(this.store.data,i),o.services.resourceStore=o.store),o.translator=new al(o.services,i),o.translator.on("*",function(a){for(var s=arguments.length,u=new Array(s>1?s-1:0),c=1;c()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function Sf(e,t,n){e.loadNamespaces(t,mh(e,n))}function xf(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,mh(e,r))}function U0(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],i=t.options?t.options.fallbackLng:!1,o=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const l=(a,s)=>{const u=t.services.backendConnector.state[`${a}|${s}`];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!l(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||l(r,e)&&(!i||l(o,e)))}function B0(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(ms("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(i,o)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!o(i.isLanguageChangingTo,e))return!1}}):U0(e,t,n)}const b0=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,H0={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},V0=e=>H0[e],W0=e=>e.replace(b0,V0);let vs={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:W0};function K0(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};vs={...vs,...e}}function Q0(){return vs}let vh;function G0(e){vh=e}function Y0(){return vh}const J0={type:"3rdParty",init(e){K0(e.options.react),G0(e)}},X0=R.createContext();class Z0{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const q0=(e,t)=>{const n=R.useRef();return R.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function yh(e,t,n,r){return e.getFixedT(t,n,r)}function ey(e,t,n,r){return R.useCallback(yh(e,t,n,r),[e,t,n,r])}function _r(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:i}=R.useContext(X0)||{},o=n||r||Y0();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new Z0),!o){ms("You will need to pass in an i18next instance by using initReactI18next");const x=(m,C)=>typeof C=="string"?C:C&&typeof C=="object"&&typeof C.defaultValue=="string"?C.defaultValue:Array.isArray(m)?m[m.length-1]:m,P=[x,{},!1];return P.t=x,P.i18n={},P.ready=!1,P}o.options.react&&o.options.react.wait!==void 0&&ms("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const l={...Q0(),...o.options.react,...t},{useSuspense:a,keyPrefix:s}=l;let u=e||i||o.options&&o.options.defaultNS;u=typeof u=="string"?[u]:u||["translation"],o.reportNamespaces.addUsedNamespaces&&o.reportNamespaces.addUsedNamespaces(u);const c=(o.isInitialized||o.initializedStoreOnce)&&u.every(x=>B0(x,o,l)),d=ey(o,t.lng||null,l.nsMode==="fallback"?u:u[0],s),f=()=>d,y=()=>yh(o,t.lng||null,l.nsMode==="fallback"?u:u[0],s),[v,S]=R.useState(f);let E=u.join();t.lng&&(E=`${t.lng}${E}`);const h=q0(E),p=R.useRef(!0);R.useEffect(()=>{const{bindI18n:x,bindI18nStore:P}=l;p.current=!0,!c&&!a&&(t.lng?xf(o,t.lng,u,()=>{p.current&&S(y)}):Sf(o,u,()=>{p.current&&S(y)})),c&&h&&h!==E&&p.current&&S(y);function m(){p.current&&S(y)}return x&&o&&o.on(x,m),P&&o&&o.store.on(P,m),()=>{p.current=!1,x&&o&&x.split(" ").forEach(C=>o.off(C,m)),P&&o&&P.split(" ").forEach(C=>o.store.off(C,m))}},[o,E]),R.useEffect(()=>{p.current&&c&&S(f)},[o,s,c]);const g=[v,o,c];if(g.t=v,g.i18n=o,g.ready=c,c||!c&&!a)return g;throw new Promise(x=>{t.lng?xf(o,t.lng,u,()=>x()):Sf(o,u,()=>x())})}function ty(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fi(e){"@babel/helpers - typeof";return Fi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fi(e)}function ny(e,t){if(Fi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Fi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ry(e){var t=ny(e,"string");return Fi(t)=="symbol"?t:t+""}function kf(e,t){for(var n=0;n0){var a=i.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");l+="; Max-Age=".concat(Math.floor(a))}if(i.domain){if(!Ef.test(i.domain))throw new TypeError("option domain is invalid");l+="; Domain=".concat(i.domain)}if(i.path){if(!Ef.test(i.path))throw new TypeError("option path is invalid");l+="; Path=".concat(i.path)}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");l+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(l+="; HttpOnly"),i.secure&&(l+="; Secure"),i.sameSite){var s=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(s){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;case"none":l+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return l},Cf={create:function(t,n,r,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+r*60*1e3)),i&&(o.domain=i),document.cookie=sy(t,encodeURIComponent(n),o)},read:function(t){for(var n="".concat(t,"="),r=document.cookie.split(";"),i=0;i-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=r.substring(1),o=i.split("&"),l=0;l0){var s=o[l].substring(0,a);s===t.lookupQuerystring&&(n=o[l].substring(a+1))}}}return n}},Jr=null,Lf=function(){if(Jr!==null)return Jr;try{Jr=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Jr=!1}return Jr},fy={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&Lf()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&Lf()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},Xr=null,Pf=function(){if(Xr!==null)return Xr;try{Xr=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Xr=!1}return Xr},dy={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&Pf()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&Pf()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},py={name:"navigator",lookup:function(t){var n=[];if(typeof navigator<"u"){if(navigator.languages)for(var r=0;r0?n:void 0}},hy={name:"htmlTag",lookup:function(t){var n,r=t.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},gy={name:"path",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof r[t.lookupFromPathIndex]!="string")return;n=r[t.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},my={name:"subdomain",lookup:function(t){var n=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,r=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};function vy(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(t){return t}}}var Sh=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ty(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return iy(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n||{languageUtils:{}},this.options=ay(r,this.options||{},vy()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(o){return o.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(uy),this.addDetector(cy),this.addDetector(fy),this.addDetector(dy),this.addDetector(py),this.addDetector(hy),this.addDetector(gy),this.addDetector(my)}},{key:"addDetector",value:function(n){return this.detectors[n.name]=n,this}},{key:"detect",value:function(n){var r=this;n||(n=this.options.order);var i=[];return n.forEach(function(o){if(r.detectors[o]){var l=r.detectors[o].lookup(r.options);l&&typeof l=="string"&&(l=[l]),l&&(i=i.concat(l))}}),i=i.map(function(o){return r.options.convertDetectedLanguage(o)}),this.services.languageUtils.getBestMatchFromCodes?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(n,r){var i=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||r.forEach(function(o){i.detectors[o]&&i.detectors[o].cacheUserLanguage(n,i.options)}))}}]),e}();Sh.type="languageDetector";const yy={back:"Back",cardActions:{new:"New card",clear:"Clear",share:"Share",copied:"Copied"},wordList:{title:"Full word list"},footer:{wordList:"Full word list",videoList:"Full video list",about:"About"}},wy={translation:yy},Sy={back:"Retour",cardActions:{new:"Carte neuve",clear:"Effacer",share:"Partager",copied:"CopiĂ©"},wordList:{title:"Liste de mots"},footer:{wordList:"Liste de mots",videoList:"Liste de vidĂ©os",about:"Ă€ propos"}},xy={translation:Sy},ky={back:"Tillbaka",cardActions:{new:"Nytt kort",clear:"Rensa",share:"Dela",copied:"Kopierad"},wordList:{title:"Fullständig ordlista"},footer:{wordList:"Fullständig ordlista",videoList:"Fullständig videolista",about:"Om"}},Ey={translation:ky},Cy=["en","fr","sv"],xh="en";Ie.use(Sh).use(J0).init({resources:{en:wy,fr:xy,sv:Ey},fallbackLng:xh,supportedLngs:Cy,nonExplicitSupportedLngs:!0});var kh={exports:{}};/*! + */function Mi(){return Mi=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function Z1(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function q1(e,t){return e.button===0&&(!t||t==="_self")&&!Z1(e)}const e0=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],t0="6";try{window.__reactRouterVersion=t0}catch{}function n0(e,t){return w1({basename:t==null?void 0:t.basename,future:Mi({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:bv({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||r0(),routes:e,mapRouteProperties:J1,window:t==null?void 0:t.window}).initialize()}function r0(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Mi({},t,{errors:i0(t.errors)})),t}function i0(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new mu(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let o=window[i.__subType];if(typeof o=="function")try{let l=new o(i.message);l.stack="",n[r]=l}catch{}}if(n[r]==null){let o=new Error(i.message);o.stack="",n[r]=o}}else n[r]=i;return n}const o0=R.createContext({isTransitioning:!1}),l0=R.createContext(new Map),a0="startTransition",lf=Rg[a0],s0="flushSync",af=zv[s0];function u0(e){lf?lf(e):e()}function Yr(e){af?af(e):e()}class c0{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function f0(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=R.useState(n.state),[l,a]=R.useState(),[s,u]=R.useState({isTransitioning:!1}),[c,d]=R.useState(),[f,y]=R.useState(),[v,S]=R.useState(),E=R.useRef(new Map),{v7_startTransition:h}=r||{},p=R.useCallback(C=>{h?u0(C):C()},[h]),g=R.useCallback((C,O)=>{let{deletedFetchers:I,unstable_flushSync:z,unstable_viewTransitionOpts:H}=O;I.forEach(ue=>E.current.delete(ue)),C.fetchers.forEach((ue,we)=>{ue.data!==void 0&&E.current.set(we,ue.data)});let ge=n.window==null||typeof n.window.document.startViewTransition!="function";if(!H||ge){z?Yr(()=>o(C)):p(()=>o(C));return}if(z){Yr(()=>{f&&(c&&c.resolve(),f.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:H.currentLocation,nextLocation:H.nextLocation})});let ue=n.window.document.startViewTransition(()=>{Yr(()=>o(C))});ue.finished.finally(()=>{Yr(()=>{d(void 0),y(void 0),a(void 0),u({isTransitioning:!1})})}),Yr(()=>y(ue));return}f?(c&&c.resolve(),f.skipTransition(),S({state:C,currentLocation:H.currentLocation,nextLocation:H.nextLocation})):(a(C),u({isTransitioning:!0,flushSync:!1,currentLocation:H.currentLocation,nextLocation:H.nextLocation}))},[n.window,f,c,E,p]);R.useLayoutEffect(()=>n.subscribe(g),[n,g]),R.useEffect(()=>{s.isTransitioning&&!s.flushSync&&d(new c0)},[s]),R.useEffect(()=>{if(c&&l&&n.window){let C=l,O=c.promise,I=n.window.document.startViewTransition(async()=>{p(()=>o(C)),await O});I.finished.finally(()=>{d(void 0),y(void 0),a(void 0),u({isTransitioning:!1})}),y(I)}},[p,l,c,n.window]),R.useEffect(()=>{c&&l&&i.location.key===l.location.key&&c.resolve()},[c,f,i.location,l]),R.useEffect(()=>{!s.isTransitioning&&v&&(a(v.state),u({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),S(void 0))},[s.isTransitioning,v]),R.useEffect(()=>{},[]);let x=R.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:C=>n.navigate(C),push:(C,O,I)=>n.navigate(C,{state:O,preventScrollReset:I==null?void 0:I.preventScrollReset}),replace:(C,O,I)=>n.navigate(C,{replace:!0,state:O,preventScrollReset:I==null?void 0:I.preventScrollReset})}),[n]),P=n.basename||"/",m=R.useMemo(()=>({router:n,navigator:x,static:!1,basename:P}),[n,x,P]);return R.createElement(R.Fragment,null,R.createElement(Rl.Provider,{value:m},R.createElement(sh.Provider,{value:i},R.createElement(l0.Provider,{value:E.current},R.createElement(o0.Provider,{value:s},R.createElement(Y1,{basename:P,location:i.location,navigationType:i.historyAction,navigator:x,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},i.initialized||n.future.v7_partialHydration?R.createElement(d0,{routes:n.routes,future:n.future,state:i}):t))))),null)}function d0(e){let{routes:t,future:n,state:r}=e;return A1(t,void 0,r,n)}const p0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",h0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wu=R.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:l,state:a,target:s,to:u,preventScrollReset:c,unstable_viewTransition:d}=t,f=X1(t,e0),{basename:y}=R.useContext(Hn),v,S=!1;if(typeof u=="string"&&h0.test(u)&&(v=u,p0))try{let g=new URL(window.location.href),x=u.startsWith("//")?new URL(g.protocol+u):new URL(u),P=_r(x.pathname,y);x.origin===g.origin&&P!=null?u=P+x.search+x.hash:S=!0}catch{}let E=D1(u,{relative:i}),h=g0(u,{replace:l,state:a,target:s,preventScrollReset:c,relative:i,unstable_viewTransition:d});function p(g){r&&r(g),g.defaultPrevented||h(g)}return R.createElement("a",Mi({},f,{href:v||E,onClick:S||o?r:p,ref:n,target:s}))});var sf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(sf||(sf={}));var uf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(uf||(uf={}));function g0(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:l,unstable_viewTransition:a}=t===void 0?{}:t,s=j1(),u=Nl(),c=fh(e,{relative:l});return R.useCallback(d=>{if(q1(d,n)){d.preventDefault();let f=r!==void 0?r:Un(u)===Un(c);s(e,{replace:f,state:i,preventScrollReset:o,relative:l,unstable_viewTransition:a})}},[u,s,c,r,i,n,e,o,l,a])}const m0={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 il{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||m0,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+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),i=1;i{let[a,s]=l;for(let u=0;u{let[a,s]=l;for(let u=0;u{e=r,t=i});return n.resolve=e,n.reject=t,n}function cf(e){return e==null?"":""+e}function v0(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}const y0=/###/g;function hi(e,t,n){function r(a){return a&&a.indexOf("###")>-1?a.replace(y0,"."):a}function i(){return!e||typeof e=="string"}const o=typeof t!="string"?t:t.split(".");let l=0;for(;l":">",'"':""","'":"'","/":"/"};function k0(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>x0[t]):e}class E0{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=[" ",",","?","!",";"],L0=new E0(20);function P0(e,t,n){t=t||"",n=n||"";const r=C0.filter(l=>t.indexOf(l)<0&&n.indexOf(l)<0);if(r.length===0)return!0;const i=L0.getRegExp(`(${r.map(l=>l==="?"?"\\?":l).join("|")})`);let o=!i.test(e);if(!o){const l=e.indexOf(n);l>0&&!i.test(e.substring(0,l))&&(o=!0)}return o}function gs(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 i=e;for(let o=0;o-1&&s0?e.replace("_","-"):e}class df extends _l{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 i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,l=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;t.indexOf(".")>-1?a=t.split("."):(a=[t,n],r&&(Array.isArray(r)?a.push(...r):typeof r=="string"&&o?a.push(...r.split(o)):a.push(r)));const s=ol(this.data,a);return!s&&!n&&!r&&t.indexOf(".")>-1&&(t=a[0],n=a[1],r=a.slice(2).join(".")),s||!l||typeof r!="string"?s:gs(this.data&&this.data[t]&&this.data[t][n],r,o)}addResource(t,n,r,i){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let a=[t,n];r&&(a=a.concat(l?r.split(l):r)),t.indexOf(".")>-1&&(a=t.split("."),i=n,n=a[1]),this.addNamespaces(n),ff(this.data,a,i),o.silent||this.emit("added",t,n,r,i)}addResources(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(typeof r[o]=="string"||Object.prototype.toString.apply(r[o])==="[object Array]")&&this.addResource(t,n,o,r[o],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,o){let l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},a=[t,n];t.indexOf(".")>-1&&(a=t.split("."),i=r,r=n,n=a[1]),this.addNamespaces(n);let s=ol(this.data,a)||{};l.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?hh(s,r,o):s={...s,...r},ff(this.data,a,s),l.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(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var gh={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,r,i))}),t}};const pf={};class al extends _l{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),v0(["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 i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const l=r&&t.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!P0(t,r,i);if(l&&!a){const s=t.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:t,namespaces:o};const u=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(u[0])>-1)&&(o=u.shift()),t=u.join(i)}return typeof o=="string"&&(o=[o]),{key:t,namespaces: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 i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:l,namespaces:a}=this.extractFromKey(t[t.length-1],n),s=a[a.length-1],u=n.lng||this.language,c=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(c){const x=n.nsSeparator||this.options.nsSeparator;return i?{res:`${s}${x}${l}`,usedKey:l,exactUsedKey:l,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(n)}:`${s}${x}${l}`}return i?{res:l,usedKey:l,exactUsedKey:l,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(n)}:l}const d=this.resolve(t,n);let f=d&&d.res;const y=d&&d.usedKey||l,v=d&&d.exactUsedKey||l,S=Object.prototype.toString.apply(f),E=["[object Number]","[object Function]","[object RegExp]"],h=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,p=!this.i18nFormat||this.i18nFormat.handleAsObject;if(p&&f&&(typeof f!="string"&&typeof f!="boolean"&&typeof f!="number")&&E.indexOf(S)<0&&!(typeof h=="string"&&S==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const x=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,f,{...n,ns:a}):`key '${l} (${this.language})' returned an object instead of string.`;return i?(d.res=x,d.usedParams=this.getUsedParamsDetails(n),d):x}if(o){const x=S==="[object Array]",P=x?[]:{},m=x?v:y;for(const C in f)if(Object.prototype.hasOwnProperty.call(f,C)){const O=`${m}${o}${C}`;P[C]=this.translate(O,{...n,joinArrays:!1,ns:a}),P[C]===O&&(P[C]=f[C])}f=P}}else if(p&&typeof h=="string"&&S==="[object Array]")f=f.join(h),f&&(f=this.extendTranslation(f,t,n,r));else{let x=!1,P=!1;const m=n.count!==void 0&&typeof n.count!="string",C=al.hasDefaultValue(n),O=m?this.pluralResolver.getSuffix(u,n.count,n):"",I=n.ordinal&&m?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",z=m&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),H=z&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${O}`]||n[`defaultValue${I}`]||n.defaultValue;!this.isValidLookup(f)&&C&&(x=!0,f=H),this.isValidLookup(f)||(P=!0,f=l);const ue=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&P?void 0:f,we=C&&H!==f&&this.options.updateMissing;if(P||x||we){if(this.logger.log(we?"updateKey":"missingKey",u,s,l,we?H:f),o){const _=this.resolve(l,{...n,keySeparator:!1});_&&_.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 rt=[];const Qe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Qe&&Qe[0])for(let _=0;_{const G=C&&$!==f?$:ue;this.options.missingKeyHandler?this.options.missingKeyHandler(_,s,F,G,we,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(_,s,F,G,we,n),this.emit("missingKey",_,s,F,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&m?rt.forEach(_=>{const F=this.pluralResolver.getSuffixes(_,n);z&&n[`defaultValue${this.options.pluralSeparator}zero`]&&F.indexOf(`${this.options.pluralSeparator}zero`)<0&&F.push(`${this.options.pluralSeparator}zero`),F.forEach($=>{q([_],l+$,n[`defaultValue${$}`]||H)})}):q(rt,l,H))}f=this.extendTranslation(f,t,n,d,r),P&&f===l&&this.options.appendNamespaceToMissingKey&&(f=`${s}:${l}`),(P||x)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${l}`:l,x?f:void 0):f=this.options.parseMissingKeyHandler(f))}return i?(d.res=f,d.usedParams=this.getUsedParamsDetails(n),d):f}extendTranslation(t,n,r,i,o){var l=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const f=t.match(this.interpolator.nestingRegexp);c=f&&f.length}let d=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),t=this.interpolator.interpolate(t,d,r.lng||this.language,r),u){const f=t.match(this.interpolator.nestingRegexp),y=f&&f.length;c1&&arguments[1]!==void 0?arguments[1]:{},r,i,o,l,a;return typeof t=="string"&&(t=[t]),t.forEach(s=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(s,n),c=u.key;i=c;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const f=n.count!==void 0&&typeof n.count!="string",y=f&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),v=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",S=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(E=>{this.isValidLookup(r)||(a=E,!pf[`${S[0]}-${E}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(pf[`${S[0]}-${E}`]=!0,this.logger.warn(`key "${i}" for languages "${S.join(", ")}" won't get resolved as namespace "${a}" 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!!!")),S.forEach(h=>{if(this.isValidLookup(r))return;l=h;const p=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(p,c,h,E,n);else{let x;f&&(x=this.pluralResolver.getSuffix(h,n.count,n));const P=`${this.options.pluralSeparator}zero`,m=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(p.push(c+x),n.ordinal&&x.indexOf(m)===0&&p.push(c+x.replace(m,this.options.pluralSeparator)),y&&p.push(c+P)),v){const C=`${c}${this.options.contextSeparator}${n.context}`;p.push(C),f&&(p.push(C+x),n.ordinal&&x.indexOf(m)===0&&p.push(C+x.replace(m,this.options.pluralSeparator)),y&&p.push(C+P))}}let g;for(;g=p.pop();)this.isValidLookup(r)||(o=g,r=this.getResource(h,E,g,n))}))})}),{res:r,usedKey:i,exactUsedKey:o,usedLng:l,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}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&&typeof t.replace!="string";let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const o of n)delete i[o]}return i}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}}function ma(e){return e.charAt(0).toUpperCase()+e.slice(1)}class hf{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Nt.create("languageUtils")}getScriptPartFromCode(t){if(t=ll(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=ll(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=ma(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]=ma(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=ma(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 i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(o=>{if(o===i)return o;if(!(o.indexOf("-")<0&&i.indexOf("-")<0)&&(o.indexOf("-")>0&&i.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===i||o.indexOf(i)===0&&i.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)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")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),i=[],o=l=>{l&&(this.isSupportedCode(l)?i.push(l):this.logger.warn(`rejecting language code not found in supportedLngs: ${l}`))};return typeof t=="string"&&(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))):typeof t=="string"&&o(this.formatLanguageCode(t)),r.forEach(l=>{i.indexOf(l)<0&&o(this.formatLanguageCode(l))}),i}}let R0=[{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}],T0={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const N0=["v1","v2","v3"],O0=["v4"],gf={zero:0,one:1,two:2,few:3,many:4,other:5};function _0(){const e={};return R0.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:T0[t.fc]}})}),e}class D0{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||O0.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=_0()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(ll(t==="dev"?"en":t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}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(i=>`${n}${i}`)}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((i,o)=>gf[i]-gf[o]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,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 i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const o=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.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!N0.includes(this.options.compatibilityJSON)}}function mf(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=S0(e,t,n);return!o&&i&&typeof n=="string"&&(o=gs(e,n,r),o===void 0&&(o=gs(t,n,r))),o}class j0{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 n=t.interpolation;this.escape=n.escape!==void 0?n.escape:k0,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?Yn(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Yn(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?Yn(n.nestingPrefix):n.nestingPrefixEscaped||Yn("$t("),this.nestingSuffix=n.nestingSuffix?Yn(n.nestingSuffix):n.nestingSuffixEscaped||Yn(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!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,i){let o,l,a;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(v){return v.replace(/\$/g,"$$$$")}const c=v=>{if(v.indexOf(this.formatSeparator)<0){const p=mf(n,s,v,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(p,void 0,r,{...i,...n,interpolationkey:v}):p}const S=v.split(this.formatSeparator),E=S.shift().trim(),h=S.join(this.formatSeparator).trim();return this.format(mf(n,s,E,this.options.keySeparator,this.options.ignoreJSONStructure),h,r,{...i,...n,interpolationkey:E})};this.resetRegExp();const d=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,f=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:v=>u(v)},{regex:this.regexp,safeValue:v=>this.escapeValue?u(this.escape(v)):u(v)}].forEach(v=>{for(a=0;o=v.regex.exec(t);){const S=o[1].trim();if(l=c(S),l===void 0)if(typeof d=="function"){const h=d(t,o,i);l=typeof h=="string"?h:""}else if(i&&Object.prototype.hasOwnProperty.call(i,S))l="";else if(f){l=o[0];continue}else this.logger.warn(`missed to pass in variable ${S} for interpolating ${t}`),l="";else typeof l!="string"&&!this.useRawValueToEscape&&(l=cf(l));const E=v.safeValue(l);if(t=t.replace(o[0],E),f?(v.regex.lastIndex+=l.length,v.regex.lastIndex-=o[0].length):v.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,o,l;function a(s,u){const c=this.nestingOptionsSeparator;if(s.indexOf(c)<0)return s;const d=s.split(new RegExp(`${c}[ ]*{`));let f=`{${d[1]}`;s=d[0],f=this.interpolate(f,l);const y=f.match(/'/g),v=f.match(/"/g);(y&&y.length%2===0&&!v||v.length%2!==0)&&(f=f.replace(/'/g,'"'));try{l=JSON.parse(f),u&&(l={...u,...l})}catch(S){return this.logger.warn(`failed parsing options string in nesting for key ${s}`,S),`${s}${c}${f}`}return l.defaultValue&&l.defaultValue.indexOf(this.prefix)>-1&&delete l.defaultValue,s}for(;i=this.nestingRegexp.exec(t);){let s=[];l={...r},l=l.replace&&typeof l.replace!="string"?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;let u=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const c=i[1].split(this.formatSeparator).map(d=>d.trim());i[1]=c.shift(),s=c,u=!0}if(o=n(a.call(this,i[1].trim(),l),l),o&&i[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=cf(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),o=""),u&&(o=s.reduce((c,d)=>this.format(c,d,r.lng,{...r,interpolationkey:i[1].trim()}),o.trim())),t=t.replace(i[0],o),this.regexp.lastIndex=0}return t}}function M0(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(l=>{if(!l)return;const[a,...s]=l.split(":"),u=s.join(":").trim().replace(/^'+|'+$/g,"");n[a.trim()]||(n[a.trim()]=u),u==="false"&&(n[a.trim()]=!1),u==="true"&&(n[a.trim()]=!0),isNaN(u)||(n[a.trim()]=parseInt(u,10))})}return{formatName:t,formatOptions:n}}function Jn(e){const t={};return function(r,i,o){const l=i+JSON.stringify(o);let a=t[l];return a||(a=e(ll(i),o),t[l]=a),a(r)}}class I0{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Nt.create("formatter"),this.options=t,this.formats={number:Jn((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return o=>i.format(o)}),currency:Jn((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>i.format(o)}),datetime:Jn((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return o=>i.format(o)}),relativetime:Jn((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return o=>i.format(o,r.range||"day")}),list:Jn((n,r)=>{const i=new Intl.ListFormat(n,{...r});return o=>i.format(o)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Jn(n)}format(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((a,s)=>{const{formatName:u,formatOptions:c}=M0(s);if(this.formats[u]){let d=a;try{const f=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},y=f.locale||f.lng||i.locale||i.lng||r;d=this.formats[u](a,y,{...c,...i,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${u}`);return a},t)}}function F0(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class A0 extends _l{constructor(t,n,r){let i=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=i,this.logger=Nt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(t,n,r,i){const o={},l={},a={},s={};return t.forEach(u=>{let c=!0;n.forEach(d=>{const f=`${u}|${d}`;!r.reload&&this.store.hasResourceBundle(u,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?l[f]===void 0&&(l[f]=!0):(this.state[f]=1,c=!1,l[f]===void 0&&(l[f]=!0),o[f]===void 0&&(o[f]=!0),s[d]===void 0&&(s[d]=!0)))}),c||(a[u]=!0)}),(Object.keys(o).length||Object.keys(l).length)&&this.queue.push({pending:l,pendingCount:Object.keys(l).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(l),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(t,n,r){const i=t.split("|"),o=i[0],l=i[1];n&&this.emit("failedLoading",o,l,n),r&&this.store.addResourceBundle(o,l,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2;const a={};this.queue.forEach(s=>{w0(s.loaded,[o],l),F0(s,t),n&&s.errors.push(n),s.pendingCount===0&&!s.done&&(Object.keys(s.loaded).forEach(u=>{a[u]||(a[u]={});const c=s.loaded[u];c.length&&c.forEach(d=>{a[u][d]===void 0&&(a[u][d]=!0)})}),s.done=!0,s.errors.length?s.callback(s.errors):s.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(s=>!s.done)}read(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,l=arguments.length>5?arguments[5]:void 0;if(!t.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:o,callback:l});return}this.readingCalls++;const a=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&c&&i{this.read.call(this,t,n,r,i+1,o*2,l)},o);return}l(u,c)},s=this.backend[r].bind(this.backend);if(s.length===2){try{const u=s(t,n);u&&typeof u.then=="function"?u.then(c=>a(null,c)).catch(a):a(null,u)}catch(u){a(u)}return}return s(t,n,a)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=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."),i&&i();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const o=this.queueLoad(t,n,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(l=>{this.loadOne(l)})}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("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(l,a)=>{l&&this.logger.warn(`${n}loading namespace ${o} for language ${i} failed`,l),!l&&a&&this.logger.log(`${n}loaded namespace ${o} for language ${i}`,a),this.loaded(t,l,a)})}saveMissing(t,n,r,i,o){let l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=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 s={...l,isUpdate:o},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(t,n,r,i,s):c=u(t,n,r,i),c&&typeof c.then=="function"?c.then(d=>a(null,d)).catch(a):a(null,c)}catch(c){a(c)}else u(t,n,r,i,a,s)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}function vf(){return{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:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(i=>{n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function yf(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function mo(){}function z0(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class Ii extends _l{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=yf(t),this.services={},this.logger=Nt,this.modules={external:[]},z0(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&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=vf();this.options={...i,...this.options,...yf(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function o(c){return c?typeof c=="function"?new c:c:null}if(!this.options.isClone){this.modules.logger?Nt.init(o(this.modules.logger),this.options):Nt.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=I0);const d=new hf(this.options);this.store=new df(this.options.resources,this.options);const f=this.services;f.logger=Nt,f.resourceStore=this.store,f.languageUtils=d,f.pluralResolver=new D0(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===i.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 j0(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new A0(o(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(y){for(var v=arguments.length,S=new Array(v>1?v-1:0),E=1;E1?v-1:0),E=1;E{y.init&&y.init(this)})}if(this.format=this.options.interpolation.format,r||(r=mo),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 s=Jr(),u=()=>{const c=(d,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),s.resolve(f),r(d,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?u():setTimeout(u,0),s}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mo;const i=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],l=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(u=>{u!=="cimode"&&o.indexOf(u)<0&&o.push(u)})};i?l(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(s=>l(s)),this.options.preload&&this.options.preload.forEach(a=>l(a)),this.services.backendConnector.load(o,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(a)})}else r(null)}reloadResources(t,n,r){const i=Jr();return t||(t=this.languages),n||(n=this.options.ns),r||(r=mo),this.services.backendConnector.reload(t,n,o=>{i.resolve(),r(o)}),i}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"&&gh.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-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const i=Jr();this.emit("languageChanging",t);const o=s=>{this.language=s,this.languages=this.services.languageUtils.toResolveHierarchy(s),this.resolvedLanguage=void 0,this.setResolvedLanguage(s)},l=(s,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,i.resolve(function(){return r.t(...arguments)}),n&&n(s,function(){return r.t(...arguments)})},a=s=>{!t&&!s&&this.services.languageDetector&&(s=[]);const u=typeof s=="string"?s:this.services.languageUtils.getBestMatchFromCodes(s);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,c=>{l(c,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),i}getFixedT(t,n,r){var i=this;const o=function(l,a){let s;if(typeof a!="object"){for(var u=arguments.length,c=new Array(u>2?u-2:0),d=2;d`${s.keyPrefix}${f}${v}`):y=s.keyPrefix?`${s.keyPrefix}${f}${l}`:l,i.t(y,s)};return typeof t=="string"?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],i=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const l=(a,s)=>{const u=this.services.backendConnector.state[`${a}|${s}`];return u===-1||u===2};if(n.precheck){const a=n.precheck(this,l);if(a!==void 0)return a}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||l(r,t)&&(!i||l(o,t)))}loadNamespaces(t,n){const r=Jr();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Jr();typeof t=="string"&&(t=[t]);const i=this.options.preload||[],o=t.filter(l=>i.indexOf(l)<0);return o.length?(this.options.preload=i.concat(o),this.loadResources(l=>{r.resolve(),n&&n(l)}),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 hf(vf());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 Ii(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mo;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},o=new Ii(i);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(a=>{o[a]=this[a]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new df(this.store.data,i),o.services.resourceStore=o.store),o.translator=new al(o.services,i),o.translator.on("*",function(a){for(var s=arguments.length,u=new Array(s>1?s-1:0),c=1;c()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function Sf(e,t,n){e.loadNamespaces(t,mh(e,n))}function xf(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,mh(e,r))}function U0(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],i=t.options?t.options.fallbackLng:!1,o=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const l=(a,s)=>{const u=t.services.backendConnector.state[`${a}|${s}`];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!l(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||l(r,e)&&(!i||l(o,e)))}function B0(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(ms("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(i,o)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!o(i.isLanguageChangingTo,e))return!1}}):U0(e,t,n)}const b0=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,H0={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},V0=e=>H0[e],W0=e=>e.replace(b0,V0);let vs={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:W0};function K0(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};vs={...vs,...e}}function Q0(){return vs}let vh;function G0(e){vh=e}function Y0(){return vh}const J0={type:"3rdParty",init(e){K0(e.options.react),G0(e)}},X0=R.createContext();class Z0{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const q0=(e,t)=>{const n=R.useRef();return R.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function yh(e,t,n,r){return e.getFixedT(t,n,r)}function ey(e,t,n,r){return R.useCallback(yh(e,t,n,r),[e,t,n,r])}function Dr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:i}=R.useContext(X0)||{},o=n||r||Y0();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new Z0),!o){ms("You will need to pass in an i18next instance by using initReactI18next");const x=(m,C)=>typeof C=="string"?C:C&&typeof C=="object"&&typeof C.defaultValue=="string"?C.defaultValue:Array.isArray(m)?m[m.length-1]:m,P=[x,{},!1];return P.t=x,P.i18n={},P.ready=!1,P}o.options.react&&o.options.react.wait!==void 0&&ms("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const l={...Q0(),...o.options.react,...t},{useSuspense:a,keyPrefix:s}=l;let u=e||i||o.options&&o.options.defaultNS;u=typeof u=="string"?[u]:u||["translation"],o.reportNamespaces.addUsedNamespaces&&o.reportNamespaces.addUsedNamespaces(u);const c=(o.isInitialized||o.initializedStoreOnce)&&u.every(x=>B0(x,o,l)),d=ey(o,t.lng||null,l.nsMode==="fallback"?u:u[0],s),f=()=>d,y=()=>yh(o,t.lng||null,l.nsMode==="fallback"?u:u[0],s),[v,S]=R.useState(f);let E=u.join();t.lng&&(E=`${t.lng}${E}`);const h=q0(E),p=R.useRef(!0);R.useEffect(()=>{const{bindI18n:x,bindI18nStore:P}=l;p.current=!0,!c&&!a&&(t.lng?xf(o,t.lng,u,()=>{p.current&&S(y)}):Sf(o,u,()=>{p.current&&S(y)})),c&&h&&h!==E&&p.current&&S(y);function m(){p.current&&S(y)}return x&&o&&o.on(x,m),P&&o&&o.store.on(P,m),()=>{p.current=!1,x&&o&&x.split(" ").forEach(C=>o.off(C,m)),P&&o&&P.split(" ").forEach(C=>o.store.off(C,m))}},[o,E]),R.useEffect(()=>{p.current&&c&&S(f)},[o,s,c]);const g=[v,o,c];if(g.t=v,g.i18n=o,g.ready=c,c||!c&&!a)return g;throw new Promise(x=>{t.lng?xf(o,t.lng,u,()=>x()):Sf(o,u,()=>x())})}function ty(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fi(e){"@babel/helpers - typeof";return Fi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fi(e)}function ny(e,t){if(Fi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Fi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ry(e){var t=ny(e,"string");return Fi(t)=="symbol"?t:t+""}function kf(e,t){for(var n=0;n0){var a=i.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");l+="; Max-Age=".concat(Math.floor(a))}if(i.domain){if(!Ef.test(i.domain))throw new TypeError("option domain is invalid");l+="; Domain=".concat(i.domain)}if(i.path){if(!Ef.test(i.path))throw new TypeError("option path is invalid");l+="; Path=".concat(i.path)}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");l+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(l+="; HttpOnly"),i.secure&&(l+="; Secure"),i.sameSite){var s=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(s){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;case"none":l+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return l},Cf={create:function(t,n,r,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+r*60*1e3)),i&&(o.domain=i),document.cookie=sy(t,encodeURIComponent(n),o)},read:function(t){for(var n="".concat(t,"="),r=document.cookie.split(";"),i=0;i-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=r.substring(1),o=i.split("&"),l=0;l0){var s=o[l].substring(0,a);s===t.lookupQuerystring&&(n=o[l].substring(a+1))}}}return n}},Xr=null,Lf=function(){if(Xr!==null)return Xr;try{Xr=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Xr=!1}return Xr},fy={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&Lf()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&Lf()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},Zr=null,Pf=function(){if(Zr!==null)return Zr;try{Zr=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Zr=!1}return Zr},dy={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&Pf()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&Pf()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},py={name:"navigator",lookup:function(t){var n=[];if(typeof navigator<"u"){if(navigator.languages)for(var r=0;r0?n:void 0}},hy={name:"htmlTag",lookup:function(t){var n,r=t.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},gy={name:"path",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof r[t.lookupFromPathIndex]!="string")return;n=r[t.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},my={name:"subdomain",lookup:function(t){var n=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,r=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};function vy(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(t){return t}}}var Sh=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ty(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return iy(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n||{languageUtils:{}},this.options=ay(r,this.options||{},vy()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(o){return o.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(uy),this.addDetector(cy),this.addDetector(fy),this.addDetector(dy),this.addDetector(py),this.addDetector(hy),this.addDetector(gy),this.addDetector(my)}},{key:"addDetector",value:function(n){return this.detectors[n.name]=n,this}},{key:"detect",value:function(n){var r=this;n||(n=this.options.order);var i=[];return n.forEach(function(o){if(r.detectors[o]){var l=r.detectors[o].lookup(r.options);l&&typeof l=="string"&&(l=[l]),l&&(i=i.concat(l))}}),i=i.map(function(o){return r.options.convertDetectedLanguage(o)}),this.services.languageUtils.getBestMatchFromCodes?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(n,r){var i=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||r.forEach(function(o){i.detectors[o]&&i.detectors[o].cacheUserLanguage(n,i.options)}))}}]),e}();Sh.type="languageDetector";const yy={back:"Back",cardActions:{new:"New card",clear:"Clear",share:"Share",copied:"Copied"},wordList:{title:"Full word list"},footer:{wordList:"Full word list",videoList:"Full video list",about:"About"}},wy={translation:yy},Sy={back:"Retour",cardActions:{new:"Carte neuve",clear:"Effacer",share:"Partager",copied:"CopiĂ©"},wordList:{title:"Liste de mots"},footer:{wordList:"Liste de mots",videoList:"Liste de vidĂ©os",about:"Ă€ propos"}},xy={translation:Sy},ky={back:"Tillbaka",cardActions:{new:"Nytt kort",clear:"Rensa",share:"Dela",copied:"Kopierad"},wordList:{title:"Fullständig ordlista"},footer:{wordList:"Fullständig ordlista",videoList:"Fullständig videolista",about:"Om"}},Ey={translation:ky},Cy=["en","fr","sv"],xh="en";Ie.use(Sh).use(J0).init({resources:{en:wy,fr:xy,sv:Ey},fallbackLng:xh,supportedLngs:Cy,nonExplicitSupportedLngs:!0});var kh={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",l=0;l{const{t:n}=_r();return N.jsx("footer",{className:Dl("Footer",e),children:N.jsxs("ul",{children:[N.jsx("li",{children:N.jsx(wu,{to:"word_list",children:n("footer.wordList")})}),t&&N.jsx("li",{children:N.jsx("a",{href:t,className:"external",children:n("footer.videoList")})}),N.jsx("li",{children:N.jsx("a",{href:"https://dgmstuart.github.io/blog/2022/02/18/building-a-bingo-app-in-react/",className:"external",children:n("footer.about")})})]})})},Ry=()=>{const{i18n:e}=_r();return e.resolvedLanguage??xh},Ty=e=>{const[t,n]=R.useState(e);return{isOpen:t,open:()=>n(!0),close:()=>n(!1),toggle:()=>n(!t)}},ys={en:{text:"English",flagCode:"GB"},fr:{text:"Francais",flagCode:"FR"},sv:{text:"Svenska",flagCode:"SE"}},Ny=()=>{const e=Ry(),t=ys[e],n=Object.keys(ys),{isOpen:r,toggle:i,close:o}=Ty(!1),l=i;return N.jsxs("div",{className:"LanguagePicker",children:[N.jsx("ul",{className:Dl("menu",{open:r}),children:n.map(a=>N.jsx(Oy,{languageCode:a,isCurrent:a===e,closeMenu:o},a))}),N.jsx("div",{className:"current",onClick:l,children:N.jsx(Eh,{language:t,aspectRatio:"1x1"})})]})},Oy=({languageCode:e,isCurrent:t,closeMenu:n})=>{const r=ys[e],{text:i}=r,{i18n:o}=_r(),l=async s=>{o.language!=s&&await o.changeLanguage(s)},a=()=>{l(e),n()};return N.jsxs("li",{className:Dl("menuItem",{currentMenuItem:t}),onClick:a,children:[N.jsx("span",{className:"text",children:i})," ",N.jsx(Eh,{language:r,aspectRatio:"3x2"})]})},Eh=({language:e,aspectRatio:t})=>{const{flagCode:n,text:r}=e,i=`https://purecatamphetamine.github.io/country-flag-icons/${t}/${n}.svg`;return N.jsx("img",{className:"Flag",alt:r,src:i})},Ch=({name:e,headerContent:t,body:n,footerClass:r,videoListUrl:i})=>N.jsxs("div",{children:[N.jsxs("section",{className:"Card",children:[N.jsx("div",{className:"noise-overlay"}),N.jsxs("header",{className:"Main-header",children:[N.jsxs("h1",{children:[e,N.jsxs("em",{className:"bingo",children:[N.jsx("span",{children:"B"}),N.jsx("span",{children:"I"}),N.jsx("span",{children:"N"}),N.jsx("span",{children:"G"}),N.jsx("span",{children:"O"})]})]}),t]}),n]}),N.jsx(Py,{className:r,videoListUrl:i}),N.jsx(Ny,{})]}),Rf=()=>{const{t:e}=_r(),{name:t,videoListUrl:n}=Ol(),r=N.jsx(N.Fragment,{children:N.jsx("div",{className:"Content-actions",children:N.jsx(wu,{to:".",children:e("back")})})}),i=N.jsx(G1,{});return N.jsx(Ch,{name:t,headerContent:r,body:i,footerClass:"Content-footer",videoListUrl:n})};var vr,_n;class _y{constructor(t){Qn(this,vr,window.localStorage);Qn(this,_n,void 0);Ji(this,_n,t)}get sessionData(){const t=ht(this,vr).getItem(ht(this,_n));return t?JSON.parse(t):null}set sessionData(t){t?ht(this,vr).setItem(ht(this,_n),JSON.stringify(t)):ht(this,vr).removeItem(ht(this,_n))}}vr=new WeakMap,_n=new WeakMap;var Dn,Ai,sl,Lh;class Dy{constructor({keyName:t,initFunction:n}){Qn(this,sl);Qn(this,Dn,void 0);Qn(this,Ai,void 0);Ji(this,Dn,new _y(t)),Ji(this,Ai,n)}get sessionData(){return ht(this,Dn).sessionData||ju(this,sl,Lh).call(this)}set sessionData(t){ht(this,Dn).sessionData=t}}Dn=new WeakMap,Ai=new WeakMap,sl=new WeakSet,Lh=function(){const t=ht(this,Ai).call(this);return ht(this,Dn).sessionData=t,t};const jy=function({keyName:e,initFunction:t}){const n=R.useMemo(()=>new Dy({keyName:e,initFunction:t}),[t]),[r,i]=R.useState(n.sessionData);return R.useEffect(()=>{n.sessionData=r},[n,r]),[r,i]},My=e=>{let t=e.length,n;for(;t!==0;)n=Math.floor(Math.random()*t),t--,[e[t],e[n]]=[e[n],e[t]];return e},Iy=(e,t)=>{const n=()=>My(t).slice(0,25),r=function(){return n().map(c=>({word:c,stamped:!1}))},[i,o]=jy({keyName:`bingoSession-${e}`,initFunction:r}),l=(c,d)=>{o(i.map((f,y)=>c===y?{...f,stamped:d}:f))};return[i,function(c,d){return()=>{l(c,!d)}},()=>{o(r())},()=>{o(i.map(c=>({...c,stamped:!1})))}]},va=({text:e,changeText:t,onClick:n,activeDuration:r})=>{const i=l=>{const a=l.target;a.disabled=!0,n(l),o(a),a.disabled=!1},o=function(l){const{innerText:a}=l;setTimeout(()=>{l.classList.remove("active"),l.innerText=a},r),l.classList.add("active"),t&&(l.innerText=t)};return N.jsx("button",{onClick:i,children:e})},Fy=({newClick:e,clearClick:t,shareClick:n})=>{const{t:r}=_r();return N.jsxs("div",{className:"CardActions",children:[N.jsx(va,{text:r("cardActions.new"),onClick:e,activeDuration:100}),N.jsx(va,{text:r("cardActions.clear"),onClick:t,activeDuration:100}),N.jsx(va,{text:r("cardActions.share"),changeText:r("cardActions.copied"),onClick:n,activeDuration:1500}),N.jsx(wu,{className:"QRCodeButton",to:"qr_code",children:N.jsx("div",{className:"QRCodeIcon"})})]})},Ay="­",zy="­",$y=" ",Uy=" ",Ph=e=>e.replace(new RegExp(Ay,"g"),zy).replace(new RegExp($y,"g"),Uy),By=({word:e,stamped:t,toggleStamped:n})=>{const r=Dl("Cell",{stamped:t});return N.jsx("td",{role:"gridcell",className:r,onClick:n,children:Ph(e)})};function by(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r-1&&e%1==0&&e<=kw}var Cw=Ew,Lw=xw,Pw=Cw;function Rw(e){return e!=null&&Pw(e.length)&&!Lw(e)}var Tw=Rw,Nw=9007199254740991,Ow=/^(?:0|[1-9]\d*)$/;function _w(e,t){var n=typeof e;return t=t??Nw,!!t&&(n=="number"||n!="symbol"&&Ow.test(e))&&e>-1&&e%1==0&&e{const t=Oh(e,5);return N.jsx("table",{className:"Grid",role:"grid",children:N.jsx("tbody",{children:t.map((n,r)=>N.jsx(kS,{cellPropsList:n},r))})})},kS=({cellPropsList:e})=>N.jsx("tr",{className:"Row",children:e.map(({word:t,stamped:n,toggleStamped:r})=>N.jsx(By,{word:t,stamped:n,toggleStamped:r},t))}),ES=function(e){const t=e.map(({stamped:r})=>r?"🟦":"⬜");return Oh(t,5).map(r=>r.join("")).join(` -`)},CS=({title:e,text:t,url:n})=>{window.navigator.clipboard.writeText(t),window.navigator.share&&window.navigator.share({title:e,text:t,url:n})},LS=({id:e,name:t,url:n,wordList:r,videoListUrl:i})=>{const[o,l,a,s]=Iy(e,r),u=o.map((y,v)=>({...y,toggleStamped:l(v,y.stamped)})),c=()=>{const y=ES(o);CS({title:`${t} Bingo`,text:y,url:n})},d=N.jsx(Fy,{newClick:a,clearClick:s,shareClick:c}),f=N.jsx(xS,{cellPropsList:u});return N.jsx(Ch,{name:t,headerContent:d,body:f,videoListUrl:i})},PS=e=>e.reduce((t,n)=>{const r=n.words.map(({word:i})=>i);return t.concat(r)},[]),Mf=()=>{const{id:e,name:t,url:n,wordList:r,videoListUrl:i}=Ol();if(r.length>0){const o=PS(r);return N.jsx(LS,{wordList:o,name:t,url:n,id:e,videoListUrl:i})}},RS=({wordList:e})=>{const{t}=_r();return N.jsxs("article",{className:"WordList",children:[N.jsx("h2",{className:"Content-header",children:t("wordList.title")}),e.map(n=>TS(n))]})},TS=({title:e,description:t,words:n})=>N.jsxs("section",{className:"WordListGroup",children:[N.jsx("h3",{children:e}),t&&N.jsx("p",{className:"WordListGroup-description",children:t}),N.jsx("ul",{children:n.map(({word:r,url:i,emoji:o,description:l})=>{const a=Ph(r);return N.jsx("li",{children:N.jsx(NS,{Word:OS({word:a,url:i}),emoji:o,description:l})},a)})})]},e),NS=({Word:e,emoji:t,description:n})=>N.jsxs(fl.Fragment,{children:[e,t&&N.jsxs(N.Fragment,{children:[" ",t," "]}),n&&N.jsxs(N.Fragment,{children:[N.jsx(N.Fragment,{children:" - "}),N.jsx("span",{className:"WordList-description",children:n})]})]}),OS=({word:e,url:t})=>t?N.jsx("a",{href:t,className:"external",children:e}):N.jsx(fl.Fragment,{children:e}),If=()=>{const{wordList:e}=Ol();if(e.length>0)return N.jsx(RS,{wordList:e})};var jl={},_h={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},_S=_h;function Dh(e){this.mode=_S.MODE_8BIT_BYTE,this.data=e}Dh.prototype={getLength:function(e){return this.data.length},write:function(e){for(var t=0;t>>7-e%8&1)==1},put:function(e,t){for(var n=0;n>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var MS=Mh,St={glog:function(e){if(e<1)throw new Error("glog("+e+")");return St.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return St.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(var Te=0;Te<8;Te++)St.EXP_TABLE[Te]=1<=0;)t^=Pe.G15<=0;)t^=Pe.G18<>>=1;return t},getPatternPosition:function(e){return Pe.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case Xt.PATTERN000:return(t+n)%2==0;case Xt.PATTERN001:return t%2==0;case Xt.PATTERN010:return n%3==0;case Xt.PATTERN011:return(t+n)%3==0;case Xt.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case Xt.PATTERN101:return t*n%2+t*n%3==0;case Xt.PATTERN110:return(t*n%2+t*n%3)%2==0;case Xt.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new Ff([1],0),n=0;n5&&(n+=3+o-5)}for(var r=0;r=7&&this.setupTypeNumber(e),this.dataCache==null&&(this.dataCache=Ot.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)};nt.setupPositionProbePattern=function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(0<=n&&n<=6&&(r==0||r==6)||0<=r&&r<=6&&(n==0||n==6)||2<=n&&n<=4&&2<=r&&r<=4?this.modules[e+n][t+r]=!0:this.modules[e+n][t+r]=!1)};nt.getBestMaskPattern=function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=Sn.getLostPoint(this);(n==0||e>r)&&(e=r,t=n)}return t};nt.createMovieClip=function(e,t,n){var r=e.createEmptyMovieClip(t,n),i=1;this.make();for(var o=0;o>n&1)==1;this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(var n=0;n<18;n++){var r=!e&&(t>>n&1)==1;this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}};nt.setupTypeInfo=function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=Sn.getBCHTypeInfo(n),i=0;i<15;i++){var o=!e&&(r>>i&1)==1;i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(var i=0;i<15;i++){var o=!e&&(r>>i&1)==1;i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o}this.modules[this.moduleCount-8][8]=!e};nt.mapData=function(e,t){for(var n=-1,r=this.moduleCount-1,i=7,o=0,l=this.moduleCount-1;l>0;l-=2)for(l==6&&l--;;){for(var a=0;a<2;a++)if(this.modules[r][l-a]==null){var s=!1;o>>i&1)==1);var u=Sn.getMask(t,r,l-a);u&&(s=!s),this.modules[r][l-a]=s,i--,i==-1&&(o++,i=7)}if(r+=n,r<0||this.moduleCount<=r){r-=n,n=-n;break}}};Ot.PAD0=236;Ot.PAD1=17;Ot.createData=function(e,t,n){for(var r=Ah.getRSBlocks(e,t),i=new zh,o=0;oa*8)throw new Error("code length overflow. ("+i.getLengthInBits()+">"+a*8+")");for(i.getLengthInBits()+4<=a*8&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=a*8||(i.put(Ot.PAD0,8),i.getLengthInBits()>=a*8));)i.put(Ot.PAD1,8);return Ot.createBytes(i,r)};Ot.createBytes=function(e,t){for(var n=0,r=0,i=0,o=new Array(t.length),l=new Array(t.length),a=0;a=0?y.get(v):0}}for(var S=0,c=0;c=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var QS={bgColor:ot.default.oneOfType([ot.default.object,ot.default.string]).isRequired,bgD:ot.default.string.isRequired,fgColor:ot.default.oneOfType([ot.default.object,ot.default.string]).isRequired,fgD:ot.default.string.isRequired,size:ot.default.number.isRequired,title:ot.default.string,viewBoxSize:ot.default.number.isRequired,xmlns:ot.default.string},GS={title:void 0,xmlns:"http://www.w3.org/2000/svg"},Ml=(0,Hh.forwardRef)(function(e,t){var n=e.bgColor,r=e.bgD,i=e.fgD,o=e.fgColor,l=e.size,a=e.title,s=e.viewBoxSize,u=KS(e,["bgColor","bgD","fgD","fgColor","size","title","viewBoxSize"]);return yo.default.createElement("svg",VS({},u,{height:l,ref:t,viewBox:"0 0 "+s+" "+s,width:l}),a?yo.default.createElement("title",null,a):null,yo.default.createElement("path",{d:r,fill:n}),yo.default.createElement("path",{d:i,fill:o}))});Ml.displayName="QRCodeSvg";Ml.propTypes=QS;Ml.defaultProps=GS;xu.default=Ml;Object.defineProperty(jl,"__esModule",{value:!0});jl.QRCode=void 0;var YS=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var ox={bgColor:jt.default.oneOfType([jt.default.object,jt.default.string]),fgColor:jt.default.oneOfType([jt.default.object,jt.default.string]),level:jt.default.string,size:jt.default.number,value:jt.default.string.isRequired},lx={bgColor:"#FFFFFF",fgColor:"#000000",level:"L",size:256},Wi=(0,Wh.forwardRef)(function(e,t){var n=e.bgColor,r=e.fgColor,i=e.level,o=e.size,l=e.value,a=ix(e,["bgColor","fgColor","level","size","value"]),s=new XS.default(-1,qS.default[i]);s.addData(l),s.make();var u=s.modules;return tx.default.createElement(rx.default,YS({},a,{bgColor:n,bgD:u.map(function(c,d){return c.map(function(f,y){return f?"":"M "+y+" "+d+" l 1 0 0 1 -1 0 Z"}).join(" ")}).join(" "),fgColor:r,fgD:u.map(function(c,d){return c.map(function(f,y){return f?"M "+y+" "+d+" l 1 0 0 1 -1 0 Z":""}).join(" ")}).join(" "),ref:t,size:o,viewBoxSize:u.length}))});jl.QRCode=Wi;Wi.displayName="QRCode";Wi.propTypes=ox;Wi.defaultProps=lx;var ax=jl.default=Wi;const Af=()=>{const{url:e}=Ol();return N.jsx("div",{className:"QRCode",children:N.jsx(ax,{value:e,size:500,className:"QRCodeImage",bgColor:"hsla(28, 41%, 95%, 0.7)",fgColor:"hsla(232, 20%, 1%, 0.8)"})})},Kh="Team Lindy",Qh="https://bit.ly/lindybingocard",Gh="https://www.youtube.com/playlist?list=PLgsIo5h4KQoYzMCvcuBFTy7-qW8VgsFpT",Yh=[{title:"Formations",words:[{word:"Circle formation"},{word:"Wedge formation",description:"a tight triangle pointed at the audience"},{word:"Square formation or Diamond formation"},{word:"A single line facing the audience",description:"where the person at the front is hiding all the other dancers behind them"},{word:"A jam circle",description:"one or more dancers do their thing in the middle, while the rest of the group stands around them and claps"}]},{title:'Air steps ("Aerials", "Akro")',description:'Terminology: "Flyer": the person flying through the air (often the follower), "Thrower": the person staying on the ground (often the leader)',words:[{word:"A-frame/ Kick through (air step)",url:"https://www.facebook.com/robertwhiteiii/posts/pfbid02YC4vJ8dk6hFhzCZ7DpUZDizk4u5RD87GucoGuV5gnhC1SPib98kWEJC1YXtWGvkjl"},{word:"The Pancake (air step)",url:"https://www.facebook.com/robertwhiteiii/posts/pfbid02GhobQkT4E6aFuzcSA65Xh7vuhFNFKke4QfoxtND6M5W4Ph9d6Cxnb2twELp4oWmKl"},{word:"The Snatch (air step)",url:"https://www.facebook.com/robertwhiteiii/posts/pfbid02WrC2URf9ymSaz5HeFf2sHFn1DEU7kKvFEePa5tZhScJECTGeWkYPjcCkM2KNvjGyl"},{word:"Lindy flip/ Lamppost/ Around the back (air step)",url:"https://www.facebook.com/robertwhiteiii/posts/pfbid02aPcc6Qg8QG1Qn7tT9x57rqn3naQrD6bTmmStRDYXPfChAjtpmoYCj7GuDVUK8q1Rl"},{word:"Fly toss/ Popover/ Coochie toss (air step)",url:"https://www.facebook.com/robertwhiteiii/posts/pfbid0fyeCLwscJhJNztmUssHMM7UGSH5xsgcJ8p5SV3jh6EAGHqz88QfHDHorEWGB4e4Al"},{word:"Waterfall (air step)",description:"any air step where the flyer dives down the thrower's back and ends up between their legs",url:"https://www.facebook.com/robertwhiteiii/posts/pfbid0szHyFmKxNim2YkyytE23gMZzoxmJfNH5ZzdLbTgEFEjeyNKypfRfJrH9ie71gzGkl"},{word:"Knicker­bocker or Baby flip (air step)",description:"we'll count any flip where the flyer goes backwards over the thrower's arm. Names include: Hourglass, Side-flip",url:"https://www.facebook.com/robertwhiteiii/posts/pfbid02DfYEzswugCzMMs3W1KAh9U4ez5N8GinH7hYYgZLMPAeCGuTt7c5VdXaCioGyKsXBl"},{word:"Kay flip (air step)",url:"https://www.facebook.com/robertwhiteiii/posts/pfbid017Db7GsyyXKECRubM93hivcwRKUx1HQ64pBa9cedLgnJwGa7j6wX9bk2S9AdcBKpl"},{word:"Leapfrog (Hoppa bock)"},{word:"An air step involving more than two people"}]},{title:"Partnered dance steps",words:[{word:"The Chase",url:"https://youtu.be/2KhCrKrKT7I?t=174"},{word:"A Minne Dip",url:"https://www.youtube.com/watch?v=XgDJAuZwiXw"},{word:"Hacksaws",url:"https://www.youtube.com/watch?v=2KhCrKrKT7I&t=218s"},{word:"Tandem Charleston/ Back Charleston"},{word:"Sailor Kicks"},{word:"Drags",description:"follower lunges towards leader, who moves backwards dragging the follower with them"}]},{title:"Solo dance steps",description:"If these are done with a partner, that of course counts as well!",words:[{word:"Itches"},{word:"Pecking"},{word:"Shorty George",url:"https://www.youtube.com/watch?v=3RZK-LyksG4&t=84s"},{word:"Shimmy"},{word:"Spank the baby"},{word:"A really big kick",description:"we're talking REALLY big"}]},{title:"Swingouts",words:[{word:"3 swingouts and a circle"},{word:"4 or more swingouts in a row"},{word:"Swingouts in opposite directions"}]},{title:"Group work",words:[{word:"Changing partners"},{word:"A canon (kanon)",description:"dancers take it in turns to perform the same or similar movements"},{word:"Slow motion",description:"doing some kind of specific movement but much slower than normal. You'll know it when you see it! Dancing half-time doesn't count."},{word:"Mime or ”Acting”"},{word:"Syncopated clapping"},{word:"Everyone jumps at the same time"},{word:"Everyone shouts at the same time"},{word:"Everyone freezes in a pose (mid-routine)"},{word:"16 or more people on stage"},{word:"An odd number of people on stage"}]},{title:"Positions",words:[{word:"Somebody is upside-down"},{word:"Somebody’s hand touches the ground"},{word:"Sitting or lying on the floor"},{word:"Sitting or standing on shoulders"}]},{title:"Who is that?",words:[{word:"Mixed-nationality team"},{word:"All-Swedish Team"},{word:"A Swede not in Sweden"},{word:"A Lithuanian not in Lithuania"},{word:"Somebody you have personally taken class from",description:"or that you will take class from at this event!"}]},{title:"Fashion Police",words:[{word:"A leader in white sneakers"},{word:"Braces (susp­enders)",description:"straps which go over the shoulders and hold trousers up"},{word:"A hat"},{word:"Brightly coloured trousers"},{word:"Brightly coloured safety shorts"},{word:"A metallic item of clothing"},{word:"Everyone is wearing the same colour (not black or white)"}]},{title:"Other",words:[{word:"Mid-routine song change"}]}],ku={name:Kh,url:Qh,videoListUrl:Gh,wordList:Yh},sx=Object.freeze(Object.defineProperty({__proto__:null,default:ku,name:Kh,url:Qh,videoListUrl:Gh,wordList:Yh},Symbol.toStringTag,{value:"Module"})),ux=(e,t)=>{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((r,i)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(i.bind(null,new Error("Unknown variable dynamic import: "+t)))})},cx=async e=>{try{return{success:!0,data:(await ux(Object.assign({"../data/balboa.json":()=>ri(()=>import("./balboa-Dois80iG.js"),[]),"../data/null.json":()=>ri(()=>import("./null-BAajAwbc.js"),[]),"../data/numbers.json":()=>ri(()=>import("./numbers-D1u5R9Gp.js"),[]),"../data/teamLindy.json":()=>ri(()=>Promise.resolve().then(()=>sx),void 0)}),`../data/${e}.json`)).default}}catch{return{success:!1,data:{}}}},Jh={id:"teamLindy",...ku},wo=()=>Jh,So=async({params:e})=>{const t=e.gameName;if(t){const{success:n,data:r}=await cx(t);return n?{id:t,...r}:Jh}else return console.error("expected a param of 'gameName' but didn't find one or it had a falsey value"),{id:"null",...ku}},fx=()=>{const e="/bingo-frontend",t=n0([{path:e,loader:wo,element:N.jsx(Mf,{})},{path:e,element:N.jsx(Rf,{}),loader:wo,children:[{path:"word_list",element:N.jsx(If,{}),loader:wo},{path:"qr_code",element:N.jsx(Af,{}),loader:wo}]},{path:`${e}/:gameName`,loader:So,element:N.jsx(Mf,{})},{path:`${e}/:gameName`,loader:So,element:N.jsx(Rf,{}),children:[{path:"word_list",element:N.jsx(If,{}),loader:So},{path:"qr_code",element:N.jsx(Af,{}),loader:So}]}]);return N.jsx(f0,{router:t})};ya.createRoot(document.getElementById("root")).render(N.jsx(fl.StrictMode,{children:N.jsx(fx,{})}));Bv(); +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",l=0;l{const{t:n}=Dr();return N.jsx("footer",{className:Dl("Footer",e),children:N.jsxs("ul",{children:[N.jsx("li",{children:N.jsx(wu,{to:"word_list",children:n("footer.wordList")})}),t&&N.jsx("li",{children:N.jsx("a",{href:t,className:"external",children:n("footer.videoList")})}),N.jsx("li",{children:N.jsx("a",{href:"https://dgmstuart.github.io/blog/2022/02/18/building-a-bingo-app-in-react/",className:"external",children:n("footer.about")})})]})})},Ry=()=>{const{i18n:e}=Dr();return e.resolvedLanguage??xh},Ty=e=>{const[t,n]=R.useState(e);return{isOpen:t,open:()=>n(!0),close:()=>n(!1),toggle:()=>n(!t)}},ys={en:{text:"English",flagCode:"GB"},fr:{text:"Francais",flagCode:"FR"},sv:{text:"Svenska",flagCode:"SE"}},Ny=()=>{const e=Ry(),t=ys[e],n=Object.keys(ys),{isOpen:r,toggle:i,close:o}=Ty(!1),l=i;return N.jsxs("div",{className:"LanguagePicker",children:[N.jsx("ul",{className:Dl("menu",{open:r}),children:n.map(a=>N.jsx(Oy,{languageCode:a,isCurrent:a===e,closeMenu:o},a))}),N.jsx("div",{className:"current",onClick:l,children:N.jsx(Eh,{language:t,aspectRatio:"1x1"})})]})},Oy=({languageCode:e,isCurrent:t,closeMenu:n})=>{const r=ys[e],{text:i}=r,{i18n:o}=Dr(),l=async s=>{o.language!=s&&await o.changeLanguage(s)},a=()=>{l(e),n()};return N.jsxs("li",{className:Dl("menuItem",{currentMenuItem:t}),onClick:a,children:[N.jsx("span",{className:"text",children:i})," ",N.jsx(Eh,{language:r,aspectRatio:"3x2"})]})},Eh=({language:e,aspectRatio:t})=>{const{flagCode:n,text:r}=e,i=`https://purecatamphetamine.github.io/country-flag-icons/${t}/${n}.svg`;return N.jsx("img",{className:"Flag",alt:r,src:i})},Ch=({name:e,headerContent:t,body:n,footerClass:r,videoListUrl:i})=>N.jsxs("div",{children:[N.jsxs("section",{className:"Card",children:[N.jsx("div",{className:"noise-overlay"}),N.jsxs("header",{className:"Main-header",children:[N.jsxs("h1",{children:[e,N.jsxs("em",{className:"bingo",children:[N.jsx("span",{children:"B"}),N.jsx("span",{children:"I"}),N.jsx("span",{children:"N"}),N.jsx("span",{children:"G"}),N.jsx("span",{children:"O"})]})]}),t]}),n]}),N.jsx(Py,{className:r,videoListUrl:i}),N.jsx(Ny,{})]}),Rf=()=>{const{t:e}=Dr(),{name:t,videoListUrl:n}=Ol(),r=N.jsx(N.Fragment,{children:N.jsx("div",{className:"Content-actions",children:N.jsx(wu,{to:".",children:e("back")})})}),i=N.jsx(G1,{});return N.jsx(Ch,{name:t,headerContent:r,body:i,footerClass:"Content-footer",videoListUrl:n})};var yr,_n;class _y{constructor(t){Qn(this,yr,window.localStorage);Qn(this,_n,void 0);Ji(this,_n,t)}get sessionData(){const t=ht(this,yr).getItem(ht(this,_n));return t?JSON.parse(t):null}set sessionData(t){t?ht(this,yr).setItem(ht(this,_n),JSON.stringify(t)):ht(this,yr).removeItem(ht(this,_n))}}yr=new WeakMap,_n=new WeakMap;var Dn,Ai,sl,Lh;class Dy{constructor({keyName:t,initFunction:n}){Qn(this,sl);Qn(this,Dn,void 0);Qn(this,Ai,void 0);Ji(this,Dn,new _y(t)),Ji(this,Ai,n)}get sessionData(){return ht(this,Dn).sessionData||ju(this,sl,Lh).call(this)}set sessionData(t){ht(this,Dn).sessionData=t}}Dn=new WeakMap,Ai=new WeakMap,sl=new WeakSet,Lh=function(){const t=ht(this,Ai).call(this);return ht(this,Dn).sessionData=t,t};const jy=function({keyName:e,initFunction:t}){const n=R.useMemo(()=>new Dy({keyName:e,initFunction:t}),[t]),[r,i]=R.useState(n.sessionData);return R.useEffect(()=>{n.sessionData=r},[n,r]),[r,i]},My=e=>{let t=e.length,n;for(;t!==0;)n=Math.floor(Math.random()*t),t--,[e[t],e[n]]=[e[n],e[t]];return e},Iy=(e,t)=>{const n=()=>My(t).slice(0,25),r=function(){return n().map(c=>({word:c,stamped:!1}))},[i,o]=jy({keyName:`bingoSession-${e}`,initFunction:r}),l=(c,d)=>{o(i.map((f,y)=>c===y?{...f,stamped:d}:f))};return[i,function(c,d){return()=>{l(c,!d)}},()=>{o(r())},()=>{o(i.map(c=>({...c,stamped:!1})))}]},va=({text:e,changeText:t,onClick:n,activeDuration:r})=>{const i=l=>{const a=l.target;a.disabled=!0,n(l),o(a),a.disabled=!1},o=function(l){const{innerText:a}=l;setTimeout(()=>{l.classList.remove("active"),l.innerText=a},r),l.classList.add("active"),t&&(l.innerText=t)};return N.jsx("button",{onClick:i,children:e})},Fy=({newClick:e,clearClick:t,shareClick:n})=>{const{t:r}=Dr();return N.jsxs("div",{className:"CardActions",children:[N.jsx(va,{text:r("cardActions.new"),onClick:e,activeDuration:100}),N.jsx(va,{text:r("cardActions.clear"),onClick:t,activeDuration:100}),N.jsx(va,{text:r("cardActions.share"),changeText:r("cardActions.copied"),onClick:n,activeDuration:1500}),N.jsx(wu,{className:"QRCodeButton",to:"qr_code",children:N.jsx("div",{className:"QRCodeIcon"})})]})},Ay="­",zy="­",$y=" ",Uy=" ",Ph=e=>e.replace(new RegExp(Ay,"g"),zy).replace(new RegExp($y,"g"),Uy),By=({word:e,stamped:t,toggleStamped:n})=>{const r=Dl("Cell",{stamped:t});return N.jsx("td",{role:"gridcell",className:r,onClick:n,children:Ph(e)})};function by(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r-1&&e%1==0&&e<=kw}var Cw=Ew,Lw=xw,Pw=Cw;function Rw(e){return e!=null&&Pw(e.length)&&!Lw(e)}var Tw=Rw,Nw=9007199254740991,Ow=/^(?:0|[1-9]\d*)$/;function _w(e,t){var n=typeof e;return t=t??Nw,!!t&&(n=="number"||n!="symbol"&&Ow.test(e))&&e>-1&&e%1==0&&e{const t=Oh(e,5);return N.jsx("table",{className:"Grid",role:"grid",children:N.jsx("tbody",{children:t.map((n,r)=>N.jsx(kS,{cellPropsList:n},r))})})},kS=({cellPropsList:e})=>N.jsx("tr",{className:"Row",children:e.map(({word:t,stamped:n,toggleStamped:r})=>N.jsx(By,{word:t,stamped:n,toggleStamped:r},t))}),ES=function(e){const t=e.map(({stamped:r})=>r?"🟦":"⬜");return Oh(t,5).map(r=>r.join("")).join(` +`)},CS=({title:e,text:t,url:n})=>{window.navigator.clipboard.writeText(t),window.navigator.share&&window.navigator.share({title:e,text:t,url:n})},LS=({id:e,name:t,url:n,wordList:r,videoListUrl:i})=>{const[o,l,a,s]=Iy(e,r),u=o.map((y,v)=>({...y,toggleStamped:l(v,y.stamped)})),c=()=>{const y=ES(o);CS({title:`${t} Bingo`,text:y,url:n})},d=N.jsx(Fy,{newClick:a,clearClick:s,shareClick:c}),f=N.jsx(xS,{cellPropsList:u});return N.jsx(Ch,{name:t,headerContent:d,body:f,videoListUrl:i})},PS=e=>e.reduce((t,n)=>{const r=n.words.map(({word:i})=>i);return t.concat(r)},[]),Mf=()=>{const{id:e,name:t,url:n,wordList:r,videoListUrl:i}=Ol();if(r.length>0){const o=PS(r);return N.jsx(LS,{wordList:o,name:t,url:n,id:e,videoListUrl:i})}},RS=({wordList:e})=>{const{t}=Dr();return N.jsxs("article",{className:"WordList",children:[N.jsx("h2",{className:"Content-header",children:t("wordList.title")}),e.map(n=>TS(n))]})},TS=({title:e,description:t,words:n})=>N.jsxs("section",{className:"WordListGroup",children:[N.jsx("h3",{children:e}),t&&N.jsx("p",{className:"WordListGroup-description",children:t}),N.jsx("ul",{children:n.map(({word:r,url:i,emoji:o,description:l})=>{const a=Ph(r);return N.jsx("li",{children:N.jsx(NS,{Word:OS({word:a,url:i}),emoji:o,description:l})},a)})})]},e),NS=({Word:e,emoji:t,description:n})=>N.jsxs(fl.Fragment,{children:[e,t&&N.jsxs(N.Fragment,{children:[" ",t," "]}),n&&N.jsxs(N.Fragment,{children:[N.jsx(N.Fragment,{children:" - "}),N.jsx("span",{className:"WordList-description",children:n})]})]}),OS=({word:e,url:t})=>t?N.jsx("a",{href:t,className:"external",children:e}):N.jsx(fl.Fragment,{children:e}),If=()=>{const{wordList:e}=Ol();if(e.length>0)return N.jsx(RS,{wordList:e})};var jl={},_h={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},_S=_h;function Dh(e){this.mode=_S.MODE_8BIT_BYTE,this.data=e}Dh.prototype={getLength:function(e){return this.data.length},write:function(e){for(var t=0;t>>7-e%8&1)==1},put:function(e,t){for(var n=0;n>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var MS=Mh,St={glog:function(e){if(e<1)throw new Error("glog("+e+")");return St.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return St.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(var Te=0;Te<8;Te++)St.EXP_TABLE[Te]=1<=0;)t^=Pe.G15<=0;)t^=Pe.G18<>>=1;return t},getPatternPosition:function(e){return Pe.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case Xt.PATTERN000:return(t+n)%2==0;case Xt.PATTERN001:return t%2==0;case Xt.PATTERN010:return n%3==0;case Xt.PATTERN011:return(t+n)%3==0;case Xt.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case Xt.PATTERN101:return t*n%2+t*n%3==0;case Xt.PATTERN110:return(t*n%2+t*n%3)%2==0;case Xt.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new Ff([1],0),n=0;n5&&(n+=3+o-5)}for(var r=0;r=7&&this.setupTypeNumber(e),this.dataCache==null&&(this.dataCache=Ot.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)};nt.setupPositionProbePattern=function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(0<=n&&n<=6&&(r==0||r==6)||0<=r&&r<=6&&(n==0||n==6)||2<=n&&n<=4&&2<=r&&r<=4?this.modules[e+n][t+r]=!0:this.modules[e+n][t+r]=!1)};nt.getBestMaskPattern=function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=Sn.getLostPoint(this);(n==0||e>r)&&(e=r,t=n)}return t};nt.createMovieClip=function(e,t,n){var r=e.createEmptyMovieClip(t,n),i=1;this.make();for(var o=0;o>n&1)==1;this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(var n=0;n<18;n++){var r=!e&&(t>>n&1)==1;this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}};nt.setupTypeInfo=function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=Sn.getBCHTypeInfo(n),i=0;i<15;i++){var o=!e&&(r>>i&1)==1;i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(var i=0;i<15;i++){var o=!e&&(r>>i&1)==1;i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o}this.modules[this.moduleCount-8][8]=!e};nt.mapData=function(e,t){for(var n=-1,r=this.moduleCount-1,i=7,o=0,l=this.moduleCount-1;l>0;l-=2)for(l==6&&l--;;){for(var a=0;a<2;a++)if(this.modules[r][l-a]==null){var s=!1;o>>i&1)==1);var u=Sn.getMask(t,r,l-a);u&&(s=!s),this.modules[r][l-a]=s,i--,i==-1&&(o++,i=7)}if(r+=n,r<0||this.moduleCount<=r){r-=n,n=-n;break}}};Ot.PAD0=236;Ot.PAD1=17;Ot.createData=function(e,t,n){for(var r=Ah.getRSBlocks(e,t),i=new zh,o=0;oa*8)throw new Error("code length overflow. ("+i.getLengthInBits()+">"+a*8+")");for(i.getLengthInBits()+4<=a*8&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=a*8||(i.put(Ot.PAD0,8),i.getLengthInBits()>=a*8));)i.put(Ot.PAD1,8);return Ot.createBytes(i,r)};Ot.createBytes=function(e,t){for(var n=0,r=0,i=0,o=new Array(t.length),l=new Array(t.length),a=0;a=0?y.get(v):0}}for(var S=0,c=0;c=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var QS={bgColor:ot.default.oneOfType([ot.default.object,ot.default.string]).isRequired,bgD:ot.default.string.isRequired,fgColor:ot.default.oneOfType([ot.default.object,ot.default.string]).isRequired,fgD:ot.default.string.isRequired,size:ot.default.number.isRequired,title:ot.default.string,viewBoxSize:ot.default.number.isRequired,xmlns:ot.default.string},GS={title:void 0,xmlns:"http://www.w3.org/2000/svg"},Ml=(0,Hh.forwardRef)(function(e,t){var n=e.bgColor,r=e.bgD,i=e.fgD,o=e.fgColor,l=e.size,a=e.title,s=e.viewBoxSize,u=KS(e,["bgColor","bgD","fgD","fgColor","size","title","viewBoxSize"]);return yo.default.createElement("svg",VS({},u,{height:l,ref:t,viewBox:"0 0 "+s+" "+s,width:l}),a?yo.default.createElement("title",null,a):null,yo.default.createElement("path",{d:r,fill:n}),yo.default.createElement("path",{d:i,fill:o}))});Ml.displayName="QRCodeSvg";Ml.propTypes=QS;Ml.defaultProps=GS;xu.default=Ml;Object.defineProperty(jl,"__esModule",{value:!0});jl.QRCode=void 0;var YS=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var ox={bgColor:jt.default.oneOfType([jt.default.object,jt.default.string]),fgColor:jt.default.oneOfType([jt.default.object,jt.default.string]),level:jt.default.string,size:jt.default.number,value:jt.default.string.isRequired},lx={bgColor:"#FFFFFF",fgColor:"#000000",level:"L",size:256},Wi=(0,Wh.forwardRef)(function(e,t){var n=e.bgColor,r=e.fgColor,i=e.level,o=e.size,l=e.value,a=ix(e,["bgColor","fgColor","level","size","value"]),s=new XS.default(-1,qS.default[i]);s.addData(l),s.make();var u=s.modules;return tx.default.createElement(rx.default,YS({},a,{bgColor:n,bgD:u.map(function(c,d){return c.map(function(f,y){return f?"":"M "+y+" "+d+" l 1 0 0 1 -1 0 Z"}).join(" ")}).join(" "),fgColor:r,fgD:u.map(function(c,d){return c.map(function(f,y){return f?"M "+y+" "+d+" l 1 0 0 1 -1 0 Z":""}).join(" ")}).join(" "),ref:t,size:o,viewBoxSize:u.length}))});jl.QRCode=Wi;Wi.displayName="QRCode";Wi.propTypes=ox;Wi.defaultProps=lx;var ax=jl.default=Wi;const Af=()=>{const{url:e}=Ol();return N.jsx("div",{className:"QRCode",children:N.jsx(ax,{value:e,size:500,className:"QRCodeImage",bgColor:"hsla(28, 41%, 95%, 0.7)",fgColor:"hsla(232, 20%, 1%, 0.8)"})})},Kh="Team Lindy",Qh="https://bit.ly/lindybingocard",Gh="https://www.youtube.com/playlist?list=PLgsIo5h4KQoYzMCvcuBFTy7-qW8VgsFpT",Yh=[{title:"Formations",words:[{word:"Circle formation"},{word:"Wedge formation",description:"a tight triangle pointed at the audience"},{word:"Square formation or Diamond formation"},{word:"A single line facing the audience",description:"where the person at the front is hiding all the other dancers behind them"},{word:"A jam circle",description:"one or more dancers do their thing in the middle, while the rest of the group stands around them and claps"}]},{title:'Air steps ("Aerials", "Akro")',description:'Terminology: "Flyer": the person flying through the air (often the follower), "Thrower": the person staying on the ground (often the leader)',words:[{word:"A-frame/ Kick through (air step)",url:"https://www.facebook.com/robertwhiteiii/posts/pfbid02YC4vJ8dk6hFhzCZ7DpUZDizk4u5RD87GucoGuV5gnhC1SPib98kWEJC1YXtWGvkjl"},{word:"The Pancake (air step)",url:"https://www.facebook.com/robertwhiteiii/posts/pfbid02GhobQkT4E6aFuzcSA65Xh7vuhFNFKke4QfoxtND6M5W4Ph9d6Cxnb2twELp4oWmKl"},{word:"The Snatch (air step)",url:"https://www.facebook.com/robertwhiteiii/posts/pfbid02WrC2URf9ymSaz5HeFf2sHFn1DEU7kKvFEePa5tZhScJECTGeWkYPjcCkM2KNvjGyl"},{word:"Lindy flip/ Lamppost/ Around the back (air step)",url:"https://www.facebook.com/robertwhiteiii/posts/pfbid02aPcc6Qg8QG1Qn7tT9x57rqn3naQrD6bTmmStRDYXPfChAjtpmoYCj7GuDVUK8q1Rl"},{word:"Fly toss/ Popover/ Coochie toss (air step)",url:"https://www.facebook.com/robertwhiteiii/posts/pfbid0fyeCLwscJhJNztmUssHMM7UGSH5xsgcJ8p5SV3jh6EAGHqz88QfHDHorEWGB4e4Al"},{word:"Waterfall (air step)",description:"any air step where the flyer dives down the thrower's back and ends up between their legs",url:"https://www.facebook.com/robertwhiteiii/posts/pfbid0szHyFmKxNim2YkyytE23gMZzoxmJfNH5ZzdLbTgEFEjeyNKypfRfJrH9ie71gzGkl"},{word:"Knicker­bocker or Baby flip (air step)",description:"we'll count any flip where the flyer goes backwards over the thrower's arm. Names include: Hourglass, Side-flip",url:"https://www.facebook.com/robertwhiteiii/posts/pfbid02DfYEzswugCzMMs3W1KAh9U4ez5N8GinH7hYYgZLMPAeCGuTt7c5VdXaCioGyKsXBl"},{word:"Kay flip (air step)",url:"https://www.facebook.com/robertwhiteiii/posts/pfbid017Db7GsyyXKECRubM93hivcwRKUx1HQ64pBa9cedLgnJwGa7j6wX9bk2S9AdcBKpl"},{word:"Leapfrog (Hoppa bock)"},{word:"An air step involving more than two people"}]},{title:"Partnered dance steps",words:[{word:"The Chase",url:"https://youtu.be/2KhCrKrKT7I?t=174"},{word:"A Minne Dip",url:"https://www.youtube.com/watch?v=XgDJAuZwiXw"},{word:"Hacksaws",url:"https://www.youtube.com/watch?v=2KhCrKrKT7I&t=218s"},{word:"Tandem Charleston/ Back Charleston"},{word:"Sailor Kicks"},{word:"Drags",description:"follower lunges towards leader, who moves backwards dragging the follower with them"}]},{title:"Solo dance steps",description:"If these are done with a partner, that of course counts as well!",words:[{word:"Itches"},{word:"Pecking"},{word:"Shorty George",url:"https://www.youtube.com/watch?v=3RZK-LyksG4&t=84s"},{word:"Shimmy"},{word:"Spank the baby"},{word:"A really big kick",description:"we're talking REALLY big"}]},{title:"Swingouts",words:[{word:"3 swingouts and a circle"},{word:"4 or more swingouts in a row"},{word:"Swingouts in opposite directions"}]},{title:"Group work",words:[{word:"Changing partners"},{word:"Leaders and followers split up",description:"either half on one side, half on the other, or only leaders/followers dancing while the others stand by."},{word:"A canon (kanon)",description:"dancers take it in turns to perform the same or similar movements"},{word:"Whac-a-mole",description:"everyone is in gone big group and individual dancers jump up out of it from random places."},{word:"Slow motion",description:"doing some kind of specific movement but much slower than normal. You'll know it when you see it! Dancing half-time doesn't count."},{word:"Mime or ”Acting”"},{word:"Syncopated clapping"},{word:"Everyone jumps at the same time"},{word:"Everyone shouts at the same time"},{word:"Everyone freezes in a pose (mid-routine)"},{word:"16 or more people on stage"},{word:"An odd number of people on stage"}]},{title:"Positions",words:[{word:"Somebody is upside-down"},{word:"Somebody’s hand touches the ground"},{word:"Sitting or lying on the floor"},{word:"Sitting or standing on shoulders"}]},{title:"Who is that?",words:[{word:"Mixed-nationality team"},{word:"All-Swedish Team"},{word:"A Swede not in Sweden"},{word:"A Lithuanian not in Lithuania"},{word:"Somebody you have personally taken class from",description:"or that you will take class from at this event!"}]},{title:"Fashion Police",words:[{word:"A leader in white sneakers"},{word:"Braces (susp­enders)",description:"straps which go over the shoulders and hold trousers up"},{word:"A hat"},{word:"Brightly coloured trousers"},{word:"Brightly coloured safety shorts"},{word:"A metallic item of clothing"},{word:"Everyone is wearing the same colour (not black or white)"}]},{title:"Other",words:[{word:"Mid-routine song change"}]}],ku={name:Kh,url:Qh,videoListUrl:Gh,wordList:Yh},sx=Object.freeze(Object.defineProperty({__proto__:null,default:ku,name:Kh,url:Qh,videoListUrl:Gh,wordList:Yh},Symbol.toStringTag,{value:"Module"})),ux=(e,t)=>{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((r,i)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(i.bind(null,new Error("Unknown variable dynamic import: "+t)))})},cx=async e=>{try{return{success:!0,data:(await ux(Object.assign({"../data/balboa.json":()=>Xn(()=>import("./balboa-Dois80iG.js"),[]),"../data/null.json":()=>Xn(()=>import("./null-BAajAwbc.js"),[]),"../data/numbers.json":()=>Xn(()=>import("./numbers-D1u5R9Gp.js"),[]),"../data/teamLindy.json":()=>Xn(()=>Promise.resolve().then(()=>sx),void 0),"../data/test.json":()=>Xn(()=>import("./test-DEnyMRRy.js"),[])}),`../data/${e}.json`)).default}}catch{return{success:!1,data:{}}}},Jh={id:"teamLindy",...ku},wo=()=>Jh,So=async({params:e})=>{const t=e.gameName;if(t){const{success:n,data:r}=await cx(t);return n?{id:t,...r}:Jh}else return console.error("expected a param of 'gameName' but didn't find one or it had a falsey value"),{id:"null",...ku}},fx=()=>{const e="/bingo-frontend",t=n0([{path:e,loader:wo,element:N.jsx(Mf,{})},{path:e,element:N.jsx(Rf,{}),loader:wo,children:[{path:"word_list",element:N.jsx(If,{}),loader:wo},{path:"qr_code",element:N.jsx(Af,{}),loader:wo}]},{path:`${e}/:gameName`,loader:So,element:N.jsx(Mf,{})},{path:`${e}/:gameName`,loader:So,element:N.jsx(Rf,{}),children:[{path:"word_list",element:N.jsx(If,{}),loader:So},{path:"qr_code",element:N.jsx(Af,{}),loader:So}]}]);return N.jsx(f0,{router:t})};ya.createRoot(document.getElementById("root")).render(N.jsx(fl.StrictMode,{children:N.jsx(fx,{})}));Bv(); diff --git a/assets/test-DEnyMRRy.js b/assets/test-DEnyMRRy.js new file mode 100644 index 0000000..aea94ef --- /dev/null +++ b/assets/test-DEnyMRRy.js @@ -0,0 +1 @@ +const o="Team Lindy [TEST]",e="https://dgmstuart.github.io/bingo-frontend/test",t="https://www.youtube.com/playlist?list=PLgsIo5h4KQoYzMCvcuBFTy7-qW8VgsFpT",i=[{title:"Things which we might include in the main list ",description:"These have potential, but it's not clear how many routines they appear in",words:[{word:"An accessory falls off",description:"[Fashion police] eg. a fascinator, hat or shoe"},{word:"Costume change",description:"[Fashion police] a deliberate change of an item of clothing in the middle of a routine"},{word:"Injury support",description:"[Fashion police] eg. a knee or wrist brace, or physio tape"},{word:"A tattoo",description:"[Fashion police] must be visible!"},{word:"Hair Flower",description:"[Fashion police]"},{word:"The splits",description:"[Solo dance step] full splits or jazz splits"},{word:"Eagle slide",description:"[Solo dance step]"},{word:"Texas Tommy",description:"[Partnered dance step] swingout where leader puts follower in an armlock and follower spins out of it."},{word:"Frog Jump",description:"[Air step] from closed position, flyer jumps, assisted by the base. Flyer pulls knees up as high as possible (like a frog)"},{word:"Hip flip (air step)",url:"https://www.facebook.com/robertwhiteiii/posts/pfbid02huwBxPSC4UP7EuiaeqQUZJd1T1t6iCDsydytGwuztY9KH8CXSfDp1YRUAPj6oGrSl",description:"[Air step] flyer does a backward somersault around the leader's hip. Too hard to distinguish from knickerbocker/ round the back/ Kay flip?"},{word:"Balboa",description:"[Dance styles]"},{word:"Collegiate Shag",description:"[Dance styles]"},{word:"St Louis Shag",description:"[Dance styles]"},{word:"Peabody",description:"[Dance styles]"}]},{title:"Things which are just too rare?",description:"It's not that interesting to have something on your card whch is quite unlikely to ever show up",words:[{word:"Candlestick (air step)",url:"https://www.facebook.com/robertwhiteiii/posts/pfbid0Pu1ht1kXB4gtsydYocRFXkQR1WuxsQy38EcQTfVfWX4aEw4wMjrFErgzTpzAE4B3l",description:"Thrower lifts the flyer upside down above their head"},{word:"Shoulder toss (air step)",description:"Thrower throws the flyer back over their shoulder"},{word:"Horses",url:"https://youtu.be/egopcBsOPIU?si=N57PFTGxY1Y_PrgX&t=198",description:"An exit move from A Day At The Races: two dancers balance on a third dancer, who walks offstage"},{word:"Cross formation",description:"[Formations]"},{word:"Pancake Cannon",description:"A canon of couples doing The Pancake air step"},{word:"Swingout Cannon",description:"A canon of couples swinging out on different beats"}]}],s={name:o,url:e,videoListUrl:t,wordList:i};export{s as default,o as name,e as url,t as videoListUrl,i as wordList}; diff --git a/index.html b/index.html index 4fbd0b3..3b00754 100644 --- a/index.html +++ b/index.html @@ -33,7 +33,7 @@ } }(window.location)) - +