Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 9

var n=0,r=Tl.child;null!

==r;){var
o=r.expirationTime,i=r.childExpirationTime;o>n&&(n=o),i>n&&(n=i),r=r.sibling}Tl.chi
ldExpirationTime=n}if(null!==t)return t;null!
==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Tl.firstEffect),n
ull!==Tl.lastEffect&&(null!
==e.lastEffect&&(e.lastEffect.nextEffect=Tl.firstEffect),e.lastEffect=Tl.lastEffect
),1<Tl.effectTag&&(null!==e.lastEffect?
e.lastEffect.nextEffect=Tl:e.firstEffect=Tl,e.lastEffect=Tl))}else{if(null!
==(t=Xa(Tl)))return t.effectTag&=2047,t;null!
==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!
==(t=Tl.sibling))return t;Tl=e}while(null!==Tl);return
Ol===wl&&(Ol=5),null}function fu(e){var t=e.expirationTime;return
t>(e=e.childExpirationTime)?t:e}function du(e){var t=Vo();return
Ho(99,pu.bind(null,e,t)),null}function pu(e,t){do{gu()}while(null!==Ul);if(0!
=(48&El))throw Error(a(327));var
n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return
null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw
Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,
e.nextKnownPendingLevel=0;var
o=fu(n);if(e.firstPendingTime=o,r<=e.lastSuspendedTime?
e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspen
dedTime&&(e.firstSuspendedTime=r-
1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTi
me=0),e===Sl&&(Tl=Sl=null,Cl=0),1<n.effectTag?null!==n.lastEffect?
(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){var
i=El;El|=32,bl.current=null,gn=qt;var l=pn();if(hn(l)){if("selectionStart"in l)var
u={start:l.selectionStart,end:l.selectionEnd};else e:{var
s=(u=(u=l.ownerDocument)&&u.defaultView||
window).getSelection&&u.getSelection();if(s&&0!==s.rangeCount){u=s.anchorNode;var
c=s.anchorOffset,f=s.focusNode;s=s.focusOffset;try{u.nodeType,f.nodeType}catch(e)
{u=null;break e}var d=0,p=-1,h=-1,g=0,m=0,v=l,y=null;t:for(;;){for(var b;v!==u||0!
==c&&3!==v.nodeType||(p=d+c),v!==f||0!==s&&3!==v.nodeType||
(h=d+s),3===v.nodeType&&(d+=v.nodeValue.length),null!
==(b=v.firstChild);)y=v,v=b;for(;;){if(",e.displayName||(""!
==t?"ForwardRef("+t+")":"ForwardRef");case v:return k(e.type);case b:return
k(e.render);case y:if(e=1===e._status?e._result:null)return k(e)}return null}var
E=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;E.hasOwnProperty("ReactCurre
ntDispatcher")||
(E.ReactCurrentDispatcher={current:null}),E.hasOwnProperty("ReactCurrentBatchConfig
")||(E.ReactCurrentBatchConfig={suspense:null});var S={};function T(e,t){for(var
n=0|e._threadCount;n<=t;n++)e[n]=e._currentValue2,e._threadCount=n+1}for(var C=new
Uint16Array(16),O=0;15>O;O++)C[O]=O+1;C[15]=0;var P=/^[: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]*$/,_=Object.prototype.hasOwnProperty,N={},R={};function L(e){return!!
_.call(R,e)||!_.call(N,e)&&(P.test(e)?R[e]=!0:(N[e]=!0,!1))}function F(e,t,n,r,o,i)
{this.acceptsBooleans=2===t||3===t||
4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.pr
opertyName=e,this.type=t,this.sanitizeURL=i}var j={};"children
dangerouslySetInnerHTML defaultValue defaultChecked innerHTML
suppressContentEditableWarning suppressHydrationWarning style".split("
").forEach((function(e){j[e]=new F(e,0,!1,e,null,!1)})),[["acceptCharset","accept-
charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-
equiv"]].forEach((function(e){var t=e[0];j[t]=new F(t,1,!1,e[1],null,!1)})),
["contentEditable","draggable","spellCheck","value"].forEach((function(e){j[e]=new
F(e,2,!1,e.toLowerCase(),null,!1)})),
["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((fu
nction(e){j[e]=new F(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay
controls default defer disabled disablePictureInPicture formNoValidate hidden loop
noModule noValidate open playsInline readOnly required reversed scoped seamless
itemScope".split(" ").forEach((function(e){j[e]=new F(e,3,!1,e.toLowerCase(),null,!
1)})),["checked","multiple","muted","selected"].forEach((function(e){j[e]=new
F(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){j[e]=new F(e,4,!
1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){j[e]=new F(e,6,!
1,e,null,!1)})),["rowSpan","start"].forEach((function(e){j[e]=new F(e,5,!
1,e.toLowerCase(),null,!1)}));var I=/[\-:]([a-z])/g;function M(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(I,M);j[t]=new F(t,1,!1,e,null,!
1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title
xlink:type".split(" ").forEach((function(e){var t=e.replace(I,M);j[t]=new F(t,1,!
1,e,"http://www.w3.org/1999/xlink",!1)})),
["xml:base","xml:lang","xml:space"].forEach((function(e){var
t=e.replace(I,M);j[t]=new F(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),
["tabIndex","crossOrigin"].forEach((function(e){j[e]=new F(e,1,!
1,e.toLowerCase(),null,!1)})),j.xlinkHref=new F("xlinkHref",1,!
1,"xlink:href","http://www.w3.org/1999/xlink",!0),
["src","href","action","formAction"].forEach((function(e){j[e]=new F(e,1,!
1,e.toLowerCase(),null,!0)}));var D=/["'&<>]/;function z(e){if("boolean"==typeof
e||"number"==typeof e)return""+e;e=""+e;var t=D.exec(e);if(t){var
n,r="",o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case
34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case
60:t="&lt;";break;case 62:t="&gt;";break;default:continue}o!
==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return
e}function A(e,t){var n,r=j.hasOwnProperty(e)?j[e]:null;return(n="style"!
==e)&&(n=null!==r?
0===r.type:2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])),n||
function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!
1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!
r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!
==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type)
{case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return
isNaN(t)||1>t}return!1}(e,t,r,!1)?"":null!==r?(e=r.attributeName,3===(n=r.type)||
4===n&&!0===t?e+'=""':(r.sanitizeURL&&(t=""+t),e+'="'+z(t)+'"')):L(e)?e+'="'+z(t)
+'"':""}var U="function"==typeof Object.is?Object.is:function(e,t){return
e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},V=null,W=null,H=null,$=!1,B=!
1,q=null,K=0;function Q(){if(null===V)throw Error(i(321));return V}function Y()
{if(0<K)throw
Error(i(312));return{memoizedState:null,queue:null,next:null}}function G(){return
null===H?null===W?($=!1,W=H=Y()):($=!0,H=W):null===H.next?($=!1,H=H.next=Y()):($=!
0,H=H.next),H}function X(e,t,n,r){for(;B;)B=!1,K+=1,H=null,n=e(t,r);return
W=V=null,K=0,H=q=null,n}function J(e,t){return"function"==typeof t?t(e):t}function
Z(e,t,n){if(V=Q(),H=G(),$){var r=H.queue;if(t=r.dispatch,null!==q&&void 0!
==(n=q.get(r)))
{q.delete(r),r=H.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return
H.memoizedState=r,[r,t]}return[H.memoizedState,t]}return e=e===J?"function"==typeof
t?t():t:void 0!==n?
n(t):t,H.memoizedState=e,e=(e=H.queue={last:null,dispatch:null}).dispatch=ee.bind(n
ull,V,e),[H.memoizedState,e]}function ee(e,t,n){if(!(25>K))throw
Error(i(301));if(e===V)if(B=!0,e={action:n,next:null},null===q&&(q=new Map),void
0===(n=q.get(t)))q.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function
te(){}var ne=0,re={readContext:function(e){var t=ne;return
T(e,t),e[t]},useContext:function(e){Q();var t=ne;return
T(e,t),e[t]},useMemo:function(e,t){if(V=Q(),t=void 0===t?null:t,null!==(H=G())){var
n=H.memoizedState;if(null!==n&&null!==t){e:{var r=n[1];if(null===r)r=!
1;else{for(var o=0;o<r.length&&o<t.length;o++)if(!U(t[o],r[o])){r=!1;break e}r=!
0}}if(r)return n[0]}}return
e=e(),H.memoizedState=[e,t],e},useReducer:Z,useRef:function(e){V=Q();var
t=(H=G()).memoizedState;return null===t?
(e={current:e},H.memoizedState=e):t},useState:function(e){return
Z(J,e)},useLayoutEffect:function(){},useCallback:function(e){return
e},useImperativeHandle:te,useEffect:te,useDebugValue:te,useResponder:function(e,t)
{return{props:t,responder:e}},useDeferredValue:function(e){return
Q(),e},useTransition:function(){return
Q(),[function(e){e()},!1]}},oe="http://www.w3.org/1999/xhtml";function ie(e)
{switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://
www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var
ae={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},le=r({menuitem:!
0},ae),ue={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!
0,borderImageWidth:!0,boxFlex:!0
,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!
0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!
0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!
0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!
0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!
0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!
0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!
0},se=["Webkit","ms","Moz","O"];Object.keys(ue).forEach((function(e)
{se.forEach((function(t){t=t+e.charAt(0).toUpperCase()
+e.substring(1),ue[t]=ue[e]}))}));var
ce=/([A-Z])/g,fe=/^ms-/,de=o.Children.toArray,pe=E.ReactCurrentDispatcher,he={listi
ng:!0,pre:!0,textarea:!0},ge=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,me={},ve={};var
ye=Object.prototype.hasOwnProperty,be={children:null,dangerouslySetInnerHTML:null,s
uppressContentEditableWarning:null,suppressHydrationWarning:null};function we(e,t)
{if(void 0===e)throw Error(i(152,k(t)||"Component"))}function xe(e,t,n){function
a(o,a){var l=a.prototype&&a.prototype.isReactComponent,u=function(e,t,n,r)
{if(r&&("object"==typeof(r=e.contextType)&&null!==r))return
T(r,n),r[n];if(e=e.contextTypes){for(var o in n={},e)n[o]=t[o];t=n}else t=S;return
t}(a,t,n,l),s=[],c=!1,f={isMounted:function(){return!
1},enqueueForceUpdate:function(){if(null===s)return
null},enqueueReplaceState:function(e,t){c=!0,s=[t]},enqueueSetState:function(e,t)
{if(null===s)return null;s.push(t)}};if(l){if(l=new
a(o.props,u,f),"function"==typeof a.getDerivedStateFromProps){var
d=a.getDerivedStateFromProps.call(null,o.props,l.state);null!
=d&&(l.state=r({},l.state,d))}}else
if(V={},l=a(o.props,u,f),null==(l=X(a,o.props,l,u))||null==l.render)return void
we(e=l,a);if(l.props=o.props,l.context=u,l.updater=f,void
0===(f=l.state)&&(l.state=f=null),"function"==typeof
l.UNSAFE_componentWillMount||"function"==typeof
l.componentWillMount)if("function"==typeof l.componentWillMount&&"function"!=typeof
a.getDerivedStateFromProps&&l.componentWillMount(),"function"==typeof
l.UNSAFE_componentWillMount&&"function"!=typeof
a.getDerivedStateFromProps&&l.UNSAFE_componentWillMount(),s.length){f=s;var
p=c;if(s=null,c=!1,p&&1===f.length)l.state=f[0];else{d=p?f[0]:l.state;var h=!
0;for(p=p?1:0;p<f.length;p++){var g=f[p];null!=(g="function"==typeof g?
g.call(l,d,o.props,u):g)&&(h?(h=!1,d=r({},d,g)):r(d,g))}l.state=d}}else
s=null;if(we(e=l.render(),a),"function"==typeof
l.getChildContext&&"object"==typeof(o=a.childContextTypes)){var
m=l.getChildContext();for(var v in m)if(!(v in o))throw
Error(i(108,k(a)||"Unknown",v))}m&&(t=r({},t,m))}for(;o.isValidElement(e);){var
l=e,u=l.type;if("function"!=typeof u)break;a(l,u)}return{child:e,context:t}}var
ke=function(){function e(e,t){o.isValidElement(e)?e.type!==u?e=[e]:
(e=e.props.children,e=o.isValidElement(e)?
[e]:de(e)):e=de(e),e={type:null,domNamespace:oe,children:e,childIndex:0,context:S,f
ooter:""};var n=C[0];if(0===n){var r=C,a=2*(n=r.length);if(!(65536>=a))throw
Error(i(304));var l=new Uint16Array(a);for(l.set(r),(C=l)[0]=n+1,r=n;r<a-1;r+
+)C[r]=r+1;C[a-1]=0}else C[0]=C[n];this.threadID=n,this.stack=[e],this.exhausted=!
1,this.currentSelectValue=null,this.previousWasTextNode=!
1,this.makeStaticMarkup=t,this.suspenseDepth=0,this.contextIndex=-
1,this.contextStack=[],this.contextValueStack=[]}var t=e.prototype;return
t.destroy=function(){if(!this.exhausted){this.exhausted=!
0,this.clearProviders();var
e=this.threadID;C[e]=C[0],C[0]=e}},t.pushProvider=function(e){var t=+
+this.contextIndex,n=e.type._context,r=this.threadID;T(n,r);var
o=n[r];this.contextStack[t]=n,this.contextValueStack[t]=o,n[r]=e.props.value},t.pop
Provider=function(){var
e=this.contextIndex,t=this.contextStack[e],n=this.contextValueStack[e];this.context
Stack[e]=null,this.contextValueStack[e]=null,this.contextIndex--,t[this.threadID]=n
},t.clearProviders=function(){for(var
e=this.contextIndex;0<=e;e--)this.contextStack[e]
[this.threadID]=this.contextValueStack[e]},t.read=function(e)
{if(this.exhausted)return null;var t=ne;ne=this.threadID;var
n=pe.current;pe.current=re;try{for(var r=[""],o=!1;r[0].length<e;)
{if(0===this.stack.length){this.exhausted=!0;var
a=this.threadID;C[a]=C[0],C[0]=a;break}var l=this.stack[this.stack.length-1];if(o||
l.childIndex>=l.children.length){var u=l.footer;if(""!
==u&&(this.previousWasTextNode=!
1),this.stack.pop(),"select"===l.type)this.currentSelectValue=null;else if(null!
=l.type&&null!=l.type.type&&l.type.type.$$typeof===f)this.popProvider(l.type);else
if(l.type===g){this.suspenseDepth--;var s=r.pop();if(o){o=!1;var
c=l.fallbackFrame;if(!c)throw
Error(i(303));this.stack.push(c),r[this.suspenseDepth]+="\x3c!--$!--\
x3e";continue}r[this.suspenseDepth]+=s}r[this.suspenseDepth]+=u}else{var
d=l.children[l.childIndex+
+],p="";try{p+=this.render(d,l.context,l.domNamespace)}catch(e){if(null!
=e&&"function"==typeof e.then)throw Error(i(294));throw
e}r.length<=this.suspenseDepth&&r.push(""),r[this.suspenseDepth]+=p}}return
r[0]}finally{pe.current=n,ne=t}},t.render=function(e,t,n){if("string"==typeof
e||"number"==typeof e)return""===(n=""+e)?"":this.makeStaticMarkup?
z(n):this.previousWasTextNode?"\x3c!-- --\x3e"+z(n):(this.previousWasTextNode=!
0,z(n));if(e=(t=xe(e,t,this.threadID)).child,t=t.context,null===e||!
1===e)return"";if(!o.isValidElement(e)){if(null!=e&&null!=e.$$typeof){if((n=e.$
$typeof)===l)throw Error(i(257));throw Error(i(258,n.toString()))}return
e=de(e),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t
,footer:""}),""}var a=e.type;if("string"==typeof a)return
this.renderDOM(e,t,n);switch(a){case s:case p:case c:case m:case u:return
e=de(e.props.children),this.stack.push({type:null,domNamespace:n,children:e,childIn
dex:0,context:t,footer:""}),"";case g:throw Error(i(294))}if("object"==typeof
a&&null!==a)switch(a.$$typeof){case h:V={};var b=a.render(e.props,e.ref);return
b=X(a.render,e.props,b,e.ref),b=de(b),this.stack.push({type:null,domNamespace:n,chi
ldren:b,childIndex:0,context:t,footer:""}),"";case v:return
e=[o.createElement(a.type,r({ref:e.ref},e.props))],this.stack.push({type:null,domNa
mespace:n,children:e,childIndex:0,context:t,footer:""}),"";case f:return
n={type:e,domNamespace:n,children:a=de(e.props.children),childIndex:0,context:t,foo
ter:""},this.pushProvider(e),this.stack.push(n),"";case d:a=e.type,b=e.props;var
k=this.threadID;return
T(a,k),a=de(b.children(a[k])),this.stack.push({type:e,domNamespace:n,children:a,chi
ldIndex:0,context:t,footer:""}),"";case w:throw Error(i(338));case
y:switch(function(e){if(-1===e._status){e._status=0;var
t=e._ctor;t=t(),e._result=t,t.then((function(t)
{0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t)
{0===e._status&&(e._status=2,e._result=t)}))}}(a=e.type),a._status){case 1:return
e=[o.createElement(a._result,r({ref:e.ref},e.props))],this.stack.push({type:null,do
mNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case 2:throw
a._result;default:throw Error(i(295))}case x:throw Error(i(343))}throw
Error(i(130,null==a?a:typeof a,""))},t.renderDOM=function(e,t,n){var
a=e.type.toLowerCase();if(n===oe&&ie(a),!me.hasOwnProperty(a)){if(!ge.test(a))throw
Error(i(65,a));me[a]=!0}var l=e.props;if("input"===a)l=r({type:void 0},l,
{defaultChecked:void 0,defaultValue:void 0,value:null!=l.value?
l.value:l.defaultValue,checked:null!=l.checked?l.checked:l.defaultChecked});else
if("textarea"===a){var u=l.value;if(null==u){u=l.defaultValue;var
s=l.children;if(null!=s){if(null!=u)throw Error(i(92));if(Array.isArray(s)){if(!
(1>=s.length))throw Error(i(93));s=s[0]}u=""+s}null==u&&(u="")}l=r({},l,{value:void
0,children:""+u})}else if("select"===a)this.currentSelectValue=null!=l.value?
l.value:l.defaultValue,l=r({},l,{value:void 0});else if("option"===a)
{s=this.currentSelectValue;var c=function(e){if(null==e)return e;var t="";return
o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(l.children);if(null!=s){var
f=null!=l.value?l.value+"":c;if(u=!1,Array.isArray(s)){for(var d=0;d<s.length;d+
+)if(""+s[d]===f){u=!0;break}}else u=""+s===f;l=r({selected:void 0,children:void
0},l,{selected:u,children:c})}}if(u=l){if(le[a]&&(null!=u.children||null!
=u.dangerouslySetInnerHTML))throw Error(i(137,a,""));if(null!
=u.dangerouslySetInnerHTML){if(null!=u.children)throw Error(i(60));if("object"!
=typeof u.dangerouslySetInnerHTML||!("__html"in u.dangerouslySetInnerHTML))throw
Error(i(61))}if(null!=u.style&&"object"!=typeof u.style)throw Error(i(62,""))}for(w
in u=l,s=this.makeStaticMarkup,c=1===this.lue(i)),t.regex.lastIndex=0,+
+a>=l.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var
n,r,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:
{},l=i({},a);function u(e,t){var
n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new
RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,l))
.replace(/'/g,'"');try{l=JSON.parse(o),t&&(l=i({},t,l))}catch(t){return
this.logger.warn("failed parsing options string in nesting for key
".concat(e),t),"".concat(e).concat(n).concat(o)}return delete
l.defaultValue,e}for(l.applyPostProcessor=!1,delete
l.defaultValue;n=this.nestingRegexp.exec(e);){var s=[],c=!
1;if(n[0].includes(this.formatSeparator)&&!/{.*}/.test(n[1])){var
f=n[1].split(this.formatSeparator).map((function(e){return
e.trim()}));n[1]=f.shift(),s=f,c=!
0}if((r=t(u.call(this,n[1].trim(),l),l))&&n[0]===e&&"string"!=typeof r)return
r;"string"!=typeof r&&(r=y(r)),r||(this.logger.warn("missed to resolve
".concat(n[1]," for nesting ").concat(e)),r=""),c&&(r=s.reduce((function(e,t)
{return
o.format(e,t,a.lng,a)}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}retu
rn e}}]),e}();var U=function(e){function t(e,n,r){var o,i=arguments.length>3&&void
0!==arguments[3]?arguments[3]:{};return
a(this,t),o=c(this,f(t).call(this)),P&&m.call(Object(s.a)
(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i
,o.logger=g.create("backendConnector"),o.state={},o.queue=[],o.backend&&o
.backend.init&&o.backend.init(r,i.backend,i),o}return p(t,e),u(t,
[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],l=[],u=[];return
e.forEach((function(e){var r=!0;t.forEach((function(t){var
l="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?
o.state[l]=2:o.state[l]<0||(1===o.state[l]?a.indexOf(l)<0&&a.push(l):
(o.state[l]=1,r=!
1,a.indexOf(l)<0&&a.push(l),i.indexOf(l)<0&&i.push(l),u.indexOf(t)<0&&u.push(t)))})
),r||l.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:
{},errors:[],callback:r}),
{toLoad:i,pending:a,toLoadLanguages:l,toLoadNamespaces:u}}},
{key:"loaded",value:function(e,t,n){var
r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addR
esourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n)
{var r,l,u,s,c,f;r=n.loaded,l=i,s=w(r,[o],Object),c=s.obj,f=s.k,c[f]=c[f]||
[],u&&(c[f]=c[f].concat(l)),u||c[f].push(l),function(e,t){for(var n=e.indexOf(t);-
1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!
==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||
(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t)
{a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?
n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.f
ilter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var
r=this,o=arguments.length>3&&void 0!==arguments[3]?
arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?
arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?
this.backend[n](e,t,(function(l,u){l&&u&&o<5?setTimeout((function()
{r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(l,u)})):a(null,{})}},
{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!
==arguments[2]?arguments[2]:{},o=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."),o&&o();"string"==typeof
e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var
i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||
o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},
{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},
{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},
{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!
==arguments[1]?
arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,
(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for
language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded
namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},
{key:"saveMissing",value:function(e,t,n,r,o){var a=arguments.length>5&&void 0!
==arguments[5]?arguments[5]:
{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!
this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key
"'.concat(n,'" as the namespace "').concat(t,'" 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!!!"):null!=n&&""!
==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,i({},a,
{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}(m);function V()
{return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:
["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!
1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!
1,load:"all",preload:!1,simplifyPluralSuffix:!
0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partial
BundledLanguages:!1,saveMissing:!1,updateMissing:!
1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!
1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!
1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!
1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!
1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var
t={};if("object"===r(e[1])&&(t=e[1]),"string"==typeof
e[1]&&(t.defaultValue=e[1]),"string"==typeof
e[2]&&(t.tDescription=e[2]),"object"===r(e[2])||"object"===r(e[3])){var n=e[3]||
e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:
{escapeValue:!0,format:function(e,t,n,r){return
e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t
(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!
1}}}function W(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof
e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof
e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.
indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e
.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitel
ist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.suppo
rtedLngs.concat(["cimode"])),e}function H(){}var $=new(function(e){function t(){var
e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?
arguments[1]:void 0;if(a(this,t),e=c(this,f(t).call(this)),P&&m.call(Object(s.a)
(e)),e.options=W(n),e.services={},e.logger=g,e.modules={external:[]},r&&!
e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return
e.init(n,r),c(e,Object(s.a)(e));setTimeout((function(){e.init(n,r)}),0)}return
e}return p(t,e),u(t,[{key:"init",value:function(){var
e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:
{},n=arguments.length>1?arguments[1]:void 0;function r(e){return
e?"function"==typeof e?new e:e:null}if("function"==typeof
t&&(n=t,t={}),t.whitelist&&!
t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be
renamed to "supportedLngs" in the next major - please make sure to rename this
option asap.'),t.nonExplicitWhitelist&&!
t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options
"nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next
major - please make sure to rename this option
asap.'),this.options=i({},V(),this.options,W(t)),this.format=this.options.interpola
tion.format,n||(n=H),!this.options.isClone){this.modules.logger?
g.init(r(this.modules.logger),this.options):g.init(null,this.options);var o=new
j(this.options);this.store=new _(this.options.resources,this.options);var
a=this.services;a.logger=g,a.resourceStore=this.store,a.languageUtils=o,a.pluralRes
olver=new z(o,
{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJ
SON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new
A(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.b
ackendConnector=new
U(r(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*"
,(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-
1]=arguments[o];e.emit.apply(e,
[t].concat(r))})),this.modules.languageDetector&&(a.languageDetector=r(this.modules
.languageDetector),a.languageDetector.init(a,this.options.detection,this.options)),
this.modules.i18nFormat&&(a.i18nFormat=r(this.modules.i18nFormat),a.i18nFormat.init
&&a.i18nFormat.init(this)),this.translator=new
L(this.services,this.options),this.translator.on("*",(function(t){for(var
n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-
1]=arguments[o];e.emit.apply(e,
[t].concat(r))})),this.modules.external.forEach((function(t)
{t.init&&t.init(e)}))}this.modules.languageDetector||this.options.lng||
this.logger.warn("init: no languageDetector is used and no lng is defined");var
l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.for
Each((function(t){e[t]=function(){var n;return(n=e.store)
[t].apply(n,arguments)}}));var
u=["addResource","addResources","addResourceBundle","removeResourceBundle"];u.forEa
ch((function(t){e[t]=function(){var n;return(n=e.store)
[t].apply(n,arguments),e}}));var s=v(),c=function(){e.changeLanguage(e.options.lng,
(function(t,r){e.isInitialized=!
0,e.logger.log("initialized",e.options),e.emit("initialized",e.options),s.resolve(r
),n(t,r)}))};return this.options.resources||!this.options.initImmediate?
c():setTimeout(c,0),s}},{key:"loadResources",value:function(e){var
t=this,n=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:H,r=n,o="string"==typeof e?e:this.language;if("function"==typeof
e&&(r=e),!this.options.resources||this.options.partialBundledLanguages)
{if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e)
{e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e)
{i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var
l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach(
(function(e){return
a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return
a(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},
{key:"reloadResources",value:function(e,t,n){var r=v();return e||
(e=this.languages),t||(t=this.options.ns),n||
(n=H),this.services.backendConnector.reload(e,t,(function(e)
{r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You
are passing an undefined module! Please check the object you are passing to
i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please
check the object you are passing to
i18next.use()");return"backend"===e.type&&(this.modules.backend=e),
("logger"===e.type||
e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this
.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"po
stProcessor"===e.type&&N.addPostProcessor(e),"3rdParty"===e.type&&this.modules.exte
rnal.push(e),this}},{key:"changeLanguage",value:function(e,t){var
n=this;this.isLanguageChangingTo=e;var r=v();this.emit("languageChanging",e);var
o=function(e){var o="string"==typeof e?
e:n.services.languageUtils.getBestMatchFromCodes(e);o&&(n.language||
(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o)),n.transla
tor.language||
n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDete
ctor.cacheUserLanguage(o)),n.loadResources(o,(function(e){!function(e,o){o?
(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translat
or.changeLanguage(o),n.isLanguageChangingTo=void
0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangi
ngTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,
(function(){return n.t.apply(n,arguments)}))}(e,o)}))};return e||!
this.services.languageDetector||this.services.languageDetector.async?!
e&&this.services.languageDetector&&this.services.languageDetector.async?
this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.dete
ct()),r}},{key:"getFixedT",value:function(e,t){var n=this,o=function e(t,o){var
a;if("object"!==r(o)){for(var l=arguments.length,u=new Array(l>2?l-2:0),s=2;s<l;s+
+)u[s-
2]=arguments[s];a=n.options.overloadTranslationOptionHandler([t,o].concat(u))}else
a=i({},o);return a.lng=a.lng||e.lng,a.lngs=a.lngs||e.lngs,a.ns=a.ns||
e.ns,n.t(t,a)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o}},
{key:"t",value:function(){var e;return
this.translator&&(e=this.translator).translate.apply(e,arguments)}},
{key:"exists",value:function(){var e;return
this.translator&&(e=this.translator).exists.apply(e,arguments)}},
{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},
{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void
0!==arguments[1]?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;var r=this.languages[0],o=!!
this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-
1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var
r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||
2===r};if(n.precheck){var l=n.precheck(this,a);if(void 0!==l)return l}return!!
this.hasResourceBundle(r,e)||(!this.services.backendConnector.backend||!(!a(r,e)||
o&&!a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=v();return
this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e)
{n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e)
{r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},
{key:"loadLanguages",value:function(e,t){var n=v();"string"==typeof e&&(e=[e]);var
r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return
o.length?(this.options.preload=r.concat(o),this.loadResources((function(e)
{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},
{key:"dir",value:function(e){if(e||(e=this.languages&&this.languages.length>0?
this.languages[0]:this.language),!
e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","ac
m","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","a
rq","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"].indexOf(this.services.languageUtils.g
etLanguagePartFromCode(e))>=0?"rtl":"ltr"}},{key:"createInstance",value:function()
{var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:
{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},
{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!
==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:H,o=i({},this.options,n,{isClone:!0}),a=new
t(o),l=["store","services","language"];return l.forEach((function(t)
{a[t]=e[t]})),a.services=i({},this.services),a.services.utils={hasLoadedNamespace:a
.hasLoadedNamespace.bind(a)},a.translator=new
L(a.services,a.options),a.translator.on("*",(function(e){for(var
t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-
1]=arguments[r];a.emit.apply(a,
[e].concat(n))})),a.init(o,r),a.translator.options=a.options,a.translator.backendCo
nnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}}]),t}
(m));t.default=$}]);

You might also like