@ukpc-lib/react 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Toast/ToastConfig.d.ts +2 -0
- package/dist/components/Toast/icons/ErrorIcon.d.ts +1 -0
- package/dist/components/Toast/icons/SuccessIcon.d.ts +1 -0
- package/dist/components/Toast/icons/WarningIcon.d.ts +1 -0
- package/dist/components/Toast/index.d.ts +5 -0
- package/dist/components/index.cjs +6 -115
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +2877 -13232
- package/dist/index-60dc34b2.js +11606 -0
- package/dist/index-e55ba232.cjs +129 -0
- package/dist/index.css +1 -0
- package/dist/share/index.cjs +22 -22
- package/dist/share/index.js +112 -127
- package/dist/share/interceptor/index.d.ts +2 -2
- package/package.json +3 -2
- package/web-components-bundle/global-menu/index.cjs +11 -11
- package/web-components-bundle/global-menu/index.js +2143 -1950
- package/web-components-bundle/global-topbar/index.cjs +2 -1
- package/web-components-bundle/global-topbar/index.js +2 -1
- package/web-components-bundle/{index-3fc4e3f7.js → index-6fdc89ad.js} +2 -2
- package/web-components-bundle/{index-7b351aec.cjs → index-fe58ccfa.cjs} +1 -1
- package/dist/extends-b6289784.cjs +0 -20
- package/dist/extends-fcd3640d.js +0 -692
|
@@ -1,115 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Wc;function np(){if(Wc)return ei;Wc=1;var t=oe;function e(u){for(var g="https://reactjs.org/docs/error-decoder.html?invariant="+u,C=1;C<arguments.length;C++)g+="&args[]="+encodeURIComponent(arguments[C]);return"Minified React error #"+u+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=Object.prototype.hasOwnProperty,i=/^[: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]*$/,a={},h={};function p(u){return r.call(h,u)?!0:r.call(a,u)?!1:i.test(u)?h[u]=!0:(a[u]=!0,!1)}function S(u,g,C,P,z,B,G){this.acceptsBooleans=g===2||g===3||g===4,this.attributeName=P,this.attributeNamespace=z,this.mustUseProperty=C,this.propertyName=u,this.type=g,this.sanitizeURL=B,this.removeEmptyString=G}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(u){m[u]=new S(u,0,!1,u,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(u){var g=u[0];m[g]=new S(g,1,!1,u[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(u){m[u]=new S(u,2,!1,u.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(u){m[u]=new S(u,2,!1,u,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(u){m[u]=new S(u,3,!1,u.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(u){m[u]=new S(u,3,!0,u,null,!1,!1)}),["capture","download"].forEach(function(u){m[u]=new S(u,4,!1,u,null,!1,!1)}),["cols","rows","size","span"].forEach(function(u){m[u]=new S(u,6,!1,u,null,!1,!1)}),["rowSpan","start"].forEach(function(u){m[u]=new S(u,5,!1,u.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function R(u){return u[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(u){var g=u.replace(b,R);m[g]=new S(g,1,!1,u,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(u){var g=u.replace(b,R);m[g]=new S(g,1,!1,u,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(u){var g=u.replace(b,R);m[g]=new S(g,1,!1,u,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(u){m[u]=new S(u,1,!1,u.toLowerCase(),null,!1,!1)}),m.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(u){m[u]=new S(u,1,!1,u.toLowerCase(),null,!0,!0)});var w={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},D=["Webkit","ms","Moz","O"];Object.keys(w).forEach(function(u){D.forEach(function(g){g=g+u.charAt(0).toUpperCase()+u.substring(1),w[g]=w[u]})});var _=/["'&<>]/;function N(u){if(typeof u=="boolean"||typeof u=="number")return""+u;u=""+u;var g=_.exec(u);if(g){var C="",P,z=0;for(P=g.index;P<u.length;P++){switch(u.charCodeAt(P)){case 34:g=""";break;case 38:g="&";break;case 39:g="'";break;case 60:g="<";break;case 62:g=">";break;default:continue}z!==P&&(C+=u.substring(z,P)),z=P+1,C+=g}u=z!==P?C+u.substring(z,P):C}return u}var Y=/([A-Z])/g,j=/^ms-/,O=Array.isArray;function X(u,g){return{insertionMode:u,selectedValue:g}}function $(u,g,C){switch(g){case"select":return X(1,C.value!=null?C.value:C.defaultValue);case"svg":return X(2,null);case"math":return X(3,null);case"foreignObject":return X(1,null);case"table":return X(4,null);case"thead":case"tbody":case"tfoot":return X(5,null);case"colgroup":return X(7,null);case"tr":return X(6,null)}return 4<=u.insertionMode||u.insertionMode===0?X(1,null):u}var J=new Map;function q(u,g,C){if(typeof C!="object")throw Error(e(62));g=!0;for(var P in C)if(r.call(C,P)){var z=C[P];if(z!=null&&typeof z!="boolean"&&z!==""){if(P.indexOf("--")===0){var B=N(P);z=N((""+z).trim())}else{B=P;var G=J.get(B);G!==void 0||(G=N(B.replace(Y,"-$1").toLowerCase().replace(j,"-ms-")),J.set(B,G)),B=G,z=typeof z=="number"?z===0||r.call(w,P)?""+z:z+"px":N((""+z).trim())}g?(g=!1,u.push(' style="',B,":",z)):u.push(";",B,":",z)}}g||u.push('"')}function K(u,g,C,P){switch(C){case"style":q(u,g,P);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<C.length)||C[0]!=="o"&&C[0]!=="O"||C[1]!=="n"&&C[1]!=="N"){if(g=m.hasOwnProperty(C)?m[C]:null,g!==null){switch(typeof P){case"function":case"symbol":return;case"boolean":if(!g.acceptsBooleans)return}switch(C=g.attributeName,g.type){case 3:P&&u.push(" ",C,'=""');break;case 4:P===!0?u.push(" ",C,'=""'):P!==!1&&u.push(" ",C,'="',N(P),'"');break;case 5:isNaN(P)||u.push(" ",C,'="',N(P),'"');break;case 6:!isNaN(P)&&1<=P&&u.push(" ",C,'="',N(P),'"');break;default:g.sanitizeURL&&(P=""+P),u.push(" ",C,'="',N(P),'"')}}else if(p(C)){switch(typeof P){case"function":case"symbol":return;case"boolean":if(g=C.toLowerCase().slice(0,5),g!=="data-"&&g!=="aria-")return}u.push(" ",C,'="',N(P),'"')}}}function te(u,g,C){if(g!=null){if(C!=null)throw Error(e(60));if(typeof g!="object"||!("__html"in g))throw Error(e(61));g=g.__html,g!=null&&u.push(""+g)}}function ie(u){var g="";return t.Children.forEach(u,function(C){C!=null&&(g+=C)}),g}function se(u,g,C,P){u.push(ye(C));var z=C=null,B;for(B in g)if(r.call(g,B)){var G=g[B];if(G!=null)switch(B){case"children":C=G;break;case"dangerouslySetInnerHTML":z=G;break;default:K(u,P,B,G)}}return u.push(">"),te(u,z,C),typeof C=="string"?(u.push(N(C)),null):C}var Pe=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,De=new Map;function ye(u){var g=De.get(u);if(g===void 0){if(!Pe.test(u))throw Error(e(65,u));g="<"+u,De.set(u,g)}return g}function Oe(u,g,C,P,z){switch(g){case"select":u.push(ye("select"));var B=null,G=null;for(ce in C)if(r.call(C,ce)){var ee=C[ce];if(ee!=null)switch(ce){case"children":B=ee;break;case"dangerouslySetInnerHTML":G=ee;break;case"defaultValue":case"value":break;default:K(u,P,ce,ee)}}return u.push(">"),te(u,G,B),B;case"option":G=z.selectedValue,u.push(ye("option"));var le=ee=null,fe=null,ce=null;for(B in C)if(r.call(C,B)){var be=C[B];if(be!=null)switch(B){case"children":ee=be;break;case"selected":fe=be;break;case"dangerouslySetInnerHTML":ce=be;break;case"value":le=be;default:K(u,P,B,be)}}if(G!=null)if(C=le!==null?""+le:ie(ee),O(G)){for(P=0;P<G.length;P++)if(""+G[P]===C){u.push(' selected=""');break}}else""+G===C&&u.push(' selected=""');else fe&&u.push(' selected=""');return u.push(">"),te(u,ce,ee),ee;case"textarea":u.push(ye("textarea")),ce=G=B=null;for(ee in C)if(r.call(C,ee)&&(le=C[ee],le!=null))switch(ee){case"children":ce=le;break;case"value":B=le;break;case"defaultValue":G=le;break;case"dangerouslySetInnerHTML":throw Error(e(91));default:K(u,P,ee,le)}if(B===null&&G!==null&&(B=G),u.push(">"),ce!=null){if(B!=null)throw Error(e(92));if(O(ce)&&1<ce.length)throw Error(e(93));B=""+ce}return typeof B=="string"&&B[0]===`
|
|
10
|
-
`&&u.push(`
|
|
11
|
-
`),B!==null&&u.push(N(""+B)),null;case"input":u.push(ye("input")),le=ce=ee=B=null;for(G in C)if(r.call(C,G)&&(fe=C[G],fe!=null))switch(G){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,"input"));case"defaultChecked":le=fe;break;case"defaultValue":ee=fe;break;case"checked":ce=fe;break;case"value":B=fe;break;default:K(u,P,G,fe)}return ce!==null?K(u,P,"checked",ce):le!==null&&K(u,P,"checked",le),B!==null?K(u,P,"value",B):ee!==null&&K(u,P,"value",ee),u.push("/>"),null;case"menuitem":u.push(ye("menuitem"));for(var pt in C)if(r.call(C,pt)&&(B=C[pt],B!=null))switch(pt){case"children":case"dangerouslySetInnerHTML":throw Error(e(400));default:K(u,P,pt,B)}return u.push(">"),null;case"title":u.push(ye("title")),B=null;for(be in C)if(r.call(C,be)&&(G=C[be],G!=null))switch(be){case"children":B=G;break;case"dangerouslySetInnerHTML":throw Error(e(434));default:K(u,P,be,G)}return u.push(">"),B;case"listing":case"pre":u.push(ye(g)),G=B=null;for(le in C)if(r.call(C,le)&&(ee=C[le],ee!=null))switch(le){case"children":B=ee;break;case"dangerouslySetInnerHTML":G=ee;break;default:K(u,P,le,ee)}if(u.push(">"),G!=null){if(B!=null)throw Error(e(60));if(typeof G!="object"||!("__html"in G))throw Error(e(61));C=G.__html,C!=null&&(typeof C=="string"&&0<C.length&&C[0]===`
|
|
12
|
-
`?u.push(`
|
|
13
|
-
`,C):u.push(""+C))}return typeof B=="string"&&B[0]===`
|
|
14
|
-
`&&u.push(`
|
|
15
|
-
`),B;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":u.push(ye(g));for(var ot in C)if(r.call(C,ot)&&(B=C[ot],B!=null))switch(ot){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,g));default:K(u,P,ot,B)}return u.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return se(u,C,g,P);case"html":return z.insertionMode===0&&u.push("<!DOCTYPE html>"),se(u,C,g,P);default:if(g.indexOf("-")===-1&&typeof C.is!="string")return se(u,C,g,P);u.push(ye(g)),G=B=null;for(fe in C)if(r.call(C,fe)&&(ee=C[fe],ee!=null))switch(fe){case"children":B=ee;break;case"dangerouslySetInnerHTML":G=ee;break;case"style":q(u,P,ee);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:p(fe)&&typeof ee!="function"&&typeof ee!="symbol"&&u.push(" ",fe,'="',N(ee),'"')}return u.push(">"),te(u,G,B),B}}function Ce(u,g,C){if(u.push('<!--$?--><template id="'),C===null)throw Error(e(395));return u.push(C),u.push('"></template>')}function et(u,g,C,P){switch(C.insertionMode){case 0:case 1:return u.push('<div hidden id="'),u.push(g.segmentPrefix),g=P.toString(16),u.push(g),u.push('">');case 2:return u.push('<svg aria-hidden="true" style="display:none" id="'),u.push(g.segmentPrefix),g=P.toString(16),u.push(g),u.push('">');case 3:return u.push('<math aria-hidden="true" style="display:none" id="'),u.push(g.segmentPrefix),g=P.toString(16),u.push(g),u.push('">');case 4:return u.push('<table hidden id="'),u.push(g.segmentPrefix),g=P.toString(16),u.push(g),u.push('">');case 5:return u.push('<table hidden><tbody id="'),u.push(g.segmentPrefix),g=P.toString(16),u.push(g),u.push('">');case 6:return u.push('<table hidden><tr id="'),u.push(g.segmentPrefix),g=P.toString(16),u.push(g),u.push('">');case 7:return u.push('<table hidden><colgroup id="'),u.push(g.segmentPrefix),g=P.toString(16),u.push(g),u.push('">');default:throw Error(e(397))}}function Fe(u,g){switch(g.insertionMode){case 0:case 1:return u.push("</div>");case 2:return u.push("</svg>");case 3:return u.push("</math>");case 4:return u.push("</table>");case 5:return u.push("</tbody></table>");case 6:return u.push("</tr></table>");case 7:return u.push("</colgroup></table>");default:throw Error(e(397))}}var tt=/[<\u2028\u2029]/g;function Ee(u){return JSON.stringify(u).replace(tt,function(g){switch(g){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function je(u,g){return g=g===void 0?"":g,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:g+"P:",segmentPrefix:g+"S:",boundaryPrefix:g+"B:",idPrefix:g,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:u}}function dt(u,g,C,P){return C.generateStaticMarkup?(u.push(N(g)),!1):(g===""?u=P:(P&&u.push("<!-- -->"),u.push(N(g)),u=!0),u)}var he=Object.assign,ke=Symbol.for("react.element"),ht=Symbol.for("react.portal"),yt=Symbol.for("react.fragment"),Re=Symbol.for("react.strict_mode"),Se=Symbol.for("react.profiler"),lt=Symbol.for("react.provider"),ut=Symbol.for("react.context"),Xe=Symbol.for("react.forward_ref"),Ke=Symbol.for("react.suspense"),Ae=Symbol.for("react.suspense_list"),Yt=Symbol.for("react.memo"),Be=Symbol.for("react.lazy"),He=Symbol.for("react.scope"),nn=Symbol.for("react.debug_trace_mode"),Dt=Symbol.for("react.legacy_hidden"),Dr=Symbol.for("react.default_value"),St=Symbol.iterator;function Sn(u){if(u==null)return null;if(typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case yt:return"Fragment";case ht:return"Portal";case Se:return"Profiler";case Re:return"StrictMode";case Ke:return"Suspense";case Ae:return"SuspenseList"}if(typeof u=="object")switch(u.$$typeof){case ut:return(u.displayName||"Context")+".Consumer";case lt:return(u._context.displayName||"Context")+".Provider";case Xe:var g=u.render;return u=u.displayName,u||(u=g.displayName||g.name||"",u=u!==""?"ForwardRef("+u+")":"ForwardRef"),u;case Yt:return g=u.displayName||null,g!==null?g:Sn(u.type)||"Memo";case Be:g=u._payload,u=u._init;try{return Sn(u(g))}catch{}}return null}var wn={};function Or(u,g){if(u=u.contextTypes,!u)return wn;var C={},P;for(P in u)C[P]=g[P];return C}var wt=null;function nt(u,g){if(u!==g){u.context._currentValue2=u.parentValue,u=u.parent;var C=g.parent;if(u===null){if(C!==null)throw Error(e(401))}else{if(C===null)throw Error(e(401));nt(u,C)}g.context._currentValue2=g.value}}function Ze(u){u.context._currentValue2=u.parentValue,u=u.parent,u!==null&&Ze(u)}function Kn(u){var g=u.parent;g!==null&&Kn(g),u.context._currentValue2=u.value}function qn(u,g){if(u.context._currentValue2=u.parentValue,u=u.parent,u===null)throw Error(e(402));u.depth===g.depth?nt(u,g):qn(u,g)}function er(u,g){var C=g.parent;if(C===null)throw Error(e(402));u.depth===C.depth?nt(u,C):er(u,C),g.context._currentValue2=g.value}function Ge(u){var g=wt;g!==u&&(g===null?Kn(u):u===null?Ze(g):g.depth===u.depth?nt(g,u):g.depth>u.depth?qn(g,u):er(g,u),wt=u)}var tr={isMounted:function(){return!1},enqueueSetState:function(u,g){u=u._reactInternals,u.queue!==null&&u.queue.push(g)},enqueueReplaceState:function(u,g){u=u._reactInternals,u.replace=!0,u.queue=[g]},enqueueForceUpdate:function(){}};function Fr(u,g,C,P){var z=u.state!==void 0?u.state:null;u.updater=tr,u.props=C,u.state=z;var B={queue:[],replace:!1};u._reactInternals=B;var G=g.contextType;if(u.context=typeof G=="object"&&G!==null?G._currentValue2:P,G=g.getDerivedStateFromProps,typeof G=="function"&&(G=G(C,z),z=G==null?z:he({},z,G),u.state=z),typeof g.getDerivedStateFromProps!="function"&&typeof u.getSnapshotBeforeUpdate!="function"&&(typeof u.UNSAFE_componentWillMount=="function"||typeof u.componentWillMount=="function"))if(g=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),g!==u.state&&tr.enqueueReplaceState(u,u.state,null),B.queue!==null&&0<B.queue.length)if(g=B.queue,G=B.replace,B.queue=null,B.replace=!1,G&&g.length===1)u.state=g[0];else{for(B=G?g[0]:u.state,z=!0,G=G?1:0;G<g.length;G++){var ee=g[G];ee=typeof ee=="function"?ee.call(u,B,C,P):ee,ee!=null&&(z?(z=!1,B=he({},B,ee)):he(B,ee))}u.state=B}else B.queue=null}var Lr={id:1,overflow:""};function nr(u,g,C){var P=u.id;u=u.overflow;var z=32-Fn(P)-1;P&=~(1<<z),C+=1;var B=32-Fn(g)+z;if(30<B){var G=z-z%5;return B=(P&(1<<G)-1).toString(32),P>>=G,z-=G,{id:1<<32-Fn(g)+z|C<<z|P,overflow:B+u}}return{id:1<<B|C<<z|P,overflow:u}}var Fn=Math.clz32?Math.clz32:rn,vo=Math.log,rr=Math.LN2;function rn(u){return u>>>=0,u===0?32:31-(vo(u)/rr|0)|0}function or(u,g){return u===g&&(u!==0||1/u===1/g)||u!==u&&g!==g}var _r=typeof Object.is=="function"?Object.is:or,ct=null,Ot=null,on=null,Te=null,an=!1,Ln=!1,kn=0,Ft=null,_n=0;function Xt(){if(ct===null)throw Error(e(321));return ct}function We(){if(0<_n)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function ir(){return Te===null?on===null?(an=!1,on=Te=We()):(an=!0,Te=on):Te.next===null?(an=!1,Te=Te.next=We()):(an=!0,Te=Te.next),Te}function ar(){Ot=ct=null,Ln=!1,on=null,_n=0,Te=Ft=null}function jr(u,g){return typeof g=="function"?g(u):g}function $e(u,g,C){if(ct=Xt(),Te=ir(),an){var P=Te.queue;if(g=P.dispatch,Ft!==null&&(C=Ft.get(P),C!==void 0)){Ft.delete(P),P=Te.memoizedState;do P=u(P,C.action),C=C.next;while(C!==null);return Te.memoizedState=P,[P,g]}return[Te.memoizedState,g]}return u=u===jr?typeof g=="function"?g():g:C!==void 0?C(g):g,Te.memoizedState=u,u=Te.queue={last:null,dispatch:null},u=u.dispatch=go.bind(null,ct,u),[Te.memoizedState,u]}function sr(u,g){if(ct=Xt(),Te=ir(),g=g===void 0?null:g,Te!==null){var C=Te.memoizedState;if(C!==null&&g!==null){var P=C[1];e:if(P===null)P=!1;else{for(var z=0;z<P.length&&z<g.length;z++)if(!_r(g[z],P[z])){P=!1;break e}P=!0}if(P)return C[0]}}return u=u(),Te.memoizedState=[u,g],u}function go(u,g,C){if(25<=_n)throw Error(e(301));if(u===ct)if(Ln=!0,u={action:C,next:null},Ft===null&&(Ft=new Map),C=Ft.get(g),C===void 0)Ft.set(g,u);else{for(g=C;g.next!==null;)g=g.next;g.next=u}}function yo(){throw Error(e(394))}function Lt(){}var lr={readContext:function(u){return u._currentValue2},useContext:function(u){return Xt(),u._currentValue2},useMemo:sr,useReducer:$e,useRef:function(u){ct=Xt(),Te=ir();var g=Te.memoizedState;return g===null?(u={current:u},Te.memoizedState=u):g},useState:function(u){return $e(jr,u)},useInsertionEffect:Lt,useLayoutEffect:function(){},useCallback:function(u,g){return sr(function(){return u},g)},useImperativeHandle:Lt,useEffect:Lt,useDebugValue:Lt,useDeferredValue:function(u){return Xt(),u},useTransition:function(){return Xt(),[!1,yo]},useId:function(){var u=Ot.treeContext,g=u.overflow;u=u.id,u=(u&~(1<<32-Fn(u)-1)).toString(32)+g;var C=jn;if(C===null)throw Error(e(404));return g=kn++,u=":"+C.idPrefix+"R"+u,0<g&&(u+="H"+g.toString(32)),u+":"},useMutableSource:function(u,g){return Xt(),g(u._source)},useSyncExternalStore:function(u,g,C){if(C===void 0)throw Error(e(407));return C()}},jn=null,ur=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Tn(u){return console.error(u),null}function sn(){}function bo(u,g,C,P,z,B,G,ee,le){var fe=[],ce=new Set;return g={destination:null,responseState:g,progressiveChunkSize:P===void 0?12800:P,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:ce,pingedTasks:fe,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:z===void 0?Tn:z,onAllReady:B===void 0?sn:B,onShellReady:G===void 0?sn:G,onShellError:ee===void 0?sn:ee,onFatalError:le===void 0?sn:le},C=Bn(g,0,null,C,!1,!1),C.parentFlushed=!0,u=cr(g,u,null,C,ce,wn,null,Lr),fe.push(u),g}function cr(u,g,C,P,z,B,G,ee){u.allPendingTasks++,C===null?u.pendingRootTasks++:C.pendingTasks++;var le={node:g,ping:function(){var fe=u.pingedTasks;fe.push(le),fe.length===1&&ft(u)},blockedBoundary:C,blockedSegment:P,abortSet:z,legacyContext:B,context:G,treeContext:ee};return z.add(le),le}function Bn(u,g,C,P,z,B){return{status:0,id:-1,index:g,parentFlushed:!1,chunks:[],children:[],formatContext:P,boundary:C,lastPushedText:z,textEmbedded:B}}function ln(u,g){if(u=u.onError(g),u!=null&&typeof u!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof u+'" instead');return u}function Zt(u,g){var C=u.onShellError;C(g),C=u.onFatalError,C(g),u.destination!==null?(u.status=2,u.destination.destroy(g)):(u.status=1,u.fatalError=g)}function _t(u,g,C,P,z){for(ct={},Ot=g,kn=0,u=C(P,z);Ln;)Ln=!1,kn=0,_n+=1,Te=null,u=C(P,z);return ar(),u}function Cn(u,g,C,P){var z=C.render(),B=P.childContextTypes;if(B!=null){var G=g.legacyContext;if(typeof C.getChildContext!="function")P=G;else{C=C.getChildContext();for(var ee in C)if(!(ee in B))throw Error(e(108,Sn(P)||"Unknown",ee));P=he({},G,C)}g.legacyContext=P,Ve(u,g,z),g.legacyContext=G}else Ve(u,g,z)}function En(u,g){if(u&&u.defaultProps){g=he({},g),u=u.defaultProps;for(var C in u)g[C]===void 0&&(g[C]=u[C]);return g}return g}function bt(u,g,C,P,z){if(typeof C=="function")if(C.prototype&&C.prototype.isReactComponent){z=Or(C,g.legacyContext);var B=C.contextType;B=new C(P,typeof B=="object"&&B!==null?B._currentValue2:z),Fr(B,C,P,z),Cn(u,g,B,C)}else{B=Or(C,g.legacyContext),z=_t(u,g,C,P,B);var G=kn!==0;if(typeof z=="object"&&z!==null&&typeof z.render=="function"&&z.$$typeof===void 0)Fr(z,C,P,B),Cn(u,g,z,C);else if(G){P=g.treeContext,g.treeContext=nr(P,1,0);try{Ve(u,g,z)}finally{g.treeContext=P}}else Ve(u,g,z)}else if(typeof C=="string"){switch(z=g.blockedSegment,B=Oe(z.chunks,C,P,u.responseState,z.formatContext),z.lastPushedText=!1,G=z.formatContext,z.formatContext=$(G,C,P),kt(u,g,B),z.formatContext=G,C){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:z.chunks.push("</",C,">")}z.lastPushedText=!1}else{switch(C){case Dt:case nn:case Re:case Se:case yt:Ve(u,g,P.children);return;case Ae:Ve(u,g,P.children);return;case He:throw Error(e(343));case Ke:e:{C=g.blockedBoundary,z=g.blockedSegment,B=P.fallback,P=P.children,G=new Set;var ee={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:G,errorDigest:null},le=Bn(u,z.chunks.length,ee,z.formatContext,!1,!1);z.children.push(le),z.lastPushedText=!1;var fe=Bn(u,0,null,z.formatContext,!1,!1);fe.parentFlushed=!0,g.blockedBoundary=ee,g.blockedSegment=fe;try{if(kt(u,g,P),u.responseState.generateStaticMarkup||fe.lastPushedText&&fe.textEmbedded&&fe.chunks.push("<!-- -->"),fe.status=1,Bt(ee,fe),ee.pendingTasks===0)break e}catch(ce){fe.status=4,ee.forceClientRender=!0,ee.errorDigest=ln(u,ce)}finally{g.blockedBoundary=C,g.blockedSegment=z}g=cr(u,B,C,le,G,g.legacyContext,g.context,g.treeContext),u.pingedTasks.push(g)}return}if(typeof C=="object"&&C!==null)switch(C.$$typeof){case Xe:if(P=_t(u,g,C.render,P,z),kn!==0){C=g.treeContext,g.treeContext=nr(C,1,0);try{Ve(u,g,P)}finally{g.treeContext=C}}else Ve(u,g,P);return;case Yt:C=C.type,P=En(C,P),bt(u,g,C,P,z);return;case lt:if(z=P.children,C=C._context,P=P.value,B=C._currentValue2,C._currentValue2=P,G=wt,wt=P={parent:G,depth:G===null?0:G.depth+1,context:C,parentValue:B,value:P},g.context=P,Ve(u,g,z),u=wt,u===null)throw Error(e(403));P=u.parentValue,u.context._currentValue2=P===Dr?u.context._defaultValue:P,u=wt=u.parent,g.context=u;return;case ut:P=P.children,P=P(C._currentValue2),Ve(u,g,P);return;case Be:z=C._init,C=z(C._payload),P=En(C,P),bt(u,g,C,P,void 0);return}throw Error(e(130,C==null?C:typeof C,""))}}function Ve(u,g,C){if(g.node=C,typeof C=="object"&&C!==null){switch(C.$$typeof){case ke:bt(u,g,C.type,C.props,C.ref);return;case ht:throw Error(e(257));case Be:var P=C._init;C=P(C._payload),Ve(u,g,C);return}if(O(C)){jt(u,g,C);return}if(C===null||typeof C!="object"?P=null:(P=St&&C[St]||C["@@iterator"],P=typeof P=="function"?P:null),P&&(P=P.call(C))){if(C=P.next(),!C.done){var z=[];do z.push(C.value),C=P.next();while(!C.done);jt(u,g,z)}return}throw u=Object.prototype.toString.call(C),Error(e(31,u==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":u))}typeof C=="string"?(P=g.blockedSegment,P.lastPushedText=dt(g.blockedSegment.chunks,C,u.responseState,P.lastPushedText)):typeof C=="number"&&(P=g.blockedSegment,P.lastPushedText=dt(g.blockedSegment.chunks,""+C,u.responseState,P.lastPushedText))}function jt(u,g,C){for(var P=C.length,z=0;z<P;z++){var B=g.treeContext;g.treeContext=nr(B,P,z);try{kt(u,g,C[z])}finally{g.treeContext=B}}}function kt(u,g,C){var P=g.blockedSegment.formatContext,z=g.legacyContext,B=g.context;try{return Ve(u,g,C)}catch(le){if(ar(),typeof le=="object"&&le!==null&&typeof le.then=="function"){C=le;var G=g.blockedSegment,ee=Bn(u,G.chunks.length,null,G.formatContext,G.lastPushedText,!0);G.children.push(ee),G.lastPushedText=!1,u=cr(u,g.node,g.blockedBoundary,ee,g.abortSet,g.legacyContext,g.context,g.treeContext).ping,C.then(u,u),g.blockedSegment.formatContext=P,g.legacyContext=z,g.context=B,Ge(B)}else throw g.blockedSegment.formatContext=P,g.legacyContext=z,g.context=B,Ge(B),le}}function qe(u){var g=u.blockedBoundary;u=u.blockedSegment,u.status=3,Vt(this,g,u)}function Vn(u,g,C){var P=u.blockedBoundary;u.blockedSegment.status=3,P===null?(g.allPendingTasks--,g.status!==2&&(g.status=2,g.destination!==null&&g.destination.push(null))):(P.pendingTasks--,P.forceClientRender||(P.forceClientRender=!0,u=C===void 0?Error(e(432)):C,P.errorDigest=g.onError(u),P.parentFlushed&&g.clientRenderedBoundaries.push(P)),P.fallbackAbortableTasks.forEach(function(z){return Vn(z,g,C)}),P.fallbackAbortableTasks.clear(),g.allPendingTasks--,g.allPendingTasks===0&&(P=g.onAllReady,P()))}function Bt(u,g){if(g.chunks.length===0&&g.children.length===1&&g.children[0].boundary===null){var C=g.children[0];C.id=g.id,C.parentFlushed=!0,C.status===1&&Bt(u,C)}else u.completedSegments.push(g)}function Vt(u,g,C){if(g===null){if(C.parentFlushed){if(u.completedRootSegment!==null)throw Error(e(389));u.completedRootSegment=C}u.pendingRootTasks--,u.pendingRootTasks===0&&(u.onShellError=sn,g=u.onShellReady,g())}else g.pendingTasks--,g.forceClientRender||(g.pendingTasks===0?(C.parentFlushed&&C.status===1&&Bt(g,C),g.parentFlushed&&u.completedBoundaries.push(g),g.fallbackAbortableTasks.forEach(qe,u),g.fallbackAbortableTasks.clear()):C.parentFlushed&&C.status===1&&(Bt(g,C),g.completedSegments.length===1&&g.parentFlushed&&u.partialBoundaries.push(g)));u.allPendingTasks--,u.allPendingTasks===0&&(u=u.onAllReady,u())}function ft(u){if(u.status!==2){var g=wt,C=ur.current;ur.current=lr;var P=jn;jn=u.responseState;try{var z=u.pingedTasks,B;for(B=0;B<z.length;B++){var G=z[B],ee=u,le=G.blockedSegment;if(le.status===0){Ge(G.context);try{Ve(ee,G,G.node),ee.responseState.generateStaticMarkup||le.lastPushedText&&le.textEmbedded&&le.chunks.push("<!-- -->"),G.abortSet.delete(G),le.status=1,Vt(ee,G.blockedBoundary,le)}catch(it){if(ar(),typeof it=="object"&&it!==null&&typeof it.then=="function"){var fe=G.ping;it.then(fe,fe)}else{G.abortSet.delete(G),le.status=4;var ce=G.blockedBoundary,be=it,pt=ln(ee,be);if(ce===null?Zt(ee,be):(ce.pendingTasks--,ce.forceClientRender||(ce.forceClientRender=!0,ce.errorDigest=pt,ce.parentFlushed&&ee.clientRenderedBoundaries.push(ce))),ee.allPendingTasks--,ee.allPendingTasks===0){var ot=ee.onAllReady;ot()}}}finally{}}}z.splice(0,B),u.destination!==null&&cn(u,u.destination)}catch(it){ln(u,it),Zt(u,it)}finally{jn=P,ur.current=C,C===lr&&Ge(g)}}}function Qt(u,g,C){switch(C.parentFlushed=!0,C.status){case 0:var P=C.id=u.nextSegmentId++;return C.lastPushedText=!1,C.textEmbedded=!1,u=u.responseState,g.push('<template id="'),g.push(u.placeholderPrefix),u=P.toString(16),g.push(u),g.push('"></template>');case 1:C.status=2;var z=!0;P=C.chunks;var B=0;C=C.children;for(var G=0;G<C.length;G++){for(z=C[G];B<z.index;B++)g.push(P[B]);z=un(u,g,z)}for(;B<P.length-1;B++)g.push(P[B]);return B<P.length&&(z=g.push(P[B])),z;default:throw Error(e(390))}}function un(u,g,C){var P=C.boundary;if(P===null)return Qt(u,g,C);if(P.parentFlushed=!0,P.forceClientRender)return u.responseState.generateStaticMarkup||(P=P.errorDigest,g.push("<!--$!-->"),g.push("<template"),P&&(g.push(' data-dgst="'),P=N(P),g.push(P),g.push('"')),g.push("></template>")),Qt(u,g,C),u=u.responseState.generateStaticMarkup?!0:g.push("<!--/$-->"),u;if(0<P.pendingTasks){P.rootSegmentID=u.nextSegmentId++,0<P.completedSegments.length&&u.partialBoundaries.push(P);var z=u.responseState,B=z.nextSuspenseID++;return z=z.boundaryPrefix+B.toString(16),P=P.id=z,Ce(g,u.responseState,P),Qt(u,g,C),g.push("<!--/$-->")}if(P.byteSize>u.progressiveChunkSize)return P.rootSegmentID=u.nextSegmentId++,u.completedBoundaries.push(P),Ce(g,u.responseState,P.id),Qt(u,g,C),g.push("<!--/$-->");if(u.responseState.generateStaticMarkup||g.push("<!--$-->"),C=P.completedSegments,C.length!==1)throw Error(e(391));return un(u,g,C[0]),u=u.responseState.generateStaticMarkup?!0:g.push("<!--/$-->"),u}function fr(u,g,C){return et(g,u.responseState,C.formatContext,C.id),un(u,g,C),Fe(g,C.formatContext)}function dr(u,g,C){for(var P=C.completedSegments,z=0;z<P.length;z++)zn(u,g,C,P[z]);if(P.length=0,u=u.responseState,P=C.id,C=C.rootSegmentID,g.push(u.startInlineScript),u.sentCompleteBoundaryFunction?g.push('$RC("'):(u.sentCompleteBoundaryFunction=!0,g.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),P===null)throw Error(e(395));return C=C.toString(16),g.push(P),g.push('","'),g.push(u.segmentPrefix),g.push(C),g.push('")<\/script>')}function zn(u,g,C,P){if(P.status===2)return!0;var z=P.id;if(z===-1){if((P.id=C.rootSegmentID)===-1)throw Error(e(392));return fr(u,g,P)}return fr(u,g,P),u=u.responseState,g.push(u.startInlineScript),u.sentCompleteSegmentFunction?g.push('$RS("'):(u.sentCompleteSegmentFunction=!0,g.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),g.push(u.segmentPrefix),z=z.toString(16),g.push(z),g.push('","'),g.push(u.placeholderPrefix),g.push(z),g.push('")<\/script>')}function cn(u,g){try{var C=u.completedRootSegment;if(C!==null&&u.pendingRootTasks===0){un(u,g,C),u.completedRootSegment=null;var P=u.responseState.bootstrapChunks;for(C=0;C<P.length-1;C++)g.push(P[C]);C<P.length&&g.push(P[C])}var z=u.clientRenderedBoundaries,B;for(B=0;B<z.length;B++){var G=z[B];P=g;var ee=u.responseState,le=G.id,fe=G.errorDigest,ce=G.errorMessage,be=G.errorComponentStack;if(P.push(ee.startInlineScript),ee.sentClientRenderFunction?P.push('$RX("'):(ee.sentClientRenderFunction=!0,P.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),le===null)throw Error(e(395));if(P.push(le),P.push('"'),fe||ce||be){P.push(",");var pt=Ee(fe||"");P.push(pt)}if(ce||be){P.push(",");var ot=Ee(ce||"");P.push(ot)}if(be){P.push(",");var it=Ee(be);P.push(it)}if(!P.push(")<\/script>")){u.destination=null,B++,z.splice(0,B);return}}z.splice(0,B);var Jt=u.completedBoundaries;for(B=0;B<Jt.length;B++)if(!dr(u,g,Jt[B])){u.destination=null,B++,Jt.splice(0,B);return}Jt.splice(0,B);var Tt=u.partialBoundaries;for(B=0;B<Tt.length;B++){var Nn=Tt[B];e:{z=u,G=g;var fn=Nn.completedSegments;for(ee=0;ee<fn.length;ee++)if(!zn(z,G,Nn,fn[ee])){ee++,fn.splice(0,ee);var Rn=!1;break e}fn.splice(0,ee),Rn=!0}if(!Rn){u.destination=null,B++,Tt.splice(0,B);return}}Tt.splice(0,B);var Kt=u.completedBoundaries;for(B=0;B<Kt.length;B++)if(!dr(u,g,Kt[B])){u.destination=null,B++,Kt.splice(0,B);return}Kt.splice(0,B)}finally{u.allPendingTasks===0&&u.pingedTasks.length===0&&u.clientRenderedBoundaries.length===0&&u.completedBoundaries.length===0&&g.push(null)}}function hr(u,g){try{var C=u.abortableTasks;C.forEach(function(P){return Vn(P,u,g)}),C.clear(),u.destination!==null&&cn(u,u.destination)}catch(P){ln(u,P),Zt(u,P)}}function Wn(){}function Un(u,g,C,P){var z=!1,B=null,G="",ee={push:function(fe){return fe!==null&&(G+=fe),!0},destroy:function(fe){z=!0,B=fe}},le=!1;if(u=bo(u,je(C,g?g.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,Wn,void 0,function(){le=!0},void 0,void 0),ft(u),hr(u,P),u.status===1)u.status=2,ee.destroy(u.fatalError);else if(u.status!==2&&u.destination===null){u.destination=ee;try{cn(u,ee)}catch(fe){ln(u,fe),Zt(u,fe)}}if(z)throw B;if(!le)throw Error(e(426));return G}return ei.renderToNodeStream=function(){throw Error(e(207))},ei.renderToStaticMarkup=function(u,g){return Un(u,g,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},ei.renderToStaticNodeStream=function(){throw Error(e(208))},ei.renderToString=function(u,g){return Un(u,g,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},ei.version="18.2.0",ei}var vl={};/**
|
|
16
|
-
* @license React
|
|
17
|
-
* react-dom-server.browser.production.min.js
|
|
18
|
-
*
|
|
19
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
20
|
-
*
|
|
21
|
-
* This source code is licensed under the MIT license found in the
|
|
22
|
-
* LICENSE file in the root directory of this source tree.
|
|
23
|
-
*/var Uc;function rp(){if(Uc)return vl;Uc=1;var t=oe;function e(c){for(var y="https://reactjs.org/docs/error-decoder.html?invariant="+c,T=1;T<arguments.length;T++)y+="&args[]="+encodeURIComponent(arguments[T]);return"Minified React error #"+c+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=null,i=0;function a(c,y){if(y.length!==0)if(512<y.length)0<i&&(c.enqueue(new Uint8Array(r.buffer,0,i)),r=new Uint8Array(512),i=0),c.enqueue(y);else{var T=r.length-i;T<y.length&&(T===0?c.enqueue(r):(r.set(y.subarray(0,T),i),c.enqueue(r),y=y.subarray(T)),r=new Uint8Array(512),i=0),r.set(y,i),i+=y.length}}function h(c,y){return a(c,y),!0}function p(c){r&&0<i&&(c.enqueue(new Uint8Array(r.buffer,0,i)),r=null,i=0)}var S=new TextEncoder;function m(c){return S.encode(c)}function b(c){return S.encode(c)}function R(c,y){typeof c.error=="function"?c.error(y):c.close()}var w=Object.prototype.hasOwnProperty,D=/^[: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]*$/,_={},N={};function Y(c){return w.call(N,c)?!0:w.call(_,c)?!1:D.test(c)?N[c]=!0:(_[c]=!0,!1)}function j(c,y,T,A,W,V,Z){this.acceptsBooleans=y===2||y===3||y===4,this.attributeName=A,this.attributeNamespace=W,this.mustUseProperty=T,this.propertyName=c,this.type=y,this.sanitizeURL=V,this.removeEmptyString=Z}var O={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(c){O[c]=new j(c,0,!1,c,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(c){var y=c[0];O[y]=new j(y,1,!1,c[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(c){O[c]=new j(c,2,!1,c.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(c){O[c]=new j(c,2,!1,c,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(c){O[c]=new j(c,3,!1,c.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(c){O[c]=new j(c,3,!0,c,null,!1,!1)}),["capture","download"].forEach(function(c){O[c]=new j(c,4,!1,c,null,!1,!1)}),["cols","rows","size","span"].forEach(function(c){O[c]=new j(c,6,!1,c,null,!1,!1)}),["rowSpan","start"].forEach(function(c){O[c]=new j(c,5,!1,c.toLowerCase(),null,!1,!1)});var X=/[\-:]([a-z])/g;function $(c){return c[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(c){var y=c.replace(X,$);O[y]=new j(y,1,!1,c,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(c){var y=c.replace(X,$);O[y]=new j(y,1,!1,c,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(c){var y=c.replace(X,$);O[y]=new j(y,1,!1,c,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(c){O[c]=new j(c,1,!1,c.toLowerCase(),null,!1,!1)}),O.xlinkHref=new j("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(c){O[c]=new j(c,1,!1,c.toLowerCase(),null,!0,!0)});var J={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},q=["Webkit","ms","Moz","O"];Object.keys(J).forEach(function(c){q.forEach(function(y){y=y+c.charAt(0).toUpperCase()+c.substring(1),J[y]=J[c]})});var K=/["'&<>]/;function te(c){if(typeof c=="boolean"||typeof c=="number")return""+c;c=""+c;var y=K.exec(c);if(y){var T="",A,W=0;for(A=y.index;A<c.length;A++){switch(c.charCodeAt(A)){case 34:y=""";break;case 38:y="&";break;case 39:y="'";break;case 60:y="<";break;case 62:y=">";break;default:continue}W!==A&&(T+=c.substring(W,A)),W=A+1,T+=y}c=W!==A?T+c.substring(W,A):T}return c}var ie=/([A-Z])/g,se=/^ms-/,Pe=Array.isArray,De=b("<script>"),ye=b("<\/script>"),Oe=b('<script src="'),Ce=b('<script type="module" src="'),et=b('" async=""><\/script>'),Fe=/(<\/|<)(s)(cript)/gi;function tt(c,y,T,A){return""+y+(T==="s"?"\\u0073":"\\u0053")+A}function Ee(c,y,T,A,W){c=c===void 0?"":c,y=y===void 0?De:b('<script nonce="'+te(y)+'">');var V=[];if(T!==void 0&&V.push(y,m((""+T).replace(Fe,tt)),ye),A!==void 0)for(T=0;T<A.length;T++)V.push(Oe,m(te(A[T])),et);if(W!==void 0)for(A=0;A<W.length;A++)V.push(Ce,m(te(W[A])),et);return{bootstrapChunks:V,startInlineScript:y,placeholderPrefix:b(c+"P:"),segmentPrefix:b(c+"S:"),boundaryPrefix:c+"B:",idPrefix:c,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function je(c,y){return{insertionMode:c,selectedValue:y}}function dt(c){return je(c==="http://www.w3.org/2000/svg"?2:c==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function he(c,y,T){switch(y){case"select":return je(1,T.value!=null?T.value:T.defaultValue);case"svg":return je(2,null);case"math":return je(3,null);case"foreignObject":return je(1,null);case"table":return je(4,null);case"thead":case"tbody":case"tfoot":return je(5,null);case"colgroup":return je(7,null);case"tr":return je(6,null)}return 4<=c.insertionMode||c.insertionMode===0?je(1,null):c}var ke=b("<!-- -->");function ht(c,y,T,A){return y===""?A:(A&&c.push(ke),c.push(m(te(y))),!0)}var yt=new Map,Re=b(' style="'),Se=b(":"),lt=b(";");function ut(c,y,T){if(typeof T!="object")throw Error(e(62));y=!0;for(var A in T)if(w.call(T,A)){var W=T[A];if(W!=null&&typeof W!="boolean"&&W!==""){if(A.indexOf("--")===0){var V=m(te(A));W=m(te((""+W).trim()))}else{V=A;var Z=yt.get(V);Z!==void 0||(Z=b(te(V.replace(ie,"-$1").toLowerCase().replace(se,"-ms-"))),yt.set(V,Z)),V=Z,W=typeof W=="number"?W===0||w.call(J,A)?m(""+W):m(W+"px"):m(te((""+W).trim()))}y?(y=!1,c.push(Re,V,Se,W)):c.push(lt,V,Se,W)}}y||c.push(Ae)}var Xe=b(" "),Ke=b('="'),Ae=b('"'),Yt=b('=""');function Be(c,y,T,A){switch(T){case"style":ut(c,y,A);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<T.length)||T[0]!=="o"&&T[0]!=="O"||T[1]!=="n"&&T[1]!=="N"){if(y=O.hasOwnProperty(T)?O[T]:null,y!==null){switch(typeof A){case"function":case"symbol":return;case"boolean":if(!y.acceptsBooleans)return}switch(T=m(y.attributeName),y.type){case 3:A&&c.push(Xe,T,Yt);break;case 4:A===!0?c.push(Xe,T,Yt):A!==!1&&c.push(Xe,T,Ke,m(te(A)),Ae);break;case 5:isNaN(A)||c.push(Xe,T,Ke,m(te(A)),Ae);break;case 6:!isNaN(A)&&1<=A&&c.push(Xe,T,Ke,m(te(A)),Ae);break;default:y.sanitizeURL&&(A=""+A),c.push(Xe,T,Ke,m(te(A)),Ae)}}else if(Y(T)){switch(typeof A){case"function":case"symbol":return;case"boolean":if(y=T.toLowerCase().slice(0,5),y!=="data-"&&y!=="aria-")return}c.push(Xe,m(T),Ke,m(te(A)),Ae)}}}var He=b(">"),nn=b("/>");function Dt(c,y,T){if(y!=null){if(T!=null)throw Error(e(60));if(typeof y!="object"||!("__html"in y))throw Error(e(61));y=y.__html,y!=null&&c.push(m(""+y))}}function Dr(c){var y="";return t.Children.forEach(c,function(T){T!=null&&(y+=T)}),y}var St=b(' selected=""');function Sn(c,y,T,A){c.push(nt(T));var W=T=null,V;for(V in y)if(w.call(y,V)){var Z=y[V];if(Z!=null)switch(V){case"children":T=Z;break;case"dangerouslySetInnerHTML":W=Z;break;default:Be(c,A,V,Z)}}return c.push(He),Dt(c,W,T),typeof T=="string"?(c.push(m(te(T))),null):T}var wn=b(`
|
|
24
|
-
`),Or=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,wt=new Map;function nt(c){var y=wt.get(c);if(y===void 0){if(!Or.test(c))throw Error(e(65,c));y=b("<"+c),wt.set(c,y)}return y}var Ze=b("<!DOCTYPE html>");function Kn(c,y,T,A,W){switch(y){case"select":c.push(nt("select"));var V=null,Z=null;for(ve in T)if(w.call(T,ve)){var ne=T[ve];if(ne!=null)switch(ve){case"children":V=ne;break;case"dangerouslySetInnerHTML":Z=ne;break;case"defaultValue":case"value":break;default:Be(c,A,ve,ne)}}return c.push(He),Dt(c,Z,V),V;case"option":Z=W.selectedValue,c.push(nt("option"));var de=ne=null,ge=null,ve=null;for(V in T)if(w.call(T,V)){var Le=T[V];if(Le!=null)switch(V){case"children":ne=Le;break;case"selected":ge=Le;break;case"dangerouslySetInnerHTML":ve=Le;break;case"value":de=Le;default:Be(c,A,V,Le)}}if(Z!=null)if(T=de!==null?""+de:Dr(ne),Pe(Z)){for(A=0;A<Z.length;A++)if(""+Z[A]===T){c.push(St);break}}else""+Z===T&&c.push(St);else ge&&c.push(St);return c.push(He),Dt(c,ve,ne),ne;case"textarea":c.push(nt("textarea")),ve=Z=V=null;for(ne in T)if(w.call(T,ne)&&(de=T[ne],de!=null))switch(ne){case"children":ve=de;break;case"value":V=de;break;case"defaultValue":Z=de;break;case"dangerouslySetInnerHTML":throw Error(e(91));default:Be(c,A,ne,de)}if(V===null&&Z!==null&&(V=Z),c.push(He),ve!=null){if(V!=null)throw Error(e(92));if(Pe(ve)&&1<ve.length)throw Error(e(93));V=""+ve}return typeof V=="string"&&V[0]===`
|
|
25
|
-
`&&c.push(wn),V!==null&&c.push(m(te(""+V))),null;case"input":c.push(nt("input")),de=ve=ne=V=null;for(Z in T)if(w.call(T,Z)&&(ge=T[Z],ge!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,"input"));case"defaultChecked":de=ge;break;case"defaultValue":ne=ge;break;case"checked":ve=ge;break;case"value":V=ge;break;default:Be(c,A,Z,ge)}return ve!==null?Be(c,A,"checked",ve):de!==null&&Be(c,A,"checked",de),V!==null?Be(c,A,"value",V):ne!==null&&Be(c,A,"value",ne),c.push(nn),null;case"menuitem":c.push(nt("menuitem"));for(var gt in T)if(w.call(T,gt)&&(V=T[gt],V!=null))switch(gt){case"children":case"dangerouslySetInnerHTML":throw Error(e(400));default:Be(c,A,gt,V)}return c.push(He),null;case"title":c.push(nt("title")),V=null;for(Le in T)if(w.call(T,Le)&&(Z=T[Le],Z!=null))switch(Le){case"children":V=Z;break;case"dangerouslySetInnerHTML":throw Error(e(434));default:Be(c,A,Le,Z)}return c.push(He),V;case"listing":case"pre":c.push(nt(y)),Z=V=null;for(de in T)if(w.call(T,de)&&(ne=T[de],ne!=null))switch(de){case"children":V=ne;break;case"dangerouslySetInnerHTML":Z=ne;break;default:Be(c,A,de,ne)}if(c.push(He),Z!=null){if(V!=null)throw Error(e(60));if(typeof Z!="object"||!("__html"in Z))throw Error(e(61));T=Z.__html,T!=null&&(typeof T=="string"&&0<T.length&&T[0]===`
|
|
26
|
-
`?c.push(wn,m(T)):c.push(m(""+T)))}return typeof V=="string"&&V[0]===`
|
|
27
|
-
`&&c.push(wn),V;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":c.push(nt(y));for(var Et in T)if(w.call(T,Et)&&(V=T[Et],V!=null))switch(Et){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,y));default:Be(c,A,Et,V)}return c.push(nn),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return Sn(c,T,y,A);case"html":return W.insertionMode===0&&c.push(Ze),Sn(c,T,y,A);default:if(y.indexOf("-")===-1&&typeof T.is!="string")return Sn(c,T,y,A);c.push(nt(y)),Z=V=null;for(ge in T)if(w.call(T,ge)&&(ne=T[ge],ne!=null))switch(ge){case"children":V=ne;break;case"dangerouslySetInnerHTML":Z=ne;break;case"style":ut(c,A,ne);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Y(ge)&&typeof ne!="function"&&typeof ne!="symbol"&&c.push(Xe,m(ge),Ke,m(te(ne)),Ae)}return c.push(He),Dt(c,Z,V),V}}var qn=b("</"),er=b(">"),Ge=b('<template id="'),tr=b('"></template>'),Fr=b("<!--$-->"),Lr=b('<!--$?--><template id="'),nr=b('"></template>'),Fn=b("<!--$!-->"),vo=b("<!--/$-->"),rr=b("<template"),rn=b('"'),or=b(' data-dgst="');b(' data-msg="'),b(' data-stck="');var _r=b("></template>");function ct(c,y,T){if(a(c,Lr),T===null)throw Error(e(395));return a(c,T),h(c,nr)}var Ot=b('<div hidden id="'),on=b('">'),Te=b("</div>"),an=b('<svg aria-hidden="true" style="display:none" id="'),Ln=b('">'),kn=b("</svg>"),Ft=b('<math aria-hidden="true" style="display:none" id="'),_n=b('">'),Xt=b("</math>"),We=b('<table hidden id="'),ir=b('">'),ar=b("</table>"),jr=b('<table hidden><tbody id="'),$e=b('">'),sr=b("</tbody></table>"),go=b('<table hidden><tr id="'),yo=b('">'),Lt=b("</tr></table>"),lr=b('<table hidden><colgroup id="'),jn=b('">'),ur=b("</colgroup></table>");function Tn(c,y,T,A){switch(T.insertionMode){case 0:case 1:return a(c,Ot),a(c,y.segmentPrefix),a(c,m(A.toString(16))),h(c,on);case 2:return a(c,an),a(c,y.segmentPrefix),a(c,m(A.toString(16))),h(c,Ln);case 3:return a(c,Ft),a(c,y.segmentPrefix),a(c,m(A.toString(16))),h(c,_n);case 4:return a(c,We),a(c,y.segmentPrefix),a(c,m(A.toString(16))),h(c,ir);case 5:return a(c,jr),a(c,y.segmentPrefix),a(c,m(A.toString(16))),h(c,$e);case 6:return a(c,go),a(c,y.segmentPrefix),a(c,m(A.toString(16))),h(c,yo);case 7:return a(c,lr),a(c,y.segmentPrefix),a(c,m(A.toString(16))),h(c,jn);default:throw Error(e(397))}}function sn(c,y){switch(y.insertionMode){case 0:case 1:return h(c,Te);case 2:return h(c,kn);case 3:return h(c,Xt);case 4:return h(c,ar);case 5:return h(c,sr);case 6:return h(c,Lt);case 7:return h(c,ur);default:throw Error(e(397))}}var bo=b('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),cr=b('$RS("'),Bn=b('","'),ln=b('")<\/script>'),Zt=b('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),_t=b('$RC("'),Cn=b('","'),En=b('")<\/script>'),bt=b('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),Ve=b('$RX("'),jt=b('"'),kt=b(")<\/script>"),qe=b(","),Vn=/[<\u2028\u2029]/g;function Bt(c){return JSON.stringify(c).replace(Vn,function(y){switch(y){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var Vt=Object.assign,ft=Symbol.for("react.element"),Qt=Symbol.for("react.portal"),un=Symbol.for("react.fragment"),fr=Symbol.for("react.strict_mode"),dr=Symbol.for("react.profiler"),zn=Symbol.for("react.provider"),cn=Symbol.for("react.context"),hr=Symbol.for("react.forward_ref"),Wn=Symbol.for("react.suspense"),Un=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),C=Symbol.for("react.scope"),P=Symbol.for("react.debug_trace_mode"),z=Symbol.for("react.legacy_hidden"),B=Symbol.for("react.default_value"),G=Symbol.iterator;function ee(c){if(c==null)return null;if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case un:return"Fragment";case Qt:return"Portal";case dr:return"Profiler";case fr:return"StrictMode";case Wn:return"Suspense";case Un:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case cn:return(c.displayName||"Context")+".Consumer";case zn:return(c._context.displayName||"Context")+".Provider";case hr:var y=c.render;return c=c.displayName,c||(c=y.displayName||y.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case u:return y=c.displayName||null,y!==null?y:ee(c.type)||"Memo";case g:y=c._payload,c=c._init;try{return ee(c(y))}catch{}}return null}var le={};function fe(c,y){if(c=c.contextTypes,!c)return le;var T={},A;for(A in c)T[A]=y[A];return T}var ce=null;function be(c,y){if(c!==y){c.context._currentValue=c.parentValue,c=c.parent;var T=y.parent;if(c===null){if(T!==null)throw Error(e(401))}else{if(T===null)throw Error(e(401));be(c,T)}y.context._currentValue=y.value}}function pt(c){c.context._currentValue=c.parentValue,c=c.parent,c!==null&&pt(c)}function ot(c){var y=c.parent;y!==null&&ot(y),c.context._currentValue=c.value}function it(c,y){if(c.context._currentValue=c.parentValue,c=c.parent,c===null)throw Error(e(402));c.depth===y.depth?be(c,y):it(c,y)}function Jt(c,y){var T=y.parent;if(T===null)throw Error(e(402));c.depth===T.depth?be(c,T):Jt(c,T),y.context._currentValue=y.value}function Tt(c){var y=ce;y!==c&&(y===null?ot(c):c===null?pt(y):y.depth===c.depth?be(y,c):y.depth>c.depth?it(y,c):Jt(y,c),ce=c)}var Nn={isMounted:function(){return!1},enqueueSetState:function(c,y){c=c._reactInternals,c.queue!==null&&c.queue.push(y)},enqueueReplaceState:function(c,y){c=c._reactInternals,c.replace=!0,c.queue=[y]},enqueueForceUpdate:function(){}};function fn(c,y,T,A){var W=c.state!==void 0?c.state:null;c.updater=Nn,c.props=T,c.state=W;var V={queue:[],replace:!1};c._reactInternals=V;var Z=y.contextType;if(c.context=typeof Z=="object"&&Z!==null?Z._currentValue:A,Z=y.getDerivedStateFromProps,typeof Z=="function"&&(Z=Z(T,W),W=Z==null?W:Vt({},W,Z),c.state=W),typeof y.getDerivedStateFromProps!="function"&&typeof c.getSnapshotBeforeUpdate!="function"&&(typeof c.UNSAFE_componentWillMount=="function"||typeof c.componentWillMount=="function"))if(y=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),y!==c.state&&Nn.enqueueReplaceState(c,c.state,null),V.queue!==null&&0<V.queue.length)if(y=V.queue,Z=V.replace,V.queue=null,V.replace=!1,Z&&y.length===1)c.state=y[0];else{for(V=Z?y[0]:c.state,W=!0,Z=Z?1:0;Z<y.length;Z++){var ne=y[Z];ne=typeof ne=="function"?ne.call(c,V,T,A):ne,ne!=null&&(W?(W=!1,V=Vt({},V,ne)):Vt(V,ne))}c.state=V}else V.queue=null}var Rn={id:1,overflow:""};function Kt(c,y,T){var A=c.id;c=c.overflow;var W=32-pr(A)-1;A&=~(1<<W),T+=1;var V=32-pr(y)+W;if(30<V){var Z=W-W%5;return V=(A&(1<<Z)-1).toString(32),A>>=Z,W-=Z,{id:1<<32-pr(y)+W|T<<W|A,overflow:V+c}}return{id:1<<V|T<<W|A,overflow:c}}var pr=Math.clz32?Math.clz32:xo,ma=Math.log,va=Math.LN2;function xo(c){return c>>>=0,c===0?32:31-(ma(c)/va|0)|0}function ga(c,y){return c===y&&(c!==0||1/c===1/y)||c!==c&&y!==y}var So=typeof Object.is=="function"?Object.is:ga,qt=null,mr=null,Br=null,Me=null,dn=!1,mt=!1,Pn=0,hn=null,Vr=0;function pn(){if(qt===null)throw Error(e(321));return qt}function Ct(){if(0<Vr)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function wo(){return Me===null?Br===null?(dn=!1,Br=Me=Ct()):(dn=!0,Me=Br):Me.next===null?(dn=!1,Me=Me.next=Ct()):(dn=!0,Me=Me.next),Me}function ko(){mr=qt=null,mt=!1,Br=null,Vr=0,Me=hn=null}function ui(c,y){return typeof y=="function"?y(c):y}function ci(c,y,T){if(qt=pn(),Me=wo(),dn){var A=Me.queue;if(y=A.dispatch,hn!==null&&(T=hn.get(A),T!==void 0)){hn.delete(A),A=Me.memoizedState;do A=c(A,T.action),T=T.next;while(T!==null);return Me.memoizedState=A,[A,y]}return[Me.memoizedState,y]}return c=c===ui?typeof y=="function"?y():y:T!==void 0?T(y):y,Me.memoizedState=c,c=Me.queue={last:null,dispatch:null},c=c.dispatch=ya.bind(null,qt,c),[Me.memoizedState,c]}function fi(c,y){if(qt=pn(),Me=wo(),y=y===void 0?null:y,Me!==null){var T=Me.memoizedState;if(T!==null&&y!==null){var A=T[1];e:if(A===null)A=!1;else{for(var W=0;W<A.length&&W<y.length;W++)if(!So(y[W],A[W])){A=!1;break e}A=!0}if(A)return T[0]}}return c=c(),Me.memoizedState=[c,y],c}function ya(c,y,T){if(25<=Vr)throw Error(e(301));if(c===qt)if(mt=!0,c={action:T,next:null},hn===null&&(hn=new Map),T=hn.get(y),T===void 0)hn.set(y,c);else{for(y=T;y.next!==null;)y=y.next;y.next=c}}function ba(){throw Error(e(394))}function zr(){}var Wr={readContext:function(c){return c._currentValue},useContext:function(c){return pn(),c._currentValue},useMemo:fi,useReducer:ci,useRef:function(c){qt=pn(),Me=wo();var y=Me.memoizedState;return y===null?(c={current:c},Me.memoizedState=c):y},useState:function(c){return ci(ui,c)},useInsertionEffect:zr,useLayoutEffect:function(){},useCallback:function(c,y){return fi(function(){return c},y)},useImperativeHandle:zr,useEffect:zr,useDebugValue:zr,useDeferredValue:function(c){return pn(),c},useTransition:function(){return pn(),[!1,ba]},useId:function(){var c=mr.treeContext,y=c.overflow;c=c.id,c=(c&~(1<<32-pr(c)-1)).toString(32)+y;var T=Ur;if(T===null)throw Error(e(404));return y=Pn++,c=":"+T.idPrefix+"R"+c,0<y&&(c+="H"+y.toString(32)),c+":"},useMutableSource:function(c,y){return pn(),y(c._source)},useSyncExternalStore:function(c,y,T){if(T===void 0)throw Error(e(407));return T()}},Ur=null,vr=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function xa(c){return console.error(c),null}function gr(){}function To(c,y,T,A,W,V,Z,ne,de){var ge=[],ve=new Set;return y={destination:null,responseState:y,progressiveChunkSize:A===void 0?12800:A,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:ve,pingedTasks:ge,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:W===void 0?xa:W,onAllReady:V===void 0?gr:V,onShellReady:Z===void 0?gr:Z,onShellError:ne===void 0?gr:ne,onFatalError:de===void 0?gr:de},T=Hn(y,0,null,T,!1,!1),T.parentFlushed=!0,c=Co(y,c,null,T,ve,le,null,Rn),ge.push(c),y}function Co(c,y,T,A,W,V,Z,ne){c.allPendingTasks++,T===null?c.pendingRootTasks++:T.pendingTasks++;var de={node:y,ping:function(){var ge=c.pingedTasks;ge.push(de),ge.length===1&&gi(c)},blockedBoundary:T,blockedSegment:A,abortSet:W,legacyContext:V,context:Z,treeContext:ne};return W.add(de),de}function Hn(c,y,T,A,W,V){return{status:0,id:-1,index:y,parentFlushed:!1,chunks:[],children:[],formatContext:A,boundary:T,lastPushedText:W,textEmbedded:V}}function Gn(c,y){if(c=c.onError(y),c!=null&&typeof c!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof c+'" instead');return c}function Nr(c,y){var T=c.onShellError;T(y),T=c.onFatalError,T(y),c.destination!==null?(c.status=2,R(c.destination,y)):(c.status=1,c.fatalError=y)}function di(c,y,T,A,W){for(qt={},mr=y,Pn=0,c=T(A,W);mt;)mt=!1,Pn=0,Vr+=1,Me=null,c=T(A,W);return ko(),c}function Eo(c,y,T,A){var W=T.render(),V=A.childContextTypes;if(V!=null){var Z=y.legacyContext;if(typeof T.getChildContext!="function")A=Z;else{T=T.getChildContext();for(var ne in T)if(!(ne in V))throw Error(e(108,ee(A)||"Unknown",ne));A=Vt({},Z,T)}y.legacyContext=A,vt(c,y,W),y.legacyContext=Z}else vt(c,y,W)}function hi(c,y){if(c&&c.defaultProps){y=Vt({},y),c=c.defaultProps;for(var T in c)y[T]===void 0&&(y[T]=c[T]);return y}return y}function Hr(c,y,T,A,W){if(typeof T=="function")if(T.prototype&&T.prototype.isReactComponent){W=fe(T,y.legacyContext);var V=T.contextType;V=new T(A,typeof V=="object"&&V!==null?V._currentValue:W),fn(V,T,A,W),Eo(c,y,V,T)}else{V=fe(T,y.legacyContext),W=di(c,y,T,A,V);var Z=Pn!==0;if(typeof W=="object"&&W!==null&&typeof W.render=="function"&&W.$$typeof===void 0)fn(W,T,A,V),Eo(c,y,W,T);else if(Z){A=y.treeContext,y.treeContext=Kt(A,1,0);try{vt(c,y,W)}finally{y.treeContext=A}}else vt(c,y,W)}else if(typeof T=="string"){switch(W=y.blockedSegment,V=Kn(W.chunks,T,A,c.responseState,W.formatContext),W.lastPushedText=!1,Z=W.formatContext,W.formatContext=he(Z,T,A),Gr(c,y,V),W.formatContext=Z,T){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:W.chunks.push(qn,m(T),er)}W.lastPushedText=!1}else{switch(T){case z:case P:case fr:case dr:case un:vt(c,y,A.children);return;case Un:vt(c,y,A.children);return;case C:throw Error(e(343));case Wn:e:{T=y.blockedBoundary,W=y.blockedSegment,V=A.fallback,A=A.children,Z=new Set;var ne={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Z,errorDigest:null},de=Hn(c,W.chunks.length,ne,W.formatContext,!1,!1);W.children.push(de),W.lastPushedText=!1;var ge=Hn(c,0,null,W.formatContext,!1,!1);ge.parentFlushed=!0,y.blockedBoundary=ne,y.blockedSegment=ge;try{if(Gr(c,y,A),ge.lastPushedText&&ge.textEmbedded&&ge.chunks.push(ke),ge.status=1,$r(ne,ge),ne.pendingTasks===0)break e}catch(ve){ge.status=4,ne.forceClientRender=!0,ne.errorDigest=Gn(c,ve)}finally{y.blockedBoundary=T,y.blockedSegment=W}y=Co(c,V,T,de,Z,y.legacyContext,y.context,y.treeContext),c.pingedTasks.push(y)}return}if(typeof T=="object"&&T!==null)switch(T.$$typeof){case hr:if(A=di(c,y,T.render,A,W),Pn!==0){T=y.treeContext,y.treeContext=Kt(T,1,0);try{vt(c,y,A)}finally{y.treeContext=T}}else vt(c,y,A);return;case u:T=T.type,A=hi(T,A),Hr(c,y,T,A,W);return;case zn:if(W=A.children,T=T._context,A=A.value,V=T._currentValue,T._currentValue=A,Z=ce,ce=A={parent:Z,depth:Z===null?0:Z.depth+1,context:T,parentValue:V,value:A},y.context=A,vt(c,y,W),c=ce,c===null)throw Error(e(403));A=c.parentValue,c.context._currentValue=A===B?c.context._defaultValue:A,c=ce=c.parent,y.context=c;return;case cn:A=A.children,A=A(T._currentValue),vt(c,y,A);return;case g:W=T._init,T=W(T._payload),A=hi(T,A),Hr(c,y,T,A,void 0);return}throw Error(e(130,T==null?T:typeof T,""))}}function vt(c,y,T){if(y.node=T,typeof T=="object"&&T!==null){switch(T.$$typeof){case ft:Hr(c,y,T.type,T.props,T.ref);return;case Qt:throw Error(e(257));case g:var A=T._init;T=A(T._payload),vt(c,y,T);return}if(Pe(T)){pi(c,y,T);return}if(T===null||typeof T!="object"?A=null:(A=G&&T[G]||T["@@iterator"],A=typeof A=="function"?A:null),A&&(A=A.call(T))){if(T=A.next(),!T.done){var W=[];do W.push(T.value),T=A.next();while(!T.done);pi(c,y,W)}return}throw c=Object.prototype.toString.call(T),Error(e(31,c==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":c))}typeof T=="string"?(A=y.blockedSegment,A.lastPushedText=ht(y.blockedSegment.chunks,T,c.responseState,A.lastPushedText)):typeof T=="number"&&(A=y.blockedSegment,A.lastPushedText=ht(y.blockedSegment.chunks,""+T,c.responseState,A.lastPushedText))}function pi(c,y,T){for(var A=T.length,W=0;W<A;W++){var V=y.treeContext;y.treeContext=Kt(V,A,W);try{Gr(c,y,T[W])}finally{y.treeContext=V}}}function Gr(c,y,T){var A=y.blockedSegment.formatContext,W=y.legacyContext,V=y.context;try{return vt(c,y,T)}catch(de){if(ko(),typeof de=="object"&&de!==null&&typeof de.then=="function"){T=de;var Z=y.blockedSegment,ne=Hn(c,Z.chunks.length,null,Z.formatContext,Z.lastPushedText,!0);Z.children.push(ne),Z.lastPushedText=!1,c=Co(c,y.node,y.blockedBoundary,ne,y.abortSet,y.legacyContext,y.context,y.treeContext).ping,T.then(c,c),y.blockedSegment.formatContext=A,y.legacyContext=W,y.context=V,Tt(V)}else throw y.blockedSegment.formatContext=A,y.legacyContext=W,y.context=V,Tt(V),de}}function Sa(c){var y=c.blockedBoundary;c=c.blockedSegment,c.status=3,vi(this,y,c)}function mi(c,y,T){var A=c.blockedBoundary;c.blockedSegment.status=3,A===null?(y.allPendingTasks--,y.status!==2&&(y.status=2,y.destination!==null&&y.destination.close())):(A.pendingTasks--,A.forceClientRender||(A.forceClientRender=!0,c=T===void 0?Error(e(432)):T,A.errorDigest=y.onError(c),A.parentFlushed&&y.clientRenderedBoundaries.push(A)),A.fallbackAbortableTasks.forEach(function(W){return mi(W,y,T)}),A.fallbackAbortableTasks.clear(),y.allPendingTasks--,y.allPendingTasks===0&&(A=y.onAllReady,A()))}function $r(c,y){if(y.chunks.length===0&&y.children.length===1&&y.children[0].boundary===null){var T=y.children[0];T.id=y.id,T.parentFlushed=!0,T.status===1&&$r(c,T)}else c.completedSegments.push(y)}function vi(c,y,T){if(y===null){if(T.parentFlushed){if(c.completedRootSegment!==null)throw Error(e(389));c.completedRootSegment=T}c.pendingRootTasks--,c.pendingRootTasks===0&&(c.onShellError=gr,y=c.onShellReady,y())}else y.pendingTasks--,y.forceClientRender||(y.pendingTasks===0?(T.parentFlushed&&T.status===1&&$r(y,T),y.parentFlushed&&c.completedBoundaries.push(y),y.fallbackAbortableTasks.forEach(Sa,c),y.fallbackAbortableTasks.clear()):T.parentFlushed&&T.status===1&&($r(y,T),y.completedSegments.length===1&&y.parentFlushed&&c.partialBoundaries.push(y)));c.allPendingTasks--,c.allPendingTasks===0&&(c=c.onAllReady,c())}function gi(c){if(c.status!==2){var y=ce,T=vr.current;vr.current=Wr;var A=Ur;Ur=c.responseState;try{var W=c.pingedTasks,V;for(V=0;V<W.length;V++){var Z=W[V],ne=c,de=Z.blockedSegment;if(de.status===0){Tt(Z.context);try{vt(ne,Z,Z.node),de.lastPushedText&&de.textEmbedded&&de.chunks.push(ke),Z.abortSet.delete(Z),de.status=1,vi(ne,Z.blockedBoundary,de)}catch(Rt){if(ko(),typeof Rt=="object"&&Rt!==null&&typeof Rt.then=="function"){var ge=Z.ping;Rt.then(ge,ge)}else{Z.abortSet.delete(Z),de.status=4;var ve=Z.blockedBoundary,Le=Rt,gt=Gn(ne,Le);if(ve===null?Nr(ne,Le):(ve.pendingTasks--,ve.forceClientRender||(ve.forceClientRender=!0,ve.errorDigest=gt,ve.parentFlushed&&ne.clientRenderedBoundaries.push(ve))),ne.allPendingTasks--,ne.allPendingTasks===0){var Et=ne.onAllReady;Et()}}}finally{}}}W.splice(0,V),c.destination!==null&&Ro(c,c.destination)}catch(Rt){Gn(c,Rt),Nr(c,Rt)}finally{Ur=A,vr.current=T,T===Wr&&Tt(y)}}}function Yr(c,y,T){switch(T.parentFlushed=!0,T.status){case 0:var A=T.id=c.nextSegmentId++;return T.lastPushedText=!1,T.textEmbedded=!1,c=c.responseState,a(y,Ge),a(y,c.placeholderPrefix),c=m(A.toString(16)),a(y,c),h(y,tr);case 1:T.status=2;var W=!0;A=T.chunks;var V=0;T=T.children;for(var Z=0;Z<T.length;Z++){for(W=T[Z];V<W.index;V++)a(y,A[V]);W=Xr(c,y,W)}for(;V<A.length-1;V++)a(y,A[V]);return V<A.length&&(W=h(y,A[V])),W;default:throw Error(e(390))}}function Xr(c,y,T){var A=T.boundary;if(A===null)return Yr(c,y,T);if(A.parentFlushed=!0,A.forceClientRender)A=A.errorDigest,h(y,Fn),a(y,rr),A&&(a(y,or),a(y,m(te(A))),a(y,rn)),h(y,_r),Yr(c,y,T);else if(0<A.pendingTasks){A.rootSegmentID=c.nextSegmentId++,0<A.completedSegments.length&&c.partialBoundaries.push(A);var W=c.responseState,V=W.nextSuspenseID++;W=b(W.boundaryPrefix+V.toString(16)),A=A.id=W,ct(y,c.responseState,A),Yr(c,y,T)}else if(A.byteSize>c.progressiveChunkSize)A.rootSegmentID=c.nextSegmentId++,c.completedBoundaries.push(A),ct(y,c.responseState,A.id),Yr(c,y,T);else{if(h(y,Fr),T=A.completedSegments,T.length!==1)throw Error(e(391));Xr(c,y,T[0])}return h(y,vo)}function yi(c,y,T){return Tn(y,c.responseState,T.formatContext,T.id),Xr(c,y,T),sn(y,T.formatContext)}function bi(c,y,T){for(var A=T.completedSegments,W=0;W<A.length;W++)xi(c,y,T,A[W]);if(A.length=0,c=c.responseState,A=T.id,T=T.rootSegmentID,a(y,c.startInlineScript),c.sentCompleteBoundaryFunction?a(y,_t):(c.sentCompleteBoundaryFunction=!0,a(y,Zt)),A===null)throw Error(e(395));return T=m(T.toString(16)),a(y,A),a(y,Cn),a(y,c.segmentPrefix),a(y,T),h(y,En)}function xi(c,y,T,A){if(A.status===2)return!0;var W=A.id;if(W===-1){if((A.id=T.rootSegmentID)===-1)throw Error(e(392));return yi(c,y,A)}return yi(c,y,A),c=c.responseState,a(y,c.startInlineScript),c.sentCompleteSegmentFunction?a(y,cr):(c.sentCompleteSegmentFunction=!0,a(y,bo)),a(y,c.segmentPrefix),W=m(W.toString(16)),a(y,W),a(y,Bn),a(y,c.placeholderPrefix),a(y,W),h(y,ln)}function Ro(c,y){r=new Uint8Array(512),i=0;try{var T=c.completedRootSegment;if(T!==null&&c.pendingRootTasks===0){Xr(c,y,T),c.completedRootSegment=null;var A=c.responseState.bootstrapChunks;for(T=0;T<A.length-1;T++)a(y,A[T]);T<A.length&&h(y,A[T])}var W=c.clientRenderedBoundaries,V;for(V=0;V<W.length;V++){var Z=W[V];A=y;var ne=c.responseState,de=Z.id,ge=Z.errorDigest,ve=Z.errorMessage,Le=Z.errorComponentStack;if(a(A,ne.startInlineScript),ne.sentClientRenderFunction?a(A,Ve):(ne.sentClientRenderFunction=!0,a(A,bt)),de===null)throw Error(e(395));a(A,de),a(A,jt),(ge||ve||Le)&&(a(A,qe),a(A,m(Bt(ge||"")))),(ve||Le)&&(a(A,qe),a(A,m(Bt(ve||"")))),Le&&(a(A,qe),a(A,m(Bt(Le)))),h(A,kt)}W.splice(0,V);var gt=c.completedBoundaries;for(V=0;V<gt.length;V++)bi(c,y,gt[V]);gt.splice(0,V),p(y),r=new Uint8Array(512),i=0;var Et=c.partialBoundaries;for(V=0;V<Et.length;V++){var Rt=Et[V];e:{W=c,Z=y;var Zr=Rt.completedSegments;for(ne=0;ne<Zr.length;ne++)if(!xi(W,Z,Rt,Zr[ne])){ne++,Zr.splice(0,ne);var wi=!1;break e}Zr.splice(0,ne),wi=!0}if(!wi){c.destination=null,V++,Et.splice(0,V);return}}Et.splice(0,V);var Po=c.completedBoundaries;for(V=0;V<Po.length;V++)bi(c,y,Po[V]);Po.splice(0,V)}finally{p(y),c.allPendingTasks===0&&c.pingedTasks.length===0&&c.clientRenderedBoundaries.length===0&&c.completedBoundaries.length===0&&y.close()}}function Si(c,y){try{var T=c.abortableTasks;T.forEach(function(A){return mi(A,c,y)}),T.clear(),c.destination!==null&&Ro(c,c.destination)}catch(A){Gn(c,A),Nr(c,A)}}return vl.renderToReadableStream=function(c,y){return new Promise(function(T,A){var W,V,Z=new Promise(function(ve,Le){V=ve,W=Le}),ne=To(c,Ee(y?y.identifierPrefix:void 0,y?y.nonce:void 0,y?y.bootstrapScriptContent:void 0,y?y.bootstrapScripts:void 0,y?y.bootstrapModules:void 0),dt(y?y.namespaceURI:void 0),y?y.progressiveChunkSize:void 0,y?y.onError:void 0,V,function(){var ve=new ReadableStream({type:"bytes",pull:function(Le){if(ne.status===1)ne.status=2,R(Le,ne.fatalError);else if(ne.status!==2&&ne.destination===null){ne.destination=Le;try{Ro(ne,Le)}catch(gt){Gn(ne,gt),Nr(ne,gt)}}},cancel:function(){Si(ne)}},{highWaterMark:0});ve.allReady=Z,T(ve)},function(ve){Z.catch(function(){}),A(ve)},W);if(y&&y.signal){var de=y.signal,ge=function(){Si(ne,de.reason),de.removeEventListener("abort",ge)};de.addEventListener("abort",ge)}gi(ne)})},vl.version="18.2.0",vl}var ti={};/**
|
|
28
|
-
* @license React
|
|
29
|
-
* react-dom-server-legacy.browser.development.js
|
|
30
|
-
*
|
|
31
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
32
|
-
*
|
|
33
|
-
* This source code is licensed under the MIT license found in the
|
|
34
|
-
* LICENSE file in the root directory of this source tree.
|
|
35
|
-
*/var Nc;function op(){return Nc||(Nc=1,process.env.NODE_ENV!=="production"&&function(){var t=oe,e="18.2.0",r=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function i(n){{for(var s=arguments.length,f=new Array(s>1?s-1:0),v=1;v<s;v++)f[v-1]=arguments[v];h("warn",n,f)}}function a(n){{for(var s=arguments.length,f=new Array(s>1?s-1:0),v=1;v<s;v++)f[v-1]=arguments[v];h("error",n,f)}}function h(n,s,f){{var v=r.ReactDebugCurrentFrame,k=v.getStackAddendum();k!==""&&(s+="%s",f=f.concat([k]));var I=f.map(function(F){return String(F)});I.unshift("Warning: "+s),Function.prototype.apply.call(console[n],console,I)}}function p(n){n()}function S(n){}function m(n,s){b(n,s)}function b(n,s){return n.push(s)}function R(n){}function w(n){n.push(null)}function D(n){return n}function _(n){return n}function N(n,s){n.destroy(s)}function Y(n){{var s=typeof Symbol=="function"&&Symbol.toStringTag,f=s&&n[Symbol.toStringTag]||n.constructor.name||"Object";return f}}function j(n){try{return O(n),!1}catch{return!0}}function O(n){return""+n}function X(n,s){if(j(n))return a("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",s,Y(n)),O(n)}function $(n,s){if(j(n))return a("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",s,Y(n)),O(n)}function J(n){if(j(n))return a("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",Y(n)),O(n)}var q=Object.prototype.hasOwnProperty,K=0,te=1,ie=2,se=3,Pe=4,De=5,ye=6,Oe=":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",Ce=Oe+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",et=new RegExp("^["+Oe+"]["+Ce+"]*$"),Fe={},tt={};function Ee(n){return q.call(tt,n)?!0:q.call(Fe,n)?!1:et.test(n)?(tt[n]=!0,!0):(Fe[n]=!0,a("Invalid attribute name: `%s`",n),!1)}function je(n,s,f,v){if(f!==null&&f.type===K)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":{if(v)return!1;if(f!==null)return!f.acceptsBooleans;var k=n.toLowerCase().slice(0,5);return k!=="data-"&&k!=="aria-"}default:return!1}}function dt(n){return ke.hasOwnProperty(n)?ke[n]:null}function he(n,s,f,v,k,I,F){this.acceptsBooleans=s===ie||s===se||s===Pe,this.attributeName=v,this.attributeNamespace=k,this.mustUseProperty=f,this.propertyName=n,this.type=s,this.sanitizeURL=I,this.removeEmptyString=F}var ke={},ht=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];ht.forEach(function(n){ke[n]=new he(n,K,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var s=n[0],f=n[1];ke[s]=new he(s,te,!1,f,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){ke[n]=new he(n,ie,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){ke[n]=new he(n,ie,!1,n,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"].forEach(function(n){ke[n]=new he(n,se,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){ke[n]=new he(n,se,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){ke[n]=new he(n,Pe,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){ke[n]=new he(n,ye,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){ke[n]=new he(n,De,!1,n.toLowerCase(),null,!1,!1)});var yt=/[\-\:]([a-z])/g,Re=function(n){return n[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"].forEach(function(n){var s=n.replace(yt,Re);ke[s]=new he(s,te,!1,n,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(n){var s=n.replace(yt,Re);ke[s]=new he(s,te,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var s=n.replace(yt,Re);ke[s]=new he(s,te,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){ke[n]=new he(n,te,!1,n.toLowerCase(),null,!1,!1)});var Se="xlinkHref";ke[Se]=new he("xlinkHref",te,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){ke[n]=new he(n,te,!1,n.toLowerCase(),null,!0,!0)});var lt={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};function ut(n,s){return n+s.charAt(0).toUpperCase()+s.substring(1)}var Xe=["Webkit","ms","Moz","O"];Object.keys(lt).forEach(function(n){Xe.forEach(function(s){lt[ut(s,n)]=lt[n]})});var Ke={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Ae(n,s){Ke[s.type]||s.onChange||s.onInput||s.readOnly||s.disabled||s.value==null||a("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),s.onChange||s.readOnly||s.disabled||s.checked==null||a("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Yt(n,s){if(n.indexOf("-")===-1)return typeof s.is=="string";switch(n){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 Be={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},He={},nn=new RegExp("^(aria)-["+Ce+"]*$"),Dt=new RegExp("^(aria)[A-Z]["+Ce+"]*$");function Dr(n,s){{if(q.call(He,s)&&He[s])return!0;if(Dt.test(s)){var f="aria-"+s.slice(4).toLowerCase(),v=Be.hasOwnProperty(f)?f:null;if(v==null)return a("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",s),He[s]=!0,!0;if(s!==v)return a("Invalid ARIA attribute `%s`. Did you mean `%s`?",s,v),He[s]=!0,!0}if(nn.test(s)){var k=s.toLowerCase(),I=Be.hasOwnProperty(k)?k:null;if(I==null)return He[s]=!0,!1;if(s!==I)return a("Unknown ARIA attribute `%s`. Did you mean `%s`?",s,I),He[s]=!0,!0}}return!0}function St(n,s){{var f=[];for(var v in s){var k=Dr(n,v);k||f.push(v)}var I=f.map(function(F){return"`"+F+"`"}).join(", ");f.length===1?a("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",I,n):f.length>1&&a("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",I,n)}}function Sn(n,s){Yt(n,s)||St(n,s)}var wn=!1;function Or(n,s){{if(n!=="input"&&n!=="textarea"&&n!=="select")return;s!=null&&s.value===null&&!wn&&(wn=!0,n==="select"&&s.multiple?a("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",n):a("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",n))}}var wt={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},nt=function(){};{var Ze={},Kn=/^on./,qn=/^on[^A-Z]/,er=new RegExp("^(aria)-["+Ce+"]*$"),Ge=new RegExp("^(aria)[A-Z]["+Ce+"]*$");nt=function(n,s,f,v){if(q.call(Ze,s)&&Ze[s])return!0;var k=s.toLowerCase();if(k==="onfocusin"||k==="onfocusout")return a("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Ze[s]=!0,!0;if(v!=null){var I=v.registrationNameDependencies,F=v.possibleRegistrationNames;if(I.hasOwnProperty(s))return!0;var U=F.hasOwnProperty(k)?F[k]:null;if(U!=null)return a("Invalid event handler property `%s`. Did you mean `%s`?",s,U),Ze[s]=!0,!0;if(Kn.test(s))return a("Unknown event handler property `%s`. It will be ignored.",s),Ze[s]=!0,!0}else if(Kn.test(s))return qn.test(s)&&a("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",s),Ze[s]=!0,!0;if(er.test(s)||Ge.test(s))return!0;if(k==="innerhtml")return a("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Ze[s]=!0,!0;if(k==="aria")return a("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Ze[s]=!0,!0;if(k==="is"&&f!==null&&f!==void 0&&typeof f!="string")return a("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof f),Ze[s]=!0,!0;if(typeof f=="number"&&isNaN(f))return a("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",s),Ze[s]=!0,!0;var Q=dt(s),ae=Q!==null&&Q.type===K;if(wt.hasOwnProperty(k)){var ue=wt[k];if(ue!==s)return a("Invalid DOM property `%s`. Did you mean `%s`?",s,ue),Ze[s]=!0,!0}else if(!ae&&s!==k)return a("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",s,k),Ze[s]=!0,!0;return typeof f=="boolean"&&je(s,f,Q,!1)?(f?a('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',f,s,s,f,s):a('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',f,s,s,f,s,s,s),Ze[s]=!0,!0):ae?!0:je(s,f,Q,!1)?(Ze[s]=!0,!1):((f==="false"||f==="true")&&Q!==null&&Q.type===se&&(a("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",f,s,f==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',s,f),Ze[s]=!0),!0)}}var tr=function(n,s,f){{var v=[];for(var k in s){var I=nt(n,k,s[k],f);I||v.push(k)}var F=v.map(function(U){return"`"+U+"`"}).join(", ");v.length===1?a("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",F,n):v.length>1&&a("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",F,n)}};function Fr(n,s,f){Yt(n,s)||tr(n,s,f)}var Lr=function(){};{var nr=/^(?:webkit|moz|o)[A-Z]/,Fn=/^-ms-/,vo=/-(.)/g,rr=/;\s*$/,rn={},or={},_r=!1,ct=!1,Ot=function(n){return n.replace(vo,function(s,f){return f.toUpperCase()})},on=function(n){rn.hasOwnProperty(n)&&rn[n]||(rn[n]=!0,a("Unsupported style property %s. Did you mean %s?",n,Ot(n.replace(Fn,"ms-"))))},Te=function(n){rn.hasOwnProperty(n)&&rn[n]||(rn[n]=!0,a("Unsupported vendor-prefixed style property %s. Did you mean %s?",n,n.charAt(0).toUpperCase()+n.slice(1)))},an=function(n,s){or.hasOwnProperty(s)&&or[s]||(or[s]=!0,a(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,n,s.replace(rr,"")))},Ln=function(n,s){_r||(_r=!0,a("`NaN` is an invalid value for the `%s` css style property.",n))},kn=function(n,s){ct||(ct=!0,a("`Infinity` is an invalid value for the `%s` css style property.",n))};Lr=function(n,s){n.indexOf("-")>-1?on(n):nr.test(n)?Te(n):rr.test(s)&&an(n,s),typeof s=="number"&&(isNaN(s)?Ln(n,s):isFinite(s)||kn(n,s))}}var Ft=Lr,_n=/["'&<>]/;function Xt(n){J(n);var s=""+n,f=_n.exec(s);if(!f)return s;var v,k="",I,F=0;for(I=f.index;I<s.length;I++){switch(s.charCodeAt(I)){case 34:v=""";break;case 38:v="&";break;case 39:v="'";break;case 60:v="<";break;case 62:v=">";break;default:continue}F!==I&&(k+=s.substring(F,I)),F=I+1,k+=v}return F!==I?k+s.substring(F,I):k}function We(n){return typeof n=="boolean"||typeof n=="number"?""+n:Xt(n)}var ir=/([A-Z])/g,ar=/^ms-/;function jr(n){return n.replace(ir,"-$1").toLowerCase().replace(ar,"-ms-")}var $e=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,sr=!1;function go(n){!sr&&$e.test(n)&&(sr=!0,a("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(n)))}var yo=Array.isArray;function Lt(n){return yo(n)}var lr="<script>",jn="<\/script>",ur='<script src="',Tn='<script type="module" src="',sn='" async=""><\/script>';function bo(n){return J(n),(""+n).replace(cr,Bn)}var cr=/(<\/|<)(s)(cript)/gi,Bn=function(n,s,f,v){return""+s+(f==="s"?"\\u0073":"\\u0053")+v};function ln(n,s,f,v,k){var I=n===void 0?"":n,F=s===void 0?lr:'<script nonce="'+We(s)+'">',U=[];if(f!==void 0&&U.push(F,bo(f),jn),v!==void 0)for(var Q=0;Q<v.length;Q++)U.push(ur,We(v[Q]),sn);if(k!==void 0)for(var ae=0;ae<k.length;ae++)U.push(Tn,We(k[ae]),sn);return{bootstrapChunks:U,startInlineScript:F,placeholderPrefix:I+"P:",segmentPrefix:I+"S:",boundaryPrefix:I+"B:",idPrefix:I,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Zt=0,_t=1,Cn=2,En=3,bt=4,Ve=5,jt=6,kt=7;function qe(n,s){return{insertionMode:n,selectedValue:s}}function Vn(n,s,f){switch(s){case"select":return qe(_t,f.value!=null?f.value:f.defaultValue);case"svg":return qe(Cn,null);case"math":return qe(En,null);case"foreignObject":return qe(_t,null);case"table":return qe(bt,null);case"thead":case"tbody":case"tfoot":return qe(Ve,null);case"colgroup":return qe(kt,null);case"tr":return qe(jt,null)}return n.insertionMode>=bt||n.insertionMode===Zt?qe(_t,null):n}var Bt=null;function Vt(n){var s=n.nextSuspenseID++;return n.boundaryPrefix+s.toString(16)}function ft(n,s,f){var v=n.idPrefix,k=":"+v+"R"+s;return f>0&&(k+="H"+f.toString(32)),k+":"}function Qt(n){return We(n)}var un="<!-- -->";function fr(n,s,f,v){return s===""?v:(v&&n.push(un),n.push(Qt(s)),!0)}function dr(n,s,f,v){f&&v&&n.push(un)}var zn=new Map;function cn(n){var s=zn.get(n);if(s!==void 0)return s;var f=We(jr(n));return zn.set(n,f),f}var hr=' style="',Wn=":",Un=";";function u(n,s,f){if(typeof f!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var v=!0;for(var k in f)if(q.call(f,k)){var I=f[k];if(!(I==null||typeof I=="boolean"||I==="")){var F=void 0,U=void 0,Q=k.indexOf("--")===0;Q?(F=We(k),$(I,k),U=We((""+I).trim())):(Ft(k,I),F=cn(k),typeof I=="number"?I!==0&&!q.call(lt,k)?U=I+"px":U=""+I:($(I,k),U=We((""+I).trim()))),v?(v=!1,n.push(hr,F,Wn,U)):n.push(Un,F,Wn,U)}}v||n.push(P)}var g=" ",C='="',P='"',z='=""';function B(n,s,f,v){switch(f){case"style":{u(n,s,v);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(f.length>2&&(f[0]==="o"||f[0]==="O")&&(f[1]==="n"||f[1]==="N"))){var k=dt(f);if(k!==null){switch(typeof v){case"function":case"symbol":return;case"boolean":if(!k.acceptsBooleans)return}var I=k.attributeName,F=I;switch(k.type){case se:v&&n.push(g,F,z);return;case Pe:v===!0?n.push(g,F,z):v===!1||n.push(g,F,C,We(v),P);return;case De:isNaN(v)||n.push(g,F,C,We(v),P);break;case ye:!isNaN(v)&&v>=1&&n.push(g,F,C,We(v),P);break;default:k.sanitizeURL&&(X(v,I),v=""+v,go(v)),n.push(g,F,C,We(v),P)}}else if(Ee(f)){switch(typeof v){case"function":case"symbol":return;case"boolean":{var U=f.toLowerCase().slice(0,5);if(U!=="data-"&&U!=="aria-")return}}n.push(g,f,C,We(v),P)}}}var G=">",ee="/>";function le(n,s,f){if(s!=null){if(f!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof s!="object"||!("__html"in s))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var v=s.__html;v!=null&&(J(v),n.push(""+v))}}var fe=!1,ce=!1,be=!1,pt=!1,ot=!1,it=!1,Jt=!1;function Tt(n,s){{var f=n[s];if(f!=null){var v=Lt(f);n.multiple&&!v?a("The `%s` prop supplied to <select> must be an array if `multiple` is true.",s):!n.multiple&&v&&a("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",s)}}}function Nn(n,s,f){Ae("select",s),Tt(s,"value"),Tt(s,"defaultValue"),s.value!==void 0&&s.defaultValue!==void 0&&!be&&(a("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),be=!0),n.push(mt("select"));var v=null,k=null;for(var I in s)if(q.call(s,I)){var F=s[I];if(F==null)continue;switch(I){case"children":v=F;break;case"dangerouslySetInnerHTML":k=F;break;case"defaultValue":case"value":break;default:B(n,f,I,F);break}}return n.push(G),le(n,k,v),v}function fn(n){var s="";return t.Children.forEach(n,function(f){f!=null&&(s+=f,!ot&&typeof f!="string"&&typeof f!="number"&&(ot=!0,a("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),s}var Rn=' selected=""';function Kt(n,s,f,v){var k=v.selectedValue;n.push(mt("option"));var I=null,F=null,U=null,Q=null;for(var ae in s)if(q.call(s,ae)){var ue=s[ae];if(ue==null)continue;switch(ae){case"children":I=ue;break;case"selected":U=ue,Jt||(a("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Jt=!0);break;case"dangerouslySetInnerHTML":Q=ue;break;case"value":F=ue;default:B(n,f,ae,ue);break}}if(k!=null){var me;if(F!==null?(X(F,"value"),me=""+F):(Q!==null&&(it||(it=!0,a("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),me=fn(I)),Lt(k))for(var _e=0;_e<k.length;_e++){X(k[_e],"value");var st=""+k[_e];if(st===me){n.push(Rn);break}}else X(k,"select.value"),""+k===me&&n.push(Rn)}else U&&n.push(Rn);return n.push(G),le(n,Q,I),I}function pr(n,s,f){Ae("input",s),s.checked!==void 0&&s.defaultChecked!==void 0&&!ce&&(a("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",s.type),ce=!0),s.value!==void 0&&s.defaultValue!==void 0&&!fe&&(a("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",s.type),fe=!0),n.push(mt("input"));var v=null,k=null,I=null,F=null;for(var U in s)if(q.call(s,U)){var Q=s[U];if(Q==null)continue;switch(U){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":F=Q;break;case"defaultValue":k=Q;break;case"checked":I=Q;break;case"value":v=Q;break;default:B(n,f,U,Q);break}}return I!==null?B(n,f,"checked",I):F!==null&&B(n,f,"checked",F),v!==null?B(n,f,"value",v):k!==null&&B(n,f,"value",k),n.push(ee),null}function ma(n,s,f){Ae("textarea",s),s.value!==void 0&&s.defaultValue!==void 0&&!pt&&(a("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),pt=!0),n.push(mt("textarea"));var v=null,k=null,I=null;for(var F in s)if(q.call(s,F)){var U=s[F];if(U==null)continue;switch(F){case"children":I=U;break;case"value":v=U;break;case"defaultValue":k=U;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:B(n,f,F,U);break}}if(v===null&&k!==null&&(v=k),n.push(G),I!=null){if(a("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),v!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Lt(I)){if(I.length>1)throw new Error("<textarea> can only have at most one child.");J(I[0]),v=""+I[0]}J(I),v=""+I}return typeof v=="string"&&v[0]===`
|
|
36
|
-
`&&n.push(mr),v!==null&&(X(v,"value"),n.push(Qt(""+v))),null}function va(n,s,f,v){n.push(mt(f));for(var k in s)if(q.call(s,k)){var I=s[k];if(I==null)continue;switch(k){case"children":case"dangerouslySetInnerHTML":throw new Error(f+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:B(n,v,k,I);break}}return n.push(ee),null}function xo(n,s,f){n.push(mt("menuitem"));for(var v in s)if(q.call(s,v)){var k=s[v];if(k==null)continue;switch(v){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:B(n,f,v,k);break}}return n.push(G),null}function ga(n,s,f){n.push(mt("title"));var v=null;for(var k in s)if(q.call(s,k)){var I=s[k];if(I==null)continue;switch(k){case"children":v=I;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:B(n,f,k,I);break}}n.push(G);{var F=Array.isArray(v)&&v.length<2?v[0]||null:v;Array.isArray(v)&&v.length>1?a("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):F!=null&&F.$$typeof!=null?a("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):F!=null&&typeof F!="string"&&typeof F!="number"&&a("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return v}function So(n,s,f,v){n.push(mt(f));var k=null,I=null;for(var F in s)if(q.call(s,F)){var U=s[F];if(U==null)continue;switch(F){case"children":k=U;break;case"dangerouslySetInnerHTML":I=U;break;default:B(n,v,F,U);break}}return n.push(G),le(n,I,k),typeof k=="string"?(n.push(Qt(k)),null):k}function qt(n,s,f,v){n.push(mt(f));var k=null,I=null;for(var F in s)if(q.call(s,F)){var U=s[F];if(U==null)continue;switch(F){case"children":k=U;break;case"dangerouslySetInnerHTML":I=U;break;case"style":u(n,v,U);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Ee(F)&&typeof U!="function"&&typeof U!="symbol"&&n.push(g,F,C,We(U),P);break}}return n.push(G),le(n,I,k),k}var mr=`
|
|
37
|
-
`;function Br(n,s,f,v){n.push(mt(f));var k=null,I=null;for(var F in s)if(q.call(s,F)){var U=s[F];if(U==null)continue;switch(F){case"children":k=U;break;case"dangerouslySetInnerHTML":I=U;break;default:B(n,v,F,U);break}}if(n.push(G),I!=null){if(k!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof I!="object"||!("__html"in I))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var Q=I.__html;Q!=null&&(typeof Q=="string"&&Q.length>0&&Q[0]===`
|
|
38
|
-
`?n.push(mr,Q):(J(Q),n.push(""+Q)))}return typeof k=="string"&&k[0]===`
|
|
39
|
-
`&&n.push(mr),k}var Me=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,dn=new Map;function mt(n){var s=dn.get(n);if(s===void 0){if(!Me.test(n))throw new Error("Invalid tag: "+n);s="<"+n,dn.set(n,s)}return s}var Pn="<!DOCTYPE html>";function hn(n,s,f,v,k){switch(Sn(s,f),Or(s,f),Fr(s,f,null),!f.suppressContentEditableWarning&&f.contentEditable&&f.children!=null&&a("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),k.insertionMode!==Cn&&k.insertionMode!==En&&s.indexOf("-")===-1&&typeof f.is!="string"&&s.toLowerCase()!==s&&a("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",s),s){case"select":return Nn(n,f,v);case"option":return Kt(n,f,v,k);case"textarea":return ma(n,f,v);case"input":return pr(n,f,v);case"menuitem":return xo(n,f,v);case"title":return ga(n,f,v);case"listing":case"pre":return Br(n,f,s,v);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return va(n,f,s,v);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 So(n,f,s,v);case"html":return k.insertionMode===Zt&&n.push(Pn),So(n,f,s,v);default:return s.indexOf("-")===-1&&typeof f.is!="string"?So(n,f,s,v):qt(n,f,s,v)}}var Vr="</",pn=">";function Ct(n,s,f){switch(s){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:n.push(Vr,s,pn)}}function wo(n,s){for(var f=s.bootstrapChunks,v=0;v<f.length-1;v++)m(n,f[v]);return v<f.length?b(n,f[v]):!0}var ko='<template id="',ui='"></template>';function ci(n,s,f){m(n,ko),m(n,s.placeholderPrefix);var v=f.toString(16);return m(n,v),b(n,ui)}var fi="<!--$-->",ya='<!--$?--><template id="',ba='"></template>',zr="<!--$!-->",Wr="<!--/$-->",Ur="<template",vr='"',xa=' data-dgst="',gr=' data-msg="',To=' data-stck="',Co="></template>";function Hn(n,s){return b(n,fi)}function Gn(n,s,f){if(m(n,ya),f===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return m(n,f),b(n,ba)}function Nr(n,s,f,v,k){var I;return I=b(n,zr),m(n,Ur),f&&(m(n,xa),m(n,We(f)),m(n,vr)),v&&(m(n,gr),m(n,We(v)),m(n,vr)),k&&(m(n,To),m(n,We(k)),m(n,vr)),I=b(n,Co),I}function di(n,s){return b(n,Wr)}function Eo(n,s){return b(n,Wr)}function hi(n,s){return b(n,Wr)}var Hr='<div hidden id="',vt='">',pi="</div>",Gr='<svg aria-hidden="true" style="display:none" id="',Sa='">',mi="</svg>",$r='<math aria-hidden="true" style="display:none" id="',vi='">',gi="</math>",Yr='<table hidden id="',Xr='">',yi="</table>",bi='<table hidden><tbody id="',xi='">',Ro="</tbody></table>",Si='<table hidden><tr id="',c='">',y="</tr></table>",T='<table hidden><colgroup id="',A='">',W="</colgroup></table>";function V(n,s,f,v){switch(f.insertionMode){case Zt:case _t:return m(n,Hr),m(n,s.segmentPrefix),m(n,v.toString(16)),b(n,vt);case Cn:return m(n,Gr),m(n,s.segmentPrefix),m(n,v.toString(16)),b(n,Sa);case En:return m(n,$r),m(n,s.segmentPrefix),m(n,v.toString(16)),b(n,vi);case bt:return m(n,Yr),m(n,s.segmentPrefix),m(n,v.toString(16)),b(n,Xr);case Ve:return m(n,bi),m(n,s.segmentPrefix),m(n,v.toString(16)),b(n,xi);case jt:return m(n,Si),m(n,s.segmentPrefix),m(n,v.toString(16)),b(n,c);case kt:return m(n,T),m(n,s.segmentPrefix),m(n,v.toString(16)),b(n,A);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function Z(n,s){switch(s.insertionMode){case Zt:case _t:return b(n,pi);case Cn:return b(n,mi);case En:return b(n,gi);case bt:return b(n,yi);case Ve:return b(n,Ro);case jt:return b(n,y);case kt:return b(n,W);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var ne="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",de='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',ge='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',ve=ne+';$RS("',Le='$RS("',gt='","',Et='")<\/script>';function Rt(n,s,f){m(n,s.startInlineScript),s.sentCompleteSegmentFunction?m(n,Le):(s.sentCompleteSegmentFunction=!0,m(n,ve)),m(n,s.segmentPrefix);var v=f.toString(16);return m(n,v),m(n,gt),m(n,s.placeholderPrefix),m(n,v),b(n,Et)}var Zr=de+';$RC("',wi='$RC("',Po='","',Gl='")<\/script>';function $l(n,s,f,v){if(m(n,s.startInlineScript),s.sentCompleteBoundaryFunction?m(n,wi):(s.sentCompleteBoundaryFunction=!0,m(n,Zr)),f===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var k=v.toString(16);return m(n,f),m(n,Po),m(n,s.segmentPrefix),m(n,k),b(n,Gl)}var Yl=ge+';$RX("',Xl='$RX("',Zl='"',Ql=")<\/script>",wa=",";function Jl(n,s,f,v,k,I){if(m(n,s.startInlineScript),s.sentClientRenderFunction?m(n,Xl):(s.sentClientRenderFunction=!0,m(n,Yl)),f===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return m(n,f),m(n,Zl),(v||k||I)&&(m(n,wa),m(n,ka(v||""))),(k||I)&&(m(n,wa),m(n,ka(k||""))),I&&(m(n,wa),m(n,ka(I))),b(n,Ql)}var Kl=/[<\u2028\u2029]/g;function ka(n){var s=JSON.stringify(n);return s.replace(Kl,function(f){switch(f){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function ql(n,s){var f=ln(s,void 0);return{bootstrapChunks:f.bootstrapChunks,startInlineScript:f.startInlineScript,placeholderPrefix:f.placeholderPrefix,segmentPrefix:f.segmentPrefix,boundaryPrefix:f.boundaryPrefix,idPrefix:f.idPrefix,nextSuspenseID:f.nextSuspenseID,sentCompleteSegmentFunction:f.sentCompleteSegmentFunction,sentCompleteBoundaryFunction:f.sentCompleteBoundaryFunction,sentClientRenderFunction:f.sentClientRenderFunction,generateStaticMarkup:n}}function Ta(){return{insertionMode:_t,selectedValue:null}}function Ps(n,s,f,v){return f.generateStaticMarkup?(n.push(We(s)),!1):fr(n,s,f,v)}function As(n,s,f,v){if(!s.generateStaticMarkup)return dr(n,s,f,v)}function Ca(n,s){return s.generateStaticMarkup?!0:Hn(n)}function zt(n,s,f,v,k){return s.generateStaticMarkup?!0:Nr(n,s,f,v,k)}function eu(n,s){return s.generateStaticMarkup?!0:di(n)}function Is(n,s){return s.generateStaticMarkup?!0:hi(n)}var Pt=Object.assign,Ms=Symbol.for("react.element"),Ea=Symbol.for("react.portal"),ki=Symbol.for("react.fragment"),Ti=Symbol.for("react.strict_mode"),Ci=Symbol.for("react.profiler"),Ao=Symbol.for("react.provider"),Io=Symbol.for("react.context"),Mo=Symbol.for("react.forward_ref"),Qr=Symbol.for("react.suspense"),Ra=Symbol.for("react.suspense_list"),Pa=Symbol.for("react.memo"),Ei=Symbol.for("react.lazy"),tu=Symbol.for("react.scope"),Ds=Symbol.for("react.debug_trace_mode"),nu=Symbol.for("react.legacy_hidden"),ru=Symbol.for("react.default_value"),Os=Symbol.iterator,Fs="@@iterator";function Ue(n){if(n===null||typeof n!="object")return null;var s=Os&&n[Os]||n[Fs];return typeof s=="function"?s:null}function Do(n,s,f){var v=n.displayName;if(v)return v;var k=s.displayName||s.name||"";return k!==""?f+"("+k+")":f}function Aa(n){return n.displayName||"Context"}function ze(n){if(n==null)return null;if(typeof n.tag=="number"&&a("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case ki:return"Fragment";case Ea:return"Portal";case Ci:return"Profiler";case Ti:return"StrictMode";case Qr:return"Suspense";case Ra:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case Io:var s=n;return Aa(s)+".Consumer";case Ao:var f=n;return Aa(f._context)+".Provider";case Mo:return Do(n,n.render,"ForwardRef");case Pa:var v=n.displayName||null;return v!==null?v:ze(n.type)||"Memo";case Ei:{var k=n,I=k._payload,F=k._init;try{return ze(F(I))}catch{return null}}}return null}var Jr=0,Ia,Ma,Da,Oa,Fa,Ls,_s;function Ri(){}Ri.__reactDisabledLog=!0;function La(){{if(Jr===0){Ia=console.log,Ma=console.info,Da=console.warn,Oa=console.error,Fa=console.group,Ls=console.groupCollapsed,_s=console.groupEnd;var n={configurable:!0,enumerable:!0,value:Ri,writable:!0};Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})}Jr++}}function Oo(){{if(Jr--,Jr===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Pt({},n,{value:Ia}),info:Pt({},n,{value:Ma}),warn:Pt({},n,{value:Da}),error:Pt({},n,{value:Oa}),group:Pt({},n,{value:Fa}),groupCollapsed:Pt({},n,{value:Ls}),groupEnd:Pt({},n,{value:_s})})}Jr<0&&a("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Fo=r.ReactCurrentDispatcher,Kr;function Lo(n,s,f){{if(Kr===void 0)try{throw Error()}catch(k){var v=k.stack.trim().match(/\n( *(at )?)/);Kr=v&&v[1]||""}return`
|
|
40
|
-
`+Kr+n}}var _o=!1,Pi;{var js=typeof WeakMap=="function"?WeakMap:Map;Pi=new js}function _a(n,s){if(!n||_o)return"";{var f=Pi.get(n);if(f!==void 0)return f}var v;_o=!0;var k=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var I;I=Fo.current,Fo.current=null,La();try{if(s){var F=function(){throw Error()};if(Object.defineProperty(F.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(F,[])}catch(Ht){v=Ht}Reflect.construct(n,[],F)}else{try{F.call()}catch(Ht){v=Ht}n.call(F.prototype)}}else{try{throw Error()}catch(Ht){v=Ht}n()}}catch(Ht){if(Ht&&v&&typeof Ht.stack=="string"){for(var U=Ht.stack.split(`
|
|
41
|
-
`),Q=v.stack.split(`
|
|
42
|
-
`),ae=U.length-1,ue=Q.length-1;ae>=1&&ue>=0&&U[ae]!==Q[ue];)ue--;for(;ae>=1&&ue>=0;ae--,ue--)if(U[ae]!==Q[ue]){if(ae!==1||ue!==1)do if(ae--,ue--,ue<0||U[ae]!==Q[ue]){var me=`
|
|
43
|
-
`+U[ae].replace(" at new "," at ");return n.displayName&&me.includes("<anonymous>")&&(me=me.replace("<anonymous>",n.displayName)),typeof n=="function"&&Pi.set(n,me),me}while(ae>=1&&ue>=0);break}}}finally{_o=!1,Fo.current=I,Oo(),Error.prepareStackTrace=k}var _e=n?n.displayName||n.name:"",st=_e?Lo(_e):"";return typeof n=="function"&&Pi.set(n,st),st}function ja(n,s,f){return _a(n,!0)}function Ba(n,s,f){return _a(n,!1)}function Bs(n){var s=n.prototype;return!!(s&&s.isReactComponent)}function qr(n,s,f){if(n==null)return"";if(typeof n=="function")return _a(n,Bs(n));if(typeof n=="string")return Lo(n);switch(n){case Qr:return Lo("Suspense");case Ra:return Lo("SuspenseList")}if(typeof n=="object")switch(n.$$typeof){case Mo:return Ba(n.render);case Pa:return qr(n.type,s,f);case Ei:{var v=n,k=v._payload,I=v._init;try{return qr(I(k),s,f)}catch{}}}return""}var Va={},Ai=r.ReactDebugCurrentFrame;function yr(n){if(n){var s=n._owner,f=qr(n.type,n._source,s?s.type:null);Ai.setExtraStackFrame(f)}else Ai.setExtraStackFrame(null)}function za(n,s,f,v,k){{var I=Function.call.bind(q);for(var F in n)if(I(n,F)){var U=void 0;try{if(typeof n[F]!="function"){var Q=Error((v||"React class")+": "+f+" type `"+F+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[F]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Q.name="Invariant Violation",Q}U=n[F](s,F,v,f,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ae){U=ae}U&&!(U instanceof Error)&&(yr(k),a("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",v||"React class",f,F,typeof U),yr(null)),U instanceof Error&&!(U.message in Va)&&(Va[U.message]=!0,yr(k),a("Failed %s type: %s",f,U.message),yr(null))}}}var Wa;Wa={};var $n={};Object.freeze($n);function Vs(n,s){{var f=n.contextTypes;if(!f)return $n;var v={};for(var k in f)v[k]=s[k];{var I=ze(n)||"Unknown";za(f,v,"context",I)}return v}}function br(n,s,f,v){{if(typeof n.getChildContext!="function"){{var k=ze(s)||"Unknown";Wa[k]||(Wa[k]=!0,a("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",k,k))}return f}var I=n.getChildContext();for(var F in I)if(!(F in v))throw new Error((ze(s)||"Unknown")+'.getChildContext(): key "'+F+'" is not defined in childContextTypes.');{var U=ze(s)||"Unknown";za(v,I,"child context",U)}return Pt({},f,I)}}var xr;xr={};var Ua=null,mn=null;function Ii(n){n.context._currentValue2=n.parentValue}function Mi(n){n.context._currentValue2=n.value}function jo(n,s){if(n!==s){Ii(n);var f=n.parent,v=s.parent;if(f===null){if(v!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(v===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");jo(f,v)}Mi(s)}}function Na(n){Ii(n);var s=n.parent;s!==null&&Na(s)}function Bo(n){var s=n.parent;s!==null&&Bo(s),Mi(n)}function zs(n,s){Ii(n);var f=n.parent;if(f===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");f.depth===s.depth?jo(f,s):zs(f,s)}function Ws(n,s){var f=s.parent;if(f===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");n.depth===f.depth?jo(n,f):Ws(n,f),Mi(s)}function Di(n){var s=mn,f=n;s!==f&&(s===null?Bo(f):f===null?Na(s):s.depth===f.depth?jo(s,f):s.depth>f.depth?zs(s,f):Ws(s,f),mn=f)}function Vo(n,s){var f;f=n._currentValue2,n._currentValue2=s,n._currentRenderer2!==void 0&&n._currentRenderer2!==null&&n._currentRenderer2!==xr&&a("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),n._currentRenderer2=xr;var v=mn,k={parent:v,depth:v===null?0:v.depth+1,context:n,parentValue:f,value:s};return mn=k,k}function Ha(n){var s=mn;if(s===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");s.context!==n&&a("The parent context is not the expected context. This is probably a bug in React.");{var f=s.parentValue;f===ru?s.context._currentValue2=s.context._defaultValue:s.context._currentValue2=f,n._currentRenderer2!==void 0&&n._currentRenderer2!==null&&n._currentRenderer2!==xr&&a("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),n._currentRenderer2=xr}return mn=s.parent}function ou(){return mn}function eo(n){var s=n._currentValue2;return s}function Oi(n){return n._reactInternals}function Ga(n,s){n._reactInternals=s}var Fi={},Li={},zo,_i,to,Wo,ji,no,Bi,Vi,zi;{zo=new Set,_i=new Set,to=new Set,Bi=new Set,Wo=new Set,Vi=new Set,zi=new Set;var Us=new Set;no=function(n,s){if(!(n===null||typeof n=="function")){var f=s+"_"+n;Us.has(f)||(Us.add(f),a("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",s,n))}},ji=function(n,s){if(s===void 0){var f=ze(n)||"Component";Wo.has(f)||(Wo.add(f),a("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",f))}}}function Ns(n,s){{var f=n.constructor,v=f&&ze(f)||"ReactClass",k=v+"."+s;if(Fi[k])return;a(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
|
44
|
-
|
|
45
|
-
Please check the code for the %s component.`,s,s,v),Fi[k]=!0}}var Hs={isMounted:function(n){return!1},enqueueSetState:function(n,s,f){var v=Oi(n);v.queue===null?Ns(n,"setState"):(v.queue.push(s),f!=null&&no(f,"setState"))},enqueueReplaceState:function(n,s,f){var v=Oi(n);v.replace=!0,v.queue=[s],f!=null&&no(f,"setState")},enqueueForceUpdate:function(n,s){var f=Oi(n);f.queue===null?Ns(n,"forceUpdate"):s!=null&&no(s,"setState")}};function iu(n,s,f,v,k){var I=f(k,v);ji(s,I);var F=I==null?v:Pt({},v,I);return F}function au(n,s,f){var v=$n,k=n.contextType;if("contextType"in n){var I=k===null||k!==void 0&&k.$$typeof===Io&&k._context===void 0;if(!I&&!zi.has(n)){zi.add(n);var F="";k===void 0?F=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof k!="object"?F=" However, it is set to a "+typeof k+".":k.$$typeof===Ao?F=" Did you accidentally pass the Context.Provider instead?":k._context!==void 0?F=" Did you accidentally pass the Context.Consumer instead?":F=" However, it is set to an object with keys {"+Object.keys(k).join(", ")+"}.",a("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",ze(n)||"Component",F)}}typeof k=="object"&&k!==null?v=eo(k):v=f;var U=new n(s,v);{if(typeof n.getDerivedStateFromProps=="function"&&(U.state===null||U.state===void 0)){var Q=ze(n)||"Component";zo.has(Q)||(zo.add(Q),a("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",Q,U.state===null?"null":"undefined",Q))}if(typeof n.getDerivedStateFromProps=="function"||typeof U.getSnapshotBeforeUpdate=="function"){var ae=null,ue=null,me=null;if(typeof U.componentWillMount=="function"&&U.componentWillMount.__suppressDeprecationWarning!==!0?ae="componentWillMount":typeof U.UNSAFE_componentWillMount=="function"&&(ae="UNSAFE_componentWillMount"),typeof U.componentWillReceiveProps=="function"&&U.componentWillReceiveProps.__suppressDeprecationWarning!==!0?ue="componentWillReceiveProps":typeof U.UNSAFE_componentWillReceiveProps=="function"&&(ue="UNSAFE_componentWillReceiveProps"),typeof U.componentWillUpdate=="function"&&U.componentWillUpdate.__suppressDeprecationWarning!==!0?me="componentWillUpdate":typeof U.UNSAFE_componentWillUpdate=="function"&&(me="UNSAFE_componentWillUpdate"),ae!==null||ue!==null||me!==null){var _e=ze(n)||"Component",st=typeof n.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";to.has(_e)||(to.add(_e),a(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
46
|
-
|
|
47
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
48
|
-
|
|
49
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
50
|
-
https://reactjs.org/link/unsafe-component-lifecycles`,_e,st,ae!==null?`
|
|
51
|
-
`+ae:"",ue!==null?`
|
|
52
|
-
`+ue:"",me!==null?`
|
|
53
|
-
`+me:""))}}}return U}function Gs(n,s,f){{var v=ze(s)||"Component",k=n.render;k||(s.prototype&&typeof s.prototype.render=="function"?a("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",v):a("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",v)),n.getInitialState&&!n.getInitialState.isReactClassApproved&&!n.state&&a("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",v),n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&a("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",v),n.propTypes&&a("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",v),n.contextType&&a("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",v),n.contextTypes&&a("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",v),s.contextType&&s.contextTypes&&!Vi.has(s)&&(Vi.add(s),a("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",v)),typeof n.componentShouldUpdate=="function"&&a("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",v),s.prototype&&s.prototype.isPureReactComponent&&typeof n.shouldComponentUpdate<"u"&&a("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",ze(s)||"A pure component"),typeof n.componentDidUnmount=="function"&&a("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",v),typeof n.componentDidReceiveProps=="function"&&a("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",v),typeof n.componentWillRecieveProps=="function"&&a("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",v),typeof n.UNSAFE_componentWillRecieveProps=="function"&&a("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",v);var I=n.props!==f;n.props!==void 0&&I&&a("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",v,v),n.defaultProps&&a("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",v,v),typeof n.getSnapshotBeforeUpdate=="function"&&typeof n.componentDidUpdate!="function"&&!_i.has(s)&&(_i.add(s),a("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",ze(s))),typeof n.getDerivedStateFromProps=="function"&&a("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",v),typeof n.getDerivedStateFromError=="function"&&a("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",v),typeof s.getSnapshotBeforeUpdate=="function"&&a("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",v);var F=n.state;F&&(typeof F!="object"||Lt(F))&&a("%s.state: must be set to an object or null",v),typeof n.getChildContext=="function"&&typeof s.childContextTypes!="object"&&a("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",v)}}function su(n,s){var f=s.state;if(typeof s.componentWillMount=="function"){if(s.componentWillMount.__suppressDeprecationWarning!==!0){var v=ze(n)||"Unknown";Li[v]||(i(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
54
|
-
|
|
55
|
-
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
56
|
-
|
|
57
|
-
Please update the following components: %s`,v),Li[v]=!0)}s.componentWillMount()}typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),f!==s.state&&(a("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",ze(n)||"Component"),Hs.enqueueReplaceState(s,s.state,null))}function lu(n,s,f,v){if(n.queue!==null&&n.queue.length>0){var k=n.queue,I=n.replace;if(n.queue=null,n.replace=!1,I&&k.length===1)s.state=k[0];else{for(var F=I?k[0]:s.state,U=!0,Q=I?1:0;Q<k.length;Q++){var ae=k[Q],ue=typeof ae=="function"?ae.call(s,F,f,v):ae;ue!=null&&(U?(U=!1,F=Pt({},F,ue)):Pt(F,ue))}s.state=F}}else n.queue=null}function Wi(n,s,f,v){Gs(n,s,f);var k=n.state!==void 0?n.state:null;n.updater=Hs,n.props=f,n.state=k;var I={queue:[],replace:!1};Ga(n,I);var F=s.contextType;if(typeof F=="object"&&F!==null?n.context=eo(F):n.context=v,n.state===f){var U=ze(s)||"Component";Bi.has(U)||(Bi.add(U),a("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",U))}var Q=s.getDerivedStateFromProps;typeof Q=="function"&&(n.state=iu(n,s,Q,k,f)),typeof s.getDerivedStateFromProps!="function"&&typeof n.getSnapshotBeforeUpdate!="function"&&(typeof n.UNSAFE_componentWillMount=="function"||typeof n.componentWillMount=="function")&&(su(s,n),lu(I,n,f,v))}var Ui={id:1,overflow:""};function uu(n){var s=n.overflow,f=n.id,v=f&~cu(f);return v.toString(32)+s}function $a(n,s,f){var v=n.id,k=n.overflow,I=Ni(v)-1,F=v&~(1<<I),U=f+1,Q=Ni(s)+I;if(Q>30){var ae=I-I%5,ue=(1<<ae)-1,me=(F&ue).toString(32),_e=F>>ae,st=I-ae,Ht=Ni(s)+st,hl=U<<st,pl=hl|_e,ml=me+k;return{id:1<<Ht|pl,overflow:ml}}else{var ia=U<<I,Kh=ia|F,qh=k;return{id:1<<Q|Kh,overflow:qh}}}function Ni(n){return 32-fu(n)}function cu(n){return 1<<Ni(n)-1}var fu=Math.clz32?Math.clz32:An,du=Math.log,hu=Math.LN2;function An(n){var s=n>>>0;return s===0?32:31-(du(s)/hu|0)|0}function Ya(n,s){return n===s&&(n!==0||1/n===1/s)||n!==n&&s!==s}var Hi=typeof Object.is=="function"?Object.is:Ya,xe=null,Sr=null,wr=null,Ie=null,Wt=!1,kr=!1,Gi=0,at=null,In=0,Tr=25,vn=!1,Cr;function Mn(){if(xe===null)throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
58
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
59
|
-
2. You might be breaking the Rules of Hooks
|
|
60
|
-
3. You might have more than one copy of React in the same app
|
|
61
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return vn&&a("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks"),xe}function pu(n,s){if(s===null)return a("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Cr),!1;n.length!==s.length&&a(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
62
|
-
|
|
63
|
-
Previous: %s
|
|
64
|
-
Incoming: %s`,Cr,"["+n.join(", ")+"]","["+s.join(", ")+"]");for(var f=0;f<s.length&&f<n.length;f++)if(!Hi(n[f],s[f]))return!1;return!0}function $s(){if(In>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function $i(){return Ie===null?wr===null?(Wt=!1,wr=Ie=$s()):(Wt=!0,Ie=wr):Ie.next===null?(Wt=!1,Ie=Ie.next=$s()):(Wt=!0,Ie=Ie.next),Ie}function Xa(n,s){xe=s,Sr=n,vn=!1,Gi=0}function mu(n,s,f,v){for(;kr;)kr=!1,Gi=0,In+=1,Ie=null,f=n(s,v);return Uo(),f}function Ys(){var n=Gi!==0;return n}function Uo(){vn=!1,xe=null,Sr=null,kr=!1,wr=null,In=0,at=null,Ie=null}function vu(n){return vn&&a("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),eo(n)}function Xs(n){return Cr="useContext",Mn(),eo(n)}function Yi(n,s){return typeof s=="function"?s(n):s}function gu(n){return Cr="useState",Zs(Yi,n)}function Zs(n,s,f){if(n!==Yi&&(Cr="useReducer"),xe=Mn(),Ie=$i(),Wt){var v=Ie.queue,k=v.dispatch;if(at!==null){var I=at.get(v);if(I!==void 0){at.delete(v);var F=Ie.memoizedState,U=I;do{var Q=U.action;vn=!0,F=n(F,Q),vn=!1,U=U.next}while(U!==null);return Ie.memoizedState=F,[F,k]}}return[Ie.memoizedState,k]}else{vn=!0;var ae;n===Yi?ae=typeof s=="function"?s():s:ae=f!==void 0?f(s):s,vn=!1,Ie.memoizedState=ae;var ue=Ie.queue={last:null,dispatch:null},me=ue.dispatch=xu.bind(null,xe,ue);return[Ie.memoizedState,me]}}function Qs(n,s){xe=Mn(),Ie=$i();var f=s===void 0?null:s;if(Ie!==null){var v=Ie.memoizedState;if(v!==null&&f!==null){var k=v[1];if(pu(f,k))return v[0]}}vn=!0;var I=n();return vn=!1,Ie.memoizedState=[I,f],I}function yu(n){xe=Mn(),Ie=$i();var s=Ie.memoizedState;if(s===null){var f={current:n};return Object.seal(f),Ie.memoizedState=f,f}else return s}function bu(n,s){Cr="useLayoutEffect",a("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.")}function xu(n,s,f){if(In>=Tr)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(n===xe){kr=!0;var v={action:f,next:null};at===null&&(at=new Map);var k=at.get(s);if(k===void 0)at.set(s,v);else{for(var I=k;I.next!==null;)I=I.next;I.next=v}}}function Su(n,s){return Qs(function(){return n},s)}function wu(n,s,f){return Mn(),s(n._source)}function ku(n,s,f){if(f===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return f()}function Tu(n){return Mn(),n}function Xi(){throw new Error("startTransition cannot be called during server rendering.")}function Js(){return Mn(),[!1,Xi]}function Za(){var n=Sr,s=uu(n.treeContext),f=Ho;if(f===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var v=Gi++;return ft(f,s,v)}function No(){}var Ks={readContext:vu,useContext:Xs,useMemo:Qs,useReducer:Zs,useRef:yu,useState:gu,useInsertionEffect:No,useLayoutEffect:bu,useCallback:Su,useImperativeHandle:No,useEffect:No,useDebugValue:No,useDeferredValue:Tu,useTransition:Js,useId:Za,useMutableSource:wu,useSyncExternalStore:ku},Ho=null;function Zi(n){Ho=n}function Qa(n){try{var s="",f=n;do{switch(f.tag){case 0:s+=Lo(f.type,null,null);break;case 1:s+=Ba(f.type,null,null);break;case 2:s+=ja(f.type,null,null);break}f=f.parent}while(f);return s}catch(v){return`
|
|
65
|
-
Error generating stack: `+v.message+`
|
|
66
|
-
`+v.stack}}var Yn=r.ReactCurrentDispatcher,Qi=r.ReactDebugCurrentFrame,Ji=0,Er=1,qs=2,Ja=3,Rr=4,Cu=0,el=1,gn=2,Eu=12800;function Ru(n){return console.error(n),null}function Go(){}function Ka(n,s,f,v,k,I,F,U,Q){var ae=[],ue=new Set,me={destination:null,responseState:s,progressiveChunkSize:v===void 0?Eu:v,status:Cu,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:ue,pingedTasks:ae,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:k===void 0?Ru:k,onAllReady:I===void 0?Go:I,onShellReady:F===void 0?Go:F,onShellError:U===void 0?Go:U,onFatalError:Q===void 0?Go:Q},_e=Xn(me,0,null,f,!1,!1);_e.parentFlushed=!0;var st=$o(me,n,null,_e,ue,$n,Ua,Ui);return ae.push(st),me}function Ki(n,s){var f=n.pingedTasks;f.push(s),f.length===1&&p(function(){return fl(n)})}function Dn(n,s){return{id:Bt,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s,errorDigest:null}}function $o(n,s,f,v,k,I,F,U){n.allPendingTasks++,f===null?n.pendingRootTasks++:f.pendingTasks++;var Q={node:s,ping:function(){return Ki(n,Q)},blockedBoundary:f,blockedSegment:v,abortSet:k,legacyContext:I,context:F,treeContext:U};return Q.componentStack=null,k.add(Q),Q}function Xn(n,s,f,v,k,I){return{status:Ji,id:-1,index:s,parentFlushed:!1,chunks:[],children:[],formatContext:v,boundary:f,lastPushedText:k,textEmbedded:I}}var yn=null;function qa(){return yn===null||yn.componentStack===null?"":Qa(yn.componentStack)}function Ut(n,s){n.componentStack={tag:0,parent:n.componentStack,type:s}}function ro(n,s){n.componentStack={tag:1,parent:n.componentStack,type:s}}function es(n,s){n.componentStack={tag:2,parent:n.componentStack,type:s}}function Nt(n){n.componentStack===null?a("Unexpectedly popped too many stack frames. This is a bug in React."):n.componentStack=n.componentStack.parent}var Zn=null;function ts(n,s){{var f;typeof s=="string"?f=s:s&&typeof s.message=="string"?f=s.message:f=String(s);var v=Zn||qa();Zn=null,n.errorMessage=f,n.errorComponentStack=v}}function Yo(n,s){var f=n.onError(s);if(f!=null&&typeof f!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof f+'" instead');return f}function qi(n,s){var f=n.onShellError;f(s);var v=n.onFatalError;v(s),n.destination!==null?(n.status=gn,N(n.destination,s)):(n.status=el,n.fatalError=s)}function tl(n,s,f){Ut(s,"Suspense");var v=s.blockedBoundary,k=s.blockedSegment,I=f.fallback,F=f.children,U=new Set,Q=Dn(n,U),ae=k.chunks.length,ue=Xn(n,ae,Q,k.formatContext,!1,!1);k.children.push(ue),k.lastPushedText=!1;var me=Xn(n,0,null,k.formatContext,!1,!1);me.parentFlushed=!0,s.blockedBoundary=Q,s.blockedSegment=me;try{if(ea(n,s,F),As(me.chunks,n.responseState,me.lastPushedText,me.textEmbedded),me.status=Er,Qo(Q,me),Q.pendingTasks===0){Nt(s);return}}catch(st){me.status=Rr,Q.forceClientRender=!0,Q.errorDigest=Yo(n,st),ts(Q,st)}finally{s.blockedBoundary=v,s.blockedSegment=k}var _e=$o(n,I,v,ue,U,s.legacyContext,s.context,s.treeContext);_e.componentStack=s.componentStack,n.pingedTasks.push(_e),Nt(s)}function nl(n,s,f,v){Ut(s,f);var k=s.blockedSegment,I=hn(k.chunks,f,v,n.responseState,k.formatContext);k.lastPushedText=!1;var F=k.formatContext;k.formatContext=Vn(F,f,v),ea(n,s,I),k.formatContext=F,Ct(k.chunks,f),k.lastPushedText=!1,Nt(s)}function Pu(n){return n.prototype&&n.prototype.isReactComponent}function ns(n,s,f,v,k){var I={};Xa(s,I);var F=f(v,k);return mu(f,v,F,k)}function Xo(n,s,f,v,k){var I=f.render();f.props!==k&&(as||a("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",ze(v)||"a component"),as=!0);{var F=v.childContextTypes;if(F!=null){var U=s.legacyContext,Q=br(f,v,U,F);s.legacyContext=Q,It(n,s,I),s.legacyContext=U;return}}It(n,s,I)}function rl(n,s,f,v){es(s,f);var k=Vs(f,s.legacyContext),I=au(f,v,k);Wi(I,f,v,k),Xo(n,s,I,f,v),Nt(s)}var rs={},Zo={},os={},is={},as=!1,ol=!1,il=!1,ss=!1;function Au(n,s,f,v){var k;if(k=Vs(f,s.legacyContext),ro(s,f),f.prototype&&typeof f.prototype.render=="function"){var I=ze(f)||"Unknown";rs[I]||(a("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",I,I),rs[I]=!0)}var F=ns(n,s,f,v,k),U=Ys();if(typeof F=="object"&&F!==null&&typeof F.render=="function"&&F.$$typeof===void 0){var Q=ze(f)||"Unknown";Zo[Q]||(a("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",Q,Q,Q),Zo[Q]=!0)}if(typeof F=="object"&&F!==null&&typeof F.render=="function"&&F.$$typeof===void 0){{var ae=ze(f)||"Unknown";Zo[ae]||(a("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",ae,ae,ae),Zo[ae]=!0)}Wi(F,f,v,k),Xo(n,s,F,f,v)}else if(Iu(f),U){var ue=s.treeContext,me=1,_e=0;s.treeContext=$a(ue,me,_e);try{It(n,s,F)}finally{s.treeContext=ue}}else It(n,s,F);Nt(s)}function Iu(n){{if(n&&n.childContextTypes&&a("%s(...): childContextTypes cannot be defined on a function component.",n.displayName||n.name||"Component"),typeof n.getDerivedStateFromProps=="function"){var s=ze(n)||"Unknown";is[s]||(a("%s: Function components do not support getDerivedStateFromProps.",s),is[s]=!0)}if(typeof n.contextType=="object"&&n.contextType!==null){var f=ze(n)||"Unknown";os[f]||(a("%s: Function components do not support contextType.",f),os[f]=!0)}}}function al(n,s){if(n&&n.defaultProps){var f=Pt({},s),v=n.defaultProps;for(var k in v)f[k]===void 0&&(f[k]=v[k]);return f}return s}function Mu(n,s,f,v,k){ro(s,f.render);var I=ns(n,s,f.render,v,k),F=Ys();if(F){var U=s.treeContext,Q=1,ae=0;s.treeContext=$a(U,Q,ae);try{It(n,s,I)}finally{s.treeContext=U}}else It(n,s,I);Nt(s)}function Du(n,s,f,v,k){var I=f.type,F=al(I,v);us(n,s,I,F,k)}function ls(n,s,f,v){f._context===void 0?f!==f.Consumer&&(ss||(ss=!0,a("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):f=f._context;var k=v.children;typeof k!="function"&&a("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var I=eo(f),F=k(I);It(n,s,F)}function Ou(n,s,f,v){var k=f._context,I=v.value,F=v.children,U;U=s.context,s.context=Vo(k,I),It(n,s,F),s.context=Ha(k),U!==s.context&&a("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function At(n,s,f,v,k){Ut(s,"Lazy");var I=f._payload,F=f._init,U=F(I),Q=al(U,v);us(n,s,U,Q,k),Nt(s)}function us(n,s,f,v,k){if(typeof f=="function")if(Pu(f)){rl(n,s,f,v);return}else{Au(n,s,f,v);return}if(typeof f=="string"){nl(n,s,f,v);return}switch(f){case nu:case Ds:case Ti:case Ci:case ki:{It(n,s,v.children);return}case Ra:{Ut(s,"SuspenseList"),It(n,s,v.children),Nt(s);return}case tu:throw new Error("ReactDOMServer does not yet support scope components.");case Qr:{tl(n,s,v);return}}if(typeof f=="object"&&f!==null)switch(f.$$typeof){case Mo:{Mu(n,s,f,v,k);return}case Pa:{Du(n,s,f,v,k);return}case Ao:{Ou(n,s,f,v);return}case Io:{ls(n,s,f,v);return}case Ei:{At(n,s,f,v);return}}var I="";throw(f===void 0||typeof f=="object"&&f!==null&&Object.keys(f).length===0)&&(I+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(f==null?f:typeof f)+"."+I))}function sl(n,s){typeof Symbol=="function"&&n[Symbol.toStringTag]==="Generator"&&(ol||a("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),ol=!0),n.entries===s&&(il||a("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),il=!0)}function It(n,s,f){try{return cs(n,s,f)}catch(v){throw typeof v=="object"&&v!==null&&typeof v.then=="function"||(Zn=Zn!==null?Zn:qa()),v}}function cs(n,s,f){if(s.node=f,typeof f=="object"&&f!==null){switch(f.$$typeof){case Ms:{var v=f,k=v.type,I=v.props,F=v.ref;us(n,s,k,I,F);return}case Ea:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case Ei:{var U=f,Q=U._payload,ae=U._init,ue;try{ue=ae(Q)}catch(ia){throw typeof ia=="object"&&ia!==null&&typeof ia.then=="function"&&Ut(s,"Lazy"),ia}It(n,s,ue);return}}if(Lt(f)){ll(n,s,f);return}var me=Ue(f);if(me){sl(f,me);var _e=me.call(f);if(_e){var st=_e.next();if(!st.done){var Ht=[];do Ht.push(st.value),st=_e.next();while(!st.done);ll(n,s,Ht);return}return}}var hl=Object.prototype.toString.call(f);throw new Error("Objects are not valid as a React child (found: "+(hl==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":hl)+"). If you meant to render a collection of children, use an array instead.")}if(typeof f=="string"){var pl=s.blockedSegment;pl.lastPushedText=Ps(s.blockedSegment.chunks,f,n.responseState,pl.lastPushedText);return}if(typeof f=="number"){var ml=s.blockedSegment;ml.lastPushedText=Ps(s.blockedSegment.chunks,""+f,n.responseState,ml.lastPushedText);return}typeof f=="function"&&a("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function ll(n,s,f){for(var v=f.length,k=0;k<v;k++){var I=s.treeContext;s.treeContext=$a(I,v,k);try{ea(n,s,f[k])}finally{s.treeContext=I}}}function Fu(n,s,f){var v=s.blockedSegment,k=v.chunks.length,I=Xn(n,k,null,v.formatContext,v.lastPushedText,!0);v.children.push(I),v.lastPushedText=!1;var F=$o(n,s.node,s.blockedBoundary,I,s.abortSet,s.legacyContext,s.context,s.treeContext);s.componentStack!==null&&(F.componentStack=s.componentStack.parent);var U=F.ping;f.then(U,U)}function ea(n,s,f){var v=s.blockedSegment.formatContext,k=s.legacyContext,I=s.context,F=null;F=s.componentStack;try{return It(n,s,f)}catch(U){if(Uo(),typeof U=="object"&&U!==null&&typeof U.then=="function"){Fu(n,s,U),s.blockedSegment.formatContext=v,s.legacyContext=k,s.context=I,Di(I),s.componentStack=F;return}else throw s.blockedSegment.formatContext=v,s.legacyContext=k,s.context=I,Di(I),s.componentStack=F,U}}function ta(n,s,f,v){var k=Yo(n,v);if(s===null?qi(n,v):(s.pendingTasks--,s.forceClientRender||(s.forceClientRender=!0,s.errorDigest=k,ts(s,v),s.parentFlushed&&n.clientRenderedBoundaries.push(s))),n.allPendingTasks--,n.allPendingTasks===0){var I=n.onAllReady;I()}}function ul(n){var s=this,f=n.blockedBoundary,v=n.blockedSegment;v.status=Ja,Jo(s,f,v)}function cl(n,s,f){var v=n.blockedBoundary,k=n.blockedSegment;if(k.status=Ja,v===null)s.allPendingTasks--,s.status!==gn&&(s.status=gn,s.destination!==null&&w(s.destination));else{if(v.pendingTasks--,!v.forceClientRender){v.forceClientRender=!0;var I=f===void 0?new Error("The render was aborted by the server without a reason."):f;v.errorDigest=s.onError(I);{var F="The server did not finish this Suspense boundary: ";I&&typeof I.message=="string"?I=F+I.message:I=F+String(I);var U=yn;yn=n;try{ts(v,I)}finally{yn=U}}v.parentFlushed&&s.clientRenderedBoundaries.push(v)}if(v.fallbackAbortableTasks.forEach(function(ae){return cl(ae,s,f)}),v.fallbackAbortableTasks.clear(),s.allPendingTasks--,s.allPendingTasks===0){var Q=s.onAllReady;Q()}}}function Qo(n,s){if(s.chunks.length===0&&s.children.length===1&&s.children[0].boundary===null){var f=s.children[0];f.id=s.id,f.parentFlushed=!0,f.status===Er&&Qo(n,f)}else{var v=n.completedSegments;v.push(s)}}function Jo(n,s,f){if(s===null){if(f.parentFlushed){if(n.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");n.completedRootSegment=f}if(n.pendingRootTasks--,n.pendingRootTasks===0){n.onShellError=Go;var v=n.onShellReady;v()}}else if(s.pendingTasks--,!s.forceClientRender){if(s.pendingTasks===0)f.parentFlushed&&f.status===Er&&Qo(s,f),s.parentFlushed&&n.completedBoundaries.push(s),s.fallbackAbortableTasks.forEach(ul,n),s.fallbackAbortableTasks.clear();else if(f.parentFlushed&&f.status===Er){Qo(s,f);var k=s.completedSegments;k.length===1&&s.parentFlushed&&n.partialBoundaries.push(s)}}if(n.allPendingTasks--,n.allPendingTasks===0){var I=n.onAllReady;I()}}function na(n,s){var f=s.blockedSegment;if(f.status===Ji){Di(s.context);var v=null;v=yn,yn=s;try{It(n,s,s.node),As(f.chunks,n.responseState,f.lastPushedText,f.textEmbedded),s.abortSet.delete(s),f.status=Er,Jo(n,s.blockedBoundary,f)}catch(I){if(Uo(),typeof I=="object"&&I!==null&&typeof I.then=="function"){var k=s.ping;I.then(k,k)}else s.abortSet.delete(s),f.status=Rr,ta(n,s.blockedBoundary,f,I)}finally{yn=v}}}function fl(n){if(n.status!==gn){var s=ou(),f=Yn.current;Yn.current=Ks;var v;v=Qi.getCurrentStack,Qi.getCurrentStack=qa;var k=Ho;Zi(n.responseState);try{var I=n.pingedTasks,F;for(F=0;F<I.length;F++){var U=I[F];na(n,U)}I.splice(0,F),n.destination!==null&&oa(n,n.destination)}catch(Q){Yo(n,Q),qi(n,Q)}finally{Zi(k),Yn.current=f,Qi.getCurrentStack=v,f===Ks&&Di(s)}}}function Ko(n,s,f){switch(f.parentFlushed=!0,f.status){case Ji:{var v=f.id=n.nextSegmentId++;return f.lastPushedText=!1,f.textEmbedded=!1,ci(s,n.responseState,v)}case Er:{f.status=qs;for(var k=!0,I=f.chunks,F=0,U=f.children,Q=0;Q<U.length;Q++){for(var ae=U[Q];F<ae.index;F++)m(s,I[F]);k=qo(n,s,ae)}for(;F<I.length-1;F++)m(s,I[F]);return F<I.length&&(k=b(s,I[F])),k}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function qo(n,s,f){var v=f.boundary;if(v===null)return Ko(n,s,f);if(v.parentFlushed=!0,v.forceClientRender)return zt(s,n.responseState,v.errorDigest,v.errorMessage,v.errorComponentStack),Ko(n,s,f),Is(s,n.responseState);if(v.pendingTasks>0){v.rootSegmentID=n.nextSegmentId++,v.completedSegments.length>0&&n.partialBoundaries.push(v);var k=v.id=Vt(n.responseState);return Gn(s,n.responseState,k),Ko(n,s,f),Eo(s,n.responseState)}else{if(v.byteSize>n.progressiveChunkSize)return v.rootSegmentID=n.nextSegmentId++,n.completedBoundaries.push(v),Gn(s,n.responseState,v.id),Ko(n,s,f),Eo(s,n.responseState);Ca(s,n.responseState);var I=v.completedSegments;if(I.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var F=I[0];return qo(n,s,F),eu(s,n.responseState)}}function Lu(n,s,f){return Jl(s,n.responseState,f.id,f.errorDigest,f.errorMessage,f.errorComponentStack)}function fs(n,s,f){return V(s,n.responseState,f.formatContext,f.id),qo(n,s,f),Z(s,f.formatContext)}function ra(n,s,f){for(var v=f.completedSegments,k=0;k<v.length;k++){var I=v[k];dl(n,s,f,I)}return v.length=0,$l(s,n.responseState,f.id,f.rootSegmentID)}function _u(n,s,f){for(var v=f.completedSegments,k=0;k<v.length;k++){var I=v[k];if(!dl(n,s,f,I))return k++,v.splice(0,k),!1}return v.splice(0,k),!0}function dl(n,s,f,v){if(v.status===qs)return!0;var k=v.id;if(k===-1){var I=v.id=f.rootSegmentID;if(I===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return fs(n,s,v)}else return fs(n,s,v),Rt(s,n.responseState,k)}function oa(n,s){try{var f=n.completedRootSegment;f!==null&&n.pendingRootTasks===0&&(qo(n,s,f),n.completedRootSegment=null,wo(s,n.responseState));var v=n.clientRenderedBoundaries,k;for(k=0;k<v.length;k++){var I=v[k];if(!Lu(n,s,I)){n.destination=null,k++,v.splice(0,k);return}}v.splice(0,k);var F=n.completedBoundaries;for(k=0;k<F.length;k++){var U=F[k];if(!ra(n,s,U)){n.destination=null,k++,F.splice(0,k);return}}F.splice(0,k);var Q=n.partialBoundaries;for(k=0;k<Q.length;k++){var ae=Q[k];if(!_u(n,s,ae)){n.destination=null,k++,Q.splice(0,k);return}}Q.splice(0,k);var ue=n.completedBoundaries;for(k=0;k<ue.length;k++){var me=ue[k];if(!ra(n,s,me)){n.destination=null,k++,ue.splice(0,k);return}}ue.splice(0,k)}finally{n.allPendingTasks===0&&n.pingedTasks.length===0&&n.clientRenderedBoundaries.length===0&&n.completedBoundaries.length===0&&(n.abortableTasks.size!==0&&a("There was still abortable task at the root when we closed. This is a bug in React."),w(s))}}function ju(n){p(function(){return fl(n)})}function o(n,s){if(n.status===el){n.status=gn,N(s,n.fatalError);return}if(n.status!==gn&&n.destination===null){n.destination=s;try{oa(n,s)}catch(f){Yo(n,f),qi(n,f)}}}function l(n,s){try{var f=n.abortableTasks;f.forEach(function(v){return cl(v,n,s)}),f.clear(),n.destination!==null&&oa(n,n.destination)}catch(v){Yo(n,v),qi(n,v)}}function d(){}function x(n,s,f,v){var k=!1,I=null,F="",U={push:function(me){return me!==null&&(F+=me),!0},destroy:function(me){k=!0,I=me}},Q=!1;function ae(){Q=!0}var ue=Ka(n,ql(f,s?s.identifierPrefix:void 0),Ta(),1/0,d,void 0,ae,void 0,void 0);if(ju(ue),l(ue,v),o(ue,U),k)throw I;if(!Q)throw new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");return F}function E(n,s){return x(n,s,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function M(n,s){return x(n,s,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function L(){throw new Error("ReactDOMServer.renderToNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToString() instead.")}function H(){throw new Error("ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToStaticMarkup() instead.")}ti.renderToNodeStream=L,ti.renderToStaticMarkup=M,ti.renderToStaticNodeStream=H,ti.renderToString=E,ti.version=e}()),ti}var gl={};/**
|
|
67
|
-
* @license React
|
|
68
|
-
* react-dom-server.browser.development.js
|
|
69
|
-
*
|
|
70
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
71
|
-
*
|
|
72
|
-
* This source code is licensed under the MIT license found in the
|
|
73
|
-
* LICENSE file in the root directory of this source tree.
|
|
74
|
-
*/var Hc;function ip(){return Hc||(Hc=1,process.env.NODE_ENV!=="production"&&function(){var t=oe,e="18.2.0",r=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function i(o){{for(var l=arguments.length,d=new Array(l>1?l-1:0),x=1;x<l;x++)d[x-1]=arguments[x];h("warn",o,d)}}function a(o){{for(var l=arguments.length,d=new Array(l>1?l-1:0),x=1;x<l;x++)d[x-1]=arguments[x];h("error",o,d)}}function h(o,l,d){{var x=r.ReactDebugCurrentFrame,E=x.getStackAddendum();E!==""&&(l+="%s",d=d.concat([E]));var M=d.map(function(L){return String(L)});M.unshift("Warning: "+l),Function.prototype.apply.call(console[o],console,M)}}function p(o){o()}var S=512,m=null,b=0;function R(o){m=new Uint8Array(S),b=0}function w(o,l){if(l.length!==0){if(l.length>S){b>0&&(o.enqueue(new Uint8Array(m.buffer,0,b)),m=new Uint8Array(S),b=0),o.enqueue(l);return}var d=l,x=m.length-b;x<d.length&&(x===0?o.enqueue(m):(m.set(d.subarray(0,x),b),o.enqueue(m),d=d.subarray(x)),m=new Uint8Array(S),b=0),m.set(d,b),b+=d.length}}function D(o,l){return w(o,l),!0}function _(o){m&&b>0&&(o.enqueue(new Uint8Array(m.buffer,0,b)),m=null,b=0)}function N(o){o.close()}var Y=new TextEncoder;function j(o){return Y.encode(o)}function O(o){return Y.encode(o)}function X(o,l){typeof o.error=="function"?o.error(l):o.close()}function $(o){{var l=typeof Symbol=="function"&&Symbol.toStringTag,d=l&&o[Symbol.toStringTag]||o.constructor.name||"Object";return d}}function J(o){try{return q(o),!1}catch{return!0}}function q(o){return""+o}function K(o,l){if(J(o))return a("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",l,$(o)),q(o)}function te(o,l){if(J(o))return a("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",l,$(o)),q(o)}function ie(o){if(J(o))return a("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",$(o)),q(o)}var se=Object.prototype.hasOwnProperty,Pe=0,De=1,ye=2,Oe=3,Ce=4,et=5,Fe=6,tt=":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",Ee=tt+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",je=new RegExp("^["+tt+"]["+Ee+"]*$"),dt={},he={};function ke(o){return se.call(he,o)?!0:se.call(dt,o)?!1:je.test(o)?(he[o]=!0,!0):(dt[o]=!0,a("Invalid attribute name: `%s`",o),!1)}function ht(o,l,d,x){if(d!==null&&d.type===Pe)return!1;switch(typeof l){case"function":case"symbol":return!0;case"boolean":{if(x)return!1;if(d!==null)return!d.acceptsBooleans;var E=o.toLowerCase().slice(0,5);return E!=="data-"&&E!=="aria-"}default:return!1}}function yt(o){return Se.hasOwnProperty(o)?Se[o]:null}function Re(o,l,d,x,E,M,L){this.acceptsBooleans=l===ye||l===Oe||l===Ce,this.attributeName=x,this.attributeNamespace=E,this.mustUseProperty=d,this.propertyName=o,this.type=l,this.sanitizeURL=M,this.removeEmptyString=L}var Se={},lt=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];lt.forEach(function(o){Se[o]=new Re(o,Pe,!1,o,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var l=o[0],d=o[1];Se[l]=new Re(l,De,!1,d,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){Se[o]=new Re(o,ye,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){Se[o]=new Re(o,ye,!1,o,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"].forEach(function(o){Se[o]=new Re(o,Oe,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){Se[o]=new Re(o,Oe,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){Se[o]=new Re(o,Ce,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){Se[o]=new Re(o,Fe,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){Se[o]=new Re(o,et,!1,o.toLowerCase(),null,!1,!1)});var ut=/[\-\:]([a-z])/g,Xe=function(o){return o[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"].forEach(function(o){var l=o.replace(ut,Xe);Se[l]=new Re(l,De,!1,o,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(o){var l=o.replace(ut,Xe);Se[l]=new Re(l,De,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(o){var l=o.replace(ut,Xe);Se[l]=new Re(l,De,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){Se[o]=new Re(o,De,!1,o.toLowerCase(),null,!1,!1)});var Ke="xlinkHref";Se[Ke]=new Re("xlinkHref",De,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){Se[o]=new Re(o,De,!1,o.toLowerCase(),null,!0,!0)});var Ae={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};function Yt(o,l){return o+l.charAt(0).toUpperCase()+l.substring(1)}var Be=["Webkit","ms","Moz","O"];Object.keys(Ae).forEach(function(o){Be.forEach(function(l){Ae[Yt(l,o)]=Ae[o]})});var He={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function nn(o,l){He[l.type]||l.onChange||l.onInput||l.readOnly||l.disabled||l.value==null||a("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),l.onChange||l.readOnly||l.disabled||l.checked==null||a("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Dt(o,l){if(o.indexOf("-")===-1)return typeof l.is=="string";switch(o){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 Dr={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},St={},Sn=new RegExp("^(aria)-["+Ee+"]*$"),wn=new RegExp("^(aria)[A-Z]["+Ee+"]*$");function Or(o,l){{if(se.call(St,l)&&St[l])return!0;if(wn.test(l)){var d="aria-"+l.slice(4).toLowerCase(),x=Dr.hasOwnProperty(d)?d:null;if(x==null)return a("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",l),St[l]=!0,!0;if(l!==x)return a("Invalid ARIA attribute `%s`. Did you mean `%s`?",l,x),St[l]=!0,!0}if(Sn.test(l)){var E=l.toLowerCase(),M=Dr.hasOwnProperty(E)?E:null;if(M==null)return St[l]=!0,!1;if(l!==M)return a("Unknown ARIA attribute `%s`. Did you mean `%s`?",l,M),St[l]=!0,!0}}return!0}function wt(o,l){{var d=[];for(var x in l){var E=Or(o,x);E||d.push(x)}var M=d.map(function(L){return"`"+L+"`"}).join(", ");d.length===1?a("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",M,o):d.length>1&&a("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",M,o)}}function nt(o,l){Dt(o,l)||wt(o,l)}var Ze=!1;function Kn(o,l){{if(o!=="input"&&o!=="textarea"&&o!=="select")return;l!=null&&l.value===null&&!Ze&&(Ze=!0,o==="select"&&l.multiple?a("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",o):a("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",o))}}var qn={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},er=function(){};{var Ge={},tr=/^on./,Fr=/^on[^A-Z]/,Lr=new RegExp("^(aria)-["+Ee+"]*$"),nr=new RegExp("^(aria)[A-Z]["+Ee+"]*$");er=function(o,l,d,x){if(se.call(Ge,l)&&Ge[l])return!0;var E=l.toLowerCase();if(E==="onfocusin"||E==="onfocusout")return a("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Ge[l]=!0,!0;if(x!=null){var M=x.registrationNameDependencies,L=x.possibleRegistrationNames;if(M.hasOwnProperty(l))return!0;var H=L.hasOwnProperty(E)?L[E]:null;if(H!=null)return a("Invalid event handler property `%s`. Did you mean `%s`?",l,H),Ge[l]=!0,!0;if(tr.test(l))return a("Unknown event handler property `%s`. It will be ignored.",l),Ge[l]=!0,!0}else if(tr.test(l))return Fr.test(l)&&a("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",l),Ge[l]=!0,!0;if(Lr.test(l)||nr.test(l))return!0;if(E==="innerhtml")return a("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Ge[l]=!0,!0;if(E==="aria")return a("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Ge[l]=!0,!0;if(E==="is"&&d!==null&&d!==void 0&&typeof d!="string")return a("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof d),Ge[l]=!0,!0;if(typeof d=="number"&&isNaN(d))return a("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",l),Ge[l]=!0,!0;var n=yt(l),s=n!==null&&n.type===Pe;if(qn.hasOwnProperty(E)){var f=qn[E];if(f!==l)return a("Invalid DOM property `%s`. Did you mean `%s`?",l,f),Ge[l]=!0,!0}else if(!s&&l!==E)return a("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",l,E),Ge[l]=!0,!0;return typeof d=="boolean"&&ht(l,d,n,!1)?(d?a('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',d,l,l,d,l):a('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',d,l,l,d,l,l,l),Ge[l]=!0,!0):s?!0:ht(l,d,n,!1)?(Ge[l]=!0,!1):((d==="false"||d==="true")&&n!==null&&n.type===Oe&&(a("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",d,l,d==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',l,d),Ge[l]=!0),!0)}}var Fn=function(o,l,d){{var x=[];for(var E in l){var M=er(o,E,l[E],d);M||x.push(E)}var L=x.map(function(H){return"`"+H+"`"}).join(", ");x.length===1?a("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",L,o):x.length>1&&a("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",L,o)}};function vo(o,l,d){Dt(o,l)||Fn(o,l,d)}var rr=function(){};{var rn=/^(?:webkit|moz|o)[A-Z]/,or=/^-ms-/,_r=/-(.)/g,ct=/;\s*$/,Ot={},on={},Te=!1,an=!1,Ln=function(o){return o.replace(_r,function(l,d){return d.toUpperCase()})},kn=function(o){Ot.hasOwnProperty(o)&&Ot[o]||(Ot[o]=!0,a("Unsupported style property %s. Did you mean %s?",o,Ln(o.replace(or,"ms-"))))},Ft=function(o){Ot.hasOwnProperty(o)&&Ot[o]||(Ot[o]=!0,a("Unsupported vendor-prefixed style property %s. Did you mean %s?",o,o.charAt(0).toUpperCase()+o.slice(1)))},_n=function(o,l){on.hasOwnProperty(l)&&on[l]||(on[l]=!0,a(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,o,l.replace(ct,"")))},Xt=function(o,l){Te||(Te=!0,a("`NaN` is an invalid value for the `%s` css style property.",o))},We=function(o,l){an||(an=!0,a("`Infinity` is an invalid value for the `%s` css style property.",o))};rr=function(o,l){o.indexOf("-")>-1?kn(o):rn.test(o)?Ft(o):ct.test(l)&&_n(o,l),typeof l=="number"&&(isNaN(l)?Xt(o,l):isFinite(l)||We(o,l))}}var ir=rr,ar=/["'&<>]/;function jr(o){ie(o);var l=""+o,d=ar.exec(l);if(!d)return l;var x,E="",M,L=0;for(M=d.index;M<l.length;M++){switch(l.charCodeAt(M)){case 34:x=""";break;case 38:x="&";break;case 39:x="'";break;case 60:x="<";break;case 62:x=">";break;default:continue}L!==M&&(E+=l.substring(L,M)),L=M+1,E+=x}return L!==M?E+l.substring(L,M):E}function $e(o){return typeof o=="boolean"||typeof o=="number"?""+o:jr(o)}var sr=/([A-Z])/g,go=/^ms-/;function yo(o){return o.replace(sr,"-$1").toLowerCase().replace(go,"-ms-")}var Lt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,lr=!1;function jn(o){!lr&&Lt.test(o)&&(lr=!0,a("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(o)))}var ur=Array.isArray;function Tn(o){return ur(o)}var sn=O("<script>"),bo=O("<\/script>"),cr=O('<script src="'),Bn=O('<script type="module" src="'),ln=O('" async=""><\/script>');function Zt(o){return ie(o),(""+o).replace(_t,Cn)}var _t=/(<\/|<)(s)(cript)/gi,Cn=function(o,l,d,x){return""+l+(d==="s"?"\\u0073":"\\u0053")+x};function En(o,l,d,x,E){var M=o===void 0?"":o,L=l===void 0?sn:O('<script nonce="'+$e(l)+'">'),H=[];if(d!==void 0&&H.push(L,j(Zt(d)),bo),x!==void 0)for(var n=0;n<x.length;n++)H.push(cr,j($e(x[n])),ln);if(E!==void 0)for(var s=0;s<E.length;s++)H.push(Bn,j($e(E[s])),ln);return{bootstrapChunks:H,startInlineScript:L,placeholderPrefix:O(M+"P:"),segmentPrefix:O(M+"S:"),boundaryPrefix:M+"B:",idPrefix:M,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var bt=0,Ve=1,jt=2,kt=3,qe=4,Vn=5,Bt=6,Vt=7;function ft(o,l){return{insertionMode:o,selectedValue:l}}function Qt(o){var l=o==="http://www.w3.org/2000/svg"?jt:o==="http://www.w3.org/1998/Math/MathML"?kt:bt;return ft(l,null)}function un(o,l,d){switch(l){case"select":return ft(Ve,d.value!=null?d.value:d.defaultValue);case"svg":return ft(jt,null);case"math":return ft(kt,null);case"foreignObject":return ft(Ve,null);case"table":return ft(qe,null);case"thead":case"tbody":case"tfoot":return ft(Vn,null);case"colgroup":return ft(Vt,null);case"tr":return ft(Bt,null)}return o.insertionMode>=qe||o.insertionMode===bt?ft(Ve,null):o}var fr=null;function dr(o){var l=o.nextSuspenseID++;return O(o.boundaryPrefix+l.toString(16))}function zn(o,l,d){var x=o.idPrefix,E=":"+x+"R"+l;return d>0&&(E+="H"+d.toString(32)),E+":"}function cn(o){return $e(o)}var hr=O("<!-- -->");function Wn(o,l,d,x){return l===""?x:(x&&o.push(hr),o.push(j(cn(l))),!0)}function Un(o,l,d,x){d&&x&&o.push(hr)}var u=new Map;function g(o){var l=u.get(o);if(l!==void 0)return l;var d=O($e(yo(o)));return u.set(o,d),d}var C=O(' style="'),P=O(":"),z=O(";");function B(o,l,d){if(typeof d!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var x=!0;for(var E in d)if(se.call(d,E)){var M=d[E];if(!(M==null||typeof M=="boolean"||M==="")){var L=void 0,H=void 0,n=E.indexOf("--")===0;n?(L=j($e(E)),te(M,E),H=j($e((""+M).trim()))):(ir(E,M),L=g(E),typeof M=="number"?M!==0&&!se.call(Ae,E)?H=j(M+"px"):H=j(""+M):(te(M,E),H=j($e((""+M).trim())))),x?(x=!1,o.push(C,L,P,H)):o.push(z,L,P,H)}}x||o.push(le)}var G=O(" "),ee=O('="'),le=O('"'),fe=O('=""');function ce(o,l,d,x){switch(d){case"style":{B(o,l,x);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(d.length>2&&(d[0]==="o"||d[0]==="O")&&(d[1]==="n"||d[1]==="N"))){var E=yt(d);if(E!==null){switch(typeof x){case"function":case"symbol":return;case"boolean":if(!E.acceptsBooleans)return}var M=E.attributeName,L=j(M);switch(E.type){case Oe:x&&o.push(G,L,fe);return;case Ce:x===!0?o.push(G,L,fe):x===!1||o.push(G,L,ee,j($e(x)),le);return;case et:isNaN(x)||o.push(G,L,ee,j($e(x)),le);break;case Fe:!isNaN(x)&&x>=1&&o.push(G,L,ee,j($e(x)),le);break;default:E.sanitizeURL&&(K(x,M),x=""+x,jn(x)),o.push(G,L,ee,j($e(x)),le)}}else if(ke(d)){switch(typeof x){case"function":case"symbol":return;case"boolean":{var H=d.toLowerCase().slice(0,5);if(H!=="data-"&&H!=="aria-")return}}o.push(G,j(d),ee,j($e(x)),le)}}}var be=O(">"),pt=O("/>");function ot(o,l,d){if(l!=null){if(d!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof l!="object"||!("__html"in l))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var x=l.__html;x!=null&&(ie(x),o.push(j(""+x)))}}var it=!1,Jt=!1,Tt=!1,Nn=!1,fn=!1,Rn=!1,Kt=!1;function pr(o,l){{var d=o[l];if(d!=null){var x=Tn(d);o.multiple&&!x?a("The `%s` prop supplied to <select> must be an array if `multiple` is true.",l):!o.multiple&&x&&a("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",l)}}}function ma(o,l,d){nn("select",l),pr(l,"value"),pr(l,"defaultValue"),l.value!==void 0&&l.defaultValue!==void 0&&!Tt&&(a("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Tt=!0),o.push(Ct("select"));var x=null,E=null;for(var M in l)if(se.call(l,M)){var L=l[M];if(L==null)continue;switch(M){case"children":x=L;break;case"dangerouslySetInnerHTML":E=L;break;case"defaultValue":case"value":break;default:ce(o,d,M,L);break}}return o.push(be),ot(o,E,x),x}function va(o){var l="";return t.Children.forEach(o,function(d){d!=null&&(l+=d,!fn&&typeof d!="string"&&typeof d!="number"&&(fn=!0,a("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),l}var xo=O(' selected=""');function ga(o,l,d,x){var E=x.selectedValue;o.push(Ct("option"));var M=null,L=null,H=null,n=null;for(var s in l)if(se.call(l,s)){var f=l[s];if(f==null)continue;switch(s){case"children":M=f;break;case"selected":H=f,Kt||(a("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Kt=!0);break;case"dangerouslySetInnerHTML":n=f;break;case"value":L=f;default:ce(o,d,s,f);break}}if(E!=null){var v;if(L!==null?(K(L,"value"),v=""+L):(n!==null&&(Rn||(Rn=!0,a("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),v=va(M)),Tn(E))for(var k=0;k<E.length;k++){K(E[k],"value");var I=""+E[k];if(I===v){o.push(xo);break}}else K(E,"select.value"),""+E===v&&o.push(xo)}else H&&o.push(xo);return o.push(be),ot(o,n,M),M}function So(o,l,d){nn("input",l),l.checked!==void 0&&l.defaultChecked!==void 0&&!Jt&&(a("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",l.type),Jt=!0),l.value!==void 0&&l.defaultValue!==void 0&&!it&&(a("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",l.type),it=!0),o.push(Ct("input"));var x=null,E=null,M=null,L=null;for(var H in l)if(se.call(l,H)){var n=l[H];if(n==null)continue;switch(H){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":L=n;break;case"defaultValue":E=n;break;case"checked":M=n;break;case"value":x=n;break;default:ce(o,d,H,n);break}}return M!==null?ce(o,d,"checked",M):L!==null&&ce(o,d,"checked",L),x!==null?ce(o,d,"value",x):E!==null&&ce(o,d,"value",E),o.push(pt),null}function qt(o,l,d){nn("textarea",l),l.value!==void 0&&l.defaultValue!==void 0&&!Nn&&(a("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Nn=!0),o.push(Ct("textarea"));var x=null,E=null,M=null;for(var L in l)if(se.call(l,L)){var H=l[L];if(H==null)continue;switch(L){case"children":M=H;break;case"value":x=H;break;case"defaultValue":E=H;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:ce(o,d,L,H);break}}if(x===null&&E!==null&&(x=E),o.push(be),M!=null){if(a("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),x!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Tn(M)){if(M.length>1)throw new Error("<textarea> can only have at most one child.");ie(M[0]),x=""+M[0]}ie(M),x=""+M}return typeof x=="string"&&x[0]===`
|
|
75
|
-
`&&o.push(Pn),x!==null&&(K(x,"value"),o.push(j(cn(""+x)))),null}function mr(o,l,d,x){o.push(Ct(d));for(var E in l)if(se.call(l,E)){var M=l[E];if(M==null)continue;switch(E){case"children":case"dangerouslySetInnerHTML":throw new Error(d+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ce(o,x,E,M);break}}return o.push(pt),null}function Br(o,l,d){o.push(Ct("menuitem"));for(var x in l)if(se.call(l,x)){var E=l[x];if(E==null)continue;switch(x){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:ce(o,d,x,E);break}}return o.push(be),null}function Me(o,l,d){o.push(Ct("title"));var x=null;for(var E in l)if(se.call(l,E)){var M=l[E];if(M==null)continue;switch(E){case"children":x=M;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:ce(o,d,E,M);break}}o.push(be);{var L=Array.isArray(x)&&x.length<2?x[0]||null:x;Array.isArray(x)&&x.length>1?a("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):L!=null&&L.$$typeof!=null?a("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):L!=null&&typeof L!="string"&&typeof L!="number"&&a("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return x}function dn(o,l,d,x){o.push(Ct(d));var E=null,M=null;for(var L in l)if(se.call(l,L)){var H=l[L];if(H==null)continue;switch(L){case"children":E=H;break;case"dangerouslySetInnerHTML":M=H;break;default:ce(o,x,L,H);break}}return o.push(be),ot(o,M,E),typeof E=="string"?(o.push(j(cn(E))),null):E}function mt(o,l,d,x){o.push(Ct(d));var E=null,M=null;for(var L in l)if(se.call(l,L)){var H=l[L];if(H==null)continue;switch(L){case"children":E=H;break;case"dangerouslySetInnerHTML":M=H;break;case"style":B(o,x,H);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:ke(L)&&typeof H!="function"&&typeof H!="symbol"&&o.push(G,j(L),ee,j($e(H)),le);break}}return o.push(be),ot(o,M,E),E}var Pn=O(`
|
|
76
|
-
`);function hn(o,l,d,x){o.push(Ct(d));var E=null,M=null;for(var L in l)if(se.call(l,L)){var H=l[L];if(H==null)continue;switch(L){case"children":E=H;break;case"dangerouslySetInnerHTML":M=H;break;default:ce(o,x,L,H);break}}if(o.push(be),M!=null){if(E!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof M!="object"||!("__html"in M))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var n=M.__html;n!=null&&(typeof n=="string"&&n.length>0&&n[0]===`
|
|
77
|
-
`?o.push(Pn,j(n)):(ie(n),o.push(j(""+n))))}return typeof E=="string"&&E[0]===`
|
|
78
|
-
`&&o.push(Pn),E}var Vr=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,pn=new Map;function Ct(o){var l=pn.get(o);if(l===void 0){if(!Vr.test(o))throw new Error("Invalid tag: "+o);l=O("<"+o),pn.set(o,l)}return l}var wo=O("<!DOCTYPE html>");function ko(o,l,d,x,E){switch(nt(l,d),Kn(l,d),vo(l,d,null),!d.suppressContentEditableWarning&&d.contentEditable&&d.children!=null&&a("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),E.insertionMode!==jt&&E.insertionMode!==kt&&l.indexOf("-")===-1&&typeof d.is!="string"&&l.toLowerCase()!==l&&a("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",l),l){case"select":return ma(o,d,x);case"option":return ga(o,d,x,E);case"textarea":return qt(o,d,x);case"input":return So(o,d,x);case"menuitem":return Br(o,d,x);case"title":return Me(o,d,x);case"listing":case"pre":return hn(o,d,l,x);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return mr(o,d,l,x);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 dn(o,d,l,x);case"html":return E.insertionMode===bt&&o.push(wo),dn(o,d,l,x);default:return l.indexOf("-")===-1&&typeof d.is!="string"?dn(o,d,l,x):mt(o,d,l,x)}}var ui=O("</"),ci=O(">");function fi(o,l,d){switch(l){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:o.push(ui,j(l),ci)}}function ya(o,l){for(var d=l.bootstrapChunks,x=0;x<d.length-1;x++)w(o,d[x]);return x<d.length?D(o,d[x]):!0}var ba=O('<template id="'),zr=O('"></template>');function Wr(o,l,d){w(o,ba),w(o,l.placeholderPrefix);var x=j(d.toString(16));return w(o,x),D(o,zr)}var Ur=O("<!--$-->"),vr=O('<!--$?--><template id="'),xa=O('"></template>'),gr=O("<!--$!-->"),To=O("<!--/$-->"),Co=O("<template"),Hn=O('"'),Gn=O(' data-dgst="'),Nr=O(' data-msg="'),di=O(' data-stck="'),Eo=O("></template>");function hi(o,l){return D(o,Ur)}function Hr(o,l,d){if(w(o,vr),d===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return w(o,d),D(o,xa)}function vt(o,l,d,x,E){var M;return M=D(o,gr),w(o,Co),d&&(w(o,Gn),w(o,j($e(d))),w(o,Hn)),x&&(w(o,Nr),w(o,j($e(x))),w(o,Hn)),E&&(w(o,di),w(o,j($e(E))),w(o,Hn)),M=D(o,Eo),M}function pi(o,l){return D(o,To)}function Gr(o,l){return D(o,To)}function Sa(o,l){return D(o,To)}var mi=O('<div hidden id="'),$r=O('">'),vi=O("</div>"),gi=O('<svg aria-hidden="true" style="display:none" id="'),Yr=O('">'),Xr=O("</svg>"),yi=O('<math aria-hidden="true" style="display:none" id="'),bi=O('">'),xi=O("</math>"),Ro=O('<table hidden id="'),Si=O('">'),c=O("</table>"),y=O('<table hidden><tbody id="'),T=O('">'),A=O("</tbody></table>"),W=O('<table hidden><tr id="'),V=O('">'),Z=O("</tr></table>"),ne=O('<table hidden><colgroup id="'),de=O('">'),ge=O("</colgroup></table>");function ve(o,l,d,x){switch(d.insertionMode){case bt:case Ve:return w(o,mi),w(o,l.segmentPrefix),w(o,j(x.toString(16))),D(o,$r);case jt:return w(o,gi),w(o,l.segmentPrefix),w(o,j(x.toString(16))),D(o,Yr);case kt:return w(o,yi),w(o,l.segmentPrefix),w(o,j(x.toString(16))),D(o,bi);case qe:return w(o,Ro),w(o,l.segmentPrefix),w(o,j(x.toString(16))),D(o,Si);case Vn:return w(o,y),w(o,l.segmentPrefix),w(o,j(x.toString(16))),D(o,T);case Bt:return w(o,W),w(o,l.segmentPrefix),w(o,j(x.toString(16))),D(o,V);case Vt:return w(o,ne),w(o,l.segmentPrefix),w(o,j(x.toString(16))),D(o,de);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function Le(o,l){switch(l.insertionMode){case bt:case Ve:return D(o,vi);case jt:return D(o,Xr);case kt:return D(o,xi);case qe:return D(o,c);case Vn:return D(o,A);case Bt:return D(o,Z);case Vt:return D(o,ge);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var gt="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",Et='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',Rt='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',Zr=O(gt+';$RS("'),wi=O('$RS("'),Po=O('","'),Gl=O('")<\/script>');function $l(o,l,d){w(o,l.startInlineScript),l.sentCompleteSegmentFunction?w(o,wi):(l.sentCompleteSegmentFunction=!0,w(o,Zr)),w(o,l.segmentPrefix);var x=j(d.toString(16));return w(o,x),w(o,Po),w(o,l.placeholderPrefix),w(o,x),D(o,Gl)}var Yl=O(Et+';$RC("'),Xl=O('$RC("'),Zl=O('","'),Ql=O('")<\/script>');function wa(o,l,d,x){if(w(o,l.startInlineScript),l.sentCompleteBoundaryFunction?w(o,Xl):(l.sentCompleteBoundaryFunction=!0,w(o,Yl)),d===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var E=j(x.toString(16));return w(o,d),w(o,Zl),w(o,l.segmentPrefix),w(o,E),D(o,Ql)}var Jl=O(Rt+';$RX("'),Kl=O('$RX("'),ka=O('"'),ql=O(")<\/script>"),Ta=O(",");function Ps(o,l,d,x,E,M){if(w(o,l.startInlineScript),l.sentClientRenderFunction?w(o,Kl):(l.sentClientRenderFunction=!0,w(o,Jl)),d===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return w(o,d),w(o,ka),(x||E||M)&&(w(o,Ta),w(o,j(Ca(x||"")))),(E||M)&&(w(o,Ta),w(o,j(Ca(E||"")))),M&&(w(o,Ta),w(o,j(Ca(M)))),D(o,ql)}var As=/[<\u2028\u2029]/g;function Ca(o){var l=JSON.stringify(o);return l.replace(As,function(d){switch(d){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var zt=Object.assign,eu=Symbol.for("react.element"),Is=Symbol.for("react.portal"),Pt=Symbol.for("react.fragment"),Ms=Symbol.for("react.strict_mode"),Ea=Symbol.for("react.profiler"),ki=Symbol.for("react.provider"),Ti=Symbol.for("react.context"),Ci=Symbol.for("react.forward_ref"),Ao=Symbol.for("react.suspense"),Io=Symbol.for("react.suspense_list"),Mo=Symbol.for("react.memo"),Qr=Symbol.for("react.lazy"),Ra=Symbol.for("react.scope"),Pa=Symbol.for("react.debug_trace_mode"),Ei=Symbol.for("react.legacy_hidden"),tu=Symbol.for("react.default_value"),Ds=Symbol.iterator,nu="@@iterator";function ru(o){if(o===null||typeof o!="object")return null;var l=Ds&&o[Ds]||o[nu];return typeof l=="function"?l:null}function Os(o,l,d){var x=o.displayName;if(x)return x;var E=l.displayName||l.name||"";return E!==""?d+"("+E+")":d}function Fs(o){return o.displayName||"Context"}function Ue(o){if(o==null)return null;if(typeof o.tag=="number"&&a("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case Pt:return"Fragment";case Is:return"Portal";case Ea:return"Profiler";case Ms:return"StrictMode";case Ao:return"Suspense";case Io:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case Ti:var l=o;return Fs(l)+".Consumer";case ki:var d=o;return Fs(d._context)+".Provider";case Ci:return Os(o,o.render,"ForwardRef");case Mo:var x=o.displayName||null;return x!==null?x:Ue(o.type)||"Memo";case Qr:{var E=o,M=E._payload,L=E._init;try{return Ue(L(M))}catch{return null}}}return null}var Do=0,Aa,ze,Jr,Ia,Ma,Da,Oa;function Fa(){}Fa.__reactDisabledLog=!0;function Ls(){{if(Do===0){Aa=console.log,ze=console.info,Jr=console.warn,Ia=console.error,Ma=console.group,Da=console.groupCollapsed,Oa=console.groupEnd;var o={configurable:!0,enumerable:!0,value:Fa,writable:!0};Object.defineProperties(console,{info:o,log:o,warn:o,error:o,group:o,groupCollapsed:o,groupEnd:o})}Do++}}function _s(){{if(Do--,Do===0){var o={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:zt({},o,{value:Aa}),info:zt({},o,{value:ze}),warn:zt({},o,{value:Jr}),error:zt({},o,{value:Ia}),group:zt({},o,{value:Ma}),groupCollapsed:zt({},o,{value:Da}),groupEnd:zt({},o,{value:Oa})})}Do<0&&a("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ri=r.ReactCurrentDispatcher,La;function Oo(o,l,d){{if(La===void 0)try{throw Error()}catch(E){var x=E.stack.trim().match(/\n( *(at )?)/);La=x&&x[1]||""}return`
|
|
79
|
-
`+La+o}}var Fo=!1,Kr;{var Lo=typeof WeakMap=="function"?WeakMap:Map;Kr=new Lo}function _o(o,l){if(!o||Fo)return"";{var d=Kr.get(o);if(d!==void 0)return d}var x;Fo=!0;var E=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var M;M=Ri.current,Ri.current=null,Ls();try{if(l){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(F){x=F}Reflect.construct(o,[],L)}else{try{L.call()}catch(F){x=F}o.call(L.prototype)}}else{try{throw Error()}catch(F){x=F}o()}}catch(F){if(F&&x&&typeof F.stack=="string"){for(var H=F.stack.split(`
|
|
80
|
-
`),n=x.stack.split(`
|
|
81
|
-
`),s=H.length-1,f=n.length-1;s>=1&&f>=0&&H[s]!==n[f];)f--;for(;s>=1&&f>=0;s--,f--)if(H[s]!==n[f]){if(s!==1||f!==1)do if(s--,f--,f<0||H[s]!==n[f]){var v=`
|
|
82
|
-
`+H[s].replace(" at new "," at ");return o.displayName&&v.includes("<anonymous>")&&(v=v.replace("<anonymous>",o.displayName)),typeof o=="function"&&Kr.set(o,v),v}while(s>=1&&f>=0);break}}}finally{Fo=!1,Ri.current=M,_s(),Error.prepareStackTrace=E}var k=o?o.displayName||o.name:"",I=k?Oo(k):"";return typeof o=="function"&&Kr.set(o,I),I}function Pi(o,l,d){return _o(o,!0)}function js(o,l,d){return _o(o,!1)}function _a(o){var l=o.prototype;return!!(l&&l.isReactComponent)}function ja(o,l,d){if(o==null)return"";if(typeof o=="function")return _o(o,_a(o));if(typeof o=="string")return Oo(o);switch(o){case Ao:return Oo("Suspense");case Io:return Oo("SuspenseList")}if(typeof o=="object")switch(o.$$typeof){case Ci:return js(o.render);case Mo:return ja(o.type,l,d);case Qr:{var x=o,E=x._payload,M=x._init;try{return ja(M(E),l,d)}catch{}}}return""}var Ba={},Bs=r.ReactDebugCurrentFrame;function qr(o){if(o){var l=o._owner,d=ja(o.type,o._source,l?l.type:null);Bs.setExtraStackFrame(d)}else Bs.setExtraStackFrame(null)}function Va(o,l,d,x,E){{var M=Function.call.bind(se);for(var L in o)if(M(o,L)){var H=void 0;try{if(typeof o[L]!="function"){var n=Error((x||"React class")+": "+d+" type `"+L+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[L]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw n.name="Invariant Violation",n}H=o[L](l,L,x,d,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){H=s}H&&!(H instanceof Error)&&(qr(E),a("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",x||"React class",d,L,typeof H),qr(null)),H instanceof Error&&!(H.message in Ba)&&(Ba[H.message]=!0,qr(E),a("Failed %s type: %s",d,H.message),qr(null))}}}var Ai;Ai={};var yr={};Object.freeze(yr);function za(o,l){{var d=o.contextTypes;if(!d)return yr;var x={};for(var E in d)x[E]=l[E];{var M=Ue(o)||"Unknown";Va(d,x,"context",M)}return x}}function Wa(o,l,d,x){{if(typeof o.getChildContext!="function"){{var E=Ue(l)||"Unknown";Ai[E]||(Ai[E]=!0,a("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",E,E))}return d}var M=o.getChildContext();for(var L in M)if(!(L in x))throw new Error((Ue(l)||"Unknown")+'.getChildContext(): key "'+L+'" is not defined in childContextTypes.');{var H=Ue(l)||"Unknown";Va(x,M,"child context",H)}return zt({},d,M)}}var $n;$n={};var Vs=null,br=null;function xr(o){o.context._currentValue=o.parentValue}function Ua(o){o.context._currentValue=o.value}function mn(o,l){if(o!==l){xr(o);var d=o.parent,x=l.parent;if(d===null){if(x!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(x===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");mn(d,x)}Ua(l)}}function Ii(o){xr(o);var l=o.parent;l!==null&&Ii(l)}function Mi(o){var l=o.parent;l!==null&&Mi(l),Ua(o)}function jo(o,l){xr(o);var d=o.parent;if(d===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");d.depth===l.depth?mn(d,l):jo(d,l)}function Na(o,l){var d=l.parent;if(d===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");o.depth===d.depth?mn(o,d):Na(o,d),Ua(l)}function Bo(o){var l=br,d=o;l!==d&&(l===null?Mi(d):d===null?Ii(l):l.depth===d.depth?mn(l,d):l.depth>d.depth?jo(l,d):Na(l,d),br=d)}function zs(o,l){var d;d=o._currentValue,o._currentValue=l,o._currentRenderer!==void 0&&o._currentRenderer!==null&&o._currentRenderer!==$n&&a("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),o._currentRenderer=$n;var x=br,E={parent:x,depth:x===null?0:x.depth+1,context:o,parentValue:d,value:l};return br=E,E}function Ws(o){var l=br;if(l===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");l.context!==o&&a("The parent context is not the expected context. This is probably a bug in React.");{var d=l.parentValue;d===tu?l.context._currentValue=l.context._defaultValue:l.context._currentValue=d,o._currentRenderer!==void 0&&o._currentRenderer!==null&&o._currentRenderer!==$n&&a("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),o._currentRenderer=$n}return br=l.parent}function Di(){return br}function Vo(o){var l=o._currentValue;return l}function Ha(o){return o._reactInternals}function ou(o,l){o._reactInternals=l}var eo={},Oi={},Ga,Fi,Li,zo,_i,to,Wo,ji,no;{Ga=new Set,Fi=new Set,Li=new Set,Wo=new Set,zo=new Set,ji=new Set,no=new Set;var Bi=new Set;to=function(o,l){if(!(o===null||typeof o=="function")){var d=l+"_"+o;Bi.has(d)||(Bi.add(d),a("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",l,o))}},_i=function(o,l){if(l===void 0){var d=Ue(o)||"Component";zo.has(d)||(zo.add(d),a("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",d))}}}function Vi(o,l){{var d=o.constructor,x=d&&Ue(d)||"ReactClass",E=x+"."+l;if(eo[E])return;a(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
|
83
|
-
|
|
84
|
-
Please check the code for the %s component.`,l,l,x),eo[E]=!0}}var zi={isMounted:function(o){return!1},enqueueSetState:function(o,l,d){var x=Ha(o);x.queue===null?Vi(o,"setState"):(x.queue.push(l),d!=null&&to(d,"setState"))},enqueueReplaceState:function(o,l,d){var x=Ha(o);x.replace=!0,x.queue=[l],d!=null&&to(d,"setState")},enqueueForceUpdate:function(o,l){var d=Ha(o);d.queue===null?Vi(o,"forceUpdate"):l!=null&&to(l,"setState")}};function Us(o,l,d,x,E){var M=d(E,x);_i(l,M);var L=M==null?x:zt({},x,M);return L}function Ns(o,l,d){var x=yr,E=o.contextType;if("contextType"in o){var M=E===null||E!==void 0&&E.$$typeof===Ti&&E._context===void 0;if(!M&&!no.has(o)){no.add(o);var L="";E===void 0?L=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof E!="object"?L=" However, it is set to a "+typeof E+".":E.$$typeof===ki?L=" Did you accidentally pass the Context.Provider instead?":E._context!==void 0?L=" Did you accidentally pass the Context.Consumer instead?":L=" However, it is set to an object with keys {"+Object.keys(E).join(", ")+"}.",a("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Ue(o)||"Component",L)}}typeof E=="object"&&E!==null?x=Vo(E):x=d;var H=new o(l,x);{if(typeof o.getDerivedStateFromProps=="function"&&(H.state===null||H.state===void 0)){var n=Ue(o)||"Component";Ga.has(n)||(Ga.add(n),a("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",n,H.state===null?"null":"undefined",n))}if(typeof o.getDerivedStateFromProps=="function"||typeof H.getSnapshotBeforeUpdate=="function"){var s=null,f=null,v=null;if(typeof H.componentWillMount=="function"&&H.componentWillMount.__suppressDeprecationWarning!==!0?s="componentWillMount":typeof H.UNSAFE_componentWillMount=="function"&&(s="UNSAFE_componentWillMount"),typeof H.componentWillReceiveProps=="function"&&H.componentWillReceiveProps.__suppressDeprecationWarning!==!0?f="componentWillReceiveProps":typeof H.UNSAFE_componentWillReceiveProps=="function"&&(f="UNSAFE_componentWillReceiveProps"),typeof H.componentWillUpdate=="function"&&H.componentWillUpdate.__suppressDeprecationWarning!==!0?v="componentWillUpdate":typeof H.UNSAFE_componentWillUpdate=="function"&&(v="UNSAFE_componentWillUpdate"),s!==null||f!==null||v!==null){var k=Ue(o)||"Component",I=typeof o.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Li.has(k)||(Li.add(k),a(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
85
|
-
|
|
86
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
87
|
-
|
|
88
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
89
|
-
https://reactjs.org/link/unsafe-component-lifecycles`,k,I,s!==null?`
|
|
90
|
-
`+s:"",f!==null?`
|
|
91
|
-
`+f:"",v!==null?`
|
|
92
|
-
`+v:""))}}}return H}function Hs(o,l,d){{var x=Ue(l)||"Component",E=o.render;E||(l.prototype&&typeof l.prototype.render=="function"?a("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",x):a("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",x)),o.getInitialState&&!o.getInitialState.isReactClassApproved&&!o.state&&a("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",x),o.getDefaultProps&&!o.getDefaultProps.isReactClassApproved&&a("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",x),o.propTypes&&a("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",x),o.contextType&&a("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",x),o.contextTypes&&a("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",x),l.contextType&&l.contextTypes&&!ji.has(l)&&(ji.add(l),a("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",x)),typeof o.componentShouldUpdate=="function"&&a("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",x),l.prototype&&l.prototype.isPureReactComponent&&typeof o.shouldComponentUpdate<"u"&&a("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Ue(l)||"A pure component"),typeof o.componentDidUnmount=="function"&&a("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",x),typeof o.componentDidReceiveProps=="function"&&a("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",x),typeof o.componentWillRecieveProps=="function"&&a("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",x),typeof o.UNSAFE_componentWillRecieveProps=="function"&&a("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",x);var M=o.props!==d;o.props!==void 0&&M&&a("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",x,x),o.defaultProps&&a("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",x,x),typeof o.getSnapshotBeforeUpdate=="function"&&typeof o.componentDidUpdate!="function"&&!Fi.has(l)&&(Fi.add(l),a("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Ue(l))),typeof o.getDerivedStateFromProps=="function"&&a("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",x),typeof o.getDerivedStateFromError=="function"&&a("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",x),typeof l.getSnapshotBeforeUpdate=="function"&&a("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",x);var L=o.state;L&&(typeof L!="object"||Tn(L))&&a("%s.state: must be set to an object or null",x),typeof o.getChildContext=="function"&&typeof l.childContextTypes!="object"&&a("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",x)}}function iu(o,l){var d=l.state;if(typeof l.componentWillMount=="function"){if(l.componentWillMount.__suppressDeprecationWarning!==!0){var x=Ue(o)||"Unknown";Oi[x]||(i(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
93
|
-
|
|
94
|
-
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
95
|
-
|
|
96
|
-
Please update the following components: %s`,x),Oi[x]=!0)}l.componentWillMount()}typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),d!==l.state&&(a("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Ue(o)||"Component"),zi.enqueueReplaceState(l,l.state,null))}function au(o,l,d,x){if(o.queue!==null&&o.queue.length>0){var E=o.queue,M=o.replace;if(o.queue=null,o.replace=!1,M&&E.length===1)l.state=E[0];else{for(var L=M?E[0]:l.state,H=!0,n=M?1:0;n<E.length;n++){var s=E[n],f=typeof s=="function"?s.call(l,L,d,x):s;f!=null&&(H?(H=!1,L=zt({},L,f)):zt(L,f))}l.state=L}}else o.queue=null}function Gs(o,l,d,x){Hs(o,l,d);var E=o.state!==void 0?o.state:null;o.updater=zi,o.props=d,o.state=E;var M={queue:[],replace:!1};ou(o,M);var L=l.contextType;if(typeof L=="object"&&L!==null?o.context=Vo(L):o.context=x,o.state===d){var H=Ue(l)||"Component";Wo.has(H)||(Wo.add(H),a("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",H))}var n=l.getDerivedStateFromProps;typeof n=="function"&&(o.state=Us(o,l,n,E,d)),typeof l.getDerivedStateFromProps!="function"&&typeof o.getSnapshotBeforeUpdate!="function"&&(typeof o.UNSAFE_componentWillMount=="function"||typeof o.componentWillMount=="function")&&(iu(l,o),au(M,o,d,x))}var su={id:1,overflow:""};function lu(o){var l=o.overflow,d=o.id,x=d&~uu(d);return x.toString(32)+l}function Wi(o,l,d){var x=o.id,E=o.overflow,M=Ui(x)-1,L=x&~(1<<M),H=d+1,n=Ui(l)+M;if(n>30){var s=M-M%5,f=(1<<s)-1,v=(L&f).toString(32),k=L>>s,I=M-s,F=Ui(l)+I,U=H<<I,Q=U|k,ae=v+E;return{id:1<<F|Q,overflow:ae}}else{var ue=H<<M,me=ue|L,_e=E;return{id:1<<n|me,overflow:_e}}}function Ui(o){return 32-$a(o)}function uu(o){return 1<<Ui(o)-1}var $a=Math.clz32?Math.clz32:fu,Ni=Math.log,cu=Math.LN2;function fu(o){var l=o>>>0;return l===0?32:31-(Ni(l)/cu|0)|0}function du(o,l){return o===l&&(o!==0||1/o===1/l)||o!==o&&l!==l}var hu=typeof Object.is=="function"?Object.is:du,An=null,Ya=null,Hi=null,xe=null,Sr=!1,wr=!1,Ie=0,Wt=null,kr=0,Gi=25,at=!1,In;function Tr(){if(An===null)throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
97
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
98
|
-
2. You might be breaking the Rules of Hooks
|
|
99
|
-
3. You might have more than one copy of React in the same app
|
|
100
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return at&&a("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks"),An}function vn(o,l){if(l===null)return a("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",In),!1;o.length!==l.length&&a(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
101
|
-
|
|
102
|
-
Previous: %s
|
|
103
|
-
Incoming: %s`,In,"["+o.join(", ")+"]","["+l.join(", ")+"]");for(var d=0;d<l.length&&d<o.length;d++)if(!hu(o[d],l[d]))return!1;return!0}function Cr(){if(kr>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function Mn(){return xe===null?Hi===null?(Sr=!1,Hi=xe=Cr()):(Sr=!0,xe=Hi):xe.next===null?(Sr=!1,xe=xe.next=Cr()):(Sr=!0,xe=xe.next),xe}function pu(o,l){An=l,Ya=o,at=!1,Ie=0}function $s(o,l,d,x){for(;wr;)wr=!1,Ie=0,kr+=1,xe=null,d=o(l,x);return Xa(),d}function $i(){var o=Ie!==0;return o}function Xa(){at=!1,An=null,Ya=null,wr=!1,Hi=null,kr=0,Wt=null,xe=null}function mu(o){return at&&a("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),Vo(o)}function Ys(o){return In="useContext",Tr(),Vo(o)}function Uo(o,l){return typeof l=="function"?l(o):l}function vu(o){return In="useState",Xs(Uo,o)}function Xs(o,l,d){if(o!==Uo&&(In="useReducer"),An=Tr(),xe=Mn(),Sr){var x=xe.queue,E=x.dispatch;if(Wt!==null){var M=Wt.get(x);if(M!==void 0){Wt.delete(x);var L=xe.memoizedState,H=M;do{var n=H.action;at=!0,L=o(L,n),at=!1,H=H.next}while(H!==null);return xe.memoizedState=L,[L,E]}}return[xe.memoizedState,E]}else{at=!0;var s;o===Uo?s=typeof l=="function"?l():l:s=d!==void 0?d(l):l,at=!1,xe.memoizedState=s;var f=xe.queue={last:null,dispatch:null},v=f.dispatch=Qs.bind(null,An,f);return[xe.memoizedState,v]}}function Yi(o,l){An=Tr(),xe=Mn();var d=l===void 0?null:l;if(xe!==null){var x=xe.memoizedState;if(x!==null&&d!==null){var E=x[1];if(vn(d,E))return x[0]}}at=!0;var M=o();return at=!1,xe.memoizedState=[M,d],M}function gu(o){An=Tr(),xe=Mn();var l=xe.memoizedState;if(l===null){var d={current:o};return Object.seal(d),xe.memoizedState=d,d}else return l}function Zs(o,l){In="useLayoutEffect",a("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.")}function Qs(o,l,d){if(kr>=Gi)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(o===An){wr=!0;var x={action:d,next:null};Wt===null&&(Wt=new Map);var E=Wt.get(l);if(E===void 0)Wt.set(l,x);else{for(var M=E;M.next!==null;)M=M.next;M.next=x}}}function yu(o,l){return Yi(function(){return o},l)}function bu(o,l,d){return Tr(),l(o._source)}function xu(o,l,d){if(d===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return d()}function Su(o){return Tr(),o}function wu(){throw new Error("startTransition cannot be called during server rendering.")}function ku(){return Tr(),[!1,wu]}function Tu(){var o=Ya,l=lu(o.treeContext),d=Za;if(d===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var x=Ie++;return zn(d,l,x)}function Xi(){}var Js={readContext:mu,useContext:Ys,useMemo:Yi,useReducer:Xs,useRef:gu,useState:vu,useInsertionEffect:Xi,useLayoutEffect:Zs,useCallback:yu,useImperativeHandle:Xi,useEffect:Xi,useDebugValue:Xi,useDeferredValue:Su,useTransition:ku,useId:Tu,useMutableSource:bu,useSyncExternalStore:xu},Za=null;function No(o){Za=o}function Ks(o){try{var l="",d=o;do{switch(d.tag){case 0:l+=Oo(d.type,null,null);break;case 1:l+=js(d.type,null,null);break;case 2:l+=Pi(d.type,null,null);break}d=d.parent}while(d);return l}catch(x){return`
|
|
104
|
-
Error generating stack: `+x.message+`
|
|
105
|
-
`+x.stack}}var Ho=r.ReactCurrentDispatcher,Zi=r.ReactDebugCurrentFrame,Qa=0,Yn=1,Qi=2,Ji=3,Er=4,qs=0,Ja=1,Rr=2,Cu=12800;function el(o){return console.error(o),null}function gn(){}function Eu(o,l,d,x,E,M,L,H,n){var s=[],f=new Set,v={destination:null,responseState:l,progressiveChunkSize:x===void 0?Cu:x,status:qs,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:f,pingedTasks:s,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:E===void 0?el:E,onAllReady:M===void 0?gn:M,onShellReady:L===void 0?gn:L,onShellError:H===void 0?gn:H,onFatalError:n===void 0?gn:n},k=Ki(v,0,null,d,!1,!1);k.parentFlushed=!0;var I=Ka(v,o,null,k,f,yr,Vs,su);return s.push(I),v}function Ru(o,l){var d=o.pingedTasks;d.push(l),d.length===1&&p(function(){return Qo(o)})}function Go(o,l){return{id:fr,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:l,errorDigest:null}}function Ka(o,l,d,x,E,M,L,H){o.allPendingTasks++,d===null?o.pendingRootTasks++:d.pendingTasks++;var n={node:l,ping:function(){return Ru(o,n)},blockedBoundary:d,blockedSegment:x,abortSet:E,legacyContext:M,context:L,treeContext:H};return n.componentStack=null,E.add(n),n}function Ki(o,l,d,x,E,M){return{status:Qa,id:-1,index:l,parentFlushed:!1,chunks:[],children:[],formatContext:x,boundary:d,lastPushedText:E,textEmbedded:M}}var Dn=null;function $o(){return Dn===null||Dn.componentStack===null?"":Ks(Dn.componentStack)}function Xn(o,l){o.componentStack={tag:0,parent:o.componentStack,type:l}}function yn(o,l){o.componentStack={tag:1,parent:o.componentStack,type:l}}function qa(o,l){o.componentStack={tag:2,parent:o.componentStack,type:l}}function Ut(o){o.componentStack===null?a("Unexpectedly popped too many stack frames. This is a bug in React."):o.componentStack=o.componentStack.parent}var ro=null;function es(o,l){{var d;typeof l=="string"?d=l:l&&typeof l.message=="string"?d=l.message:d=String(l);var x=ro||$o();ro=null,o.errorMessage=d,o.errorComponentStack=x}}function Nt(o,l){var d=o.onError(l);if(d!=null&&typeof d!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof d+'" instead');return d}function Zn(o,l){var d=o.onShellError;d(l);var x=o.onFatalError;x(l),o.destination!==null?(o.status=Rr,X(o.destination,l)):(o.status=Ja,o.fatalError=l)}function ts(o,l,d){Xn(l,"Suspense");var x=l.blockedBoundary,E=l.blockedSegment,M=d.fallback,L=d.children,H=new Set,n=Go(o,H),s=E.chunks.length,f=Ki(o,s,n,E.formatContext,!1,!1);E.children.push(f),E.lastPushedText=!1;var v=Ki(o,0,null,E.formatContext,!1,!1);v.parentFlushed=!0,l.blockedBoundary=n,l.blockedSegment=v;try{if(cs(o,l,L),Un(v.chunks,o.responseState,v.lastPushedText,v.textEmbedded),v.status=Yn,ta(n,v),n.pendingTasks===0){Ut(l);return}}catch(I){v.status=Er,n.forceClientRender=!0,n.errorDigest=Nt(o,I),es(n,I)}finally{l.blockedBoundary=x,l.blockedSegment=E}var k=Ka(o,M,x,f,H,l.legacyContext,l.context,l.treeContext);k.componentStack=l.componentStack,o.pingedTasks.push(k),Ut(l)}function Yo(o,l,d,x){Xn(l,d);var E=l.blockedSegment,M=ko(E.chunks,d,x,o.responseState,E.formatContext);E.lastPushedText=!1;var L=E.formatContext;E.formatContext=un(L,d,x),cs(o,l,M),E.formatContext=L,fi(E.chunks,d),E.lastPushedText=!1,Ut(l)}function qi(o){return o.prototype&&o.prototype.isReactComponent}function tl(o,l,d,x,E){var M={};pu(l,M);var L=d(x,E);return $s(d,x,L,E)}function nl(o,l,d,x,E){var M=d.render();d.props!==E&&(Zo||a("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Ue(x)||"a component"),Zo=!0);{var L=x.childContextTypes;if(L!=null){var H=l.legacyContext,n=Wa(d,x,H,L);l.legacyContext=n,At(o,l,M),l.legacyContext=H;return}}At(o,l,M)}function Pu(o,l,d,x){qa(l,d);var E=za(d,l.legacyContext),M=Ns(d,x,E);Gs(M,d,x,E),nl(o,l,M,d,x),Ut(l)}var ns={},Xo={},rl={},rs={},Zo=!1,os=!1,is=!1,as=!1;function ol(o,l,d,x){var E;if(E=za(d,l.legacyContext),yn(l,d),d.prototype&&typeof d.prototype.render=="function"){var M=Ue(d)||"Unknown";ns[M]||(a("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",M,M),ns[M]=!0)}var L=tl(o,l,d,x,E),H=$i();if(typeof L=="object"&&L!==null&&typeof L.render=="function"&&L.$$typeof===void 0){var n=Ue(d)||"Unknown";Xo[n]||(a("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",n,n,n),Xo[n]=!0)}if(typeof L=="object"&&L!==null&&typeof L.render=="function"&&L.$$typeof===void 0){{var s=Ue(d)||"Unknown";Xo[s]||(a("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",s,s,s),Xo[s]=!0)}Gs(L,d,x,E),nl(o,l,L,d,x)}else if(il(d),H){var f=l.treeContext,v=1,k=0;l.treeContext=Wi(f,v,k);try{At(o,l,L)}finally{l.treeContext=f}}else At(o,l,L);Ut(l)}function il(o){{if(o&&o.childContextTypes&&a("%s(...): childContextTypes cannot be defined on a function component.",o.displayName||o.name||"Component"),typeof o.getDerivedStateFromProps=="function"){var l=Ue(o)||"Unknown";rs[l]||(a("%s: Function components do not support getDerivedStateFromProps.",l),rs[l]=!0)}if(typeof o.contextType=="object"&&o.contextType!==null){var d=Ue(o)||"Unknown";rl[d]||(a("%s: Function components do not support contextType.",d),rl[d]=!0)}}}function ss(o,l){if(o&&o.defaultProps){var d=zt({},l),x=o.defaultProps;for(var E in x)d[E]===void 0&&(d[E]=x[E]);return d}return l}function Au(o,l,d,x,E){yn(l,d.render);var M=tl(o,l,d.render,x,E),L=$i();if(L){var H=l.treeContext,n=1,s=0;l.treeContext=Wi(H,n,s);try{At(o,l,M)}finally{l.treeContext=H}}else At(o,l,M);Ut(l)}function Iu(o,l,d,x,E){var M=d.type,L=ss(M,x);ls(o,l,M,L,E)}function al(o,l,d,x){d._context===void 0?d!==d.Consumer&&(as||(as=!0,a("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):d=d._context;var E=x.children;typeof E!="function"&&a("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var M=Vo(d),L=E(M);At(o,l,L)}function Mu(o,l,d,x){var E=d._context,M=x.value,L=x.children,H;H=l.context,l.context=zs(E,M),At(o,l,L),l.context=Ws(E),H!==l.context&&a("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Du(o,l,d,x,E){Xn(l,"Lazy");var M=d._payload,L=d._init,H=L(M),n=ss(H,x);ls(o,l,H,n,E),Ut(l)}function ls(o,l,d,x,E){if(typeof d=="function")if(qi(d)){Pu(o,l,d,x);return}else{ol(o,l,d,x);return}if(typeof d=="string"){Yo(o,l,d,x);return}switch(d){case Ei:case Pa:case Ms:case Ea:case Pt:{At(o,l,x.children);return}case Io:{Xn(l,"SuspenseList"),At(o,l,x.children),Ut(l);return}case Ra:throw new Error("ReactDOMServer does not yet support scope components.");case Ao:{ts(o,l,x);return}}if(typeof d=="object"&&d!==null)switch(d.$$typeof){case Ci:{Au(o,l,d,x,E);return}case Mo:{Iu(o,l,d,x,E);return}case ki:{Mu(o,l,d,x);return}case Ti:{al(o,l,d,x);return}case Qr:{Du(o,l,d,x);return}}var M="";throw(d===void 0||typeof d=="object"&&d!==null&&Object.keys(d).length===0)&&(M+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(d==null?d:typeof d)+"."+M))}function Ou(o,l){typeof Symbol=="function"&&o[Symbol.toStringTag]==="Generator"&&(os||a("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),os=!0),o.entries===l&&(is||a("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),is=!0)}function At(o,l,d){try{return us(o,l,d)}catch(x){throw typeof x=="object"&&x!==null&&typeof x.then=="function"||(ro=ro!==null?ro:$o()),x}}function us(o,l,d){if(l.node=d,typeof d=="object"&&d!==null){switch(d.$$typeof){case eu:{var x=d,E=x.type,M=x.props,L=x.ref;ls(o,l,E,M,L);return}case Is:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case Qr:{var H=d,n=H._payload,s=H._init,f;try{f=s(n)}catch(ue){throw typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&Xn(l,"Lazy"),ue}At(o,l,f);return}}if(Tn(d)){sl(o,l,d);return}var v=ru(d);if(v){Ou(d,v);var k=v.call(d);if(k){var I=k.next();if(!I.done){var F=[];do F.push(I.value),I=k.next();while(!I.done);sl(o,l,F);return}return}}var U=Object.prototype.toString.call(d);throw new Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}if(typeof d=="string"){var Q=l.blockedSegment;Q.lastPushedText=Wn(l.blockedSegment.chunks,d,o.responseState,Q.lastPushedText);return}if(typeof d=="number"){var ae=l.blockedSegment;ae.lastPushedText=Wn(l.blockedSegment.chunks,""+d,o.responseState,ae.lastPushedText);return}typeof d=="function"&&a("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function sl(o,l,d){for(var x=d.length,E=0;E<x;E++){var M=l.treeContext;l.treeContext=Wi(M,x,E);try{cs(o,l,d[E])}finally{l.treeContext=M}}}function It(o,l,d){var x=l.blockedSegment,E=x.chunks.length,M=Ki(o,E,null,x.formatContext,x.lastPushedText,!0);x.children.push(M),x.lastPushedText=!1;var L=Ka(o,l.node,l.blockedBoundary,M,l.abortSet,l.legacyContext,l.context,l.treeContext);l.componentStack!==null&&(L.componentStack=l.componentStack.parent);var H=L.ping;d.then(H,H)}function cs(o,l,d){var x=l.blockedSegment.formatContext,E=l.legacyContext,M=l.context,L=null;L=l.componentStack;try{return At(o,l,d)}catch(H){if(Xa(),typeof H=="object"&&H!==null&&typeof H.then=="function"){It(o,l,H),l.blockedSegment.formatContext=x,l.legacyContext=E,l.context=M,Bo(M),l.componentStack=L;return}else throw l.blockedSegment.formatContext=x,l.legacyContext=E,l.context=M,Bo(M),l.componentStack=L,H}}function ll(o,l,d,x){var E=Nt(o,x);if(l===null?Zn(o,x):(l.pendingTasks--,l.forceClientRender||(l.forceClientRender=!0,l.errorDigest=E,es(l,x),l.parentFlushed&&o.clientRenderedBoundaries.push(l))),o.allPendingTasks--,o.allPendingTasks===0){var M=o.onAllReady;M()}}function Fu(o){var l=this,d=o.blockedBoundary,x=o.blockedSegment;x.status=Ji,ul(l,d,x)}function ea(o,l,d){var x=o.blockedBoundary,E=o.blockedSegment;if(E.status=Ji,x===null)l.allPendingTasks--,l.status!==Rr&&(l.status=Rr,l.destination!==null&&N(l.destination));else{if(x.pendingTasks--,!x.forceClientRender){x.forceClientRender=!0;var M=d===void 0?new Error("The render was aborted by the server without a reason."):d;x.errorDigest=l.onError(M);{var L="The server did not finish this Suspense boundary: ";M&&typeof M.message=="string"?M=L+M.message:M=L+String(M);var H=Dn;Dn=o;try{es(x,M)}finally{Dn=H}}x.parentFlushed&&l.clientRenderedBoundaries.push(x)}if(x.fallbackAbortableTasks.forEach(function(s){return ea(s,l,d)}),x.fallbackAbortableTasks.clear(),l.allPendingTasks--,l.allPendingTasks===0){var n=l.onAllReady;n()}}}function ta(o,l){if(l.chunks.length===0&&l.children.length===1&&l.children[0].boundary===null){var d=l.children[0];d.id=l.id,d.parentFlushed=!0,d.status===Yn&&ta(o,d)}else{var x=o.completedSegments;x.push(l)}}function ul(o,l,d){if(l===null){if(d.parentFlushed){if(o.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");o.completedRootSegment=d}if(o.pendingRootTasks--,o.pendingRootTasks===0){o.onShellError=gn;var x=o.onShellReady;x()}}else if(l.pendingTasks--,!l.forceClientRender){if(l.pendingTasks===0)d.parentFlushed&&d.status===Yn&&ta(l,d),l.parentFlushed&&o.completedBoundaries.push(l),l.fallbackAbortableTasks.forEach(Fu,o),l.fallbackAbortableTasks.clear();else if(d.parentFlushed&&d.status===Yn){ta(l,d);var E=l.completedSegments;E.length===1&&l.parentFlushed&&o.partialBoundaries.push(l)}}if(o.allPendingTasks--,o.allPendingTasks===0){var M=o.onAllReady;M()}}function cl(o,l){var d=l.blockedSegment;if(d.status===Qa){Bo(l.context);var x=null;x=Dn,Dn=l;try{At(o,l,l.node),Un(d.chunks,o.responseState,d.lastPushedText,d.textEmbedded),l.abortSet.delete(l),d.status=Yn,ul(o,l.blockedBoundary,d)}catch(M){if(Xa(),typeof M=="object"&&M!==null&&typeof M.then=="function"){var E=l.ping;M.then(E,E)}else l.abortSet.delete(l),d.status=Er,ll(o,l.blockedBoundary,d,M)}finally{Dn=x}}}function Qo(o){if(o.status!==Rr){var l=Di(),d=Ho.current;Ho.current=Js;var x;x=Zi.getCurrentStack,Zi.getCurrentStack=$o;var E=Za;No(o.responseState);try{var M=o.pingedTasks,L;for(L=0;L<M.length;L++){var H=M[L];cl(o,H)}M.splice(0,L),o.destination!==null&&ra(o,o.destination)}catch(n){Nt(o,n),Zn(o,n)}finally{No(E),Ho.current=d,Zi.getCurrentStack=x,d===Js&&Bo(l)}}}function Jo(o,l,d){switch(d.parentFlushed=!0,d.status){case Qa:{var x=d.id=o.nextSegmentId++;return d.lastPushedText=!1,d.textEmbedded=!1,Wr(l,o.responseState,x)}case Yn:{d.status=Qi;for(var E=!0,M=d.chunks,L=0,H=d.children,n=0;n<H.length;n++){for(var s=H[n];L<s.index;L++)w(l,M[L]);E=na(o,l,s)}for(;L<M.length-1;L++)w(l,M[L]);return L<M.length&&(E=D(l,M[L])),E}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function na(o,l,d){var x=d.boundary;if(x===null)return Jo(o,l,d);if(x.parentFlushed=!0,x.forceClientRender)return vt(l,o.responseState,x.errorDigest,x.errorMessage,x.errorComponentStack),Jo(o,l,d),Sa(l,o.responseState);if(x.pendingTasks>0){x.rootSegmentID=o.nextSegmentId++,x.completedSegments.length>0&&o.partialBoundaries.push(x);var E=x.id=dr(o.responseState);return Hr(l,o.responseState,E),Jo(o,l,d),Gr(l,o.responseState)}else{if(x.byteSize>o.progressiveChunkSize)return x.rootSegmentID=o.nextSegmentId++,o.completedBoundaries.push(x),Hr(l,o.responseState,x.id),Jo(o,l,d),Gr(l,o.responseState);hi(l,o.responseState);var M=x.completedSegments;if(M.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var L=M[0];return na(o,l,L),pi(l,o.responseState)}}function fl(o,l,d){return Ps(l,o.responseState,d.id,d.errorDigest,d.errorMessage,d.errorComponentStack)}function Ko(o,l,d){return ve(l,o.responseState,d.formatContext,d.id),na(o,l,d),Le(l,d.formatContext)}function qo(o,l,d){for(var x=d.completedSegments,E=0;E<x.length;E++){var M=x[E];fs(o,l,d,M)}return x.length=0,wa(l,o.responseState,d.id,d.rootSegmentID)}function Lu(o,l,d){for(var x=d.completedSegments,E=0;E<x.length;E++){var M=x[E];if(!fs(o,l,d,M))return E++,x.splice(0,E),!1}return x.splice(0,E),!0}function fs(o,l,d,x){if(x.status===Qi)return!0;var E=x.id;if(E===-1){var M=x.id=d.rootSegmentID;if(M===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Ko(o,l,x)}else return Ko(o,l,x),$l(l,o.responseState,E)}function ra(o,l){R();try{var d=o.completedRootSegment;d!==null&&o.pendingRootTasks===0&&(na(o,l,d),o.completedRootSegment=null,ya(l,o.responseState));var x=o.clientRenderedBoundaries,E;for(E=0;E<x.length;E++){var M=x[E];fl(o,l,M)}x.splice(0,E);var L=o.completedBoundaries;for(E=0;E<L.length;E++){var H=L[E];qo(o,l,H)}L.splice(0,E),_(l),R(l);var n=o.partialBoundaries;for(E=0;E<n.length;E++){var s=n[E];if(!Lu(o,l,s)){o.destination=null,E++,n.splice(0,E);return}}n.splice(0,E);var f=o.completedBoundaries;for(E=0;E<f.length;E++){var v=f[E];qo(o,l,v)}f.splice(0,E)}finally{_(l),o.allPendingTasks===0&&o.pingedTasks.length===0&&o.clientRenderedBoundaries.length===0&&o.completedBoundaries.length===0&&(o.abortableTasks.size!==0&&a("There was still abortable task at the root when we closed. This is a bug in React."),N(l))}}function _u(o){p(function(){return Qo(o)})}function dl(o,l){if(o.status===Ja){o.status=Rr,X(l,o.fatalError);return}if(o.status!==Rr&&o.destination===null){o.destination=l;try{ra(o,l)}catch(d){Nt(o,d),Zn(o,d)}}}function oa(o,l){try{var d=o.abortableTasks;d.forEach(function(x){return ea(x,o,l)}),d.clear(),o.destination!==null&&ra(o,o.destination)}catch(x){Nt(o,x),Zn(o,x)}}function ju(o,l){return new Promise(function(d,x){var E,M,L=new Promise(function(k,I){M=k,E=I});function H(){var k=new ReadableStream({type:"bytes",pull:function(I){dl(s,I)},cancel:function(I){oa(s)}},{highWaterMark:0});k.allReady=L,d(k)}function n(k){L.catch(function(){}),x(k)}var s=Eu(o,En(l?l.identifierPrefix:void 0,l?l.nonce:void 0,l?l.bootstrapScriptContent:void 0,l?l.bootstrapScripts:void 0,l?l.bootstrapModules:void 0),Qt(l?l.namespaceURI:void 0),l?l.progressiveChunkSize:void 0,l?l.onError:void 0,M,H,n,E);if(l&&l.signal){var f=l.signal,v=function(){oa(s,f.reason),f.removeEventListener("abort",v)};f.addEventListener("abort",v)}_u(s)})}gl.renderToReadableStream=ju,gl.version=e}()),gl}var ai,tc;process.env.NODE_ENV==="production"?(ai=np(),tc=rp()):(ai=op(),tc=ip());ai.version;var ap=ai.renderToString;ai.renderToStaticMarkup;ai.renderToNodeStream;ai.renderToStaticNodeStream;tc.renderToReadableStream;var sp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dd(t,e){return t(e={exports:{}},e.exports),e.exports}var lp=dd(function(t){(function(e){var r=function(j,O,X){if(!m(O)||R(O)||w(O)||D(O)||S(O))return O;var $,J=0,q=0;if(b(O))for($=[],q=O.length;J<q;J++)$.push(r(j,O[J],X));else for(var K in $={},O)Object.prototype.hasOwnProperty.call(O,K)&&($[j(K,X)]=r(j,O[K],X));return $},i=function(j){return _(j)?j:(j=j.replace(/[\-_\s]+(.)?/g,function(O,X){return X?X.toUpperCase():""})).substr(0,1).toLowerCase()+j.substr(1)},a=function(j){var O=i(j);return O.substr(0,1).toUpperCase()+O.substr(1)},h=function(j,O){return function(X,$){var J=($=$||{}).separator||"_",q=$.split||/(?=[A-Z])/;return X.split(q).join(J)}(j,O).toLowerCase()},p=Object.prototype.toString,S=function(j){return typeof j=="function"},m=function(j){return j===Object(j)},b=function(j){return p.call(j)=="[object Array]"},R=function(j){return p.call(j)=="[object Date]"},w=function(j){return p.call(j)=="[object RegExp]"},D=function(j){return p.call(j)=="[object Boolean]"},_=function(j){return(j-=0)==j},N=function(j,O){var X=O&&"process"in O?O.process:O;return typeof X!="function"?j:function($,J){return X($,j,J)}},Y={camelize:i,decamelize:h,pascalize:a,depascalize:h,camelizeKeys:function(j,O){return r(N(i,O),j)},decamelizeKeys:function(j,O){return r(N(h,O),j,O)},pascalizeKeys:function(j,O){return r(N(a,O),j)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=Y:e.humps=Y})(sp)}).decamelize,up=function(t){if(Array.isArray(t))return t},cp=function(t,e){if(typeof Symbol<"u"&&Symbol.iterator in Object(t)){var r=[],i=!0,a=!1,h=void 0;try{for(var p,S=t[Symbol.iterator]();!(i=(p=S.next()).done)&&(r.push(p.value),!e||r.length!==e);i=!0);}catch(m){a=!0,h=m}finally{try{i||S.return==null||S.return()}finally{if(a)throw h}}return r}},Gc=function(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i},fp=function(t,e){if(t){if(typeof t=="string")return Gc(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Gc(t,e):void 0}},dp=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
106
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},hp=function(t,e){return up(t)||cp(t,e)||fp(t,e)||dp()},hd=dd(function(t){function e(){return t.exports=e=Object.assign||function(r){for(var i=1;i<arguments.length;i++){var a=arguments[i];for(var h in a)Object.prototype.hasOwnProperty.call(a,h)&&(r[h]=a[h])}return r},e.apply(this,arguments)}t.exports=e}),pp=function(t,e){if(t==null)return{};var r,i,a={},h=Object.keys(t);for(i=0;i<h.length;i++)r=h[i],e.indexOf(r)>=0||(a[r]=t[r]);return a},pd=function(t,e){if(t==null)return{};var r,i,a=pp(t,e);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(t);for(i=0;i<h.length;i++)r=h[i],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(a[r]=t[r])}return a},mp=oe.createContext(null);function nc(t){var e=t.children,r=pd(t,["children"]);return typeof e!="string"&&(e=ap(e)),oe.createElement("template",hd({},r,{dangerouslySetInnerHTML:{__html:e}}))}function rc(t){var e=t.root,r=t.children;return cd.createPortal(r,e)}function vp(t){var e=oe.forwardRef(function(r,i){var a,h,p=r.mode,S=r.delegatesFocus,m=r.styleSheets,b=r.ssr,R=r.children,w=pd(r,["mode","delegatesFocus","styleSheets","ssr","children"]),D=(h=oe.useRef((a=i)&&a.current),oe.useEffect(function(){a&&(a.current=h.current)},[a]),h),_=oe.useState(null),N=hp(_,2),Y=N[0],j=N[1],O="node_".concat(p).concat(S);return oe.useLayoutEffect(function(){if(D.current)try{if(typeof i=="function"&&i(D.current),b){var X=D.current.shadowRoot;return void j(X)}var $=D.current.attachShadow({mode:p,delegatesFocus:S});m.length>0&&($.adoptedStyleSheets=m),j($)}catch(J){(function(q){var K=q.error,te=q.styleSheets,ie=q.root;switch(K.name){case"NotSupportedError":te.length>0&&(ie.adoptedStyleSheets=te);break;default:throw K}})({error:J,styleSheets:m,root:Y})}},[i,D,m]),oe.createElement(oe.Fragment,null,oe.createElement(t.tag,hd({key:O,ref:D},w),(Y||b)&&oe.createElement(mp.Provider,{value:Y},b?oe.createElement(nc,{shadowroot:p,shadowrootmode:p},t.render({root:Y,ssr:b,children:R})):oe.createElement(rc,{root:Y},t.render({root:Y,ssr:b,children:R})))))});return e.propTypes={mode:we.PropTypes.oneOf(["open","closed"]),delegatesFocus:we.PropTypes.bool,styleSheets:we.PropTypes.arrayOf(we.PropTypes.instanceOf(globalThis.CSSStyleSheet)),ssr:we.PropTypes.bool,children:we.PropTypes.node},e.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},e}nc.propTypes={children:we.PropTypes.oneOfType([we.PropTypes.string,we.PropTypes.node])},nc.defaultProps={children:""},rc.propTypes={root:we.PropTypes.object.isRequired,children:we.PropTypes.node},rc.defaultProps={children:null};var Bu=new Map;function gp(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(i){return i.children};return new Proxy(t,{get:function(i,a){var h=lp(a,{separator:"-"}),p="".concat(e,"-").concat(h);return Bu.has(p)||Bu.set(p,vp({tag:h,render:r})),Bu.get(p)}})}var yp=gp();const bp=`@import"https://fonts.cdnfonts.com/css/tt-firs-neue-trl?styles=143111,143113,143105,143108,143110,143101,143099,143103,143097,143115";*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:TT Firs Neue Trl,sans-serif;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}
|
|
107
|
-
`;function yc({children:t,styles:e=[],...r}){return re.jsxs(yp.div,{...r,children:[[bp,...e].map((i,a)=>re.jsx("style",{type:"text/css",children:i},a)),t]})}const xp=`.modal-overlay{z-index:1300;position:fixed;top:0;right:0;bottom:0;left:0;background:hsla(0,0%,0%,.254);--tw-backdrop-blur: blur(4px);justify-content:center;align-items:center;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.modal-title{font-size:1.25rem;line-height:1.75rem;color:#e01b00;font-weight:500}.modal-footer{display:flex;justify-content:space-between;width:80%}.modal-container{background:#ffffff;-webkit-backdrop-filter:blur(4.5px);backdrop-filter:blur(4.5px);display:flex;padding:32px 24px 40px;flex-direction:column;align-items:center;gap:24px;align-self:stretch;width:500px;height:204px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:.5rem}.modal-button{border-radius:3px;border:1px solid #ddd;background:#ddd;padding:8px 32px;font-size:14px}.confirm-btn{background:#e01b00!important}.text-white{color:#fff}.text-sm{font-size:.875rem;line-height:1.25rem}
|
|
108
|
-
`;function md({isOpen:t,onClose:e,onConfirm:r}){if(!t)return null;function i(a){var h;((h=a.target)==null?void 0:h.id)==="modal-wrapper"&&e()}return re.jsx(yc,{styles:[xp],style:{zIndex:1300},children:re.jsx("div",{onClick:i,className:"modal-overlay",id:"modal-wrapper",children:re.jsxs("div",{className:"modal-container",children:[re.jsx("h3",{className:"modal-title",children:"Log out"}),re.jsx("p",{className:"text-sm",children:"Are you sure want to log out?"}),re.jsxs("div",{className:"modal-footer",children:[re.jsx("button",{className:"modal-button",onClick:e,children:"Cancel"}),re.jsx("button",{onClick:r,className:"text-white confirm-btn modal-button",children:"Confirm"})]})]})})})}function Sp({primaryColor:t="#009d4f"}){return re.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",children:[re.jsx("path",{d:"M8.5 19.5H8C4 19.5 2 18.5 2 13.5V8.5C2 4.5 4 2.5 8 2.5H16C20 2.5 22 4.5 22 8.5V13.5C22 17.5 20 19.5 16 19.5H15.5C15.19 19.5 14.89 19.65 14.7 19.9L13.2 21.9C12.54 22.78 11.46 22.78 10.8 21.9L9.3 19.9C9.14 19.68 8.77 19.5 8.5 19.5Z",stroke:t,"stroke-width":"1.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),re.jsx("path",{d:"M15.9965 11.5H16.0054",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),re.jsx("path",{d:"M11.9955 11.5H12.0045",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),re.jsx("path",{d:"M7.99451 11.5H8.00349",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]})}function wp({primaryColor:t="#009d4f"}){return re.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[re.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.7968 17.4705C16.5901 17.4705 18.8076 16.8556 19.0218 14.3874C19.0218 11.921 17.4757 12.0796 17.4757 9.05334C17.4757 6.68952 15.2352 4 11.7968 4C8.35833 4 6.1178 6.68952 6.1178 9.05334C6.1178 12.0796 4.57178 11.921 4.57178 14.3874C4.78679 16.8649 7.00428 17.4705 11.7968 17.4705Z",stroke:t,"stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),re.jsx("path",{d:"M13.8274 20.0286C12.6679 21.3161 10.8591 21.3313 9.68848 20.0286",stroke:t,"stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),re.jsx("circle",{cx:"16.928",cy:"7",r:"2",fill:"#E01B00",stroke:t})]})}const kp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAArCAYAAAADgWq5AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA3XSURBVHgBtVl7jFxVGf/dO3feMzuzO/tuu92y2xIoCEgCgUQogSIKhBIgaAxpFdREITxMVCrYNqB/+A8QCYQYbIuJUTChGqBQDCkaMUCgW0qtpe12t933drezs/N+XX/fuefOzK6l0KInPb2POfec3/m+3/c6a+ALNNu247xczL6Ofbm+j+suLck+pK972XcYhrEbX6AZOItGoGt4uZ99jQtu+tAnmP7kIPLz8yiwS/NHmxDr6kJTdzfaVq5qnGIb+/azAX9GgDXQTQJUQB3Y+SqOvL1bgXVB6nELv2OvcqllX74Uq2+8SV2buBE40n+QwHfgfwlYq34r+7rU+Bj2vvgH/Ou1VxXIxeAaW7Xht6ph1NGzCfAr7/meC3wb+xYCH8IXBaylurWQnu/d++IfMUCwRS1Nuz7mFN813lfVUrYh3xi1lWXIlXd/F1eww5H2rQQ9gLMFTCAP8PJEamIcO+77AebHx+u/6Y8FrItNJDqVL2Awm8WJQhFejwedfj9WhIJosjz8wKCkUdupu6koOX7n08+60haKPHnGgAlEuLp5bGAPdm78yUKO6tU4cQ3w/uQc3pqYwkypQOAGTNNU3SJoi+N6wmFclWjmBnxqvEja1rMJcF8kghseeRT9V62Rl5s595bPDZggxE29fPD11/DWLx9f/FsNqFwrvP5l6DjenZmBKN40TM5qqrEeAUzJGnz28Rpgv6atFRdGQmrXjjG6QrDV/Q0/+zlWf/1GebWB82//TMAE0svLnpnDh+N/umfDaY1KfnlrdBw7R8ZguyQxPJSsoW493JDHY7JbaiGhSNCycEt3J3oDgZp2qi5HOMgbjuCOp59B+8pV4rsvWWyIpwJ8ND0x0fvKQ/dDPIJh1yWgWVsbW6xU8au9+8jXAqUJWJRo2OdDiGqPBv1ojcUQIRVOptOYnEsjky+iUrXREw3jm91dihQ26VPRs0NvoKmrk6DJ6c6uAQK+pBGftQis8LZ3z/ZtIGjFQRJS78zQ05q1u/0nk5ghWOFoazCAloCFGIF2xKPobmtHW1sCifZWeP1e5DM5jJPjHxwaxsGpJE5WykhYlprZI1IWr0FOGASd4tpv/OIx3PHrZy4mJuHzZhejuYgKDxza9Tqkm4ah5Ck8NUzpjhG5z/L7QQIWsGGfFzGvGJeeUMZY5G0oxGgXRYBSjsSi6GpvwZoL+7GqM4GhbM5hkOEIw6SkDcN5ISIZ2fOh6mz36ziwEDCb7CK+94UXHFAKsHMVQzK1lIWfakq+T4p0+RwhWP5Tm1CcVAbFb7w+xwA9XnVvkS4RbuCS5Z18tvT8LmgO0+s5axrY5Ri8gH3gVICvPvLmG0hPTjjSNVyp6kk5Uhii7Mm01W9i1X6S1yLR7apj78ozKEPjDqoVlIsFLmIjJNKm6wpEI2iOBMhzT10wohmzDtSloGAZ2bNngZRNTYcNwt0ju3Y5vK19jIZJG7ssZiuL93kMTSmC5X3Acnq1lEM2lUQ2OYsTY2PI8BoOeOEXgVfLiPqtmmBqVGt4NrWG3932vCvlNY1GtyYzOYmpfR9pKsgWRa91ryBvXZ8pb1PFspo0YJpqxIlCCf6qiRx3eWwkidBkCj2JGfT3LsU+Gtp83sbyZcsRpTtDbhYtytWJUVfrkwqRbE0rJ4xilBIu0MtQO7fwzQ6XEldPfVQHa7vc1cZlurs26+9eOngIQ/MpeMmVeCiAXNWLXBkEVuDVwniqiH2Tafzz4Cj2T6QwkytifHYOyfQ8ZuYLeHN4FEUKxZWuY6v63k039NqDf/+bPK5TEiYdJOnunT16xLFu6TqKyVURTEvZwwlVBsaFUsqdAZlKBWYuj85QBJmq5A8mYpEw5uYraPUauHBZBxf18LuqChSlSgnnLO1AjnTxaA+huCl5BqUt63q0x6gq92lj+shhnEdaiCezND+QPHrUIbzgMZ3Q61ib7QQPdevwWh6DtPIygXpMD4p0Cx0RA+cnOlUaWShXkZsvYwkN7LLz+5AtVbF0SbcKzyGfhfTMNFYtaVXaMVzfRrCOlzE0TL0Z3owO7HEdw8UCuFfuMlOTNWnWrFWnhY5DdpnsXFfEYxjN5NSGKpw0ncsy8kVRplkcn06izQ+E6IujzQlcviqH9/49zIhmoY9AffQyYZ8fZsmjMghnaqNuIRLWbceQhculTMYFHK8Bzk1POzvUiY3zrVnLqZRJmI6UpfU3t+AfKt00tTHaODw2gQIHlctlTCaLGDqZwfzvX6Ira0IgEMTw1BRGR4awsiOOsBVg2uFXvK2vZzgobVN5oaqjYOXedOuthWZTATJr8V1RQyeCqMm1LvCepihDcRDJYlEBrkqgEP5yBQ8DhD8eRlu8CSuW96ClOYYSc2SDGjs6PonxZAqdTdRWuGlBpm+gIXuzDQfTwvSlIXBo92S7oExDewudLi7yxVEm5ndfcAF5yOSFq3jok6Ufm8sjze+C8WYsWXUuWnpXoBgM4/3jE9gzPO4EFY4zqqiF4gU+uOaLtZfQHsttIuEhuQl3dEB8sZs1aUY4FDCqTvJj63xN5wwtrCSaKc2xXAEpZmIrOoSfQILG1kOpfuXSS9Ddswz+YBA9zIGPkUIf7NuvpNfmDao5lJUYjo93c2xXy66bbersdPEOCWDJO+FjHpo1Jl1y1KkgXkIrwmiwP7Fjr6STlpcuK48CxTybztDQPEimUojxuv+99zB9bNihVjGNALUS9AfgJTWWB6M1Cdq60qsVBg0kWQxYkKiir43qVY5bAxLVeAxolaDm0G19dbO2CsdWCCBPQ5tIZZArVVQSP8nodGB4BIPDx5FlsLDI11lyt1wu4bJ4u/LpCpBZpwOABlpAGZ68be1b6QJOWpLRc1fJ2Ipz4nAduespFrkzxx8bdSMQAyMnyzpnzpdKBJpFdzSIJYkE+np70HtOL6KRIGZnZnF8cgpLQzG0+ILaMzR4h0XN1bNE1kRfn5KuVNSul/jzkssuX/9hLTXXEm2wW1tPXPOZXPBktqAqCFXq2I5WsswpjlWqSsm5cgXTLE5l+OiJWRW66d/wTr6E/oAP7bBrLs02Tln+qLW6LrpInnbLfy7gHd5weH3b6gswvf/jU+7VjXYizP0nTuCVw4MYnJsjjx2LrlYNRQ01iEAHZ1MYTqbhHRxVJdOKzg60NUUUzY4UWH14vehg4r+UX3QxexNe1845XAWyd1x4ESIdisNvNwLeLfw4785vxKc3PaIJUFUewlXcXKmM96nSd1h0jpKfZeYQMkqqZhnnkZhN0JJrlLgrcVs2k41YOICVXe0Is3SS9LNKflveELyMdCelCGDfT6Es529Ly0VE1by6Mudd//XXu3TYVgPMhyRV81Tr6gs2hds7kZUwDcegxjNZvM0INnBihiCrzBuY7DA5N0XkBGXy2SlHbFUuqQcxWOYYzQTbxoJTPLz4a8u0MG34lR8uku9hJvUVApT8Q3zJKLndzA2vLuYQ4PswtdJ/3doaHVx9u01OW5KX/vBexeNksYSXh4bxG6aRH88lafisJKhan1e6l1mZl++YC9CtSTBQZRQX9jMpipGf3bEQ2mlsQapdNpOn1McrTJhsllN8V2IlIqqrUAiSYko499LtZVjMvh+N4XgojC996y7BJW53y38BFinzIlLGSGe3A5RuyCYYARkMhuBjkJCTHK+EXk7u8zIXIPAycwKTwKFDu0+iGe+EGuliFWmTIdwMqdouwM3IKLGFErWTzeeoMQMZFqVObmyq0N659qvou/Y6gfZU49lEo4Shy+mB23+6EfGubiVBOQTxM2cQNYqqg4xuIuEgAYdo8WFGsRC7FQjBE4ygxKQmbfiQZSQrBOPwNLczKMUQZj0X4qYdz2io2k96kXm1SFlaLp9XjqEl0Yqbb7vN5e7mBRixqLknPwcPHIh/f/16ZHOyc+a8THIU6bmJEvnX6KttisuSKpjSKfG8QRLxMMF5+E42E6CGAtyccF/AWtz8PKNhS2sCkzRk0ZyYhJfjm1ta8Ojjj2FpT88pT37MxYD1gAfPPe88/GjjwwRoOZWAlPOUkgD1UbqKEuwRhvQwzx18lg9NLOETTHoSXDTKbC7EMCzGJxV2RdduUl3LfPIs3kjCdSaTJqU8yFPad939HQErQ799qvNiC6do4kJE0jevu3VTUyyOTQ9vRIVG4UpHpCxNXJiU8/KuSj6KNIsMvR66Lj8NVDyBAJPNCUjRiKWlLG7RrRWzrFyWdC/Fgw//GBddrE6mtnzaqbyB0zT3fHhsdBQP3XsfxkZGlBsSFSr1GI6f9pLT8l7O0WQTeXIxSm2UuMkcjSrRkqBXKCkteSW1FP/LoNPBpCZL6XposE8+ywNAZow42/PhBtBSpL7M3rv9+efx2+eeo0S99VTQcNSq/CoBi5pzLJcsbkKkn+W9ABa35UjYUvmBeIeeZT24+rpr8bWbbkIoHB6CQ4Pdp8PzmYA16F44R1nrJ5jT/m7rVvz19TecPJaqFsDlakXxWYCJNCt89mgDbWluVvx0D7mjTU248qqrsO7225BgksS2Q4NNfhaWzwW4AbicDTzB3jtJ4HsHBvDmzp0YPHQYhVKRbi6oKFIgOKGFBAhpQb4Pkt8r+s7B5VdcgWvWrhWJyk+SH2w2zuDPX2cEuAH4Gl42sK933w0ePowZhu9JHpWmyM8y3ZvwOMoz4r7+foLtc4cmNdAnjf/33+lOA14k7/4VdDkW/iV0Dk6RMARH9QOfR/Wf1v4D3Fe7Fu3OpbsAAAAASUVORK5CYII=",Tp=`.avatar-dropdown-item{padding:.5rem;font-size:.875rem;line-height:1.25rem;cursor:pointer;border-radius:.25rem}.avartarDropdownMenu{background-color:#fff;padding:.5rem;width:13rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);position:absolute;left:-10rem;top:3.5rem}.avartarDropdownMenu ul{list-style:none;padding-inline-start:0;margin-block-end:0}.navbar{position:fixed;display:flex;z-index:30;background:black;top:0;width:100%;padding-left:2.5rem;height:64px}.navbar-container{display:flex;flex-direction:row;align-items:center;width:100%;justify-content:space-between}.logo-container{padding:16px 0;height:100%}.navbar-container img{height:100%}.right-side-container{display:flex;flex-direction:row;align-items:center;text-align:center;margin-right:2.5rem;gap:1rem}.userContainer{display:flex;align-items:center;gap:.5rem}.userFullName{color:#fff;font-weight:400;font-size:.875rem;line-height:1.25rem}.userAvatar{width:2.5rem;height:2.5rem;cursor:pointer;-o-object-fit:cover;object-fit:cover;border-radius:9999px}.relative{position:relative}.cursor-pointer{cursor:pointer}
|
|
109
|
-
`;function Cp({logo:t,user:e,baseUrl:r,style:i,classNames:a="",customColors:h}){const p=t||"/public/assets/icons/logo-header.png",S={...i,color:(h==null?void 0:h.color)||"black",backgroundColor:(h==null?void 0:h.bgColor)||"black"},[m,b]=oe.useState(!1),R=()=>{window.location.href=`${r}/authentication/logout?callbackUrl=${window.location.href}`};return re.jsxs(yc,{styles:[Tp],style:{zIndex:1200},children:[re.jsx("nav",{className:`navbar ${a}`,style:h?S:i,children:re.jsxs("div",{className:"navbar-container",children:[re.jsx("div",{className:"logo-container",children:re.jsx("img",{src:p,alt:"logo-header"})}),re.jsxs("div",{className:"right-side-container",children:[re.jsxs("div",{className:"userContainer",children:[re.jsx("p",{className:"userFullName",children:`${e==null?void 0:e.firstName} ${e==null?void 0:e.lastName}`}),re.jsx(Ep,{primaryColor:h==null?void 0:h.primaryColor,avatarUrl:e==null?void 0:e.avatarUrl,setShowConfirmModal:b})]}),re.jsx("span",{className:"cursor-pointer",children:re.jsx(wp,{primaryColor:h==null?void 0:h.primaryColor})}),re.jsx("span",{className:"cursor-pointer",children:re.jsx(Sp,{primaryColor:h==null?void 0:h.primaryColor})})]})]})}),re.jsx(md,{isOpen:m,onClose:()=>b(!1),onConfirm:R})]})}function Ep({avatarUrl:t,setShowConfirmModal:e,primaryColor:r="#009d4f"}){const[i,a]=oe.useState(!1),h=oe.useRef(null),p=oe.useRef(null),[S,m]=oe.useState(!1),[b,R]=oe.useState(!1),w={backgroundColor:S?r:"transparent"},D={backgroundColor:b?r:"transparent"};return oe.useEffect(()=>{const _=N=>{h.current&&!h.current.contains(N.target)&&a(!1),p.current&&!p.current.contains(N.target)&&a(!1)};return document.addEventListener("click",_,!0),()=>{document.removeEventListener("click",_,!0)}},[h]),re.jsx(re.Fragment,{children:re.jsxs("div",{style:{position:"relative"},children:[re.jsx("img",{onClick:()=>a(!i),ref:h,alt:"user avatar",className:"userAvatar",src:t||kp}),re.jsx("div",{style:{display:i?"block":"none"},className:"avartarDropdownMenu",ref:p,children:re.jsxs("ul",{children:[re.jsx("li",{onMouseEnter:()=>R(!0),onMouseLeave:()=>R(!1),style:D,className:"avatar-dropdown-item",children:"Profile"}),re.jsx("li",{onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),style:w,onClick:()=>e(!0),className:"avatar-dropdown-item",children:"Logout"})]})})]})})}var Rp=typeof global=="object"&&global&&global.Object===Object&&global;const Pp=Rp;var Ap=typeof self=="object"&&self&&self.Object===Object&&self,Ip=Pp||Ap||Function("return this")();const vd=Ip;var Mp=vd.Symbol;const Pl=Mp;var gd=Object.prototype,Dp=gd.hasOwnProperty,Op=gd.toString,ds=Pl?Pl.toStringTag:void 0;function Fp(t){var e=Dp.call(t,ds),r=t[ds];try{t[ds]=void 0;var i=!0}catch{}var a=Op.call(t);return i&&(e?t[ds]=r:delete t[ds]),a}var Lp=Object.prototype,_p=Lp.toString;function jp(t){return _p.call(t)}var Bp="[object Null]",Vp="[object Undefined]",$c=Pl?Pl.toStringTag:void 0;function zp(t){return t==null?t===void 0?Vp:Bp:$c&&$c in Object(t)?Fp(t):jp(t)}function Wp(t){return t!=null&&typeof t=="object"}var Up="[object Symbol]";function Np(t){return typeof t=="symbol"||Wp(t)&&zp(t)==Up}var Hp=/\s/;function Gp(t){for(var e=t.length;e--&&Hp.test(t.charAt(e)););return e}var $p=/^\s+/;function Yp(t){return t&&t.slice(0,Gp(t)+1).replace($p,"")}function Al(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Yc=0/0,Xp=/^[-+]0x[0-9a-f]+$/i,Zp=/^0b[01]+$/i,Qp=/^0o[0-7]+$/i,Jp=parseInt;function Xc(t){if(typeof t=="number")return t;if(Np(t))return Yc;if(Al(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Al(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Yp(t);var r=Zp.test(t);return r||Qp.test(t)?Jp(t.slice(2),r?2:8):Xp.test(t)?Yc:+t}var Kp=function(){return vd.Date.now()};const Vu=Kp;var qp="Expected a function",em=Math.max,tm=Math.min;function Cl(t,e,r){var i,a,h,p,S,m,b=0,R=!1,w=!1,D=!0;if(typeof t!="function")throw new TypeError(qp);e=Xc(e)||0,Al(r)&&(R=!!r.leading,w="maxWait"in r,h=w?em(Xc(r.maxWait)||0,e):h,D="trailing"in r?!!r.trailing:D);function _(K){var te=i,ie=a;return i=a=void 0,b=K,p=t.apply(ie,te),p}function N(K){return b=K,S=setTimeout(O,e),R?_(K):p}function Y(K){var te=K-m,ie=K-b,se=e-te;return w?tm(se,h-ie):se}function j(K){var te=K-m,ie=K-b;return m===void 0||te>=e||te<0||w&&ie>=h}function O(){var K=Vu();if(j(K))return X(K);S=setTimeout(O,Y(K))}function X(K){return S=void 0,D&&i?_(K):(i=a=void 0,p)}function $(){S!==void 0&&clearTimeout(S),b=0,i=m=a=S=void 0}function J(){return S===void 0?p:X(Vu())}function q(){var K=Vu(),te=j(K);if(i=arguments,a=this,m=K,te){if(S===void 0)return N(m);if(w)return clearTimeout(S),S=setTimeout(O,e),_(m)}return S===void 0&&(S=setTimeout(O,e)),p}return q.cancel=$,q.flush=J,q}var nm="Expected a function";function rm(t,e,r){var i=!0,a=!0;if(typeof t!="function")throw new TypeError(nm);return Al(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),Cl(t,e,{leading:i,maxWait:e,trailing:a})}var om=!!(typeof window<"u"&&window.document&&window.document.createElement),im=om;const yd=we.getDefaultExportFromCjs(im);var la=function(){return la=Object.assign||function(e){for(var r,i=1,a=arguments.length;i<a;i++){r=arguments[i];for(var h in r)Object.prototype.hasOwnProperty.call(r,h)&&(e[h]=r[h])}return e},la.apply(this,arguments)},aa=null,Zc=null;yd&&window.addEventListener("resize",function(){Zc!==window.devicePixelRatio&&(Zc=window.devicePixelRatio,aa=null)});function Qc(){if(aa===null){if(typeof document>"u")return aa=0,aa;var t=document.body,e=document.createElement("div");e.classList.add("simplebar-hide-scrollbar"),t.appendChild(e);var r=e.getBoundingClientRect().right;t.removeChild(e),aa=r}return aa}function bd(t){return!t||!t.ownerDocument||!t.ownerDocument.defaultView?window:t.ownerDocument.defaultView}function xd(t){return!t||!t.ownerDocument?document:t.ownerDocument}var Sd=function(t){var e={},r=Array.prototype.reduce.call(t,function(i,a){var h=a.name.match(/data-simplebar-(.+)/);if(h){var p=h[1].replace(/\W+(.)/g,function(S,m){return m.toUpperCase()});switch(a.value){case"true":i[p]=!0;break;case"false":i[p]=!1;break;case void 0:i[p]=!0;break;default:i[p]=a.value}}return i},e);return r};function wd(t,e){var r;t&&(r=t.classList).add.apply(r,e.split(" "))}function kd(t,e){t&&e.split(" ").forEach(function(r){t.classList.remove(r)})}function Td(t){return".".concat(t.split(" ").join("."))}var am=Object.freeze({__proto__:null,getElementWindow:bd,getElementDocument:xd,getOptions:Sd,addClasses:wd,removeClasses:kd,classNamesToQuery:Td}),oo=bd,zu=xd,sm=Sd,io=wd,ao=kd,Gt=Td,yl=function(){function t(e,r){r===void 0&&(r={});var i=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var a=oo(i.el);i.scrollXTicking||(a.requestAnimationFrame(i.scrollX),i.scrollXTicking=!0),i.scrollYTicking||(a.requestAnimationFrame(i.scrollY),i.scrollYTicking=!0),i.isScrolling||(i.isScrolling=!0,io(i.el,i.classNames.scrolling)),i.showScrollbar("x"),i.showScrollbar("y"),i.onStopScrolling()},this.scrollX=function(){i.axis.x.isOverflowing&&i.positionScrollbar("x"),i.scrollXTicking=!1},this.scrollY=function(){i.axis.y.isOverflowing&&i.positionScrollbar("y"),i.scrollYTicking=!1},this._onStopScrolling=function(){ao(i.el,i.classNames.scrolling),i.options.autoHide&&(i.hideScrollbar("x"),i.hideScrollbar("y")),i.isScrolling=!1},this.onMouseEnter=function(){i.isMouseEntering||(io(i.el,i.classNames.mouseEntered),i.showScrollbar("x"),i.showScrollbar("y"),i.isMouseEntering=!0),i.onMouseEntered()},this._onMouseEntered=function(){ao(i.el,i.classNames.mouseEntered),i.options.autoHide&&(i.hideScrollbar("x"),i.hideScrollbar("y")),i.isMouseEntering=!1},this._onMouseMove=function(a){i.mouseX=a.clientX,i.mouseY=a.clientY,(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&i.onMouseMoveForAxis("x"),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&i.onMouseMoveForAxis("y")},this.onMouseLeave=function(){i.onMouseMove.cancel(),(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&i.onMouseLeaveForAxis("x"),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&i.onMouseLeaveForAxis("y"),i.mouseX=-1,i.mouseY=-1},this._onWindowResize=function(){i.scrollbarWidth=i.getScrollbarWidth(),i.hideNativeScrollbar()},this.onPointerEvent=function(a){if(!(!i.axis.x.track.el||!i.axis.y.track.el||!i.axis.x.scrollbar.el||!i.axis.y.scrollbar.el)){var h,p;i.axis.x.track.rect=i.axis.x.track.el.getBoundingClientRect(),i.axis.y.track.rect=i.axis.y.track.el.getBoundingClientRect(),(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&(h=i.isWithinBounds(i.axis.x.track.rect)),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&(p=i.isWithinBounds(i.axis.y.track.rect)),(h||p)&&(a.stopPropagation(),a.type==="pointerdown"&&a.pointerType!=="touch"&&(h&&(i.axis.x.scrollbar.rect=i.axis.x.scrollbar.el.getBoundingClientRect(),i.isWithinBounds(i.axis.x.scrollbar.rect)?i.onDragStart(a,"x"):i.onTrackClick(a,"x")),p&&(i.axis.y.scrollbar.rect=i.axis.y.scrollbar.el.getBoundingClientRect(),i.isWithinBounds(i.axis.y.scrollbar.rect)?i.onDragStart(a,"y"):i.onTrackClick(a,"y"))))}},this.drag=function(a){var h,p,S,m,b,R,w,D,_,N,Y;if(!(!i.draggedAxis||!i.contentWrapperEl)){var j,O=i.axis[i.draggedAxis].track,X=(p=(h=O.rect)===null||h===void 0?void 0:h[i.axis[i.draggedAxis].sizeAttr])!==null&&p!==void 0?p:0,$=i.axis[i.draggedAxis].scrollbar,J=(m=(S=i.contentWrapperEl)===null||S===void 0?void 0:S[i.axis[i.draggedAxis].scrollSizeAttr])!==null&&m!==void 0?m:0,q=parseInt((R=(b=i.elStyles)===null||b===void 0?void 0:b[i.axis[i.draggedAxis].sizeAttr])!==null&&R!==void 0?R:"0px",10);a.preventDefault(),a.stopPropagation(),i.draggedAxis==="y"?j=a.pageY:j=a.pageX;var K=j-((D=(w=O.rect)===null||w===void 0?void 0:w[i.axis[i.draggedAxis].offsetAttr])!==null&&D!==void 0?D:0)-i.axis[i.draggedAxis].dragOffset;K=i.draggedAxis==="x"&&i.isRtl?((N=(_=O.rect)===null||_===void 0?void 0:_[i.axis[i.draggedAxis].sizeAttr])!==null&&N!==void 0?N:0)-$.size-K:K;var te=K/(X-$.size),ie=te*(J-q);i.draggedAxis==="x"&&i.isRtl&&(ie=!((Y=t.getRtlHelpers())===null||Y===void 0)&&Y.isScrollingToNegative?-ie:ie),i.contentWrapperEl[i.axis[i.draggedAxis].scrollOffsetAttr]=ie}},this.onEndDrag=function(a){var h=zu(i.el),p=oo(i.el);a.preventDefault(),a.stopPropagation(),ao(i.el,i.classNames.dragging),h.removeEventListener("mousemove",i.drag,!0),h.removeEventListener("mouseup",i.onEndDrag,!0),i.removePreventClickId=p.setTimeout(function(){h.removeEventListener("click",i.preventClick,!0),h.removeEventListener("dblclick",i.preventClick,!0),i.removePreventClickId=null})},this.preventClick=function(a){a.preventDefault(),a.stopPropagation()},this.el=e,this.options=la(la({},t.defaultOptions),r),this.classNames=la(la({},t.defaultOptions.classNames),r.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=rm(this._onMouseMove,64),this.onWindowResize=Cl(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Cl(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Cl(this._onMouseEntered,this.stopScrollDelay),this.init()}return t.getRtlHelpers=function(){if(t.rtlHelpers)return t.rtlHelpers;var e=document.createElement("div");e.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var r=e.firstElementChild,i=r==null?void 0:r.firstElementChild;if(!i)return null;document.body.appendChild(r),r.scrollLeft=0;var a=t.getOffset(r),h=t.getOffset(i);r.scrollLeft=-999;var p=t.getOffset(i);return document.body.removeChild(r),t.rtlHelpers={isScrollOriginAtZero:a.left!==h.left,isScrollingToNegative:h.left!==p.left},t.rtlHelpers},t.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Qc()}catch{return Qc()}},t.getOffset=function(e){var r=e.getBoundingClientRect(),i=zu(e),a=oo(e);return{top:r.top+(a.pageYOffset||i.documentElement.scrollTop),left:r.left+(a.pageXOffset||i.documentElement.scrollLeft)}},t.prototype.init=function(){yd&&(this.initDOM(),this.rtlHelpers=t.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},t.prototype.initDOM=function(){var e,r;this.wrapperEl=this.el.querySelector(Gt(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Gt(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Gt(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Gt(this.classNames.offset)),this.maskEl=this.el.querySelector(Gt(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Gt(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Gt(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Gt(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Gt(this.classNames.track)).concat(Gt(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Gt(this.classNames.track)).concat(Gt(this.classNames.vertical))),this.axis.x.scrollbar.el=((e=this.axis.x.track.el)===null||e===void 0?void 0:e.querySelector(Gt(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((r=this.axis.y.track.el)===null||r===void 0?void 0:r.querySelector(Gt(this.classNames.scrollbar)))||null,this.options.autoHide||(io(this.axis.x.scrollbar.el,this.classNames.visible),io(this.axis.y.scrollbar.el,this.classNames.visible))},t.prototype.initListeners=function(){var e=this,r,i=oo(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(r=this.contentWrapperEl)===null||r===void 0||r.addEventListener("scroll",this.onScroll),i.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var a=!1,h=i.ResizeObserver||ResizeObserver;this.resizeObserver=new h(function(){a&&i.requestAnimationFrame(function(){e.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),i.requestAnimationFrame(function(){a=!0})}this.mutationObserver=new i.MutationObserver(function(){i.requestAnimationFrame(function(){e.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},t.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var e=oo(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var r=this.contentEl.offsetWidth,i=this.heightAutoObserverEl.offsetHeight<=1,a=this.heightAutoObserverEl.offsetWidth<=1||r>0,h=this.contentWrapperEl.offsetWidth,p=this.elStyles.overflowX,S=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var m=this.contentEl.scrollHeight,b=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=i?"auto":"100%",this.placeholderEl.style.width=a?"".concat(r||b,"px"):"auto",this.placeholderEl.style.height="".concat(m,"px");var R=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=r!==0&&b>r,this.axis.y.isOverflowing=m>R,this.axis.x.isOverflowing=p==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=S==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var w=this.axis.x.isOverflowing?this.scrollbarWidth:0,D=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&b>h-D,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&m>R-w,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},t.prototype.getScrollbarSize=function(e){var r,i;if(e===void 0&&(e="y"),!this.axis[e].isOverflowing||!this.contentEl)return 0;var a=this.contentEl[this.axis[e].scrollSizeAttr],h=(i=(r=this.axis[e].track.el)===null||r===void 0?void 0:r[this.axis[e].offsetSizeAttr])!==null&&i!==void 0?i:0,p=h/a,S;return S=Math.max(~~(p*h),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(S=Math.min(S,this.options.scrollbarMaxSize)),S},t.prototype.positionScrollbar=function(e){var r,i,a;e===void 0&&(e="y");var h=this.axis[e].scrollbar;if(!(!this.axis[e].isOverflowing||!this.contentWrapperEl||!h.el||!this.elStyles)){var p=this.contentWrapperEl[this.axis[e].scrollSizeAttr],S=((r=this.axis[e].track.el)===null||r===void 0?void 0:r[this.axis[e].offsetSizeAttr])||0,m=parseInt(this.elStyles[this.axis[e].sizeAttr],10),b=this.contentWrapperEl[this.axis[e].scrollOffsetAttr];b=e==="x"&&this.isRtl&&(!((i=t.getRtlHelpers())===null||i===void 0)&&i.isScrollOriginAtZero)?-b:b,e==="x"&&this.isRtl&&(b=!((a=t.getRtlHelpers())===null||a===void 0)&&a.isScrollingToNegative?b:-b);var R=b/(p-m),w=~~((S-h.size)*R);w=e==="x"&&this.isRtl?-w+(S-h.size):w,h.el.style.transform=e==="x"?"translate3d(".concat(w,"px, 0, 0)"):"translate3d(0, ".concat(w,"px, 0)")}},t.prototype.toggleTrackVisibility=function(e){e===void 0&&(e="y");var r=this.axis[e].track.el,i=this.axis[e].scrollbar.el;!r||!i||!this.contentWrapperEl||(this.axis[e].isOverflowing||this.axis[e].forceVisible?(r.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(e))):(r.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(e))),this.axis[e].isOverflowing?i.style.display="block":i.style.display="none")},t.prototype.showScrollbar=function(e){e===void 0&&(e="y"),this.axis[e].isOverflowing&&!this.axis[e].scrollbar.isVisible&&(io(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!0)},t.prototype.hideScrollbar=function(e){e===void 0&&(e="y"),this.axis[e].isOverflowing&&this.axis[e].scrollbar.isVisible&&(ao(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!1)},t.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},t.prototype.onMouseMoveForAxis=function(e){e===void 0&&(e="y");var r=this.axis[e];!r.track.el||!r.scrollbar.el||(r.track.rect=r.track.el.getBoundingClientRect(),r.scrollbar.rect=r.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(r.track.rect)?(this.showScrollbar(e),io(r.track.el,this.classNames.hover),this.isWithinBounds(r.scrollbar.rect)?io(r.scrollbar.el,this.classNames.hover):ao(r.scrollbar.el,this.classNames.hover)):(ao(r.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)))},t.prototype.onMouseLeaveForAxis=function(e){e===void 0&&(e="y"),ao(this.axis[e].track.el,this.classNames.hover),ao(this.axis[e].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)},t.prototype.onDragStart=function(e,r){var i;r===void 0&&(r="y");var a=zu(this.el),h=oo(this.el),p=this.axis[r].scrollbar,S=r==="y"?e.pageY:e.pageX;this.axis[r].dragOffset=S-(((i=p.rect)===null||i===void 0?void 0:i[this.axis[r].offsetAttr])||0),this.draggedAxis=r,io(this.el,this.classNames.dragging),a.addEventListener("mousemove",this.drag,!0),a.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(a.addEventListener("click",this.preventClick,!0),a.addEventListener("dblclick",this.preventClick,!0)):(h.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.prototype.onTrackClick=function(e,r){var i=this,a,h,p,S;r===void 0&&(r="y");var m=this.axis[r];if(!(!this.options.clickOnTrack||!m.scrollbar.el||!this.contentWrapperEl)){e.preventDefault();var b=oo(this.el);this.axis[r].scrollbar.rect=m.scrollbar.el.getBoundingClientRect();var R=this.axis[r].scrollbar,w=(h=(a=R.rect)===null||a===void 0?void 0:a[this.axis[r].offsetAttr])!==null&&h!==void 0?h:0,D=parseInt((S=(p=this.elStyles)===null||p===void 0?void 0:p[this.axis[r].sizeAttr])!==null&&S!==void 0?S:"0px",10),_=this.contentWrapperEl[this.axis[r].scrollOffsetAttr],N=r==="y"?this.mouseY-w:this.mouseX-w,Y=N<0?-1:1,j=Y===-1?_-D:_+D,O=40,X=function(){i.contentWrapperEl&&(Y===-1?_>j&&(_-=O,i.contentWrapperEl[i.axis[r].scrollOffsetAttr]=_,b.requestAnimationFrame(X)):_<j&&(_+=O,i.contentWrapperEl[i.axis[r].scrollOffsetAttr]=_,b.requestAnimationFrame(X)))};X()}},t.prototype.getContentElement=function(){return this.contentEl},t.prototype.getScrollElement=function(){return this.contentWrapperEl},t.prototype.removeListeners=function(){var e=oo(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},t.prototype.unMount=function(){this.removeListeners()},t.prototype.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},t.prototype.findChild=function(e,r){var i=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,function(a){return i.call(a,r)})[0]},t.rtlHelpers=null,t.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},t.getOptions=sm,t.helpers=am,t}(),en=function(){return en=Object.assign||function(e){for(var r,i=1,a=arguments.length;i<a;i++){r=arguments[i];for(var h in r)Object.prototype.hasOwnProperty.call(r,h)&&(e[h]=r[h])}return e},en.apply(this,arguments)};function lm(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,i=Object.getOwnPropertySymbols(t);a<i.length;a++)e.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(t,i[a])&&(r[i[a]]=t[i[a]]);return r}var Cd=Ye.forwardRef(function(t,e){var r=t.children,i=t.scrollableNodeProps,a=i===void 0?{}:i,h=lm(t,["children","scrollableNodeProps"]),p=Ye.useRef(),S=Ye.useRef(),m=Ye.useRef(),b={},R={};Object.keys(h).forEach(function(_){Object.prototype.hasOwnProperty.call(yl.defaultOptions,_)?b[_]=h[_]:R[_]=h[_]});var w=en(en({},yl.defaultOptions.classNames),b.classNames),D=en(en({},a),{className:"".concat(w.contentWrapper).concat(a.className?" ".concat(a.className):""),tabIndex:0,role:"region","aria-label":b.ariaLabel||yl.defaultOptions.ariaLabel});return Ye.useEffect(function(){var _;return S.current=D.ref?D.ref.current:S.current,p.current&&(_=new yl(p.current,en(en(en({},b),S.current&&{scrollableNode:S.current}),m.current&&{contentNode:m.current})),typeof e=="function"?e(_):e&&(e.current=_)),function(){_==null||_.unMount(),_=null,typeof e=="function"&&e(null)}},[]),Ye.createElement("div",en({"data-simplebar":"init",ref:p},R),Ye.createElement("div",{className:w.wrapper},Ye.createElement("div",{className:w.heightAutoObserverWrapperEl},Ye.createElement("div",{className:w.heightAutoObserverEl})),Ye.createElement("div",{className:w.mask},Ye.createElement("div",{className:w.offset},typeof r=="function"?r({scrollableNodeRef:S,scrollableNodeProps:en(en({},D),{ref:S}),contentNodeRef:m,contentNodeProps:{className:w.contentEl,ref:m}}):Ye.createElement("div",en({},D),Ye.createElement("div",{className:w.contentEl},r)))),Ye.createElement("div",{className:w.placeholder})),Ye.createElement("div",{className:"".concat(w.track," simplebar-horizontal")},Ye.createElement("div",{className:w.scrollbar})),Ye.createElement("div",{className:"".concat(w.track," simplebar-vertical")},Ye.createElement("div",{className:w.scrollbar})))});Cd.displayName="SimpleBar";const Ed=oe.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Bl=oe.createContext({}),bc=oe.createContext(null),Vl=typeof document<"u",um=Vl?oe.useLayoutEffect:oe.useEffect,Rd=oe.createContext({strict:!1}),xc=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),cm="framerAppearId",Pd="data-"+xc(cm);function fm(t,e,r,i){const{visualElement:a}=oe.useContext(Bl),h=oe.useContext(Rd),p=oe.useContext(bc),S=oe.useContext(Ed).reducedMotion,m=oe.useRef();i=i||h.renderer,!m.current&&i&&(m.current=i(t,{visualState:e,parent:a,props:r,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:S}));const b=m.current;oe.useInsertionEffect(()=>{b&&b.update(r,p)});const R=oe.useRef(!!(r[Pd]&&!window.HandoffComplete));return um(()=>{b&&(b.render(),R.current&&b.animationState&&b.animationState.animateChanges())}),oe.useEffect(()=>{b&&(b.updateFeatures(),!R.current&&b.animationState&&b.animationState.animateChanges(),R.current&&(R.current=!1,window.HandoffComplete=!0))}),b}function ua(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function dm(t,e,r){return oe.useCallback(i=>{i&&t.mount&&t.mount(i),e&&(i?e.mount(i):e.unmount()),r&&(typeof r=="function"?r(i):ua(r)&&(r.current=i))},[e])}function xs(t){return typeof t=="string"||Array.isArray(t)}function zl(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Sc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],wc=["initial",...Sc];function Wl(t){return zl(t.animate)||wc.some(e=>xs(t[e]))}function Ad(t){return!!(Wl(t)||t.variants)}function hm(t,e){if(Wl(t)){const{initial:r,animate:i}=t;return{initial:r===!1||xs(r)?r:void 0,animate:xs(i)?i:void 0}}return t.inherit!==!1?e:{}}function pm(t){const{initial:e,animate:r}=hm(t,oe.useContext(Bl));return oe.useMemo(()=>({initial:e,animate:r}),[Jc(e),Jc(r)])}function Jc(t){return Array.isArray(t)?t.join(" "):t}const Kc={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ss={};for(const t in Kc)Ss[t]={isEnabled:e=>Kc[t].some(r=>!!e[r])};function mm(t){for(const e in t)Ss[e]={...Ss[e],...t[e]}}const Id=oe.createContext({}),Md=oe.createContext({}),vm=Symbol.for("motionComponentSymbol");function gm({preloadedFeatures:t,createVisualElement:e,useRender:r,useVisualState:i,Component:a}){t&&mm(t);function h(S,m){let b;const R={...oe.useContext(Ed),...S,layoutId:ym(S)},{isStatic:w}=R,D=pm(S),_=i(S,w);if(!w&&Vl){D.visualElement=fm(a,_,R,e);const N=oe.useContext(Md),Y=oe.useContext(Rd).strict;D.visualElement&&(b=D.visualElement.loadFeatures(R,Y,t,N))}return Ye.createElement(Bl.Provider,{value:D},b&&D.visualElement?Ye.createElement(b,{visualElement:D.visualElement,...R}):null,r(a,S,dm(_,D.visualElement,m),_,w,D.visualElement))}const p=oe.forwardRef(h);return p[vm]=a,p}function ym({layoutId:t}){const e=oe.useContext(Id).id;return e&&t!==void 0?e+"-"+t:t}function bm(t){function e(i,a={}){return gm(t(i,a))}if(typeof Proxy>"u")return e;const r=new Map;return new Proxy(e,{get:(i,a)=>(r.has(a)||r.set(a,e(a)),r.get(a))})}const xm=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function kc(t){return typeof t!="string"||t.includes("-")?!1:!!(xm.indexOf(t)>-1||/[A-Z]/.test(t))}const Il={};function Sm(t){Object.assign(Il,t)}const ks=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],si=new Set(ks);function Dd(t,{layout:e,layoutId:r}){return si.has(t)||t.startsWith("origin")||(e||r!==void 0)&&(!!Il[t]||t==="opacity")}const $t=t=>!!(t&&t.getVelocity),wm={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},km=ks.length;function Tm(t,{enableHardwareAcceleration:e=!0,allowTransformNone:r=!0},i,a){let h="";for(let p=0;p<km;p++){const S=ks[p];if(t[S]!==void 0){const m=wm[S]||S;h+=`${m}(${t[S]}) `}}return e&&!t.z&&(h+="translateZ(0)"),h=h.trim(),a?h=a(t,i?"":h):r&&i&&(h="none"),h}const Od=t=>e=>typeof e=="string"&&e.startsWith(t),Fd=Od("--"),oc=Od("var(--"),Cm=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,Em=(t,e)=>e&&typeof t=="number"?e.transform(t):t,ho=(t,e,r)=>Math.min(Math.max(r,t),e),li={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},vs={...li,transform:t=>ho(0,1,t)},bl={...li,default:1},gs=t=>Math.round(t*1e5)/1e5,Ul=/(-)?([\d]*\.?[\d])+/g,Ld=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Rm=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ts(t){return typeof t=="string"}const Cs=t=>({test:e=>Ts(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),so=Cs("deg"),Jn=Cs("%"),pe=Cs("px"),Pm=Cs("vh"),Am=Cs("vw"),qc={...Jn,parse:t=>Jn.parse(t)/100,transform:t=>Jn.transform(t*100)},ef={...li,transform:Math.round},_d={borderWidth:pe,borderTopWidth:pe,borderRightWidth:pe,borderBottomWidth:pe,borderLeftWidth:pe,borderRadius:pe,radius:pe,borderTopLeftRadius:pe,borderTopRightRadius:pe,borderBottomRightRadius:pe,borderBottomLeftRadius:pe,width:pe,maxWidth:pe,height:pe,maxHeight:pe,size:pe,top:pe,right:pe,bottom:pe,left:pe,padding:pe,paddingTop:pe,paddingRight:pe,paddingBottom:pe,paddingLeft:pe,margin:pe,marginTop:pe,marginRight:pe,marginBottom:pe,marginLeft:pe,rotate:so,rotateX:so,rotateY:so,rotateZ:so,scale:bl,scaleX:bl,scaleY:bl,scaleZ:bl,skew:so,skewX:so,skewY:so,distance:pe,translateX:pe,translateY:pe,translateZ:pe,x:pe,y:pe,z:pe,perspective:pe,transformPerspective:pe,opacity:vs,originX:qc,originY:qc,originZ:pe,zIndex:ef,fillOpacity:vs,strokeOpacity:vs,numOctaves:ef};function Tc(t,e,r,i){const{style:a,vars:h,transform:p,transformOrigin:S}=t;let m=!1,b=!1,R=!0;for(const w in e){const D=e[w];if(Fd(w)){h[w]=D;continue}const _=_d[w],N=Em(D,_);if(si.has(w)){if(m=!0,p[w]=N,!R)continue;D!==(_.default||0)&&(R=!1)}else w.startsWith("origin")?(b=!0,S[w]=N):a[w]=N}if(e.transform||(m||i?a.transform=Tm(t.transform,r,R,i):a.transform&&(a.transform="none")),b){const{originX:w="50%",originY:D="50%",originZ:_=0}=S;a.transformOrigin=`${w} ${D} ${_}`}}const Cc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function jd(t,e,r){for(const i in e)!$t(e[i])&&!Dd(i,r)&&(t[i]=e[i])}function Im({transformTemplate:t},e,r){return oe.useMemo(()=>{const i=Cc();return Tc(i,e,{enableHardwareAcceleration:!r},t),Object.assign({},i.vars,i.style)},[e])}function Mm(t,e,r){const i=t.style||{},a={};return jd(a,i,t),Object.assign(a,Im(t,e,r)),t.transformValues?t.transformValues(a):a}function Dm(t,e,r){const i={},a=Mm(t,e,r);return t.drag&&t.dragListener!==!1&&(i.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=a,i}const Om=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ml(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Om.has(t)}let Bd=t=>!Ml(t);function Fm(t){t&&(Bd=e=>e.startsWith("on")?!Ml(e):t(e))}try{Fm(require("@emotion/is-prop-valid").default)}catch{}function Lm(t,e,r){const i={};for(const a in t)a==="values"&&typeof t.values=="object"||(Bd(a)||r===!0&&Ml(a)||!e&&!Ml(a)||t.draggable&&a.startsWith("onDrag"))&&(i[a]=t[a]);return i}function tf(t,e,r){return typeof t=="string"?t:pe.transform(e+r*t)}function _m(t,e,r){const i=tf(e,t.x,t.width),a=tf(r,t.y,t.height);return`${i} ${a}`}const jm={offset:"stroke-dashoffset",array:"stroke-dasharray"},Bm={offset:"strokeDashoffset",array:"strokeDasharray"};function Vm(t,e,r=1,i=0,a=!0){t.pathLength=1;const h=a?jm:Bm;t[h.offset]=pe.transform(-i);const p=pe.transform(e),S=pe.transform(r);t[h.array]=`${p} ${S}`}function Ec(t,{attrX:e,attrY:r,attrScale:i,originX:a,originY:h,pathLength:p,pathSpacing:S=1,pathOffset:m=0,...b},R,w,D){if(Tc(t,b,R,D),w){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:_,style:N,dimensions:Y}=t;_.transform&&(Y&&(N.transform=_.transform),delete _.transform),Y&&(a!==void 0||h!==void 0||N.transform)&&(N.transformOrigin=_m(Y,a!==void 0?a:.5,h!==void 0?h:.5)),e!==void 0&&(_.x=e),r!==void 0&&(_.y=r),i!==void 0&&(_.scale=i),p!==void 0&&Vm(_,p,S,m,!1)}const Vd=()=>({...Cc(),attrs:{}}),Rc=t=>typeof t=="string"&&t.toLowerCase()==="svg";function zm(t,e,r,i){const a=oe.useMemo(()=>{const h=Vd();return Ec(h,e,{enableHardwareAcceleration:!1},Rc(i),t.transformTemplate),{...h.attrs,style:{...h.style}}},[e]);if(t.style){const h={};jd(h,t.style,t),a.style={...h,...a.style}}return a}function Wm(t=!1){return(r,i,a,{latestValues:h},p)=>{const m=(kc(r)?zm:Dm)(i,h,p,r),R={...Lm(i,typeof r=="string",t),...m,ref:a},{children:w}=i,D=oe.useMemo(()=>$t(w)?w.get():w,[w]);return oe.createElement(r,{...R,children:D})}}function zd(t,{style:e,vars:r},i,a){Object.assign(t.style,e,a&&a.getProjectionStyles(i));for(const h in r)t.style.setProperty(h,r[h])}const Wd=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Ud(t,e,r,i){zd(t,e,void 0,i);for(const a in e.attrs)t.setAttribute(Wd.has(a)?a:xc(a),e.attrs[a])}function Pc(t,e){const{style:r}=t,i={};for(const a in r)($t(r[a])||e.style&&$t(e.style[a])||Dd(a,t))&&(i[a]=r[a]);return i}function Nd(t,e){const r=Pc(t,e);for(const i in t)if($t(t[i])||$t(e[i])){const a=ks.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=t[i]}return r}function Ac(t,e,r,i={},a={}){return typeof e=="function"&&(e=e(r!==void 0?r:t.custom,i,a)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(r!==void 0?r:t.custom,i,a)),e}function Um(t){const e=oe.useRef(null);return e.current===null&&(e.current=t()),e.current}const Dl=t=>Array.isArray(t),Nm=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),Hm=t=>Dl(t)?t[t.length-1]||0:t;function El(t){const e=$t(t)?t.get():t;return Nm(e)?e.toValue():e}function Gm({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:r},i,a,h){const p={latestValues:$m(i,a,h,t),renderState:e()};return r&&(p.mount=S=>r(i,S,p)),p}const Hd=t=>(e,r)=>{const i=oe.useContext(Bl),a=oe.useContext(bc),h=()=>Gm(t,e,i,a);return r?h():Um(h)};function $m(t,e,r,i){const a={},h=i(t,{});for(const D in h)a[D]=El(h[D]);let{initial:p,animate:S}=t;const m=Wl(t),b=Ad(t);e&&b&&!m&&t.inherit!==!1&&(p===void 0&&(p=e.initial),S===void 0&&(S=e.animate));let R=r?r.initial===!1:!1;R=R||p===!1;const w=R?S:p;return w&&typeof w!="boolean"&&!zl(w)&&(Array.isArray(w)?w:[w]).forEach(_=>{const N=Ac(t,_);if(!N)return;const{transitionEnd:Y,transition:j,...O}=N;for(const X in O){let $=O[X];if(Array.isArray($)){const J=R?$.length-1:0;$=$[J]}$!==null&&(a[X]=$)}for(const X in Y)a[X]=Y[X]}),a}const Je=t=>t;class nf{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const r=this.order.indexOf(e);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function Ym(t){let e=new nf,r=new nf,i=0,a=!1,h=!1;const p=new WeakSet,S={schedule:(m,b=!1,R=!1)=>{const w=R&&a,D=w?e:r;return b&&p.add(m),D.add(m)&&w&&a&&(i=e.order.length),m},cancel:m=>{r.remove(m),p.delete(m)},process:m=>{if(a){h=!0;return}if(a=!0,[e,r]=[r,e],r.clear(),i=e.order.length,i)for(let b=0;b<i;b++){const R=e.order[b];R(m),p.has(R)&&(S.schedule(R),t())}a=!1,h&&(h=!1,S.process(m))}};return S}const xl=["prepare","read","update","preRender","render","postRender"],Xm=40;function Zm(t,e){let r=!1,i=!0;const a={delta:0,timestamp:0,isProcessing:!1},h=xl.reduce((w,D)=>(w[D]=Ym(()=>r=!0),w),{}),p=w=>h[w].process(a),S=()=>{const w=performance.now();r=!1,a.delta=i?1e3/60:Math.max(Math.min(w-a.timestamp,Xm),1),a.timestamp=w,a.isProcessing=!0,xl.forEach(p),a.isProcessing=!1,r&&e&&(i=!1,t(S))},m=()=>{r=!0,i=!0,a.isProcessing||t(S)};return{schedule:xl.reduce((w,D)=>{const _=h[D];return w[D]=(N,Y=!1,j=!1)=>(r||m(),_.schedule(N,Y,j)),w},{}),cancel:w=>xl.forEach(D=>h[D].cancel(w)),state:a,steps:h}}const{schedule:Ne,cancel:Mr,state:xt,steps:Wu}=Zm(typeof requestAnimationFrame<"u"?requestAnimationFrame:Je,!0),Qm={useVisualState:Hd({scrapeMotionValuesFromProps:Nd,createRenderState:Vd,onMount:(t,e,{renderState:r,latestValues:i})=>{Ne.read(()=>{try{r.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),Ne.render(()=>{Ec(r,i,{enableHardwareAcceleration:!1},Rc(e.tagName),t.transformTemplate),Ud(e,r)})}})},Jm={useVisualState:Hd({scrapeMotionValuesFromProps:Pc,createRenderState:Cc})};function Km(t,{forwardMotionProps:e=!1},r,i){return{...kc(t)?Qm:Jm,preloadedFeatures:r,useRender:Wm(e),createVisualElement:i,Component:t}}function Pr(t,e,r,i={passive:!0}){return t.addEventListener(e,r,i),()=>t.removeEventListener(e,r)}const Gd=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Nl(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const qm=t=>e=>Gd(e)&&t(e,Nl(e));function Ar(t,e,r,i){return Pr(t,e,qm(r),i)}const ev=(t,e)=>r=>e(t(r)),co=(...t)=>t.reduce(ev);function $d(t){let e=null;return()=>{const r=()=>{e=null};return e===null?(e=t,r):!1}}const rf=$d("dragHorizontal"),of=$d("dragVertical");function Yd(t){let e=!1;if(t==="y")e=of();else if(t==="x")e=rf();else{const r=rf(),i=of();r&&i?e=()=>{r(),i()}:(r&&r(),i&&i())}return e}function Xd(){const t=Yd(!0);return t?(t(),!1):!0}class mo{constructor(e){this.isMounted=!1,this.node=e}update(){}}function af(t,e){const r="pointer"+(e?"enter":"leave"),i="onHover"+(e?"Start":"End"),a=(h,p)=>{if(h.pointerType==="touch"||Xd())return;const S=t.getProps();t.animationState&&S.whileHover&&t.animationState.setActive("whileHover",e),S[i]&&Ne.update(()=>S[i](h,p))};return Ar(t.current,r,a,{passive:!t.getProps()[i]})}class tv extends mo{mount(){this.unmount=co(af(this.node,!0),af(this.node,!1))}unmount(){}}class nv extends mo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=co(Pr(this.node.current,"focus",()=>this.onFocus()),Pr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Zd=(t,e)=>e?t===e?!0:Zd(t,e.parentElement):!1;function Uu(t,e){if(!e)return;const r=new PointerEvent("pointer"+t);e(r,Nl(r))}class rv extends mo{constructor(){super(...arguments),this.removeStartListeners=Je,this.removeEndListeners=Je,this.removeAccessibleListeners=Je,this.startPointerPress=(e,r)=>{if(this.isPressing)return;this.removeEndListeners();const i=this.node.getProps(),h=Ar(window,"pointerup",(S,m)=>{if(!this.checkPressEnd())return;const{onTap:b,onTapCancel:R,globalTapTarget:w}=this.node.getProps();Ne.update(()=>{!w&&!Zd(this.node.current,S.target)?R&&R(S,m):b&&b(S,m)})},{passive:!(i.onTap||i.onPointerUp)}),p=Ar(window,"pointercancel",(S,m)=>this.cancelPress(S,m),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=co(h,p),this.startPress(e,r)},this.startAccessiblePress=()=>{const e=h=>{if(h.key!=="Enter"||this.isPressing)return;const p=S=>{S.key!=="Enter"||!this.checkPressEnd()||Uu("up",(m,b)=>{const{onTap:R}=this.node.getProps();R&&Ne.update(()=>R(m,b))})};this.removeEndListeners(),this.removeEndListeners=Pr(this.node.current,"keyup",p),Uu("down",(S,m)=>{this.startPress(S,m)})},r=Pr(this.node.current,"keydown",e),i=()=>{this.isPressing&&Uu("cancel",(h,p)=>this.cancelPress(h,p))},a=Pr(this.node.current,"blur",i);this.removeAccessibleListeners=co(r,a)}}startPress(e,r){this.isPressing=!0;const{onTapStart:i,whileTap:a}=this.node.getProps();a&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&Ne.update(()=>i(e,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Xd()}cancelPress(e,r){if(!this.checkPressEnd())return;const{onTapCancel:i}=this.node.getProps();i&&Ne.update(()=>i(e,r))}mount(){const e=this.node.getProps(),r=Ar(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),i=Pr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=co(r,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const ic=new WeakMap,Nu=new WeakMap,ov=t=>{const e=ic.get(t.target);e&&e(t)},iv=t=>{t.forEach(ov)};function av({root:t,...e}){const r=t||document;Nu.has(r)||Nu.set(r,{});const i=Nu.get(r),a=JSON.stringify(e);return i[a]||(i[a]=new IntersectionObserver(iv,{root:t,...e})),i[a]}function sv(t,e,r){const i=av(e);return ic.set(t,r),i.observe(t),()=>{ic.delete(t),i.unobserve(t)}}const lv={some:0,all:1};class uv extends mo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:r,margin:i,amount:a="some",once:h}=e,p={root:r?r.current:void 0,rootMargin:i,threshold:typeof a=="number"?a:lv[a]},S=m=>{const{isIntersecting:b}=m;if(this.isInView===b||(this.isInView=b,h&&!b&&this.hasEnteredView))return;b&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",b);const{onViewportEnter:R,onViewportLeave:w}=this.node.getProps(),D=b?R:w;D&&D(m)};return sv(this.node.current,p,S)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:r}=this.node;["amount","margin","root"].some(cv(e,r))&&this.startObserver()}unmount(){}}function cv({viewport:t={}},{viewport:e={}}={}){return r=>t[r]!==e[r]}const fv={inView:{Feature:uv},tap:{Feature:rv},focus:{Feature:nv},hover:{Feature:tv}};function Qd(t,e){if(!Array.isArray(e))return!1;const r=e.length;if(r!==t.length)return!1;for(let i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function dv(t){const e={};return t.values.forEach((r,i)=>e[i]=r.get()),e}function hv(t){const e={};return t.values.forEach((r,i)=>e[i]=r.getVelocity()),e}function Hl(t,e,r){const i=t.getProps();return Ac(i,e,r!==void 0?r:i.custom,dv(t),hv(t))}let Es=Je,On=Je;process.env.NODE_ENV!=="production"&&(Es=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},On=(t,e)=>{if(!t)throw new Error(e)});const fo=t=>t*1e3,Ir=t=>t/1e3,pv={current:!1},Jd=t=>Array.isArray(t)&&typeof t[0]=="number";function Kd(t){return!!(!t||typeof t=="string"&&qd[t]||Jd(t)||Array.isArray(t)&&t.every(Kd))}const ms=([t,e,r,i])=>`cubic-bezier(${t}, ${e}, ${r}, ${i})`,qd={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ms([0,.65,.55,1]),circOut:ms([.55,0,1,.45]),backIn:ms([.31,.01,.66,-.59]),backOut:ms([.33,1.53,.69,.99])};function eh(t){if(t)return Jd(t)?ms(t):Array.isArray(t)?t.map(eh):qd[t]}function mv(t,e,r,{delay:i=0,duration:a,repeat:h=0,repeatType:p="loop",ease:S,times:m}={}){const b={[e]:r};m&&(b.offset=m);const R=eh(S);return Array.isArray(R)&&(b.easing=R),t.animate(b,{delay:i,duration:a,easing:Array.isArray(R)?"linear":R,fill:"both",iterations:h+1,direction:p==="reverse"?"alternate":"normal"})}function vv(t,{repeat:e,repeatType:r="loop"}){const i=e&&r!=="loop"&&e%2===1?0:t.length-1;return t[i]}const th=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,gv=1e-7,yv=12;function bv(t,e,r,i,a){let h,p,S=0;do p=e+(r-e)/2,h=th(p,i,a)-t,h>0?r=p:e=p;while(Math.abs(h)>gv&&++S<yv);return p}function Rs(t,e,r,i){if(t===e&&r===i)return Je;const a=h=>bv(h,0,1,t,r);return h=>h===0||h===1?h:th(a(h),e,i)}const xv=Rs(.42,0,1,1),Sv=Rs(0,0,.58,1),nh=Rs(.42,0,.58,1),wv=t=>Array.isArray(t)&&typeof t[0]!="number",rh=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,oh=t=>e=>1-t(1-e),Ic=t=>1-Math.sin(Math.acos(t)),ih=oh(Ic),kv=rh(Ic),ah=Rs(.33,1.53,.69,.99),Mc=oh(ah),Tv=rh(Mc),Cv=t=>(t*=2)<1?.5*Mc(t):.5*(2-Math.pow(2,-10*(t-1))),sf={linear:Je,easeIn:xv,easeInOut:nh,easeOut:Sv,circIn:Ic,circInOut:kv,circOut:ih,backIn:Mc,backInOut:Tv,backOut:ah,anticipate:Cv},lf=t=>{if(Array.isArray(t)){On(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,r,i,a]=t;return Rs(e,r,i,a)}else if(typeof t=="string")return On(sf[t]!==void 0,`Invalid easing type '${t}'`),sf[t];return t},Dc=(t,e)=>r=>!!(Ts(r)&&Rm.test(r)&&r.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(r,e)),sh=(t,e,r)=>i=>{if(!Ts(i))return i;const[a,h,p,S]=i.match(Ul);return{[t]:parseFloat(a),[e]:parseFloat(h),[r]:parseFloat(p),alpha:S!==void 0?parseFloat(S):1}},Ev=t=>ho(0,255,t),Hu={...li,transform:t=>Math.round(Ev(t))},ii={test:Dc("rgb","red"),parse:sh("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:i=1})=>"rgba("+Hu.transform(t)+", "+Hu.transform(e)+", "+Hu.transform(r)+", "+gs(vs.transform(i))+")"};function Rv(t){let e="",r="",i="",a="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),i=t.substring(5,7),a=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),i=t.substring(3,4),a=t.substring(4,5),e+=e,r+=r,i+=i,a+=a),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(i,16),alpha:a?parseInt(a,16)/255:1}}const ac={test:Dc("#"),parse:Rv,transform:ii.transform},ca={test:Dc("hsl","hue"),parse:sh("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:i=1})=>"hsla("+Math.round(t)+", "+Jn.transform(gs(e))+", "+Jn.transform(gs(r))+", "+gs(vs.transform(i))+")"},Mt={test:t=>ii.test(t)||ac.test(t)||ca.test(t),parse:t=>ii.test(t)?ii.parse(t):ca.test(t)?ca.parse(t):ac.parse(t),transform:t=>Ts(t)?t:t.hasOwnProperty("red")?ii.transform(t):ca.transform(t)},Qe=(t,e,r)=>-r*t+r*e+t;function Gu(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function Pv({hue:t,saturation:e,lightness:r,alpha:i}){t/=360,e/=100,r/=100;let a=0,h=0,p=0;if(!e)a=h=p=r;else{const S=r<.5?r*(1+e):r+e-r*e,m=2*r-S;a=Gu(m,S,t+1/3),h=Gu(m,S,t),p=Gu(m,S,t-1/3)}return{red:Math.round(a*255),green:Math.round(h*255),blue:Math.round(p*255),alpha:i}}const $u=(t,e,r)=>{const i=t*t;return Math.sqrt(Math.max(0,r*(e*e-i)+i))},Av=[ac,ii,ca],Iv=t=>Av.find(e=>e.test(t));function uf(t){const e=Iv(t);On(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let r=e.parse(t);return e===ca&&(r=Pv(r)),r}const lh=(t,e)=>{const r=uf(t),i=uf(e),a={...r};return h=>(a.red=$u(r.red,i.red,h),a.green=$u(r.green,i.green,h),a.blue=$u(r.blue,i.blue,h),a.alpha=Qe(r.alpha,i.alpha,h),ii.transform(a))};function Mv(t){var e,r;return isNaN(t)&&Ts(t)&&(((e=t.match(Ul))===null||e===void 0?void 0:e.length)||0)+(((r=t.match(Ld))===null||r===void 0?void 0:r.length)||0)>0}const uh={regex:Cm,countKey:"Vars",token:"${v}",parse:Je},ch={regex:Ld,countKey:"Colors",token:"${c}",parse:Mt.parse},fh={regex:Ul,countKey:"Numbers",token:"${n}",parse:li.parse};function Yu(t,{regex:e,countKey:r,token:i,parse:a}){const h=t.tokenised.match(e);h&&(t["num"+r]=h.length,t.tokenised=t.tokenised.replace(e,i),t.values.push(...h.map(a)))}function Ol(t){const e=t.toString(),r={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&Yu(r,uh),Yu(r,ch),Yu(r,fh),r}function dh(t){return Ol(t).values}function hh(t){const{values:e,numColors:r,numVars:i,tokenised:a}=Ol(t),h=e.length;return p=>{let S=a;for(let m=0;m<h;m++)m<i?S=S.replace(uh.token,p[m]):m<i+r?S=S.replace(ch.token,Mt.transform(p[m])):S=S.replace(fh.token,gs(p[m]));return S}}const Dv=t=>typeof t=="number"?0:t;function Ov(t){const e=dh(t);return hh(t)(e.map(Dv))}const po={test:Mv,parse:dh,createTransformer:hh,getAnimatableNone:Ov},ph=(t,e)=>r=>`${r>0?e:t}`;function mh(t,e){return typeof t=="number"?r=>Qe(t,e,r):Mt.test(t)?lh(t,e):t.startsWith("var(")?ph(t,e):gh(t,e)}const vh=(t,e)=>{const r=[...t],i=r.length,a=t.map((h,p)=>mh(h,e[p]));return h=>{for(let p=0;p<i;p++)r[p]=a[p](h);return r}},Fv=(t,e)=>{const r={...t,...e},i={};for(const a in r)t[a]!==void 0&&e[a]!==void 0&&(i[a]=mh(t[a],e[a]));return a=>{for(const h in i)r[h]=i[h](a);return r}},gh=(t,e)=>{const r=po.createTransformer(e),i=Ol(t),a=Ol(e);return i.numVars===a.numVars&&i.numColors===a.numColors&&i.numNumbers>=a.numNumbers?co(vh(i.values,a.values),r):(Es(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),ph(t,e))},ws=(t,e,r)=>{const i=e-t;return i===0?1:(r-t)/i},cf=(t,e)=>r=>Qe(t,e,r);function Lv(t){return typeof t=="number"?cf:typeof t=="string"?Mt.test(t)?lh:gh:Array.isArray(t)?vh:typeof t=="object"?Fv:cf}function _v(t,e,r){const i=[],a=r||Lv(t[0]),h=t.length-1;for(let p=0;p<h;p++){let S=a(t[p],t[p+1]);if(e){const m=Array.isArray(e)?e[p]||Je:e;S=co(m,S)}i.push(S)}return i}function yh(t,e,{clamp:r=!0,ease:i,mixer:a}={}){const h=t.length;if(On(h===e.length,"Both input and output ranges must be the same length"),h===1)return()=>e[0];t[0]>t[h-1]&&(t=[...t].reverse(),e=[...e].reverse());const p=_v(e,i,a),S=p.length,m=b=>{let R=0;if(S>1)for(;R<t.length-2&&!(b<t[R+1]);R++);const w=ws(t[R],t[R+1],b);return p[R](w)};return r?b=>m(ho(t[0],t[h-1],b)):m}function jv(t,e){const r=t[t.length-1];for(let i=1;i<=e;i++){const a=ws(0,e,i);t.push(Qe(r,1,a))}}function Bv(t){const e=[0];return jv(e,t.length-1),e}function Vv(t,e){return t.map(r=>r*e)}function zv(t,e){return t.map(()=>e||nh).splice(0,t.length-1)}function Fl({duration:t=300,keyframes:e,times:r,ease:i="easeInOut"}){const a=wv(i)?i.map(lf):lf(i),h={done:!1,value:e[0]},p=Vv(r&&r.length===e.length?r:Bv(e),t),S=yh(p,e,{ease:Array.isArray(a)?a:zv(e,a)});return{calculatedDuration:t,next:m=>(h.value=S(m),h.done=m>=t,h)}}function bh(t,e){return e?t*(1e3/e):0}const Wv=5;function xh(t,e,r){const i=Math.max(e-Wv,0);return bh(r-t(i),e-i)}const Xu=.001,Uv=.01,ff=10,Nv=.05,Hv=1;function Gv({duration:t=800,bounce:e=.25,velocity:r=0,mass:i=1}){let a,h;Es(t<=fo(ff),"Spring duration must be 10 seconds or less");let p=1-e;p=ho(Nv,Hv,p),t=ho(Uv,ff,Ir(t)),p<1?(a=b=>{const R=b*p,w=R*t,D=R-r,_=sc(b,p),N=Math.exp(-w);return Xu-D/_*N},h=b=>{const w=b*p*t,D=w*r+r,_=Math.pow(p,2)*Math.pow(b,2)*t,N=Math.exp(-w),Y=sc(Math.pow(b,2),p);return(-a(b)+Xu>0?-1:1)*((D-_)*N)/Y}):(a=b=>{const R=Math.exp(-b*t),w=(b-r)*t+1;return-Xu+R*w},h=b=>{const R=Math.exp(-b*t),w=(r-b)*(t*t);return R*w});const S=5/t,m=Yv(a,h,S);if(t=fo(t),isNaN(m))return{stiffness:100,damping:10,duration:t};{const b=Math.pow(m,2)*i;return{stiffness:b,damping:p*2*Math.sqrt(i*b),duration:t}}}const $v=12;function Yv(t,e,r){let i=r;for(let a=1;a<$v;a++)i=i-t(i)/e(i);return i}function sc(t,e){return t*Math.sqrt(1-e*e)}const Xv=["duration","bounce"],Zv=["stiffness","damping","mass"];function df(t,e){return e.some(r=>t[r]!==void 0)}function Qv(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!df(t,Zv)&&df(t,Xv)){const r=Gv(t);e={...e,...r,mass:1},e.isResolvedFromDuration=!0}return e}function Sh({keyframes:t,restDelta:e,restSpeed:r,...i}){const a=t[0],h=t[t.length-1],p={done:!1,value:a},{stiffness:S,damping:m,mass:b,duration:R,velocity:w,isResolvedFromDuration:D}=Qv({...i,velocity:-Ir(i.velocity||0)}),_=w||0,N=m/(2*Math.sqrt(S*b)),Y=h-a,j=Ir(Math.sqrt(S/b)),O=Math.abs(Y)<5;r||(r=O?.01:2),e||(e=O?.005:.5);let X;if(N<1){const $=sc(j,N);X=J=>{const q=Math.exp(-N*j*J);return h-q*((_+N*j*Y)/$*Math.sin($*J)+Y*Math.cos($*J))}}else if(N===1)X=$=>h-Math.exp(-j*$)*(Y+(_+j*Y)*$);else{const $=j*Math.sqrt(N*N-1);X=J=>{const q=Math.exp(-N*j*J),K=Math.min($*J,300);return h-q*((_+N*j*Y)*Math.sinh(K)+$*Y*Math.cosh(K))/$}}return{calculatedDuration:D&&R||null,next:$=>{const J=X($);if(D)p.done=$>=R;else{let q=_;$!==0&&(N<1?q=xh(X,$,J):q=0);const K=Math.abs(q)<=r,te=Math.abs(h-J)<=e;p.done=K&&te}return p.value=p.done?h:J,p}}}function hf({keyframes:t,velocity:e=0,power:r=.8,timeConstant:i=325,bounceDamping:a=10,bounceStiffness:h=500,modifyTarget:p,min:S,max:m,restDelta:b=.5,restSpeed:R}){const w=t[0],D={done:!1,value:w},_=ie=>S!==void 0&&ie<S||m!==void 0&&ie>m,N=ie=>S===void 0?m:m===void 0||Math.abs(S-ie)<Math.abs(m-ie)?S:m;let Y=r*e;const j=w+Y,O=p===void 0?j:p(j);O!==j&&(Y=O-w);const X=ie=>-Y*Math.exp(-ie/i),$=ie=>O+X(ie),J=ie=>{const se=X(ie),Pe=$(ie);D.done=Math.abs(se)<=b,D.value=D.done?O:Pe};let q,K;const te=ie=>{_(D.value)&&(q=ie,K=Sh({keyframes:[D.value,N(D.value)],velocity:xh($,ie,D.value),damping:a,stiffness:h,restDelta:b,restSpeed:R}))};return te(0),{calculatedDuration:null,next:ie=>{let se=!1;return!K&&q===void 0&&(se=!0,J(ie),te(ie)),q!==void 0&&ie>q?K.next(ie-q):(!se&&J(ie),D)}}}const Jv=t=>{const e=({timestamp:r})=>t(r);return{start:()=>Ne.update(e,!0),stop:()=>Mr(e),now:()=>xt.isProcessing?xt.timestamp:performance.now()}},pf=2e4;function mf(t){let e=0;const r=50;let i=t.next(e);for(;!i.done&&e<pf;)e+=r,i=t.next(e);return e>=pf?1/0:e}const Kv={decay:hf,inertia:hf,tween:Fl,keyframes:Fl,spring:Sh};function Ll({autoplay:t=!0,delay:e=0,driver:r=Jv,keyframes:i,type:a="keyframes",repeat:h=0,repeatDelay:p=0,repeatType:S="loop",onPlay:m,onStop:b,onComplete:R,onUpdate:w,...D}){let _=1,N=!1,Y,j;const O=()=>{j=new Promise(he=>{Y=he})};O();let X;const $=Kv[a]||Fl;let J;$!==Fl&&typeof i[0]!="number"&&(process.env.NODE_ENV!=="production"&&On(i.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${i}`),J=yh([0,100],i,{clamp:!1}),i=[0,100]);const q=$({...D,keyframes:i});let K;S==="mirror"&&(K=$({...D,keyframes:[...i].reverse(),velocity:-(D.velocity||0)}));let te="idle",ie=null,se=null,Pe=null;q.calculatedDuration===null&&h&&(q.calculatedDuration=mf(q));const{calculatedDuration:De}=q;let ye=1/0,Oe=1/0;De!==null&&(ye=De+p,Oe=ye*(h+1)-p);let Ce=0;const et=he=>{if(se===null)return;_>0&&(se=Math.min(se,he)),_<0&&(se=Math.min(he-Oe/_,se)),ie!==null?Ce=ie:Ce=Math.round(he-se)*_;const ke=Ce-e*(_>=0?1:-1),ht=_>=0?ke<0:ke>Oe;Ce=Math.max(ke,0),te==="finished"&&ie===null&&(Ce=Oe);let yt=Ce,Re=q;if(h){const Xe=Math.min(Ce,Oe)/ye;let Ke=Math.floor(Xe),Ae=Xe%1;!Ae&&Xe>=1&&(Ae=1),Ae===1&&Ke--,Ke=Math.min(Ke,h+1),!!(Ke%2)&&(S==="reverse"?(Ae=1-Ae,p&&(Ae-=p/ye)):S==="mirror"&&(Re=K)),yt=ho(0,1,Ae)*ye}const Se=ht?{done:!1,value:i[0]}:Re.next(yt);J&&(Se.value=J(Se.value));let{done:lt}=Se;!ht&&De!==null&&(lt=_>=0?Ce>=Oe:Ce<=0);const ut=ie===null&&(te==="finished"||te==="running"&<);return w&&w(Se.value),ut&&Ee(),Se},Fe=()=>{X&&X.stop(),X=void 0},tt=()=>{te="idle",Fe(),Y(),O(),se=Pe=null},Ee=()=>{te="finished",R&&R(),Fe(),Y()},je=()=>{if(N)return;X||(X=r(et));const he=X.now();m&&m(),ie!==null?se=he-ie:(!se||te==="finished")&&(se=he),te==="finished"&&O(),Pe=se,ie=null,te="running",X.start()};t&&je();const dt={then(he,ke){return j.then(he,ke)},get time(){return Ir(Ce)},set time(he){he=fo(he),Ce=he,ie!==null||!X||_===0?ie=he:se=X.now()-he/_},get duration(){const he=q.calculatedDuration===null?mf(q):q.calculatedDuration;return Ir(he)},get speed(){return _},set speed(he){he===_||!X||(_=he,dt.time=Ir(Ce))},get state(){return te},play:je,pause:()=>{te="paused",ie=Ce},stop:()=>{N=!0,te!=="idle"&&(te="idle",b&&b(),tt())},cancel:()=>{Pe!==null&&et(Pe),tt()},complete:()=>{te="finished"},sample:he=>(se=0,et(he))};return dt}function qv(t){let e;return()=>(e===void 0&&(e=t()),e)}const eg=qv(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),tg=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Sl=10,ng=2e4,rg=(t,e)=>e.type==="spring"||t==="backgroundColor"||!Kd(e.ease);function og(t,e,{onUpdate:r,onComplete:i,...a}){if(!(eg()&&tg.has(e)&&!a.repeatDelay&&a.repeatType!=="mirror"&&a.damping!==0&&a.type!=="inertia"))return!1;let p=!1,S,m,b=!1;const R=()=>{m=new Promise($=>{S=$})};R();let{keyframes:w,duration:D=300,ease:_,times:N}=a;if(rg(e,a)){const $=Ll({...a,repeat:0,delay:0});let J={done:!1,value:w[0]};const q=[];let K=0;for(;!J.done&&K<ng;)J=$.sample(K),q.push(J.value),K+=Sl;N=void 0,w=q,D=K-Sl,_="linear"}const Y=mv(t.owner.current,e,w,{...a,duration:D,ease:_,times:N}),j=()=>{b=!1,Y.cancel()},O=()=>{b=!0,Ne.update(j),S(),R()};return Y.onfinish=()=>{b||(t.set(vv(w,a)),i&&i(),O())},{then($,J){return m.then($,J)},attachTimeline($){return Y.timeline=$,Y.onfinish=null,Je},get time(){return Ir(Y.currentTime||0)},set time($){Y.currentTime=fo($)},get speed(){return Y.playbackRate},set speed($){Y.playbackRate=$},get duration(){return Ir(D)},play:()=>{p||(Y.play(),Mr(j))},pause:()=>Y.pause(),stop:()=>{if(p=!0,Y.playState==="idle")return;const{currentTime:$}=Y;if($){const J=Ll({...a,autoplay:!1});t.setWithVelocity(J.sample($-Sl).value,J.sample($).value,Sl)}O()},complete:()=>{b||Y.finish()},cancel:O}}function ig({keyframes:t,delay:e,onUpdate:r,onComplete:i}){const a=()=>(r&&r(t[t.length-1]),i&&i(),{time:0,speed:1,duration:0,play:Je,pause:Je,stop:Je,then:h=>(h(),Promise.resolve()),cancel:Je,complete:Je});return e?Ll({keyframes:[0,1],duration:0,delay:e,onComplete:a}):a()}const ag={type:"spring",stiffness:500,damping:25,restSpeed:10},sg=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),lg={type:"keyframes",duration:.8},ug={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},cg=(t,{keyframes:e})=>e.length>2?lg:si.has(t)?t.startsWith("scale")?sg(e[1]):ag:ug,lc=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(po.test(e)||e==="0")&&!e.startsWith("url(")),fg=new Set(["brightness","contrast","saturate","opacity"]);function dg(t){const[e,r]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=r.match(Ul)||[];if(!i)return t;const a=r.replace(i,"");let h=fg.has(e)?1:0;return i!==r&&(h*=100),e+"("+h+a+")"}const hg=/([a-z-]*)\(.*?\)/g,uc={...po,getAnimatableNone:t=>{const e=t.match(hg);return e?e.map(dg).join(" "):t}},pg={..._d,color:Mt,backgroundColor:Mt,outlineColor:Mt,fill:Mt,stroke:Mt,borderColor:Mt,borderTopColor:Mt,borderRightColor:Mt,borderBottomColor:Mt,borderLeftColor:Mt,filter:uc,WebkitFilter:uc},Oc=t=>pg[t];function wh(t,e){let r=Oc(t);return r!==uc&&(r=po),r.getAnimatableNone?r.getAnimatableNone(e):void 0}const kh=t=>/^0[^.\s]+$/.test(t);function mg(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||kh(t)}function vg(t,e,r,i){const a=lc(e,r);let h;Array.isArray(r)?h=[...r]:h=[null,r];const p=i.from!==void 0?i.from:t.get();let S;const m=[];for(let b=0;b<h.length;b++)h[b]===null&&(h[b]=b===0?p:h[b-1]),mg(h[b])&&m.push(b),typeof h[b]=="string"&&h[b]!=="none"&&h[b]!=="0"&&(S=h[b]);if(a&&m.length&&S)for(let b=0;b<m.length;b++){const R=m[b];h[R]=wh(e,S)}return h}function gg({when:t,delay:e,delayChildren:r,staggerChildren:i,staggerDirection:a,repeat:h,repeatType:p,repeatDelay:S,from:m,elapsed:b,...R}){return!!Object.keys(R).length}function Fc(t,e){return t[e]||t.default||t}const yg={skipAnimations:!1},Lc=(t,e,r,i={})=>a=>{const h=Fc(i,t)||{},p=h.delay||i.delay||0;let{elapsed:S=0}=i;S=S-fo(p);const m=vg(e,t,r,h),b=m[0],R=m[m.length-1],w=lc(t,b),D=lc(t,R);Es(w===D,`You are trying to animate ${t} from "${b}" to "${R}". ${b} is not an animatable value - to enable this animation set ${b} to a value animatable to ${R} via the \`style\` property.`);let _={keyframes:m,velocity:e.getVelocity(),ease:"easeOut",...h,delay:-S,onUpdate:N=>{e.set(N),h.onUpdate&&h.onUpdate(N)},onComplete:()=>{a(),h.onComplete&&h.onComplete()}};if(gg(h)||(_={..._,...cg(t,_)}),_.duration&&(_.duration=fo(_.duration)),_.repeatDelay&&(_.repeatDelay=fo(_.repeatDelay)),!w||!D||pv.current||h.type===!1||yg.skipAnimations)return ig(_);if(!i.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const N=og(e,t,_);if(N)return N}return Ll(_)};function _l(t){return!!($t(t)&&t.add)}const Th=t=>/^\-?\d*\.?\d+$/.test(t);function _c(t,e){t.indexOf(e)===-1&&t.push(e)}function jc(t,e){const r=t.indexOf(e);r>-1&&t.splice(r,1)}class Bc{constructor(){this.subscriptions=[]}add(e){return _c(this.subscriptions,e),()=>jc(this.subscriptions,e)}notify(e,r,i){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](e,r,i);else for(let h=0;h<a;h++){const p=this.subscriptions[h];p&&p(e,r,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const vf=new Set;function Vc(t,e,r){t||vf.has(e)||(console.warn(e),r&&console.warn(r),vf.add(e))}const bg=t=>!isNaN(parseFloat(t));class xg{constructor(e,r={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(i,a=!0)=>{this.prev=this.current,this.current=i;const{delta:h,timestamp:p}=xt;this.lastUpdated!==p&&(this.timeDelta=h,this.lastUpdated=p,Ne.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),a&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Ne.postRender(this.velocityCheck),this.velocityCheck=({timestamp:i})=>{i!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=bg(this.current),this.owner=r.owner}onChange(e){return process.env.NODE_ENV!=="production"&&Vc(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,r){this.events[e]||(this.events[e]=new Bc);const i=this.events[e].add(r);return e==="change"?()=>{i(),Ne.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,r){this.passiveEffect=e,this.stopPassiveEffect=r}set(e,r=!0){!r||!this.passiveEffect?this.updateAndNotify(e,r):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,r,i){this.set(r),this.prev=e,this.timeDelta=i}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?bh(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=e(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ha(t,e){return new xg(t,e)}const Ch=t=>e=>e.test(t),Sg={test:t=>t==="auto",parse:t=>t},Eh=[li,pe,Jn,so,Am,Pm,Sg],hs=t=>Eh.find(Ch(t)),wg=[...Eh,Mt,po],kg=t=>wg.find(Ch(t));function Tg(t,e,r){t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,ha(r))}function Cg(t,e){const r=Hl(t,e);let{transitionEnd:i={},transition:a={},...h}=r?t.makeTargetAnimatable(r,!1):{};h={...h,...i};for(const p in h){const S=Hm(h[p]);Tg(t,p,S)}}function Eg(t,e,r){var i,a;const h=Object.keys(e).filter(S=>!t.hasValue(S)),p=h.length;if(p)for(let S=0;S<p;S++){const m=h[S],b=e[m];let R=null;Array.isArray(b)&&(R=b[0]),R===null&&(R=(a=(i=r[m])!==null&&i!==void 0?i:t.readValue(m))!==null&&a!==void 0?a:e[m]),R!=null&&(typeof R=="string"&&(Th(R)||kh(R))?R=parseFloat(R):!kg(R)&&po.test(b)&&(R=wh(m,b)),t.addValue(m,ha(R,{owner:t})),r[m]===void 0&&(r[m]=R),R!==null&&t.setBaseTarget(m,R))}}function Rg(t,e){return e?(e[t]||e.default||e).from:void 0}function Pg(t,e,r){const i={};for(const a in t){const h=Rg(a,e);if(h!==void 0)i[a]=h;else{const p=r.getValue(a);p&&(i[a]=p.get())}}return i}function Ag({protectedKeys:t,needsAnimating:e},r){const i=t.hasOwnProperty(r)&&e[r]!==!0;return e[r]=!1,i}function Ig(t,e){const r=t.get();if(Array.isArray(e)){for(let i=0;i<e.length;i++)if(e[i]!==r)return!0}else return r!==e}function Rh(t,e,{delay:r=0,transitionOverride:i,type:a}={}){let{transition:h=t.getDefaultTransition(),transitionEnd:p,...S}=t.makeTargetAnimatable(e);const m=t.getValue("willChange");i&&(h=i);const b=[],R=a&&t.animationState&&t.animationState.getState()[a];for(const w in S){const D=t.getValue(w),_=S[w];if(!D||_===void 0||R&&Ag(R,w))continue;const N={delay:r,elapsed:0,...Fc(h||{},w)};if(window.HandoffAppearAnimations){const O=t.getProps()[Pd];if(O){const X=window.HandoffAppearAnimations(O,w,D,Ne);X!==null&&(N.elapsed=X,N.isHandoff=!0)}}let Y=!N.isHandoff&&!Ig(D,_);if(N.type==="spring"&&(D.getVelocity()||N.velocity)&&(Y=!1),D.animation&&(Y=!1),Y)continue;D.start(Lc(w,D,_,t.shouldReduceMotion&&si.has(w)?{type:!1}:N));const j=D.animation;_l(m)&&(m.add(w),j.then(()=>m.remove(w))),b.push(j)}return p&&Promise.all(b).then(()=>{p&&Cg(t,p)}),b}function cc(t,e,r={}){const i=Hl(t,e,r.custom);let{transition:a=t.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(a=r.transitionOverride);const h=i?()=>Promise.all(Rh(t,i,r)):()=>Promise.resolve(),p=t.variantChildren&&t.variantChildren.size?(m=0)=>{const{delayChildren:b=0,staggerChildren:R,staggerDirection:w}=a;return Mg(t,e,b+m,R,w,r)}:()=>Promise.resolve(),{when:S}=a;if(S){const[m,b]=S==="beforeChildren"?[h,p]:[p,h];return m().then(()=>b())}else return Promise.all([h(),p(r.delay)])}function Mg(t,e,r=0,i=0,a=1,h){const p=[],S=(t.variantChildren.size-1)*i,m=a===1?(b=0)=>b*i:(b=0)=>S-b*i;return Array.from(t.variantChildren).sort(Dg).forEach((b,R)=>{b.notify("AnimationStart",e),p.push(cc(b,e,{...h,delay:r+m(R)}).then(()=>b.notify("AnimationComplete",e)))}),Promise.all(p)}function Dg(t,e){return t.sortNodePosition(e)}function Og(t,e,r={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const a=e.map(h=>cc(t,h,r));i=Promise.all(a)}else if(typeof e=="string")i=cc(t,e,r);else{const a=typeof e=="function"?Hl(t,e,r.custom):e;i=Promise.all(Rh(t,a,r))}return i.then(()=>t.notify("AnimationComplete",e))}const Fg=[...Sc].reverse(),Lg=Sc.length;function _g(t){return e=>Promise.all(e.map(({animation:r,options:i})=>Og(t,r,i)))}function jg(t){let e=_g(t);const r=Vg();let i=!0;const a=(m,b)=>{const R=Hl(t,b);if(R){const{transition:w,transitionEnd:D,..._}=R;m={...m,..._,...D}}return m};function h(m){e=m(t)}function p(m,b){const R=t.getProps(),w=t.getVariantContext(!0)||{},D=[],_=new Set;let N={},Y=1/0;for(let O=0;O<Lg;O++){const X=Fg[O],$=r[X],J=R[X]!==void 0?R[X]:w[X],q=xs(J),K=X===b?$.isActive:null;K===!1&&(Y=O);let te=J===w[X]&&J!==R[X]&&q;if(te&&i&&t.manuallyAnimateOnMount&&(te=!1),$.protectedKeys={...N},!$.isActive&&K===null||!J&&!$.prevProp||zl(J)||typeof J=="boolean")continue;let se=Bg($.prevProp,J)||X===b&&$.isActive&&!te&&q||O>Y&&q,Pe=!1;const De=Array.isArray(J)?J:[J];let ye=De.reduce(a,{});K===!1&&(ye={});const{prevResolvedValues:Oe={}}=$,Ce={...Oe,...ye},et=Fe=>{se=!0,_.has(Fe)&&(Pe=!0,_.delete(Fe)),$.needsAnimating[Fe]=!0};for(const Fe in Ce){const tt=ye[Fe],Ee=Oe[Fe];if(N.hasOwnProperty(Fe))continue;let je=!1;Dl(tt)&&Dl(Ee)?je=!Qd(tt,Ee):je=tt!==Ee,je?tt!==void 0?et(Fe):_.add(Fe):tt!==void 0&&_.has(Fe)?et(Fe):$.protectedKeys[Fe]=!0}$.prevProp=J,$.prevResolvedValues=ye,$.isActive&&(N={...N,...ye}),i&&t.blockInitialAnimation&&(se=!1),se&&(!te||Pe)&&D.push(...De.map(Fe=>({animation:Fe,options:{type:X,...m}})))}if(_.size){const O={};_.forEach(X=>{const $=t.getBaseTarget(X);$!==void 0&&(O[X]=$)}),D.push({animation:O})}let j=!!D.length;return i&&(R.initial===!1||R.initial===R.animate)&&!t.manuallyAnimateOnMount&&(j=!1),i=!1,j?e(D):Promise.resolve()}function S(m,b,R){var w;if(r[m].isActive===b)return Promise.resolve();(w=t.variantChildren)===null||w===void 0||w.forEach(_=>{var N;return(N=_.animationState)===null||N===void 0?void 0:N.setActive(m,b)}),r[m].isActive=b;const D=p(R,m);for(const _ in r)r[_].protectedKeys={};return D}return{animateChanges:p,setActive:S,setAnimateFunction:h,getState:()=>r}}function Bg(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Qd(e,t):!1}function ni(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Vg(){return{animate:ni(!0),whileInView:ni(),whileHover:ni(),whileTap:ni(),whileDrag:ni(),whileFocus:ni(),exit:ni()}}class zg extends mo{constructor(e){super(e),e.animationState||(e.animationState=jg(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),zl(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:r}=this.node.prevProps||{};e!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let Wg=0;class Ug extends mo{constructor(){super(...arguments),this.id=Wg++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:r,custom:i}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===a)return;const h=this.node.animationState.setActive("exit",!e,{custom:i??this.node.getProps().custom});r&&!e&&h.then(()=>r(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const Ng={animation:{Feature:zg},exit:{Feature:Ug}},gf=(t,e)=>Math.abs(t-e);function Hg(t,e){const r=gf(t.x,e.x),i=gf(t.y,e.y);return Math.sqrt(r**2+i**2)}class Ph{constructor(e,r,{transformPagePoint:i,contextWindow:a,dragSnapToOrigin:h=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=Qu(this.lastMoveEventInfo,this.history),D=this.startEvent!==null,_=Hg(w.offset,{x:0,y:0})>=3;if(!D&&!_)return;const{point:N}=w,{timestamp:Y}=xt;this.history.push({...N,timestamp:Y});const{onStart:j,onMove:O}=this.handlers;D||(j&&j(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),O&&O(this.lastMoveEvent,w)},this.handlePointerMove=(w,D)=>{this.lastMoveEvent=w,this.lastMoveEventInfo=Zu(D,this.transformPagePoint),Ne.update(this.updatePoint,!0)},this.handlePointerUp=(w,D)=>{this.end();const{onEnd:_,onSessionEnd:N,resumeAnimation:Y}=this.handlers;if(this.dragSnapToOrigin&&Y&&Y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const j=Qu(w.type==="pointercancel"?this.lastMoveEventInfo:Zu(D,this.transformPagePoint),this.history);this.startEvent&&_&&_(w,j),N&&N(w,j)},!Gd(e))return;this.dragSnapToOrigin=h,this.handlers=r,this.transformPagePoint=i,this.contextWindow=a||window;const p=Nl(e),S=Zu(p,this.transformPagePoint),{point:m}=S,{timestamp:b}=xt;this.history=[{...m,timestamp:b}];const{onSessionStart:R}=r;R&&R(e,Qu(S,this.history)),this.removeListeners=co(Ar(this.contextWindow,"pointermove",this.handlePointerMove),Ar(this.contextWindow,"pointerup",this.handlePointerUp),Ar(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Mr(this.updatePoint)}}function Zu(t,e){return e?{point:e(t.point)}:t}function yf(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Qu({point:t},e){return{point:t,delta:yf(t,Ah(e)),offset:yf(t,Gg(e)),velocity:$g(e,.1)}}function Gg(t){return t[0]}function Ah(t){return t[t.length-1]}function $g(t,e){if(t.length<2)return{x:0,y:0};let r=t.length-1,i=null;const a=Ah(t);for(;r>=0&&(i=t[r],!(a.timestamp-i.timestamp>fo(e)));)r--;if(!i)return{x:0,y:0};const h=Ir(a.timestamp-i.timestamp);if(h===0)return{x:0,y:0};const p={x:(a.x-i.x)/h,y:(a.y-i.y)/h};return p.x===1/0&&(p.x=0),p.y===1/0&&(p.y=0),p}function tn(t){return t.max-t.min}function fc(t,e=0,r=.01){return Math.abs(t-e)<=r}function bf(t,e,r,i=.5){t.origin=i,t.originPoint=Qe(e.min,e.max,t.origin),t.scale=tn(r)/tn(e),(fc(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Qe(r.min,r.max,t.origin)-t.originPoint,(fc(t.translate)||isNaN(t.translate))&&(t.translate=0)}function ys(t,e,r,i){bf(t.x,e.x,r.x,i?i.originX:void 0),bf(t.y,e.y,r.y,i?i.originY:void 0)}function xf(t,e,r){t.min=r.min+e.min,t.max=t.min+tn(e)}function Yg(t,e,r){xf(t.x,e.x,r.x),xf(t.y,e.y,r.y)}function Sf(t,e,r){t.min=e.min-r.min,t.max=t.min+tn(e)}function bs(t,e,r){Sf(t.x,e.x,r.x),Sf(t.y,e.y,r.y)}function Xg(t,{min:e,max:r},i){return e!==void 0&&t<e?t=i?Qe(e,t,i.min):Math.max(t,e):r!==void 0&&t>r&&(t=i?Qe(r,t,i.max):Math.min(t,r)),t}function wf(t,e,r){return{min:e!==void 0?t.min+e:void 0,max:r!==void 0?t.max+r-(t.max-t.min):void 0}}function Zg(t,{top:e,left:r,bottom:i,right:a}){return{x:wf(t.x,r,a),y:wf(t.y,e,i)}}function kf(t,e){let r=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([r,i]=[i,r]),{min:r,max:i}}function Qg(t,e){return{x:kf(t.x,e.x),y:kf(t.y,e.y)}}function Jg(t,e){let r=.5;const i=tn(t),a=tn(e);return a>i?r=ws(e.min,e.max-i,t.min):i>a&&(r=ws(t.min,t.max-a,e.min)),ho(0,1,r)}function Kg(t,e){const r={};return e.min!==void 0&&(r.min=e.min-t.min),e.max!==void 0&&(r.max=e.max-t.min),r}const dc=.35;function qg(t=dc){return t===!1?t=0:t===!0&&(t=dc),{x:Tf(t,"left","right"),y:Tf(t,"top","bottom")}}function Tf(t,e,r){return{min:Cf(t,e),max:Cf(t,r)}}function Cf(t,e){return typeof t=="number"?t:t[e]||0}const Ef=()=>({translate:0,scale:1,origin:0,originPoint:0}),fa=()=>({x:Ef(),y:Ef()}),Rf=()=>({min:0,max:0}),rt=()=>({x:Rf(),y:Rf()});function xn(t){return[t("x"),t("y")]}function Ih({top:t,left:e,right:r,bottom:i}){return{x:{min:e,max:r},y:{min:t,max:i}}}function ey({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function ty(t,e){if(!e)return t;const r=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:i.y,right:i.x}}function Ju(t){return t===void 0||t===1}function hc({scale:t,scaleX:e,scaleY:r}){return!Ju(t)||!Ju(e)||!Ju(r)}function ri(t){return hc(t)||Mh(t)||t.z||t.rotate||t.rotateX||t.rotateY}function Mh(t){return Pf(t.x)||Pf(t.y)}function Pf(t){return t&&t!=="0%"}function jl(t,e,r){const i=t-r,a=e*i;return r+a}function Af(t,e,r,i,a){return a!==void 0&&(t=jl(t,a,i)),jl(t,r,i)+e}function pc(t,e=0,r=1,i,a){t.min=Af(t.min,e,r,i,a),t.max=Af(t.max,e,r,i,a)}function Dh(t,{x:e,y:r}){pc(t.x,e.translate,e.scale,e.originPoint),pc(t.y,r.translate,r.scale,r.originPoint)}function ny(t,e,r,i=!1){const a=r.length;if(!a)return;e.x=e.y=1;let h,p;for(let S=0;S<a;S++){h=r[S],p=h.projectionDelta;const m=h.instance;m&&m.style&&m.style.display==="contents"||(i&&h.options.layoutScroll&&h.scroll&&h!==h.root&&da(t,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),p&&(e.x*=p.x.scale,e.y*=p.y.scale,Dh(t,p)),i&&ri(h.latestValues)&&da(t,h.latestValues))}e.x=If(e.x),e.y=If(e.y)}function If(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function lo(t,e){t.min=t.min+e,t.max=t.max+e}function Mf(t,e,[r,i,a]){const h=e[a]!==void 0?e[a]:.5,p=Qe(t.min,t.max,h);pc(t,e[r],e[i],p,e.scale)}const ry=["x","scaleX","originX"],oy=["y","scaleY","originY"];function da(t,e){Mf(t.x,e,ry),Mf(t.y,e,oy)}function Oh(t,e){return Ih(ty(t.getBoundingClientRect(),e))}function iy(t,e,r){const i=Oh(t,r),{scroll:a}=e;return a&&(lo(i.x,a.offset.x),lo(i.y,a.offset.y)),i}const Fh=({current:t})=>t?t.ownerDocument.defaultView:null,ay=new WeakMap;class sy{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=rt(),this.visualElement=e}start(e,{snapToCursor:r=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=R=>{const{dragSnapToOrigin:w}=this.getProps();w?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(Nl(R,"page").point)},h=(R,w)=>{const{drag:D,dragPropagation:_,onDragStart:N}=this.getProps();if(D&&!_&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Yd(D),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),xn(j=>{let O=this.getAxisMotionValue(j).get()||0;if(Jn.test(O)){const{projection:X}=this.visualElement;if(X&&X.layout){const $=X.layout.layoutBox[j];$&&(O=tn($)*(parseFloat(O)/100))}}this.originPoint[j]=O}),N&&Ne.update(()=>N(R,w),!1,!0);const{animationState:Y}=this.visualElement;Y&&Y.setActive("whileDrag",!0)},p=(R,w)=>{const{dragPropagation:D,dragDirectionLock:_,onDirectionLock:N,onDrag:Y}=this.getProps();if(!D&&!this.openGlobalLock)return;const{offset:j}=w;if(_&&this.currentDirection===null){this.currentDirection=ly(j),this.currentDirection!==null&&N&&N(this.currentDirection);return}this.updateAxis("x",w.point,j),this.updateAxis("y",w.point,j),this.visualElement.render(),Y&&Y(R,w)},S=(R,w)=>this.stop(R,w),m=()=>xn(R=>{var w;return this.getAnimationState(R)==="paused"&&((w=this.getAxisMotionValue(R).animation)===null||w===void 0?void 0:w.play())}),{dragSnapToOrigin:b}=this.getProps();this.panSession=new Ph(e,{onSessionStart:a,onStart:h,onMove:p,onSessionEnd:S,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:b,contextWindow:Fh(this.visualElement)})}stop(e,r){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:a}=r;this.startAnimation(a);const{onDragEnd:h}=this.getProps();h&&Ne.update(()=>h(e,r))}cancel(){this.isDragging=!1;const{projection:e,animationState:r}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(e,r,i){const{drag:a}=this.getProps();if(!i||!wl(e,a,this.currentDirection))return;const h=this.getAxisMotionValue(e);let p=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(p=Xg(p,this.constraints[e],this.elastic[e])),h.set(p)}resolveConstraints(){var e;const{dragConstraints:r,dragElastic:i}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,h=this.constraints;r&&ua(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&a?this.constraints=Zg(a.layoutBox,r):this.constraints=!1,this.elastic=qg(i),h!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&xn(p=>{this.getAxisMotionValue(p)&&(this.constraints[p]=Kg(a.layoutBox[p],this.constraints[p]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:r}=this.getProps();if(!e||!ua(e))return!1;const i=e.current;On(i!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const h=iy(i,a.root,this.visualElement.getTransformPagePoint());let p=Qg(a.layout.layoutBox,h);if(r){const S=r(ey(p));this.hasMutatedConstraints=!!S,S&&(p=Ih(S))}return p}startAnimation(e){const{drag:r,dragMomentum:i,dragElastic:a,dragTransition:h,dragSnapToOrigin:p,onDragTransitionEnd:S}=this.getProps(),m=this.constraints||{},b=xn(R=>{if(!wl(R,r,this.currentDirection))return;let w=m&&m[R]||{};p&&(w={min:0,max:0});const D=a?200:1e6,_=a?40:1e7,N={type:"inertia",velocity:i?e[R]:0,bounceStiffness:D,bounceDamping:_,timeConstant:750,restDelta:1,restSpeed:10,...h,...w};return this.startAxisValueAnimation(R,N)});return Promise.all(b).then(S)}startAxisValueAnimation(e,r){const i=this.getAxisMotionValue(e);return i.start(Lc(e,i,0,r))}stopAnimation(){xn(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){xn(e=>{var r;return(r=this.getAxisMotionValue(e).animation)===null||r===void 0?void 0:r.pause()})}getAnimationState(e){var r;return(r=this.getAxisMotionValue(e).animation)===null||r===void 0?void 0:r.state}getAxisMotionValue(e){const r="_drag"+e.toUpperCase(),i=this.visualElement.getProps(),a=i[r];return a||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){xn(r=>{const{drag:i}=this.getProps();if(!wl(r,i,this.currentDirection))return;const{projection:a}=this.visualElement,h=this.getAxisMotionValue(r);if(a&&a.layout){const{min:p,max:S}=a.layout.layoutBox[r];h.set(e[r]-Qe(p,S,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:r}=this.getProps(),{projection:i}=this.visualElement;if(!ua(r)||!i||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};xn(p=>{const S=this.getAxisMotionValue(p);if(S){const m=S.get();a[p]=Jg({min:m,max:m},this.constraints[p])}});const{transformTemplate:h}=this.visualElement.getProps();this.visualElement.current.style.transform=h?h({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),xn(p=>{if(!wl(p,e,null))return;const S=this.getAxisMotionValue(p),{min:m,max:b}=this.constraints[p];S.set(Qe(m,b,a[p]))})}addListeners(){if(!this.visualElement.current)return;ay.set(this.visualElement,this);const e=this.visualElement.current,r=Ar(e,"pointerdown",m=>{const{drag:b,dragListener:R=!0}=this.getProps();b&&R&&this.start(m)}),i=()=>{const{dragConstraints:m}=this.getProps();ua(m)&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,h=a.addEventListener("measure",i);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),i();const p=Pr(window,"resize",()=>this.scalePositionWithinConstraints()),S=a.addEventListener("didUpdate",({delta:m,hasLayoutChanged:b})=>{this.isDragging&&b&&(xn(R=>{const w=this.getAxisMotionValue(R);w&&(this.originPoint[R]+=m[R].translate,w.set(w.get()+m[R].translate))}),this.visualElement.render())});return()=>{p(),r(),h(),S&&S()}}getProps(){const e=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:i=!1,dragPropagation:a=!1,dragConstraints:h=!1,dragElastic:p=dc,dragMomentum:S=!0}=e;return{...e,drag:r,dragDirectionLock:i,dragPropagation:a,dragConstraints:h,dragElastic:p,dragMomentum:S}}}function wl(t,e,r){return(e===!0||e===t)&&(r===null||r===t)}function ly(t,e=10){let r=null;return Math.abs(t.y)>e?r="y":Math.abs(t.x)>e&&(r="x"),r}class uy extends mo{constructor(e){super(e),this.removeGroupControls=Je,this.removeListeners=Je,this.controls=new sy(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Je}unmount(){this.removeGroupControls(),this.removeListeners()}}const Df=t=>(e,r)=>{t&&Ne.update(()=>t(e,r))};class cy extends mo{constructor(){super(...arguments),this.removePointerDownListener=Je}onPointerDown(e){this.session=new Ph(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Fh(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:r,onPan:i,onPanEnd:a}=this.node.getProps();return{onSessionStart:Df(e),onStart:Df(r),onMove:i,onEnd:(h,p)=>{delete this.session,a&&Ne.update(()=>a(h,p))}}}mount(){this.removePointerDownListener=Ar(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function fy(){const t=oe.useContext(bc);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:r,register:i}=t,a=oe.useId();return oe.useEffect(()=>i(a),[]),!e&&r?[!1,()=>r&&r(a)]:[!0]}const Rl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Of(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const ps={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(pe.test(t))t=parseFloat(t);else return t;const r=Of(t,e.target.x),i=Of(t,e.target.y);return`${r}% ${i}%`}},dy={correct:(t,{treeScale:e,projectionDelta:r})=>{const i=t,a=po.parse(t);if(a.length>5)return i;const h=po.createTransformer(t),p=typeof a[0]!="number"?1:0,S=r.x.scale*e.x,m=r.y.scale*e.y;a[0+p]/=S,a[1+p]/=m;const b=Qe(S,m,.5);return typeof a[2+p]=="number"&&(a[2+p]/=b),typeof a[3+p]=="number"&&(a[3+p]/=b),h(a)}};class hy extends oe.Component{componentDidMount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:i,layoutId:a}=this.props,{projection:h}=e;Sm(py),h&&(r.group&&r.group.add(h),i&&i.register&&a&&i.register(h),h.root.didUpdate(),h.addEventListener("animationComplete",()=>{this.safeToRemove()}),h.setOptions({...h.options,onExitComplete:()=>this.safeToRemove()})),Rl.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:r,visualElement:i,drag:a,isPresent:h}=this.props,p=i.projection;return p&&(p.isPresent=h,a||e.layoutDependency!==r||r===void 0?p.willUpdate():this.safeToRemove(),e.isPresent!==h&&(h?p.promote():p.relegate()||Ne.postRender(()=>{const S=p.getStack();(!S||!S.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:i}=this.props,{projection:a}=e;a&&(a.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(a),i&&i.deregister&&i.deregister(a))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Lh(t){const[e,r]=fy(),i=oe.useContext(Id);return oe.createElement(hy,{...t,layoutGroup:i,switchLayoutGroup:oe.useContext(Md),isPresent:e,safeToRemove:r})}const py={borderRadius:{...ps,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ps,borderTopRightRadius:ps,borderBottomLeftRadius:ps,borderBottomRightRadius:ps,boxShadow:dy},_h=["TopLeft","TopRight","BottomLeft","BottomRight"],my=_h.length,Ff=t=>typeof t=="string"?parseFloat(t):t,Lf=t=>typeof t=="number"||pe.test(t);function vy(t,e,r,i,a,h){a?(t.opacity=Qe(0,r.opacity!==void 0?r.opacity:1,gy(i)),t.opacityExit=Qe(e.opacity!==void 0?e.opacity:1,0,yy(i))):h&&(t.opacity=Qe(e.opacity!==void 0?e.opacity:1,r.opacity!==void 0?r.opacity:1,i));for(let p=0;p<my;p++){const S=`border${_h[p]}Radius`;let m=_f(e,S),b=_f(r,S);if(m===void 0&&b===void 0)continue;m||(m=0),b||(b=0),m===0||b===0||Lf(m)===Lf(b)?(t[S]=Math.max(Qe(Ff(m),Ff(b),i),0),(Jn.test(b)||Jn.test(m))&&(t[S]+="%")):t[S]=b}(e.rotate||r.rotate)&&(t.rotate=Qe(e.rotate||0,r.rotate||0,i))}function _f(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const gy=jh(0,.5,ih),yy=jh(.5,.95,Je);function jh(t,e,r){return i=>i<t?0:i>e?1:r(ws(t,e,i))}function jf(t,e){t.min=e.min,t.max=e.max}function bn(t,e){jf(t.x,e.x),jf(t.y,e.y)}function Bf(t,e,r,i,a){return t-=e,t=jl(t,1/r,i),a!==void 0&&(t=jl(t,1/a,i)),t}function by(t,e=0,r=1,i=.5,a,h=t,p=t){if(Jn.test(e)&&(e=parseFloat(e),e=Qe(p.min,p.max,e/100)-p.min),typeof e!="number")return;let S=Qe(h.min,h.max,i);t===h&&(S-=e),t.min=Bf(t.min,e,r,S,a),t.max=Bf(t.max,e,r,S,a)}function Vf(t,e,[r,i,a],h,p){by(t,e[r],e[i],e[a],e.scale,h,p)}const xy=["x","scaleX","originX"],Sy=["y","scaleY","originY"];function zf(t,e,r,i){Vf(t.x,e,xy,r?r.x:void 0,i?i.x:void 0),Vf(t.y,e,Sy,r?r.y:void 0,i?i.y:void 0)}function Wf(t){return t.translate===0&&t.scale===1}function Bh(t){return Wf(t.x)&&Wf(t.y)}function wy(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function Vh(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function Uf(t){return tn(t.x)/tn(t.y)}class ky{constructor(){this.members=[]}add(e){_c(this.members,e),e.scheduleRender()}remove(e){if(jc(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(e){const r=this.members.findIndex(a=>e===a);if(r===0)return!1;let i;for(let a=r;a>=0;a--){const h=this.members[a];if(h.isPresent!==!1){i=h;break}}return i?(this.promote(i),!0):!1}promote(e,r){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,r&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:a}=e.options;a===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:r,resumingFrom:i}=e;r.onExitComplete&&r.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Nf(t,e,r){let i="";const a=t.x.translate/e.x,h=t.y.translate/e.y;if((a||h)&&(i=`translate3d(${a}px, ${h}px, 0) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),r){const{rotate:m,rotateX:b,rotateY:R}=r;m&&(i+=`rotate(${m}deg) `),b&&(i+=`rotateX(${b}deg) `),R&&(i+=`rotateY(${R}deg) `)}const p=t.x.scale*e.x,S=t.y.scale*e.y;return(p!==1||S!==1)&&(i+=`scale(${p}, ${S})`),i||"none"}const Ty=(t,e)=>t.depth-e.depth;class Cy{constructor(){this.children=[],this.isDirty=!1}add(e){_c(this.children,e),this.isDirty=!0}remove(e){jc(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ty),this.isDirty=!1,this.children.forEach(e)}}function Ey(t,e){const r=performance.now(),i=({timestamp:a})=>{const h=a-r;h>=e&&(Mr(i),t(h-e))};return Ne.read(i,!0),()=>Mr(i)}function Ry(t){window.MotionDebug&&window.MotionDebug.record(t)}function Py(t){return t instanceof SVGElement&&t.tagName!=="svg"}function Ay(t,e,r){const i=$t(t)?t:ha(t);return i.start(Lc("",i,e,r)),i.animation}const Hf=["","X","Y","Z"],Iy={visibility:"hidden"},Gf=1e3;let My=0;const oi={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function zh({attachResizeListener:t,defaultParent:e,measureScroll:r,checkIsScrollRoot:i,resetTransform:a}){return class{constructor(p={},S=e==null?void 0:e()){this.id=My++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,oi.totalNodes=oi.resolvedTargetDeltas=oi.recalculatedProjection=0,this.nodes.forEach(Fy),this.nodes.forEach(Vy),this.nodes.forEach(zy),this.nodes.forEach(Ly),Ry(oi)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=p,this.root=S?S.root||S:this,this.path=S?[...S.path,S]:[],this.parent=S,this.depth=S?S.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new Cy)}addEventListener(p,S){return this.eventHandlers.has(p)||this.eventHandlers.set(p,new Bc),this.eventHandlers.get(p).add(S)}notifyListeners(p,...S){const m=this.eventHandlers.get(p);m&&m.notify(...S)}hasListeners(p){return this.eventHandlers.has(p)}mount(p,S=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Py(p),this.instance=p;const{layoutId:m,layout:b,visualElement:R}=this.options;if(R&&!R.current&&R.mount(p),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),S&&(b||m)&&(this.isLayoutDirty=!0),t){let w;const D=()=>this.root.updateBlockedByResize=!1;t(p,()=>{this.root.updateBlockedByResize=!0,w&&w(),w=Ey(D,250),Rl.hasAnimatedSinceResize&&(Rl.hasAnimatedSinceResize=!1,this.nodes.forEach(Yf))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&R&&(m||b)&&this.addEventListener("didUpdate",({delta:w,hasLayoutChanged:D,hasRelativeTargetChanged:_,layout:N})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const Y=this.options.transition||R.getDefaultTransition()||Gy,{onLayoutAnimationStart:j,onLayoutAnimationComplete:O}=R.getProps(),X=!this.targetLayout||!Vh(this.targetLayout,N)||_,$=!D&&_;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||$||D&&(X||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(w,$);const J={...Fc(Y,"layout"),onPlay:j,onComplete:O};(R.shouldReduceMotion||this.options.layoutRoot)&&(J.delay=0,J.type=!1),this.startAnimation(J)}else D||Yf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=N})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const p=this.getStack();p&&p.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Mr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Wy),this.animationId++)}getTransformTemplate(){const{visualElement:p}=this.options;return p&&p.getProps().transformTemplate}willUpdate(p=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let R=0;R<this.path.length;R++){const w=this.path[R];w.shouldResetTransform=!0,w.updateScroll("snapshot"),w.options.layoutRoot&&w.willUpdate(!1)}const{layoutId:S,layout:m}=this.options;if(S===void 0&&!m)return;const b=this.getTransformTemplate();this.prevTransformTemplateValue=b?b(this.latestValues,""):void 0,this.updateSnapshot(),p&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach($f);return}this.isUpdating||this.nodes.forEach(jy),this.isUpdating=!1,this.nodes.forEach(By),this.nodes.forEach(Dy),this.nodes.forEach(Oy),this.clearAllSnapshots();const S=performance.now();xt.delta=ho(0,1e3/60,S-xt.timestamp),xt.timestamp=S,xt.isProcessing=!0,Wu.update.process(xt),Wu.preRender.process(xt),Wu.render.process(xt),xt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(_y),this.sharedNodes.forEach(Uy)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ne.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ne.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let m=0;m<this.path.length;m++)this.path[m].updateScroll();const p=this.layout;this.layout=this.measure(!1),this.layoutCorrected=rt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:S}=this.options;S&&S.notify("LayoutMeasure",this.layout.layoutBox,p?p.layoutBox:void 0)}updateScroll(p="measure"){let S=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===p&&(S=!1),S&&(this.scroll={animationId:this.root.animationId,phase:p,isRoot:i(this.instance),offset:r(this.instance)})}resetTransform(){if(!a)return;const p=this.isLayoutDirty||this.shouldResetTransform,S=this.projectionDelta&&!Bh(this.projectionDelta),m=this.getTransformTemplate(),b=m?m(this.latestValues,""):void 0,R=b!==this.prevTransformTemplateValue;p&&(S||ri(this.latestValues)||R)&&(a(this.instance,b),this.shouldResetTransform=!1,this.scheduleRender())}measure(p=!0){const S=this.measurePageBox();let m=this.removeElementScroll(S);return p&&(m=this.removeTransform(m)),$y(m),{animationId:this.root.animationId,measuredBox:S,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:p}=this.options;if(!p)return rt();const S=p.measureViewportBox(),{scroll:m}=this.root;return m&&(lo(S.x,m.offset.x),lo(S.y,m.offset.y)),S}removeElementScroll(p){const S=rt();bn(S,p);for(let m=0;m<this.path.length;m++){const b=this.path[m],{scroll:R,options:w}=b;if(b!==this.root&&R&&w.layoutScroll){if(R.isRoot){bn(S,p);const{scroll:D}=this.root;D&&(lo(S.x,-D.offset.x),lo(S.y,-D.offset.y))}lo(S.x,R.offset.x),lo(S.y,R.offset.y)}}return S}applyTransform(p,S=!1){const m=rt();bn(m,p);for(let b=0;b<this.path.length;b++){const R=this.path[b];!S&&R.options.layoutScroll&&R.scroll&&R!==R.root&&da(m,{x:-R.scroll.offset.x,y:-R.scroll.offset.y}),ri(R.latestValues)&&da(m,R.latestValues)}return ri(this.latestValues)&&da(m,this.latestValues),m}removeTransform(p){const S=rt();bn(S,p);for(let m=0;m<this.path.length;m++){const b=this.path[m];if(!b.instance||!ri(b.latestValues))continue;hc(b.latestValues)&&b.updateSnapshot();const R=rt(),w=b.measurePageBox();bn(R,w),zf(S,b.latestValues,b.snapshot?b.snapshot.layoutBox:void 0,R)}return ri(this.latestValues)&&zf(S,this.latestValues),S}setTargetDelta(p){this.targetDelta=p,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(p){this.options={...this.options,...p,crossfade:p.crossfade!==void 0?p.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==xt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(p=!1){var S;const m=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=m.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=m.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=m.isSharedProjectionDirty);const b=!!this.resumingFrom||this!==m;if(!(p||b&&this.isSharedProjectionDirty||this.isProjectionDirty||!((S=this.parent)===null||S===void 0)&&S.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:w,layoutId:D}=this.options;if(!(!this.layout||!(w||D))){if(this.resolvedRelativeTargetAt=xt.timestamp,!this.targetDelta&&!this.relativeTarget){const _=this.getClosestProjectingParent();_&&_.layout&&this.animationProgress!==1?(this.relativeParent=_,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rt(),this.relativeTargetOrigin=rt(),bs(this.relativeTargetOrigin,this.layout.layoutBox,_.layout.layoutBox),bn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=rt(),this.targetWithTransforms=rt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Yg(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):bn(this.target,this.layout.layoutBox),Dh(this.target,this.targetDelta)):bn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const _=this.getClosestProjectingParent();_&&!!_.resumingFrom==!!this.resumingFrom&&!_.options.layoutScroll&&_.target&&this.animationProgress!==1?(this.relativeParent=_,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rt(),this.relativeTargetOrigin=rt(),bs(this.relativeTargetOrigin,this.target,_.target),bn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}oi.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||hc(this.parent.latestValues)||Mh(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var p;const S=this.getLead(),m=!!this.resumingFrom||this!==S;let b=!0;if((this.isProjectionDirty||!((p=this.parent)===null||p===void 0)&&p.isProjectionDirty)&&(b=!1),m&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(b=!1),this.resolvedRelativeTargetAt===xt.timestamp&&(b=!1),b)return;const{layout:R,layoutId:w}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(R||w))return;bn(this.layoutCorrected,this.layout.layoutBox);const D=this.treeScale.x,_=this.treeScale.y;ny(this.layoutCorrected,this.treeScale,this.path,m),S.layout&&!S.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(S.target=S.layout.layoutBox);const{target:N}=S;if(!N){this.projectionTransform&&(this.projectionDelta=fa(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=fa(),this.projectionDeltaWithTransform=fa());const Y=this.projectionTransform;ys(this.projectionDelta,this.layoutCorrected,N,this.latestValues),this.projectionTransform=Nf(this.projectionDelta,this.treeScale),(this.projectionTransform!==Y||this.treeScale.x!==D||this.treeScale.y!==_)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",N)),oi.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(p=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),p){const S=this.getStack();S&&S.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(p,S=!1){const m=this.snapshot,b=m?m.latestValues:{},R={...this.latestValues},w=fa();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!S;const D=rt(),_=m?m.source:void 0,N=this.layout?this.layout.source:void 0,Y=_!==N,j=this.getStack(),O=!j||j.members.length<=1,X=!!(Y&&!O&&this.options.crossfade===!0&&!this.path.some(Hy));this.animationProgress=0;let $;this.mixTargetDelta=J=>{const q=J/1e3;Xf(w.x,p.x,q),Xf(w.y,p.y,q),this.setTargetDelta(w),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(bs(D,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Ny(this.relativeTarget,this.relativeTargetOrigin,D,q),$&&wy(this.relativeTarget,$)&&(this.isProjectionDirty=!1),$||($=rt()),bn($,this.relativeTarget)),Y&&(this.animationValues=R,vy(R,b,this.latestValues,q,X,O)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=q},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(p){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Mr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ne.update(()=>{Rl.hasAnimatedSinceResize=!0,this.currentAnimation=Ay(0,Gf,{...p,onUpdate:S=>{this.mixTargetDelta(S),p.onUpdate&&p.onUpdate(S)},onComplete:()=>{p.onComplete&&p.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const p=this.getStack();p&&p.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Gf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const p=this.getLead();let{targetWithTransforms:S,target:m,layout:b,latestValues:R}=p;if(!(!S||!m||!b)){if(this!==p&&this.layout&&b&&Wh(this.options.animationType,this.layout.layoutBox,b.layoutBox)){m=this.target||rt();const w=tn(this.layout.layoutBox.x);m.x.min=p.target.x.min,m.x.max=m.x.min+w;const D=tn(this.layout.layoutBox.y);m.y.min=p.target.y.min,m.y.max=m.y.min+D}bn(S,m),da(S,R),ys(this.projectionDeltaWithTransform,this.layoutCorrected,S,R)}}registerSharedNode(p,S){this.sharedNodes.has(p)||this.sharedNodes.set(p,new ky),this.sharedNodes.get(p).add(S);const b=S.options.initialPromotionConfig;S.promote({transition:b?b.transition:void 0,preserveFollowOpacity:b&&b.shouldPreserveFollowOpacity?b.shouldPreserveFollowOpacity(S):void 0})}isLead(){const p=this.getStack();return p?p.lead===this:!0}getLead(){var p;const{layoutId:S}=this.options;return S?((p=this.getStack())===null||p===void 0?void 0:p.lead)||this:this}getPrevLead(){var p;const{layoutId:S}=this.options;return S?(p=this.getStack())===null||p===void 0?void 0:p.prevLead:void 0}getStack(){const{layoutId:p}=this.options;if(p)return this.root.sharedNodes.get(p)}promote({needsReset:p,transition:S,preserveFollowOpacity:m}={}){const b=this.getStack();b&&b.promote(this,m),p&&(this.projectionDelta=void 0,this.needsReset=!0),S&&this.setOptions({transition:S})}relegate(){const p=this.getStack();return p?p.relegate(this):!1}resetRotation(){const{visualElement:p}=this.options;if(!p)return;let S=!1;const{latestValues:m}=p;if((m.rotate||m.rotateX||m.rotateY||m.rotateZ)&&(S=!0),!S)return;const b={};for(let R=0;R<Hf.length;R++){const w="rotate"+Hf[R];m[w]&&(b[w]=m[w],p.setStaticValue(w,0))}p.render();for(const R in b)p.setStaticValue(R,b[R]);p.scheduleRender()}getProjectionStyles(p){var S,m;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Iy;const b={visibility:""},R=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,b.opacity="",b.pointerEvents=El(p==null?void 0:p.pointerEvents)||"",b.transform=R?R(this.latestValues,""):"none",b;const w=this.getLead();if(!this.projectionDelta||!this.layout||!w.target){const Y={};return this.options.layoutId&&(Y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,Y.pointerEvents=El(p==null?void 0:p.pointerEvents)||""),this.hasProjected&&!ri(this.latestValues)&&(Y.transform=R?R({},""):"none",this.hasProjected=!1),Y}const D=w.animationValues||w.latestValues;this.applyTransformsToTarget(),b.transform=Nf(this.projectionDeltaWithTransform,this.treeScale,D),R&&(b.transform=R(D,b.transform));const{x:_,y:N}=this.projectionDelta;b.transformOrigin=`${_.origin*100}% ${N.origin*100}% 0`,w.animationValues?b.opacity=w===this?(m=(S=D.opacity)!==null&&S!==void 0?S:this.latestValues.opacity)!==null&&m!==void 0?m:1:this.preserveOpacity?this.latestValues.opacity:D.opacityExit:b.opacity=w===this?D.opacity!==void 0?D.opacity:"":D.opacityExit!==void 0?D.opacityExit:0;for(const Y in Il){if(D[Y]===void 0)continue;const{correct:j,applyTo:O}=Il[Y],X=b.transform==="none"?D[Y]:j(D[Y],w);if(O){const $=O.length;for(let J=0;J<$;J++)b[O[J]]=X}else b[Y]=X}return this.options.layoutId&&(b.pointerEvents=w===this?El(p==null?void 0:p.pointerEvents)||"":"none"),b}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(p=>{var S;return(S=p.currentAnimation)===null||S===void 0?void 0:S.stop()}),this.root.nodes.forEach($f),this.root.sharedNodes.clear()}}}function Dy(t){t.updateLayout()}function Oy(t){var e;const r=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&r&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:a}=t.layout,{animationType:h}=t.options,p=r.source!==t.layout.source;h==="size"?xn(w=>{const D=p?r.measuredBox[w]:r.layoutBox[w],_=tn(D);D.min=i[w].min,D.max=D.min+_}):Wh(h,r.layoutBox,i)&&xn(w=>{const D=p?r.measuredBox[w]:r.layoutBox[w],_=tn(i[w]);D.max=D.min+_,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[w].max=t.relativeTarget[w].min+_)});const S=fa();ys(S,i,r.layoutBox);const m=fa();p?ys(m,t.applyTransform(a,!0),r.measuredBox):ys(m,i,r.layoutBox);const b=!Bh(S);let R=!1;if(!t.resumeFrom){const w=t.getClosestProjectingParent();if(w&&!w.resumeFrom){const{snapshot:D,layout:_}=w;if(D&&_){const N=rt();bs(N,r.layoutBox,D.layoutBox);const Y=rt();bs(Y,i,_.layoutBox),Vh(N,Y)||(R=!0),w.options.layoutRoot&&(t.relativeTarget=Y,t.relativeTargetOrigin=N,t.relativeParent=w)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:r,delta:m,layoutDelta:S,hasLayoutChanged:b,hasRelativeTargetChanged:R})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function Fy(t){oi.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Ly(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function _y(t){t.clearSnapshot()}function $f(t){t.clearMeasurements()}function jy(t){t.isLayoutDirty=!1}function By(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Yf(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Vy(t){t.resolveTargetDelta()}function zy(t){t.calcProjection()}function Wy(t){t.resetRotation()}function Uy(t){t.removeLeadSnapshot()}function Xf(t,e,r){t.translate=Qe(e.translate,0,r),t.scale=Qe(e.scale,1,r),t.origin=e.origin,t.originPoint=e.originPoint}function Zf(t,e,r,i){t.min=Qe(e.min,r.min,i),t.max=Qe(e.max,r.max,i)}function Ny(t,e,r,i){Zf(t.x,e.x,r.x,i),Zf(t.y,e.y,r.y,i)}function Hy(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Gy={duration:.45,ease:[.4,0,.1,1]},Qf=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),Jf=Qf("applewebkit/")&&!Qf("chrome/")?Math.round:Je;function Kf(t){t.min=Jf(t.min),t.max=Jf(t.max)}function $y(t){Kf(t.x),Kf(t.y)}function Wh(t,e,r){return t==="position"||t==="preserve-aspect"&&!fc(Uf(e),Uf(r),.2)}const Yy=zh({attachResizeListener:(t,e)=>Pr(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ku={current:void 0},Uh=zh({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Ku.current){const t=new Yy({});t.mount(window),t.setOptions({layoutScroll:!0}),Ku.current=t}return Ku.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Xy={pan:{Feature:cy},drag:{Feature:uy,ProjectionNode:Uh,MeasureLayout:Lh}},Zy=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Qy(t){const e=Zy.exec(t);if(!e)return[,];const[,r,i]=e;return[r,i]}const Jy=4;function mc(t,e,r=1){On(r<=Jy,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[i,a]=Qy(t);if(!i)return;const h=window.getComputedStyle(e).getPropertyValue(i);if(h){const p=h.trim();return Th(p)?parseFloat(p):p}else return oc(a)?mc(a,e,r+1):a}function Ky(t,{...e},r){const i=t.current;if(!(i instanceof Element))return{target:e,transitionEnd:r};r&&(r={...r}),t.values.forEach(a=>{const h=a.get();if(!oc(h))return;const p=mc(h,i);p&&a.set(p)});for(const a in e){const h=e[a];if(!oc(h))continue;const p=mc(h,i);p&&(e[a]=p,r||(r={}),r[a]===void 0&&(r[a]=h))}return{target:e,transitionEnd:r}}const qy=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Nh=t=>qy.has(t),eb=t=>Object.keys(t).some(Nh),kl=t=>t===li||t===pe,qf=(t,e)=>parseFloat(t.split(", ")[e]),ed=(t,e)=>(r,{transform:i})=>{if(i==="none"||!i)return 0;const a=i.match(/^matrix3d\((.+)\)$/);if(a)return qf(a[1],e);{const h=i.match(/^matrix\((.+)\)$/);return h?qf(h[1],t):0}},tb=new Set(["x","y","z"]),nb=ks.filter(t=>!tb.has(t));function rb(t){const e=[];return nb.forEach(r=>{const i=t.getValue(r);i!==void 0&&(e.push([r,i.get()]),i.set(r.startsWith("scale")?1:0))}),e.length&&t.render(),e}const pa={width:({x:t},{paddingLeft:e="0",paddingRight:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),height:({y:t},{paddingTop:e="0",paddingBottom:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:ed(4,13),y:ed(5,14)};pa.translateX=pa.x;pa.translateY=pa.y;const ob=(t,e,r)=>{const i=e.measureViewportBox(),a=e.current,h=getComputedStyle(a),{display:p}=h,S={};p==="none"&&e.setStaticValue("display",t.display||"block"),r.forEach(b=>{S[b]=pa[b](i,h)}),e.render();const m=e.measureViewportBox();return r.forEach(b=>{const R=e.getValue(b);R&&R.jump(S[b]),t[b]=pa[b](m,h)}),t},ib=(t,e,r={},i={})=>{e={...e},i={...i};const a=Object.keys(e).filter(Nh);let h=[],p=!1;const S=[];if(a.forEach(m=>{const b=t.getValue(m);if(!t.hasValue(m))return;let R=r[m],w=hs(R);const D=e[m];let _;if(Dl(D)){const N=D.length,Y=D[0]===null?1:0;R=D[Y],w=hs(R);for(let j=Y;j<N&&D[j]!==null;j++)_?On(hs(D[j])===_,"All keyframes must be of the same type"):(_=hs(D[j]),On(_===w||kl(w)&&kl(_),"Keyframes must be of the same dimension as the current value"))}else _=hs(D);if(w!==_)if(kl(w)&&kl(_)){const N=b.get();typeof N=="string"&&b.set(parseFloat(N)),typeof D=="string"?e[m]=parseFloat(D):Array.isArray(D)&&_===pe&&(e[m]=D.map(parseFloat))}else w!=null&&w.transform&&(_!=null&&_.transform)&&(R===0||D===0)?R===0?b.set(_.transform(R)):e[m]=w.transform(D):(p||(h=rb(t),p=!0),S.push(m),i[m]=i[m]!==void 0?i[m]:e[m],b.jump(D))}),S.length){const m=S.indexOf("height")>=0?window.pageYOffset:null,b=ob(e,t,S);return h.length&&h.forEach(([R,w])=>{t.getValue(R).set(w)}),t.render(),Vl&&m!==null&&window.scrollTo({top:m}),{target:b,transitionEnd:i}}else return{target:e,transitionEnd:i}};function ab(t,e,r,i){return eb(e)?ib(t,e,r,i):{target:e,transitionEnd:i}}const sb=(t,e,r,i)=>{const a=Ky(t,e,i);return e=a.target,i=a.transitionEnd,ab(t,e,r,i)},vc={current:null},Hh={current:!1};function lb(){if(Hh.current=!0,!!Vl)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>vc.current=t.matches;t.addListener(e),e()}else vc.current=!1}function ub(t,e,r){const{willChange:i}=e;for(const a in e){const h=e[a],p=r[a];if($t(h))t.addValue(a,h),_l(i)&&i.add(a),process.env.NODE_ENV==="development"&&Vc(h.version==="10.18.0",`Attempting to mix Framer Motion versions ${h.version} with 10.18.0 may not work as expected.`);else if($t(p))t.addValue(a,ha(h,{owner:t})),_l(i)&&i.remove(a);else if(p!==h)if(t.hasValue(a)){const S=t.getValue(a);!S.hasAnimated&&S.set(h)}else{const S=t.getStaticValue(a);t.addValue(a,ha(S!==void 0?S:h,{owner:t}))}}for(const a in r)e[a]===void 0&&t.removeValue(a);return e}const td=new WeakMap,Gh=Object.keys(Ss),cb=Gh.length,nd=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],fb=wc.length;class db{constructor({parent:e,props:r,presenceContext:i,reducedMotionConfig:a,visualState:h},p={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Ne.render(this.render,!1,!0);const{latestValues:S,renderState:m}=h;this.latestValues=S,this.baseTarget={...S},this.initialValues=r.initial?{...S}:{},this.renderState=m,this.parent=e,this.props=r,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=a,this.options=p,this.isControllingVariants=Wl(r),this.isVariantNode=Ad(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:b,...R}=this.scrapeMotionValuesFromProps(r,{});for(const w in R){const D=R[w];S[w]!==void 0&&$t(D)&&(D.set(S[w],!1),_l(b)&&b.add(w))}}scrapeMotionValuesFromProps(e,r){return{}}mount(e){this.current=e,td.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,i)=>this.bindToMotionValue(i,r)),Hh.current||lb(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:vc.current,process.env.NODE_ENV!=="production"&&Vc(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){td.delete(this.current),this.projection&&this.projection.unmount(),Mr(this.notifyUpdate),Mr(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,r){const i=si.has(e),a=r.on("change",p=>{this.latestValues[e]=p,this.props.onUpdate&&Ne.update(this.notifyUpdate,!1,!0),i&&this.projection&&(this.projection.isTransformDirty=!0)}),h=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{a(),h()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...r},i,a,h){let p,S;if(process.env.NODE_ENV!=="production"&&a&&i){const m="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";r.ignoreStrict?Es(!1,m):On(!1,m)}for(let m=0;m<cb;m++){const b=Gh[m],{isEnabled:R,Feature:w,ProjectionNode:D,MeasureLayout:_}=Ss[b];D&&(p=D),R(r)&&(!this.features[b]&&w&&(this.features[b]=new w(this)),_&&(S=_))}if((this.type==="html"||this.type==="svg")&&!this.projection&&p){this.projection=new p(this.latestValues,this.parent&&this.parent.projection);const{layoutId:m,layout:b,drag:R,dragConstraints:w,layoutScroll:D,layoutRoot:_}=r;this.projection.setOptions({layoutId:m,layout:b,alwaysMeasureLayout:!!R||w&&ua(w),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof b=="string"?b:"both",initialPromotionConfig:h,layoutScroll:D,layoutRoot:_})}return S}updateFeatures(){for(const e in this.features){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rt()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,r){this.latestValues[e]=r}makeTargetAnimatable(e,r=!0){return this.makeTargetAnimatableFromInstance(e,this.props,r)}update(e,r){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let i=0;i<nd.length;i++){const a=nd[i];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const h=e["on"+a];h&&(this.propEventSubscriptions[a]=this.on(a,h))}this.prevMotionValues=ub(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const i=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(i.initial=this.props.initial),i}const r={};for(let i=0;i<fb;i++){const a=wc[i],h=this.props[a];(xs(h)||h===!1)&&(r[a]=h)}return r}addVariantChild(e){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(e),()=>r.variantChildren.delete(e)}addValue(e,r){r!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,r)),this.values.set(e,r),this.latestValues[e]=r.get()}removeValue(e){this.values.delete(e);const r=this.valueSubscriptions.get(e);r&&(r(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,r){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&r!==void 0&&(i=ha(r,{owner:this}),this.addValue(e,i)),i}readValue(e){var r;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(r=this.getBaseTargetFromProps(this.props,e))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,r){this.baseTarget[e]=r}getBaseTarget(e){var r;const{initial:i}=this.props,a=typeof i=="string"||typeof i=="object"?(r=Ac(this.props,i))===null||r===void 0?void 0:r[e]:void 0;if(i&&a!==void 0)return a;const h=this.getBaseTargetFromProps(this.props,e);return h!==void 0&&!$t(h)?h:this.initialValues[e]!==void 0&&a===void 0?void 0:this.baseTarget[e]}on(e,r){return this.events[e]||(this.events[e]=new Bc),this.events[e].add(r)}notify(e,...r){this.events[e]&&this.events[e].notify(...r)}}class $h extends db{sortInstanceNodePosition(e,r){return e.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(e,r){return e.style?e.style[r]:void 0}removeValueFromRenderState(e,{vars:r,style:i}){delete r[e],delete i[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:r,...i},{transformValues:a},h){let p=Pg(i,e||{},this);if(a&&(r&&(r=a(r)),i&&(i=a(i)),p&&(p=a(p))),h){Eg(this,i,p);const S=sb(this,i,p,r);r=S.transitionEnd,i=S.target}return{transition:e,transitionEnd:r,...i}}}function hb(t){return window.getComputedStyle(t)}class pb extends $h{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,r){if(si.has(r)){const i=Oc(r);return i&&i.default||0}else{const i=hb(e),a=(Fd(r)?i.getPropertyValue(r):i[r])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(e,{transformPagePoint:r}){return Oh(e,r)}build(e,r,i,a){Tc(e,r,i,a.transformTemplate)}scrapeMotionValuesFromProps(e,r){return Pc(e,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;$t(e)&&(this.childSubscription=e.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(e,r,i,a){zd(e,r,i,a)}}class mb extends $h{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,r){return e[r]}readValueFromInstance(e,r){if(si.has(r)){const i=Oc(r);return i&&i.default||0}return r=Wd.has(r)?r:xc(r),e.getAttribute(r)}measureInstanceViewportBox(){return rt()}scrapeMotionValuesFromProps(e,r){return Nd(e,r)}build(e,r,i,a){Ec(e,r,i,this.isSVGTag,a.transformTemplate)}renderInstance(e,r,i,a){Ud(e,r,i,a)}mount(e){this.isSVGTag=Rc(e.tagName),super.mount(e)}}const vb=(t,e)=>kc(t)?new mb(e,{enableHardwareAcceleration:!1}):new pb(e,{enableHardwareAcceleration:!0}),gb={layout:{ProjectionNode:Uh,MeasureLayout:Lh}},yb={...Ng,...fv,...Xy,...gb},Yh=bm((t,e)=>Km(t,e,yb,vb));function bb(t){const{children:e,parentRef:r,onlyChild:i}=t,[a,h]=oe.useState({top:0,left:0});return oe.useLayoutEffect(()=>{if(r.current){const p=r.current.getBoundingClientRect();h({top:p.top,left:p.left+p.width})}},[r]),i?e:cd.createPortal(re.jsx(Yh.div,{style:{position:"fixed",top:a.top,left:a.left,zIndex:1200},children:e}),r.current)}function xb(t){return re.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...t,children:re.jsx("path",{fill:"currenColor",d:"M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z"})})}function gc(t,e){return gc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,a){return i.__proto__=a,i},gc(t,e)}function Sb(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,gc(t,e)}function qu(t,e,r){if(r||arguments.length===2)for(var i=0,a=e.length,h;i<a;i++)(h||!(i in e))&&(h||(h=Array.prototype.slice.call(e,0,i)),h[i]=e[i]);return t.concat(h||Array.prototype.slice.call(e))}/*!
|
|
110
|
-
* content-type
|
|
111
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
112
|
-
* MIT Licensed
|
|
113
|
-
*/var rd=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,wb=/\\([\u000b\u0020-\u00ff])/g,kb=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,Tb=Cb;function Cb(t){if(!t)throw new TypeError("argument string is required");var e=typeof t=="object"?Eb(t):t;if(typeof e!="string")throw new TypeError("argument string is required to be a string");var r=e.indexOf(";"),i=r!==-1?e.slice(0,r).trim():e.trim();if(!kb.test(i))throw new TypeError("invalid media type");var a=new Rb(i.toLowerCase());if(r!==-1){var h,p,S;for(rd.lastIndex=r;p=rd.exec(e);){if(p.index!==r)throw new TypeError("invalid parameter format");r+=p[0].length,h=p[1].toLowerCase(),S=p[2],S.charCodeAt(0)===34&&(S=S.slice(1,-1),S.indexOf("\\")!==-1&&(S=S.replace(wb,"$1"))),a.parameters[h]=S}if(r!==e.length)throw new TypeError("invalid parameter format")}return a}function Eb(t){var e;if(typeof t.getHeader=="function"?e=t.getHeader("content-type"):typeof t.headers=="object"&&(e=t.headers&&t.headers["content-type"]),typeof e!="string")throw new TypeError("content-type header is missing from object");return e}function Rb(t){this.parameters=Object.create(null),this.type=t}var sa=new Map,Xh=function(e){return e.cloneNode(!0)},od=function(){return window.location.protocol==="file:"},Zh=function(e,r,i){var a=new XMLHttpRequest;a.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&a.readyState===2){var h=a.getResponseHeader("Content-Type");if(!h)throw new Error("Content type not found");var p=Tb(h).type;if(!(p==="image/svg+xml"||p==="text/plain"))throw new Error("Invalid content type: ".concat(p))}if(a.readyState===4){if(a.status===404||a.responseXML===null)throw new Error(od()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+e);if(a.status===200||od()&&a.status===0)i(null,a);else throw new Error("There was a problem injecting the SVG: "+a.status+" "+a.statusText)}}catch(S){if(a.abort(),S instanceof Error)i(S,a);else throw S}},a.open("GET",e),a.withCredentials=r,a.overrideMimeType&&a.overrideMimeType("text/xml"),a.send()},uo={},id=function(e,r){uo[e]=uo[e]||[],uo[e].push(r)},Pb=function(e){for(var r=function(p,S){setTimeout(function(){if(Array.isArray(uo[e])){var m=sa.get(e),b=uo[e][p];m instanceof SVGSVGElement&&b(null,Xh(m)),m instanceof Error&&b(m),p===uo[e].length-1&&delete uo[e]}},0)},i=0,a=uo[e].length;i<a;i++)r(i)},Ab=function(e,r,i){if(sa.has(e)){var a=sa.get(e);if(a===void 0){id(e,i);return}if(a instanceof SVGSVGElement){i(null,Xh(a));return}}sa.set(e,void 0),id(e,i),Zh(e,r,function(h,p){var S;h?sa.set(e,h):((S=p.responseXML)===null||S===void 0?void 0:S.documentElement)instanceof SVGSVGElement&&sa.set(e,p.responseXML.documentElement),Pb(e)})},Ib=function(e,r,i){Zh(e,r,function(a,h){var p;a?i(a):((p=h.responseXML)===null||p===void 0?void 0:p.documentElement)instanceof SVGSVGElement&&i(null,h.responseXML.documentElement)})},Mb=0,Db=function(){return++Mb},Qn=[],ad={},Ob="http://www.w3.org/2000/svg",ec="http://www.w3.org/1999/xlink",sd=function(e,r,i,a,h,p,S){var m=e.getAttribute("data-src")||e.getAttribute("src");if(!m){S(new Error("Invalid data-src or src attribute"));return}if(Qn.indexOf(e)!==-1){Qn.splice(Qn.indexOf(e),1),e=null;return}Qn.push(e),e.setAttribute("src","");var b=a?Ab:Ib;b(m,h,function(R,w){if(!w){Qn.splice(Qn.indexOf(e),1),e=null,S(R);return}var D=e.getAttribute("id");D&&w.setAttribute("id",D);var _=e.getAttribute("title");_&&w.setAttribute("title",_);var N=e.getAttribute("width");N&&w.setAttribute("width",N);var Y=e.getAttribute("height");Y&&w.setAttribute("height",Y);var j=Array.from(new Set(qu(qu(qu([],(w.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();w.setAttribute("class",j);var O=e.getAttribute("style");O&&w.setAttribute("style",O),w.setAttribute("data-src",m);var X=[].filter.call(e.attributes,function(Ee){return/^data-\w[\w-]*$/.test(Ee.name)});if(Array.prototype.forEach.call(X,function(Ee){Ee.name&&Ee.value&&w.setAttribute(Ee.name,Ee.value)}),i){var $={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]},J,q,K,te,ie;Object.keys($).forEach(function(Ee){J=Ee,K=$[Ee],q=w.querySelectorAll(J+"[id]");for(var je=function(ht,yt){te=q[ht].id,ie=te+"-"+Db();var Re;Array.prototype.forEach.call(K,function(Be){Re=w.querySelectorAll("["+Be+'*="'+te+'"]');for(var He=0,nn=Re.length;He<nn;He++){var Dt=Re[He].getAttribute(Be);Dt&&!Dt.match(new RegExp('url\\("?#'+te+'"?\\)'))||Re[He].setAttribute(Be,"url(#"+ie+")")}});for(var Se=w.querySelectorAll("[*|href]"),lt=[],ut=0,Xe=Se.length;ut<Xe;ut++){var Ke=Se[ut].getAttributeNS(ec,"href");Ke&&Ke.toString()==="#"+q[ht].id&<.push(Se[ut])}for(var Ae=0,Yt=lt.length;Ae<Yt;Ae++)lt[Ae].setAttributeNS(ec,"href","#"+ie);q[ht].id=ie},dt=0,he=q.length;dt<he;dt++)je(dt)})}w.removeAttribute("xmlns:a");for(var se=w.querySelectorAll("script"),Pe=[],De,ye,Oe=0,Ce=se.length;Oe<Ce;Oe++)ye=se[Oe].getAttribute("type"),(!ye||ye==="application/ecmascript"||ye==="application/javascript"||ye==="text/javascript")&&(De=se[Oe].innerText||se[Oe].textContent,De&&Pe.push(De),w.removeChild(se[Oe]));if(Pe.length>0&&(r==="always"||r==="once"&&!ad[m])){for(var et=0,Fe=Pe.length;et<Fe;et++)new Function(Pe[et])(window);ad[m]=!0}var tt=w.querySelectorAll("style");if(Array.prototype.forEach.call(tt,function(Ee){Ee.textContent+=""}),w.setAttribute("xmlns",Ob),w.setAttribute("xmlns:xlink",ec),p(w),!e.parentNode){Qn.splice(Qn.indexOf(e),1),e=null,S(new Error("Parent node is null"));return}e.parentNode.replaceChild(w,e),Qn.splice(Qn.indexOf(e),1),e=null,S(null,w)})},Fb=function(e,r){var i=r===void 0?{}:r,a=i.afterAll,h=a===void 0?function(){}:a,p=i.afterEach,S=p===void 0?function(){}:p,m=i.beforeEach,b=m===void 0?function(){}:m,R=i.cacheRequests,w=R===void 0?!0:R,D=i.evalScripts,_=D===void 0?"never":D,N=i.httpRequestWithCredentials,Y=N===void 0?!1:N,j=i.renumerateIRIElements,O=j===void 0?!0:j;if(e&&"length"in e)for(var X=0,$=0,J=e.length;$<J;$++)sd(e[$],_,O,w,Y,b,function(q,K){S(q,K),e&&"length"in e&&e.length===++X&&h(X)});else e?sd(e,_,O,w,Y,b,function(q,K){S(q,K),h(1),e=null}):h(0)},Lb=function(e){var r=(e==null?void 0:e.ownerDocument)||document;return r.defaultView||window},_b=function(e,r){for(var i in e)if(!(i in r))return!0;for(var a in r)if(e[a]!==r[a])return!0;return!1},jb=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Tl="http://www.w3.org/2000/svg",ld="http://www.w3.org/1999/xlink",zc=function(t){Sb(e,t);function e(){for(var i,a=arguments.length,h=new Array(a),p=0;p<a;p++)h[p]=arguments[p];return i=t.call.apply(t,[this].concat(h))||this,i.initialState={hasError:!1,isLoading:!0},i.state=i.initialState,i._isMounted=!1,i.reactWrapper=void 0,i.nonReactWrapper=void 0,i.refCallback=function(S){i.reactWrapper=S},i}var r=e.prototype;return r.renderSVG=function(){var a=this;if(this.reactWrapper instanceof Lb(this.reactWrapper).Node){var h=this.props,p=h.desc,S=h.evalScripts,m=h.httpRequestWithCredentials,b=h.renumerateIRIElements,R=h.src,w=h.title,D=h.useRequestCache,_=this.props.onError,N=this.props.beforeInjection,Y=this.props.afterInjection,j=this.props.wrapper,O,X;j==="svg"?(O=document.createElementNS(Tl,j),O.setAttribute("xmlns",Tl),O.setAttribute("xmlns:xlink",ld),X=document.createElementNS(Tl,j)):(O=document.createElement(j),X=document.createElement(j)),O.appendChild(X),X.dataset.src=R,this.nonReactWrapper=this.reactWrapper.appendChild(O);var $=function(te){if(a.removeSVG(),!a._isMounted){_(te);return}a.setState(function(){return{hasError:!0,isLoading:!1}},function(){_(te)})},J=function(te,ie){if(te){$(te);return}a._isMounted&&a.setState(function(){return{isLoading:!1}},function(){try{Y(ie)}catch(se){$(se)}})},q=function(te){if(te.setAttribute("role","img"),p){var ie=te.querySelector(":scope > desc");ie&&te.removeChild(ie);var se=document.createElement("desc");se.innerHTML=p,te.prepend(se)}if(w){var Pe=te.querySelector(":scope > title");Pe&&te.removeChild(Pe);var De=document.createElement("title");De.innerHTML=w,te.prepend(De)}try{N(te)}catch(ye){$(ye)}};Fb(X,{afterEach:J,beforeEach:q,cacheRequests:D,evalScripts:S,httpRequestWithCredentials:m,renumerateIRIElements:b})}},r.removeSVG=function(){var a;(a=this.nonReactWrapper)!=null&&a.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},r.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},r.componentDidUpdate=function(a){var h=this;_b(we._extends({},a),this.props)&&this.setState(function(){return h.initialState},function(){h.removeSVG(),h.renderSVG()})},r.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},r.render=function(){var a=this.props;a.afterInjection,a.beforeInjection,a.desc,a.evalScripts;var h=a.fallback;a.httpRequestWithCredentials;var p=a.loading;a.renumerateIRIElements,a.src,a.title,a.useRequestCache;var S=a.wrapper,m=we._objectWithoutPropertiesLoose(a,jb),b=S;return Ye.createElement(b,we._extends({},m,{ref:this.refCallback},S==="svg"?{xmlns:Tl,xmlnsXlink:ld}:{}),this.state.isLoading&&p&&Ye.createElement(p,null),this.state.hasError&&h&&Ye.createElement(h,null))},e}(Ye.Component);zc.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};zc.propTypes={afterInjection:we.propTypesExports.func,beforeInjection:we.propTypesExports.func,desc:we.propTypesExports.string,evalScripts:we.propTypesExports.oneOf(["always","once","never"]),fallback:we.propTypesExports.oneOfType([we.propTypesExports.func,we.propTypesExports.object,we.propTypesExports.string]),httpRequestWithCredentials:we.propTypesExports.bool,loading:we.propTypesExports.oneOfType([we.propTypesExports.func,we.propTypesExports.object,we.propTypesExports.string]),onError:we.propTypesExports.func,renumerateIRIElements:we.propTypesExports.bool,src:we.propTypesExports.string.isRequired,title:we.propTypesExports.string,useRequestCache:we.propTypesExports.bool,wrapper:we.propTypesExports.oneOf(["div","span","svg"])};function Qh({item:t,level:e=0,...r}){var O;const{isActive:i,isCollapsed:a,expanded:h,toggleExpand:p}=r,S=`level-${e}`,m=a?"collapsed":"expanded",b=i(t.id)?"active":"",R=(X,$=S)=>`${X} ${$} ${m} ${b}`,w=!!((O=t.children)!=null&&O.length),[D,_]=oe.useState(!1),N=oe.useRef();function Y(X){var K;const{level:$,hovered:J,parentRef:q}=X;return!w||a&&$>=2&&!J?null:re.jsx(bb,{parentRef:q,onlyChild:!a||a&&$<2,children:re.jsx(Yh.div,{className:R("menu-item__dropdown",`level-${$}`),initial:{height:a?"auto":0},animate:{height:a||h(t.id)?"auto":0},transition:{duration:.2},children:(K=t.children)==null?void 0:K.map(te=>oe.createElement(Qh,{...r,key:te.id,item:te,level:$}))},+a)})}const j=w?"div":fd.Link;return re.jsxs("div",{ref:N,className:R("menu-item__wrapper"),onMouseEnter:()=>a&&_(!0),onMouseLeave:()=>a&&_(!1),children:[re.jsxs(j,{to:w?"#":t.path||"#",style:{paddingLeft:`${a?"0.5rem":`${e*1}rem`}`},className:R("menu-item__link"),onClick:X=>{w&&(X.preventDefault(),a||p(t.id))},children:[e!==0&&re.jsx(Bb,{cls:R,item:t}),re.jsx("span",{className:R("menu-item__label"),children:t.name}),w&&re.jsx("div",{className:R("menu-item__icon-arrow__wrapper"),children:re.jsx(xb,{className:R(`menu-item__icon-arrow__icon ${h(t.id)?"open":"close"}`)})})]}),Y({level:e+1,hovered:D,parentRef:N})]},t.id)}function Bb({item:t,cls:e}){var p,S;const[r,i]=oe.useState(!1),a=()=>{i(!0)},h=(p=t.icon)==null?void 0:p.endsWith(".svg");return re.jsx("div",{className:e("menu-item__icon"),children:r?re.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center"},children:(S=t.name.trim().at(0))==null?void 0:S.toUpperCase()}):h?re.jsx(zc,{src:t.icon,beforeInjection:m=>{m.setAttribute("style","margin: 0 auto;"),m.querySelectorAll("path").forEach(R=>{R.setAttribute("stroke","currentColor")})}}):re.jsx("img",{src:t.icon||"/",alt:" ",style:{height:24,maxHeight:24},onError:a})})}function ud(t){for(;t.startsWith("/");)t=t.slice(1);return t}function Jh(t,e,r=[]){for(const i of t){if(console.log(i.path,e,i.path===e),ud(i.path||"")===ud(e))return[...r,i];if(i.children){const a=Jh(i.children,e,[...r,i]);if(a)return a}}return null}function Vb(t){return re.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...t,children:re.jsx("path",{fill:"#E01B00",fillRule:"evenodd",d:"M.179 2.875A2.375 2.375 0 012.554.5h3.393a1.018 1.018 0 010 2.036H2.554a.34.34 0 00-.34.339v14.25c0 .187.152.34.34.34h3.393a1.018 1.018 0 110 2.035H2.554a2.375 2.375 0 01-2.375-2.375V2.875zm14.167 6.107h-7.72a1.018 1.018 0 000 2.036h7.72l-2.673 2.673a1.018 1.018 0 101.44 1.44l4.41-4.411a1.018 1.018 0 000-1.44l-4.41-4.41a1.018 1.018 0 10-1.44 1.439l2.673 2.673z",clipRule:"evenodd"})})}const zb=`[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
|
|
114
|
-
`;function Wb(){return re.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:[re.jsx("path",{stroke:"#85858A",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M22 8.27V4.23C22 2.64 21.36 2 19.77 2h-4.04c-1.59 0-2.23.64-2.23 2.23v4.04c0 1.59.64 2.23 2.23 2.23h4.04c1.59 0 2.23-.64 2.23-2.23zM10.5 8.52V3.98C10.5 2.57 9.86 2 8.27 2H4.23C2.64 2 2 2.57 2 3.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97zM10.5 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23H4.23c-1.59 0-2.23.64-2.23 2.23v4.04C2 21.36 2.64 22 4.23 22h4.04c1.59 0 2.23-.64 2.23-2.23z"}),re.jsx("path",{stroke:"#85858A",strokeLinecap:"round",strokeWidth:"1.5",d:"M15 15.5h6M15 19.5h6"})]})}function Ub(){return re.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:re.jsx("path",{stroke:"#85858A",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M22 8.52V3.98C22 2.57 21.36 2 19.77 2h-4.04c-1.59 0-2.23.57-2.23 1.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97zM22 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23h-4.04c-1.59 0-2.23.64-2.23 2.23v4.04c0 1.59.64 2.23 2.23 2.23h4.04c1.59 0 2.23-.64 2.23-2.23zM10.5 8.52V3.98C10.5 2.57 9.86 2 8.27 2H4.23C2.64 2 2 2.57 2 3.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97zM10.5 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23H4.23c-1.59 0-2.23.64-2.23 2.23v4.04C2 21.36 2.64 22 4.23 22h4.04c1.59 0 2.23-.64 2.23-2.23z"})})}const Nb=`.side-bar{display:flex;flex-direction:column;max-width:18rem;height:calc(100vh - 64px);border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s;padding:0 8px}.side-bar.expanded{width:18rem}.side-bar.collapsed{width:64px;padding-left:4px;padding-right:4px}.side-bar__menu{margin-left:-8px;margin-right:-8px;padding-left:8px;padding-right:8px}.side-bar__menu.collapsed{margin-left:-4px;margin-right:-4px;padding-left:4px;padding-right:4px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:40px 0}.side-bar__logout-btn__text{margin-left:12px}.side-bar__logout-btn__text.collapsed{display:none}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:0 16px;min-height:48px;border-radius:.375rem}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__logout-btn.collapsed{justify-content:center}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%;margin-top:4px}.menu-item__wrapper:first-child,.menu-item__wrapper.collapsed{margin-top:0}.menu-item__wrapper.collapsed.level-1{margin-top:4px}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.active{background-color:#009d4f1a!important;color:#009d4f!important}.menu-item__link.level-0{height:auto}.menu-item__link.menu-item__link.collapsed.level-0{display:none}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0}.menu-item__icon.collapsed.level-1{width:100%}.menu-item__icon.collapsed.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-1{text-align:center;margin-left:0;display:none}.menu-item__label.level-0{color:#85858a}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:-3px}.menu-item__icon-arrow__wrapper.expanded{right:0}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:180px;max-width:180px;padding:4px;z-index:1200}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-1{height:48px}.menu-item__dropdown.collapsed.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{margin-top:4px;overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}
|
|
115
|
-
`;function Hb(t){return re.jsx(yc,{styles:[zb,Nb],style:{zIndex:1200},children:re.jsx(Gb,{...t})})}function Gb(t){const{baseUrl:e,menuPath:r,logout:i}=t,a=fd.useLocation(),[h,p]=oe.useState([]),[S,m]=oe.useState(!1),b=(Jh(h,a.pathname)||[]).filter(X=>X.parentKey!==0),[R,w]=oe.useState({}),D=X=>{w({...R,[X]:!R[X]})},_=()=>{m(!S)};oe.useEffect(()=>{(async()=>{const $=e+(r||"/global-menu-config/api/v1/menu-items/user"),J=await ep.get($,{withCredentials:!0}).then(K=>K.data),q={};J.forEach(K=>{K.children&&(q[K.id]=!0)}),w(q),p(J.map(K=>({...K,parentKey:0})))})()},[e,r]);const[N,Y]=oe.useState(!1),j=S?"collapsed":"expanded",O=X=>`${X} ${j}`;return re.jsxs("div",{className:O("side-bar"),children:[re.jsx("div",{className:O("side-bar__wrapper-toggle-btn"),children:re.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:_,children:S?re.jsx(Wb,{}):re.jsx(Ub,{})})}),re.jsx(Cd,{className:O("side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:h.map(X=>{const $=J=>b.some(q=>q.id===J);return re.jsx(Qh,{item:X,isActive:$,isCollapsed:S,expanded:J=>R[J],toggleExpand:D},X.id)})}),re.jsxs("div",{className:O("side-bar__wrap-btn-logout"),children:[re.jsxs("button",{className:O("side-bar__logout-btn"),onClick:()=>Y(!0),children:[re.jsx(Vb,{}),re.jsx("span",{className:O("side-bar__logout-btn__text"),children:"Logout"})]}),re.jsx(md,{isOpen:N,onClose:()=>Y(!1),onConfirm:i})]})]})}exports.GlobalMenu=Hb;exports.TopBar=Cp;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),T=require("react"),ut=require("../index-e55ba232.cjs"),Ri=require("react-router-dom"),yr=require("react-dom"),br=require("axios");function xr(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const j=xr(T),wr=`@import"https://fonts.cdnfonts.com/css/tt-firs-neue-trl?styles=143111,143113,143105,143108,143110,143101,143099,143103,143097,143115";*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:TT Firs Neue Trl,sans-serif;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}
|
|
2
|
+
`;function $e({children:t,styles:e=[],...n}){return y.jsxs(ut.C.div,{...n,children:[[wr,...e].map((i,s)=>y.jsx("style",{type:"text/css",children:i},s)),t]})}const Sr=`.modal-overlay{z-index:1300;position:fixed;top:0;right:0;bottom:0;left:0;background:hsla(0,0%,0%,.254);--tw-backdrop-blur: blur(4px);justify-content:center;align-items:center;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.modal-title{font-size:1.25rem;line-height:1.75rem;color:#e01b00;font-weight:500}.modal-footer{display:flex;justify-content:space-between;width:80%}.modal-container{background:#ffffff;-webkit-backdrop-filter:blur(4.5px);backdrop-filter:blur(4.5px);display:flex;padding:32px 24px 40px;flex-direction:column;align-items:center;gap:24px;align-self:stretch;width:500px;height:204px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:.5rem}.modal-button{border-radius:3px;border:1px solid #ddd;background:#ddd;padding:8px 32px;font-size:14px}.confirm-btn{background:#e01b00!important}.text-white{color:#fff}.text-sm{font-size:.875rem;line-height:1.25rem}
|
|
3
|
+
`;function Bi({isOpen:t,onClose:e,onConfirm:n}){if(!t)return null;function i(s){var o;((o=s.target)==null?void 0:o.id)==="modal-wrapper"&&e()}return y.jsx($e,{styles:[Sr],style:{zIndex:1300},children:y.jsx("div",{onClick:i,className:"modal-overlay",id:"modal-wrapper",children:y.jsxs("div",{className:"modal-container",children:[y.jsx("h3",{className:"modal-title",children:"Log out"}),y.jsx("p",{className:"text-sm",children:"Are you sure want to log out?"}),y.jsxs("div",{className:"modal-footer",children:[y.jsx("button",{className:"modal-button",onClick:e,children:"Cancel"}),y.jsx("button",{onClick:n,className:"text-white confirm-btn modal-button",children:"Confirm"})]})]})})})}function Tr({primaryColor:t="#009d4f"}){return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",children:[y.jsx("path",{d:"M8.5 19.5H8C4 19.5 2 18.5 2 13.5V8.5C2 4.5 4 2.5 8 2.5H16C20 2.5 22 4.5 22 8.5V13.5C22 17.5 20 19.5 16 19.5H15.5C15.19 19.5 14.89 19.65 14.7 19.9L13.2 21.9C12.54 22.78 11.46 22.78 10.8 21.9L9.3 19.9C9.14 19.68 8.77 19.5 8.5 19.5Z",stroke:t,"stroke-width":"1.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),y.jsx("path",{d:"M15.9965 11.5H16.0054",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),y.jsx("path",{d:"M11.9955 11.5H12.0045",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),y.jsx("path",{d:"M7.99451 11.5H8.00349",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]})}function Ar({primaryColor:t="#009d4f"}){return y.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.7968 17.4705C16.5901 17.4705 18.8076 16.8556 19.0218 14.3874C19.0218 11.921 17.4757 12.0796 17.4757 9.05334C17.4757 6.68952 15.2352 4 11.7968 4C8.35833 4 6.1178 6.68952 6.1178 9.05334C6.1178 12.0796 4.57178 11.921 4.57178 14.3874C4.78679 16.8649 7.00428 17.4705 11.7968 17.4705Z",stroke:t,"stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),y.jsx("path",{d:"M13.8274 20.0286C12.6679 21.3161 10.8591 21.3313 9.68848 20.0286",stroke:t,"stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),y.jsx("circle",{cx:"16.928",cy:"7",r:"2",fill:"#E01B00",stroke:t})]})}const Pr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAArCAYAAAADgWq5AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA3XSURBVHgBtVl7jFxVGf/dO3feMzuzO/tuu92y2xIoCEgCgUQogSIKhBIgaAxpFdREITxMVCrYNqB/+A8QCYQYbIuJUTChGqBQDCkaMUCgW0qtpe12t933drezs/N+XX/fuefOzK6l0KInPb2POfec3/m+3/c6a+ALNNu247xczL6Ofbm+j+suLck+pK972XcYhrEbX6AZOItGoGt4uZ99jQtu+tAnmP7kIPLz8yiwS/NHmxDr6kJTdzfaVq5qnGIb+/azAX9GgDXQTQJUQB3Y+SqOvL1bgXVB6nELv2OvcqllX74Uq2+8SV2buBE40n+QwHfgfwlYq34r+7rU+Bj2vvgH/Ou1VxXIxeAaW7Xht6ph1NGzCfAr7/meC3wb+xYCH8IXBaylurWQnu/d++IfMUCwRS1Nuz7mFN813lfVUrYh3xi1lWXIlXd/F1eww5H2rQQ9gLMFTCAP8PJEamIcO+77AebHx+u/6Y8FrItNJDqVL2Awm8WJQhFejwedfj9WhIJosjz8wKCkUdupu6koOX7n08+60haKPHnGgAlEuLp5bGAPdm78yUKO6tU4cQ3w/uQc3pqYwkypQOAGTNNU3SJoi+N6wmFclWjmBnxqvEja1rMJcF8kghseeRT9V62Rl5s595bPDZggxE29fPD11/DWLx9f/FsNqFwrvP5l6DjenZmBKN40TM5qqrEeAUzJGnz28Rpgv6atFRdGQmrXjjG6QrDV/Q0/+zlWf/1GebWB82//TMAE0svLnpnDh+N/umfDaY1KfnlrdBw7R8ZguyQxPJSsoW493JDHY7JbaiGhSNCycEt3J3oDgZp2qi5HOMgbjuCOp59B+8pV4rsvWWyIpwJ8ND0x0fvKQ/dDPIJh1yWgWVsbW6xU8au9+8jXAqUJWJRo2OdDiGqPBv1ojcUQIRVOptOYnEsjky+iUrXREw3jm91dihQ26VPRs0NvoKmrk6DJ6c6uAQK+pBGftQis8LZ3z/ZtIGjFQRJS78zQ05q1u/0nk5ghWOFoazCAloCFGIF2xKPobmtHW1sCifZWeP1e5DM5jJPjHxwaxsGpJE5WykhYlprZI1IWr0FOGASd4tpv/OIx3PHrZy4mJuHzZhejuYgKDxza9Tqkm4ah5Ck8NUzpjhG5z/L7QQIWsGGfFzGvGJeeUMZY5G0oxGgXRYBSjsSi6GpvwZoL+7GqM4GhbM5hkOEIw6SkDcN5ISIZ2fOh6mz36ziwEDCb7CK+94UXHFAKsHMVQzK1lIWfakq+T4p0+RwhWP5Tm1CcVAbFb7w+xwA9XnVvkS4RbuCS5Z18tvT8LmgO0+s5axrY5Ri8gH3gVICvPvLmG0hPTjjSNVyp6kk5Uhii7Mm01W9i1X6S1yLR7apj78ozKEPjDqoVlIsFLmIjJNKm6wpEI2iOBMhzT10wohmzDtSloGAZ2bNngZRNTYcNwt0ju3Y5vK19jIZJG7ssZiuL93kMTSmC5X3Acnq1lEM2lUQ2OYsTY2PI8BoOeOEXgVfLiPqtmmBqVGt4NrWG3932vCvlNY1GtyYzOYmpfR9pKsgWRa91ryBvXZ8pb1PFspo0YJpqxIlCCf6qiRx3eWwkidBkCj2JGfT3LsU+Gtp83sbyZcsRpTtDbhYtytWJUVfrkwqRbE0rJ4xilBIu0MtQO7fwzQ6XEldPfVQHa7vc1cZlurs26+9eOngIQ/MpeMmVeCiAXNWLXBkEVuDVwniqiH2Tafzz4Cj2T6QwkytifHYOyfQ8ZuYLeHN4FEUKxZWuY6v63k039NqDf/+bPK5TEiYdJOnunT16xLFu6TqKyVURTEvZwwlVBsaFUsqdAZlKBWYuj85QBJmq5A8mYpEw5uYraPUauHBZBxf18LuqChSlSgnnLO1AjnTxaA+huCl5BqUt63q0x6gq92lj+shhnEdaiCezND+QPHrUIbzgMZ3Q61ib7QQPdevwWh6DtPIygXpMD4p0Cx0RA+cnOlUaWShXkZsvYwkN7LLz+5AtVbF0SbcKzyGfhfTMNFYtaVXaMVzfRrCOlzE0TL0Z3owO7HEdw8UCuFfuMlOTNWnWrFWnhY5DdpnsXFfEYxjN5NSGKpw0ncsy8kVRplkcn06izQ+E6IujzQlcviqH9/49zIhmoY9AffQyYZ8fZsmjMghnaqNuIRLWbceQhculTMYFHK8Bzk1POzvUiY3zrVnLqZRJmI6UpfU3t+AfKt00tTHaODw2gQIHlctlTCaLGDqZwfzvX6Ira0IgEMTw1BRGR4awsiOOsBVg2uFXvK2vZzgobVN5oaqjYOXedOuthWZTATJr8V1RQyeCqMm1LvCepihDcRDJYlEBrkqgEP5yBQ8DhD8eRlu8CSuW96ClOYYSc2SDGjs6PonxZAqdTdRWuGlBpm+gIXuzDQfTwvSlIXBo92S7oExDewudLi7yxVEm5ndfcAF5yOSFq3jok6Ufm8sjze+C8WYsWXUuWnpXoBgM4/3jE9gzPO4EFY4zqqiF4gU+uOaLtZfQHsttIuEhuQl3dEB8sZs1aUY4FDCqTvJj63xN5wwtrCSaKc2xXAEpZmIrOoSfQILG1kOpfuXSS9Ddswz+YBA9zIGPkUIf7NuvpNfmDao5lJUYjo93c2xXy66bbersdPEOCWDJO+FjHpo1Jl1y1KkgXkIrwmiwP7Fjr6STlpcuK48CxTybztDQPEimUojxuv+99zB9bNihVjGNALUS9AfgJTWWB6M1Cdq60qsVBg0kWQxYkKiir43qVY5bAxLVeAxolaDm0G19dbO2CsdWCCBPQ5tIZZArVVQSP8nodGB4BIPDx5FlsLDI11lyt1wu4bJ4u/LpCpBZpwOABlpAGZ68be1b6QJOWpLRc1fJ2Ipz4nAduespFrkzxx8bdSMQAyMnyzpnzpdKBJpFdzSIJYkE+np70HtOL6KRIGZnZnF8cgpLQzG0+ILaMzR4h0XN1bNE1kRfn5KuVNSul/jzkssuX/9hLTXXEm2wW1tPXPOZXPBktqAqCFXq2I5WsswpjlWqSsm5cgXTLE5l+OiJWRW66d/wTr6E/oAP7bBrLs02Tln+qLW6LrpInnbLfy7gHd5weH3b6gswvf/jU+7VjXYizP0nTuCVw4MYnJsjjx2LrlYNRQ01iEAHZ1MYTqbhHRxVJdOKzg60NUUUzY4UWH14vehg4r+UX3QxexNe1845XAWyd1x4ESIdisNvNwLeLfw4785vxKc3PaIJUFUewlXcXKmM96nSd1h0jpKfZeYQMkqqZhnnkZhN0JJrlLgrcVs2k41YOICVXe0Is3SS9LNKflveELyMdCelCGDfT6Es529Ly0VE1by6Mudd//XXu3TYVgPMhyRV81Tr6gs2hds7kZUwDcegxjNZvM0INnBihiCrzBuY7DA5N0XkBGXy2SlHbFUuqQcxWOYYzQTbxoJTPLz4a8u0MG34lR8uku9hJvUVApT8Q3zJKLndzA2vLuYQ4PswtdJ/3doaHVx9u01OW5KX/vBexeNksYSXh4bxG6aRH88lafisJKhan1e6l1mZl++YC9CtSTBQZRQX9jMpipGf3bEQ2mlsQapdNpOn1McrTJhsllN8V2IlIqqrUAiSYko499LtZVjMvh+N4XgojC996y7BJW53y38BFinzIlLGSGe3A5RuyCYYARkMhuBjkJCTHK+EXk7u8zIXIPAycwKTwKFDu0+iGe+EGuliFWmTIdwMqdouwM3IKLGFErWTzeeoMQMZFqVObmyq0N659qvou/Y6gfZU49lEo4Shy+mB23+6EfGubiVBOQTxM2cQNYqqg4xuIuEgAYdo8WFGsRC7FQjBE4ygxKQmbfiQZSQrBOPwNLczKMUQZj0X4qYdz2io2k96kXm1SFlaLp9XjqEl0Yqbb7vN5e7mBRixqLknPwcPHIh/f/16ZHOyc+a8THIU6bmJEvnX6KttisuSKpjSKfG8QRLxMMF5+E42E6CGAtyccF/AWtz8PKNhS2sCkzRk0ZyYhJfjm1ta8Ojjj2FpT88pT37MxYD1gAfPPe88/GjjwwRoOZWAlPOUkgD1UbqKEuwRhvQwzx18lg9NLOETTHoSXDTKbC7EMCzGJxV2RdduUl3LfPIs3kjCdSaTJqU8yFPad939HQErQ799qvNiC6do4kJE0jevu3VTUyyOTQ9vRIVG4UpHpCxNXJiU8/KuSj6KNIsMvR66Lj8NVDyBAJPNCUjRiKWlLG7RrRWzrFyWdC/Fgw//GBddrE6mtnzaqbyB0zT3fHhsdBQP3XsfxkZGlBsSFSr1GI6f9pLT8l7O0WQTeXIxSm2UuMkcjSrRkqBXKCkteSW1FP/LoNPBpCZL6XposE8+ywNAZow42/PhBtBSpL7M3rv9+efx2+eeo0S99VTQcNSq/CoBi5pzLJcsbkKkn+W9ABa35UjYUvmBeIeeZT24+rpr8bWbbkIoHB6CQ4Pdp8PzmYA16F44R1nrJ5jT/m7rVvz19TecPJaqFsDlakXxWYCJNCt89mgDbWluVvx0D7mjTU248qqrsO7225BgksS2Q4NNfhaWzwW4AbicDTzB3jtJ4HsHBvDmzp0YPHQYhVKRbi6oKFIgOKGFBAhpQb4Pkt8r+s7B5VdcgWvWrhWJyk+SH2w2zuDPX2cEuAH4Gl42sK933w0ePowZhu9JHpWmyM8y3ZvwOMoz4r7+foLtc4cmNdAnjf/33+lOA14k7/4VdDkW/iV0Dk6RMARH9QOfR/Wf1v4D3Fe7Fu3OpbsAAAAASUVORK5CYII=",Cr=`.avatar-dropdown-item{padding:.5rem;font-size:.875rem;line-height:1.25rem;cursor:pointer;border-radius:.25rem}.avartarDropdownMenu{background-color:#fff;padding:.5rem;width:13rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);position:absolute;left:-10rem;top:3.5rem}.avartarDropdownMenu ul{list-style:none;padding-inline-start:0;margin-block-end:0}.navbar{position:fixed;display:flex;z-index:30;background:black;top:0;width:100%;padding-left:2.5rem;height:64px}.navbar-container{display:flex;flex-direction:row;align-items:center;width:100%;justify-content:space-between}.logo-container{padding:16px 0;height:100%}.navbar-container img{height:100%}.right-side-container{display:flex;flex-direction:row;align-items:center;text-align:center;margin-right:2.5rem;gap:1rem}.userContainer{display:flex;align-items:center;gap:.5rem}.userFullName{color:#fff;font-weight:400;font-size:.875rem;line-height:1.25rem}.userAvatar{width:2.5rem;height:2.5rem;cursor:pointer;-o-object-fit:cover;object-fit:cover;border-radius:9999px}.relative{position:relative}.cursor-pointer{cursor:pointer}
|
|
4
|
+
`;function kr({logo:t,user:e,baseUrl:n,style:i,classNames:s="",customColors:o}){const r=t||"/public/assets/icons/logo-header.png",a={...i,color:(o==null?void 0:o.color)||"black",backgroundColor:(o==null?void 0:o.bgColor)||"black"},[l,c]=T.useState(!1),u=()=>{window.location.href=`${n}/authentication/logout?callbackUrl=${window.location.href}`};return y.jsxs($e,{styles:[Cr],style:{zIndex:1200},children:[y.jsx("nav",{className:`navbar ${s}`,style:o?a:i,children:y.jsxs("div",{className:"navbar-container",children:[y.jsx("div",{className:"logo-container",children:y.jsx("img",{src:r,alt:"logo-header"})}),y.jsxs("div",{className:"right-side-container",children:[y.jsxs("div",{className:"userContainer",children:[y.jsx("p",{className:"userFullName",children:`${e==null?void 0:e.firstName} ${e==null?void 0:e.lastName}`}),y.jsx(Vr,{primaryColor:o==null?void 0:o.primaryColor,avatarUrl:e==null?void 0:e.avatarUrl,setShowConfirmModal:c})]}),y.jsx("span",{className:"cursor-pointer",children:y.jsx(Ar,{primaryColor:o==null?void 0:o.primaryColor})}),y.jsx("span",{className:"cursor-pointer",children:y.jsx(Tr,{primaryColor:o==null?void 0:o.primaryColor})})]})]})}),y.jsx(Bi,{isOpen:l,onClose:()=>c(!1),onConfirm:u})]})}function Vr({avatarUrl:t,setShowConfirmModal:e,primaryColor:n="#009d4f"}){const[i,s]=T.useState(!1),o=T.useRef(null),r=T.useRef(null),[a,l]=T.useState(!1),[c,u]=T.useState(!1),h={backgroundColor:a?n:"transparent"},d={backgroundColor:c?n:"transparent"};return T.useEffect(()=>{const f=p=>{o.current&&!o.current.contains(p.target)&&s(!1),r.current&&!r.current.contains(p.target)&&s(!1)};return document.addEventListener("click",f,!0),()=>{document.removeEventListener("click",f,!0)}},[o]),y.jsx(y.Fragment,{children:y.jsxs("div",{style:{position:"relative"},children:[y.jsx("img",{onClick:()=>s(!i),ref:o,alt:"user avatar",className:"userAvatar",src:t||Pr}),y.jsx("div",{style:{display:i?"block":"none"},className:"avartarDropdownMenu",ref:r,children:y.jsxs("ul",{children:[y.jsx("li",{onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),style:d,className:"avatar-dropdown-item",children:"Profile"}),y.jsx("li",{onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),style:h,onClick:()=>e(!0),className:"avatar-dropdown-item",children:"Logout"})]})})]})})}var Er=typeof global=="object"&&global&&global.Object===Object&&global;const Mr=Er;var Or=typeof self=="object"&&self&&self.Object===Object&&self,Dr=Mr||Or||Function("return this")();const Ni=Dr;var jr=Ni.Symbol;const re=jr;var Ii=Object.prototype,Lr=Ii.hasOwnProperty,Rr=Ii.toString,jt=re?re.toStringTag:void 0;function Br(t){var e=Lr.call(t,jt),n=t[jt];try{t[jt]=void 0;var i=!0}catch{}var s=Rr.call(t);return i&&(e?t[jt]=n:delete t[jt]),s}var Nr=Object.prototype,Ir=Nr.toString;function Fr(t){return Ir.call(t)}var zr="[object Null]",Wr="[object Undefined]",An=re?re.toStringTag:void 0;function _r(t){return t==null?t===void 0?Wr:zr:An&&An in Object(t)?Br(t):Fr(t)}function Ur(t){return t!=null&&typeof t=="object"}var Hr="[object Symbol]";function Gr(t){return typeof t=="symbol"||Ur(t)&&_r(t)==Hr}var Yr=/\s/;function qr(t){for(var e=t.length;e--&&Yr.test(t.charAt(e)););return e}var Xr=/^\s+/;function Kr(t){return t&&t.slice(0,qr(t)+1).replace(Xr,"")}function oe(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Pn=0/0,$r=/^[-+]0x[0-9a-f]+$/i,Qr=/^0b[01]+$/i,Zr=/^0o[0-7]+$/i,Jr=parseInt;function Cn(t){if(typeof t=="number")return t;if(Gr(t))return Pn;if(oe(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=oe(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Kr(t);var n=Qr.test(t);return n||Zr.test(t)?Jr(t.slice(2),n?2:8):$r.test(t)?Pn:+t}var to=function(){return Ni.Date.now()};const Te=to;var eo="Expected a function",no=Math.max,io=Math.min;function ne(t,e,n){var i,s,o,r,a,l,c=0,u=!1,h=!1,d=!0;if(typeof t!="function")throw new TypeError(eo);e=Cn(e)||0,oe(n)&&(u=!!n.leading,h="maxWait"in n,o=h?no(Cn(n.maxWait)||0,e):o,d="trailing"in n?!!n.trailing:d);function f(S){var k=i,C=s;return i=s=void 0,c=S,r=t.apply(C,k),r}function p(S){return c=S,a=setTimeout(x,e),u?f(S):r}function m(S){var k=S-l,C=S-c,V=e-k;return h?io(V,o-C):V}function b(S){var k=S-l,C=S-c;return l===void 0||k>=e||k<0||h&&C>=o}function x(){var S=Te();if(b(S))return v(S);a=setTimeout(x,m(S))}function v(S){return a=void 0,d&&i?f(S):(i=s=void 0,r)}function g(){a!==void 0&&clearTimeout(a),c=0,i=l=s=a=void 0}function w(){return a===void 0?r:v(Te())}function P(){var S=Te(),k=b(S);if(i=arguments,s=this,l=S,k){if(a===void 0)return p(l);if(h)return clearTimeout(a),a=setTimeout(x,e),f(l)}return a===void 0&&(a=setTimeout(x,e)),r}return P.cancel=g,P.flush=w,P}var so="Expected a function";function ro(t,e,n){var i=!0,s=!0;if(typeof t!="function")throw new TypeError(so);return oe(n)&&(i="leading"in n?!!n.leading:i,s="trailing"in n?!!n.trailing:s),ne(t,e,{leading:i,maxWait:e,trailing:s})}var oo=!!(typeof window<"u"&&window.document&&window.document.createElement),ao=oo;const Fi=ut.getDefaultExportFromCjs(ao);var Tt=function(){return Tt=Object.assign||function(e){for(var n,i=1,s=arguments.length;i<s;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Tt.apply(this,arguments)},St=null,kn=null;Fi&&window.addEventListener("resize",function(){kn!==window.devicePixelRatio&&(kn=window.devicePixelRatio,St=null)});function Vn(){if(St===null){if(typeof document>"u")return St=0,St;var t=document.body,e=document.createElement("div");e.classList.add("simplebar-hide-scrollbar"),t.appendChild(e);var n=e.getBoundingClientRect().right;t.removeChild(e),St=n}return St}function zi(t){return!t||!t.ownerDocument||!t.ownerDocument.defaultView?window:t.ownerDocument.defaultView}function Wi(t){return!t||!t.ownerDocument?document:t.ownerDocument}var _i=function(t){var e={},n=Array.prototype.reduce.call(t,function(i,s){var o=s.name.match(/data-simplebar-(.+)/);if(o){var r=o[1].replace(/\W+(.)/g,function(a,l){return l.toUpperCase()});switch(s.value){case"true":i[r]=!0;break;case"false":i[r]=!1;break;case void 0:i[r]=!0;break;default:i[r]=s.value}}return i},e);return n};function Ui(t,e){var n;t&&(n=t.classList).add.apply(n,e.split(" "))}function Hi(t,e){t&&e.split(" ").forEach(function(n){t.classList.remove(n)})}function Gi(t){return".".concat(t.split(" ").join("."))}var lo=Object.freeze({__proto__:null,getElementWindow:zi,getElementDocument:Wi,getOptions:_i,addClasses:Ui,removeClasses:Hi,classNamesToQuery:Gi}),et=zi,Ae=Wi,co=_i,nt=Ui,it=Hi,F=Gi,$t=function(){function t(e,n){n===void 0&&(n={});var i=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var s=et(i.el);i.scrollXTicking||(s.requestAnimationFrame(i.scrollX),i.scrollXTicking=!0),i.scrollYTicking||(s.requestAnimationFrame(i.scrollY),i.scrollYTicking=!0),i.isScrolling||(i.isScrolling=!0,nt(i.el,i.classNames.scrolling)),i.showScrollbar("x"),i.showScrollbar("y"),i.onStopScrolling()},this.scrollX=function(){i.axis.x.isOverflowing&&i.positionScrollbar("x"),i.scrollXTicking=!1},this.scrollY=function(){i.axis.y.isOverflowing&&i.positionScrollbar("y"),i.scrollYTicking=!1},this._onStopScrolling=function(){it(i.el,i.classNames.scrolling),i.options.autoHide&&(i.hideScrollbar("x"),i.hideScrollbar("y")),i.isScrolling=!1},this.onMouseEnter=function(){i.isMouseEntering||(nt(i.el,i.classNames.mouseEntered),i.showScrollbar("x"),i.showScrollbar("y"),i.isMouseEntering=!0),i.onMouseEntered()},this._onMouseEntered=function(){it(i.el,i.classNames.mouseEntered),i.options.autoHide&&(i.hideScrollbar("x"),i.hideScrollbar("y")),i.isMouseEntering=!1},this._onMouseMove=function(s){i.mouseX=s.clientX,i.mouseY=s.clientY,(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&i.onMouseMoveForAxis("x"),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&i.onMouseMoveForAxis("y")},this.onMouseLeave=function(){i.onMouseMove.cancel(),(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&i.onMouseLeaveForAxis("x"),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&i.onMouseLeaveForAxis("y"),i.mouseX=-1,i.mouseY=-1},this._onWindowResize=function(){i.scrollbarWidth=i.getScrollbarWidth(),i.hideNativeScrollbar()},this.onPointerEvent=function(s){if(!(!i.axis.x.track.el||!i.axis.y.track.el||!i.axis.x.scrollbar.el||!i.axis.y.scrollbar.el)){var o,r;i.axis.x.track.rect=i.axis.x.track.el.getBoundingClientRect(),i.axis.y.track.rect=i.axis.y.track.el.getBoundingClientRect(),(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&(o=i.isWithinBounds(i.axis.x.track.rect)),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&(r=i.isWithinBounds(i.axis.y.track.rect)),(o||r)&&(s.stopPropagation(),s.type==="pointerdown"&&s.pointerType!=="touch"&&(o&&(i.axis.x.scrollbar.rect=i.axis.x.scrollbar.el.getBoundingClientRect(),i.isWithinBounds(i.axis.x.scrollbar.rect)?i.onDragStart(s,"x"):i.onTrackClick(s,"x")),r&&(i.axis.y.scrollbar.rect=i.axis.y.scrollbar.el.getBoundingClientRect(),i.isWithinBounds(i.axis.y.scrollbar.rect)?i.onDragStart(s,"y"):i.onTrackClick(s,"y"))))}},this.drag=function(s){var o,r,a,l,c,u,h,d,f,p,m;if(!(!i.draggedAxis||!i.contentWrapperEl)){var b,x=i.axis[i.draggedAxis].track,v=(r=(o=x.rect)===null||o===void 0?void 0:o[i.axis[i.draggedAxis].sizeAttr])!==null&&r!==void 0?r:0,g=i.axis[i.draggedAxis].scrollbar,w=(l=(a=i.contentWrapperEl)===null||a===void 0?void 0:a[i.axis[i.draggedAxis].scrollSizeAttr])!==null&&l!==void 0?l:0,P=parseInt((u=(c=i.elStyles)===null||c===void 0?void 0:c[i.axis[i.draggedAxis].sizeAttr])!==null&&u!==void 0?u:"0px",10);s.preventDefault(),s.stopPropagation(),i.draggedAxis==="y"?b=s.pageY:b=s.pageX;var S=b-((d=(h=x.rect)===null||h===void 0?void 0:h[i.axis[i.draggedAxis].offsetAttr])!==null&&d!==void 0?d:0)-i.axis[i.draggedAxis].dragOffset;S=i.draggedAxis==="x"&&i.isRtl?((p=(f=x.rect)===null||f===void 0?void 0:f[i.axis[i.draggedAxis].sizeAttr])!==null&&p!==void 0?p:0)-g.size-S:S;var k=S/(v-g.size),C=k*(w-P);i.draggedAxis==="x"&&i.isRtl&&(C=!((m=t.getRtlHelpers())===null||m===void 0)&&m.isScrollingToNegative?-C:C),i.contentWrapperEl[i.axis[i.draggedAxis].scrollOffsetAttr]=C}},this.onEndDrag=function(s){var o=Ae(i.el),r=et(i.el);s.preventDefault(),s.stopPropagation(),it(i.el,i.classNames.dragging),o.removeEventListener("mousemove",i.drag,!0),o.removeEventListener("mouseup",i.onEndDrag,!0),i.removePreventClickId=r.setTimeout(function(){o.removeEventListener("click",i.preventClick,!0),o.removeEventListener("dblclick",i.preventClick,!0),i.removePreventClickId=null})},this.preventClick=function(s){s.preventDefault(),s.stopPropagation()},this.el=e,this.options=Tt(Tt({},t.defaultOptions),n),this.classNames=Tt(Tt({},t.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=ro(this._onMouseMove,64),this.onWindowResize=ne(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=ne(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=ne(this._onMouseEntered,this.stopScrollDelay),this.init()}return t.getRtlHelpers=function(){if(t.rtlHelpers)return t.rtlHelpers;var e=document.createElement("div");e.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=e.firstElementChild,i=n==null?void 0:n.firstElementChild;if(!i)return null;document.body.appendChild(n),n.scrollLeft=0;var s=t.getOffset(n),o=t.getOffset(i);n.scrollLeft=-999;var r=t.getOffset(i);return document.body.removeChild(n),t.rtlHelpers={isScrollOriginAtZero:s.left!==o.left,isScrollingToNegative:o.left!==r.left},t.rtlHelpers},t.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Vn()}catch{return Vn()}},t.getOffset=function(e){var n=e.getBoundingClientRect(),i=Ae(e),s=et(e);return{top:n.top+(s.pageYOffset||i.documentElement.scrollTop),left:n.left+(s.pageXOffset||i.documentElement.scrollLeft)}},t.prototype.init=function(){Fi&&(this.initDOM(),this.rtlHelpers=t.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},t.prototype.initDOM=function(){var e,n;this.wrapperEl=this.el.querySelector(F(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(F(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(F(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(F(this.classNames.offset)),this.maskEl=this.el.querySelector(F(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,F(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(F(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(F(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(F(this.classNames.track)).concat(F(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(F(this.classNames.track)).concat(F(this.classNames.vertical))),this.axis.x.scrollbar.el=((e=this.axis.x.track.el)===null||e===void 0?void 0:e.querySelector(F(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(F(this.classNames.scrollbar)))||null,this.options.autoHide||(nt(this.axis.x.scrollbar.el,this.classNames.visible),nt(this.axis.y.scrollbar.el,this.classNames.visible))},t.prototype.initListeners=function(){var e=this,n,i=et(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),i.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var s=!1,o=i.ResizeObserver||ResizeObserver;this.resizeObserver=new o(function(){s&&i.requestAnimationFrame(function(){e.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),i.requestAnimationFrame(function(){s=!0})}this.mutationObserver=new i.MutationObserver(function(){i.requestAnimationFrame(function(){e.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},t.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var e=et(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,i=this.heightAutoObserverEl.offsetHeight<=1,s=this.heightAutoObserverEl.offsetWidth<=1||n>0,o=this.contentWrapperEl.offsetWidth,r=this.elStyles.overflowX,a=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var l=this.contentEl.scrollHeight,c=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=i?"auto":"100%",this.placeholderEl.style.width=s?"".concat(n||c,"px"):"auto",this.placeholderEl.style.height="".concat(l,"px");var u=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&c>n,this.axis.y.isOverflowing=l>u,this.axis.x.isOverflowing=r==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=a==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var h=this.axis.x.isOverflowing?this.scrollbarWidth:0,d=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&c>o-d,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&l>u-h,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},t.prototype.getScrollbarSize=function(e){var n,i;if(e===void 0&&(e="y"),!this.axis[e].isOverflowing||!this.contentEl)return 0;var s=this.contentEl[this.axis[e].scrollSizeAttr],o=(i=(n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])!==null&&i!==void 0?i:0,r=o/s,a;return a=Math.max(~~(r*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(a=Math.min(a,this.options.scrollbarMaxSize)),a},t.prototype.positionScrollbar=function(e){var n,i,s;e===void 0&&(e="y");var o=this.axis[e].scrollbar;if(!(!this.axis[e].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var r=this.contentWrapperEl[this.axis[e].scrollSizeAttr],a=((n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])||0,l=parseInt(this.elStyles[this.axis[e].sizeAttr],10),c=this.contentWrapperEl[this.axis[e].scrollOffsetAttr];c=e==="x"&&this.isRtl&&(!((i=t.getRtlHelpers())===null||i===void 0)&&i.isScrollOriginAtZero)?-c:c,e==="x"&&this.isRtl&&(c=!((s=t.getRtlHelpers())===null||s===void 0)&&s.isScrollingToNegative?c:-c);var u=c/(r-l),h=~~((a-o.size)*u);h=e==="x"&&this.isRtl?-h+(a-o.size):h,o.el.style.transform=e==="x"?"translate3d(".concat(h,"px, 0, 0)"):"translate3d(0, ".concat(h,"px, 0)")}},t.prototype.toggleTrackVisibility=function(e){e===void 0&&(e="y");var n=this.axis[e].track.el,i=this.axis[e].scrollbar.el;!n||!i||!this.contentWrapperEl||(this.axis[e].isOverflowing||this.axis[e].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(e))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(e))),this.axis[e].isOverflowing?i.style.display="block":i.style.display="none")},t.prototype.showScrollbar=function(e){e===void 0&&(e="y"),this.axis[e].isOverflowing&&!this.axis[e].scrollbar.isVisible&&(nt(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!0)},t.prototype.hideScrollbar=function(e){e===void 0&&(e="y"),this.axis[e].isOverflowing&&this.axis[e].scrollbar.isVisible&&(it(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!1)},t.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},t.prototype.onMouseMoveForAxis=function(e){e===void 0&&(e="y");var n=this.axis[e];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(e),nt(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?nt(n.scrollbar.el,this.classNames.hover):it(n.scrollbar.el,this.classNames.hover)):(it(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)))},t.prototype.onMouseLeaveForAxis=function(e){e===void 0&&(e="y"),it(this.axis[e].track.el,this.classNames.hover),it(this.axis[e].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)},t.prototype.onDragStart=function(e,n){var i;n===void 0&&(n="y");var s=Ae(this.el),o=et(this.el),r=this.axis[n].scrollbar,a=n==="y"?e.pageY:e.pageX;this.axis[n].dragOffset=a-(((i=r.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])||0),this.draggedAxis=n,nt(this.el,this.classNames.dragging),s.addEventListener("mousemove",this.drag,!0),s.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(s.addEventListener("click",this.preventClick,!0),s.addEventListener("dblclick",this.preventClick,!0)):(o.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.prototype.onTrackClick=function(e,n){var i=this,s,o,r,a;n===void 0&&(n="y");var l=this.axis[n];if(!(!this.options.clickOnTrack||!l.scrollbar.el||!this.contentWrapperEl)){e.preventDefault();var c=et(this.el);this.axis[n].scrollbar.rect=l.scrollbar.el.getBoundingClientRect();var u=this.axis[n].scrollbar,h=(o=(s=u.rect)===null||s===void 0?void 0:s[this.axis[n].offsetAttr])!==null&&o!==void 0?o:0,d=parseInt((a=(r=this.elStyles)===null||r===void 0?void 0:r[this.axis[n].sizeAttr])!==null&&a!==void 0?a:"0px",10),f=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],p=n==="y"?this.mouseY-h:this.mouseX-h,m=p<0?-1:1,b=m===-1?f-d:f+d,x=40,v=function(){i.contentWrapperEl&&(m===-1?f>b&&(f-=x,i.contentWrapperEl[i.axis[n].scrollOffsetAttr]=f,c.requestAnimationFrame(v)):f<b&&(f+=x,i.contentWrapperEl[i.axis[n].scrollOffsetAttr]=f,c.requestAnimationFrame(v)))};v()}},t.prototype.getContentElement=function(){return this.contentEl},t.prototype.getScrollElement=function(){return this.contentWrapperEl},t.prototype.removeListeners=function(){var e=et(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},t.prototype.unMount=function(){this.removeListeners()},t.prototype.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},t.prototype.findChild=function(e,n){var i=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,function(s){return i.call(s,n)})[0]},t.rtlHelpers=null,t.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},t.getOptions=co,t.helpers=lo,t}(),W=function(){return W=Object.assign||function(e){for(var n,i=1,s=arguments.length;i<s;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},W.apply(this,arguments)};function uo(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(t);s<i.length;s++)e.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(t,i[s])&&(n[i[s]]=t[i[s]]);return n}var Yi=j.forwardRef(function(t,e){var n=t.children,i=t.scrollableNodeProps,s=i===void 0?{}:i,o=uo(t,["children","scrollableNodeProps"]),r=j.useRef(),a=j.useRef(),l=j.useRef(),c={},u={};Object.keys(o).forEach(function(f){Object.prototype.hasOwnProperty.call($t.defaultOptions,f)?c[f]=o[f]:u[f]=o[f]});var h=W(W({},$t.defaultOptions.classNames),c.classNames),d=W(W({},s),{className:"".concat(h.contentWrapper).concat(s.className?" ".concat(s.className):""),tabIndex:0,role:"region","aria-label":c.ariaLabel||$t.defaultOptions.ariaLabel});return j.useEffect(function(){var f;return a.current=d.ref?d.ref.current:a.current,r.current&&(f=new $t(r.current,W(W(W({},c),a.current&&{scrollableNode:a.current}),l.current&&{contentNode:l.current})),typeof e=="function"?e(f):e&&(e.current=f)),function(){f==null||f.unMount(),f=null,typeof e=="function"&&e(null)}},[]),j.createElement("div",W({"data-simplebar":"init",ref:r},u),j.createElement("div",{className:h.wrapper},j.createElement("div",{className:h.heightAutoObserverWrapperEl},j.createElement("div",{className:h.heightAutoObserverEl})),j.createElement("div",{className:h.mask},j.createElement("div",{className:h.offset},typeof n=="function"?n({scrollableNodeRef:a,scrollableNodeProps:W(W({},d),{ref:a}),contentNodeRef:l,contentNodeProps:{className:h.contentEl,ref:l}}):j.createElement("div",W({},d),j.createElement("div",{className:h.contentEl},n)))),j.createElement("div",{className:h.placeholder})),j.createElement("div",{className:"".concat(h.track," simplebar-horizontal")},j.createElement("div",{className:h.scrollbar})),j.createElement("div",{className:"".concat(h.track," simplebar-vertical")},j.createElement("div",{className:h.scrollbar})))});Yi.displayName="SimpleBar";const qi=T.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),me=T.createContext({}),Qe=T.createContext(null),ge=typeof document<"u",ho=ge?T.useLayoutEffect:T.useEffect,Xi=T.createContext({strict:!1}),Ze=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),fo="framerAppearId",Ki="data-"+Ze(fo);function po(t,e,n,i){const{visualElement:s}=T.useContext(me),o=T.useContext(Xi),r=T.useContext(Qe),a=T.useContext(qi).reducedMotion,l=T.useRef();i=i||o.renderer,!l.current&&i&&(l.current=i(t,{visualState:e,parent:s,props:n,presenceContext:r,blockInitialAnimation:r?r.initial===!1:!1,reducedMotionConfig:a}));const c=l.current;T.useInsertionEffect(()=>{c&&c.update(n,r)});const u=T.useRef(!!(n[Ki]&&!window.HandoffComplete));return ho(()=>{c&&(c.render(),u.current&&c.animationState&&c.animationState.animateChanges())}),T.useEffect(()=>{c&&(c.updateFeatures(),!u.current&&c.animationState&&c.animationState.animateChanges(),u.current&&(u.current=!1,window.HandoffComplete=!0))}),c}function At(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function mo(t,e,n){return T.useCallback(i=>{i&&t.mount&&t.mount(i),e&&(i?e.mount(i):e.unmount()),n&&(typeof n=="function"?n(i):At(n)&&(n.current=i))},[e])}function Wt(t){return typeof t=="string"||Array.isArray(t)}function ve(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Je=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tn=["initial",...Je];function ye(t){return ve(t.animate)||tn.some(e=>Wt(t[e]))}function $i(t){return!!(ye(t)||t.variants)}function go(t,e){if(ye(t)){const{initial:n,animate:i}=t;return{initial:n===!1||Wt(n)?n:void 0,animate:Wt(i)?i:void 0}}return t.inherit!==!1?e:{}}function vo(t){const{initial:e,animate:n}=go(t,T.useContext(me));return T.useMemo(()=>({initial:e,animate:n}),[En(e),En(n)])}function En(t){return Array.isArray(t)?t.join(" "):t}const Mn={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},_t={};for(const t in Mn)_t[t]={isEnabled:e=>Mn[t].some(n=>!!e[n])};function yo(t){for(const e in t)_t[e]={..._t[e],...t[e]}}const Qi=T.createContext({}),Zi=T.createContext({}),bo=Symbol.for("motionComponentSymbol");function xo({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:i,Component:s}){t&&yo(t);function o(a,l){let c;const u={...T.useContext(qi),...a,layoutId:wo(a)},{isStatic:h}=u,d=vo(a),f=i(a,h);if(!h&&ge){d.visualElement=po(s,f,u,e);const p=T.useContext(Zi),m=T.useContext(Xi).strict;d.visualElement&&(c=d.visualElement.loadFeatures(u,m,t,p))}return j.createElement(me.Provider,{value:d},c&&d.visualElement?j.createElement(c,{visualElement:d.visualElement,...u}):null,n(s,a,mo(f,d.visualElement,l),f,h,d.visualElement))}const r=T.forwardRef(o);return r[bo]=s,r}function wo({layoutId:t}){const e=T.useContext(Qi).id;return e&&t!==void 0?e+"-"+t:t}function So(t){function e(i,s={}){return xo(t(i,s))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(i,s)=>(n.has(s)||n.set(s,e(s)),n.get(s))})}const To=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function en(t){return typeof t!="string"||t.includes("-")?!1:!!(To.indexOf(t)>-1||/[A-Z]/.test(t))}const ae={};function Ao(t){Object.assign(ae,t)}const Ht=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],vt=new Set(Ht);function Ji(t,{layout:e,layoutId:n}){return vt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!ae[t]||t==="opacity")}const z=t=>!!(t&&t.getVelocity),Po={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Co=Ht.length;function ko(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},i,s){let o="";for(let r=0;r<Co;r++){const a=Ht[r];if(t[a]!==void 0){const l=Po[a]||a;o+=`${l}(${t[a]}) `}}return e&&!t.z&&(o+="translateZ(0)"),o=o.trim(),s?o=s(t,i?"":o):n&&i&&(o="none"),o}const ts=t=>e=>typeof e=="string"&&e.startsWith(t),es=ts("--"),Ne=ts("var(--"),Vo=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,Eo=(t,e)=>e&&typeof t=="number"?e.transform(t):t,lt=(t,e,n)=>Math.min(Math.max(n,t),e),yt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Nt={...yt,transform:t=>lt(0,1,t)},Qt={...yt,default:1},It=t=>Math.round(t*1e5)/1e5,be=/(-)?([\d]*\.?[\d])+/g,ns=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Mo=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Gt(t){return typeof t=="string"}const Yt=t=>({test:e=>Gt(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),st=Yt("deg"),q=Yt("%"),A=Yt("px"),Oo=Yt("vh"),Do=Yt("vw"),On={...q,parse:t=>q.parse(t)/100,transform:t=>q.transform(t*100)},Dn={...yt,transform:Math.round},is={borderWidth:A,borderTopWidth:A,borderRightWidth:A,borderBottomWidth:A,borderLeftWidth:A,borderRadius:A,radius:A,borderTopLeftRadius:A,borderTopRightRadius:A,borderBottomRightRadius:A,borderBottomLeftRadius:A,width:A,maxWidth:A,height:A,maxHeight:A,size:A,top:A,right:A,bottom:A,left:A,padding:A,paddingTop:A,paddingRight:A,paddingBottom:A,paddingLeft:A,margin:A,marginTop:A,marginRight:A,marginBottom:A,marginLeft:A,rotate:st,rotateX:st,rotateY:st,rotateZ:st,scale:Qt,scaleX:Qt,scaleY:Qt,scaleZ:Qt,skew:st,skewX:st,skewY:st,distance:A,translateX:A,translateY:A,translateZ:A,x:A,y:A,z:A,perspective:A,transformPerspective:A,opacity:Nt,originX:On,originY:On,originZ:A,zIndex:Dn,fillOpacity:Nt,strokeOpacity:Nt,numOctaves:Dn};function nn(t,e,n,i){const{style:s,vars:o,transform:r,transformOrigin:a}=t;let l=!1,c=!1,u=!0;for(const h in e){const d=e[h];if(es(h)){o[h]=d;continue}const f=is[h],p=Eo(d,f);if(vt.has(h)){if(l=!0,r[h]=p,!u)continue;d!==(f.default||0)&&(u=!1)}else h.startsWith("origin")?(c=!0,a[h]=p):s[h]=p}if(e.transform||(l||i?s.transform=ko(t.transform,n,u,i):s.transform&&(s.transform="none")),c){const{originX:h="50%",originY:d="50%",originZ:f=0}=a;s.transformOrigin=`${h} ${d} ${f}`}}const sn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ss(t,e,n){for(const i in e)!z(e[i])&&!Ji(i,n)&&(t[i]=e[i])}function jo({transformTemplate:t},e,n){return T.useMemo(()=>{const i=sn();return nn(i,e,{enableHardwareAcceleration:!n},t),Object.assign({},i.vars,i.style)},[e])}function Lo(t,e,n){const i=t.style||{},s={};return ss(s,i,t),Object.assign(s,jo(t,e,n)),t.transformValues?t.transformValues(s):s}function Ro(t,e,n){const i={},s=Lo(t,e,n);return t.drag&&t.dragListener!==!1&&(i.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=s,i}const Bo=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function le(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Bo.has(t)}let rs=t=>!le(t);function No(t){t&&(rs=e=>e.startsWith("on")?!le(e):t(e))}try{No(require("@emotion/is-prop-valid").default)}catch{}function Io(t,e,n){const i={};for(const s in t)s==="values"&&typeof t.values=="object"||(rs(s)||n===!0&&le(s)||!e&&!le(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}function jn(t,e,n){return typeof t=="string"?t:A.transform(e+n*t)}function Fo(t,e,n){const i=jn(e,t.x,t.width),s=jn(n,t.y,t.height);return`${i} ${s}`}const zo={offset:"stroke-dashoffset",array:"stroke-dasharray"},Wo={offset:"strokeDashoffset",array:"strokeDasharray"};function _o(t,e,n=1,i=0,s=!0){t.pathLength=1;const o=s?zo:Wo;t[o.offset]=A.transform(-i);const r=A.transform(e),a=A.transform(n);t[o.array]=`${r} ${a}`}function rn(t,{attrX:e,attrY:n,attrScale:i,originX:s,originY:o,pathLength:r,pathSpacing:a=1,pathOffset:l=0,...c},u,h,d){if(nn(t,c,u,d),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:f,style:p,dimensions:m}=t;f.transform&&(m&&(p.transform=f.transform),delete f.transform),m&&(s!==void 0||o!==void 0||p.transform)&&(p.transformOrigin=Fo(m,s!==void 0?s:.5,o!==void 0?o:.5)),e!==void 0&&(f.x=e),n!==void 0&&(f.y=n),i!==void 0&&(f.scale=i),r!==void 0&&_o(f,r,a,l,!1)}const os=()=>({...sn(),attrs:{}}),on=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Uo(t,e,n,i){const s=T.useMemo(()=>{const o=os();return rn(o,e,{enableHardwareAcceleration:!1},on(i),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};ss(o,t.style,t),s.style={...o,...s.style}}return s}function Ho(t=!1){return(n,i,s,{latestValues:o},r)=>{const l=(en(n)?Uo:Ro)(i,o,r,n),u={...Io(i,typeof n=="string",t),...l,ref:s},{children:h}=i,d=T.useMemo(()=>z(h)?h.get():h,[h]);return T.createElement(n,{...u,children:d})}}function as(t,{style:e,vars:n},i,s){Object.assign(t.style,e,s&&s.getProjectionStyles(i));for(const o in n)t.style.setProperty(o,n[o])}const ls=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function cs(t,e,n,i){as(t,e,void 0,i);for(const s in e.attrs)t.setAttribute(ls.has(s)?s:Ze(s),e.attrs[s])}function an(t,e){const{style:n}=t,i={};for(const s in n)(z(n[s])||e.style&&z(e.style[s])||Ji(s,t))&&(i[s]=n[s]);return i}function us(t,e){const n=an(t,e);for(const i in t)if(z(t[i])||z(e[i])){const s=Ht.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;n[s]=t[i]}return n}function ln(t,e,n,i={},s={}){return typeof e=="function"&&(e=e(n!==void 0?n:t.custom,i,s)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(n!==void 0?n:t.custom,i,s)),e}function Go(t){const e=T.useRef(null);return e.current===null&&(e.current=t()),e.current}const ce=t=>Array.isArray(t),Yo=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),qo=t=>ce(t)?t[t.length-1]||0:t;function ie(t){const e=z(t)?t.get():t;return Yo(e)?e.toValue():e}function Xo({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},i,s,o){const r={latestValues:Ko(i,s,o,t),renderState:e()};return n&&(r.mount=a=>n(i,a,r)),r}const hs=t=>(e,n)=>{const i=T.useContext(me),s=T.useContext(Qe),o=()=>Xo(t,e,i,s);return n?o():Go(o)};function Ko(t,e,n,i){const s={},o=i(t,{});for(const d in o)s[d]=ie(o[d]);let{initial:r,animate:a}=t;const l=ye(t),c=$i(t);e&&c&&!l&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||r===!1;const h=u?a:r;return h&&typeof h!="boolean"&&!ve(h)&&(Array.isArray(h)?h:[h]).forEach(f=>{const p=ln(t,f);if(!p)return;const{transitionEnd:m,transition:b,...x}=p;for(const v in x){let g=x[v];if(Array.isArray(g)){const w=u?g.length-1:0;g=g[w]}g!==null&&(s[v]=g)}for(const v in m)s[v]=m[v]}),s}const D=t=>t;class Ln{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const n=this.order.indexOf(e);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function $o(t){let e=new Ln,n=new Ln,i=0,s=!1,o=!1;const r=new WeakSet,a={schedule:(l,c=!1,u=!1)=>{const h=u&&s,d=h?e:n;return c&&r.add(l),d.add(l)&&h&&s&&(i=e.order.length),l},cancel:l=>{n.remove(l),r.delete(l)},process:l=>{if(s){o=!0;return}if(s=!0,[e,n]=[n,e],n.clear(),i=e.order.length,i)for(let c=0;c<i;c++){const u=e.order[c];u(l),r.has(u)&&(a.schedule(u),t())}s=!1,o&&(o=!1,a.process(l))}};return a}const Zt=["prepare","read","update","preRender","render","postRender"],Qo=40;function Zo(t,e){let n=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=Zt.reduce((h,d)=>(h[d]=$o(()=>n=!0),h),{}),r=h=>o[h].process(s),a=()=>{const h=performance.now();n=!1,s.delta=i?1e3/60:Math.max(Math.min(h-s.timestamp,Qo),1),s.timestamp=h,s.isProcessing=!0,Zt.forEach(r),s.isProcessing=!1,n&&e&&(i=!1,t(a))},l=()=>{n=!0,i=!0,s.isProcessing||t(a)};return{schedule:Zt.reduce((h,d)=>{const f=o[d];return h[d]=(p,m=!1,b=!1)=>(n||l(),f.schedule(p,m,b)),h},{}),cancel:h=>Zt.forEach(d=>o[d].cancel(h)),state:s,steps:o}}const{schedule:E,cancel:J,state:B,steps:Pe}=Zo(typeof requestAnimationFrame<"u"?requestAnimationFrame:D,!0),Jo={useVisualState:hs({scrapeMotionValuesFromProps:us,createRenderState:os,onMount:(t,e,{renderState:n,latestValues:i})=>{E.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),E.render(()=>{rn(n,i,{enableHardwareAcceleration:!1},on(e.tagName),t.transformTemplate),cs(e,n)})}})},ta={useVisualState:hs({scrapeMotionValuesFromProps:an,createRenderState:sn})};function ea(t,{forwardMotionProps:e=!1},n,i){return{...en(t)?Jo:ta,preloadedFeatures:n,useRender:Ho(e),createVisualElement:i,Component:t}}function $(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}const ds=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function xe(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const na=t=>e=>ds(e)&&t(e,xe(e));function Q(t,e,n,i){return $(t,e,na(n),i)}const ia=(t,e)=>n=>e(t(n)),ot=(...t)=>t.reduce(ia);function fs(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const Rn=fs("dragHorizontal"),Bn=fs("dragVertical");function ps(t){let e=!1;if(t==="y")e=Bn();else if(t==="x")e=Rn();else{const n=Rn(),i=Bn();n&&i?e=()=>{n(),i()}:(n&&n(),i&&i())}return e}function ms(){const t=ps(!0);return t?(t(),!1):!0}class ht{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Nn(t,e){const n="pointer"+(e?"enter":"leave"),i="onHover"+(e?"Start":"End"),s=(o,r)=>{if(o.pointerType==="touch"||ms())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e),a[i]&&E.update(()=>a[i](o,r))};return Q(t.current,n,s,{passive:!t.getProps()[i]})}class sa extends ht{mount(){this.unmount=ot(Nn(this.node,!0),Nn(this.node,!1))}unmount(){}}class ra extends ht{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ot($(this.node.current,"focus",()=>this.onFocus()),$(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const gs=(t,e)=>e?t===e?!0:gs(t,e.parentElement):!1;function Ce(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,xe(n))}class oa extends ht{constructor(){super(...arguments),this.removeStartListeners=D,this.removeEndListeners=D,this.removeAccessibleListeners=D,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const i=this.node.getProps(),o=Q(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:u,globalTapTarget:h}=this.node.getProps();E.update(()=>{!h&&!gs(this.node.current,a.target)?u&&u(a,l):c&&c(a,l)})},{passive:!(i.onTap||i.onPointerUp)}),r=Q(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=ot(o,r),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=o=>{if(o.key!=="Enter"||this.isPressing)return;const r=a=>{a.key!=="Enter"||!this.checkPressEnd()||Ce("up",(l,c)=>{const{onTap:u}=this.node.getProps();u&&E.update(()=>u(l,c))})};this.removeEndListeners(),this.removeEndListeners=$(this.node.current,"keyup",r),Ce("down",(a,l)=>{this.startPress(a,l)})},n=$(this.node.current,"keydown",e),i=()=>{this.isPressing&&Ce("cancel",(o,r)=>this.cancelPress(o,r))},s=$(this.node.current,"blur",i);this.removeAccessibleListeners=ot(n,s)}}startPress(e,n){this.isPressing=!0;const{onTapStart:i,whileTap:s}=this.node.getProps();s&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&E.update(()=>i(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ms()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:i}=this.node.getProps();i&&E.update(()=>i(e,n))}mount(){const e=this.node.getProps(),n=Q(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),i=$(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ot(n,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Ie=new WeakMap,ke=new WeakMap,aa=t=>{const e=Ie.get(t.target);e&&e(t)},la=t=>{t.forEach(aa)};function ca({root:t,...e}){const n=t||document;ke.has(n)||ke.set(n,{});const i=ke.get(n),s=JSON.stringify(e);return i[s]||(i[s]=new IntersectionObserver(la,{root:t,...e})),i[s]}function ua(t,e,n){const i=ca(e);return Ie.set(t,n),i.observe(t),()=>{Ie.delete(t),i.unobserve(t)}}const ha={some:0,all:1};class da extends ht{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:s="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:i,threshold:typeof s=="number"?s:ha[s]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:h}=this.node.getProps(),d=c?u:h;d&&d(l)};return ua(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(fa(e,n))&&this.startObserver()}unmount(){}}function fa({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const pa={inView:{Feature:da},tap:{Feature:oa},focus:{Feature:ra},hover:{Feature:sa}};function vs(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}function ma(t){const e={};return t.values.forEach((n,i)=>e[i]=n.get()),e}function ga(t){const e={};return t.values.forEach((n,i)=>e[i]=n.getVelocity()),e}function we(t,e,n){const i=t.getProps();return ln(i,e,n!==void 0?n:i.custom,ma(t),ga(t))}let qt=D,Y=D;process.env.NODE_ENV!=="production"&&(qt=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},Y=(t,e)=>{if(!t)throw new Error(e)});const at=t=>t*1e3,Z=t=>t/1e3,va={current:!1},ys=t=>Array.isArray(t)&&typeof t[0]=="number";function bs(t){return!!(!t||typeof t=="string"&&xs[t]||ys(t)||Array.isArray(t)&&t.every(bs))}const Bt=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,xs={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Bt([0,.65,.55,1]),circOut:Bt([.55,0,1,.45]),backIn:Bt([.31,.01,.66,-.59]),backOut:Bt([.33,1.53,.69,.99])};function ws(t){if(t)return ys(t)?Bt(t):Array.isArray(t)?t.map(ws):xs[t]}function ya(t,e,n,{delay:i=0,duration:s,repeat:o=0,repeatType:r="loop",ease:a,times:l}={}){const c={[e]:n};l&&(c.offset=l);const u=ws(a);return Array.isArray(u)&&(c.easing=u),t.animate(c,{delay:i,duration:s,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"})}function ba(t,{repeat:e,repeatType:n="loop"}){const i=e&&n!=="loop"&&e%2===1?0:t.length-1;return t[i]}const Ss=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,xa=1e-7,wa=12;function Sa(t,e,n,i,s){let o,r,a=0;do r=e+(n-e)/2,o=Ss(r,i,s)-t,o>0?n=r:e=r;while(Math.abs(o)>xa&&++a<wa);return r}function Xt(t,e,n,i){if(t===e&&n===i)return D;const s=o=>Sa(o,0,1,t,n);return o=>o===0||o===1?o:Ss(s(o),e,i)}const Ta=Xt(.42,0,1,1),Aa=Xt(0,0,.58,1),Ts=Xt(.42,0,.58,1),Pa=t=>Array.isArray(t)&&typeof t[0]!="number",As=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Ps=t=>e=>1-t(1-e),cn=t=>1-Math.sin(Math.acos(t)),Cs=Ps(cn),Ca=As(cn),ks=Xt(.33,1.53,.69,.99),un=Ps(ks),ka=As(un),Va=t=>(t*=2)<1?.5*un(t):.5*(2-Math.pow(2,-10*(t-1))),In={linear:D,easeIn:Ta,easeInOut:Ts,easeOut:Aa,circIn:cn,circInOut:Ca,circOut:Cs,backIn:un,backInOut:ka,backOut:ks,anticipate:Va},Fn=t=>{if(Array.isArray(t)){Y(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,i,s]=t;return Xt(e,n,i,s)}else if(typeof t=="string")return Y(In[t]!==void 0,`Invalid easing type '${t}'`),In[t];return t},hn=(t,e)=>n=>!!(Gt(n)&&Mo.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),Vs=(t,e,n)=>i=>{if(!Gt(i))return i;const[s,o,r,a]=i.match(be);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},Ea=t=>lt(0,255,t),Ve={...yt,transform:t=>Math.round(Ea(t))},gt={test:hn("rgb","red"),parse:Vs("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Ve.transform(t)+", "+Ve.transform(e)+", "+Ve.transform(n)+", "+It(Nt.transform(i))+")"};function Ma(t){let e="",n="",i="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}}const Fe={test:hn("#"),parse:Ma,transform:gt.transform},Pt={test:hn("hsl","hue"),parse:Vs("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+q.transform(It(e))+", "+q.transform(It(n))+", "+It(Nt.transform(i))+")"},I={test:t=>gt.test(t)||Fe.test(t)||Pt.test(t),parse:t=>gt.test(t)?gt.parse(t):Pt.test(t)?Pt.parse(t):Fe.parse(t),transform:t=>Gt(t)?t:t.hasOwnProperty("red")?gt.transform(t):Pt.transform(t)},O=(t,e,n)=>-n*t+n*e+t;function Ee(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Oa({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let s=0,o=0,r=0;if(!e)s=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;s=Ee(l,a,t+1/3),o=Ee(l,a,t),r=Ee(l,a,t-1/3)}return{red:Math.round(s*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:i}}const Me=(t,e,n)=>{const i=t*t;return Math.sqrt(Math.max(0,n*(e*e-i)+i))},Da=[Fe,gt,Pt],ja=t=>Da.find(e=>e.test(t));function zn(t){const e=ja(t);Y(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let n=e.parse(t);return e===Pt&&(n=Oa(n)),n}const Es=(t,e)=>{const n=zn(t),i=zn(e),s={...n};return o=>(s.red=Me(n.red,i.red,o),s.green=Me(n.green,i.green,o),s.blue=Me(n.blue,i.blue,o),s.alpha=O(n.alpha,i.alpha,o),gt.transform(s))};function La(t){var e,n;return isNaN(t)&&Gt(t)&&(((e=t.match(be))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(ns))===null||n===void 0?void 0:n.length)||0)>0}const Ms={regex:Vo,countKey:"Vars",token:"${v}",parse:D},Os={regex:ns,countKey:"Colors",token:"${c}",parse:I.parse},Ds={regex:be,countKey:"Numbers",token:"${n}",parse:yt.parse};function Oe(t,{regex:e,countKey:n,token:i,parse:s}){const o=t.tokenised.match(e);o&&(t["num"+n]=o.length,t.tokenised=t.tokenised.replace(e,i),t.values.push(...o.map(s)))}function ue(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&Oe(n,Ms),Oe(n,Os),Oe(n,Ds),n}function js(t){return ue(t).values}function Ls(t){const{values:e,numColors:n,numVars:i,tokenised:s}=ue(t),o=e.length;return r=>{let a=s;for(let l=0;l<o;l++)l<i?a=a.replace(Ms.token,r[l]):l<i+n?a=a.replace(Os.token,I.transform(r[l])):a=a.replace(Ds.token,It(r[l]));return a}}const Ra=t=>typeof t=="number"?0:t;function Ba(t){const e=js(t);return Ls(t)(e.map(Ra))}const ct={test:La,parse:js,createTransformer:Ls,getAnimatableNone:Ba},Rs=(t,e)=>n=>`${n>0?e:t}`;function Bs(t,e){return typeof t=="number"?n=>O(t,e,n):I.test(t)?Es(t,e):t.startsWith("var(")?Rs(t,e):Is(t,e)}const Ns=(t,e)=>{const n=[...t],i=n.length,s=t.map((o,r)=>Bs(o,e[r]));return o=>{for(let r=0;r<i;r++)n[r]=s[r](o);return n}},Na=(t,e)=>{const n={...t,...e},i={};for(const s in n)t[s]!==void 0&&e[s]!==void 0&&(i[s]=Bs(t[s],e[s]));return s=>{for(const o in i)n[o]=i[o](s);return n}},Is=(t,e)=>{const n=ct.createTransformer(e),i=ue(t),s=ue(e);return i.numVars===s.numVars&&i.numColors===s.numColors&&i.numNumbers>=s.numNumbers?ot(Ns(i.values,s.values),n):(qt(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Rs(t,e))},Ut=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i},Wn=(t,e)=>n=>O(t,e,n);function Ia(t){return typeof t=="number"?Wn:typeof t=="string"?I.test(t)?Es:Is:Array.isArray(t)?Ns:typeof t=="object"?Na:Wn}function Fa(t,e,n){const i=[],s=n||Ia(t[0]),o=t.length-1;for(let r=0;r<o;r++){let a=s(t[r],t[r+1]);if(e){const l=Array.isArray(e)?e[r]||D:e;a=ot(l,a)}i.push(a)}return i}function Fs(t,e,{clamp:n=!0,ease:i,mixer:s}={}){const o=t.length;if(Y(o===e.length,"Both input and output ranges must be the same length"),o===1)return()=>e[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const r=Fa(e,i,s),a=r.length,l=c=>{let u=0;if(a>1)for(;u<t.length-2&&!(c<t[u+1]);u++);const h=Ut(t[u],t[u+1],c);return r[u](h)};return n?c=>l(lt(t[0],t[o-1],c)):l}function za(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const s=Ut(0,e,i);t.push(O(n,1,s))}}function Wa(t){const e=[0];return za(e,t.length-1),e}function _a(t,e){return t.map(n=>n*e)}function Ua(t,e){return t.map(()=>e||Ts).splice(0,t.length-1)}function he({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const s=Pa(i)?i.map(Fn):Fn(i),o={done:!1,value:e[0]},r=_a(n&&n.length===e.length?n:Wa(e),t),a=Fs(r,e,{ease:Array.isArray(s)?s:Ua(e,s)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}function zs(t,e){return e?t*(1e3/e):0}const Ha=5;function Ws(t,e,n){const i=Math.max(e-Ha,0);return zs(n-t(i),e-i)}const De=.001,Ga=.01,_n=10,Ya=.05,qa=1;function Xa({duration:t=800,bounce:e=.25,velocity:n=0,mass:i=1}){let s,o;qt(t<=at(_n),"Spring duration must be 10 seconds or less");let r=1-e;r=lt(Ya,qa,r),t=lt(Ga,_n,Z(t)),r<1?(s=c=>{const u=c*r,h=u*t,d=u-n,f=ze(c,r),p=Math.exp(-h);return De-d/f*p},o=c=>{const h=c*r*t,d=h*n+n,f=Math.pow(r,2)*Math.pow(c,2)*t,p=Math.exp(-h),m=ze(Math.pow(c,2),r);return(-s(c)+De>0?-1:1)*((d-f)*p)/m}):(s=c=>{const u=Math.exp(-c*t),h=(c-n)*t+1;return-De+u*h},o=c=>{const u=Math.exp(-c*t),h=(n-c)*(t*t);return u*h});const a=5/t,l=$a(s,o,a);if(t=at(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const c=Math.pow(l,2)*i;return{stiffness:c,damping:r*2*Math.sqrt(i*c),duration:t}}}const Ka=12;function $a(t,e,n){let i=n;for(let s=1;s<Ka;s++)i=i-t(i)/e(i);return i}function ze(t,e){return t*Math.sqrt(1-e*e)}const Qa=["duration","bounce"],Za=["stiffness","damping","mass"];function Un(t,e){return e.some(n=>t[n]!==void 0)}function Ja(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!Un(t,Za)&&Un(t,Qa)){const n=Xa(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function _s({keyframes:t,restDelta:e,restSpeed:n,...i}){const s=t[0],o=t[t.length-1],r={done:!1,value:s},{stiffness:a,damping:l,mass:c,duration:u,velocity:h,isResolvedFromDuration:d}=Ja({...i,velocity:-Z(i.velocity||0)}),f=h||0,p=l/(2*Math.sqrt(a*c)),m=o-s,b=Z(Math.sqrt(a/c)),x=Math.abs(m)<5;n||(n=x?.01:2),e||(e=x?.005:.5);let v;if(p<1){const g=ze(b,p);v=w=>{const P=Math.exp(-p*b*w);return o-P*((f+p*b*m)/g*Math.sin(g*w)+m*Math.cos(g*w))}}else if(p===1)v=g=>o-Math.exp(-b*g)*(m+(f+b*m)*g);else{const g=b*Math.sqrt(p*p-1);v=w=>{const P=Math.exp(-p*b*w),S=Math.min(g*w,300);return o-P*((f+p*b*m)*Math.sinh(S)+g*m*Math.cosh(S))/g}}return{calculatedDuration:d&&u||null,next:g=>{const w=v(g);if(d)r.done=g>=u;else{let P=f;g!==0&&(p<1?P=Ws(v,g,w):P=0);const S=Math.abs(P)<=n,k=Math.abs(o-w)<=e;r.done=S&&k}return r.value=r.done?o:w,r}}}function Hn({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:c=.5,restSpeed:u}){const h=t[0],d={done:!1,value:h},f=C=>a!==void 0&&C<a||l!==void 0&&C>l,p=C=>a===void 0?l:l===void 0||Math.abs(a-C)<Math.abs(l-C)?a:l;let m=n*e;const b=h+m,x=r===void 0?b:r(b);x!==b&&(m=x-h);const v=C=>-m*Math.exp(-C/i),g=C=>x+v(C),w=C=>{const V=v(C),X=g(C);d.done=Math.abs(V)<=c,d.value=d.done?x:X};let P,S;const k=C=>{f(d.value)&&(P=C,S=_s({keyframes:[d.value,p(d.value)],velocity:Ws(g,C,d.value),damping:s,stiffness:o,restDelta:c,restSpeed:u}))};return k(0),{calculatedDuration:null,next:C=>{let V=!1;return!S&&P===void 0&&(V=!0,w(C),k(C)),P!==void 0&&C>P?S.next(C-P):(!V&&w(C),d)}}}const tl=t=>{const e=({timestamp:n})=>t(n);return{start:()=>E.update(e,!0),stop:()=>J(e),now:()=>B.isProcessing?B.timestamp:performance.now()}},Gn=2e4;function Yn(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<Gn;)e+=n,i=t.next(e);return e>=Gn?1/0:e}const el={decay:Hn,inertia:Hn,tween:he,keyframes:he,spring:_s};function de({autoplay:t=!0,delay:e=0,driver:n=tl,keyframes:i,type:s="keyframes",repeat:o=0,repeatDelay:r=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:h,...d}){let f=1,p=!1,m,b;const x=()=>{b=new Promise(M=>{m=M})};x();let v;const g=el[s]||he;let w;g!==he&&typeof i[0]!="number"&&(process.env.NODE_ENV!=="production"&&Y(i.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${i}`),w=Fs([0,100],i,{clamp:!1}),i=[0,100]);const P=g({...d,keyframes:i});let S;a==="mirror"&&(S=g({...d,keyframes:[...i].reverse(),velocity:-(d.velocity||0)}));let k="idle",C=null,V=null,X=null;P.calculatedDuration===null&&o&&(P.calculatedDuration=Yn(P));const{calculatedDuration:bt}=P;let G=1/0,K=1/0;bt!==null&&(G=bt+r,K=G*(o+1)-r);let N=0;const xt=M=>{if(V===null)return;f>0&&(V=Math.min(V,M)),f<0&&(V=Math.min(M-K/f,V)),C!==null?N=C:N=Math.round(M-V)*f;const Ot=N-e*(f>=0?1:-1),xn=f>=0?Ot<0:Ot>K;N=Math.max(Ot,0),k==="finished"&&C===null&&(N=K);let wn=N,Sn=P;if(o){const Se=Math.min(N,K)/G;let Kt=Math.floor(Se),dt=Se%1;!dt&&Se>=1&&(dt=1),dt===1&&Kt--,Kt=Math.min(Kt,o+1),!!(Kt%2)&&(a==="reverse"?(dt=1-dt,r&&(dt-=r/G)):a==="mirror"&&(Sn=S)),wn=lt(0,1,dt)*G}const Dt=xn?{done:!1,value:i[0]}:Sn.next(wn);w&&(Dt.value=w(Dt.value));let{done:Tn}=Dt;!xn&&bt!==null&&(Tn=f>=0?N>=K:N<=0);const vr=C===null&&(k==="finished"||k==="running"&&Tn);return h&&h(Dt.value),vr&&Mt(),Dt},R=()=>{v&&v.stop(),v=void 0},tt=()=>{k="idle",R(),m(),x(),V=X=null},Mt=()=>{k="finished",u&&u(),R(),m()},wt=()=>{if(p)return;v||(v=n(xt));const M=v.now();l&&l(),C!==null?V=M-C:(!V||k==="finished")&&(V=M),k==="finished"&&x(),X=V,C=null,k="running",v.start()};t&&wt();const bn={then(M,Ot){return b.then(M,Ot)},get time(){return Z(N)},set time(M){M=at(M),N=M,C!==null||!v||f===0?C=M:V=v.now()-M/f},get duration(){const M=P.calculatedDuration===null?Yn(P):P.calculatedDuration;return Z(M)},get speed(){return f},set speed(M){M===f||!v||(f=M,bn.time=Z(N))},get state(){return k},play:wt,pause:()=>{k="paused",C=N},stop:()=>{p=!0,k!=="idle"&&(k="idle",c&&c(),tt())},cancel:()=>{X!==null&&xt(X),tt()},complete:()=>{k="finished"},sample:M=>(V=0,xt(M))};return bn}function nl(t){let e;return()=>(e===void 0&&(e=t()),e)}const il=nl(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),sl=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Jt=10,rl=2e4,ol=(t,e)=>e.type==="spring"||t==="backgroundColor"||!bs(e.ease);function al(t,e,{onUpdate:n,onComplete:i,...s}){if(!(il()&&sl.has(e)&&!s.repeatDelay&&s.repeatType!=="mirror"&&s.damping!==0&&s.type!=="inertia"))return!1;let r=!1,a,l,c=!1;const u=()=>{l=new Promise(g=>{a=g})};u();let{keyframes:h,duration:d=300,ease:f,times:p}=s;if(ol(e,s)){const g=de({...s,repeat:0,delay:0});let w={done:!1,value:h[0]};const P=[];let S=0;for(;!w.done&&S<rl;)w=g.sample(S),P.push(w.value),S+=Jt;p=void 0,h=P,d=S-Jt,f="linear"}const m=ya(t.owner.current,e,h,{...s,duration:d,ease:f,times:p}),b=()=>{c=!1,m.cancel()},x=()=>{c=!0,E.update(b),a(),u()};return m.onfinish=()=>{c||(t.set(ba(h,s)),i&&i(),x())},{then(g,w){return l.then(g,w)},attachTimeline(g){return m.timeline=g,m.onfinish=null,D},get time(){return Z(m.currentTime||0)},set time(g){m.currentTime=at(g)},get speed(){return m.playbackRate},set speed(g){m.playbackRate=g},get duration(){return Z(d)},play:()=>{r||(m.play(),J(b))},pause:()=>m.pause(),stop:()=>{if(r=!0,m.playState==="idle")return;const{currentTime:g}=m;if(g){const w=de({...s,autoplay:!1});t.setWithVelocity(w.sample(g-Jt).value,w.sample(g).value,Jt)}x()},complete:()=>{c||m.finish()},cancel:x}}function ll({keyframes:t,delay:e,onUpdate:n,onComplete:i}){const s=()=>(n&&n(t[t.length-1]),i&&i(),{time:0,speed:1,duration:0,play:D,pause:D,stop:D,then:o=>(o(),Promise.resolve()),cancel:D,complete:D});return e?de({keyframes:[0,1],duration:0,delay:e,onComplete:s}):s()}const cl={type:"spring",stiffness:500,damping:25,restSpeed:10},ul=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),hl={type:"keyframes",duration:.8},dl={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},fl=(t,{keyframes:e})=>e.length>2?hl:vt.has(t)?t.startsWith("scale")?ul(e[1]):cl:dl,We=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ct.test(e)||e==="0")&&!e.startsWith("url(")),pl=new Set(["brightness","contrast","saturate","opacity"]);function ml(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(be)||[];if(!i)return t;const s=n.replace(i,"");let o=pl.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+s+")"}const gl=/([a-z-]*)\(.*?\)/g,_e={...ct,getAnimatableNone:t=>{const e=t.match(gl);return e?e.map(ml).join(" "):t}},vl={...is,color:I,backgroundColor:I,outlineColor:I,fill:I,stroke:I,borderColor:I,borderTopColor:I,borderRightColor:I,borderBottomColor:I,borderLeftColor:I,filter:_e,WebkitFilter:_e},dn=t=>vl[t];function Us(t,e){let n=dn(t);return n!==_e&&(n=ct),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Hs=t=>/^0[^.\s]+$/.test(t);function yl(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||Hs(t)}function bl(t,e,n,i){const s=We(e,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const r=i.from!==void 0?i.from:t.get();let a;const l=[];for(let c=0;c<o.length;c++)o[c]===null&&(o[c]=c===0?r:o[c-1]),yl(o[c])&&l.push(c),typeof o[c]=="string"&&o[c]!=="none"&&o[c]!=="0"&&(a=o[c]);if(s&&l.length&&a)for(let c=0;c<l.length;c++){const u=l[c];o[u]=Us(e,a)}return o}function xl({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}function fn(t,e){return t[e]||t.default||t}const wl={skipAnimations:!1},pn=(t,e,n,i={})=>s=>{const o=fn(i,t)||{},r=o.delay||i.delay||0;let{elapsed:a=0}=i;a=a-at(r);const l=bl(e,t,n,o),c=l[0],u=l[l.length-1],h=We(t,c),d=We(t,u);qt(h===d,`You are trying to animate ${t} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);let f={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:p=>{e.set(p),o.onUpdate&&o.onUpdate(p)},onComplete:()=>{s(),o.onComplete&&o.onComplete()}};if(xl(o)||(f={...f,...fl(t,f)}),f.duration&&(f.duration=at(f.duration)),f.repeatDelay&&(f.repeatDelay=at(f.repeatDelay)),!h||!d||va.current||o.type===!1||wl.skipAnimations)return ll(f);if(!i.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const p=al(e,t,f);if(p)return p}return de(f)};function fe(t){return!!(z(t)&&t.add)}const Gs=t=>/^\-?\d*\.?\d+$/.test(t);function mn(t,e){t.indexOf(e)===-1&&t.push(e)}function gn(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class vn{constructor(){this.subscriptions=[]}add(e){return mn(this.subscriptions,e),()=>gn(this.subscriptions,e)}notify(e,n,i){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](e,n,i);else for(let o=0;o<s;o++){const r=this.subscriptions[o];r&&r(e,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const qn=new Set;function yn(t,e,n){t||qn.has(e)||(console.warn(e),n&&console.warn(n),qn.add(e))}const Sl=t=>!isNaN(parseFloat(t));class Tl{constructor(e,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(i,s=!0)=>{this.prev=this.current,this.current=i;const{delta:o,timestamp:r}=B;this.lastUpdated!==r&&(this.timeDelta=o,this.lastUpdated=r,E.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>E.postRender(this.velocityCheck),this.velocityCheck=({timestamp:i})=>{i!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=Sl(this.current),this.owner=n.owner}onChange(e){return process.env.NODE_ENV!=="production"&&yn(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new vn);const i=this.events[e].add(n);return e==="change"?()=>{i(),E.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,i){this.set(n),this.prev=e,this.timeDelta=i}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?zs(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Vt(t,e){return new Tl(t,e)}const Ys=t=>e=>e.test(t),Al={test:t=>t==="auto",parse:t=>t},qs=[yt,A,q,st,Do,Oo,Al],Lt=t=>qs.find(Ys(t)),Pl=[...qs,I,ct],Cl=t=>Pl.find(Ys(t));function kl(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Vt(n))}function Vl(t,e){const n=we(t,e);let{transitionEnd:i={},transition:s={},...o}=n?t.makeTargetAnimatable(n,!1):{};o={...o,...i};for(const r in o){const a=qo(o[r]);kl(t,r,a)}}function El(t,e,n){var i,s;const o=Object.keys(e).filter(a=>!t.hasValue(a)),r=o.length;if(r)for(let a=0;a<r;a++){const l=o[a],c=e[l];let u=null;Array.isArray(c)&&(u=c[0]),u===null&&(u=(s=(i=n[l])!==null&&i!==void 0?i:t.readValue(l))!==null&&s!==void 0?s:e[l]),u!=null&&(typeof u=="string"&&(Gs(u)||Hs(u))?u=parseFloat(u):!Cl(u)&&ct.test(c)&&(u=Us(l,c)),t.addValue(l,Vt(u,{owner:t})),n[l]===void 0&&(n[l]=u),u!==null&&t.setBaseTarget(l,u))}}function Ml(t,e){return e?(e[t]||e.default||e).from:void 0}function Ol(t,e,n){const i={};for(const s in t){const o=Ml(s,e);if(o!==void 0)i[s]=o;else{const r=n.getValue(s);r&&(i[s]=r.get())}}return i}function Dl({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function jl(t,e){const n=t.get();if(Array.isArray(e)){for(let i=0;i<e.length;i++)if(e[i]!==n)return!0}else return n!==e}function Xs(t,e,{delay:n=0,transitionOverride:i,type:s}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:r,...a}=t.makeTargetAnimatable(e);const l=t.getValue("willChange");i&&(o=i);const c=[],u=s&&t.animationState&&t.animationState.getState()[s];for(const h in a){const d=t.getValue(h),f=a[h];if(!d||f===void 0||u&&Dl(u,h))continue;const p={delay:n,elapsed:0,...fn(o||{},h)};if(window.HandoffAppearAnimations){const x=t.getProps()[Ki];if(x){const v=window.HandoffAppearAnimations(x,h,d,E);v!==null&&(p.elapsed=v,p.isHandoff=!0)}}let m=!p.isHandoff&&!jl(d,f);if(p.type==="spring"&&(d.getVelocity()||p.velocity)&&(m=!1),d.animation&&(m=!1),m)continue;d.start(pn(h,d,f,t.shouldReduceMotion&&vt.has(h)?{type:!1}:p));const b=d.animation;fe(l)&&(l.add(h),b.then(()=>l.remove(h))),c.push(b)}return r&&Promise.all(c).then(()=>{r&&Vl(t,r)}),c}function Ue(t,e,n={}){const i=we(t,e,n.custom);let{transition:s=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(Xs(t,i,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:h}=s;return Ll(t,e,c+l,u,h,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[l,c]=a==="beforeChildren"?[o,r]:[r,o];return l().then(()=>c())}else return Promise.all([o(),r(n.delay)])}function Ll(t,e,n=0,i=0,s=1,o){const r=[],a=(t.variantChildren.size-1)*i,l=s===1?(c=0)=>c*i:(c=0)=>a-c*i;return Array.from(t.variantChildren).sort(Rl).forEach((c,u)=>{c.notify("AnimationStart",e),r.push(Ue(c,e,{...o,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(r)}function Rl(t,e){return t.sortNodePosition(e)}function Bl(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const s=e.map(o=>Ue(t,o,n));i=Promise.all(s)}else if(typeof e=="string")i=Ue(t,e,n);else{const s=typeof e=="function"?we(t,e,n.custom):e;i=Promise.all(Xs(t,s,n))}return i.then(()=>t.notify("AnimationComplete",e))}const Nl=[...Je].reverse(),Il=Je.length;function Fl(t){return e=>Promise.all(e.map(({animation:n,options:i})=>Bl(t,n,i)))}function zl(t){let e=Fl(t);const n=_l();let i=!0;const s=(l,c)=>{const u=we(t,c);if(u){const{transition:h,transitionEnd:d,...f}=u;l={...l,...f,...d}}return l};function o(l){e=l(t)}function r(l,c){const u=t.getProps(),h=t.getVariantContext(!0)||{},d=[],f=new Set;let p={},m=1/0;for(let x=0;x<Il;x++){const v=Nl[x],g=n[v],w=u[v]!==void 0?u[v]:h[v],P=Wt(w),S=v===c?g.isActive:null;S===!1&&(m=x);let k=w===h[v]&&w!==u[v]&&P;if(k&&i&&t.manuallyAnimateOnMount&&(k=!1),g.protectedKeys={...p},!g.isActive&&S===null||!w&&!g.prevProp||ve(w)||typeof w=="boolean")continue;let V=Wl(g.prevProp,w)||v===c&&g.isActive&&!k&&P||x>m&&P,X=!1;const bt=Array.isArray(w)?w:[w];let G=bt.reduce(s,{});S===!1&&(G={});const{prevResolvedValues:K={}}=g,N={...K,...G},xt=R=>{V=!0,f.has(R)&&(X=!0,f.delete(R)),g.needsAnimating[R]=!0};for(const R in N){const tt=G[R],Mt=K[R];if(p.hasOwnProperty(R))continue;let wt=!1;ce(tt)&&ce(Mt)?wt=!vs(tt,Mt):wt=tt!==Mt,wt?tt!==void 0?xt(R):f.add(R):tt!==void 0&&f.has(R)?xt(R):g.protectedKeys[R]=!0}g.prevProp=w,g.prevResolvedValues=G,g.isActive&&(p={...p,...G}),i&&t.blockInitialAnimation&&(V=!1),V&&(!k||X)&&d.push(...bt.map(R=>({animation:R,options:{type:v,...l}})))}if(f.size){const x={};f.forEach(v=>{const g=t.getBaseTarget(v);g!==void 0&&(x[v]=g)}),d.push({animation:x})}let b=!!d.length;return i&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(b=!1),i=!1,b?e(d):Promise.resolve()}function a(l,c,u){var h;if(n[l].isActive===c)return Promise.resolve();(h=t.variantChildren)===null||h===void 0||h.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(l,c)}),n[l].isActive=c;const d=r(u,l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n}}function Wl(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!vs(e,t):!1}function ft(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function _l(){return{animate:ft(!0),whileInView:ft(),whileHover:ft(),whileTap:ft(),whileDrag:ft(),whileFocus:ft(),exit:ft()}}class Ul extends ht{constructor(e){super(e),e.animationState||(e.animationState=zl(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),ve(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let Hl=0;class Gl extends ht{constructor(){super(...arguments),this.id=Hl++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n,custom:i}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const o=this.node.animationState.setActive("exit",!e,{custom:i??this.node.getProps().custom});n&&!e&&o.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const Yl={animation:{Feature:Ul},exit:{Feature:Gl}},Xn=(t,e)=>Math.abs(t-e);function ql(t,e){const n=Xn(t.x,e.x),i=Xn(t.y,e.y);return Math.sqrt(n**2+i**2)}class Ks{constructor(e,n,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Le(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,f=ql(h.offset,{x:0,y:0})>=3;if(!d&&!f)return;const{point:p}=h,{timestamp:m}=B;this.history.push({...p,timestamp:m});const{onStart:b,onMove:x}=this.handlers;d||(b&&b(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,h)},this.handlePointerMove=(h,d)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=je(d,this.transformPagePoint),E.update(this.updatePoint,!0)},this.handlePointerUp=(h,d)=>{this.end();const{onEnd:f,onSessionEnd:p,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=Le(h.type==="pointercancel"?this.lastMoveEventInfo:je(d,this.transformPagePoint),this.history);this.startEvent&&f&&f(h,b),p&&p(h,b)},!ds(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=i,this.contextWindow=s||window;const r=xe(e),a=je(r,this.transformPagePoint),{point:l}=a,{timestamp:c}=B;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(e,Le(a,this.history)),this.removeListeners=ot(Q(this.contextWindow,"pointermove",this.handlePointerMove),Q(this.contextWindow,"pointerup",this.handlePointerUp),Q(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),J(this.updatePoint)}}function je(t,e){return e?{point:e(t.point)}:t}function Kn(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Le({point:t},e){return{point:t,delta:Kn(t,$s(e)),offset:Kn(t,Xl(e)),velocity:Kl(e,.1)}}function Xl(t){return t[0]}function $s(t){return t[t.length-1]}function Kl(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=$s(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>at(e)));)n--;if(!i)return{x:0,y:0};const o=Z(s.timestamp-i.timestamp);if(o===0)return{x:0,y:0};const r={x:(s.x-i.x)/o,y:(s.y-i.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function _(t){return t.max-t.min}function He(t,e=0,n=.01){return Math.abs(t-e)<=n}function $n(t,e,n,i=.5){t.origin=i,t.originPoint=O(e.min,e.max,t.origin),t.scale=_(n)/_(e),(He(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=O(n.min,n.max,t.origin)-t.originPoint,(He(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Ft(t,e,n,i){$n(t.x,e.x,n.x,i?i.originX:void 0),$n(t.y,e.y,n.y,i?i.originY:void 0)}function Qn(t,e,n){t.min=n.min+e.min,t.max=t.min+_(e)}function $l(t,e,n){Qn(t.x,e.x,n.x),Qn(t.y,e.y,n.y)}function Zn(t,e,n){t.min=e.min-n.min,t.max=t.min+_(e)}function zt(t,e,n){Zn(t.x,e.x,n.x),Zn(t.y,e.y,n.y)}function Ql(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?O(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?O(n,t,i.max):Math.min(t,n)),t}function Jn(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Zl(t,{top:e,left:n,bottom:i,right:s}){return{x:Jn(t.x,n,s),y:Jn(t.y,e,i)}}function ti(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function Jl(t,e){return{x:ti(t.x,e.x),y:ti(t.y,e.y)}}function tc(t,e){let n=.5;const i=_(t),s=_(e);return s>i?n=Ut(e.min,e.max-i,t.min):i>s&&(n=Ut(t.min,t.max-s,e.min)),lt(0,1,n)}function ec(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Ge=.35;function nc(t=Ge){return t===!1?t=0:t===!0&&(t=Ge),{x:ei(t,"left","right"),y:ei(t,"top","bottom")}}function ei(t,e,n){return{min:ni(t,e),max:ni(t,n)}}function ni(t,e){return typeof t=="number"?t:t[e]||0}const ii=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ct=()=>({x:ii(),y:ii()}),si=()=>({min:0,max:0}),L=()=>({x:si(),y:si()});function H(t){return[t("x"),t("y")]}function Qs({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function ic({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function sc(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Re(t){return t===void 0||t===1}function Ye({scale:t,scaleX:e,scaleY:n}){return!Re(t)||!Re(e)||!Re(n)}function pt(t){return Ye(t)||Zs(t)||t.z||t.rotate||t.rotateX||t.rotateY}function Zs(t){return ri(t.x)||ri(t.y)}function ri(t){return t&&t!=="0%"}function pe(t,e,n){const i=t-n,s=e*i;return n+s}function oi(t,e,n,i,s){return s!==void 0&&(t=pe(t,s,i)),pe(t,n,i)+e}function qe(t,e=0,n=1,i,s){t.min=oi(t.min,e,n,i,s),t.max=oi(t.max,e,n,i,s)}function Js(t,{x:e,y:n}){qe(t.x,e.translate,e.scale,e.originPoint),qe(t.y,n.translate,n.scale,n.originPoint)}function rc(t,e,n,i=!1){const s=n.length;if(!s)return;e.x=e.y=1;let o,r;for(let a=0;a<s;a++){o=n[a],r=o.projectionDelta;const l=o.instance;l&&l.style&&l.style.display==="contents"||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&kt(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,Js(t,r)),i&&pt(o.latestValues)&&kt(t,o.latestValues))}e.x=ai(e.x),e.y=ai(e.y)}function ai(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function rt(t,e){t.min=t.min+e,t.max=t.max+e}function li(t,e,[n,i,s]){const o=e[s]!==void 0?e[s]:.5,r=O(t.min,t.max,o);qe(t,e[n],e[i],r,e.scale)}const oc=["x","scaleX","originX"],ac=["y","scaleY","originY"];function kt(t,e){li(t.x,e,oc),li(t.y,e,ac)}function tr(t,e){return Qs(sc(t.getBoundingClientRect(),e))}function lc(t,e,n){const i=tr(t,n),{scroll:s}=e;return s&&(rt(i.x,s.offset.x),rt(i.y,s.offset.y)),i}const er=({current:t})=>t?t.ownerDocument.defaultView:null,cc=new WeakMap;class uc{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=L(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=u=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(xe(u,"page").point)},o=(u,h)=>{const{drag:d,dragPropagation:f,onDragStart:p}=this.getProps();if(d&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ps(d),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),H(b=>{let x=this.getAxisMotionValue(b).get()||0;if(q.test(x)){const{projection:v}=this.visualElement;if(v&&v.layout){const g=v.layout.layoutBox[b];g&&(x=_(g)*(parseFloat(x)/100))}}this.originPoint[b]=x}),p&&E.update(()=>p(u,h),!1,!0);const{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},r=(u,h)=>{const{dragPropagation:d,dragDirectionLock:f,onDirectionLock:p,onDrag:m}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:b}=h;if(f&&this.currentDirection===null){this.currentDirection=hc(b),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",h.point,b),this.updateAxis("y",h.point,b),this.visualElement.render(),m&&m(u,h)},a=(u,h)=>this.stop(u,h),l=()=>H(u=>{var h;return this.getAnimationState(u)==="paused"&&((h=this.getAxisMotionValue(u).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Ks(e,{onSessionStart:s,onStart:o,onMove:r,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:er(this.visualElement)})}stop(e,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&&E.update(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,i){const{drag:s}=this.getProps();if(!i||!te(e,s,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(r=Ql(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&At(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=Zl(s.layoutBox,n):this.constraints=!1,this.elastic=nc(i),o!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&H(r=>{this.getAxisMotionValue(r)&&(this.constraints[r]=ec(s.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!At(e))return!1;const i=e.current;Y(i!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const o=lc(i,s.root,this.visualElement.getTransformPagePoint());let r=Jl(s.layout.layoutBox,o);if(n){const a=n(ic(r));this.hasMutatedConstraints=!!a,a&&(r=Qs(a))}return r}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:s,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=H(u=>{if(!te(u,n,this.currentDirection))return;let h=l&&l[u]||{};r&&(h={min:0,max:0});const d=s?200:1e6,f=s?40:1e7,p={type:"inertia",velocity:i?e[u]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(u,p)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return i.start(pn(e,i,0,n))}stopAnimation(){H(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){H(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n="_drag"+e.toUpperCase(),i=this.visualElement.getProps(),s=i[n];return s||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){H(n=>{const{drag:i}=this.getProps();if(!te(n,i,this.currentDirection))return;const{projection:s}=this.visualElement,o=this.getAxisMotionValue(n);if(s&&s.layout){const{min:r,max:a}=s.layout.layoutBox[n];o.set(e[n]-O(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!At(n)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};H(r=>{const a=this.getAxisMotionValue(r);if(a){const l=a.get();s[r]=tc({min:l,max:l},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),H(r=>{if(!te(r,e,null))return;const a=this.getAxisMotionValue(r),{min:l,max:c}=this.constraints[r];a.set(O(l,c,s[r]))})}addListeners(){if(!this.visualElement.current)return;cc.set(this.visualElement,this);const e=this.visualElement.current,n=Q(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),i=()=>{const{dragConstraints:l}=this.getProps();At(l)&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,o=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),i();const r=$(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(H(u=>{const h=this.getAxisMotionValue(u);h&&(this.originPoint[u]+=l[u].translate,h.set(h.get()+l[u].translate))}),this.visualElement.render())});return()=>{r(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:o=!1,dragElastic:r=Ge,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:s,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function te(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function hc(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class dc extends ht{constructor(e){super(e),this.removeGroupControls=D,this.removeListeners=D,this.controls=new uc(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||D}unmount(){this.removeGroupControls(),this.removeListeners()}}const ci=t=>(e,n)=>{t&&E.update(()=>t(e,n))};class fc extends ht{constructor(){super(...arguments),this.removePointerDownListener=D}onPointerDown(e){this.session=new Ks(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:er(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:ci(e),onStart:ci(n),onMove:i,onEnd:(o,r)=>{delete this.session,s&&E.update(()=>s(o,r))}}}mount(){this.removePointerDownListener=Q(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function pc(){const t=T.useContext(Qe);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:i}=t,s=T.useId();return T.useEffect(()=>i(s),[]),!e&&n?[!1,()=>n&&n(s)]:[!0]}const se={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ui(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Rt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(A.test(t))t=parseFloat(t);else return t;const n=ui(t,e.target.x),i=ui(t,e.target.y);return`${n}% ${i}%`}},mc={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,s=ct.parse(t);if(s.length>5)return i;const o=ct.createTransformer(t),r=typeof s[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;s[0+r]/=a,s[1+r]/=l;const c=O(a,l,.5);return typeof s[2+r]=="number"&&(s[2+r]/=c),typeof s[3+r]=="number"&&(s[3+r]/=c),o(s)}};class gc extends T.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:s}=this.props,{projection:o}=e;Ao(vc),o&&(n.group&&n.group.add(o),i&&i.register&&s&&i.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),se.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:s,isPresent:o}=this.props,r=i.projection;return r&&(r.isPresent=o,s||e.layoutDependency!==n||n===void 0?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||E.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:s}=e;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function nr(t){const[e,n]=pc(),i=T.useContext(Qi);return T.createElement(gc,{...t,layoutGroup:i,switchLayoutGroup:T.useContext(Zi),isPresent:e,safeToRemove:n})}const vc={borderRadius:{...Rt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Rt,borderTopRightRadius:Rt,borderBottomLeftRadius:Rt,borderBottomRightRadius:Rt,boxShadow:mc},ir=["TopLeft","TopRight","BottomLeft","BottomRight"],yc=ir.length,hi=t=>typeof t=="string"?parseFloat(t):t,di=t=>typeof t=="number"||A.test(t);function bc(t,e,n,i,s,o){s?(t.opacity=O(0,n.opacity!==void 0?n.opacity:1,xc(i)),t.opacityExit=O(e.opacity!==void 0?e.opacity:1,0,wc(i))):o&&(t.opacity=O(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let r=0;r<yc;r++){const a=`border${ir[r]}Radius`;let l=fi(e,a),c=fi(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||di(l)===di(c)?(t[a]=Math.max(O(hi(l),hi(c),i),0),(q.test(c)||q.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=O(e.rotate||0,n.rotate||0,i))}function fi(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const xc=sr(0,.5,Cs),wc=sr(.5,.95,D);function sr(t,e,n){return i=>i<t?0:i>e?1:n(Ut(t,e,i))}function pi(t,e){t.min=e.min,t.max=e.max}function U(t,e){pi(t.x,e.x),pi(t.y,e.y)}function mi(t,e,n,i,s){return t-=e,t=pe(t,1/n,i),s!==void 0&&(t=pe(t,1/s,i)),t}function Sc(t,e=0,n=1,i=.5,s,o=t,r=t){if(q.test(e)&&(e=parseFloat(e),e=O(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=O(o.min,o.max,i);t===o&&(a-=e),t.min=mi(t.min,e,n,a,s),t.max=mi(t.max,e,n,a,s)}function gi(t,e,[n,i,s],o,r){Sc(t,e[n],e[i],e[s],e.scale,o,r)}const Tc=["x","scaleX","originX"],Ac=["y","scaleY","originY"];function vi(t,e,n,i){gi(t.x,e,Tc,n?n.x:void 0,i?i.x:void 0),gi(t.y,e,Ac,n?n.y:void 0,i?i.y:void 0)}function yi(t){return t.translate===0&&t.scale===1}function rr(t){return yi(t.x)&&yi(t.y)}function Pc(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function or(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function bi(t){return _(t.x)/_(t.y)}class Cc{constructor(){this.members=[]}add(e){mn(this.members,e),e.scheduleRender()}remove(e){if(gn(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(s=>e===s);if(n===0)return!1;let i;for(let s=n;s>=0;s--){const o=this.members[s];if(o.isPresent!==!1){i=o;break}}return i?(this.promote(i),!0):!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,n&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:s}=e.options;s===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:i}=e;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function xi(t,e,n){let i="";const s=t.x.translate/e.x,o=t.y.translate/e.y;if((s||o)&&(i=`translate3d(${s}px, ${o}px, 0) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:l,rotateX:c,rotateY:u}=n;l&&(i+=`rotate(${l}deg) `),c&&(i+=`rotateX(${c}deg) `),u&&(i+=`rotateY(${u}deg) `)}const r=t.x.scale*e.x,a=t.y.scale*e.y;return(r!==1||a!==1)&&(i+=`scale(${r}, ${a})`),i||"none"}const kc=(t,e)=>t.depth-e.depth;class Vc{constructor(){this.children=[],this.isDirty=!1}add(e){mn(this.children,e),this.isDirty=!0}remove(e){gn(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(kc),this.isDirty=!1,this.children.forEach(e)}}function Ec(t,e){const n=performance.now(),i=({timestamp:s})=>{const o=s-n;o>=e&&(J(i),t(o-e))};return E.read(i,!0),()=>J(i)}function Mc(t){window.MotionDebug&&window.MotionDebug.record(t)}function Oc(t){return t instanceof SVGElement&&t.tagName!=="svg"}function Dc(t,e,n){const i=z(t)?t:Vt(t);return i.start(pn("",i,e,n)),i.animation}const wi=["","X","Y","Z"],jc={visibility:"hidden"},Si=1e3;let Lc=0;const mt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ar({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(r={},a=e==null?void 0:e()){this.id=Lc++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,mt.totalNodes=mt.resolvedTargetDeltas=mt.recalculatedProjection=0,this.nodes.forEach(Nc),this.nodes.forEach(_c),this.nodes.forEach(Uc),this.nodes.forEach(Ic),Mc(mt)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Vc)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new vn),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const l=this.eventHandlers.get(r);l&&l.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Oc(r),this.instance=r;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(c||l)&&(this.isLayoutDirty=!0),t){let h;const d=()=>this.root.updateBlockedByResize=!1;t(r,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Ec(d,250),se.hasAnimatedSinceResize&&(se.hasAnimatedSinceResize=!1,this.nodes.forEach(Ai))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:d,hasRelativeTargetChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||Xc,{onLayoutAnimationStart:b,onLayoutAnimationComplete:x}=u.getProps(),v=!this.targetLayout||!or(this.targetLayout,p)||f,g=!d&&f;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||d&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,g);const w={...fn(m,"layout"),onPlay:b,onComplete:x};(u.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else d||Ai(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,J(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Hc),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ti);return}this.isUpdating||this.nodes.forEach(zc),this.isUpdating=!1,this.nodes.forEach(Wc),this.nodes.forEach(Rc),this.nodes.forEach(Bc),this.clearAllSnapshots();const a=performance.now();B.delta=lt(0,1e3/60,a-B.timestamp),B.timestamp=a,B.isProcessing=!0,Pe.update.process(B),Pe.preRender.process(B),Pe.render.process(B),B.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Fc),this.sharedNodes.forEach(Gc)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,E.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){E.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutCorrected=L(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:r,isRoot:i(this.instance),offset:n(this.instance)})}resetTransform(){if(!s)return;const r=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!rr(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;r&&(a||pt(this.latestValues)||u)&&(s(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return r&&(l=this.removeTransform(l)),Kc(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return L();const a=r.measureViewportBox(),{scroll:l}=this.root;return l&&(rt(a.x,l.offset.x),rt(a.y,l.offset.y)),a}removeElementScroll(r){const a=L();U(a,r);for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:h}=c;if(c!==this.root&&u&&h.layoutScroll){if(u.isRoot){U(a,r);const{scroll:d}=this.root;d&&(rt(a.x,-d.offset.x),rt(a.y,-d.offset.y))}rt(a.x,u.offset.x),rt(a.y,u.offset.y)}}return a}applyTransform(r,a=!1){const l=L();U(l,r);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&kt(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),pt(u.latestValues)&&kt(l,u.latestValues)}return pt(this.latestValues)&&kt(l,this.latestValues),l}removeTransform(r){const a=L();U(a,r);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!pt(c.latestValues))continue;Ye(c.latestValues)&&c.updateSnapshot();const u=L(),h=c.measurePageBox();U(u,h),vi(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return pt(this.latestValues)&&vi(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==B.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(r||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:h,layoutId:d}=this.options;if(!(!this.layout||!(h||d))){if(this.resolvedRelativeTargetAt=B.timestamp,!this.targetDelta&&!this.relativeTarget){const f=this.getClosestProjectingParent();f&&f.layout&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=L(),this.relativeTargetOrigin=L(),zt(this.relativeTargetOrigin,this.layout.layoutBox,f.layout.layoutBox),U(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=L(),this.targetWithTransforms=L()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),$l(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):U(this.target,this.layout.layoutBox),Js(this.target,this.targetDelta)):U(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const f=this.getClosestProjectingParent();f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=L(),this.relativeTargetOrigin=L(),zt(this.relativeTargetOrigin,this.target,f.target),U(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}mt.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Ye(this.parent.latestValues)||Zs(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var r;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||!((r=this.parent)===null||r===void 0)&&r.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===B.timestamp&&(c=!1),c)return;const{layout:u,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||h))return;U(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;rc(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox);const{target:p}=a;if(!p){this.projectionTransform&&(this.projectionDelta=Ct(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Ct(),this.projectionDeltaWithTransform=Ct());const m=this.projectionTransform;Ft(this.projectionDelta,this.layoutCorrected,p,this.latestValues),this.projectionTransform=xi(this.projectionDelta,this.treeScale),(this.projectionTransform!==m||this.treeScale.x!==d||this.treeScale.y!==f)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p)),mt.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),r){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(r,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},h=Ct();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=L(),f=l?l.source:void 0,p=this.layout?this.layout.source:void 0,m=f!==p,b=this.getStack(),x=!b||b.members.length<=1,v=!!(m&&!x&&this.options.crossfade===!0&&!this.path.some(qc));this.animationProgress=0;let g;this.mixTargetDelta=w=>{const P=w/1e3;Pi(h.x,r.x,P),Pi(h.y,r.y,P),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(zt(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Yc(this.relativeTarget,this.relativeTargetOrigin,d,P),g&&Pc(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=L()),U(g,this.relativeTarget)),m&&(this.animationValues=u,bc(u,c,this.latestValues,P,v,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(J(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=E.update(()=>{se.hasAnimatedSinceResize=!0,this.currentAnimation=Dc(0,Si,{...r,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Si),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=r;if(!(!a||!l||!c)){if(this!==r&&this.layout&&c&&lr(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||L();const h=_(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+h;const d=_(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+d}U(a,l),kt(a,u),Ft(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new Cc),this.sharedNodes.get(r).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){var r;const{layoutId:a}=this.options;return a?((r=this.getStack())===null||r===void 0?void 0:r.lead)||this:this}getPrevLead(){var r;const{layoutId:a}=this.options;return a?(r=this.getStack())===null||r===void 0?void 0:r.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:l}=r;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const c={};for(let u=0;u<wi.length;u++){const h="rotate"+wi[u];l[h]&&(c[h]=l[h],r.setStaticValue(h,0))}r.render();for(const u in c)r.setStaticValue(u,c[u]);r.scheduleRender()}getProjectionStyles(r){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return jc;const c={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=ie(r==null?void 0:r.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const m={};return this.options.layoutId&&(m.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,m.pointerEvents=ie(r==null?void 0:r.pointerEvents)||""),this.hasProjected&&!pt(this.latestValues)&&(m.transform=u?u({},""):"none",this.hasProjected=!1),m}const d=h.animationValues||h.latestValues;this.applyTransformsToTarget(),c.transform=xi(this.projectionDeltaWithTransform,this.treeScale,d),u&&(c.transform=u(d,c.transform));const{x:f,y:p}=this.projectionDelta;c.transformOrigin=`${f.origin*100}% ${p.origin*100}% 0`,h.animationValues?c.opacity=h===this?(l=(a=d.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:c.opacity=h===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const m in ae){if(d[m]===void 0)continue;const{correct:b,applyTo:x}=ae[m],v=c.transform==="none"?d[m]:b(d[m],h);if(x){const g=x.length;for(let w=0;w<g;w++)c[x[w]]=v}else c[m]=v}return this.options.layoutId&&(c.pointerEvents=h===this?ie(r==null?void 0:r.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>{var a;return(a=r.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Ti),this.root.sharedNodes.clear()}}}function Rc(t){t.updateLayout()}function Bc(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:s}=t.layout,{animationType:o}=t.options,r=n.source!==t.layout.source;o==="size"?H(h=>{const d=r?n.measuredBox[h]:n.layoutBox[h],f=_(d);d.min=i[h].min,d.max=d.min+f}):lr(o,n.layoutBox,i)&&H(h=>{const d=r?n.measuredBox[h]:n.layoutBox[h],f=_(i[h]);d.max=d.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+f)});const a=Ct();Ft(a,i,n.layoutBox);const l=Ct();r?Ft(l,t.applyTransform(s,!0),n.measuredBox):Ft(l,i,n.layoutBox);const c=!rr(a);let u=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:d,layout:f}=h;if(d&&f){const p=L();zt(p,n.layoutBox,d.layoutBox);const m=L();zt(m,i,f.layoutBox),or(p,m)||(u=!0),h.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=p,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function Nc(t){mt.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Ic(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Fc(t){t.clearSnapshot()}function Ti(t){t.clearMeasurements()}function zc(t){t.isLayoutDirty=!1}function Wc(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ai(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function _c(t){t.resolveTargetDelta()}function Uc(t){t.calcProjection()}function Hc(t){t.resetRotation()}function Gc(t){t.removeLeadSnapshot()}function Pi(t,e,n){t.translate=O(e.translate,0,n),t.scale=O(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ci(t,e,n,i){t.min=O(e.min,n.min,i),t.max=O(e.max,n.max,i)}function Yc(t,e,n,i){Ci(t.x,e.x,n.x,i),Ci(t.y,e.y,n.y,i)}function qc(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Xc={duration:.45,ease:[.4,0,.1,1]},ki=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),Vi=ki("applewebkit/")&&!ki("chrome/")?Math.round:D;function Ei(t){t.min=Vi(t.min),t.max=Vi(t.max)}function Kc(t){Ei(t.x),Ei(t.y)}function lr(t,e,n){return t==="position"||t==="preserve-aspect"&&!He(bi(e),bi(n),.2)}const $c=ar({attachResizeListener:(t,e)=>$(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Be={current:void 0},cr=ar({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Be.current){const t=new $c({});t.mount(window),t.setOptions({layoutScroll:!0}),Be.current=t}return Be.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Qc={pan:{Feature:fc},drag:{Feature:dc,ProjectionNode:cr,MeasureLayout:nr}},Zc=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Jc(t){const e=Zc.exec(t);if(!e)return[,];const[,n,i]=e;return[n,i]}const tu=4;function Xe(t,e,n=1){Y(n<=tu,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[i,s]=Jc(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const r=o.trim();return Gs(r)?parseFloat(r):r}else return Ne(s)?Xe(s,e,n+1):s}function eu(t,{...e},n){const i=t.current;if(!(i instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(s=>{const o=s.get();if(!Ne(o))return;const r=Xe(o,i);r&&s.set(r)});for(const s in e){const o=e[s];if(!Ne(o))continue;const r=Xe(o,i);r&&(e[s]=r,n||(n={}),n[s]===void 0&&(n[s]=o))}return{target:e,transitionEnd:n}}const nu=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),ur=t=>nu.has(t),iu=t=>Object.keys(t).some(ur),ee=t=>t===yt||t===A,Mi=(t,e)=>parseFloat(t.split(", ")[e]),Oi=(t,e)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const s=i.match(/^matrix3d\((.+)\)$/);if(s)return Mi(s[1],e);{const o=i.match(/^matrix\((.+)\)$/);return o?Mi(o[1],t):0}},su=new Set(["x","y","z"]),ru=Ht.filter(t=>!su.has(t));function ou(t){const e=[];return ru.forEach(n=>{const i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}const Et={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Oi(4,13),y:Oi(5,14)};Et.translateX=Et.x;Et.translateY=Et.y;const au=(t,e,n)=>{const i=e.measureViewportBox(),s=e.current,o=getComputedStyle(s),{display:r}=o,a={};r==="none"&&e.setStaticValue("display",t.display||"block"),n.forEach(c=>{a[c]=Et[c](i,o)}),e.render();const l=e.measureViewportBox();return n.forEach(c=>{const u=e.getValue(c);u&&u.jump(a[c]),t[c]=Et[c](l,o)}),t},lu=(t,e,n={},i={})=>{e={...e},i={...i};const s=Object.keys(e).filter(ur);let o=[],r=!1;const a=[];if(s.forEach(l=>{const c=t.getValue(l);if(!t.hasValue(l))return;let u=n[l],h=Lt(u);const d=e[l];let f;if(ce(d)){const p=d.length,m=d[0]===null?1:0;u=d[m],h=Lt(u);for(let b=m;b<p&&d[b]!==null;b++)f?Y(Lt(d[b])===f,"All keyframes must be of the same type"):(f=Lt(d[b]),Y(f===h||ee(h)&&ee(f),"Keyframes must be of the same dimension as the current value"))}else f=Lt(d);if(h!==f)if(ee(h)&&ee(f)){const p=c.get();typeof p=="string"&&c.set(parseFloat(p)),typeof d=="string"?e[l]=parseFloat(d):Array.isArray(d)&&f===A&&(e[l]=d.map(parseFloat))}else h!=null&&h.transform&&(f!=null&&f.transform)&&(u===0||d===0)?u===0?c.set(f.transform(u)):e[l]=h.transform(d):(r||(o=ou(t),r=!0),a.push(l),i[l]=i[l]!==void 0?i[l]:e[l],c.jump(d))}),a.length){const l=a.indexOf("height")>=0?window.pageYOffset:null,c=au(e,t,a);return o.length&&o.forEach(([u,h])=>{t.getValue(u).set(h)}),t.render(),ge&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:i}}else return{target:e,transitionEnd:i}};function cu(t,e,n,i){return iu(e)?lu(t,e,n,i):{target:e,transitionEnd:i}}const uu=(t,e,n,i)=>{const s=eu(t,e,i);return e=s.target,i=s.transitionEnd,cu(t,e,n,i)},Ke={current:null},hr={current:!1};function hu(){if(hr.current=!0,!!ge)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ke.current=t.matches;t.addListener(e),e()}else Ke.current=!1}function du(t,e,n){const{willChange:i}=e;for(const s in e){const o=e[s],r=n[s];if(z(o))t.addValue(s,o),fe(i)&&i.add(s),process.env.NODE_ENV==="development"&&yn(o.version==="10.18.0",`Attempting to mix Framer Motion versions ${o.version} with 10.18.0 may not work as expected.`);else if(z(r))t.addValue(s,Vt(o,{owner:t})),fe(i)&&i.remove(s);else if(r!==o)if(t.hasValue(s)){const a=t.getValue(s);!a.hasAnimated&&a.set(o)}else{const a=t.getStaticValue(s);t.addValue(s,Vt(a!==void 0?a:o,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const Di=new WeakMap,dr=Object.keys(_t),fu=dr.length,ji=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],pu=tn.length;class mu{constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:s,visualState:o},r={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>E.render(this.render,!1,!0);const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=n,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.options=r,this.isControllingVariants=ye(n),this.isVariantNode=$i(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(n,{});for(const h in u){const d=u[h];a[h]!==void 0&&z(d)&&(d.set(a[h],!1),fe(c)&&c.add(h))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,Di.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,i)=>this.bindToMotionValue(i,n)),hr.current||hu(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ke.current,process.env.NODE_ENV!=="production"&&yn(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Di.delete(this.current),this.projection&&this.projection.unmount(),J(this.notifyUpdate),J(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,n){const i=vt.has(e),s=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&E.update(this.notifyUpdate,!1,!0),i&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{s(),o()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...n},i,s,o){let r,a;if(process.env.NODE_ENV!=="production"&&s&&i){const l="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?qt(!1,l):Y(!1,l)}for(let l=0;l<fu;l++){const c=dr[l],{isEnabled:u,Feature:h,ProjectionNode:d,MeasureLayout:f}=_t[c];d&&(r=d),u(n)&&(!this.features[c]&&h&&(this.features[c]=new h(this)),f&&(a=f))}if((this.type==="html"||this.type==="svg")&&!this.projection&&r){this.projection=new r(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:c,drag:u,dragConstraints:h,layoutScroll:d,layoutRoot:f}=n;this.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!u||h&&At(h),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:o,layoutScroll:d,layoutRoot:f})}return a}updateFeatures(){for(const e in this.features){const n=this.features[e];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):L()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}makeTargetAnimatable(e,n=!0){return this.makeTargetAnimatableFromInstance(e,this.props,n)}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<ji.length;i++){const s=ji[i];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const o=e["on"+s];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=du(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const i=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(i.initial=this.props.initial),i}const n={};for(let i=0;i<pu;i++){const s=tn[i],o=this.props[s];(Wt(o)||o===!1)&&(n[s]=o)}return n}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){n!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,n)),this.values.set(e,n),this.latestValues[e]=n.get()}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&n!==void 0&&(i=Vt(n,{owner:this}),this.addValue(e,i)),i}readValue(e){var n;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:i}=this.props,s=typeof i=="string"||typeof i=="object"?(n=ln(this.props,i))===null||n===void 0?void 0:n[e]:void 0;if(i&&s!==void 0)return s;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!z(o)?o:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new vn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class fr extends mu{sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:n,...i},{transformValues:s},o){let r=Ol(i,e||{},this);if(s&&(n&&(n=s(n)),i&&(i=s(i)),r&&(r=s(r))),o){El(this,i,r);const a=uu(this,i,r,n);n=a.transitionEnd,i=a.target}return{transition:e,transitionEnd:n,...i}}}function gu(t){return window.getComputedStyle(t)}class vu extends fr{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,n){if(vt.has(n)){const i=dn(n);return i&&i.default||0}else{const i=gu(e),s=(es(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:n}){return tr(e,n)}build(e,n,i,s){nn(e,n,i,s.transformTemplate)}scrapeMotionValuesFromProps(e,n){return an(e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;z(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,i,s){as(e,n,i,s)}}class yu extends fr{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(vt.has(n)){const i=dn(n);return i&&i.default||0}return n=ls.has(n)?n:Ze(n),e.getAttribute(n)}measureInstanceViewportBox(){return L()}scrapeMotionValuesFromProps(e,n){return us(e,n)}build(e,n,i,s){rn(e,n,i,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,i,s){cs(e,n,i,s)}mount(e){this.isSVGTag=on(e.tagName),super.mount(e)}}const bu=(t,e)=>en(t)?new yu(e,{enableHardwareAcceleration:!1}):new vu(e,{enableHardwareAcceleration:!0}),xu={layout:{ProjectionNode:cr,MeasureLayout:nr}},wu={...Yl,...pa,...Qc,...xu},pr=So((t,e)=>ea(t,e,wu,bu));function Su(t){const{children:e,parentRef:n,onlyChild:i}=t,[s,o]=T.useState({top:0,left:0});return T.useLayoutEffect(()=>{if(n.current){const r=n.current.getBoundingClientRect();o({top:r.top,left:r.left+r.width})}},[n]),i?e:yr.createPortal(y.jsx(pr.div,{style:{position:"fixed",top:s.top,left:s.left,zIndex:1200},children:e}),n.current)}function Tu(t){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...t,children:y.jsx("path",{fill:"currenColor",d:"M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z"})})}function mr({item:t,level:e=0,...n}){var x;const{isActive:i,isCollapsed:s,expanded:o,toggleExpand:r}=n,a=`level-${e}`,l=s?"collapsed":"expanded",c=i(t.id)?"active":"",u=(v,g=a)=>`${v} ${g} ${l} ${c}`,h=!!((x=t.children)!=null&&x.length),[d,f]=T.useState(!1),p=T.useRef();function m(v){var S;const{level:g,hovered:w,parentRef:P}=v;return!h||s&&g>=2&&!w?null:y.jsx(Su,{parentRef:P,onlyChild:!s||s&&g<2,children:y.jsx(pr.div,{className:u("menu-item__dropdown",`level-${g}`),initial:{height:s?"auto":0},animate:{height:s||o(t.id)?"auto":0},transition:{duration:.2},children:(S=t.children)==null?void 0:S.map(k=>T.createElement(mr,{...n,key:k.id,item:k,level:g}))},+s)})}const b=h?"div":Ri.Link;return y.jsxs("div",{ref:p,className:u("menu-item__wrapper"),onMouseEnter:()=>s&&f(!0),onMouseLeave:()=>s&&f(!1),children:[y.jsxs(b,{to:h?"#":t.path||"#",style:{paddingLeft:`${s?"0.5rem":`${e*1}rem`}`},className:u("menu-item__link"),onClick:v=>{h&&(v.preventDefault(),s||r(t.id))},children:[e!==0&&y.jsx(Au,{cls:u,item:t}),y.jsx("span",{className:u("menu-item__label"),children:t.name}),h&&y.jsx("div",{className:u("menu-item__icon-arrow__wrapper"),children:y.jsx(Tu,{className:u(`menu-item__icon-arrow__icon ${o(t.id)?"open":"close"}`)})})]}),m({level:e+1,hovered:d,parentRef:p})]},t.id)}function Au({item:t,cls:e}){var r,a;const[n,i]=T.useState(!1),s=()=>{i(!0)},o=(r=t.icon)==null?void 0:r.endsWith(".svg");return y.jsx("div",{className:e("menu-item__icon"),children:n?y.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center"},children:(a=t.name.trim().at(0))==null?void 0:a.toUpperCase()}):o?y.jsx(ut.ReactSVG,{src:t.icon,beforeInjection:l=>{l.setAttribute("style","margin: 0 auto;"),l.querySelectorAll("path").forEach(u=>{u.setAttribute("stroke","currentColor")})}}):y.jsx("img",{src:t.icon||"/",alt:" ",style:{height:24,maxHeight:24},onError:s})})}function Li(t){for(;t.startsWith("/");)t=t.slice(1);return t}function gr(t,e,n=[]){for(const i of t){if(console.log(i.path,e,i.path===e),Li(i.path||"")===Li(e))return[...n,i];if(i.children){const s=gr(i.children,e,[...n,i]);if(s)return s}}return null}function Pu(t){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...t,children:y.jsx("path",{fill:"#E01B00",fillRule:"evenodd",d:"M.179 2.875A2.375 2.375 0 012.554.5h3.393a1.018 1.018 0 010 2.036H2.554a.34.34 0 00-.34.339v14.25c0 .187.152.34.34.34h3.393a1.018 1.018 0 110 2.035H2.554a2.375 2.375 0 01-2.375-2.375V2.875zm14.167 6.107h-7.72a1.018 1.018 0 000 2.036h7.72l-2.673 2.673a1.018 1.018 0 101.44 1.44l4.41-4.411a1.018 1.018 0 000-1.44l-4.41-4.41a1.018 1.018 0 10-1.44 1.439l2.673 2.673z",clipRule:"evenodd"})})}const Cu=`[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
|
|
5
|
+
`;function ku(){return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:[y.jsx("path",{stroke:"#85858A",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M22 8.27V4.23C22 2.64 21.36 2 19.77 2h-4.04c-1.59 0-2.23.64-2.23 2.23v4.04c0 1.59.64 2.23 2.23 2.23h4.04c1.59 0 2.23-.64 2.23-2.23zM10.5 8.52V3.98C10.5 2.57 9.86 2 8.27 2H4.23C2.64 2 2 2.57 2 3.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97zM10.5 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23H4.23c-1.59 0-2.23.64-2.23 2.23v4.04C2 21.36 2.64 22 4.23 22h4.04c1.59 0 2.23-.64 2.23-2.23z"}),y.jsx("path",{stroke:"#85858A",strokeLinecap:"round",strokeWidth:"1.5",d:"M15 15.5h6M15 19.5h6"})]})}function Vu(){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:y.jsx("path",{stroke:"#85858A",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M22 8.52V3.98C22 2.57 21.36 2 19.77 2h-4.04c-1.59 0-2.23.57-2.23 1.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97zM22 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23h-4.04c-1.59 0-2.23.64-2.23 2.23v4.04c0 1.59.64 2.23 2.23 2.23h4.04c1.59 0 2.23-.64 2.23-2.23zM10.5 8.52V3.98C10.5 2.57 9.86 2 8.27 2H4.23C2.64 2 2 2.57 2 3.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97zM10.5 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23H4.23c-1.59 0-2.23.64-2.23 2.23v4.04C2 21.36 2.64 22 4.23 22h4.04c1.59 0 2.23-.64 2.23-2.23z"})})}const Eu=`.side-bar{display:flex;flex-direction:column;max-width:18rem;height:calc(100vh - 64px);border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s;padding:0 8px}.side-bar.expanded{width:18rem}.side-bar.collapsed{width:64px;padding-left:4px;padding-right:4px}.side-bar__menu{margin-left:-8px;margin-right:-8px;padding-left:8px;padding-right:8px}.side-bar__menu.collapsed{margin-left:-4px;margin-right:-4px;padding-left:4px;padding-right:4px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:40px 0}.side-bar__logout-btn__text{margin-left:12px}.side-bar__logout-btn__text.collapsed{display:none}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:0 16px;min-height:48px;border-radius:.375rem}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__logout-btn.collapsed{justify-content:center}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%;margin-top:4px}.menu-item__wrapper:first-child,.menu-item__wrapper.collapsed{margin-top:0}.menu-item__wrapper.collapsed.level-1{margin-top:4px}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.active{background-color:#009d4f1a!important;color:#009d4f!important}.menu-item__link.level-0{height:auto}.menu-item__link.menu-item__link.collapsed.level-0{display:none}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0}.menu-item__icon.collapsed.level-1{width:100%}.menu-item__icon.collapsed.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-1{text-align:center;margin-left:0;display:none}.menu-item__label.level-0{color:#85858a}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:-3px}.menu-item__icon-arrow__wrapper.expanded{right:0}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:180px;max-width:180px;padding:4px;z-index:1200}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-1{height:48px}.menu-item__dropdown.collapsed.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{margin-top:4px;overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}
|
|
6
|
+
`,Mu=t=>y.jsx(ut.Q,{autoClose:3e3,hideProgressBar:!0,closeButton:!1,position:"bottom-left",newestOnTop:!0,pauseOnFocusLoss:!1,style:{fontFamily:"inherit"},...t});function Ou(t){return y.jsx($e,{styles:[Cu,Eu],style:{zIndex:1200},children:y.jsx(Du,{...t})})}function Du(t){const{baseUrl:e,menuPath:n,logout:i}=t,s=Ri.useLocation(),[o,r]=T.useState([]),[a,l]=T.useState(!1),c=(gr(o,s.pathname)||[]).filter(v=>v.parentKey!==0),[u,h]=T.useState({}),d=v=>{h({...u,[v]:!u[v]})},f=()=>{l(!a)};T.useEffect(()=>{(async()=>{const g=e+(n||"/global-menu-config/api/v1/menu-items/user"),w=await br.get(g,{withCredentials:!0}).then(S=>S.data).catch(S=>{var k,C;ut.pushError(((C=(k=S.response)==null?void 0:k.data)==null?void 0:C.errorMessage)||"Have error when get menu items")}),P={};w.forEach(S=>{S.children&&(P[S.id]=!0)}),h(P),r(w.map(S=>({...S,parentKey:0})))})()},[e,n]);const[p,m]=T.useState(!1),b=a?"collapsed":"expanded",x=v=>`${v} ${b}`;return y.jsxs("div",{className:x("side-bar"),children:[y.jsx("div",{className:x("side-bar__wrapper-toggle-btn"),children:y.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:f,children:a?y.jsx(ku,{}):y.jsx(Vu,{})})}),y.jsx(Yi,{className:x("side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:o.map(v=>{const g=w=>c.some(P=>P.id===w);return y.jsx(mr,{item:v,isActive:g,isCollapsed:a,expanded:w=>u[w],toggleExpand:d},v.id)})}),y.jsxs("div",{className:x("side-bar__wrap-btn-logout"),children:[y.jsxs("button",{className:x("side-bar__logout-btn"),onClick:()=>m(!0),children:[y.jsx(Pu,{}),y.jsx("span",{className:x("side-bar__logout-btn__text"),children:"Logout"})]}),y.jsx(Bi,{isOpen:p,onClose:()=>m(!1),onConfirm:i})]})]})}exports.pushError=ut.pushError;exports.pushSuccess=ut.pushSuccess;exports.pushWarning=ut.pushWarning;exports.GlobalMenu=Ou;exports.ToastConfig=Mu;exports.TopBar=kr;
|