@nlxai/touchpoint-ui 1.0.4 → 1.0.5-alpha.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/index.html +97 -85
- package/lib/App.d.ts +10 -18
- package/lib/components/Header.d.ts +4 -2
- package/lib/components/Input.d.ts +1 -0
- package/lib/components/Messages.d.ts +1 -0
- package/lib/components/ui/CustomCard.d.ts +24 -0
- package/lib/components/ui/DateInput.d.ts +8 -2
- package/lib/components/ui/IconButton.d.ts +28 -2
- package/lib/components/ui/Icons.d.ts +12 -0
- package/lib/components/ui/TextButton.d.ts +20 -2
- package/lib/index.d.ts +24 -2
- package/lib/index.js +3214 -3003
- package/lib/index.umd.js +41 -41
- package/lib/types.d.ts +42 -1
- package/package.json +7 -7
- package/typedoc.cjs +14 -0
package/lib/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(M,B){typeof exports=="object"&&typeof module<"u"?B(exports):typeof define=="function"&&define.amd?define(["exports"],B):(M=typeof globalThis<"u"?globalThis:M||self,B((M.nlxai=M.nlxai||{},M.nlxai.touchpointUi={})))})(this,function(M){"use strict";var Oy=Object.defineProperty;var Rp=M=>{throw TypeError(M)};var Ny=(M,B,ie)=>B in M?Oy(M,B,{enumerable:!0,configurable:!0,writable:!0,value:ie}):M[B]=ie;var H=(M,B,ie)=>Ny(M,typeof B!="symbol"?B+"":B,ie),_a=(M,B,ie)=>B.has(M)||Rp("Cannot "+ie);var rt=(M,B,ie)=>(_a(M,B,"read from private field"),ie?ie.call(M):B.get(M)),rr=(M,B,ie)=>B.has(M)?Rp("Cannot add the same private member more than once"):B instanceof WeakSet?B.add(M):B.set(M,ie),lo=(M,B,ie,Qt)=>(_a(M,B,"write to private field"),Qt?Qt.call(M,ie):B.set(M,ie),ie),Ea=(M,B,ie)=>(_a(M,B,"access private method"),ie);var er,oo,mn,tr,io,ja;function B(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ie={exports:{}},Qt={},La={exports:{}},I={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var or=Symbol.for("react.element"),zp=Symbol.for("react.portal"),Mp=Symbol.for("react.fragment"),Op=Symbol.for("react.strict_mode"),Np=Symbol.for("react.profiler"),Ip=Symbol.for("react.provider"),$p=Symbol.for("react.context"),Dp=Symbol.for("react.forward_ref"),Ap=Symbol.for("react.suspense"),Hp=Symbol.for("react.memo"),Bp=Symbol.for("react.lazy"),Ta=Symbol.iterator;function Vp(e){return e===null||typeof e!="object"?null:(e=Ta&&e[Ta]||e["@@iterator"],typeof e=="function"?e:null)}var Pa={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ra=Object.assign,za={};function vn(e,t,n){this.props=e,this.context=t,this.refs=za,this.updater=n||Pa}vn.prototype.isReactComponent={},vn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},vn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ma(){}Ma.prototype=vn.prototype;function Ii(e,t,n){this.props=e,this.context=t,this.refs=za,this.updater=n||Pa}var $i=Ii.prototype=new Ma;$i.constructor=Ii,Ra($i,vn.prototype),$i.isPureReactComponent=!0;var Oa=Array.isArray,Na=Object.prototype.hasOwnProperty,Di={current:null},Ia={key:!0,ref:!0,__self:!0,__source:!0};function $a(e,t,n){var r,o={},i=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)Na.call(t,r)&&!Ia.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var a=Array(s),u=0;u<s;u++)a[u]=arguments[u+2];o.children=a}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return{$$typeof:or,type:e,key:i,ref:l,props:o,_owner:Di.current}}function Fp(e,t){return{$$typeof:or,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ai(e){return typeof e=="object"&&e!==null&&e.$$typeof===or}function Up(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Da=/\/+/g;function Hi(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Up(""+e.key):t.toString(36)}function so(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(i){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case or:case zp:l=!0}}if(l)return l=e,o=o(l),e=r===""?"."+Hi(l,0):r,Oa(o)?(n="",e!=null&&(n=e.replace(Da,"$&/")+"/"),so(o,t,n,"",function(u){return u})):o!=null&&(Ai(o)&&(o=Fp(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(Da,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=r===""?".":r+":",Oa(e))for(var s=0;s<e.length;s++){i=e[s];var a=r+Hi(i,s);l+=so(i,t,n,a,o)}else if(a=Vp(e),typeof a=="function")for(e=a.call(e),s=0;!(i=e.next()).done;)i=i.value,a=r+Hi(i,s++),l+=so(i,t,n,a,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function ao(e,t,n){if(e==null)return e;var r=[],o=0;return so(e,r,"","",function(i){return t.call(n,i,o++)}),r}function Zp(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ce={current:null},uo={transition:null},Wp={ReactCurrentDispatcher:Ce,ReactCurrentBatchConfig:uo,ReactCurrentOwner:Di};function Aa(){throw Error("act(...) is not supported in production builds of React.")}I.Children={map:ao,forEach:function(e,t,n){ao(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ao(e,function(){t++}),t},toArray:function(e){return ao(e,function(t){return t})||[]},only:function(e){if(!Ai(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},I.Component=vn,I.Fragment=Mp,I.Profiler=Np,I.PureComponent=Ii,I.StrictMode=Op,I.Suspense=Ap,I.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Wp,I.act=Aa,I.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Ra({},e.props),o=e.key,i=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,l=Di.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(a in t)Na.call(t,a)&&!Ia.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&s!==void 0?s[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){s=Array(a);for(var u=0;u<a;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:or,type:e.type,key:o,ref:i,props:r,_owner:l}},I.createContext=function(e){return e={$$typeof:$p,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Ip,_context:e},e.Consumer=e},I.createElement=$a,I.createFactory=function(e){var t=$a.bind(null,e);return t.type=e,t},I.createRef=function(){return{current:null}},I.forwardRef=function(e){return{$$typeof:Dp,render:e}},I.isValidElement=Ai,I.lazy=function(e){return{$$typeof:Bp,_payload:{_status:-1,_result:e},_init:Zp}},I.memo=function(e,t){return{$$typeof:Hp,type:e,compare:t===void 0?null:t}},I.startTransition=function(e){var t=uo.transition;uo.transition={};try{e()}finally{uo.transition=t}},I.unstable_act=Aa,I.useCallback=function(e,t){return Ce.current.useCallback(e,t)},I.useContext=function(e){return Ce.current.useContext(e)},I.useDebugValue=function(){},I.useDeferredValue=function(e){return Ce.current.useDeferredValue(e)},I.useEffect=function(e,t){return Ce.current.useEffect(e,t)},I.useId=function(){return Ce.current.useId()},I.useImperativeHandle=function(e,t,n){return Ce.current.useImperativeHandle(e,t,n)},I.useInsertionEffect=function(e,t){return Ce.current.useInsertionEffect(e,t)},I.useLayoutEffect=function(e,t){return Ce.current.useLayoutEffect(e,t)},I.useMemo=function(e,t){return Ce.current.useMemo(e,t)},I.useReducer=function(e,t,n){return Ce.current.useReducer(e,t,n)},I.useRef=function(e){return Ce.current.useRef(e)},I.useState=function(e){return Ce.current.useState(e)},I.useSyncExternalStore=function(e,t,n){return Ce.current.useSyncExternalStore(e,t,n)},I.useTransition=function(){return Ce.current.useTransition()},I.version="18.3.1",La.exports=I;var R=La.exports;const Et=B(R);/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.production.min.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var Qp=R,Yp=Symbol.for("react.element"),qp=Symbol.for("react.fragment"),Xp=Object.prototype.hasOwnProperty,Gp=Qp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Kp={key:!0,ref:!0,__self:!0,__source:!0};function Ha(e,t,n){var r,o={},i=null,l=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)Xp.call(t,r)&&!Kp.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Yp,type:e,key:i,ref:l,props:o,_owner:Gp.current}}Qt.Fragment=qp,Qt.jsx=Ha,Qt.jsxs=Ha,ie.exports=Qt;var h=ie.exports,Ba={exports:{}},Oe={},Va={exports:{}},Fa={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* scheduler.production.min.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/(function(e){function t(
|
|
25
|
+
*/(function(e){function t(T,z){var O=T.length;T.push(z);e:for(;0<O;){var A=O-1>>>1,ne=T[A];if(0<o(ne,z))T[A]=z,T[O]=ne,O=A;else break e}}function n(T){return T.length===0?null:T[0]}function r(T){if(T.length===0)return null;var z=T[0],O=T.pop();if(O!==z){T[0]=O;e:for(var A=0,ne=T.length,gn=ne>>>1;A<gn;){var _t=2*(A+1)-1,yn=T[_t],dt=_t+1,nt=T[dt];if(0>o(yn,O))dt<ne&&0>o(nt,yn)?(T[A]=nt,T[dt]=O,A=dt):(T[A]=yn,T[_t]=O,A=_t);else if(dt<ne&&0>o(nt,O))T[A]=nt,T[dt]=O,A=dt;else break e}}return z}function o(T,z){var O=T.sortIndex-z.sortIndex;return O!==0?O:T.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var a=[],u=[],c=1,f=null,p=3,y=!1,x=!1,v=!1,E=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(T){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=T)r(u),z.sortIndex=z.expirationTime,t(a,z);else break;z=n(u)}}function b(T){if(v=!1,g(T),!x)if(n(a)!==null)x=!0,ft(S);else{var z=n(u);z!==null&&St(b,z.startTime-T)}}function S(T,z){x=!1,v&&(v=!1,m(k),k=-1),y=!0;var O=p;try{for(g(z),f=n(a);f!==null&&(!(f.expirationTime>z)||T&&!D());){var A=f.callback;if(typeof A=="function"){f.callback=null,p=f.priorityLevel;var ne=A(f.expirationTime<=z);z=e.unstable_now(),typeof ne=="function"?f.callback=ne:f===n(a)&&r(a),g(z)}else r(a);f=n(a)}if(f!==null)var gn=!0;else{var _t=n(u);_t!==null&&St(b,_t.startTime-z),gn=!1}return gn}finally{f=null,p=O,y=!1}}var w=!1,C=null,k=-1,L=5,j=-1;function D(){return!(e.unstable_now()-j<L)}function Q(){if(C!==null){var T=e.unstable_now();j=T;var z=!0;try{z=C(!0,T)}finally{z?G():(w=!1,C=null)}}else w=!1}var G;if(typeof d=="function")G=function(){d(Q)};else if(typeof MessageChannel<"u"){var de=new MessageChannel,tt=de.port2;de.port1.onmessage=Q,G=function(){tt.postMessage(null)}}else G=function(){E(Q,0)};function ft(T){C=T,w||(w=!0,G())}function St(T,z){k=E(function(){T(e.unstable_now())},z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(T){T.callback=null},e.unstable_continueExecution=function(){x||y||(x=!0,ft(S))},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(T){switch(p){case 1:case 2:case 3:var z=3;break;default:z=p}var O=p;p=z;try{return T()}finally{p=O}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(T,z){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var O=p;p=T;try{return z()}finally{p=O}},e.unstable_scheduleCallback=function(T,z,O){var A=e.unstable_now();switch(typeof O=="object"&&O!==null?(O=O.delay,O=typeof O=="number"&&0<O?A+O:A):O=A,T){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=O+ne,T={id:c++,callback:z,priorityLevel:T,startTime:O,expirationTime:ne,sortIndex:-1},O>A?(T.sortIndex=O,t(u,T),n(a)===null&&T===n(u)&&(v?(m(k),k=-1):v=!0,St(b,O-A))):(T.sortIndex=ne,t(a,T),x||y||(x=!0,ft(S))),T},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(T){var z=p;return function(){var O=p;p=z;try{return T.apply(this,arguments)}finally{p=O}}}})(Fa),Va.exports=Fa;var Jp=Va.exports;/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom.production.min.js
|
|
28
28
|
*
|
|
@@ -30,16 +30,16 @@
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var
|
|
34
|
-
`+
|
|
33
|
+
*/var e1=R,Ne=Jp;function _(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Ua=new Set,ir={};function Yt(e,t){wn(e,t),wn(e+"Capture",t)}function wn(e,t){for(ir[e]=t,e=0;e<t.length;e++)Ua.add(t[e])}var pt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bi=Object.prototype.hasOwnProperty,t1=/^[: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]*$/,Za={},Wa={};function n1(e){return Bi.call(Wa,e)?!0:Bi.call(Za,e)?!1:t1.test(e)?Wa[e]=!0:(Za[e]=!0,!1)}function r1(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function o1(e,t,n,r){if(t===null||typeof t>"u"||r1(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function be(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pe[e]=new be(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pe[t]=new be(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){pe[e]=new be(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pe[e]=new be(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){pe[e]=new be(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){pe[e]=new be(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){pe[e]=new be(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){pe[e]=new be(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){pe[e]=new be(e,5,!1,e.toLowerCase(),null,!1,!1)});var Vi=/[\-:]([a-z])/g;function Fi(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Vi,Fi);pe[t]=new be(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Vi,Fi);pe[t]=new be(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Vi,Fi);pe[t]=new be(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){pe[e]=new be(e,1,!1,e.toLowerCase(),null,!1,!1)}),pe.xlinkHref=new be("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){pe[e]=new be(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ui(e,t,n,r){var o=pe.hasOwnProperty(t)?pe[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(o1(t,n,o,r)&&(n=null),r||o===null?n1(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var ht=e1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,co=Symbol.for("react.element"),xn=Symbol.for("react.portal"),kn=Symbol.for("react.fragment"),Zi=Symbol.for("react.strict_mode"),Wi=Symbol.for("react.profiler"),Qa=Symbol.for("react.provider"),Ya=Symbol.for("react.context"),Qi=Symbol.for("react.forward_ref"),Yi=Symbol.for("react.suspense"),qi=Symbol.for("react.suspense_list"),Xi=Symbol.for("react.memo"),jt=Symbol.for("react.lazy"),qa=Symbol.for("react.offscreen"),Xa=Symbol.iterator;function lr(e){return e===null||typeof e!="object"?null:(e=Xa&&e[Xa]||e["@@iterator"],typeof e=="function"?e:null)}var K=Object.assign,Gi;function sr(e){if(Gi===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Gi=t&&t[1]||""}return`
|
|
34
|
+
`+Gi+e}var Ki=!1;function Ji(e,t){if(!e||Ki)return"";Ki=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
|
|
35
35
|
`),i=r.stack.split(`
|
|
36
36
|
`),l=o.length-1,s=i.length-1;1<=l&&0<=s&&o[l]!==i[s];)s--;for(;1<=l&&0<=s;l--,s--)if(o[l]!==i[s]){if(l!==1||s!==1)do if(l--,s--,0>s||o[l]!==i[s]){var a=`
|
|
37
|
-
`+o[l].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{Vi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?er(e):""}function Ip(e){switch(e.tag){case 5:return er(e.type);case 16:return er("Lazy");case 13:return er("Suspense");case 19:return er("SuspenseList");case 0:case 2:case 15:return e=Fi(e.type,!1),e;case 11:return e=Fi(e.type.render,!1),e;case 1:return e=Fi(e.type,!0),e;default:return""}}function Ui(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case vn:return"Fragment";case yn:return"Portal";case Ii:return"Profiler";case Oi:return"StrictMode";case Di:return"Suspense";case Hi:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Na:return(e.displayName||"Context")+".Consumer";case Ma:return(e._context.displayName||"Context")+".Provider";case $i:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ai:return t=e.displayName||null,t!==null?t:Ui(e.type)||"Memo";case St:t=e._payload,e=e._init;try{return Ui(e(t))}catch{}}return null}function $p(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ui(t);case 8:return t===Oi?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function _t(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $a(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Dp(e){var t=$a(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function no(e){e._valueTracker||(e._valueTracker=Dp(e))}function Da(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$a(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ro(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Zi(e,t){var n=t.checked;return G({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ha(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=_t(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Aa(e,t){t=t.checked,t!=null&&Ni(e,"checked",t,!1)}function Wi(e,t){Aa(e,t);var n=_t(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Qi(e,t.type,n):t.hasOwnProperty("defaultValue")&&Qi(e,t.type,_t(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ba(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Qi(e,t,n){(t!=="number"||ro(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var tr=Array.isArray;function wn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+_t(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Yi(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(_(91));return G({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Va(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(_(92));if(tr(n)){if(1<n.length)throw Error(_(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:_t(n)}}function Fa(e,t){var n=_t(t.value),r=_t(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Ua(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Za(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Xi(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Za(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var oo,Wa=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(oo=oo||document.createElement("div"),oo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=oo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function nr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var rr={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},Hp=["Webkit","ms","Moz","O"];Object.keys(rr).forEach(function(e){Hp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),rr[t]=rr[e]})});function Qa(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||rr.hasOwnProperty(e)&&rr[e]?(""+t).trim():t+"px"}function Ya(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Qa(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Ap=G({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Gi(e,t){if(t){if(Ap[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function Ki(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var qi=null;function Ji(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var el=null,xn=null,kn=null;function Xa(e){if(e=_r(e)){if(typeof el!="function")throw Error(_(280));var t=e.stateNode;t&&(t=jo(t),el(e.stateNode,e.type,t))}}function Ga(e){xn?kn?kn.push(e):kn=[e]:xn=e}function Ka(){if(xn){var e=xn,t=kn;if(kn=xn=null,Xa(e),t)for(e=0;e<t.length;e++)Xa(t[e])}}function qa(e,t){return e(t)}function Ja(){}var tl=!1;function eu(e,t,n){if(tl)return e(t,n);tl=!0;try{return qa(e,t,n)}finally{tl=!1,(xn!==null||kn!==null)&&(Ja(),Ka())}}function or(e,t){var n=e.stateNode;if(n===null)return null;var r=jo(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(_(231,t,typeof n));return n}var nl=!1;if(ct)try{var ir={};Object.defineProperty(ir,"passive",{get:function(){nl=!0}}),window.addEventListener("test",ir,ir),window.removeEventListener("test",ir,ir)}catch{nl=!1}function Bp(e,t,n,r,o,i,l,s,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var lr=!1,io=null,lo=!1,rl=null,Vp={onError:function(e){lr=!0,io=e}};function Fp(e,t,n,r,o,i,l,s,a){lr=!1,io=null,Bp.apply(Vp,arguments)}function Up(e,t,n,r,o,i,l,s,a){if(Fp.apply(this,arguments),lr){if(lr){var u=io;lr=!1,io=null}else throw Error(_(198));lo||(lo=!0,rl=u)}}function Qt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function tu(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function nu(e){if(Qt(e)!==e)throw Error(_(188))}function Zp(e){var t=e.alternate;if(!t){if(t=Qt(e),t===null)throw Error(_(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return nu(o),e;if(i===r)return nu(o),t;i=i.sibling}throw Error(_(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l)throw Error(_(189))}}if(n.alternate!==r)throw Error(_(190))}if(n.tag!==3)throw Error(_(188));return n.stateNode.current===n?e:t}function ru(e){return e=Zp(e),e!==null?ou(e):null}function ou(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ou(e);if(t!==null)return t;e=e.sibling}return null}var iu=Ne.unstable_scheduleCallback,lu=Ne.unstable_cancelCallback,Wp=Ne.unstable_shouldYield,Qp=Ne.unstable_requestPaint,re=Ne.unstable_now,Yp=Ne.unstable_getCurrentPriorityLevel,ol=Ne.unstable_ImmediatePriority,su=Ne.unstable_UserBlockingPriority,so=Ne.unstable_NormalPriority,Xp=Ne.unstable_LowPriority,au=Ne.unstable_IdlePriority,ao=null,tt=null;function Gp(e){if(tt&&typeof tt.onCommitFiberRoot=="function")try{tt.onCommitFiberRoot(ao,e,void 0,(e.current.flags&128)===128)}catch{}}var Qe=Math.clz32?Math.clz32:Jp,Kp=Math.log,qp=Math.LN2;function Jp(e){return e>>>=0,e===0?32:31-(Kp(e)/qp|0)|0}var uo=64,co=4194304;function sr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function fo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=sr(s):(i&=l,i!==0&&(r=sr(i)))}else l=n&~o,l!==0?r=sr(l):i!==0&&(r=sr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Qe(t),o=1<<n,r|=e[n],t&=~o;return r}function e1(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function t1(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var l=31-Qe(i),s=1<<l,a=o[l];a===-1?(!(s&n)||s&r)&&(o[l]=e1(s,t)):a<=t&&(e.expiredLanes|=s),i&=~s}}function il(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function uu(){var e=uo;return uo<<=1,!(uo&4194240)&&(uo=64),e}function ll(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ar(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Qe(t),e[t]=n}function n1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Qe(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function sl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Qe(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var A=0;function cu(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var du,al,fu,pu,hu,ul=!1,po=[],Et=null,Lt=null,jt=null,ur=new Map,cr=new Map,Tt=[],r1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function mu(e,t){switch(e){case"focusin":case"focusout":Et=null;break;case"dragenter":case"dragleave":Lt=null;break;case"mouseover":case"mouseout":jt=null;break;case"pointerover":case"pointerout":ur.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":cr.delete(t.pointerId)}}function dr(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=_r(t),t!==null&&al(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function o1(e,t,n,r,o){switch(t){case"focusin":return Et=dr(Et,e,t,n,r,o),!0;case"dragenter":return Lt=dr(Lt,e,t,n,r,o),!0;case"mouseover":return jt=dr(jt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return ur.set(i,dr(ur.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,cr.set(i,dr(cr.get(i)||null,e,t,n,r,o)),!0}return!1}function gu(e){var t=Yt(e.target);if(t!==null){var n=Qt(t);if(n!==null){if(t=n.tag,t===13){if(t=tu(n),t!==null){e.blockedOn=t,hu(e.priority,function(){fu(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ho(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);qi=r,n.target.dispatchEvent(r),qi=null}else return t=_r(n),t!==null&&al(t),e.blockedOn=n,!1;t.shift()}return!0}function yu(e,t,n){ho(e)&&n.delete(t)}function i1(){ul=!1,Et!==null&&ho(Et)&&(Et=null),Lt!==null&&ho(Lt)&&(Lt=null),jt!==null&&ho(jt)&&(jt=null),ur.forEach(yu),cr.forEach(yu)}function fr(e,t){e.blockedOn===t&&(e.blockedOn=null,ul||(ul=!0,Ne.unstable_scheduleCallback(Ne.unstable_NormalPriority,i1)))}function pr(e){function t(o){return fr(o,e)}if(0<po.length){fr(po[0],e);for(var n=1;n<po.length;n++){var r=po[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Et!==null&&fr(Et,e),Lt!==null&&fr(Lt,e),jt!==null&&fr(jt,e),ur.forEach(t),cr.forEach(t),n=0;n<Tt.length;n++)r=Tt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Tt.length&&(n=Tt[0],n.blockedOn===null);)gu(n),n.blockedOn===null&&Tt.shift()}var Cn=dt.ReactCurrentBatchConfig,mo=!0;function l1(e,t,n,r){var o=A,i=Cn.transition;Cn.transition=null;try{A=1,cl(e,t,n,r)}finally{A=o,Cn.transition=i}}function s1(e,t,n,r){var o=A,i=Cn.transition;Cn.transition=null;try{A=4,cl(e,t,n,r)}finally{A=o,Cn.transition=i}}function cl(e,t,n,r){if(mo){var o=dl(e,t,n,r);if(o===null)jl(e,t,r,go,n),mu(e,r);else if(o1(o,e,t,n,r))r.stopPropagation();else if(mu(e,r),t&4&&-1<r1.indexOf(e)){for(;o!==null;){var i=_r(o);if(i!==null&&du(i),i=dl(e,t,n,r),i===null&&jl(e,t,r,go,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else jl(e,t,r,null,n)}}var go=null;function dl(e,t,n,r){if(go=null,e=Ji(r),e=Yt(e),e!==null)if(t=Qt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=tu(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return go=e,null}function vu(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Yp()){case ol:return 1;case su:return 4;case so:case Xp:return 16;case au:return 536870912;default:return 16}default:return 16}}var Pt=null,fl=null,yo=null;function wu(){if(yo)return yo;var e,t=fl,n=t.length,r,o="value"in Pt?Pt.value:Pt.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===o[i-r];r++);return yo=o.slice(e,1<r?1-r:void 0)}function vo(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function wo(){return!0}function xu(){return!1}function Oe(e){function t(n,r,o,i,l){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=l,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?wo:xu,this.isPropagationStopped=xu,this}return G(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=wo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=wo)},persist:function(){},isPersistent:wo}),t}var bn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pl=Oe(bn),hr=G({},bn,{view:0,detail:0}),a1=Oe(hr),hl,ml,mr,xo=G({},hr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yl,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==mr&&(mr&&e.type==="mousemove"?(hl=e.screenX-mr.screenX,ml=e.screenY-mr.screenY):ml=hl=0,mr=e),hl)},movementY:function(e){return"movementY"in e?e.movementY:ml}}),ku=Oe(xo),u1=G({},xo,{dataTransfer:0}),c1=Oe(u1),d1=G({},hr,{relatedTarget:0}),gl=Oe(d1),f1=G({},bn,{animationName:0,elapsedTime:0,pseudoElement:0}),p1=Oe(f1),h1=G({},bn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),m1=Oe(h1),g1=G({},bn,{data:0}),Cu=Oe(g1),y1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},v1={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},w1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function x1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=w1[e])?!!t[e]:!1}function yl(){return x1}var k1=G({},hr,{key:function(e){if(e.key){var t=y1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=vo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?v1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yl,charCode:function(e){return e.type==="keypress"?vo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?vo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),C1=Oe(k1),b1=G({},xo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bu=Oe(b1),S1=G({},hr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yl}),_1=Oe(S1),E1=G({},bn,{propertyName:0,elapsedTime:0,pseudoElement:0}),L1=Oe(E1),j1=G({},xo,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),T1=Oe(j1),P1=[9,13,27,32],vl=ct&&"CompositionEvent"in window,gr=null;ct&&"documentMode"in document&&(gr=document.documentMode);var R1=ct&&"TextEvent"in window&&!gr,Su=ct&&(!vl||gr&&8<gr&&11>=gr),_u=" ",Eu=!1;function Lu(e,t){switch(e){case"keyup":return P1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ju(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Sn=!1;function z1(e,t){switch(e){case"compositionend":return ju(t);case"keypress":return t.which!==32?null:(Eu=!0,_u);case"textInput":return e=t.data,e===_u&&Eu?null:e;default:return null}}function M1(e,t){if(Sn)return e==="compositionend"||!vl&&Lu(e,t)?(e=wu(),yo=fl=Pt=null,Sn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Su&&t.locale!=="ko"?null:t.data;default:return null}}var N1={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Tu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!N1[e.type]:t==="textarea"}function Pu(e,t,n,r){Ga(r),t=_o(t,"onChange"),0<t.length&&(n=new pl("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var yr=null,vr=null;function O1(e){Yu(e,0)}function ko(e){var t=Tn(e);if(Da(t))return e}function I1(e,t){if(e==="change")return t}var Ru=!1;if(ct){var wl;if(ct){var xl="oninput"in document;if(!xl){var zu=document.createElement("div");zu.setAttribute("oninput","return;"),xl=typeof zu.oninput=="function"}wl=xl}else wl=!1;Ru=wl&&(!document.documentMode||9<document.documentMode)}function Mu(){yr&&(yr.detachEvent("onpropertychange",Nu),vr=yr=null)}function Nu(e){if(e.propertyName==="value"&&ko(vr)){var t=[];Pu(t,vr,e,Ji(e)),eu(O1,t)}}function $1(e,t,n){e==="focusin"?(Mu(),yr=t,vr=n,yr.attachEvent("onpropertychange",Nu)):e==="focusout"&&Mu()}function D1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ko(vr)}function H1(e,t){if(e==="click")return ko(t)}function A1(e,t){if(e==="input"||e==="change")return ko(t)}function B1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ye=typeof Object.is=="function"?Object.is:B1;function wr(e,t){if(Ye(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Ri.call(t,o)||!Ye(e[o],t[o]))return!1}return!0}function Ou(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Iu(e,t){var n=Ou(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ou(n)}}function $u(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$u(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Du(){for(var e=window,t=ro();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ro(e.document)}return t}function kl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function V1(e){var t=Du(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&$u(n.ownerDocument.documentElement,n)){if(r!==null&&kl(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Iu(n,i);var l=Iu(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var F1=ct&&"documentMode"in document&&11>=document.documentMode,_n=null,Cl=null,xr=null,bl=!1;function Hu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;bl||_n==null||_n!==ro(r)||(r=_n,"selectionStart"in r&&kl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),xr&&wr(xr,r)||(xr=r,r=_o(Cl,"onSelect"),0<r.length&&(t=new pl("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=_n)))}function Co(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var En={animationend:Co("Animation","AnimationEnd"),animationiteration:Co("Animation","AnimationIteration"),animationstart:Co("Animation","AnimationStart"),transitionend:Co("Transition","TransitionEnd")},Sl={},Au={};ct&&(Au=document.createElement("div").style,"AnimationEvent"in window||(delete En.animationend.animation,delete En.animationiteration.animation,delete En.animationstart.animation),"TransitionEvent"in window||delete En.transitionend.transition);function bo(e){if(Sl[e])return Sl[e];if(!En[e])return e;var t=En[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Au)return Sl[e]=t[n];return e}var Bu=bo("animationend"),Vu=bo("animationiteration"),Fu=bo("animationstart"),Uu=bo("transitionend"),Zu=new Map,Wu="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rt(e,t){Zu.set(e,t),Wt(t,[e])}for(var _l=0;_l<Wu.length;_l++){var El=Wu[_l],U1=El.toLowerCase(),Z1=El[0].toUpperCase()+El.slice(1);Rt(U1,"on"+Z1)}Rt(Bu,"onAnimationEnd"),Rt(Vu,"onAnimationIteration"),Rt(Fu,"onAnimationStart"),Rt("dblclick","onDoubleClick"),Rt("focusin","onFocus"),Rt("focusout","onBlur"),Rt(Uu,"onTransitionEnd"),gn("onMouseEnter",["mouseout","mouseover"]),gn("onMouseLeave",["mouseout","mouseover"]),gn("onPointerEnter",["pointerout","pointerover"]),gn("onPointerLeave",["pointerout","pointerover"]),Wt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Wt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Wt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Wt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Wt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Wt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),W1=new Set("cancel close invalid load scroll toggle".split(" ").concat(kr));function Qu(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Up(r,t,void 0,e),e.currentTarget=null}function Yu(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var l=r.length-1;0<=l;l--){var s=r[l],a=s.instance,u=s.currentTarget;if(s=s.listener,a!==i&&o.isPropagationStopped())break e;Qu(o,s,u),i=a}else for(l=0;l<r.length;l++){if(s=r[l],a=s.instance,u=s.currentTarget,s=s.listener,a!==i&&o.isPropagationStopped())break e;Qu(o,s,u),i=a}}}if(lo)throw e=rl,lo=!1,rl=null,e}function W(e,t){var n=t[Nl];n===void 0&&(n=t[Nl]=new Set);var r=e+"__bubble";n.has(r)||(Xu(t,e,2,!1),n.add(r))}function Ll(e,t,n){var r=0;t&&(r|=4),Xu(n,e,r,t)}var So="_reactListening"+Math.random().toString(36).slice(2);function Cr(e){if(!e[So]){e[So]=!0,Pa.forEach(function(n){n!=="selectionchange"&&(W1.has(n)||Ll(n,!1,e),Ll(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[So]||(t[So]=!0,Ll("selectionchange",!1,t))}}function Xu(e,t,n,r){switch(vu(t)){case 1:var o=l1;break;case 4:o=s1;break;default:o=cl}n=o.bind(null,t,n,e),o=void 0,!nl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function jl(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var s=r.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(l===4)for(l=r.return;l!==null;){var a=l.tag;if((a===3||a===4)&&(a=l.stateNode.containerInfo,a===o||a.nodeType===8&&a.parentNode===o))return;l=l.return}for(;s!==null;){if(l=Yt(s),l===null)return;if(a=l.tag,a===5||a===6){r=i=l;continue e}s=s.parentNode}}r=r.return}eu(function(){var u=i,c=Ji(n),f=[];e:{var h=Zu.get(e);if(h!==void 0){var y=pl,x=e;switch(e){case"keypress":if(vo(n)===0)break e;case"keydown":case"keyup":y=C1;break;case"focusin":x="focus",y=gl;break;case"focusout":x="blur",y=gl;break;case"beforeblur":case"afterblur":y=gl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=ku;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=c1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=_1;break;case Bu:case Vu:case Fu:y=p1;break;case Uu:y=L1;break;case"scroll":y=a1;break;case"wheel":y=T1;break;case"copy":case"cut":case"paste":y=m1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=bu}var v=(t&4)!==0,E=!v&&e==="scroll",m=v?h!==null?h+"Capture":null:h;v=[];for(var d=u,g;d!==null;){g=d;var b=g.stateNode;if(g.tag===5&&b!==null&&(g=b,m!==null&&(b=or(d,m),b!=null&&v.push(br(d,b,g)))),E)break;d=d.return}0<v.length&&(h=new y(h,x,null,n,c),f.push({event:h,listeners:v}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",h&&n!==qi&&(x=n.relatedTarget||n.fromElement)&&(Yt(x)||x[ft]))break e;if((y||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,y?(x=n.relatedTarget||n.toElement,y=u,x=x?Yt(x):null,x!==null&&(E=Qt(x),x!==E||x.tag!==5&&x.tag!==6)&&(x=null)):(y=null,x=u),y!==x)){if(v=ku,b="onMouseLeave",m="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(v=bu,b="onPointerLeave",m="onPointerEnter",d="pointer"),E=y==null?h:Tn(y),g=x==null?h:Tn(x),h=new v(b,d+"leave",y,n,c),h.target=E,h.relatedTarget=g,b=null,Yt(c)===u&&(v=new v(m,d+"enter",x,n,c),v.target=g,v.relatedTarget=E,b=v),E=b,y&&x)t:{for(v=y,m=x,d=0,g=v;g;g=Ln(g))d++;for(g=0,b=m;b;b=Ln(b))g++;for(;0<d-g;)v=Ln(v),d--;for(;0<g-d;)m=Ln(m),g--;for(;d--;){if(v===m||m!==null&&v===m.alternate)break t;v=Ln(v),m=Ln(m)}v=null}else v=null;y!==null&&Gu(f,h,y,v,!1),x!==null&&E!==null&&Gu(f,E,x,v,!0)}}e:{if(h=u?Tn(u):window,y=h.nodeName&&h.nodeName.toLowerCase(),y==="select"||y==="input"&&h.type==="file")var S=I1;else if(Tu(h))if(Ru)S=A1;else{S=D1;var w=$1}else(y=h.nodeName)&&y.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(S=H1);if(S&&(S=S(e,u))){Pu(f,S,n,c);break e}w&&w(e,h,u),e==="focusout"&&(w=h._wrapperState)&&w.controlled&&h.type==="number"&&Qi(h,"number",h.value)}switch(w=u?Tn(u):window,e){case"focusin":(Tu(w)||w.contentEditable==="true")&&(_n=w,Cl=u,xr=null);break;case"focusout":xr=Cl=_n=null;break;case"mousedown":bl=!0;break;case"contextmenu":case"mouseup":case"dragend":bl=!1,Hu(f,n,c);break;case"selectionchange":if(F1)break;case"keydown":case"keyup":Hu(f,n,c)}var k;if(vl)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else Sn?Lu(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(Su&&n.locale!=="ko"&&(Sn||C!=="onCompositionStart"?C==="onCompositionEnd"&&Sn&&(k=wu()):(Pt=c,fl="value"in Pt?Pt.value:Pt.textContent,Sn=!0)),w=_o(u,C),0<w.length&&(C=new Cu(C,e,null,n,c),f.push({event:C,listeners:w}),k?C.data=k:(k=ju(n),k!==null&&(C.data=k)))),(k=R1?z1(e,n):M1(e,n))&&(u=_o(u,"onBeforeInput"),0<u.length&&(c=new Cu("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=k))}Yu(f,t)})}function br(e,t,n){return{instance:e,listener:t,currentTarget:n}}function _o(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=or(e,n),i!=null&&r.unshift(br(e,i,o)),i=or(e,t),i!=null&&r.push(br(e,i,o))),e=e.return}return r}function Ln(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Gu(e,t,n,r,o){for(var i=t._reactName,l=[];n!==null&&n!==r;){var s=n,a=s.alternate,u=s.stateNode;if(a!==null&&a===r)break;s.tag===5&&u!==null&&(s=u,o?(a=or(n,i),a!=null&&l.unshift(br(n,a,s))):o||(a=or(n,i),a!=null&&l.push(br(n,a,s)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var Q1=/\r\n?/g,Y1=/\u0000|\uFFFD/g;function Ku(e){return(typeof e=="string"?e:""+e).replace(Q1,`
|
|
38
|
-
`).replace(Y1,"")}function Eo(e,t,n){if(t=Ku(t),Ku(e)!==t&&n)throw Error(_(425))}function Lo(){}var Tl=null,Pl=null;function Rl(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var zl=typeof setTimeout=="function"?setTimeout:void 0,X1=typeof clearTimeout=="function"?clearTimeout:void 0,qu=typeof Promise=="function"?Promise:void 0,G1=typeof queueMicrotask=="function"?queueMicrotask:typeof qu<"u"?function(e){return qu.resolve(null).then(e).catch(K1)}:zl;function K1(e){setTimeout(function(){throw e})}function Ml(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),pr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);pr(t)}function zt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Ju(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var jn=Math.random().toString(36).slice(2),nt="__reactFiber$"+jn,Sr="__reactProps$"+jn,ft="__reactContainer$"+jn,Nl="__reactEvents$"+jn,q1="__reactListeners$"+jn,J1="__reactHandles$"+jn;function Yt(e){var t=e[nt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ft]||n[nt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ju(e);e!==null;){if(n=e[nt])return n;e=Ju(e)}return t}e=n,n=e.parentNode}return null}function _r(e){return e=e[nt]||e[ft],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Tn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(_(33))}function jo(e){return e[Sr]||null}var Ol=[],Pn=-1;function Mt(e){return{current:e}}function Q(e){0>Pn||(e.current=Ol[Pn],Ol[Pn]=null,Pn--)}function Z(e,t){Pn++,Ol[Pn]=e.current,e.current=t}var Nt={},ge=Mt(Nt),je=Mt(!1),Xt=Nt;function Rn(e,t){var n=e.type.contextTypes;if(!n)return Nt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Te(e){return e=e.childContextTypes,e!=null}function To(){Q(je),Q(ge)}function ec(e,t,n){if(ge.current!==Nt)throw Error(_(168));Z(ge,t),Z(je,n)}function tc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(_(108,$p(e)||"Unknown",o));return G({},n,r)}function Po(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Nt,Xt=ge.current,Z(ge,e),Z(je,je.current),!0}function nc(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=tc(e,t,Xt),r.__reactInternalMemoizedMergedChildContext=e,Q(je),Q(ge),Z(ge,e)):Q(je),Z(je,n)}var pt=null,Ro=!1,Il=!1;function rc(e){pt===null?pt=[e]:pt.push(e)}function eh(e){Ro=!0,rc(e)}function Ot(){if(!Il&&pt!==null){Il=!0;var e=0,t=A;try{var n=pt;for(A=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}pt=null,Ro=!1}catch(o){throw pt!==null&&(pt=pt.slice(e+1)),iu(ol,Ot),o}finally{A=t,Il=!1}}return null}var zn=[],Mn=0,zo=null,Mo=0,He=[],Ae=0,Gt=null,ht=1,mt="";function Kt(e,t){zn[Mn++]=Mo,zn[Mn++]=zo,zo=e,Mo=t}function oc(e,t,n){He[Ae++]=ht,He[Ae++]=mt,He[Ae++]=Gt,Gt=e;var r=ht;e=mt;var o=32-Qe(r)-1;r&=~(1<<o),n+=1;var i=32-Qe(t)+o;if(30<i){var l=o-o%5;i=(r&(1<<l)-1).toString(32),r>>=l,o-=l,ht=1<<32-Qe(t)+o|n<<o|r,mt=i+e}else ht=1<<i|n<<o|r,mt=e}function $l(e){e.return!==null&&(Kt(e,1),oc(e,1,0))}function Dl(e){for(;e===zo;)zo=zn[--Mn],zn[Mn]=null,Mo=zn[--Mn],zn[Mn]=null;for(;e===Gt;)Gt=He[--Ae],He[Ae]=null,mt=He[--Ae],He[Ae]=null,ht=He[--Ae],He[Ae]=null}var Ie=null,$e=null,X=!1,Xe=null;function ic(e,t){var n=Ue(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function lc(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ie=e,$e=zt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ie=e,$e=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gt!==null?{id:ht,overflow:mt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ue(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ie=e,$e=null,!0):!1;default:return!1}}function Hl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Al(e){if(X){var t=$e;if(t){var n=t;if(!lc(e,t)){if(Hl(e))throw Error(_(418));t=zt(n.nextSibling);var r=Ie;t&&lc(e,t)?ic(r,n):(e.flags=e.flags&-4097|2,X=!1,Ie=e)}}else{if(Hl(e))throw Error(_(418));e.flags=e.flags&-4097|2,X=!1,Ie=e}}}function sc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ie=e}function No(e){if(e!==Ie)return!1;if(!X)return sc(e),X=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Rl(e.type,e.memoizedProps)),t&&(t=$e)){if(Hl(e))throw ac(),Error(_(418));for(;t;)ic(e,t),t=zt(t.nextSibling)}if(sc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(_(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){$e=zt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}$e=null}}else $e=Ie?zt(e.stateNode.nextSibling):null;return!0}function ac(){for(var e=$e;e;)e=zt(e.nextSibling)}function Nn(){$e=Ie=null,X=!1}function Bl(e){Xe===null?Xe=[e]:Xe.push(e)}var th=dt.ReactCurrentBatchConfig;function Er(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(_(309));var r=n.stateNode}if(!r)throw Error(_(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(l){var s=o.refs;l===null?delete s[i]:s[i]=l},t._stringRef=i,t)}if(typeof e!="string")throw Error(_(284));if(!n._owner)throw Error(_(290,e))}return e}function Oo(e,t){throw e=Object.prototype.toString.call(t),Error(_(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function uc(e){var t=e._init;return t(e._payload)}function cc(e){function t(m,d){if(e){var g=m.deletions;g===null?(m.deletions=[d],m.flags|=16):g.push(d)}}function n(m,d){if(!e)return null;for(;d!==null;)t(m,d),d=d.sibling;return null}function r(m,d){for(m=new Map;d!==null;)d.key!==null?m.set(d.key,d):m.set(d.index,d),d=d.sibling;return m}function o(m,d){return m=Ft(m,d),m.index=0,m.sibling=null,m}function i(m,d,g){return m.index=g,e?(g=m.alternate,g!==null?(g=g.index,g<d?(m.flags|=2,d):g):(m.flags|=2,d)):(m.flags|=1048576,d)}function l(m){return e&&m.alternate===null&&(m.flags|=2),m}function s(m,d,g,b){return d===null||d.tag!==6?(d=zs(g,m.mode,b),d.return=m,d):(d=o(d,g),d.return=m,d)}function a(m,d,g,b){var S=g.type;return S===vn?c(m,d,g.props.children,b,g.key):d!==null&&(d.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===St&&uc(S)===d.type)?(b=o(d,g.props),b.ref=Er(m,d,g),b.return=m,b):(b=ii(g.type,g.key,g.props,null,m.mode,b),b.ref=Er(m,d,g),b.return=m,b)}function u(m,d,g,b){return d===null||d.tag!==4||d.stateNode.containerInfo!==g.containerInfo||d.stateNode.implementation!==g.implementation?(d=Ms(g,m.mode,b),d.return=m,d):(d=o(d,g.children||[]),d.return=m,d)}function c(m,d,g,b,S){return d===null||d.tag!==7?(d=ln(g,m.mode,b,S),d.return=m,d):(d=o(d,g),d.return=m,d)}function f(m,d,g){if(typeof d=="string"&&d!==""||typeof d=="number")return d=zs(""+d,m.mode,g),d.return=m,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case to:return g=ii(d.type,d.key,d.props,null,m.mode,g),g.ref=Er(m,null,d),g.return=m,g;case yn:return d=Ms(d,m.mode,g),d.return=m,d;case St:var b=d._init;return f(m,b(d._payload),g)}if(tr(d)||Jn(d))return d=ln(d,m.mode,g,null),d.return=m,d;Oo(m,d)}return null}function h(m,d,g,b){var S=d!==null?d.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return S!==null?null:s(m,d,""+g,b);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case to:return g.key===S?a(m,d,g,b):null;case yn:return g.key===S?u(m,d,g,b):null;case St:return S=g._init,h(m,d,S(g._payload),b)}if(tr(g)||Jn(g))return S!==null?null:c(m,d,g,b,null);Oo(m,g)}return null}function y(m,d,g,b,S){if(typeof b=="string"&&b!==""||typeof b=="number")return m=m.get(g)||null,s(d,m,""+b,S);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case to:return m=m.get(b.key===null?g:b.key)||null,a(d,m,b,S);case yn:return m=m.get(b.key===null?g:b.key)||null,u(d,m,b,S);case St:var w=b._init;return y(m,d,g,w(b._payload),S)}if(tr(b)||Jn(b))return m=m.get(g)||null,c(d,m,b,S,null);Oo(d,b)}return null}function x(m,d,g,b){for(var S=null,w=null,k=d,C=d=0,P=null;k!==null&&C<g.length;C++){k.index>C?(P=k,k=null):P=k.sibling;var T=h(m,k,g[C],b);if(T===null){k===null&&(k=P);break}e&&k&&T.alternate===null&&t(m,k),d=i(T,d,C),w===null?S=T:w.sibling=T,w=T,k=P}if(C===g.length)return n(m,k),X&&Kt(m,C),S;if(k===null){for(;C<g.length;C++)k=f(m,g[C],b),k!==null&&(d=i(k,d,C),w===null?S=k:w.sibling=k,w=k);return X&&Kt(m,C),S}for(k=r(m,k);C<g.length;C++)P=y(k,m,C,g[C],b),P!==null&&(e&&P.alternate!==null&&k.delete(P.key===null?C:P.key),d=i(P,d,C),w===null?S=P:w.sibling=P,w=P);return e&&k.forEach(function(D){return t(m,D)}),X&&Kt(m,C),S}function v(m,d,g,b){var S=Jn(g);if(typeof S!="function")throw Error(_(150));if(g=S.call(g),g==null)throw Error(_(151));for(var w=S=null,k=d,C=d=0,P=null,T=g.next();k!==null&&!T.done;C++,T=g.next()){k.index>C?(P=k,k=null):P=k.sibling;var D=h(m,k,T.value,b);if(D===null){k===null&&(k=P);break}e&&k&&D.alternate===null&&t(m,k),d=i(D,d,C),w===null?S=D:w.sibling=D,w=D,k=P}if(T.done)return n(m,k),X&&Kt(m,C),S;if(k===null){for(;!T.done;C++,T=g.next())T=f(m,T.value,b),T!==null&&(d=i(T,d,C),w===null?S=T:w.sibling=T,w=T);return X&&Kt(m,C),S}for(k=r(m,k);!T.done;C++,T=g.next())T=y(k,m,C,T.value,b),T!==null&&(e&&T.alternate!==null&&k.delete(T.key===null?C:T.key),d=i(T,d,C),w===null?S=T:w.sibling=T,w=T);return e&&k.forEach(function(ne){return t(m,ne)}),X&&Kt(m,C),S}function E(m,d,g,b){if(typeof g=="object"&&g!==null&&g.type===vn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case to:e:{for(var S=g.key,w=d;w!==null;){if(w.key===S){if(S=g.type,S===vn){if(w.tag===7){n(m,w.sibling),d=o(w,g.props.children),d.return=m,m=d;break e}}else if(w.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===St&&uc(S)===w.type){n(m,w.sibling),d=o(w,g.props),d.ref=Er(m,w,g),d.return=m,m=d;break e}n(m,w);break}else t(m,w);w=w.sibling}g.type===vn?(d=ln(g.props.children,m.mode,b,g.key),d.return=m,m=d):(b=ii(g.type,g.key,g.props,null,m.mode,b),b.ref=Er(m,d,g),b.return=m,m=b)}return l(m);case yn:e:{for(w=g.key;d!==null;){if(d.key===w)if(d.tag===4&&d.stateNode.containerInfo===g.containerInfo&&d.stateNode.implementation===g.implementation){n(m,d.sibling),d=o(d,g.children||[]),d.return=m,m=d;break e}else{n(m,d);break}else t(m,d);d=d.sibling}d=Ms(g,m.mode,b),d.return=m,m=d}return l(m);case St:return w=g._init,E(m,d,w(g._payload),b)}if(tr(g))return x(m,d,g,b);if(Jn(g))return v(m,d,g,b);Oo(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,d!==null&&d.tag===6?(n(m,d.sibling),d=o(d,g),d.return=m,m=d):(n(m,d),d=zs(g,m.mode,b),d.return=m,m=d),l(m)):n(m,d)}return E}var On=cc(!0),dc=cc(!1),Io=Mt(null),$o=null,In=null,Vl=null;function Fl(){Vl=In=$o=null}function Ul(e){var t=Io.current;Q(Io),e._currentValue=t}function Zl(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function $n(e,t){$o=e,Vl=In=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Pe=!0),e.firstContext=null)}function Be(e){var t=e._currentValue;if(Vl!==e)if(e={context:e,memoizedValue:t,next:null},In===null){if($o===null)throw Error(_(308));In=e,$o.dependencies={lanes:0,firstContext:e}}else In=In.next=e;return t}var qt=null;function Wl(e){qt===null?qt=[e]:qt.push(e)}function fc(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Wl(t)):(n.next=o.next,o.next=n),t.interleaved=n,gt(e,r)}function gt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var It=!1;function Ql(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function pc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function yt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $t(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,I&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,gt(e,n)}return o=r.interleaved,o===null?(t.next=t,Wl(r)):(t.next=o.next,o.next=t),r.interleaved=t,gt(e,n)}function Do(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,sl(e,n)}}function hc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ho(e,t,n,r){var o=e.updateQueue;It=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var a=s,u=a.next;a.next=null,l===null?i=u:l.next=u,l=a;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==l&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=a))}if(i!==null){var f=o.baseState;l=0,c=u=a=null,s=i;do{var h=s.lane,y=s.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:y,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var x=e,v=s;switch(h=t,y=n,v.tag){case 1:if(x=v.payload,typeof x=="function"){f=x.call(y,f,h);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=v.payload,h=typeof x=="function"?x.call(y,f,h):x,h==null)break e;f=G({},f,h);break e;case 2:It=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[s]:h.push(s))}else y={eventTime:y,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=y,a=f):c=c.next=y,l|=h;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;h=s,s=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(c===null&&(a=f),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);tn|=l,e.lanes=l,e.memoizedState=f}}function mc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(_(191,o));o.call(r)}}}var Lr={},rt=Mt(Lr),jr=Mt(Lr),Tr=Mt(Lr);function Jt(e){if(e===Lr)throw Error(_(174));return e}function Yl(e,t){switch(Z(Tr,t),Z(jr,e),Z(rt,Lr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Xi(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Xi(t,e)}Q(rt),Z(rt,t)}function Dn(){Q(rt),Q(jr),Q(Tr)}function gc(e){Jt(Tr.current);var t=Jt(rt.current),n=Xi(t,e.type);t!==n&&(Z(jr,e),Z(rt,n))}function Xl(e){jr.current===e&&(Q(rt),Q(jr))}var K=Mt(0);function Ao(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Gl=[];function Kl(){for(var e=0;e<Gl.length;e++)Gl[e]._workInProgressVersionPrimary=null;Gl.length=0}var Bo=dt.ReactCurrentDispatcher,ql=dt.ReactCurrentBatchConfig,en=0,q=null,ie=null,ae=null,Vo=!1,Pr=!1,Rr=0,nh=0;function ye(){throw Error(_(321))}function Jl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ye(e[n],t[n]))return!1;return!0}function es(e,t,n,r,o,i){if(en=i,q=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Bo.current=e===null||e.memoizedState===null?lh:sh,e=n(r,o),Pr){i=0;do{if(Pr=!1,Rr=0,25<=i)throw Error(_(301));i+=1,ae=ie=null,t.updateQueue=null,Bo.current=ah,e=n(r,o)}while(Pr)}if(Bo.current=Zo,t=ie!==null&&ie.next!==null,en=0,ae=ie=q=null,Vo=!1,t)throw Error(_(300));return e}function ts(){var e=Rr!==0;return Rr=0,e}function ot(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ae===null?q.memoizedState=ae=e:ae=ae.next=e,ae}function Ve(){if(ie===null){var e=q.alternate;e=e!==null?e.memoizedState:null}else e=ie.next;var t=ae===null?q.memoizedState:ae.next;if(t!==null)ae=t,ie=e;else{if(e===null)throw Error(_(310));ie=e,e={memoizedState:ie.memoizedState,baseState:ie.baseState,baseQueue:ie.baseQueue,queue:ie.queue,next:null},ae===null?q.memoizedState=ae=e:ae=ae.next=e}return ae}function zr(e,t){return typeof t=="function"?t(e):t}function ns(e){var t=Ve(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=ie,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var s=l=null,a=null,u=i;do{var c=u.lane;if((en&c)===c)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(s=a=f,l=r):a=a.next=f,q.lanes|=c,tn|=c}u=u.next}while(u!==null&&u!==i);a===null?l=r:a.next=s,Ye(r,t.memoizedState)||(Pe=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,q.lanes|=i,tn|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function rs(e){var t=Ve(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var l=o=o.next;do i=e(i,l.action),l=l.next;while(l!==o);Ye(i,t.memoizedState)||(Pe=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function yc(){}function vc(e,t){var n=q,r=Ve(),o=t(),i=!Ye(r.memoizedState,o);if(i&&(r.memoizedState=o,Pe=!0),r=r.queue,os(kc.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||ae!==null&&ae.memoizedState.tag&1){if(n.flags|=2048,Mr(9,xc.bind(null,n,r,o,t),void 0,null),ue===null)throw Error(_(349));en&30||wc(n,t,o)}return o}function wc(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=q.updateQueue,t===null?(t={lastEffect:null,stores:null},q.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function xc(e,t,n,r){t.value=n,t.getSnapshot=r,Cc(t)&&bc(e)}function kc(e,t,n){return n(function(){Cc(t)&&bc(e)})}function Cc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ye(e,n)}catch{return!0}}function bc(e){var t=gt(e,1);t!==null&&Je(t,e,1,-1)}function Sc(e){var t=ot();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:zr,lastRenderedState:e},t.queue=e,e=e.dispatch=ih.bind(null,q,e),[t.memoizedState,e]}function Mr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=q.updateQueue,t===null?(t={lastEffect:null,stores:null},q.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function _c(){return Ve().memoizedState}function Fo(e,t,n,r){var o=ot();q.flags|=e,o.memoizedState=Mr(1|t,n,void 0,r===void 0?null:r)}function Uo(e,t,n,r){var o=Ve();r=r===void 0?null:r;var i=void 0;if(ie!==null){var l=ie.memoizedState;if(i=l.destroy,r!==null&&Jl(r,l.deps)){o.memoizedState=Mr(t,n,i,r);return}}q.flags|=e,o.memoizedState=Mr(1|t,n,i,r)}function Ec(e,t){return Fo(8390656,8,e,t)}function os(e,t){return Uo(2048,8,e,t)}function Lc(e,t){return Uo(4,2,e,t)}function jc(e,t){return Uo(4,4,e,t)}function Tc(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Pc(e,t,n){return n=n!=null?n.concat([e]):null,Uo(4,4,Tc.bind(null,t,e),n)}function is(){}function Rc(e,t){var n=Ve();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Jl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function zc(e,t){var n=Ve();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Jl(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Mc(e,t,n){return en&21?(Ye(n,t)||(n=uu(),q.lanes|=n,tn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Pe=!0),e.memoizedState=n)}function rh(e,t){var n=A;A=n!==0&&4>n?n:4,e(!0);var r=ql.transition;ql.transition={};try{e(!1),t()}finally{A=n,ql.transition=r}}function Nc(){return Ve().memoizedState}function oh(e,t,n){var r=Bt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Oc(e))Ic(t,n);else if(n=fc(e,t,n,r),n!==null){var o=be();Je(n,e,r,o),$c(n,t,r)}}function ih(e,t,n){var r=Bt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Oc(e))Ic(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,Ye(s,l)){var a=t.interleaved;a===null?(o.next=o,Wl(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=fc(e,t,o,r),n!==null&&(o=be(),Je(n,e,r,o),$c(n,t,r))}}function Oc(e){var t=e.alternate;return e===q||t!==null&&t===q}function Ic(e,t){Pr=Vo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function $c(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,sl(e,n)}}var Zo={readContext:Be,useCallback:ye,useContext:ye,useEffect:ye,useImperativeHandle:ye,useInsertionEffect:ye,useLayoutEffect:ye,useMemo:ye,useReducer:ye,useRef:ye,useState:ye,useDebugValue:ye,useDeferredValue:ye,useTransition:ye,useMutableSource:ye,useSyncExternalStore:ye,useId:ye,unstable_isNewReconciler:!1},lh={readContext:Be,useCallback:function(e,t){return ot().memoizedState=[e,t===void 0?null:t],e},useContext:Be,useEffect:Ec,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Fo(4194308,4,Tc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fo(4,2,e,t)},useMemo:function(e,t){var n=ot();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ot();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=oh.bind(null,q,e),[r.memoizedState,e]},useRef:function(e){var t=ot();return e={current:e},t.memoizedState=e},useState:Sc,useDebugValue:is,useDeferredValue:function(e){return ot().memoizedState=e},useTransition:function(){var e=Sc(!1),t=e[0];return e=rh.bind(null,e[1]),ot().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=q,o=ot();if(X){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),ue===null)throw Error(_(349));en&30||wc(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Ec(kc.bind(null,r,i,e),[e]),r.flags|=2048,Mr(9,xc.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ot(),t=ue.identifierPrefix;if(X){var n=mt,r=ht;n=(r&~(1<<32-Qe(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Rr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=nh++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},sh={readContext:Be,useCallback:Rc,useContext:Be,useEffect:os,useImperativeHandle:Pc,useInsertionEffect:Lc,useLayoutEffect:jc,useMemo:zc,useReducer:ns,useRef:_c,useState:function(){return ns(zr)},useDebugValue:is,useDeferredValue:function(e){var t=Ve();return Mc(t,ie.memoizedState,e)},useTransition:function(){var e=ns(zr)[0],t=Ve().memoizedState;return[e,t]},useMutableSource:yc,useSyncExternalStore:vc,useId:Nc,unstable_isNewReconciler:!1},ah={readContext:Be,useCallback:Rc,useContext:Be,useEffect:os,useImperativeHandle:Pc,useInsertionEffect:Lc,useLayoutEffect:jc,useMemo:zc,useReducer:rs,useRef:_c,useState:function(){return rs(zr)},useDebugValue:is,useDeferredValue:function(e){var t=Ve();return ie===null?t.memoizedState=e:Mc(t,ie.memoizedState,e)},useTransition:function(){var e=rs(zr)[0],t=Ve().memoizedState;return[e,t]},useMutableSource:yc,useSyncExternalStore:vc,useId:Nc,unstable_isNewReconciler:!1};function Ge(e,t){if(e&&e.defaultProps){t=G({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ls(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:G({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Wo={isMounted:function(e){return(e=e._reactInternals)?Qt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=be(),o=Bt(e),i=yt(r,o);i.payload=t,n!=null&&(i.callback=n),t=$t(e,i,o),t!==null&&(Je(t,e,o,r),Do(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=be(),o=Bt(e),i=yt(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=$t(e,i,o),t!==null&&(Je(t,e,o,r),Do(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=be(),r=Bt(e),o=yt(n,r);o.tag=2,t!=null&&(o.callback=t),t=$t(e,o,r),t!==null&&(Je(t,e,r,n),Do(t,e,r))}};function Dc(e,t,n,r,o,i,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,l):t.prototype&&t.prototype.isPureReactComponent?!wr(n,r)||!wr(o,i):!0}function Hc(e,t,n){var r=!1,o=Nt,i=t.contextType;return typeof i=="object"&&i!==null?i=Be(i):(o=Te(t)?Xt:ge.current,r=t.contextTypes,i=(r=r!=null)?Rn(e,o):Nt),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Wo,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ac(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Wo.enqueueReplaceState(t,t.state,null)}function ss(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Ql(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Be(i):(i=Te(t)?Xt:ge.current,o.context=Rn(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(ls(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Wo.enqueueReplaceState(o,o.state,null),Ho(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Hn(e,t){try{var n="",r=t;do n+=Ip(r),r=r.return;while(r);var o=n}catch(i){o=`
|
|
37
|
+
`+o[l].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{Ki=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?sr(e):""}function i1(e){switch(e.tag){case 5:return sr(e.type);case 16:return sr("Lazy");case 13:return sr("Suspense");case 19:return sr("SuspenseList");case 0:case 2:case 15:return e=Ji(e.type,!1),e;case 11:return e=Ji(e.type.render,!1),e;case 1:return e=Ji(e.type,!0),e;default:return""}}function el(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case kn:return"Fragment";case xn:return"Portal";case Wi:return"Profiler";case Zi:return"StrictMode";case Yi:return"Suspense";case qi:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ya:return(e.displayName||"Context")+".Consumer";case Qa:return(e._context.displayName||"Context")+".Provider";case Qi:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Xi:return t=e.displayName||null,t!==null?t:el(e.type)||"Memo";case jt:t=e._payload,e=e._init;try{return el(e(t))}catch{}}return null}function l1(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return el(t);case 8:return t===Zi?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Lt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ga(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function s1(e){var t=Ga(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function fo(e){e._valueTracker||(e._valueTracker=s1(e))}function Ka(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ga(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function po(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function tl(e,t){var n=t.checked;return K({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ja(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Lt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function eu(e,t){t=t.checked,t!=null&&Ui(e,"checked",t,!1)}function nl(e,t){eu(e,t);var n=Lt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?rl(e,t.type,n):t.hasOwnProperty("defaultValue")&&rl(e,t.type,Lt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function tu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function rl(e,t,n){(t!=="number"||po(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ar=Array.isArray;function Cn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Lt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function ol(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(_(91));return K({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function nu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(_(92));if(ar(n)){if(1<n.length)throw Error(_(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Lt(n)}}function ru(e,t){var n=Lt(t.value),r=Lt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function ou(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function iu(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function il(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?iu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ho,lu=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ho=ho||document.createElement("div"),ho.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ho.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ur(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var cr={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},a1=["Webkit","ms","Moz","O"];Object.keys(cr).forEach(function(e){a1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),cr[t]=cr[e]})});function su(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||cr.hasOwnProperty(e)&&cr[e]?(""+t).trim():t+"px"}function au(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=su(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var u1=K({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ll(e,t){if(t){if(u1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function sl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var al=null;function ul(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var cl=null,bn=null,Sn=null;function uu(e){if(e=zr(e)){if(typeof cl!="function")throw Error(_(280));var t=e.stateNode;t&&(t=$o(t),cl(e.stateNode,e.type,t))}}function cu(e){bn?Sn?Sn.push(e):Sn=[e]:bn=e}function fu(){if(bn){var e=bn,t=Sn;if(Sn=bn=null,uu(e),t)for(e=0;e<t.length;e++)uu(t[e])}}function du(e,t){return e(t)}function pu(){}var fl=!1;function hu(e,t,n){if(fl)return e(t,n);fl=!0;try{return du(e,t,n)}finally{fl=!1,(bn!==null||Sn!==null)&&(pu(),fu())}}function fr(e,t){var n=e.stateNode;if(n===null)return null;var r=$o(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(_(231,t,typeof n));return n}var dl=!1;if(pt)try{var dr={};Object.defineProperty(dr,"passive",{get:function(){dl=!0}}),window.addEventListener("test",dr,dr),window.removeEventListener("test",dr,dr)}catch{dl=!1}function c1(e,t,n,r,o,i,l,s,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var pr=!1,mo=null,go=!1,pl=null,f1={onError:function(e){pr=!0,mo=e}};function d1(e,t,n,r,o,i,l,s,a){pr=!1,mo=null,c1.apply(f1,arguments)}function p1(e,t,n,r,o,i,l,s,a){if(d1.apply(this,arguments),pr){if(pr){var u=mo;pr=!1,mo=null}else throw Error(_(198));go||(go=!0,pl=u)}}function qt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function mu(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function gu(e){if(qt(e)!==e)throw Error(_(188))}function h1(e){var t=e.alternate;if(!t){if(t=qt(e),t===null)throw Error(_(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return gu(o),e;if(i===r)return gu(o),t;i=i.sibling}throw Error(_(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l)throw Error(_(189))}}if(n.alternate!==r)throw Error(_(190))}if(n.tag!==3)throw Error(_(188));return n.stateNode.current===n?e:t}function yu(e){return e=h1(e),e!==null?vu(e):null}function vu(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=vu(e);if(t!==null)return t;e=e.sibling}return null}var wu=Ne.unstable_scheduleCallback,xu=Ne.unstable_cancelCallback,m1=Ne.unstable_shouldYield,g1=Ne.unstable_requestPaint,oe=Ne.unstable_now,y1=Ne.unstable_getCurrentPriorityLevel,hl=Ne.unstable_ImmediatePriority,ku=Ne.unstable_UserBlockingPriority,yo=Ne.unstable_NormalPriority,v1=Ne.unstable_LowPriority,Cu=Ne.unstable_IdlePriority,vo=null,ot=null;function w1(e){if(ot&&typeof ot.onCommitFiberRoot=="function")try{ot.onCommitFiberRoot(vo,e,void 0,(e.current.flags&128)===128)}catch{}}var Ye=Math.clz32?Math.clz32:C1,x1=Math.log,k1=Math.LN2;function C1(e){return e>>>=0,e===0?32:31-(x1(e)/k1|0)|0}var wo=64,xo=4194304;function hr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ko(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=hr(s):(i&=l,i!==0&&(r=hr(i)))}else l=n&~o,l!==0?r=hr(l):i!==0&&(r=hr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ye(t),o=1<<n,r|=e[n],t&=~o;return r}function b1(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function S1(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var l=31-Ye(i),s=1<<l,a=o[l];a===-1?(!(s&n)||s&r)&&(o[l]=b1(s,t)):a<=t&&(e.expiredLanes|=s),i&=~s}}function ml(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function bu(){var e=wo;return wo<<=1,!(wo&4194240)&&(wo=64),e}function gl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function mr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ye(t),e[t]=n}function _1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Ye(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function yl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ye(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var V=0;function Su(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var _u,vl,Eu,ju,Lu,wl=!1,Co=[],Tt=null,Pt=null,Rt=null,gr=new Map,yr=new Map,zt=[],E1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Tu(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":Pt=null;break;case"mouseover":case"mouseout":Rt=null;break;case"pointerover":case"pointerout":gr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":yr.delete(t.pointerId)}}function vr(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=zr(t),t!==null&&vl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function j1(e,t,n,r,o){switch(t){case"focusin":return Tt=vr(Tt,e,t,n,r,o),!0;case"dragenter":return Pt=vr(Pt,e,t,n,r,o),!0;case"mouseover":return Rt=vr(Rt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return gr.set(i,vr(gr.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,yr.set(i,vr(yr.get(i)||null,e,t,n,r,o)),!0}return!1}function Pu(e){var t=Xt(e.target);if(t!==null){var n=qt(t);if(n!==null){if(t=n.tag,t===13){if(t=mu(n),t!==null){e.blockedOn=t,Lu(e.priority,function(){Eu(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function bo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=kl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);al=r,n.target.dispatchEvent(r),al=null}else return t=zr(n),t!==null&&vl(t),e.blockedOn=n,!1;t.shift()}return!0}function Ru(e,t,n){bo(e)&&n.delete(t)}function L1(){wl=!1,Tt!==null&&bo(Tt)&&(Tt=null),Pt!==null&&bo(Pt)&&(Pt=null),Rt!==null&&bo(Rt)&&(Rt=null),gr.forEach(Ru),yr.forEach(Ru)}function wr(e,t){e.blockedOn===t&&(e.blockedOn=null,wl||(wl=!0,Ne.unstable_scheduleCallback(Ne.unstable_NormalPriority,L1)))}function xr(e){function t(o){return wr(o,e)}if(0<Co.length){wr(Co[0],e);for(var n=1;n<Co.length;n++){var r=Co[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Tt!==null&&wr(Tt,e),Pt!==null&&wr(Pt,e),Rt!==null&&wr(Rt,e),gr.forEach(t),yr.forEach(t),n=0;n<zt.length;n++)r=zt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<zt.length&&(n=zt[0],n.blockedOn===null);)Pu(n),n.blockedOn===null&&zt.shift()}var _n=ht.ReactCurrentBatchConfig,So=!0;function T1(e,t,n,r){var o=V,i=_n.transition;_n.transition=null;try{V=1,xl(e,t,n,r)}finally{V=o,_n.transition=i}}function P1(e,t,n,r){var o=V,i=_n.transition;_n.transition=null;try{V=4,xl(e,t,n,r)}finally{V=o,_n.transition=i}}function xl(e,t,n,r){if(So){var o=kl(e,t,n,r);if(o===null)Dl(e,t,r,_o,n),Tu(e,r);else if(j1(o,e,t,n,r))r.stopPropagation();else if(Tu(e,r),t&4&&-1<E1.indexOf(e)){for(;o!==null;){var i=zr(o);if(i!==null&&_u(i),i=kl(e,t,n,r),i===null&&Dl(e,t,r,_o,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else Dl(e,t,r,null,n)}}var _o=null;function kl(e,t,n,r){if(_o=null,e=ul(r),e=Xt(e),e!==null)if(t=qt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=mu(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return _o=e,null}function zu(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(y1()){case hl:return 1;case ku:return 4;case yo:case v1:return 16;case Cu:return 536870912;default:return 16}default:return 16}}var Mt=null,Cl=null,Eo=null;function Mu(){if(Eo)return Eo;var e,t=Cl,n=t.length,r,o="value"in Mt?Mt.value:Mt.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===o[i-r];r++);return Eo=o.slice(e,1<r?1-r:void 0)}function jo(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Lo(){return!0}function Ou(){return!1}function Ie(e){function t(n,r,o,i,l){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=l,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Lo:Ou,this.isPropagationStopped=Ou,this}return K(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Lo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Lo)},persist:function(){},isPersistent:Lo}),t}var En={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bl=Ie(En),kr=K({},En,{view:0,detail:0}),R1=Ie(kr),Sl,_l,Cr,To=K({},kr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jl,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Cr&&(Cr&&e.type==="mousemove"?(Sl=e.screenX-Cr.screenX,_l=e.screenY-Cr.screenY):_l=Sl=0,Cr=e),Sl)},movementY:function(e){return"movementY"in e?e.movementY:_l}}),Nu=Ie(To),z1=K({},To,{dataTransfer:0}),M1=Ie(z1),O1=K({},kr,{relatedTarget:0}),El=Ie(O1),N1=K({},En,{animationName:0,elapsedTime:0,pseudoElement:0}),I1=Ie(N1),$1=K({},En,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),D1=Ie($1),A1=K({},En,{data:0}),Iu=Ie(A1),H1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},B1={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},V1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function F1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=V1[e])?!!t[e]:!1}function jl(){return F1}var U1=K({},kr,{key:function(e){if(e.key){var t=H1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=jo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?B1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jl,charCode:function(e){return e.type==="keypress"?jo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?jo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Z1=Ie(U1),W1=K({},To,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$u=Ie(W1),Q1=K({},kr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jl}),Y1=Ie(Q1),q1=K({},En,{propertyName:0,elapsedTime:0,pseudoElement:0}),X1=Ie(q1),G1=K({},To,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),K1=Ie(G1),J1=[9,13,27,32],Ll=pt&&"CompositionEvent"in window,br=null;pt&&"documentMode"in document&&(br=document.documentMode);var eh=pt&&"TextEvent"in window&&!br,Du=pt&&(!Ll||br&&8<br&&11>=br),Au=" ",Hu=!1;function Bu(e,t){switch(e){case"keyup":return J1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var jn=!1;function th(e,t){switch(e){case"compositionend":return Vu(t);case"keypress":return t.which!==32?null:(Hu=!0,Au);case"textInput":return e=t.data,e===Au&&Hu?null:e;default:return null}}function nh(e,t){if(jn)return e==="compositionend"||!Ll&&Bu(e,t)?(e=Mu(),Eo=Cl=Mt=null,jn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Du&&t.locale!=="ko"?null:t.data;default:return null}}var rh={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Fu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!rh[e.type]:t==="textarea"}function Uu(e,t,n,r){cu(r),t=Oo(t,"onChange"),0<t.length&&(n=new bl("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Sr=null,_r=null;function oh(e){ac(e,0)}function Po(e){var t=zn(e);if(Ka(t))return e}function ih(e,t){if(e==="change")return t}var Zu=!1;if(pt){var Tl;if(pt){var Pl="oninput"in document;if(!Pl){var Wu=document.createElement("div");Wu.setAttribute("oninput","return;"),Pl=typeof Wu.oninput=="function"}Tl=Pl}else Tl=!1;Zu=Tl&&(!document.documentMode||9<document.documentMode)}function Qu(){Sr&&(Sr.detachEvent("onpropertychange",Yu),_r=Sr=null)}function Yu(e){if(e.propertyName==="value"&&Po(_r)){var t=[];Uu(t,_r,e,ul(e)),hu(oh,t)}}function lh(e,t,n){e==="focusin"?(Qu(),Sr=t,_r=n,Sr.attachEvent("onpropertychange",Yu)):e==="focusout"&&Qu()}function sh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Po(_r)}function ah(e,t){if(e==="click")return Po(t)}function uh(e,t){if(e==="input"||e==="change")return Po(t)}function ch(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qe=typeof Object.is=="function"?Object.is:ch;function Er(e,t){if(qe(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Bi.call(t,o)||!qe(e[o],t[o]))return!1}return!0}function qu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Xu(e,t){var n=qu(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=qu(n)}}function Gu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Gu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ku(){for(var e=window,t=po();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=po(e.document)}return t}function Rl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function fh(e){var t=Ku(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Gu(n.ownerDocument.documentElement,n)){if(r!==null&&Rl(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Xu(n,i);var l=Xu(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var dh=pt&&"documentMode"in document&&11>=document.documentMode,Ln=null,zl=null,jr=null,Ml=!1;function Ju(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ml||Ln==null||Ln!==po(r)||(r=Ln,"selectionStart"in r&&Rl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),jr&&Er(jr,r)||(jr=r,r=Oo(zl,"onSelect"),0<r.length&&(t=new bl("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ln)))}function Ro(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Tn={animationend:Ro("Animation","AnimationEnd"),animationiteration:Ro("Animation","AnimationIteration"),animationstart:Ro("Animation","AnimationStart"),transitionend:Ro("Transition","TransitionEnd")},Ol={},ec={};pt&&(ec=document.createElement("div").style,"AnimationEvent"in window||(delete Tn.animationend.animation,delete Tn.animationiteration.animation,delete Tn.animationstart.animation),"TransitionEvent"in window||delete Tn.transitionend.transition);function zo(e){if(Ol[e])return Ol[e];if(!Tn[e])return e;var t=Tn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ec)return Ol[e]=t[n];return e}var tc=zo("animationend"),nc=zo("animationiteration"),rc=zo("animationstart"),oc=zo("transitionend"),ic=new Map,lc="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ot(e,t){ic.set(e,t),Yt(t,[e])}for(var Nl=0;Nl<lc.length;Nl++){var Il=lc[Nl],ph=Il.toLowerCase(),hh=Il[0].toUpperCase()+Il.slice(1);Ot(ph,"on"+hh)}Ot(tc,"onAnimationEnd"),Ot(nc,"onAnimationIteration"),Ot(rc,"onAnimationStart"),Ot("dblclick","onDoubleClick"),Ot("focusin","onFocus"),Ot("focusout","onBlur"),Ot(oc,"onTransitionEnd"),wn("onMouseEnter",["mouseout","mouseover"]),wn("onMouseLeave",["mouseout","mouseover"]),wn("onPointerEnter",["pointerout","pointerover"]),wn("onPointerLeave",["pointerout","pointerover"]),Yt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Yt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Yt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Yt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Yt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Yt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),mh=new Set("cancel close invalid load scroll toggle".split(" ").concat(Lr));function sc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,p1(r,t,void 0,e),e.currentTarget=null}function ac(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var l=r.length-1;0<=l;l--){var s=r[l],a=s.instance,u=s.currentTarget;if(s=s.listener,a!==i&&o.isPropagationStopped())break e;sc(o,s,u),i=a}else for(l=0;l<r.length;l++){if(s=r[l],a=s.instance,u=s.currentTarget,s=s.listener,a!==i&&o.isPropagationStopped())break e;sc(o,s,u),i=a}}}if(go)throw e=pl,go=!1,pl=null,e}function Y(e,t){var n=t[Ul];n===void 0&&(n=t[Ul]=new Set);var r=e+"__bubble";n.has(r)||(uc(t,e,2,!1),n.add(r))}function $l(e,t,n){var r=0;t&&(r|=4),uc(n,e,r,t)}var Mo="_reactListening"+Math.random().toString(36).slice(2);function Tr(e){if(!e[Mo]){e[Mo]=!0,Ua.forEach(function(n){n!=="selectionchange"&&(mh.has(n)||$l(n,!1,e),$l(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Mo]||(t[Mo]=!0,$l("selectionchange",!1,t))}}function uc(e,t,n,r){switch(zu(t)){case 1:var o=T1;break;case 4:o=P1;break;default:o=xl}n=o.bind(null,t,n,e),o=void 0,!dl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Dl(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var s=r.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(l===4)for(l=r.return;l!==null;){var a=l.tag;if((a===3||a===4)&&(a=l.stateNode.containerInfo,a===o||a.nodeType===8&&a.parentNode===o))return;l=l.return}for(;s!==null;){if(l=Xt(s),l===null)return;if(a=l.tag,a===5||a===6){r=i=l;continue e}s=s.parentNode}}r=r.return}hu(function(){var u=i,c=ul(n),f=[];e:{var p=ic.get(e);if(p!==void 0){var y=bl,x=e;switch(e){case"keypress":if(jo(n)===0)break e;case"keydown":case"keyup":y=Z1;break;case"focusin":x="focus",y=El;break;case"focusout":x="blur",y=El;break;case"beforeblur":case"afterblur":y=El;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=Nu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=M1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=Y1;break;case tc:case nc:case rc:y=I1;break;case oc:y=X1;break;case"scroll":y=R1;break;case"wheel":y=K1;break;case"copy":case"cut":case"paste":y=D1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=$u}var v=(t&4)!==0,E=!v&&e==="scroll",m=v?p!==null?p+"Capture":null:p;v=[];for(var d=u,g;d!==null;){g=d;var b=g.stateNode;if(g.tag===5&&b!==null&&(g=b,m!==null&&(b=fr(d,m),b!=null&&v.push(Pr(d,b,g)))),E)break;d=d.return}0<v.length&&(p=new y(p,x,null,n,c),f.push({event:p,listeners:v}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",p&&n!==al&&(x=n.relatedTarget||n.fromElement)&&(Xt(x)||x[mt]))break e;if((y||p)&&(p=c.window===c?c:(p=c.ownerDocument)?p.defaultView||p.parentWindow:window,y?(x=n.relatedTarget||n.toElement,y=u,x=x?Xt(x):null,x!==null&&(E=qt(x),x!==E||x.tag!==5&&x.tag!==6)&&(x=null)):(y=null,x=u),y!==x)){if(v=Nu,b="onMouseLeave",m="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(v=$u,b="onPointerLeave",m="onPointerEnter",d="pointer"),E=y==null?p:zn(y),g=x==null?p:zn(x),p=new v(b,d+"leave",y,n,c),p.target=E,p.relatedTarget=g,b=null,Xt(c)===u&&(v=new v(m,d+"enter",x,n,c),v.target=g,v.relatedTarget=E,b=v),E=b,y&&x)t:{for(v=y,m=x,d=0,g=v;g;g=Pn(g))d++;for(g=0,b=m;b;b=Pn(b))g++;for(;0<d-g;)v=Pn(v),d--;for(;0<g-d;)m=Pn(m),g--;for(;d--;){if(v===m||m!==null&&v===m.alternate)break t;v=Pn(v),m=Pn(m)}v=null}else v=null;y!==null&&cc(f,p,y,v,!1),x!==null&&E!==null&&cc(f,E,x,v,!0)}}e:{if(p=u?zn(u):window,y=p.nodeName&&p.nodeName.toLowerCase(),y==="select"||y==="input"&&p.type==="file")var S=ih;else if(Fu(p))if(Zu)S=uh;else{S=sh;var w=lh}else(y=p.nodeName)&&y.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(S=ah);if(S&&(S=S(e,u))){Uu(f,S,n,c);break e}w&&w(e,p,u),e==="focusout"&&(w=p._wrapperState)&&w.controlled&&p.type==="number"&&rl(p,"number",p.value)}switch(w=u?zn(u):window,e){case"focusin":(Fu(w)||w.contentEditable==="true")&&(Ln=w,zl=u,jr=null);break;case"focusout":jr=zl=Ln=null;break;case"mousedown":Ml=!0;break;case"contextmenu":case"mouseup":case"dragend":Ml=!1,Ju(f,n,c);break;case"selectionchange":if(dh)break;case"keydown":case"keyup":Ju(f,n,c)}var C;if(Ll)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else jn?Bu(e,n)&&(k="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(k="onCompositionStart");k&&(Du&&n.locale!=="ko"&&(jn||k!=="onCompositionStart"?k==="onCompositionEnd"&&jn&&(C=Mu()):(Mt=c,Cl="value"in Mt?Mt.value:Mt.textContent,jn=!0)),w=Oo(u,k),0<w.length&&(k=new Iu(k,e,null,n,c),f.push({event:k,listeners:w}),C?k.data=C:(C=Vu(n),C!==null&&(k.data=C)))),(C=eh?th(e,n):nh(e,n))&&(u=Oo(u,"onBeforeInput"),0<u.length&&(c=new Iu("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=C))}ac(f,t)})}function Pr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Oo(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=fr(e,n),i!=null&&r.unshift(Pr(e,i,o)),i=fr(e,t),i!=null&&r.push(Pr(e,i,o))),e=e.return}return r}function Pn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function cc(e,t,n,r,o){for(var i=t._reactName,l=[];n!==null&&n!==r;){var s=n,a=s.alternate,u=s.stateNode;if(a!==null&&a===r)break;s.tag===5&&u!==null&&(s=u,o?(a=fr(n,i),a!=null&&l.unshift(Pr(n,a,s))):o||(a=fr(n,i),a!=null&&l.push(Pr(n,a,s)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var gh=/\r\n?/g,yh=/\u0000|\uFFFD/g;function fc(e){return(typeof e=="string"?e:""+e).replace(gh,`
|
|
38
|
+
`).replace(yh,"")}function No(e,t,n){if(t=fc(t),fc(e)!==t&&n)throw Error(_(425))}function Io(){}var Al=null,Hl=null;function Bl(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Vl=typeof setTimeout=="function"?setTimeout:void 0,vh=typeof clearTimeout=="function"?clearTimeout:void 0,dc=typeof Promise=="function"?Promise:void 0,wh=typeof queueMicrotask=="function"?queueMicrotask:typeof dc<"u"?function(e){return dc.resolve(null).then(e).catch(xh)}:Vl;function xh(e){setTimeout(function(){throw e})}function Fl(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),xr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);xr(t)}function Nt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function pc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Rn=Math.random().toString(36).slice(2),it="__reactFiber$"+Rn,Rr="__reactProps$"+Rn,mt="__reactContainer$"+Rn,Ul="__reactEvents$"+Rn,kh="__reactListeners$"+Rn,Ch="__reactHandles$"+Rn;function Xt(e){var t=e[it];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mt]||n[it]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=pc(e);e!==null;){if(n=e[it])return n;e=pc(e)}return t}e=n,n=e.parentNode}return null}function zr(e){return e=e[it]||e[mt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function zn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(_(33))}function $o(e){return e[Rr]||null}var Zl=[],Mn=-1;function It(e){return{current:e}}function q(e){0>Mn||(e.current=Zl[Mn],Zl[Mn]=null,Mn--)}function W(e,t){Mn++,Zl[Mn]=e.current,e.current=t}var $t={},ve=It($t),Te=It(!1),Gt=$t;function On(e,t){var n=e.type.contextTypes;if(!n)return $t;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Pe(e){return e=e.childContextTypes,e!=null}function Do(){q(Te),q(ve)}function hc(e,t,n){if(ve.current!==$t)throw Error(_(168));W(ve,t),W(Te,n)}function mc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(_(108,l1(e)||"Unknown",o));return K({},n,r)}function Ao(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||$t,Gt=ve.current,W(ve,e),W(Te,Te.current),!0}function gc(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=mc(e,t,Gt),r.__reactInternalMemoizedMergedChildContext=e,q(Te),q(ve),W(ve,e)):q(Te),W(Te,n)}var gt=null,Ho=!1,Wl=!1;function yc(e){gt===null?gt=[e]:gt.push(e)}function bh(e){Ho=!0,yc(e)}function Dt(){if(!Wl&>!==null){Wl=!0;var e=0,t=V;try{var n=gt;for(V=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}gt=null,Ho=!1}catch(o){throw gt!==null&&(gt=gt.slice(e+1)),wu(hl,Dt),o}finally{V=t,Wl=!1}}return null}var Nn=[],In=0,Bo=null,Vo=0,He=[],Be=0,Kt=null,yt=1,vt="";function Jt(e,t){Nn[In++]=Vo,Nn[In++]=Bo,Bo=e,Vo=t}function vc(e,t,n){He[Be++]=yt,He[Be++]=vt,He[Be++]=Kt,Kt=e;var r=yt;e=vt;var o=32-Ye(r)-1;r&=~(1<<o),n+=1;var i=32-Ye(t)+o;if(30<i){var l=o-o%5;i=(r&(1<<l)-1).toString(32),r>>=l,o-=l,yt=1<<32-Ye(t)+o|n<<o|r,vt=i+e}else yt=1<<i|n<<o|r,vt=e}function Ql(e){e.return!==null&&(Jt(e,1),vc(e,1,0))}function Yl(e){for(;e===Bo;)Bo=Nn[--In],Nn[In]=null,Vo=Nn[--In],Nn[In]=null;for(;e===Kt;)Kt=He[--Be],He[Be]=null,vt=He[--Be],He[Be]=null,yt=He[--Be],He[Be]=null}var $e=null,De=null,X=!1,Xe=null;function wc(e,t){var n=Ze(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function xc(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,$e=e,De=Nt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,$e=e,De=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Kt!==null?{id:yt,overflow:vt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,$e=e,De=null,!0):!1;default:return!1}}function ql(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Xl(e){if(X){var t=De;if(t){var n=t;if(!xc(e,t)){if(ql(e))throw Error(_(418));t=Nt(n.nextSibling);var r=$e;t&&xc(e,t)?wc(r,n):(e.flags=e.flags&-4097|2,X=!1,$e=e)}}else{if(ql(e))throw Error(_(418));e.flags=e.flags&-4097|2,X=!1,$e=e}}}function kc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;$e=e}function Fo(e){if(e!==$e)return!1;if(!X)return kc(e),X=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Bl(e.type,e.memoizedProps)),t&&(t=De)){if(ql(e))throw Cc(),Error(_(418));for(;t;)wc(e,t),t=Nt(t.nextSibling)}if(kc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(_(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){De=Nt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}De=null}}else De=$e?Nt(e.stateNode.nextSibling):null;return!0}function Cc(){for(var e=De;e;)e=Nt(e.nextSibling)}function $n(){De=$e=null,X=!1}function Gl(e){Xe===null?Xe=[e]:Xe.push(e)}var Sh=ht.ReactCurrentBatchConfig;function Mr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(_(309));var r=n.stateNode}if(!r)throw Error(_(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(l){var s=o.refs;l===null?delete s[i]:s[i]=l},t._stringRef=i,t)}if(typeof e!="string")throw Error(_(284));if(!n._owner)throw Error(_(290,e))}return e}function Uo(e,t){throw e=Object.prototype.toString.call(t),Error(_(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bc(e){var t=e._init;return t(e._payload)}function Sc(e){function t(m,d){if(e){var g=m.deletions;g===null?(m.deletions=[d],m.flags|=16):g.push(d)}}function n(m,d){if(!e)return null;for(;d!==null;)t(m,d),d=d.sibling;return null}function r(m,d){for(m=new Map;d!==null;)d.key!==null?m.set(d.key,d):m.set(d.index,d),d=d.sibling;return m}function o(m,d){return m=Wt(m,d),m.index=0,m.sibling=null,m}function i(m,d,g){return m.index=g,e?(g=m.alternate,g!==null?(g=g.index,g<d?(m.flags|=2,d):g):(m.flags|=2,d)):(m.flags|=1048576,d)}function l(m){return e&&m.alternate===null&&(m.flags|=2),m}function s(m,d,g,b){return d===null||d.tag!==6?(d=Vs(g,m.mode,b),d.return=m,d):(d=o(d,g),d.return=m,d)}function a(m,d,g,b){var S=g.type;return S===kn?c(m,d,g.props.children,b,g.key):d!==null&&(d.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===jt&&bc(S)===d.type)?(b=o(d,g.props),b.ref=Mr(m,d,g),b.return=m,b):(b=hi(g.type,g.key,g.props,null,m.mode,b),b.ref=Mr(m,d,g),b.return=m,b)}function u(m,d,g,b){return d===null||d.tag!==4||d.stateNode.containerInfo!==g.containerInfo||d.stateNode.implementation!==g.implementation?(d=Fs(g,m.mode,b),d.return=m,d):(d=o(d,g.children||[]),d.return=m,d)}function c(m,d,g,b,S){return d===null||d.tag!==7?(d=an(g,m.mode,b,S),d.return=m,d):(d=o(d,g),d.return=m,d)}function f(m,d,g){if(typeof d=="string"&&d!==""||typeof d=="number")return d=Vs(""+d,m.mode,g),d.return=m,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case co:return g=hi(d.type,d.key,d.props,null,m.mode,g),g.ref=Mr(m,null,d),g.return=m,g;case xn:return d=Fs(d,m.mode,g),d.return=m,d;case jt:var b=d._init;return f(m,b(d._payload),g)}if(ar(d)||lr(d))return d=an(d,m.mode,g,null),d.return=m,d;Uo(m,d)}return null}function p(m,d,g,b){var S=d!==null?d.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return S!==null?null:s(m,d,""+g,b);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case co:return g.key===S?a(m,d,g,b):null;case xn:return g.key===S?u(m,d,g,b):null;case jt:return S=g._init,p(m,d,S(g._payload),b)}if(ar(g)||lr(g))return S!==null?null:c(m,d,g,b,null);Uo(m,g)}return null}function y(m,d,g,b,S){if(typeof b=="string"&&b!==""||typeof b=="number")return m=m.get(g)||null,s(d,m,""+b,S);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case co:return m=m.get(b.key===null?g:b.key)||null,a(d,m,b,S);case xn:return m=m.get(b.key===null?g:b.key)||null,u(d,m,b,S);case jt:var w=b._init;return y(m,d,g,w(b._payload),S)}if(ar(b)||lr(b))return m=m.get(g)||null,c(d,m,b,S,null);Uo(d,b)}return null}function x(m,d,g,b){for(var S=null,w=null,C=d,k=d=0,L=null;C!==null&&k<g.length;k++){C.index>k?(L=C,C=null):L=C.sibling;var j=p(m,C,g[k],b);if(j===null){C===null&&(C=L);break}e&&C&&j.alternate===null&&t(m,C),d=i(j,d,k),w===null?S=j:w.sibling=j,w=j,C=L}if(k===g.length)return n(m,C),X&&Jt(m,k),S;if(C===null){for(;k<g.length;k++)C=f(m,g[k],b),C!==null&&(d=i(C,d,k),w===null?S=C:w.sibling=C,w=C);return X&&Jt(m,k),S}for(C=r(m,C);k<g.length;k++)L=y(C,m,k,g[k],b),L!==null&&(e&&L.alternate!==null&&C.delete(L.key===null?k:L.key),d=i(L,d,k),w===null?S=L:w.sibling=L,w=L);return e&&C.forEach(function(D){return t(m,D)}),X&&Jt(m,k),S}function v(m,d,g,b){var S=lr(g);if(typeof S!="function")throw Error(_(150));if(g=S.call(g),g==null)throw Error(_(151));for(var w=S=null,C=d,k=d=0,L=null,j=g.next();C!==null&&!j.done;k++,j=g.next()){C.index>k?(L=C,C=null):L=C.sibling;var D=p(m,C,j.value,b);if(D===null){C===null&&(C=L);break}e&&C&&D.alternate===null&&t(m,C),d=i(D,d,k),w===null?S=D:w.sibling=D,w=D,C=L}if(j.done)return n(m,C),X&&Jt(m,k),S;if(C===null){for(;!j.done;k++,j=g.next())j=f(m,j.value,b),j!==null&&(d=i(j,d,k),w===null?S=j:w.sibling=j,w=j);return X&&Jt(m,k),S}for(C=r(m,C);!j.done;k++,j=g.next())j=y(C,m,k,j.value,b),j!==null&&(e&&j.alternate!==null&&C.delete(j.key===null?k:j.key),d=i(j,d,k),w===null?S=j:w.sibling=j,w=j);return e&&C.forEach(function(Q){return t(m,Q)}),X&&Jt(m,k),S}function E(m,d,g,b){if(typeof g=="object"&&g!==null&&g.type===kn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case co:e:{for(var S=g.key,w=d;w!==null;){if(w.key===S){if(S=g.type,S===kn){if(w.tag===7){n(m,w.sibling),d=o(w,g.props.children),d.return=m,m=d;break e}}else if(w.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===jt&&bc(S)===w.type){n(m,w.sibling),d=o(w,g.props),d.ref=Mr(m,w,g),d.return=m,m=d;break e}n(m,w);break}else t(m,w);w=w.sibling}g.type===kn?(d=an(g.props.children,m.mode,b,g.key),d.return=m,m=d):(b=hi(g.type,g.key,g.props,null,m.mode,b),b.ref=Mr(m,d,g),b.return=m,m=b)}return l(m);case xn:e:{for(w=g.key;d!==null;){if(d.key===w)if(d.tag===4&&d.stateNode.containerInfo===g.containerInfo&&d.stateNode.implementation===g.implementation){n(m,d.sibling),d=o(d,g.children||[]),d.return=m,m=d;break e}else{n(m,d);break}else t(m,d);d=d.sibling}d=Fs(g,m.mode,b),d.return=m,m=d}return l(m);case jt:return w=g._init,E(m,d,w(g._payload),b)}if(ar(g))return x(m,d,g,b);if(lr(g))return v(m,d,g,b);Uo(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,d!==null&&d.tag===6?(n(m,d.sibling),d=o(d,g),d.return=m,m=d):(n(m,d),d=Vs(g,m.mode,b),d.return=m,m=d),l(m)):n(m,d)}return E}var Dn=Sc(!0),_c=Sc(!1),Zo=It(null),Wo=null,An=null,Kl=null;function Jl(){Kl=An=Wo=null}function es(e){var t=Zo.current;q(Zo),e._currentValue=t}function ts(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Hn(e,t){Wo=e,Kl=An=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Re=!0),e.firstContext=null)}function Ve(e){var t=e._currentValue;if(Kl!==e)if(e={context:e,memoizedValue:t,next:null},An===null){if(Wo===null)throw Error(_(308));An=e,Wo.dependencies={lanes:0,firstContext:e}}else An=An.next=e;return t}var en=null;function ns(e){en===null?en=[e]:en.push(e)}function Ec(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,ns(t)):(n.next=o.next,o.next=n),t.interleaved=n,wt(e,r)}function wt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var At=!1;function rs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function jc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function xt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ht(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,$&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,wt(e,n)}return o=r.interleaved,o===null?(t.next=t,ns(r)):(t.next=o.next,o.next=t),r.interleaved=t,wt(e,n)}function Qo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,yl(e,n)}}function Lc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Yo(e,t,n,r){var o=e.updateQueue;At=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var a=s,u=a.next;a.next=null,l===null?i=u:l.next=u,l=a;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==l&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=a))}if(i!==null){var f=o.baseState;l=0,c=u=a=null,s=i;do{var p=s.lane,y=s.eventTime;if((r&p)===p){c!==null&&(c=c.next={eventTime:y,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var x=e,v=s;switch(p=t,y=n,v.tag){case 1:if(x=v.payload,typeof x=="function"){f=x.call(y,f,p);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=v.payload,p=typeof x=="function"?x.call(y,f,p):x,p==null)break e;f=K({},f,p);break e;case 2:At=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[s]:p.push(s))}else y={eventTime:y,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=y,a=f):c=c.next=y,l|=p;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;p=s,s=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(c===null&&(a=f),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);rn|=l,e.lanes=l,e.memoizedState=f}}function Tc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(_(191,o));o.call(r)}}}var Or={},lt=It(Or),Nr=It(Or),Ir=It(Or);function tn(e){if(e===Or)throw Error(_(174));return e}function os(e,t){switch(W(Ir,t),W(Nr,e),W(lt,Or),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:il(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=il(t,e)}q(lt),W(lt,t)}function Bn(){q(lt),q(Nr),q(Ir)}function Pc(e){tn(Ir.current);var t=tn(lt.current),n=il(t,e.type);t!==n&&(W(Nr,e),W(lt,n))}function is(e){Nr.current===e&&(q(lt),q(Nr))}var J=It(0);function qo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ls=[];function ss(){for(var e=0;e<ls.length;e++)ls[e]._workInProgressVersionPrimary=null;ls.length=0}var Xo=ht.ReactCurrentDispatcher,as=ht.ReactCurrentBatchConfig,nn=0,ee=null,se=null,ce=null,Go=!1,$r=!1,Dr=0,_h=0;function we(){throw Error(_(321))}function us(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!qe(e[n],t[n]))return!1;return!0}function cs(e,t,n,r,o,i){if(nn=i,ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Xo.current=e===null||e.memoizedState===null?Th:Ph,e=n(r,o),$r){i=0;do{if($r=!1,Dr=0,25<=i)throw Error(_(301));i+=1,ce=se=null,t.updateQueue=null,Xo.current=Rh,e=n(r,o)}while($r)}if(Xo.current=ei,t=se!==null&&se.next!==null,nn=0,ce=se=ee=null,Go=!1,t)throw Error(_(300));return e}function fs(){var e=Dr!==0;return Dr=0,e}function st(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ce===null?ee.memoizedState=ce=e:ce=ce.next=e,ce}function Fe(){if(se===null){var e=ee.alternate;e=e!==null?e.memoizedState:null}else e=se.next;var t=ce===null?ee.memoizedState:ce.next;if(t!==null)ce=t,se=e;else{if(e===null)throw Error(_(310));se=e,e={memoizedState:se.memoizedState,baseState:se.baseState,baseQueue:se.baseQueue,queue:se.queue,next:null},ce===null?ee.memoizedState=ce=e:ce=ce.next=e}return ce}function Ar(e,t){return typeof t=="function"?t(e):t}function ds(e){var t=Fe(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=se,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var s=l=null,a=null,u=i;do{var c=u.lane;if((nn&c)===c)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(s=a=f,l=r):a=a.next=f,ee.lanes|=c,rn|=c}u=u.next}while(u!==null&&u!==i);a===null?l=r:a.next=s,qe(r,t.memoizedState)||(Re=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,ee.lanes|=i,rn|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ps(e){var t=Fe(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var l=o=o.next;do i=e(i,l.action),l=l.next;while(l!==o);qe(i,t.memoizedState)||(Re=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Rc(){}function zc(e,t){var n=ee,r=Fe(),o=t(),i=!qe(r.memoizedState,o);if(i&&(r.memoizedState=o,Re=!0),r=r.queue,hs(Nc.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||ce!==null&&ce.memoizedState.tag&1){if(n.flags|=2048,Hr(9,Oc.bind(null,n,r,o,t),void 0,null),fe===null)throw Error(_(349));nn&30||Mc(n,t,o)}return o}function Mc(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ee.updateQueue,t===null?(t={lastEffect:null,stores:null},ee.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Oc(e,t,n,r){t.value=n,t.getSnapshot=r,Ic(t)&&$c(e)}function Nc(e,t,n){return n(function(){Ic(t)&&$c(e)})}function Ic(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!qe(e,n)}catch{return!0}}function $c(e){var t=wt(e,1);t!==null&&et(t,e,1,-1)}function Dc(e){var t=st();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ar,lastRenderedState:e},t.queue=e,e=e.dispatch=Lh.bind(null,ee,e),[t.memoizedState,e]}function Hr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ee.updateQueue,t===null?(t={lastEffect:null,stores:null},ee.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Ac(){return Fe().memoizedState}function Ko(e,t,n,r){var o=st();ee.flags|=e,o.memoizedState=Hr(1|t,n,void 0,r===void 0?null:r)}function Jo(e,t,n,r){var o=Fe();r=r===void 0?null:r;var i=void 0;if(se!==null){var l=se.memoizedState;if(i=l.destroy,r!==null&&us(r,l.deps)){o.memoizedState=Hr(t,n,i,r);return}}ee.flags|=e,o.memoizedState=Hr(1|t,n,i,r)}function Hc(e,t){return Ko(8390656,8,e,t)}function hs(e,t){return Jo(2048,8,e,t)}function Bc(e,t){return Jo(4,2,e,t)}function Vc(e,t){return Jo(4,4,e,t)}function Fc(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Uc(e,t,n){return n=n!=null?n.concat([e]):null,Jo(4,4,Fc.bind(null,t,e),n)}function ms(){}function Zc(e,t){var n=Fe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&us(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Wc(e,t){var n=Fe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&us(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Qc(e,t,n){return nn&21?(qe(n,t)||(n=bu(),ee.lanes|=n,rn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Re=!0),e.memoizedState=n)}function Eh(e,t){var n=V;V=n!==0&&4>n?n:4,e(!0);var r=as.transition;as.transition={};try{e(!1),t()}finally{V=n,as.transition=r}}function Yc(){return Fe().memoizedState}function jh(e,t,n){var r=Ut(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},qc(e))Xc(t,n);else if(n=Ec(e,t,n,r),n!==null){var o=_e();et(n,e,r,o),Gc(n,t,r)}}function Lh(e,t,n){var r=Ut(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(qc(e))Xc(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,qe(s,l)){var a=t.interleaved;a===null?(o.next=o,ns(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Ec(e,t,o,r),n!==null&&(o=_e(),et(n,e,r,o),Gc(n,t,r))}}function qc(e){var t=e.alternate;return e===ee||t!==null&&t===ee}function Xc(e,t){$r=Go=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Gc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,yl(e,n)}}var ei={readContext:Ve,useCallback:we,useContext:we,useEffect:we,useImperativeHandle:we,useInsertionEffect:we,useLayoutEffect:we,useMemo:we,useReducer:we,useRef:we,useState:we,useDebugValue:we,useDeferredValue:we,useTransition:we,useMutableSource:we,useSyncExternalStore:we,useId:we,unstable_isNewReconciler:!1},Th={readContext:Ve,useCallback:function(e,t){return st().memoizedState=[e,t===void 0?null:t],e},useContext:Ve,useEffect:Hc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ko(4194308,4,Fc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ko(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ko(4,2,e,t)},useMemo:function(e,t){var n=st();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=st();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=jh.bind(null,ee,e),[r.memoizedState,e]},useRef:function(e){var t=st();return e={current:e},t.memoizedState=e},useState:Dc,useDebugValue:ms,useDeferredValue:function(e){return st().memoizedState=e},useTransition:function(){var e=Dc(!1),t=e[0];return e=Eh.bind(null,e[1]),st().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ee,o=st();if(X){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),fe===null)throw Error(_(349));nn&30||Mc(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Hc(Nc.bind(null,r,i,e),[e]),r.flags|=2048,Hr(9,Oc.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=st(),t=fe.identifierPrefix;if(X){var n=vt,r=yt;n=(r&~(1<<32-Ye(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Dr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=_h++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Ph={readContext:Ve,useCallback:Zc,useContext:Ve,useEffect:hs,useImperativeHandle:Uc,useInsertionEffect:Bc,useLayoutEffect:Vc,useMemo:Wc,useReducer:ds,useRef:Ac,useState:function(){return ds(Ar)},useDebugValue:ms,useDeferredValue:function(e){var t=Fe();return Qc(t,se.memoizedState,e)},useTransition:function(){var e=ds(Ar)[0],t=Fe().memoizedState;return[e,t]},useMutableSource:Rc,useSyncExternalStore:zc,useId:Yc,unstable_isNewReconciler:!1},Rh={readContext:Ve,useCallback:Zc,useContext:Ve,useEffect:hs,useImperativeHandle:Uc,useInsertionEffect:Bc,useLayoutEffect:Vc,useMemo:Wc,useReducer:ps,useRef:Ac,useState:function(){return ps(Ar)},useDebugValue:ms,useDeferredValue:function(e){var t=Fe();return se===null?t.memoizedState=e:Qc(t,se.memoizedState,e)},useTransition:function(){var e=ps(Ar)[0],t=Fe().memoizedState;return[e,t]},useMutableSource:Rc,useSyncExternalStore:zc,useId:Yc,unstable_isNewReconciler:!1};function Ge(e,t){if(e&&e.defaultProps){t=K({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function gs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:K({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ti={isMounted:function(e){return(e=e._reactInternals)?qt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=_e(),o=Ut(e),i=xt(r,o);i.payload=t,n!=null&&(i.callback=n),t=Ht(e,i,o),t!==null&&(et(t,e,o,r),Qo(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=_e(),o=Ut(e),i=xt(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ht(e,i,o),t!==null&&(et(t,e,o,r),Qo(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=_e(),r=Ut(e),o=xt(n,r);o.tag=2,t!=null&&(o.callback=t),t=Ht(e,o,r),t!==null&&(et(t,e,r,n),Qo(t,e,r))}};function Kc(e,t,n,r,o,i,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,l):t.prototype&&t.prototype.isPureReactComponent?!Er(n,r)||!Er(o,i):!0}function Jc(e,t,n){var r=!1,o=$t,i=t.contextType;return typeof i=="object"&&i!==null?i=Ve(i):(o=Pe(t)?Gt:ve.current,r=t.contextTypes,i=(r=r!=null)?On(e,o):$t),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ti,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ef(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ti.enqueueReplaceState(t,t.state,null)}function ys(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},rs(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Ve(i):(i=Pe(t)?Gt:ve.current,o.context=On(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(gs(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&ti.enqueueReplaceState(o,o.state,null),Yo(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Vn(e,t){try{var n="",r=t;do n+=i1(r),r=r.return;while(r);var o=n}catch(i){o=`
|
|
39
39
|
Error generating stack: `+i.message+`
|
|
40
|
-
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function as(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function us(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var uh=typeof WeakMap=="function"?WeakMap:Map;function Bc(e,t,n){n=yt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Jo||(Jo=!0,Ss=r),us(e,t)},n}function Vc(e,t,n){n=yt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){us(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){us(e,t),typeof r!="function"&&(Ht===null?Ht=new Set([this]):Ht.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Fc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new uh;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=bh.bind(null,e,t,n),t.then(e,e))}function Uc(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Zc(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=yt(-1,1),t.tag=2,$t(n,t,1))),n.lanes|=1),e)}var ch=dt.ReactCurrentOwner,Pe=!1;function Ce(e,t,n,r){t.child=e===null?dc(t,null,n,r):On(t,e.child,n,r)}function Wc(e,t,n,r,o){n=n.render;var i=t.ref;return $n(t,o),r=es(e,t,n,r,i,o),n=ts(),e!==null&&!Pe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,vt(e,t,o)):(X&&n&&$l(t),t.flags|=1,Ce(e,t,r,o),t.child)}function Qc(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Rs(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Yc(e,t,i,r,o)):(e=ii(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:wr,n(l,r)&&e.ref===t.ref)return vt(e,t,o)}return t.flags|=1,e=Ft(i,r),e.ref=t.ref,e.return=t,t.child=e}function Yc(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(wr(i,r)&&e.ref===t.ref)if(Pe=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Pe=!0);else return t.lanes=e.lanes,vt(e,t,o)}return cs(e,t,n,r,o)}function Xc(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Z(Bn,De),De|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Z(Bn,De),De|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Z(Bn,De),De|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Z(Bn,De),De|=r;return Ce(e,t,o,n),t.child}function Gc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function cs(e,t,n,r,o){var i=Te(n)?Xt:ge.current;return i=Rn(t,i),$n(t,o),n=es(e,t,n,r,i,o),r=ts(),e!==null&&!Pe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,vt(e,t,o)):(X&&r&&$l(t),t.flags|=1,Ce(e,t,n,o),t.child)}function Kc(e,t,n,r,o){if(Te(n)){var i=!0;Po(t)}else i=!1;if($n(t,o),t.stateNode===null)Yo(e,t),Hc(t,n,r),ss(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,s=t.memoizedProps;l.props=s;var a=l.context,u=n.contextType;typeof u=="object"&&u!==null?u=Be(u):(u=Te(n)?Xt:ge.current,u=Rn(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof l.getSnapshotBeforeUpdate=="function";f||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==r||a!==u)&&Ac(t,l,r,u),It=!1;var h=t.memoizedState;l.state=h,Ho(t,r,l,o),a=t.memoizedState,s!==r||h!==a||je.current||It?(typeof c=="function"&&(ls(t,n,c,r),a=t.memoizedState),(s=It||Dc(t,n,s,r,h,a,u))?(f||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),l.props=r,l.state=a,l.context=u,r=s):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,pc(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Ge(t.type,s),l.props=u,f=t.pendingProps,h=l.context,a=n.contextType,typeof a=="object"&&a!==null?a=Be(a):(a=Te(n)?Xt:ge.current,a=Rn(t,a));var y=n.getDerivedStateFromProps;(c=typeof y=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==f||h!==a)&&Ac(t,l,r,a),It=!1,h=t.memoizedState,l.state=h,Ho(t,r,l,o);var x=t.memoizedState;s!==f||h!==x||je.current||It?(typeof y=="function"&&(ls(t,n,y,r),x=t.memoizedState),(u=It||Dc(t,n,u,r,h,x,a)||!1)?(c||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,x,a),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,x,a)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),l.props=r,l.state=x,l.context=a,r=u):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return ds(e,t,n,r,i,o)}function ds(e,t,n,r,o,i){Gc(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&nc(t,n,!1),vt(e,t,i);r=t.stateNode,ch.current=t;var s=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=On(t,e.child,null,i),t.child=On(t,null,s,i)):Ce(e,t,s,i),t.memoizedState=r.state,o&&nc(t,n,!0),t.child}function qc(e){var t=e.stateNode;t.pendingContext?ec(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ec(e,t.context,!1),Yl(e,t.containerInfo)}function Jc(e,t,n,r,o){return Nn(),Bl(o),t.flags|=256,Ce(e,t,n,r),t.child}var fs={dehydrated:null,treeContext:null,retryLane:0};function ps(e){return{baseLanes:e,cachePool:null,transitions:null}}function ed(e,t,n){var r=t.pendingProps,o=K.current,i=!1,l=(t.flags&128)!==0,s;if((s=l)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Z(K,o&1),e===null)return Al(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,i?(r=t.mode,i=t.child,l={mode:"hidden",children:l},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=l):i=li(l,r,0,null),e=ln(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=ps(n),t.memoizedState=fs,e):hs(t,l));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return dh(e,t,l,r,s,o,n);if(i){i=r.fallback,l=t.mode,o=e.child,s=o.sibling;var a={mode:"hidden",children:r.children};return!(l&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Ft(o,a),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=Ft(s,i):(i=ln(i,l,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,l=e.child.memoizedState,l=l===null?ps(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=fs,r}return i=e.child,e=i.sibling,r=Ft(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function hs(e,t){return t=li({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Qo(e,t,n,r){return r!==null&&Bl(r),On(t,e.child,null,n),e=hs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function dh(e,t,n,r,o,i,l){if(n)return t.flags&256?(t.flags&=-257,r=as(Error(_(422))),Qo(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=li({mode:"visible",children:r.children},o,0,null),i=ln(i,o,l,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&On(t,e.child,null,l),t.child.memoizedState=ps(l),t.memoizedState=fs,i);if(!(t.mode&1))return Qo(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(_(419)),r=as(i,r,void 0),Qo(e,t,l,r)}if(s=(l&e.childLanes)!==0,Pe||s){if(r=ue,r!==null){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|l)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,gt(e,o),Je(r,e,o,-1))}return Ps(),r=as(Error(_(421))),Qo(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Sh.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,$e=zt(o.nextSibling),Ie=t,X=!0,Xe=null,e!==null&&(He[Ae++]=ht,He[Ae++]=mt,He[Ae++]=Gt,ht=e.id,mt=e.overflow,Gt=t),t=hs(t,r.children),t.flags|=4096,t)}function td(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Zl(e.return,t,n)}function ms(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function nd(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ce(e,t,r.children,n),r=K.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&td(e,n,t);else if(e.tag===19)td(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Z(K,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Ao(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ms(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ao(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ms(t,!0,n,null,i);break;case"together":ms(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Yo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function vt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),tn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(_(153));if(t.child!==null){for(e=t.child,n=Ft(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ft(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function fh(e,t,n){switch(t.tag){case 3:qc(t),Nn();break;case 5:gc(t);break;case 1:Te(t.type)&&Po(t);break;case 4:Yl(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Z(Io,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Z(K,K.current&1),t.flags|=128,null):n&t.child.childLanes?ed(e,t,n):(Z(K,K.current&1),e=vt(e,t,n),e!==null?e.sibling:null);Z(K,K.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return nd(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Z(K,K.current),r)break;return null;case 22:case 23:return t.lanes=0,Xc(e,t,n)}return vt(e,t,n)}var rd,gs,od,id;rd=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},gs=function(){},od=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Jt(rt.current);var i=null;switch(n){case"input":o=Zi(e,o),r=Zi(e,r),i=[];break;case"select":o=G({},o,{value:void 0}),r=G({},r,{value:void 0}),i=[];break;case"textarea":o=Yi(e,o),r=Yi(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Lo)}Gi(n,r);var l;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(l in s)s.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(qn.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var a=r[u];if(s=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&a!==s&&(a!=null||s!=null))if(u==="style")if(s){for(l in s)!s.hasOwnProperty(l)||a&&a.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in a)a.hasOwnProperty(l)&&s[l]!==a[l]&&(n||(n={}),n[l]=a[l])}else n||(i||(i=[]),i.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,s=s?s.__html:void 0,a!=null&&s!==a&&(i=i||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(qn.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&W("scroll",e),i||s===a||(i=[])):(i=i||[]).push(u,a))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}},id=function(e,t,n,r){n!==r&&(t.flags|=4)};function Nr(e,t){if(!X)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ve(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ph(e,t,n){var r=t.pendingProps;switch(Dl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ve(t),null;case 1:return Te(t.type)&&To(),ve(t),null;case 3:return r=t.stateNode,Dn(),Q(je),Q(ge),Kl(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(No(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Xe!==null&&(Ls(Xe),Xe=null))),gs(e,t),ve(t),null;case 5:Xl(t);var o=Jt(Tr.current);if(n=t.type,e!==null&&t.stateNode!=null)od(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(_(166));return ve(t),null}if(e=Jt(rt.current),No(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[nt]=t,r[Sr]=i,e=(t.mode&1)!==0,n){case"dialog":W("cancel",r),W("close",r);break;case"iframe":case"object":case"embed":W("load",r);break;case"video":case"audio":for(o=0;o<kr.length;o++)W(kr[o],r);break;case"source":W("error",r);break;case"img":case"image":case"link":W("error",r),W("load",r);break;case"details":W("toggle",r);break;case"input":Ha(r,i),W("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},W("invalid",r);break;case"textarea":Va(r,i),W("invalid",r)}Gi(n,i),o=null;for(var l in i)if(i.hasOwnProperty(l)){var s=i[l];l==="children"?typeof s=="string"?r.textContent!==s&&(i.suppressHydrationWarning!==!0&&Eo(r.textContent,s,e),o=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&Eo(r.textContent,s,e),o=["children",""+s]):qn.hasOwnProperty(l)&&s!=null&&l==="onScroll"&&W("scroll",r)}switch(n){case"input":no(r),Ba(r,i,!0);break;case"textarea":no(r),Ua(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Lo)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Za(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[nt]=t,e[Sr]=r,rd(e,t,!1,!1),t.stateNode=e;e:{switch(l=Ki(n,r),n){case"dialog":W("cancel",e),W("close",e),o=r;break;case"iframe":case"object":case"embed":W("load",e),o=r;break;case"video":case"audio":for(o=0;o<kr.length;o++)W(kr[o],e);o=r;break;case"source":W("error",e),o=r;break;case"img":case"image":case"link":W("error",e),W("load",e),o=r;break;case"details":W("toggle",e),o=r;break;case"input":Ha(e,r),o=Zi(e,r),W("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=G({},r,{value:void 0}),W("invalid",e);break;case"textarea":Va(e,r),o=Yi(e,r),W("invalid",e);break;default:o=r}Gi(n,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var a=s[i];i==="style"?Ya(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Wa(e,a)):i==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&nr(e,a):typeof a=="number"&&nr(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(qn.hasOwnProperty(i)?a!=null&&i==="onScroll"&&W("scroll",e):a!=null&&Ni(e,i,a,l))}switch(n){case"input":no(e),Ba(e,r,!1);break;case"textarea":no(e),Ua(e);break;case"option":r.value!=null&&e.setAttribute("value",""+_t(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?wn(e,!!r.multiple,i,!1):r.defaultValue!=null&&wn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Lo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ve(t),null;case 6:if(e&&t.stateNode!=null)id(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(_(166));if(n=Jt(Tr.current),Jt(rt.current),No(t)){if(r=t.stateNode,n=t.memoizedProps,r[nt]=t,(i=r.nodeValue!==n)&&(e=Ie,e!==null))switch(e.tag){case 3:Eo(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Eo(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[nt]=t,t.stateNode=r}return ve(t),null;case 13:if(Q(K),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(X&&$e!==null&&t.mode&1&&!(t.flags&128))ac(),Nn(),t.flags|=98560,i=!1;else if(i=No(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(_(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(_(317));i[nt]=t}else Nn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ve(t),i=!1}else Xe!==null&&(Ls(Xe),Xe=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||K.current&1?le===0&&(le=3):Ps())),t.updateQueue!==null&&(t.flags|=4),ve(t),null);case 4:return Dn(),gs(e,t),e===null&&Cr(t.stateNode.containerInfo),ve(t),null;case 10:return Ul(t.type._context),ve(t),null;case 17:return Te(t.type)&&To(),ve(t),null;case 19:if(Q(K),i=t.memoizedState,i===null)return ve(t),null;if(r=(t.flags&128)!==0,l=i.rendering,l===null)if(r)Nr(i,!1);else{if(le!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=Ao(e),l!==null){for(t.flags|=128,Nr(i,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,l=i.alternate,l===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Z(K,K.current&1|2),t.child}e=e.sibling}i.tail!==null&&re()>Vn&&(t.flags|=128,r=!0,Nr(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ao(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Nr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!X)return ve(t),null}else 2*re()-i.renderingStartTime>Vn&&n!==1073741824&&(t.flags|=128,r=!0,Nr(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=re(),t.sibling=null,n=K.current,Z(K,r?n&1|2:n&1),t):(ve(t),null);case 22:case 23:return Ts(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?De&1073741824&&(ve(t),t.subtreeFlags&6&&(t.flags|=8192)):ve(t),null;case 24:return null;case 25:return null}throw Error(_(156,t.tag))}function hh(e,t){switch(Dl(t),t.tag){case 1:return Te(t.type)&&To(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Dn(),Q(je),Q(ge),Kl(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Xl(t),null;case 13:if(Q(K),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));Nn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Q(K),null;case 4:return Dn(),null;case 10:return Ul(t.type._context),null;case 22:case 23:return Ts(),null;case 24:return null;default:return null}}var Xo=!1,we=!1,mh=typeof WeakSet=="function"?WeakSet:Set,j=null;function An(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){te(e,t,r)}else n.current=null}function ys(e,t,n){try{n()}catch(r){te(e,t,r)}}var ld=!1;function gh(e,t){if(Tl=mo,e=Du(),kl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,a=-1,u=0,c=0,f=e,h=null;t:for(;;){for(var y;f!==n||o!==0&&f.nodeType!==3||(s=l+o),f!==i||r!==0&&f.nodeType!==3||(a=l+r),f.nodeType===3&&(l+=f.nodeValue.length),(y=f.firstChild)!==null;)h=f,f=y;for(;;){if(f===e)break t;if(h===n&&++u===o&&(s=l),h===i&&++c===r&&(a=l),(y=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=y}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Pl={focusedElem:e,selectionRange:n},mo=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var v=x.memoizedProps,E=x.memoizedState,m=t.stateNode,d=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:Ge(t.type,v),E);m.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(_(163))}}catch(b){te(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return x=ld,ld=!1,x}function Or(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&ys(t,n,i)}o=o.next}while(o!==r)}}function Go(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function vs(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function sd(e){var t=e.alternate;t!==null&&(e.alternate=null,sd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[nt],delete t[Sr],delete t[Nl],delete t[q1],delete t[J1])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ad(e){return e.tag===5||e.tag===3||e.tag===4}function ud(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ad(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ws(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Lo));else if(r!==4&&(e=e.child,e!==null))for(ws(e,t,n),e=e.sibling;e!==null;)ws(e,t,n),e=e.sibling}function xs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(xs(e,t,n),e=e.sibling;e!==null;)xs(e,t,n),e=e.sibling}var fe=null,Ke=!1;function Dt(e,t,n){for(n=n.child;n!==null;)cd(e,t,n),n=n.sibling}function cd(e,t,n){if(tt&&typeof tt.onCommitFiberUnmount=="function")try{tt.onCommitFiberUnmount(ao,n)}catch{}switch(n.tag){case 5:we||An(n,t);case 6:var r=fe,o=Ke;fe=null,Dt(e,t,n),fe=r,Ke=o,fe!==null&&(Ke?(e=fe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):fe.removeChild(n.stateNode));break;case 18:fe!==null&&(Ke?(e=fe,n=n.stateNode,e.nodeType===8?Ml(e.parentNode,n):e.nodeType===1&&Ml(e,n),pr(e)):Ml(fe,n.stateNode));break;case 4:r=fe,o=Ke,fe=n.stateNode.containerInfo,Ke=!0,Dt(e,t,n),fe=r,Ke=o;break;case 0:case 11:case 14:case 15:if(!we&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&ys(n,t,l),o=o.next}while(o!==r)}Dt(e,t,n);break;case 1:if(!we&&(An(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){te(n,t,s)}Dt(e,t,n);break;case 21:Dt(e,t,n);break;case 22:n.mode&1?(we=(r=we)||n.memoizedState!==null,Dt(e,t,n),we=r):Dt(e,t,n);break;default:Dt(e,t,n)}}function dd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new mh),t.forEach(function(r){var o=_h.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function qe(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,l=t,s=l;e:for(;s!==null;){switch(s.tag){case 5:fe=s.stateNode,Ke=!1;break e;case 3:fe=s.stateNode.containerInfo,Ke=!0;break e;case 4:fe=s.stateNode.containerInfo,Ke=!0;break e}s=s.return}if(fe===null)throw Error(_(160));cd(i,l,o),fe=null,Ke=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(u){te(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)fd(t,e),t=t.sibling}function fd(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(qe(t,e),it(e),r&4){try{Or(3,e,e.return),Go(3,e)}catch(v){te(e,e.return,v)}try{Or(5,e,e.return)}catch(v){te(e,e.return,v)}}break;case 1:qe(t,e),it(e),r&512&&n!==null&&An(n,n.return);break;case 5:if(qe(t,e),it(e),r&512&&n!==null&&An(n,n.return),e.flags&32){var o=e.stateNode;try{nr(o,"")}catch(v){te(e,e.return,v)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,l=n!==null?n.memoizedProps:i,s=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&Aa(o,i),Ki(s,l);var u=Ki(s,i);for(l=0;l<a.length;l+=2){var c=a[l],f=a[l+1];c==="style"?Ya(o,f):c==="dangerouslySetInnerHTML"?Wa(o,f):c==="children"?nr(o,f):Ni(o,c,f,u)}switch(s){case"input":Wi(o,i);break;case"textarea":Fa(o,i);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var y=i.value;y!=null?wn(o,!!i.multiple,y,!1):h!==!!i.multiple&&(i.defaultValue!=null?wn(o,!!i.multiple,i.defaultValue,!0):wn(o,!!i.multiple,i.multiple?[]:"",!1))}o[Sr]=i}catch(v){te(e,e.return,v)}}break;case 6:if(qe(t,e),it(e),r&4){if(e.stateNode===null)throw Error(_(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(v){te(e,e.return,v)}}break;case 3:if(qe(t,e),it(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{pr(t.containerInfo)}catch(v){te(e,e.return,v)}break;case 4:qe(t,e),it(e);break;case 13:qe(t,e),it(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(bs=re())),r&4&&dd(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(we=(u=we)||c,qe(t,e),we=u):qe(t,e),it(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(j=e,c=e.child;c!==null;){for(f=j=c;j!==null;){switch(h=j,y=h.child,h.tag){case 0:case 11:case 14:case 15:Or(4,h,h.return);break;case 1:An(h,h.return);var x=h.stateNode;if(typeof x.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(v){te(r,n,v)}}break;case 5:An(h,h.return);break;case 22:if(h.memoizedState!==null){md(f);continue}}y!==null?(y.return=h,j=y):md(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{o=f.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=f.stateNode,a=f.memoizedProps.style,l=a!=null&&a.hasOwnProperty("display")?a.display:null,s.style.display=Qa("display",l))}catch(v){te(e,e.return,v)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(v){te(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:qe(t,e),it(e),r&4&&dd(e);break;case 21:break;default:qe(t,e),it(e)}}function it(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(ad(n)){var r=n;break e}n=n.return}throw Error(_(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(nr(o,""),r.flags&=-33);var i=ud(e);xs(e,i,o);break;case 3:case 4:var l=r.stateNode.containerInfo,s=ud(e);ws(e,s,l);break;default:throw Error(_(161))}}catch(a){te(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function yh(e,t,n){j=e,pd(e)}function pd(e,t,n){for(var r=(e.mode&1)!==0;j!==null;){var o=j,i=o.child;if(o.tag===22&&r){var l=o.memoizedState!==null||Xo;if(!l){var s=o.alternate,a=s!==null&&s.memoizedState!==null||we;s=Xo;var u=we;if(Xo=l,(we=a)&&!u)for(j=o;j!==null;)l=j,a=l.child,l.tag===22&&l.memoizedState!==null?gd(o):a!==null?(a.return=l,j=a):gd(o);for(;i!==null;)j=i,pd(i),i=i.sibling;j=o,Xo=s,we=u}hd(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,j=i):hd(e)}}function hd(e){for(;j!==null;){var t=j;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:we||Go(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!we)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Ge(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&mc(t,i,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}mc(t,l,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&pr(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(_(163))}we||t.flags&512&&vs(t)}catch(h){te(t,t.return,h)}}if(t===e){j=null;break}if(n=t.sibling,n!==null){n.return=t.return,j=n;break}j=t.return}}function md(e){for(;j!==null;){var t=j;if(t===e){j=null;break}var n=t.sibling;if(n!==null){n.return=t.return,j=n;break}j=t.return}}function gd(e){for(;j!==null;){var t=j;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Go(4,t)}catch(a){te(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){te(t,o,a)}}var i=t.return;try{vs(t)}catch(a){te(t,i,a)}break;case 5:var l=t.return;try{vs(t)}catch(a){te(t,l,a)}}}catch(a){te(t,t.return,a)}if(t===e){j=null;break}var s=t.sibling;if(s!==null){s.return=t.return,j=s;break}j=t.return}}var vh=Math.ceil,Ko=dt.ReactCurrentDispatcher,ks=dt.ReactCurrentOwner,Fe=dt.ReactCurrentBatchConfig,I=0,ue=null,oe=null,pe=0,De=0,Bn=Mt(0),le=0,Ir=null,tn=0,qo=0,Cs=0,$r=null,Re=null,bs=0,Vn=1/0,wt=null,Jo=!1,Ss=null,Ht=null,ei=!1,At=null,ti=0,Dr=0,_s=null,ni=-1,ri=0;function be(){return I&6?re():ni!==-1?ni:ni=re()}function Bt(e){return e.mode&1?I&2&&pe!==0?pe&-pe:th.transition!==null?(ri===0&&(ri=uu()),ri):(e=A,e!==0||(e=window.event,e=e===void 0?16:vu(e.type)),e):1}function Je(e,t,n,r){if(50<Dr)throw Dr=0,_s=null,Error(_(185));ar(e,n,r),(!(I&2)||e!==ue)&&(e===ue&&(!(I&2)&&(qo|=n),le===4&&Vt(e,pe)),ze(e,r),n===1&&I===0&&!(t.mode&1)&&(Vn=re()+500,Ro&&Ot()))}function ze(e,t){var n=e.callbackNode;t1(e,t);var r=fo(e,e===ue?pe:0);if(r===0)n!==null&&lu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&lu(n),t===1)e.tag===0?eh(vd.bind(null,e)):rc(vd.bind(null,e)),G1(function(){!(I&6)&&Ot()}),n=null;else{switch(cu(r)){case 1:n=ol;break;case 4:n=su;break;case 16:n=so;break;case 536870912:n=au;break;default:n=so}n=Ed(n,yd.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function yd(e,t){if(ni=-1,ri=0,I&6)throw Error(_(327));var n=e.callbackNode;if(Fn()&&e.callbackNode!==n)return null;var r=fo(e,e===ue?pe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=oi(e,r);else{t=r;var o=I;I|=2;var i=xd();(ue!==e||pe!==t)&&(wt=null,Vn=re()+500,rn(e,t));do try{kh();break}catch(s){wd(e,s)}while(!0);Fl(),Ko.current=i,I=o,oe!==null?t=0:(ue=null,pe=0,t=le)}if(t!==0){if(t===2&&(o=il(e),o!==0&&(r=o,t=Es(e,o))),t===1)throw n=Ir,rn(e,0),Vt(e,r),ze(e,re()),n;if(t===6)Vt(e,r);else{if(o=e.current.alternate,!(r&30)&&!wh(o)&&(t=oi(e,r),t===2&&(i=il(e),i!==0&&(r=i,t=Es(e,i))),t===1))throw n=Ir,rn(e,0),Vt(e,r),ze(e,re()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(_(345));case 2:on(e,Re,wt);break;case 3:if(Vt(e,r),(r&130023424)===r&&(t=bs+500-re(),10<t)){if(fo(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){be(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=zl(on.bind(null,e,Re,wt),t);break}on(e,Re,wt);break;case 4:if(Vt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-Qe(r);i=1<<l,l=t[l],l>o&&(o=l),r&=~i}if(r=o,r=re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*vh(r/1960))-r,10<r){e.timeoutHandle=zl(on.bind(null,e,Re,wt),r);break}on(e,Re,wt);break;case 5:on(e,Re,wt);break;default:throw Error(_(329))}}}return ze(e,re()),e.callbackNode===n?yd.bind(null,e):null}function Es(e,t){var n=$r;return e.current.memoizedState.isDehydrated&&(rn(e,t).flags|=256),e=oi(e,t),e!==2&&(t=Re,Re=n,t!==null&&Ls(t)),e}function Ls(e){Re===null?Re=e:Re.push.apply(Re,e)}function wh(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Ye(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Vt(e,t){for(t&=~Cs,t&=~qo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Qe(t),r=1<<n;e[n]=-1,t&=~r}}function vd(e){if(I&6)throw Error(_(327));Fn();var t=fo(e,0);if(!(t&1))return ze(e,re()),null;var n=oi(e,t);if(e.tag!==0&&n===2){var r=il(e);r!==0&&(t=r,n=Es(e,r))}if(n===1)throw n=Ir,rn(e,0),Vt(e,t),ze(e,re()),n;if(n===6)throw Error(_(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,on(e,Re,wt),ze(e,re()),null}function js(e,t){var n=I;I|=1;try{return e(t)}finally{I=n,I===0&&(Vn=re()+500,Ro&&Ot())}}function nn(e){At!==null&&At.tag===0&&!(I&6)&&Fn();var t=I;I|=1;var n=Fe.transition,r=A;try{if(Fe.transition=null,A=1,e)return e()}finally{A=r,Fe.transition=n,I=t,!(I&6)&&Ot()}}function Ts(){De=Bn.current,Q(Bn)}function rn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,X1(n)),oe!==null)for(n=oe.return;n!==null;){var r=n;switch(Dl(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&To();break;case 3:Dn(),Q(je),Q(ge),Kl();break;case 5:Xl(r);break;case 4:Dn();break;case 13:Q(K);break;case 19:Q(K);break;case 10:Ul(r.type._context);break;case 22:case 23:Ts()}n=n.return}if(ue=e,oe=e=Ft(e.current,null),pe=De=t,le=0,Ir=null,Cs=qo=tn=0,Re=$r=null,qt!==null){for(t=0;t<qt.length;t++)if(n=qt[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var l=i.next;i.next=o,r.next=l}n.pending=r}qt=null}return e}function wd(e,t){do{var n=oe;try{if(Fl(),Bo.current=Zo,Vo){for(var r=q.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Vo=!1}if(en=0,ae=ie=q=null,Pr=!1,Rr=0,ks.current=null,n===null||n.return===null){le=1,Ir=t,oe=null;break}e:{var i=e,l=n.return,s=n,a=t;if(t=pe,s.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,c=s,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var y=Uc(l);if(y!==null){y.flags&=-257,Zc(y,l,s,i,t),y.mode&1&&Fc(i,u,t),t=y,a=u;var x=t.updateQueue;if(x===null){var v=new Set;v.add(a),t.updateQueue=v}else x.add(a);break e}else{if(!(t&1)){Fc(i,u,t),Ps();break e}a=Error(_(426))}}else if(X&&s.mode&1){var E=Uc(l);if(E!==null){!(E.flags&65536)&&(E.flags|=256),Zc(E,l,s,i,t),Bl(Hn(a,s));break e}}i=a=Hn(a,s),le!==4&&(le=2),$r===null?$r=[i]:$r.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=Bc(i,a,t);hc(i,m);break e;case 1:s=a;var d=i.type,g=i.stateNode;if(!(i.flags&128)&&(typeof d.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Ht===null||!Ht.has(g)))){i.flags|=65536,t&=-t,i.lanes|=t;var b=Vc(i,s,t);hc(i,b);break e}}i=i.return}while(i!==null)}Cd(n)}catch(S){t=S,oe===n&&n!==null&&(oe=n=n.return);continue}break}while(!0)}function xd(){var e=Ko.current;return Ko.current=Zo,e===null?Zo:e}function Ps(){(le===0||le===3||le===2)&&(le=4),ue===null||!(tn&268435455)&&!(qo&268435455)||Vt(ue,pe)}function oi(e,t){var n=I;I|=2;var r=xd();(ue!==e||pe!==t)&&(wt=null,rn(e,t));do try{xh();break}catch(o){wd(e,o)}while(!0);if(Fl(),I=n,Ko.current=r,oe!==null)throw Error(_(261));return ue=null,pe=0,le}function xh(){for(;oe!==null;)kd(oe)}function kh(){for(;oe!==null&&!Wp();)kd(oe)}function kd(e){var t=_d(e.alternate,e,De);e.memoizedProps=e.pendingProps,t===null?Cd(e):oe=t,ks.current=null}function Cd(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=hh(n,t),n!==null){n.flags&=32767,oe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{le=6,oe=null;return}}else if(n=ph(n,t,De),n!==null){oe=n;return}if(t=t.sibling,t!==null){oe=t;return}oe=t=e}while(t!==null);le===0&&(le=5)}function on(e,t,n){var r=A,o=Fe.transition;try{Fe.transition=null,A=1,Ch(e,t,n,r)}finally{Fe.transition=o,A=r}return null}function Ch(e,t,n,r){do Fn();while(At!==null);if(I&6)throw Error(_(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(_(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(n1(e,i),e===ue&&(oe=ue=null,pe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ei||(ei=!0,Ed(so,function(){return Fn(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Fe.transition,Fe.transition=null;var l=A;A=1;var s=I;I|=4,ks.current=null,gh(e,n),fd(n,e),V1(Pl),mo=!!Tl,Pl=Tl=null,e.current=n,yh(n),Qp(),I=s,A=l,Fe.transition=i}else e.current=n;if(ei&&(ei=!1,At=e,ti=o),i=e.pendingLanes,i===0&&(Ht=null),Gp(n.stateNode),ze(e,re()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Jo)throw Jo=!1,e=Ss,Ss=null,e;return ti&1&&e.tag!==0&&Fn(),i=e.pendingLanes,i&1?e===_s?Dr++:(Dr=0,_s=e):Dr=0,Ot(),null}function Fn(){if(At!==null){var e=cu(ti),t=Fe.transition,n=A;try{if(Fe.transition=null,A=16>e?16:e,At===null)var r=!1;else{if(e=At,At=null,ti=0,I&6)throw Error(_(331));var o=I;for(I|=4,j=e.current;j!==null;){var i=j,l=i.child;if(j.flags&16){var s=i.deletions;if(s!==null){for(var a=0;a<s.length;a++){var u=s[a];for(j=u;j!==null;){var c=j;switch(c.tag){case 0:case 11:case 15:Or(8,c,i)}var f=c.child;if(f!==null)f.return=c,j=f;else for(;j!==null;){c=j;var h=c.sibling,y=c.return;if(sd(c),c===u){j=null;break}if(h!==null){h.return=y,j=h;break}j=y}}}var x=i.alternate;if(x!==null){var v=x.child;if(v!==null){x.child=null;do{var E=v.sibling;v.sibling=null,v=E}while(v!==null)}}j=i}}if(i.subtreeFlags&2064&&l!==null)l.return=i,j=l;else e:for(;j!==null;){if(i=j,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Or(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,j=m;break e}j=i.return}}var d=e.current;for(j=d;j!==null;){l=j;var g=l.child;if(l.subtreeFlags&2064&&g!==null)g.return=l,j=g;else e:for(l=d;j!==null;){if(s=j,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Go(9,s)}}catch(S){te(s,s.return,S)}if(s===l){j=null;break e}var b=s.sibling;if(b!==null){b.return=s.return,j=b;break e}j=s.return}}if(I=o,Ot(),tt&&typeof tt.onPostCommitFiberRoot=="function")try{tt.onPostCommitFiberRoot(ao,e)}catch{}r=!0}return r}finally{A=n,Fe.transition=t}}return!1}function bd(e,t,n){t=Hn(n,t),t=Bc(e,t,1),e=$t(e,t,1),t=be(),e!==null&&(ar(e,1,t),ze(e,t))}function te(e,t,n){if(e.tag===3)bd(e,e,n);else for(;t!==null;){if(t.tag===3){bd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ht===null||!Ht.has(r))){e=Hn(n,e),e=Vc(t,e,1),t=$t(t,e,1),e=be(),t!==null&&(ar(t,1,e),ze(t,e));break}}t=t.return}}function bh(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=be(),e.pingedLanes|=e.suspendedLanes&n,ue===e&&(pe&n)===n&&(le===4||le===3&&(pe&130023424)===pe&&500>re()-bs?rn(e,0):Cs|=n),ze(e,t)}function Sd(e,t){t===0&&(e.mode&1?(t=co,co<<=1,!(co&130023424)&&(co=4194304)):t=1);var n=be();e=gt(e,t),e!==null&&(ar(e,t,n),ze(e,n))}function Sh(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Sd(e,n)}function _h(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(_(314))}r!==null&&r.delete(t),Sd(e,n)}var _d;_d=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||je.current)Pe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Pe=!1,fh(e,t,n);Pe=!!(e.flags&131072)}else Pe=!1,X&&t.flags&1048576&&oc(t,Mo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Yo(e,t),e=t.pendingProps;var o=Rn(t,ge.current);$n(t,n),o=es(null,t,r,e,o,n);var i=ts();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Te(r)?(i=!0,Po(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ql(t),o.updater=Wo,t.stateNode=o,o._reactInternals=t,ss(t,r,e,n),t=ds(null,t,r,!0,i,n)):(t.tag=0,X&&i&&$l(t),Ce(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Yo(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Lh(r),e=Ge(r,e),o){case 0:t=cs(null,t,r,e,n);break e;case 1:t=Kc(null,t,r,e,n);break e;case 11:t=Wc(null,t,r,e,n);break e;case 14:t=Qc(null,t,r,Ge(r.type,e),n);break e}throw Error(_(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ge(r,o),cs(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ge(r,o),Kc(e,t,r,o,n);case 3:e:{if(qc(t),e===null)throw Error(_(387));r=t.pendingProps,i=t.memoizedState,o=i.element,pc(e,t),Ho(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Hn(Error(_(423)),t),t=Jc(e,t,r,n,o);break e}else if(r!==o){o=Hn(Error(_(424)),t),t=Jc(e,t,r,n,o);break e}else for($e=zt(t.stateNode.containerInfo.firstChild),Ie=t,X=!0,Xe=null,n=dc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Nn(),r===o){t=vt(e,t,n);break e}Ce(e,t,r,n)}t=t.child}return t;case 5:return gc(t),e===null&&Al(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Rl(r,o)?l=null:i!==null&&Rl(r,i)&&(t.flags|=32),Gc(e,t),Ce(e,t,l,n),t.child;case 6:return e===null&&Al(t),null;case 13:return ed(e,t,n);case 4:return Yl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=On(t,null,r,n):Ce(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ge(r,o),Wc(e,t,r,o,n);case 7:return Ce(e,t,t.pendingProps,n),t.child;case 8:return Ce(e,t,t.pendingProps.children,n),t.child;case 12:return Ce(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,Z(Io,r._currentValue),r._currentValue=l,i!==null)if(Ye(i.value,l)){if(i.children===o.children&&!je.current){t=vt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=yt(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Zl(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(_(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Zl(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}Ce(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,$n(t,n),o=Be(o),r=r(o),t.flags|=1,Ce(e,t,r,n),t.child;case 14:return r=t.type,o=Ge(r,t.pendingProps),o=Ge(r.type,o),Qc(e,t,r,o,n);case 15:return Yc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ge(r,o),Yo(e,t),t.tag=1,Te(r)?(e=!0,Po(t)):e=!1,$n(t,n),Hc(t,r,o),ss(t,r,o,n),ds(null,t,r,!0,e,n);case 19:return nd(e,t,n);case 22:return Xc(e,t,n)}throw Error(_(156,t.tag))};function Ed(e,t){return iu(e,t)}function Eh(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ue(e,t,n,r){return new Eh(e,t,n,r)}function Rs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Lh(e){if(typeof e=="function")return Rs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===$i)return 11;if(e===Ai)return 14}return 2}function Ft(e,t){var n=e.alternate;return n===null?(n=Ue(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ii(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")Rs(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case vn:return ln(n.children,o,i,t);case Oi:l=8,o|=8;break;case Ii:return e=Ue(12,n,t,o|2),e.elementType=Ii,e.lanes=i,e;case Di:return e=Ue(13,n,t,o),e.elementType=Di,e.lanes=i,e;case Hi:return e=Ue(19,n,t,o),e.elementType=Hi,e.lanes=i,e;case Oa:return li(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ma:l=10;break e;case Na:l=9;break e;case $i:l=11;break e;case Ai:l=14;break e;case St:l=16,r=null;break e}throw Error(_(130,e==null?e:typeof e,""))}return t=Ue(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function ln(e,t,n,r){return e=Ue(7,e,r,t),e.lanes=n,e}function li(e,t,n,r){return e=Ue(22,e,r,t),e.elementType=Oa,e.lanes=n,e.stateNode={isHidden:!1},e}function zs(e,t,n){return e=Ue(6,e,null,t),e.lanes=n,e}function Ms(e,t,n){return t=Ue(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jh(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ll(0),this.expirationTimes=ll(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ll(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ns(e,t,n,r,o,i,l,s,a){return e=new jh(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ue(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ql(i),e}function Th(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:yn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ld(e){if(!e)return Nt;e=e._reactInternals;e:{if(Qt(e)!==e||e.tag!==1)throw Error(_(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Te(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(_(171))}if(e.tag===1){var n=e.type;if(Te(n))return tc(e,n,t)}return t}function jd(e,t,n,r,o,i,l,s,a){return e=Ns(n,r,!0,e,o,i,l,s,a),e.context=Ld(null),n=e.current,r=be(),o=Bt(n),i=yt(r,o),i.callback=t??null,$t(n,i,o),e.current.lanes=o,ar(e,o,r),ze(e,r),e}function si(e,t,n,r){var o=t.current,i=be(),l=Bt(o);return n=Ld(n),t.context===null?t.context=n:t.pendingContext=n,t=yt(i,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=$t(o,t,l),e!==null&&(Je(e,o,l,i),Do(e,o,l)),l}function ai(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Td(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Os(e,t){Td(e,t),(e=e.alternate)&&Td(e,t)}function Ph(){return null}var Pd=typeof reportError=="function"?reportError:function(e){console.error(e)};function Is(e){this._internalRoot=e}ui.prototype.render=Is.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(_(409));si(e,t,null,null)},ui.prototype.unmount=Is.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;nn(function(){si(null,e,null,null)}),t[ft]=null}};function ui(e){this._internalRoot=e}ui.prototype.unstable_scheduleHydration=function(e){if(e){var t=pu();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Tt.length&&t!==0&&t<Tt[n].priority;n++);Tt.splice(n,0,e),n===0&&gu(e)}};function $s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ci(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Rd(){}function Rh(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=ai(l);i.call(u)}}var l=jd(t,r,e,0,null,!1,!1,"",Rd);return e._reactRootContainer=l,e[ft]=l.current,Cr(e.nodeType===8?e.parentNode:e),nn(),l}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var s=r;r=function(){var u=ai(a);s.call(u)}}var a=Ns(e,0,!1,null,null,!1,!1,"",Rd);return e._reactRootContainer=a,e[ft]=a.current,Cr(e.nodeType===8?e.parentNode:e),nn(function(){si(t,a,n,r)}),a}function di(e,t,n,r,o){var i=n._reactRootContainer;if(i){var l=i;if(typeof o=="function"){var s=o;o=function(){var a=ai(l);s.call(a)}}si(t,l,e,o)}else l=Rh(n,t,e,o,r);return ai(l)}du=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=sr(t.pendingLanes);n!==0&&(sl(t,n|1),ze(t,re()),!(I&6)&&(Vn=re()+500,Ot()))}break;case 13:nn(function(){var r=gt(e,1);if(r!==null){var o=be();Je(r,e,1,o)}}),Os(e,1)}},al=function(e){if(e.tag===13){var t=gt(e,134217728);if(t!==null){var n=be();Je(t,e,134217728,n)}Os(e,134217728)}},fu=function(e){if(e.tag===13){var t=Bt(e),n=gt(e,t);if(n!==null){var r=be();Je(n,e,t,r)}Os(e,t)}},pu=function(){return A},hu=function(e,t){var n=A;try{return A=e,t()}finally{A=n}},el=function(e,t,n){switch(t){case"input":if(Wi(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=jo(r);if(!o)throw Error(_(90));Da(r),Wi(r,o)}}}break;case"textarea":Fa(e,n);break;case"select":t=n.value,t!=null&&wn(e,!!n.multiple,t,!1)}},qa=js,Ja=nn;var zh={usingClientEntryPoint:!1,Events:[_r,Tn,jo,Ga,Ka,js]},Hr={findFiberByHostInstance:Yt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Mh={bundleType:Hr.bundleType,version:Hr.version,rendererPackageName:Hr.rendererPackageName,rendererConfig:Hr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:dt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ru(e),e===null?null:e.stateNode},findFiberByHostInstance:Hr.findFiberByHostInstance||Ph,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var fi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fi.isDisabled&&fi.supportsFiber)try{ao=fi.inject(Mh),tt=fi}catch{}}Me.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zh,Me.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!$s(t))throw Error(_(200));return Th(e,t,null,n)},Me.createRoot=function(e,t){if(!$s(e))throw Error(_(299));var n=!1,r="",o=Pd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Ns(e,1,!1,null,null,n,!1,r,o),e[ft]=t.current,Cr(e.nodeType===8?e.parentNode:e),new Is(t)},Me.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(_(188)):(e=Object.keys(e).join(","),Error(_(268,e)));return e=ru(t),e=e===null?null:e.stateNode,e},Me.flushSync=function(e){return nn(e)},Me.hydrate=function(e,t,n){if(!ci(t))throw Error(_(200));return di(null,e,t,!0,n)},Me.hydrateRoot=function(e,t,n){if(!$s(e))throw Error(_(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",l=Pd;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=jd(t,null,e,1,n??null,o,!1,i,l),e[ft]=t.current,Cr(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new ui(t)},Me.render=function(e,t,n){if(!ci(t))throw Error(_(200));return di(null,e,t,!1,n)},Me.unmountComponentAtNode=function(e){if(!ci(e))throw Error(_(40));return e._reactRootContainer?(nn(function(){di(null,null,e,!1,function(){e._reactRootContainer=null,e[ft]=null})}),!0):!1},Me.unstable_batchedUpdates=js,Me.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ci(n))throw Error(_(200));if(e==null||e._reactInternals===void 0)throw Error(_(38));return di(e,t,n,!1,r)},Me.version="18.3.1-next-f1338f8080-20240426";function zd(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zd)}catch(e){console.error(e)}}zd(),La.exports=Me;var Nh=La.exports,Md,Nd=Nh;Md=Nd.createRoot,Nd.hydrateRoot;var Od=function(e,t,n,r){var o;t[0]=0;for(var i=1;i<t.length;i++){var l=t[i++],s=t[i]?(t[0]|=l?1:2,n[t[i++]]):t[++i];l===3?r[0]=s:l===4?r[1]=Object.assign(r[1]||{},s):l===5?(r[1]=r[1]||{})[t[++i]]=s:l===6?r[1][t[++i]]+=s+"":l?(o=e.apply(s,Od(e,s,n,["",null])),r.push(o),s[0]?t[0]|=2:(t[i-2]=0,t[i]=o)):r.push(s)}return r},Id=new Map;function Oh(e){var t=Id.get(this);return t||(t=new Map,Id.set(this,t)),(t=Od(this,t.get(e)||(t.set(e,t=function(n){for(var r,o,i=1,l="",s="",a=[0],u=function(h){i===1&&(h||(l=l.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?a.push(0,h,l):i===3&&(h||l)?(a.push(3,h,l),i=2):i===2&&l==="..."&&h?a.push(4,h,0):i===2&&l&&!h?a.push(5,0,!0,l):i>=5&&((l||!h&&i===5)&&(a.push(i,0,l,o),i=6),h&&(a.push(i,h,0,o),i=6)),l=""},c=0;c<n.length;c++){c&&(i===1&&u(),u(c));for(var f=0;f<n[c].length;f++)r=n[c][f],i===1?r==="<"?(u(),a=[a],i=3):l+=r:i===4?l==="--"&&r===">"?(i=1,l=""):l=r+l[0]:s?r===s?s="":l+=r:r==='"'||r==="'"?s=r:r===">"?(u(),i=1):i&&(r==="="?(i=5,o=l,l=""):r==="/"&&(i<5||n[c][f+1]===">")?(u(),i===3&&(a=a[0]),i=a,(a=a[0]).push(2,0,i),i=0):r===" "||r===" "||r===`
|
|
41
|
-
`||r==="\r"?(u(),i=2):l+=r),i===3&&l==="!--"&&(i=4,a=a[0])}return u(),a}(e)),t),arguments,[])).length>1?t:t[0]}var
|
|
42
|
-
`)===0?r.substr(1,r.length):r}).forEach(function(r){var o=r.split(":"),i=o.shift().trim();if(i){var l=o.join(":").trim();try{t.append(i,l)}catch(s){console.warn("Response "+s.message)}}}),t}
|
|
40
|
+
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function vs(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ws(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var zh=typeof WeakMap=="function"?WeakMap:Map;function tf(e,t,n){n=xt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ai||(ai=!0,Os=r),ws(e,t)},n}function nf(e,t,n){n=xt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ws(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){ws(e,t),typeof r!="function"&&(Vt===null?Vt=new Set([this]):Vt.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function rf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new zh;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Wh.bind(null,e,t,n),t.then(e,e))}function of(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function lf(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=xt(-1,1),t.tag=2,Ht(n,t,1))),n.lanes|=1),e)}var Mh=ht.ReactCurrentOwner,Re=!1;function Se(e,t,n,r){t.child=e===null?_c(t,null,n,r):Dn(t,e.child,n,r)}function sf(e,t,n,r,o){n=n.render;var i=t.ref;return Hn(t,o),r=cs(e,t,n,r,i,o),n=fs(),e!==null&&!Re?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,kt(e,t,o)):(X&&n&&Ql(t),t.flags|=1,Se(e,t,r,o),t.child)}function af(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Bs(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,uf(e,t,i,r,o)):(e=hi(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:Er,n(l,r)&&e.ref===t.ref)return kt(e,t,o)}return t.flags|=1,e=Wt(i,r),e.ref=t.ref,e.return=t,t.child=e}function uf(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Er(i,r)&&e.ref===t.ref)if(Re=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Re=!0);else return t.lanes=e.lanes,kt(e,t,o)}return xs(e,t,n,r,o)}function cf(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},W(Un,Ae),Ae|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,W(Un,Ae),Ae|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,W(Un,Ae),Ae|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,W(Un,Ae),Ae|=r;return Se(e,t,o,n),t.child}function ff(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function xs(e,t,n,r,o){var i=Pe(n)?Gt:ve.current;return i=On(t,i),Hn(t,o),n=cs(e,t,n,r,i,o),r=fs(),e!==null&&!Re?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,kt(e,t,o)):(X&&r&&Ql(t),t.flags|=1,Se(e,t,n,o),t.child)}function df(e,t,n,r,o){if(Pe(n)){var i=!0;Ao(t)}else i=!1;if(Hn(t,o),t.stateNode===null)ri(e,t),Jc(t,n,r),ys(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,s=t.memoizedProps;l.props=s;var a=l.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ve(u):(u=Pe(n)?Gt:ve.current,u=On(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof l.getSnapshotBeforeUpdate=="function";f||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==r||a!==u)&&ef(t,l,r,u),At=!1;var p=t.memoizedState;l.state=p,Yo(t,r,l,o),a=t.memoizedState,s!==r||p!==a||Te.current||At?(typeof c=="function"&&(gs(t,n,c,r),a=t.memoizedState),(s=At||Kc(t,n,s,r,p,a,u))?(f||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),l.props=r,l.state=a,l.context=u,r=s):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,jc(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Ge(t.type,s),l.props=u,f=t.pendingProps,p=l.context,a=n.contextType,typeof a=="object"&&a!==null?a=Ve(a):(a=Pe(n)?Gt:ve.current,a=On(t,a));var y=n.getDerivedStateFromProps;(c=typeof y=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==f||p!==a)&&ef(t,l,r,a),At=!1,p=t.memoizedState,l.state=p,Yo(t,r,l,o);var x=t.memoizedState;s!==f||p!==x||Te.current||At?(typeof y=="function"&&(gs(t,n,y,r),x=t.memoizedState),(u=At||Kc(t,n,u,r,p,x,a)||!1)?(c||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,x,a),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,x,a)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),l.props=r,l.state=x,l.context=a,r=u):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return ks(e,t,n,r,i,o)}function ks(e,t,n,r,o,i){ff(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&gc(t,n,!1),kt(e,t,i);r=t.stateNode,Mh.current=t;var s=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=Dn(t,e.child,null,i),t.child=Dn(t,null,s,i)):Se(e,t,s,i),t.memoizedState=r.state,o&&gc(t,n,!0),t.child}function pf(e){var t=e.stateNode;t.pendingContext?hc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&hc(e,t.context,!1),os(e,t.containerInfo)}function hf(e,t,n,r,o){return $n(),Gl(o),t.flags|=256,Se(e,t,n,r),t.child}var Cs={dehydrated:null,treeContext:null,retryLane:0};function bs(e){return{baseLanes:e,cachePool:null,transitions:null}}function mf(e,t,n){var r=t.pendingProps,o=J.current,i=!1,l=(t.flags&128)!==0,s;if((s=l)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),W(J,o&1),e===null)return Xl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,i?(r=t.mode,i=t.child,l={mode:"hidden",children:l},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=l):i=mi(l,r,0,null),e=an(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=bs(n),t.memoizedState=Cs,e):Ss(t,l));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return Oh(e,t,l,r,s,o,n);if(i){i=r.fallback,l=t.mode,o=e.child,s=o.sibling;var a={mode:"hidden",children:r.children};return!(l&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Wt(o,a),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=Wt(s,i):(i=an(i,l,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,l=e.child.memoizedState,l=l===null?bs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=Cs,r}return i=e.child,e=i.sibling,r=Wt(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ss(e,t){return t=mi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ni(e,t,n,r){return r!==null&&Gl(r),Dn(t,e.child,null,n),e=Ss(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Oh(e,t,n,r,o,i,l){if(n)return t.flags&256?(t.flags&=-257,r=vs(Error(_(422))),ni(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=mi({mode:"visible",children:r.children},o,0,null),i=an(i,o,l,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Dn(t,e.child,null,l),t.child.memoizedState=bs(l),t.memoizedState=Cs,i);if(!(t.mode&1))return ni(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(_(419)),r=vs(i,r,void 0),ni(e,t,l,r)}if(s=(l&e.childLanes)!==0,Re||s){if(r=fe,r!==null){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|l)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,wt(e,o),et(r,e,o,-1))}return Hs(),r=vs(Error(_(421))),ni(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Qh.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,De=Nt(o.nextSibling),$e=t,X=!0,Xe=null,e!==null&&(He[Be++]=yt,He[Be++]=vt,He[Be++]=Kt,yt=e.id,vt=e.overflow,Kt=t),t=Ss(t,r.children),t.flags|=4096,t)}function gf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ts(e.return,t,n)}function _s(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function yf(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Se(e,t,r.children,n),r=J.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&gf(e,n,t);else if(e.tag===19)gf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(W(J,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&qo(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),_s(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&qo(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}_s(t,!0,n,null,i);break;case"together":_s(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ri(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function kt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),rn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(_(153));if(t.child!==null){for(e=t.child,n=Wt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Wt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Nh(e,t,n){switch(t.tag){case 3:pf(t),$n();break;case 5:Pc(t);break;case 1:Pe(t.type)&&Ao(t);break;case 4:os(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;W(Zo,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(W(J,J.current&1),t.flags|=128,null):n&t.child.childLanes?mf(e,t,n):(W(J,J.current&1),e=kt(e,t,n),e!==null?e.sibling:null);W(J,J.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return yf(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),W(J,J.current),r)break;return null;case 22:case 23:return t.lanes=0,cf(e,t,n)}return kt(e,t,n)}var vf,Es,wf,xf;vf=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Es=function(){},wf=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,tn(lt.current);var i=null;switch(n){case"input":o=tl(e,o),r=tl(e,r),i=[];break;case"select":o=K({},o,{value:void 0}),r=K({},r,{value:void 0}),i=[];break;case"textarea":o=ol(e,o),r=ol(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Io)}ll(n,r);var l;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(l in s)s.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ir.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var a=r[u];if(s=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&a!==s&&(a!=null||s!=null))if(u==="style")if(s){for(l in s)!s.hasOwnProperty(l)||a&&a.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in a)a.hasOwnProperty(l)&&s[l]!==a[l]&&(n||(n={}),n[l]=a[l])}else n||(i||(i=[]),i.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,s=s?s.__html:void 0,a!=null&&s!==a&&(i=i||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ir.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&Y("scroll",e),i||s===a||(i=[])):(i=i||[]).push(u,a))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}},xf=function(e,t,n,r){n!==r&&(t.flags|=4)};function Br(e,t){if(!X)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ih(e,t,n){var r=t.pendingProps;switch(Yl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xe(t),null;case 1:return Pe(t.type)&&Do(),xe(t),null;case 3:return r=t.stateNode,Bn(),q(Te),q(ve),ss(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Fo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Xe!==null&&($s(Xe),Xe=null))),Es(e,t),xe(t),null;case 5:is(t);var o=tn(Ir.current);if(n=t.type,e!==null&&t.stateNode!=null)wf(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(_(166));return xe(t),null}if(e=tn(lt.current),Fo(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[it]=t,r[Rr]=i,e=(t.mode&1)!==0,n){case"dialog":Y("cancel",r),Y("close",r);break;case"iframe":case"object":case"embed":Y("load",r);break;case"video":case"audio":for(o=0;o<Lr.length;o++)Y(Lr[o],r);break;case"source":Y("error",r);break;case"img":case"image":case"link":Y("error",r),Y("load",r);break;case"details":Y("toggle",r);break;case"input":Ja(r,i),Y("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Y("invalid",r);break;case"textarea":nu(r,i),Y("invalid",r)}ll(n,i),o=null;for(var l in i)if(i.hasOwnProperty(l)){var s=i[l];l==="children"?typeof s=="string"?r.textContent!==s&&(i.suppressHydrationWarning!==!0&&No(r.textContent,s,e),o=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&No(r.textContent,s,e),o=["children",""+s]):ir.hasOwnProperty(l)&&s!=null&&l==="onScroll"&&Y("scroll",r)}switch(n){case"input":fo(r),tu(r,i,!0);break;case"textarea":fo(r),ou(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Io)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=iu(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[it]=t,e[Rr]=r,vf(e,t,!1,!1),t.stateNode=e;e:{switch(l=sl(n,r),n){case"dialog":Y("cancel",e),Y("close",e),o=r;break;case"iframe":case"object":case"embed":Y("load",e),o=r;break;case"video":case"audio":for(o=0;o<Lr.length;o++)Y(Lr[o],e);o=r;break;case"source":Y("error",e),o=r;break;case"img":case"image":case"link":Y("error",e),Y("load",e),o=r;break;case"details":Y("toggle",e),o=r;break;case"input":Ja(e,r),o=tl(e,r),Y("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=K({},r,{value:void 0}),Y("invalid",e);break;case"textarea":nu(e,r),o=ol(e,r),Y("invalid",e);break;default:o=r}ll(n,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var a=s[i];i==="style"?au(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&lu(e,a)):i==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&ur(e,a):typeof a=="number"&&ur(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(ir.hasOwnProperty(i)?a!=null&&i==="onScroll"&&Y("scroll",e):a!=null&&Ui(e,i,a,l))}switch(n){case"input":fo(e),tu(e,r,!1);break;case"textarea":fo(e),ou(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Lt(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Cn(e,!!r.multiple,i,!1):r.defaultValue!=null&&Cn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Io)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return xe(t),null;case 6:if(e&&t.stateNode!=null)xf(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(_(166));if(n=tn(Ir.current),tn(lt.current),Fo(t)){if(r=t.stateNode,n=t.memoizedProps,r[it]=t,(i=r.nodeValue!==n)&&(e=$e,e!==null))switch(e.tag){case 3:No(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&No(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[it]=t,t.stateNode=r}return xe(t),null;case 13:if(q(J),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(X&&De!==null&&t.mode&1&&!(t.flags&128))Cc(),$n(),t.flags|=98560,i=!1;else if(i=Fo(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(_(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(_(317));i[it]=t}else $n(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;xe(t),i=!1}else Xe!==null&&($s(Xe),Xe=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||J.current&1?ae===0&&(ae=3):Hs())),t.updateQueue!==null&&(t.flags|=4),xe(t),null);case 4:return Bn(),Es(e,t),e===null&&Tr(t.stateNode.containerInfo),xe(t),null;case 10:return es(t.type._context),xe(t),null;case 17:return Pe(t.type)&&Do(),xe(t),null;case 19:if(q(J),i=t.memoizedState,i===null)return xe(t),null;if(r=(t.flags&128)!==0,l=i.rendering,l===null)if(r)Br(i,!1);else{if(ae!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=qo(e),l!==null){for(t.flags|=128,Br(i,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,l=i.alternate,l===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return W(J,J.current&1|2),t.child}e=e.sibling}i.tail!==null&&oe()>Zn&&(t.flags|=128,r=!0,Br(i,!1),t.lanes=4194304)}else{if(!r)if(e=qo(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Br(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!X)return xe(t),null}else 2*oe()-i.renderingStartTime>Zn&&n!==1073741824&&(t.flags|=128,r=!0,Br(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=oe(),t.sibling=null,n=J.current,W(J,r?n&1|2:n&1),t):(xe(t),null);case 22:case 23:return As(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ae&1073741824&&(xe(t),t.subtreeFlags&6&&(t.flags|=8192)):xe(t),null;case 24:return null;case 25:return null}throw Error(_(156,t.tag))}function $h(e,t){switch(Yl(t),t.tag){case 1:return Pe(t.type)&&Do(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Bn(),q(Te),q(ve),ss(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return is(t),null;case 13:if(q(J),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));$n()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(J),null;case 4:return Bn(),null;case 10:return es(t.type._context),null;case 22:case 23:return As(),null;case 24:return null;default:return null}}var oi=!1,ke=!1,Dh=typeof WeakSet=="function"?WeakSet:Set,P=null;function Fn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){re(e,t,r)}else n.current=null}function js(e,t,n){try{n()}catch(r){re(e,t,r)}}var kf=!1;function Ah(e,t){if(Al=So,e=Ku(),Rl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,a=-1,u=0,c=0,f=e,p=null;t:for(;;){for(var y;f!==n||o!==0&&f.nodeType!==3||(s=l+o),f!==i||r!==0&&f.nodeType!==3||(a=l+r),f.nodeType===3&&(l+=f.nodeValue.length),(y=f.firstChild)!==null;)p=f,f=y;for(;;){if(f===e)break t;if(p===n&&++u===o&&(s=l),p===i&&++c===r&&(a=l),(y=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=y}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Hl={focusedElem:e,selectionRange:n},So=!1,P=t;P!==null;)if(t=P,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,P=e;else for(;P!==null;){t=P;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var v=x.memoizedProps,E=x.memoizedState,m=t.stateNode,d=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:Ge(t.type,v),E);m.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(_(163))}}catch(b){re(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,P=e;break}P=t.return}return x=kf,kf=!1,x}function Vr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&js(t,n,i)}o=o.next}while(o!==r)}}function ii(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ls(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Cf(e){var t=e.alternate;t!==null&&(e.alternate=null,Cf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[it],delete t[Rr],delete t[Ul],delete t[kh],delete t[Ch])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function bf(e){return e.tag===5||e.tag===3||e.tag===4}function Sf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ts(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Io));else if(r!==4&&(e=e.child,e!==null))for(Ts(e,t,n),e=e.sibling;e!==null;)Ts(e,t,n),e=e.sibling}function Ps(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ps(e,t,n),e=e.sibling;e!==null;)Ps(e,t,n),e=e.sibling}var he=null,Ke=!1;function Bt(e,t,n){for(n=n.child;n!==null;)_f(e,t,n),n=n.sibling}function _f(e,t,n){if(ot&&typeof ot.onCommitFiberUnmount=="function")try{ot.onCommitFiberUnmount(vo,n)}catch{}switch(n.tag){case 5:ke||Fn(n,t);case 6:var r=he,o=Ke;he=null,Bt(e,t,n),he=r,Ke=o,he!==null&&(Ke?(e=he,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):he.removeChild(n.stateNode));break;case 18:he!==null&&(Ke?(e=he,n=n.stateNode,e.nodeType===8?Fl(e.parentNode,n):e.nodeType===1&&Fl(e,n),xr(e)):Fl(he,n.stateNode));break;case 4:r=he,o=Ke,he=n.stateNode.containerInfo,Ke=!0,Bt(e,t,n),he=r,Ke=o;break;case 0:case 11:case 14:case 15:if(!ke&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&js(n,t,l),o=o.next}while(o!==r)}Bt(e,t,n);break;case 1:if(!ke&&(Fn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){re(n,t,s)}Bt(e,t,n);break;case 21:Bt(e,t,n);break;case 22:n.mode&1?(ke=(r=ke)||n.memoizedState!==null,Bt(e,t,n),ke=r):Bt(e,t,n);break;default:Bt(e,t,n)}}function Ef(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Dh),t.forEach(function(r){var o=Yh.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Je(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,l=t,s=l;e:for(;s!==null;){switch(s.tag){case 5:he=s.stateNode,Ke=!1;break e;case 3:he=s.stateNode.containerInfo,Ke=!0;break e;case 4:he=s.stateNode.containerInfo,Ke=!0;break e}s=s.return}if(he===null)throw Error(_(160));_f(i,l,o),he=null,Ke=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(u){re(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)jf(t,e),t=t.sibling}function jf(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Je(t,e),at(e),r&4){try{Vr(3,e,e.return),ii(3,e)}catch(v){re(e,e.return,v)}try{Vr(5,e,e.return)}catch(v){re(e,e.return,v)}}break;case 1:Je(t,e),at(e),r&512&&n!==null&&Fn(n,n.return);break;case 5:if(Je(t,e),at(e),r&512&&n!==null&&Fn(n,n.return),e.flags&32){var o=e.stateNode;try{ur(o,"")}catch(v){re(e,e.return,v)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,l=n!==null?n.memoizedProps:i,s=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&eu(o,i),sl(s,l);var u=sl(s,i);for(l=0;l<a.length;l+=2){var c=a[l],f=a[l+1];c==="style"?au(o,f):c==="dangerouslySetInnerHTML"?lu(o,f):c==="children"?ur(o,f):Ui(o,c,f,u)}switch(s){case"input":nl(o,i);break;case"textarea":ru(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var y=i.value;y!=null?Cn(o,!!i.multiple,y,!1):p!==!!i.multiple&&(i.defaultValue!=null?Cn(o,!!i.multiple,i.defaultValue,!0):Cn(o,!!i.multiple,i.multiple?[]:"",!1))}o[Rr]=i}catch(v){re(e,e.return,v)}}break;case 6:if(Je(t,e),at(e),r&4){if(e.stateNode===null)throw Error(_(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(v){re(e,e.return,v)}}break;case 3:if(Je(t,e),at(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{xr(t.containerInfo)}catch(v){re(e,e.return,v)}break;case 4:Je(t,e),at(e);break;case 13:Je(t,e),at(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Ms=oe())),r&4&&Ef(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(ke=(u=ke)||c,Je(t,e),ke=u):Je(t,e),at(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(P=e,c=e.child;c!==null;){for(f=P=c;P!==null;){switch(p=P,y=p.child,p.tag){case 0:case 11:case 14:case 15:Vr(4,p,p.return);break;case 1:Fn(p,p.return);var x=p.stateNode;if(typeof x.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(v){re(r,n,v)}}break;case 5:Fn(p,p.return);break;case 22:if(p.memoizedState!==null){Pf(f);continue}}y!==null?(y.return=p,P=y):Pf(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{o=f.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=f.stateNode,a=f.memoizedProps.style,l=a!=null&&a.hasOwnProperty("display")?a.display:null,s.style.display=su("display",l))}catch(v){re(e,e.return,v)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(v){re(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Je(t,e),at(e),r&4&&Ef(e);break;case 21:break;default:Je(t,e),at(e)}}function at(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(bf(n)){var r=n;break e}n=n.return}throw Error(_(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(ur(o,""),r.flags&=-33);var i=Sf(e);Ps(e,i,o);break;case 3:case 4:var l=r.stateNode.containerInfo,s=Sf(e);Ts(e,s,l);break;default:throw Error(_(161))}}catch(a){re(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Hh(e,t,n){P=e,Lf(e)}function Lf(e,t,n){for(var r=(e.mode&1)!==0;P!==null;){var o=P,i=o.child;if(o.tag===22&&r){var l=o.memoizedState!==null||oi;if(!l){var s=o.alternate,a=s!==null&&s.memoizedState!==null||ke;s=oi;var u=ke;if(oi=l,(ke=a)&&!u)for(P=o;P!==null;)l=P,a=l.child,l.tag===22&&l.memoizedState!==null?Rf(o):a!==null?(a.return=l,P=a):Rf(o);for(;i!==null;)P=i,Lf(i),i=i.sibling;P=o,oi=s,ke=u}Tf(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,P=i):Tf(e)}}function Tf(e){for(;P!==null;){var t=P;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ke||ii(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ke)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Ge(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Tc(t,i,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Tc(t,l,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&xr(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(_(163))}ke||t.flags&512&&Ls(t)}catch(p){re(t,t.return,p)}}if(t===e){P=null;break}if(n=t.sibling,n!==null){n.return=t.return,P=n;break}P=t.return}}function Pf(e){for(;P!==null;){var t=P;if(t===e){P=null;break}var n=t.sibling;if(n!==null){n.return=t.return,P=n;break}P=t.return}}function Rf(e){for(;P!==null;){var t=P;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ii(4,t)}catch(a){re(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){re(t,o,a)}}var i=t.return;try{Ls(t)}catch(a){re(t,i,a)}break;case 5:var l=t.return;try{Ls(t)}catch(a){re(t,l,a)}}}catch(a){re(t,t.return,a)}if(t===e){P=null;break}var s=t.sibling;if(s!==null){s.return=t.return,P=s;break}P=t.return}}var Bh=Math.ceil,li=ht.ReactCurrentDispatcher,Rs=ht.ReactCurrentOwner,Ue=ht.ReactCurrentBatchConfig,$=0,fe=null,le=null,me=0,Ae=0,Un=It(0),ae=0,Fr=null,rn=0,si=0,zs=0,Ur=null,ze=null,Ms=0,Zn=1/0,Ct=null,ai=!1,Os=null,Vt=null,ui=!1,Ft=null,ci=0,Zr=0,Ns=null,fi=-1,di=0;function _e(){return $&6?oe():fi!==-1?fi:fi=oe()}function Ut(e){return e.mode&1?$&2&&me!==0?me&-me:Sh.transition!==null?(di===0&&(di=bu()),di):(e=V,e!==0||(e=window.event,e=e===void 0?16:zu(e.type)),e):1}function et(e,t,n,r){if(50<Zr)throw Zr=0,Ns=null,Error(_(185));mr(e,n,r),(!($&2)||e!==fe)&&(e===fe&&(!($&2)&&(si|=n),ae===4&&Zt(e,me)),Me(e,r),n===1&&$===0&&!(t.mode&1)&&(Zn=oe()+500,Ho&&Dt()))}function Me(e,t){var n=e.callbackNode;S1(e,t);var r=ko(e,e===fe?me:0);if(r===0)n!==null&&xu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&xu(n),t===1)e.tag===0?bh(Mf.bind(null,e)):yc(Mf.bind(null,e)),wh(function(){!($&6)&&Dt()}),n=null;else{switch(Su(r)){case 1:n=hl;break;case 4:n=ku;break;case 16:n=yo;break;case 536870912:n=Cu;break;default:n=yo}n=Bf(n,zf.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function zf(e,t){if(fi=-1,di=0,$&6)throw Error(_(327));var n=e.callbackNode;if(Wn()&&e.callbackNode!==n)return null;var r=ko(e,e===fe?me:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=pi(e,r);else{t=r;var o=$;$|=2;var i=Nf();(fe!==e||me!==t)&&(Ct=null,Zn=oe()+500,ln(e,t));do try{Uh();break}catch(s){Of(e,s)}while(!0);Jl(),li.current=i,$=o,le!==null?t=0:(fe=null,me=0,t=ae)}if(t!==0){if(t===2&&(o=ml(e),o!==0&&(r=o,t=Is(e,o))),t===1)throw n=Fr,ln(e,0),Zt(e,r),Me(e,oe()),n;if(t===6)Zt(e,r);else{if(o=e.current.alternate,!(r&30)&&!Vh(o)&&(t=pi(e,r),t===2&&(i=ml(e),i!==0&&(r=i,t=Is(e,i))),t===1))throw n=Fr,ln(e,0),Zt(e,r),Me(e,oe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(_(345));case 2:sn(e,ze,Ct);break;case 3:if(Zt(e,r),(r&130023424)===r&&(t=Ms+500-oe(),10<t)){if(ko(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){_e(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Vl(sn.bind(null,e,ze,Ct),t);break}sn(e,ze,Ct);break;case 4:if(Zt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-Ye(r);i=1<<l,l=t[l],l>o&&(o=l),r&=~i}if(r=o,r=oe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Bh(r/1960))-r,10<r){e.timeoutHandle=Vl(sn.bind(null,e,ze,Ct),r);break}sn(e,ze,Ct);break;case 5:sn(e,ze,Ct);break;default:throw Error(_(329))}}}return Me(e,oe()),e.callbackNode===n?zf.bind(null,e):null}function Is(e,t){var n=Ur;return e.current.memoizedState.isDehydrated&&(ln(e,t).flags|=256),e=pi(e,t),e!==2&&(t=ze,ze=n,t!==null&&$s(t)),e}function $s(e){ze===null?ze=e:ze.push.apply(ze,e)}function Vh(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!qe(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Zt(e,t){for(t&=~zs,t&=~si,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ye(t),r=1<<n;e[n]=-1,t&=~r}}function Mf(e){if($&6)throw Error(_(327));Wn();var t=ko(e,0);if(!(t&1))return Me(e,oe()),null;var n=pi(e,t);if(e.tag!==0&&n===2){var r=ml(e);r!==0&&(t=r,n=Is(e,r))}if(n===1)throw n=Fr,ln(e,0),Zt(e,t),Me(e,oe()),n;if(n===6)throw Error(_(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,sn(e,ze,Ct),Me(e,oe()),null}function Ds(e,t){var n=$;$|=1;try{return e(t)}finally{$=n,$===0&&(Zn=oe()+500,Ho&&Dt())}}function on(e){Ft!==null&&Ft.tag===0&&!($&6)&&Wn();var t=$;$|=1;var n=Ue.transition,r=V;try{if(Ue.transition=null,V=1,e)return e()}finally{V=r,Ue.transition=n,$=t,!($&6)&&Dt()}}function As(){Ae=Un.current,q(Un)}function ln(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,vh(n)),le!==null)for(n=le.return;n!==null;){var r=n;switch(Yl(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Do();break;case 3:Bn(),q(Te),q(ve),ss();break;case 5:is(r);break;case 4:Bn();break;case 13:q(J);break;case 19:q(J);break;case 10:es(r.type._context);break;case 22:case 23:As()}n=n.return}if(fe=e,le=e=Wt(e.current,null),me=Ae=t,ae=0,Fr=null,zs=si=rn=0,ze=Ur=null,en!==null){for(t=0;t<en.length;t++)if(n=en[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var l=i.next;i.next=o,r.next=l}n.pending=r}en=null}return e}function Of(e,t){do{var n=le;try{if(Jl(),Xo.current=ei,Go){for(var r=ee.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Go=!1}if(nn=0,ce=se=ee=null,$r=!1,Dr=0,Rs.current=null,n===null||n.return===null){ae=1,Fr=t,le=null;break}e:{var i=e,l=n.return,s=n,a=t;if(t=me,s.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,c=s,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var y=of(l);if(y!==null){y.flags&=-257,lf(y,l,s,i,t),y.mode&1&&rf(i,u,t),t=y,a=u;var x=t.updateQueue;if(x===null){var v=new Set;v.add(a),t.updateQueue=v}else x.add(a);break e}else{if(!(t&1)){rf(i,u,t),Hs();break e}a=Error(_(426))}}else if(X&&s.mode&1){var E=of(l);if(E!==null){!(E.flags&65536)&&(E.flags|=256),lf(E,l,s,i,t),Gl(Vn(a,s));break e}}i=a=Vn(a,s),ae!==4&&(ae=2),Ur===null?Ur=[i]:Ur.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=tf(i,a,t);Lc(i,m);break e;case 1:s=a;var d=i.type,g=i.stateNode;if(!(i.flags&128)&&(typeof d.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Vt===null||!Vt.has(g)))){i.flags|=65536,t&=-t,i.lanes|=t;var b=nf(i,s,t);Lc(i,b);break e}}i=i.return}while(i!==null)}$f(n)}catch(S){t=S,le===n&&n!==null&&(le=n=n.return);continue}break}while(!0)}function Nf(){var e=li.current;return li.current=ei,e===null?ei:e}function Hs(){(ae===0||ae===3||ae===2)&&(ae=4),fe===null||!(rn&268435455)&&!(si&268435455)||Zt(fe,me)}function pi(e,t){var n=$;$|=2;var r=Nf();(fe!==e||me!==t)&&(Ct=null,ln(e,t));do try{Fh();break}catch(o){Of(e,o)}while(!0);if(Jl(),$=n,li.current=r,le!==null)throw Error(_(261));return fe=null,me=0,ae}function Fh(){for(;le!==null;)If(le)}function Uh(){for(;le!==null&&!m1();)If(le)}function If(e){var t=Hf(e.alternate,e,Ae);e.memoizedProps=e.pendingProps,t===null?$f(e):le=t,Rs.current=null}function $f(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=$h(n,t),n!==null){n.flags&=32767,le=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ae=6,le=null;return}}else if(n=Ih(n,t,Ae),n!==null){le=n;return}if(t=t.sibling,t!==null){le=t;return}le=t=e}while(t!==null);ae===0&&(ae=5)}function sn(e,t,n){var r=V,o=Ue.transition;try{Ue.transition=null,V=1,Zh(e,t,n,r)}finally{Ue.transition=o,V=r}return null}function Zh(e,t,n,r){do Wn();while(Ft!==null);if($&6)throw Error(_(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(_(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(_1(e,i),e===fe&&(le=fe=null,me=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ui||(ui=!0,Bf(yo,function(){return Wn(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Ue.transition,Ue.transition=null;var l=V;V=1;var s=$;$|=4,Rs.current=null,Ah(e,n),jf(n,e),fh(Hl),So=!!Al,Hl=Al=null,e.current=n,Hh(n),g1(),$=s,V=l,Ue.transition=i}else e.current=n;if(ui&&(ui=!1,Ft=e,ci=o),i=e.pendingLanes,i===0&&(Vt=null),w1(n.stateNode),Me(e,oe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(ai)throw ai=!1,e=Os,Os=null,e;return ci&1&&e.tag!==0&&Wn(),i=e.pendingLanes,i&1?e===Ns?Zr++:(Zr=0,Ns=e):Zr=0,Dt(),null}function Wn(){if(Ft!==null){var e=Su(ci),t=Ue.transition,n=V;try{if(Ue.transition=null,V=16>e?16:e,Ft===null)var r=!1;else{if(e=Ft,Ft=null,ci=0,$&6)throw Error(_(331));var o=$;for($|=4,P=e.current;P!==null;){var i=P,l=i.child;if(P.flags&16){var s=i.deletions;if(s!==null){for(var a=0;a<s.length;a++){var u=s[a];for(P=u;P!==null;){var c=P;switch(c.tag){case 0:case 11:case 15:Vr(8,c,i)}var f=c.child;if(f!==null)f.return=c,P=f;else for(;P!==null;){c=P;var p=c.sibling,y=c.return;if(Cf(c),c===u){P=null;break}if(p!==null){p.return=y,P=p;break}P=y}}}var x=i.alternate;if(x!==null){var v=x.child;if(v!==null){x.child=null;do{var E=v.sibling;v.sibling=null,v=E}while(v!==null)}}P=i}}if(i.subtreeFlags&2064&&l!==null)l.return=i,P=l;else e:for(;P!==null;){if(i=P,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Vr(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,P=m;break e}P=i.return}}var d=e.current;for(P=d;P!==null;){l=P;var g=l.child;if(l.subtreeFlags&2064&&g!==null)g.return=l,P=g;else e:for(l=d;P!==null;){if(s=P,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:ii(9,s)}}catch(S){re(s,s.return,S)}if(s===l){P=null;break e}var b=s.sibling;if(b!==null){b.return=s.return,P=b;break e}P=s.return}}if($=o,Dt(),ot&&typeof ot.onPostCommitFiberRoot=="function")try{ot.onPostCommitFiberRoot(vo,e)}catch{}r=!0}return r}finally{V=n,Ue.transition=t}}return!1}function Df(e,t,n){t=Vn(n,t),t=tf(e,t,1),e=Ht(e,t,1),t=_e(),e!==null&&(mr(e,1,t),Me(e,t))}function re(e,t,n){if(e.tag===3)Df(e,e,n);else for(;t!==null;){if(t.tag===3){Df(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Vt===null||!Vt.has(r))){e=Vn(n,e),e=nf(t,e,1),t=Ht(t,e,1),e=_e(),t!==null&&(mr(t,1,e),Me(t,e));break}}t=t.return}}function Wh(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=_e(),e.pingedLanes|=e.suspendedLanes&n,fe===e&&(me&n)===n&&(ae===4||ae===3&&(me&130023424)===me&&500>oe()-Ms?ln(e,0):zs|=n),Me(e,t)}function Af(e,t){t===0&&(e.mode&1?(t=xo,xo<<=1,!(xo&130023424)&&(xo=4194304)):t=1);var n=_e();e=wt(e,t),e!==null&&(mr(e,t,n),Me(e,n))}function Qh(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Af(e,n)}function Yh(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(_(314))}r!==null&&r.delete(t),Af(e,n)}var Hf;Hf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Te.current)Re=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Re=!1,Nh(e,t,n);Re=!!(e.flags&131072)}else Re=!1,X&&t.flags&1048576&&vc(t,Vo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ri(e,t),e=t.pendingProps;var o=On(t,ve.current);Hn(t,n),o=cs(null,t,r,e,o,n);var i=fs();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pe(r)?(i=!0,Ao(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,rs(t),o.updater=ti,t.stateNode=o,o._reactInternals=t,ys(t,r,e,n),t=ks(null,t,r,!0,i,n)):(t.tag=0,X&&i&&Ql(t),Se(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ri(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Xh(r),e=Ge(r,e),o){case 0:t=xs(null,t,r,e,n);break e;case 1:t=df(null,t,r,e,n);break e;case 11:t=sf(null,t,r,e,n);break e;case 14:t=af(null,t,r,Ge(r.type,e),n);break e}throw Error(_(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ge(r,o),xs(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ge(r,o),df(e,t,r,o,n);case 3:e:{if(pf(t),e===null)throw Error(_(387));r=t.pendingProps,i=t.memoizedState,o=i.element,jc(e,t),Yo(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Vn(Error(_(423)),t),t=hf(e,t,r,n,o);break e}else if(r!==o){o=Vn(Error(_(424)),t),t=hf(e,t,r,n,o);break e}else for(De=Nt(t.stateNode.containerInfo.firstChild),$e=t,X=!0,Xe=null,n=_c(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($n(),r===o){t=kt(e,t,n);break e}Se(e,t,r,n)}t=t.child}return t;case 5:return Pc(t),e===null&&Xl(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Bl(r,o)?l=null:i!==null&&Bl(r,i)&&(t.flags|=32),ff(e,t),Se(e,t,l,n),t.child;case 6:return e===null&&Xl(t),null;case 13:return mf(e,t,n);case 4:return os(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Dn(t,null,r,n):Se(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ge(r,o),sf(e,t,r,o,n);case 7:return Se(e,t,t.pendingProps,n),t.child;case 8:return Se(e,t,t.pendingProps.children,n),t.child;case 12:return Se(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,W(Zo,r._currentValue),r._currentValue=l,i!==null)if(qe(i.value,l)){if(i.children===o.children&&!Te.current){t=kt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=xt(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),ts(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(_(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),ts(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}Se(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Hn(t,n),o=Ve(o),r=r(o),t.flags|=1,Se(e,t,r,n),t.child;case 14:return r=t.type,o=Ge(r,t.pendingProps),o=Ge(r.type,o),af(e,t,r,o,n);case 15:return uf(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ge(r,o),ri(e,t),t.tag=1,Pe(r)?(e=!0,Ao(t)):e=!1,Hn(t,n),Jc(t,r,o),ys(t,r,o,n),ks(null,t,r,!0,e,n);case 19:return yf(e,t,n);case 22:return cf(e,t,n)}throw Error(_(156,t.tag))};function Bf(e,t){return wu(e,t)}function qh(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ze(e,t,n,r){return new qh(e,t,n,r)}function Bs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Xh(e){if(typeof e=="function")return Bs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Qi)return 11;if(e===Xi)return 14}return 2}function Wt(e,t){var n=e.alternate;return n===null?(n=Ze(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function hi(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")Bs(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case kn:return an(n.children,o,i,t);case Zi:l=8,o|=8;break;case Wi:return e=Ze(12,n,t,o|2),e.elementType=Wi,e.lanes=i,e;case Yi:return e=Ze(13,n,t,o),e.elementType=Yi,e.lanes=i,e;case qi:return e=Ze(19,n,t,o),e.elementType=qi,e.lanes=i,e;case qa:return mi(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Qa:l=10;break e;case Ya:l=9;break e;case Qi:l=11;break e;case Xi:l=14;break e;case jt:l=16,r=null;break e}throw Error(_(130,e==null?e:typeof e,""))}return t=Ze(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function an(e,t,n,r){return e=Ze(7,e,r,t),e.lanes=n,e}function mi(e,t,n,r){return e=Ze(22,e,r,t),e.elementType=qa,e.lanes=n,e.stateNode={isHidden:!1},e}function Vs(e,t,n){return e=Ze(6,e,null,t),e.lanes=n,e}function Fs(e,t,n){return t=Ze(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Gh(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gl(0),this.expirationTimes=gl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Us(e,t,n,r,o,i,l,s,a){return e=new Gh(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ze(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},rs(i),e}function Kh(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:xn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Vf(e){if(!e)return $t;e=e._reactInternals;e:{if(qt(e)!==e||e.tag!==1)throw Error(_(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Pe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(_(171))}if(e.tag===1){var n=e.type;if(Pe(n))return mc(e,n,t)}return t}function Ff(e,t,n,r,o,i,l,s,a){return e=Us(n,r,!0,e,o,i,l,s,a),e.context=Vf(null),n=e.current,r=_e(),o=Ut(n),i=xt(r,o),i.callback=t??null,Ht(n,i,o),e.current.lanes=o,mr(e,o,r),Me(e,r),e}function gi(e,t,n,r){var o=t.current,i=_e(),l=Ut(o);return n=Vf(n),t.context===null?t.context=n:t.pendingContext=n,t=xt(i,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ht(o,t,l),e!==null&&(et(e,o,l,i),Qo(e,o,l)),l}function yi(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Uf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Zs(e,t){Uf(e,t),(e=e.alternate)&&Uf(e,t)}function Jh(){return null}var Zf=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ws(e){this._internalRoot=e}vi.prototype.render=Ws.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(_(409));gi(e,t,null,null)},vi.prototype.unmount=Ws.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;on(function(){gi(null,e,null,null)}),t[mt]=null}};function vi(e){this._internalRoot=e}vi.prototype.unstable_scheduleHydration=function(e){if(e){var t=ju();e={blockedOn:null,target:e,priority:t};for(var n=0;n<zt.length&&t!==0&&t<zt[n].priority;n++);zt.splice(n,0,e),n===0&&Pu(e)}};function Qs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function wi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Wf(){}function e0(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=yi(l);i.call(u)}}var l=Ff(t,r,e,0,null,!1,!1,"",Wf);return e._reactRootContainer=l,e[mt]=l.current,Tr(e.nodeType===8?e.parentNode:e),on(),l}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var s=r;r=function(){var u=yi(a);s.call(u)}}var a=Us(e,0,!1,null,null,!1,!1,"",Wf);return e._reactRootContainer=a,e[mt]=a.current,Tr(e.nodeType===8?e.parentNode:e),on(function(){gi(t,a,n,r)}),a}function xi(e,t,n,r,o){var i=n._reactRootContainer;if(i){var l=i;if(typeof o=="function"){var s=o;o=function(){var a=yi(l);s.call(a)}}gi(t,l,e,o)}else l=e0(n,t,e,o,r);return yi(l)}_u=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=hr(t.pendingLanes);n!==0&&(yl(t,n|1),Me(t,oe()),!($&6)&&(Zn=oe()+500,Dt()))}break;case 13:on(function(){var r=wt(e,1);if(r!==null){var o=_e();et(r,e,1,o)}}),Zs(e,1)}},vl=function(e){if(e.tag===13){var t=wt(e,134217728);if(t!==null){var n=_e();et(t,e,134217728,n)}Zs(e,134217728)}},Eu=function(e){if(e.tag===13){var t=Ut(e),n=wt(e,t);if(n!==null){var r=_e();et(n,e,t,r)}Zs(e,t)}},ju=function(){return V},Lu=function(e,t){var n=V;try{return V=e,t()}finally{V=n}},cl=function(e,t,n){switch(t){case"input":if(nl(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=$o(r);if(!o)throw Error(_(90));Ka(r),nl(r,o)}}}break;case"textarea":ru(e,n);break;case"select":t=n.value,t!=null&&Cn(e,!!n.multiple,t,!1)}},du=Ds,pu=on;var t0={usingClientEntryPoint:!1,Events:[zr,zn,$o,cu,fu,Ds]},Wr={findFiberByHostInstance:Xt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},n0={bundleType:Wr.bundleType,version:Wr.version,rendererPackageName:Wr.rendererPackageName,rendererConfig:Wr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ht.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=yu(e),e===null?null:e.stateNode},findFiberByHostInstance:Wr.findFiberByHostInstance||Jh,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ki=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ki.isDisabled&&ki.supportsFiber)try{vo=ki.inject(n0),ot=ki}catch{}}Oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=t0,Oe.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Qs(t))throw Error(_(200));return Kh(e,t,null,n)},Oe.createRoot=function(e,t){if(!Qs(e))throw Error(_(299));var n=!1,r="",o=Zf;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Us(e,1,!1,null,null,n,!1,r,o),e[mt]=t.current,Tr(e.nodeType===8?e.parentNode:e),new Ws(t)},Oe.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(_(188)):(e=Object.keys(e).join(","),Error(_(268,e)));return e=yu(t),e=e===null?null:e.stateNode,e},Oe.flushSync=function(e){return on(e)},Oe.hydrate=function(e,t,n){if(!wi(t))throw Error(_(200));return xi(null,e,t,!0,n)},Oe.hydrateRoot=function(e,t,n){if(!Qs(e))throw Error(_(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",l=Zf;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=Ff(t,null,e,1,n??null,o,!1,i,l),e[mt]=t.current,Tr(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new vi(t)},Oe.render=function(e,t,n){if(!wi(t))throw Error(_(200));return xi(null,e,t,!1,n)},Oe.unmountComponentAtNode=function(e){if(!wi(e))throw Error(_(40));return e._reactRootContainer?(on(function(){xi(null,null,e,!1,function(){e._reactRootContainer=null,e[mt]=null})}),!0):!1},Oe.unstable_batchedUpdates=Ds,Oe.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!wi(n))throw Error(_(200));if(e==null||e._reactInternals===void 0)throw Error(_(38));return xi(e,t,n,!1,r)},Oe.version="18.3.1-next-f1338f8080-20240426";function Qf(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Qf)}catch(e){console.error(e)}}Qf(),Ba.exports=Oe;var r0=Ba.exports,Yf,qf=r0;Yf=qf.createRoot,qf.hydrateRoot;var Xf=function(e,t,n,r){var o;t[0]=0;for(var i=1;i<t.length;i++){var l=t[i++],s=t[i]?(t[0]|=l?1:2,n[t[i++]]):t[++i];l===3?r[0]=s:l===4?r[1]=Object.assign(r[1]||{},s):l===5?(r[1]=r[1]||{})[t[++i]]=s:l===6?r[1][t[++i]]+=s+"":l?(o=e.apply(s,Xf(e,s,n,["",null])),r.push(o),s[0]?t[0]|=2:(t[i-2]=0,t[i]=o)):r.push(s)}return r},Gf=new Map;function o0(e){var t=Gf.get(this);return t||(t=new Map,Gf.set(this,t)),(t=Xf(this,t.get(e)||(t.set(e,t=function(n){for(var r,o,i=1,l="",s="",a=[0],u=function(p){i===1&&(p||(l=l.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?a.push(0,p,l):i===3&&(p||l)?(a.push(3,p,l),i=2):i===2&&l==="..."&&p?a.push(4,p,0):i===2&&l&&!p?a.push(5,0,!0,l):i>=5&&((l||!p&&i===5)&&(a.push(i,0,l,o),i=6),p&&(a.push(i,p,0,o),i=6)),l=""},c=0;c<n.length;c++){c&&(i===1&&u(),u(c));for(var f=0;f<n[c].length;f++)r=n[c][f],i===1?r==="<"?(u(),a=[a],i=3):l+=r:i===4?l==="--"&&r===">"?(i=1,l=""):l=r+l[0]:s?r===s?s="":l+=r:r==='"'||r==="'"?s=r:r===">"?(u(),i=1):i&&(r==="="?(i=5,o=l,l=""):r==="/"&&(i<5||n[c][f+1]===">")?(u(),i===3&&(a=a[0]),i=a,(a=a[0]).push(2,0,i),i=0):r===" "||r===" "||r===`
|
|
41
|
+
`||r==="\r"?(u(),i=2):l+=r),i===3&&l==="!--"&&(i=4,a=a[0])}return u(),a}(e)),t),arguments,[])).length>1?t:t[0]}var ge=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global||{},Ee={searchParams:"URLSearchParams"in ge,iterable:"Symbol"in ge&&"iterator"in Symbol,blob:"FileReader"in ge&&"Blob"in ge&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in ge,arrayBuffer:"ArrayBuffer"in ge};function i0(e){return e&&DataView.prototype.isPrototypeOf(e)}if(Ee.arrayBuffer)var l0=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s0=ArrayBuffer.isView||function(e){return e&&l0.indexOf(Object.prototype.toString.call(e))>-1};function Qn(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||e==="")throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function Ys(e){return typeof e!="string"&&(e=String(e)),e}function qs(e){var t={next:function(){var n=e.shift();return{done:n===void 0,value:n}}};return Ee.iterable&&(t[Symbol.iterator]=function(){return t}),t}function ue(e){this.map={},e instanceof ue?e.forEach(function(t,n){this.append(n,t)},this):Array.isArray(e)?e.forEach(function(t){if(t.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}ue.prototype.append=function(e,t){e=Qn(e),t=Ys(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},ue.prototype.delete=function(e){delete this.map[Qn(e)]},ue.prototype.get=function(e){return e=Qn(e),this.has(e)?this.map[e]:null},ue.prototype.has=function(e){return this.map.hasOwnProperty(Qn(e))},ue.prototype.set=function(e,t){this.map[Qn(e)]=Ys(t)},ue.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},ue.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),qs(e)},ue.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),qs(e)},ue.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),qs(e)},Ee.iterable&&(ue.prototype[Symbol.iterator]=ue.prototype.entries);function Xs(e){if(!e._noBody){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}}function Kf(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function a0(e){var t=new FileReader,n=Kf(t);return t.readAsArrayBuffer(e),n}function u0(e){var t=new FileReader,n=Kf(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),o=r?r[1]:"utf-8";return t.readAsText(e,o),n}function c0(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}function Jf(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function ed(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?typeof e=="string"?this._bodyText=e:Ee.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:Ee.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Ee.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Ee.arrayBuffer&&Ee.blob&&i0(e)?(this._bodyArrayBuffer=Jf(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Ee.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||s0(e))?this._bodyArrayBuffer=Jf(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof e=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):Ee.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Ee.blob&&(this.blob=function(){var e=Xs(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=Xs(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(Ee.blob)return this.blob().then(a0);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var e=Xs(this);if(e)return e;if(this._bodyBlob)return u0(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(c0(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},Ee.formData&&(this.formData=function(){return this.text().then(p0)}),this.json=function(){return this.text().then(JSON.parse)},this}var f0=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function d0(e){var t=e.toUpperCase();return f0.indexOf(t)>-1?t:e}function un(e,t){if(!(this instanceof un))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{};var n=t.body;if(e instanceof un){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new ue(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!n&&e._bodyInit!=null&&(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new ue(t.headers)),this.method=d0(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in ge){var i=new AbortController;return i.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),(this.method==="GET"||this.method==="HEAD")&&(t.cache==="no-store"||t.cache==="no-cache")){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+new Date().getTime());else{var o=/\?/;this.url+=(o.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}un.prototype.clone=function(){return new un(this,{body:this._bodyInit})};function p0(e){var t=new FormData;return e.trim().split("&").forEach(function(n){if(n){var r=n.split("="),o=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(i))}}),t}function h0(e){var t=new ue,n=e.replace(/\r?\n[\t ]+/g," ");return n.split("\r").map(function(r){return r.indexOf(`
|
|
42
|
+
`)===0?r.substr(1,r.length):r}).forEach(function(r){var o=r.split(":"),i=o.shift().trim();if(i){var l=o.join(":").trim();try{t.append(i,l)}catch(s){console.warn("Response "+s.message)}}}),t}ed.call(un.prototype);function ut(e,t){if(!(this instanceof ut))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=t.status===void 0?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText===void 0?"":""+t.statusText,this.headers=new ue(t.headers),this.url=t.url||"",this._initBody(e)}ed.call(ut.prototype),ut.prototype.clone=function(){return new ut(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new ue(this.headers),url:this.url})},ut.error=function(){var e=new ut(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var m0=[301,302,303,307,308];ut.redirect=function(e,t){if(m0.indexOf(t)===-1)throw new RangeError("Invalid status code");return new ut(null,{status:t,headers:{location:e}})};var cn=ge.DOMException;try{new cn}catch{cn=function(t,n){this.message=t,this.name=n;var r=Error(t);this.stack=r.stack},cn.prototype=Object.create(Error.prototype),cn.prototype.constructor=cn}function td(e,t){return new Promise(function(n,r){var o=new un(e,t);if(o.signal&&o.signal.aborted)return r(new cn("Aborted","AbortError"));var i=new XMLHttpRequest;function l(){i.abort()}i.onload=function(){var u={statusText:i.statusText,headers:h0(i.getAllResponseHeaders()||"")};o.url.indexOf("file://")===0&&(i.status<200||i.status>599)?u.status=200:u.status=i.status,u.url="responseURL"in i?i.responseURL:u.headers.get("X-Request-URL");var c="response"in i?i.response:i.responseText;setTimeout(function(){n(new ut(c,u))},0)},i.onerror=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){r(new TypeError("Network request timed out"))},0)},i.onabort=function(){setTimeout(function(){r(new cn("Aborted","AbortError"))},0)};function s(u){try{return u===""&&ge.location.href?ge.location.href:u}catch{return u}}if(i.open(o.method,s(o.url),!0),o.credentials==="include"?i.withCredentials=!0:o.credentials==="omit"&&(i.withCredentials=!1),"responseType"in i&&(Ee.blob?i.responseType="blob":Ee.arrayBuffer&&(i.responseType="arraybuffer")),t&&typeof t.headers=="object"&&!(t.headers instanceof ue||ge.Headers&&t.headers instanceof ge.Headers)){var a=[];Object.getOwnPropertyNames(t.headers).forEach(function(u){a.push(Qn(u)),i.setRequestHeader(u,Ys(t.headers[u]))}),o.headers.forEach(function(u,c){a.indexOf(c)===-1&&i.setRequestHeader(c,u)})}else o.headers.forEach(function(u,c){i.setRequestHeader(c,u)});o.signal&&(o.signal.addEventListener("abort",l),i.onreadystatechange=function(){i.readyState===4&&o.signal.removeEventListener("abort",l)}),i.send(typeof o._bodyInit>"u"?null:o._bodyInit)})}td.polyfill=!0,ge.fetch||(ge.fetch=td,ge.Headers=ue,ge.Request=un,ge.Response=ut);var g0=self.fetch.bind(self);const y0=B(g0);/*! *****************************************************************************
|
|
43
43
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
44
44
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
45
45
|
this file except in compliance with the License. You may obtain a copy of the
|
|
@@ -52,56 +52,56 @@ Error generating stack: `+i.message+`
|
|
|
52
52
|
|
|
53
53
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
54
54
|
and limitations under the License.
|
|
55
|
-
***************************************************************************** */var
|
|
55
|
+
***************************************************************************** */var Gs=function(e,t){return Gs=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)r.hasOwnProperty(o)&&(n[o]=r[o])},Gs(e,t)};function nd(e,t){Gs(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function v0(e){var t=typeof Symbol=="function"&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function w0(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],l;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){l={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return i}function x0(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(w0(arguments[t]));return e}var rd=function(){function e(t,n){this.target=n,this.type=t}return e}(),k0=function(e){nd(t,e);function t(n,r){var o=e.call(this,"error",r)||this;return o.message=n.message,o.error=n,o}return t}(rd),C0=function(e){nd(t,e);function t(n,r,o){n===void 0&&(n=1e3),r===void 0&&(r="");var i=e.call(this,"close",o)||this;return i.wasClean=!0,i.code=n,i.reason=r,i}return t}(rd);/*!
|
|
56
56
|
* Reconnecting WebSocket
|
|
57
57
|
* by Pedro Ladaria <pedro.ladaria@gmail.com>
|
|
58
58
|
* https://github.com/pladaria/reconnecting-websocket
|
|
59
59
|
* License MIT
|
|
60
|
-
*/var e0=function(){if(typeof WebSocket<"u")return WebSocket},t0=function(e){return typeof e<"u"&&!!e&&e.CLOSING===2},un={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0,startClosed:!1,debug:!1},n0=function(){function e(t,n,r){var o=this;r===void 0&&(r={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(i){o._debug("open event");var l=o._options.minUptime,s=l===void 0?un.minUptime:l;clearTimeout(o._connectTimeout),o._uptimeTimeout=setTimeout(function(){return o._acceptOpen()},s),o._ws.binaryType=o._binaryType,o._messageQueue.forEach(function(a){return o._ws.send(a)}),o._messageQueue=[],o.onopen&&o.onopen(i),o._listeners.open.forEach(function(a){return o._callEventListener(i,a)})},this._handleMessage=function(i){o._debug("message event"),o.onmessage&&o.onmessage(i),o._listeners.message.forEach(function(l){return o._callEventListener(i,l)})},this._handleError=function(i){o._debug("error event",i.message),o._disconnect(void 0,i.message==="TIMEOUT"?"timeout":void 0),o.onerror&&o.onerror(i),o._debug("exec error listeners"),o._listeners.error.forEach(function(l){return o._callEventListener(i,l)}),o._connect()},this._handleClose=function(i){o._debug("close event"),o._clearTimeouts(),o._shouldReconnect&&o._connect(),o.onclose&&o.onclose(i),o._listeners.close.forEach(function(l){return o._callEventListener(i,l)})},this._url=t,this._protocols=n,this._options=r,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(e,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CONNECTING",{get:function(){return e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OPEN",{get:function(){return e.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSING",{get:function(){return e.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSED",{get:function(){return e.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(t){this._binaryType=t,this._ws&&(this._ws.binaryType=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bufferedAmount",{get:function(){var t=this._messageQueue.reduce(function(n,r){return typeof r=="string"?n+=r.length:r instanceof Blob?n+=r.size:n+=r.byteLength,n},0);return t+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?e.CLOSED:e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),e.prototype.close=function(t,n){if(t===void 0&&(t=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(t,n)},e.prototype.reconnect=function(t,n){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(t,n),this._connect())},e.prototype.send=function(t){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",t),this._ws.send(t);else{var n=this._options.maxEnqueuedMessages,r=n===void 0?un.maxEnqueuedMessages:n;this._messageQueue.length<r&&(this._debug("enqueue",t),this._messageQueue.push(t))}},e.prototype.addEventListener=function(t,n){this._listeners[t]&&this._listeners[t].push(n)},e.prototype.dispatchEvent=function(t){var n,r,o=this._listeners[t.type];if(o)try{for(var i=Xh(o),l=i.next();!l.done;l=i.next()){var s=l.value;this._callEventListener(t,s)}}catch(a){n={error:a}}finally{try{l&&!l.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0},e.prototype.removeEventListener=function(t,n){this._listeners[t]&&(this._listeners[t]=this._listeners[t].filter(function(r){return r!==n}))},e.prototype._debug=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._options.debug&&console.log.apply(console,Kh(["RWS>"],t))},e.prototype._getNextDelay=function(){var t=this._options,n=t.reconnectionDelayGrowFactor,r=n===void 0?un.reconnectionDelayGrowFactor:n,o=t.minReconnectionDelay,i=o===void 0?un.minReconnectionDelay:o,l=t.maxReconnectionDelay,s=l===void 0?un.maxReconnectionDelay:l,a=0;return this._retryCount>0&&(a=i*Math.pow(r,this._retryCount-1),a>s&&(a=s)),this._debug("next delay",a),a},e.prototype._wait=function(){var t=this;return new Promise(function(n){setTimeout(n,t._getNextDelay())})},e.prototype._getNextUrl=function(t){if(typeof t=="string")return Promise.resolve(t);if(typeof t=="function"){var n=t();if(typeof n=="string")return Promise.resolve(n);if(n.then)return n}throw Error("Invalid URL")},e.prototype._connect=function(){var t=this;if(!(this._connectLock||!this._shouldReconnect)){this._connectLock=!0;var n=this._options,r=n.maxRetries,o=r===void 0?un.maxRetries:r,i=n.connectionTimeout,l=i===void 0?un.connectionTimeout:i,s=n.WebSocket,a=s===void 0?e0():s;if(this._retryCount>=o){this._debug("max retries reached",this._retryCount,">=",o);return}if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),!t0(a))throw Error("No valid WebSocket class provided");this._wait().then(function(){return t._getNextUrl(t._url)}).then(function(u){t._closeCalled||(t._debug("connect",{url:u,protocols:t._protocols}),t._ws=t._protocols?new a(u,t._protocols):new a(u),t._ws.binaryType=t._binaryType,t._connectLock=!1,t._addListeners(),t._connectTimeout=setTimeout(function(){return t._handleTimeout()},l))})}},e.prototype._handleTimeout=function(){this._debug("timeout event"),this._handleError(new qh(Error("TIMEOUT"),this))},e.prototype._disconnect=function(t,n){if(t===void 0&&(t=1e3),this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(t,n),this._handleClose(new Jh(t,n,this))}catch{}}},e.prototype._acceptOpen=function(){this._debug("accept open"),this._retryCount=0},e.prototype._callEventListener=function(t,n){"handleEvent"in n?n.handleEvent(t):n(t)},e.prototype._removeListeners=function(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))},e.prototype._addListeners=function(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))},e.prototype._clearTimeouts=function(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)},e}();function J(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function cn(e){return function t(n){return arguments.length===0||J(n)?t:e.apply(this,arguments)}}function Zn(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return J(n)?t:cn(function(o){return e(n,o)});default:return J(n)&&J(r)?t:J(n)?cn(function(o){return e(o,r)}):J(r)?cn(function(o){return e(n,o)}):e(n,r)}}}function r0(e,t){e=e||[],t=t||[];var n,r=e.length,o=t.length,i=[];for(n=0;n<r;)i[i.length]=e[n],n+=1;for(n=0;n<o;)i[i.length]=t[n],n+=1;return i}function o0(e){return function t(n,r,o){switch(arguments.length){case 0:return t;case 1:return J(n)?t:Zn(function(i,l){return e(n,i,l)});case 2:return J(n)&&J(r)?t:J(n)?Zn(function(i,l){return e(i,r,l)}):J(r)?Zn(function(i,l){return e(n,i,l)}):cn(function(i){return e(n,r,i)});default:return J(n)&&J(r)&&J(o)?t:J(n)&&J(r)?Zn(function(i,l){return e(i,l,o)}):J(n)&&J(o)?Zn(function(i,l){return e(i,r,l)}):J(r)&&J(o)?Zn(function(i,l){return e(n,i,l)}):J(n)?cn(function(i){return e(i,r,o)}):J(r)?cn(function(i){return e(n,i,o)}):J(o)?cn(function(i){return e(n,r,i)}):e(n,r,o)}}}var Fd=o0(function(t,n,r){var o=r.length;if(t>=o||t<-o)return r;var i=(o+t)%o,l=r0(r);return l[i]=n(r[i]),l});let pi;const i0=new Uint8Array(16);function l0(){if(!pi&&(pi=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!pi))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return pi(i0)}const me=[];for(let e=0;e<256;++e)me.push((e+256).toString(16).slice(1));function s0(e,t=0){return me[e[t+0]]+me[e[t+1]]+me[e[t+2]]+me[e[t+3]]+"-"+me[e[t+4]]+me[e[t+5]]+"-"+me[e[t+6]]+me[e[t+7]]+"-"+me[e[t+8]]+me[e[t+9]]+"-"+me[e[t+10]]+me[e[t+11]]+me[e[t+12]]+me[e[t+13]]+me[e[t+14]]+me[e[t+15]]}const Ud={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Zd(e,t,n){if(Ud.randomUUID&&!t&&!e)return Ud.randomUUID();e=e||{};const r=e.random||(e.rng||l0)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,s0(r)}var a0="@nlxai/chat-core",u0="1.0.4",c0="NLX Chat SDK core",d0="module",f0="lib/index.cjs",p0="lib/index.esm.js",h0="lib/index.umd.js",m0="lib/index.d.ts",g0={".":{types:"./lib/index.d.ts",import:"./lib/index.esm.js",require:"./lib/index.cjs"}},y0={build:"rm -rf lib && rollup -c --configPlugin typescript",docs:"rm -rf docs/ && typedoc && concat-md --decrease-title-levels --dir-name-as-title docs/ > docs/index.md","lint:check":"eslint src/ --ext .ts,.tsx,.js,.jsx --max-warnings 0",lint:"eslint src/ --ext .ts,.tsx,.js,.jsx --fix",prepublish:"npm run build","preview-docs":"npm run docs && comrak --unsafe --gfm -o docs/index.html docs/index.md && open docs/index.html","publish-docs":"npm run docs && mv docs/index.md ../website/src/content/headless-api-reference.md",test:"typedoc --emit none",tsc:"tsc"},v0="Peter Szerzo <peter@nlx.ai>",w0="MIT",x0={"@types/isomorphic-fetch":"^0.0.36","@types/node":"^22.10.1","@types/ramda":"0.29.1","@types/uuid":"^9.0.7","concat-md":"^0.5.1","eslint-config-nlx":"*",prettier:"^3.1.0","rollup-config-nlx":"*",typedoc:"^0.25.13","typedoc-plugin-markdown":"^3.17.1",typescript:"^5.5.4"},k0={"isomorphic-fetch":"^3.0.0",ramda:"^0.29.1","reconnecting-websocket":"^4.4.0",uuid:"^9.0.1"},C0={access:"public"},b0="27ff05880575d5e4656c5d22dd85d29e9490d9d2",S0={name:a0,version:u0,description:c0,type:d0,main:f0,module:p0,browser:h0,types:m0,exports:g0,scripts:y0,author:v0,license:w0,devDependencies:x0,dependencies:k0,publishConfig:C0,gitHead:b0};const Vs=console,_0="NLX.Welcome",E0="We encountered an issue. Please try again soon.",Wd=e=>Array.isArray(e)?e:Object.entries(e).map(([t,n])=>({slotId:t,value:n})),Qd=e=>({...e,slots:e.slots!=null?Wd(e.slots):e.slots}),Yd=e=>e.responses,L0=e=>{try{return JSON.parse(e)}catch{return null}},j0=e=>(e.applicationUrl??e.botUrl??"").length>0;function T0(e){let t;const n=e.applicationUrl??e.botUrl??"";/[-|_][a-z]{2,}[-|_][A-Z]{2,}$/.test(n)&&Vs.warn("Since v1.0.0, the language code is no longer added at the end of the application URL. Please remove the modifier (e.g. '-en-US') from the URL, and specify it in the `languageCode` parameter instead.");const r=e.conversationId??Zd();let o={responses:e.responses??[],languageCode:e.languageCode,userId:e.userId,conversationId:r};const i=(w,k)=>{o={...o,...w},y.forEach(C=>{C(Yd(o),k)})},l=()=>{const w={type:"failure",receivedAt:new Date().getTime(),payload:{text:e.failureMessage??E0}};i({responses:[...o.responses,w]},w)},s=w=>{if((w==null?void 0:w.messages.length)>0){const k={type:"bot",receivedAt:new Date().getTime(),payload:{...w,messages:w.messages.map(C=>({nodeId:C.nodeId,messageId:C.messageId,text:C.text,choices:C.choices??[]}))}};i({responses:[...o.responses,k]},k),w.metadata.hasPendingDataRequest&&(E({poll:!0}),setTimeout(()=>{f({request:{structured:{poll:!0}}})},1500))}else Vs.warn("Invalid message structure, expected object with field 'messages'."),l()};let a,u=[],c=null;const f=async w=>{var C,P;if(a!=null){a(w,T=>{const D={type:"bot",receivedAt:new Date().getTime(),payload:T};i({responses:[...o.responses,D]},D)});return}const k={userId:o.userId,conversationId:o.conversationId,...w,languageCode:o.languageCode,channelType:(C=e.experimental)==null?void 0:C.channelType,environment:e.environment};h()?(t==null?void 0:t.readyState)===1?t.send(JSON.stringify(k)):u=[...u,k]:await Yh(`${n}${((P=e.experimental)==null?void 0:P.completeBotUrl)===!0?"":`-${o.languageCode}`}`,{method:"POST",headers:{...e.headers??{},Accept:"application/json","Content-Type":"application/json","nlx-sdk-version":S0.version},body:JSON.stringify(k)}).then(async T=>await T.json()).then(s).catch(T=>{Vs.warn(T),l()})},h=()=>n.indexOf("wss://")===0;let y=[];const x=()=>{var k;const w=new URL(n);((k=e.experimental)==null?void 0:k.completeBotUrl)!==!0&&(w.searchParams.set("languageCode",o.languageCode),w.searchParams.set("channelKey",`${w.searchParams.get("channelKey")??""}-${o.languageCode}`)),w.searchParams.set("conversationId",o.conversationId),t=new n0(w.href),c=setInterval(()=>{},500),t.onmessage=function(C){typeof(C==null?void 0:C.data)=="string"&&s(L0(C.data))}},v=()=>{c!=null&&clearInterval(c),t!=null&&(t.onmessage=null,t.close(),t=void 0)};h()&&x();const E=(w,k)=>{const C={type:"user",receivedAt:new Date().getTime(),payload:{type:"structured",...Qd(w),context:k}};i({responses:[...o.responses,C]},C)},m=(w,k)=>{E({intentId:w},k),f({context:k,request:{structured:{intentId:w}}})},d=(w,k)=>{const C={type:"user",receivedAt:new Date().getTime(),payload:{type:"text",text:w,context:k}};i({responses:[...o.responses,C]},C),f({context:k,request:{unstructured:{text:w}}})},g=(w,k,C)=>{let P=[...o.responses];const T={type:"user",receivedAt:new Date().getTime(),payload:{type:"choice",choiceId:w}},D=(C==null?void 0:C.responseIndex)??-1,ne=(C==null?void 0:C.messageIndex)??-1;D>-1&&ne>-1&&(P=Fd(D,Y=>Y.type==="bot"?{...Y,payload:{...Y.payload,messages:Fd(ne,ce=>({...ce,selectedChoiceId:w}),Y.payload.messages)}}:Y,P)),P=[...P,T],i({responses:P},T),f({context:k,request:{structured:{nodeId:C==null?void 0:C.nodeId,intentId:C==null?void 0:C.intentId,choiceId:w}}})},b=w=>{y=y.filter(k=>k!==w)};return{sendText:d,sendStructured:(w,k)=>{E(w,k),f({context:k,request:{structured:Qd(w)}})},sendSlots:(w,k)=>{E({slots:w},k),f({context:k,request:{structured:{slots:Wd(w)}}})},sendIntent:m,sendWelcomeIntent:w=>{m(_0,w)},sendChoice:g,currentConversationId:()=>o.conversationId,setLanguageCode:w=>{if(w===o.languageCode){console.warn("Attempted to set language code to the one already active.");return}h()&&(v(),x()),i({languageCode:w})},currentLanguageCode:()=>o.languageCode,subscribe:w=>(y=[...y,w],w(Yd(o)),()=>{b(w)}),unsubscribe:b,unsubscribeAll:()=>{y=[]},reset:w=>{i({conversationId:Zd(),responses:(w==null?void 0:w.clearResponses)===!0?[]:o.responses}),h()&&(v(),x())},destroy:()=>{y=[],h()&&v()},setBotRequestOverride:w=>{a=w}}}function Xd(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Xd(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function U(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Xd(e))&&(r&&(r+=" "),r+=t);return r}function Wn(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function Fs(e){return function t(n){return arguments.length===0||Wn(n)?t:e.apply(this,arguments)}}function P0(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return Wn(n)?t:Fs(function(o){return e(n,o)});default:return Wn(n)&&Wn(r)?t:Wn(n)?Fs(function(o){return e(o,r)}):Wn(r)?Fs(function(o){return e(n,o)}):e(n,r)}}}const R0=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function z0(e){return e!=null&&typeof e["@@transducer/step"]=="function"}function M0(e,t,n){return function(){if(arguments.length===0)return n();var r=arguments[arguments.length-1];if(!R0(r)){for(var o=0;o<e.length;){if(typeof r[e[o]]=="function")return r[e[o]].apply(r,Array.prototype.slice.call(arguments,0,-1));o+=1}if(z0(r)){var i=t.apply(null,Array.prototype.slice.call(arguments,0,-1));return i(r)}}return n.apply(this,arguments)}}const N0={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}};var O0=function(){function e(t,n){this.xf=n,this.f=t,this.idx=-1,this.lastIdx=-1}return e.prototype["@@transducer/init"]=N0.init,e.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.lastIdx))},e.prototype["@@transducer/step"]=function(t,n){return this.idx+=1,this.f(n)&&(this.lastIdx=this.idx),t},e}();function I0(e){return function(t){return new O0(e,t)}}var Gd=P0(M0([],I0,function(t,n){for(var r=n.length-1;r>=0;){if(t(n[r]))return r;r-=1}return-1}));const N=e=>({width:e.size!=null?`${e.size}px`:"100%",height:e.size!=null?`${e.size}px`:"100%",className:e.className}),$0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M11 21H10L11 14H7.5C6.92 14 6.93 13.68 7.12 13.34C7.31 13 7.17 13.26 7.19 13.22C8.48 10.94 10.42 7.54 13 3H14L13 10H16.5C16.99 10 17.06 10.33 16.97 10.51L16.9 10.66C12.96 17.55 11 21 11 21Z",fill:"currentColor"})}),Us=e=>p.jsxs("svg",{viewBox:"0 0 24 24",...N(e),children:[p.jsx("path",{d:"M13.5562 5.34835C12.2796 6.62498 12.4866 8.90179 14.0186 10.4337C14.3377 10.7529 14.5571 11.134 14.6767 11.5383C14.8007 11.9572 14.8177 12.4011 14.7277 12.8268C14.6656 13.1203 14.5526 13.4051 14.3887 13.6672C14.3259 13.7677 14.2557 13.865 14.1778 13.9581C14.1279 14.018 14.0747 14.0761 14.0186 14.1322C13.3341 14.8166 12.3641 15.0421 11.4917 14.8092L11.4728 14.8042C9.38654 14.2543 7.32235 15.2129 6.85652 16.9516C6.5761 17.9979 5.50065 18.6188 4.45431 18.3385C3.40798 18.0581 2.787 16.9826 3.06729 15.9363C3.34209 14.9111 4.38012 14.2942 5.40615 14.5335L5.40666 14.5317C5.42748 14.5378 5.44842 14.5437 5.46962 14.5493C7.21342 15.0166 9.08173 13.699 9.64244 11.6062C9.64857 11.5835 9.65521 11.5608 9.66185 11.5383C9.7815 11.134 10.0009 10.7529 10.32 10.4337L10.332 10.4214C10.339 10.4142 10.346 10.407 10.3533 10.4C11.8549 8.86865 12.0496 6.61566 10.7824 5.34835C10.0163 4.58237 10.0163 3.34047 10.7824 2.57449C11.5483 1.8085 12.7903 1.8085 13.5562 2.57449C14.3066 3.32501 14.3218 4.53237 13.6016 5.30135L13.6029 5.30263C13.5872 5.3177 13.5716 5.33289 13.5562 5.34835Z",fill:"currentColor"}),p.jsx("path",{d:"M19.327 6.83185C20.0311 6.83185 20.6019 7.40264 20.6019 8.10675C20.6019 8.81087 20.0311 9.38166 19.327 9.38166C18.6229 9.38166 18.0521 8.81087 18.0521 8.10675C18.0521 7.40264 18.6229 6.83185 19.327 6.83185Z",fill:"currentColor"}),p.jsx("path",{d:"M21.3237 16.4754C21.3237 15.3741 20.4309 14.4813 19.3297 14.4813C18.2284 14.4813 17.3356 15.3741 17.3356 16.4754C17.3356 17.5767 18.2284 18.4695 19.3297 18.4695C20.4309 18.4695 21.3237 17.5767 21.3237 16.4754Z",fill:"currentColor"}),p.jsx("path",{d:"M12.1025 19.3194C12.8246 19.3194 13.4101 19.9195 13.4101 20.6597C13.4101 21.4 12.8246 22 12.1025 22C11.3804 22 10.7949 21.4 10.7949 20.6597C10.7949 19.9195 11.3804 19.3194 12.1025 19.3194Z",fill:"currentColor"}),p.jsx("path",{d:"M6.28367 8.13944C6.28367 7.41726 5.68363 6.83185 4.94339 6.83185C4.20314 6.83185 3.6031 7.41726 3.6031 8.13944C3.6031 8.86163 4.20314 9.44704 4.94339 9.44704C5.68363 9.44704 6.28367 8.86163 6.28367 8.13944Z",fill:"currentColor"})]}),D0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M6 13C5.45 13 5 13.45 5 14C5 14.55 5.45 15 6 15C6.55 15 7 14.55 7 14C7 13.45 6.55 13 6 13ZM6 17C5.45 17 5 17.45 5 18C5 18.55 5.45 19 6 19C6.55 19 7 18.55 7 18C7 17.45 6.55 17 6 17ZM6 9C5.45 9 5 9.45 5 10C5 10.55 5.45 11 6 11C6.55 11 7 10.55 7 10C7 9.45 6.55 9 6 9ZM3 9.5C2.72 9.5 2.5 9.72 2.5 10C2.5 10.28 2.72 10.5 3 10.5C3.28 10.5 3.5 10.28 3.5 10C3.5 9.72 3.28 9.5 3 9.5ZM6 5C5.45 5 5 5.45 5 6C5 6.55 5.45 7 6 7C6.55 7 7 6.55 7 6C7 5.45 6.55 5 6 5ZM21 10.5C21.28 10.5 21.5 10.28 21.5 10C21.5 9.72 21.28 9.5 21 9.5C20.72 9.5 20.5 9.72 20.5 10C20.5 10.28 20.72 10.5 21 10.5ZM14 7C14.55 7 15 6.55 15 6C15 5.45 14.55 5 14 5C13.45 5 13 5.45 13 6C13 6.55 13.45 7 14 7ZM14 3.5C14.28 3.5 14.5 3.28 14.5 3C14.5 2.72 14.28 2.5 14 2.5C13.72 2.5 13.5 2.72 13.5 3C13.5 3.28 13.72 3.5 14 3.5ZM3 13.5C2.72 13.5 2.5 13.72 2.5 14C2.5 14.28 2.72 14.5 3 14.5C3.28 14.5 3.5 14.28 3.5 14C3.5 13.72 3.28 13.5 3 13.5ZM10 20.5C9.72 20.5 9.5 20.72 9.5 21C9.5 21.28 9.72 21.5 10 21.5C10.28 21.5 10.5 21.28 10.5 21C10.5 20.72 10.28 20.5 10 20.5ZM10 3.5C10.28 3.5 10.5 3.28 10.5 3C10.5 2.72 10.28 2.5 10 2.5C9.72 2.5 9.5 2.72 9.5 3C9.5 3.28 9.72 3.5 10 3.5ZM10 7C10.55 7 11 6.55 11 6C11 5.45 10.55 5 10 5C9.45 5 9 5.45 9 6C9 6.55 9.45 7 10 7ZM10 12.5C9.17 12.5 8.5 13.17 8.5 14C8.5 14.83 9.17 15.5 10 15.5C10.83 15.5 11.5 14.83 11.5 14C11.5 13.17 10.83 12.5 10 12.5ZM18 13C17.45 13 17 13.45 17 14C17 14.55 17.45 15 18 15C18.55 15 19 14.55 19 14C19 13.45 18.55 13 18 13ZM18 17C17.45 17 17 17.45 17 18C17 18.55 17.45 19 18 19C18.55 19 19 18.55 19 18C19 17.45 18.55 17 18 17ZM18 9C17.45 9 17 9.45 17 10C17 10.55 17.45 11 18 11C18.55 11 19 10.55 19 10C19 9.45 18.55 9 18 9ZM18 5C17.45 5 17 5.45 17 6C17 6.55 17.45 7 18 7C18.55 7 19 6.55 19 6C19 5.45 18.55 5 18 5ZM21 13.5C20.72 13.5 20.5 13.72 20.5 14C20.5 14.28 20.72 14.5 21 14.5C21.28 14.5 21.5 14.28 21.5 14C21.5 13.72 21.28 13.5 21 13.5ZM14 17C13.45 17 13 17.45 13 18C13 18.55 13.45 19 14 19C14.55 19 15 18.55 15 18C15 17.45 14.55 17 14 17ZM14 20.5C13.72 20.5 13.5 20.72 13.5 21C13.5 21.28 13.72 21.5 14 21.5C14.28 21.5 14.5 21.28 14.5 21C14.5 20.72 14.28 20.5 14 20.5ZM10 8.5C9.17 8.5 8.5 9.17 8.5 10C8.5 10.83 9.17 11.5 10 11.5C10.83 11.5 11.5 10.83 11.5 10C11.5 9.17 10.83 8.5 10 8.5ZM10 17C9.45 17 9 17.45 9 18C9 18.55 9.45 19 10 19C10.55 19 11 18.55 11 18C11 17.45 10.55 17 10 17ZM14 12.5C13.17 12.5 12.5 13.17 12.5 14C12.5 14.83 13.17 15.5 14 15.5C14.83 15.5 15.5 14.83 15.5 14C15.5 13.17 14.83 12.5 14 12.5ZM14 8.5C13.17 8.5 12.5 9.17 12.5 10C12.5 10.83 13.17 11.5 14 11.5C14.83 11.5 15.5 10.83 15.5 10C15.5 9.17 14.83 8.5 14 8.5Z",fill:"currentColor"})}),H0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M19 13H13V19H11V13H5V11H11V5H13V11H19V13Z",fill:"currentColor"})}),A0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M12 15.41L6 9.40997L7.41 7.99997L12 12.58L16.59 7.99997L18 9.40997L12 15.41Z",fill:"currentColor"})}),B0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M7.59001 12L13.59 18L15 16.59L10.42 12L15 7.41002L13.59 6.00002L7.59001 12Z",fill:"currentColor"})}),V0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M15 12L9.00005 18L7.59005 16.59L12.17 12L7.59005 7.41002L9.00005 6.00002L15 12Z",fill:"currentColor"})}),F0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M12 8L6 14L7.41 15.41L12 10.83L16.59 15.41L18 14L12 8Z",fill:"currentColor"})}),hi=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M12 4L10.59 5.41L16.17 11H4V13H16.17L10.59 18.59L12 20L20 12L12 4Z",fill:"currentColor"})}),Zs=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M18.5 16H7C4.79 16 3 14.21 3 12C3 9.79 4.79 8 7 8H19.5C20.88 8 22 9.12 22 10.5C22 11.88 20.88 13 19.5 13H9C8.45 13 8 12.55 8 12C8 11.45 8.45 11 9 11H18.5V9.5H9C7.62 9.5 6.5 10.62 6.5 12C6.5 13.38 7.62 14.5 9 14.5H19.5C21.71 14.5 23.5 12.71 23.5 10.5C23.5 8.29 21.71 6.5 19.5 6.5H7C3.96 6.5 1.5 8.96 1.5 12C1.5 15.04 3.96 17.5 7 17.5H18.5V16Z",fill:"currentColor"})}),U0=e=>p.jsxs("svg",{viewBox:"0 0 24 24",...N(e),children:[p.jsx("path",{d:"M12 15.2C13.7673 15.2 15.2 13.7673 15.2 12C15.2 10.2327 13.7673 8.8 12 8.8C10.2327 8.8 8.8 10.2327 8.8 12C8.8 13.7673 10.2327 15.2 12 15.2Z",fill:"currentColor"}),p.jsx("path",{d:"M9 2L7.17 4H4C2.9 4 2 4.9 2 6V18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V6C22 4.9 21.1 4 20 4H16.83L15 2H9ZM12 17C9.24 17 7 14.76 7 12C7 9.24 9.24 7 12 7C14.76 7 17 9.24 17 12C17 14.76 14.76 17 12 17Z",fill:"currentColor"})]}),Kd=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M8.99991 16.17L4.82991 12L3.40991 13.41L8.99991 19L20.9999 7L19.5899 5.59L8.99991 16.17Z",fill:"currentColor"})}),qd=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",fill:"currentColor"})}),Z0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M16 1H4C2.9 1 2 1.9 2 3V17H4V3H16V1ZM19 5H8C6.9 5 6 5.9 6 7V21C6 22.1 6.9 23 8 23H19C20.1 23 21 22.1 21 21V7C21 5.9 20.1 5 19 5ZM19 21H8V7H19V21Z",fill:"currentColor"})}),Jd=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M19 4H18V2H16V4H8V2H6V4H5C3.89 4 3.01 4.9 3.01 6L3 20C3 21.1 3.89 22 5 22H19C20.1 22 21 21.1 21 20V6C21 4.9 20.1 4 19 4ZM19 20H5V9H19V20Z",fill:"currentColor"})}),ef=e=>p.jsxs("svg",{viewBox:"0 0 24 24",...N(e),children:[p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 21C6.9 21 6 20.1 6 19V7H18V19C18 20.1 17.1 21 16 21H8ZM9.33337 9H8V19H9.33337V9ZM11.3334 9V19H12.6666V9H11.3334ZM16 19H14.6666V9H16V19Z",fill:"currentColor"}),p.jsx("path",{d:"M15.5 4H19V6H5V4H8.5L9.5 3H14.5L15.5 4Z",fill:"currentColor"})]}),tf=e=>p.jsxs("svg",{viewBox:"0 0 24 24",...N(e),children:[p.jsx("path",{d:"M21 12.22C21 6.73 16.74 3 12 3C7.31 3 3 6.65 3 12.28C2.4 12.62 2 13.26 2 14V16C2 17.1 2.9 18 4 18H5V11.9C5 8.03 8.13 4.9 12 4.9C15.87 4.9 19 8.03 19 11.9V19H11V21H19C20.1 21 21 20.1 21 19V17.78C21.59 17.47 22 16.86 22 16.14V13.84C22 13.14 21.59 12.53 21 12.22Z",fill:"currentColor"}),p.jsx("path",{d:"M9 14C9.55228 14 10 13.5523 10 13C10 12.4477 9.55228 12 9 12C8.44772 12 8 12.4477 8 13C8 13.5523 8.44772 14 9 14Z",fill:"currentColor"}),p.jsx("path",{d:"M15 14C15.5523 14 16 13.5523 16 13C16 12.4477 15.5523 12 15 12C14.4477 12 14 12.4477 14 13C14 13.5523 14.4477 14 15 14Z",fill:"currentColor"}),p.jsx("path",{d:"M18 11.03C17.52 8.18 15.04 6 12.05 6C9.02 6 5.76 8.51 6.02 12.45C8.49 11.44 10.35 9.24 10.88 6.56C12.19 9.19 14.88 11 18 11.03Z",fill:"currentColor"})]}),Ws=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM13 17H11V15H13V17ZM13 13H11V7H13V13Z",fill:"currentColor"})}),W0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M7 14H5V19H10V17H7V14ZM5 10H7V7H10V5H5V10ZM17 17H14V19H19V14H17V17ZM14 5V7H17V10H19V5H14Z",fill:"currentColor"})}),Q0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M12 15C13.66 15 14.99 13.66 14.99 12L15 6C15 4.34 13.66 3 12 3C10.34 3 9 4.34 9 6V12C9 13.66 10.34 15 12 15ZM17.3 12C17.3 15 14.76 17.1 12 17.1C9.24 17.1 6.7 15 6.7 12H5C5 15.42 7.72 18.23 11 18.72V22H13V18.72C16.28 18.24 19 15.42 19 12H17.3Z",fill:"currentColor"})}),Y0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M19 11H17.3C17.3 11.74 17.14 12.43 16.87 13.05L18.1 14.28C18.66 13.3 19 12.19 19 11ZM14.98 11.17C14.98 11.11 15 11.06 15 11V5C15 3.34 13.66 2 12 2C10.34 2 9 3.34 9 5V5.18L14.98 11.17ZM4.27 3L3 4.27L9.01 10.28V11C9.01 12.66 10.34 14 12 14C12.22 14 12.44 13.97 12.65 13.92L14.31 15.58C13.6 15.91 12.81 16.1 12 16.1C9.24 16.1 6.7 14 6.7 11H5C5 14.41 7.72 17.23 11 17.72V21H13V17.72C13.91 17.59 14.77 17.27 15.54 16.82L19.73 21L21 19.73L4.27 3Z",fill:"currentColor"})}),X0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9C5 14.25 12 22 12 22C12 22 19 14.25 19 9C19 5.13 15.87 2 12 2ZM12 11.5C10.62 11.5 9.5 10.38 9.5 9C9.5 7.62 10.62 6.5 12 6.5C13.38 6.5 14.5 7.62 14.5 9C14.5 10.38 13.38 11.5 12 11.5Z",fill:"currentColor"})}),G0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M3 9.99999V14C3 14.55 3.45 15 4 15H7L10.29 18.29C10.92 18.92 12 18.47 12 17.58V6.40999C12 5.51999 10.92 5.06999 10.29 5.69999L7 8.99999H4C3.45 8.99999 3 9.44999 3 9.99999ZM16.5 12C16.5 10.23 15.48 8.70999 14 7.96999V16.02C15.48 15.29 16.5 13.77 16.5 12ZM14 4.44999V4.64999C14 5.02999 14.25 5.35999 14.6 5.49999C17.18 6.52999 19 9.05999 19 12C19 14.94 17.18 17.47 14.6 18.5C14.24 18.64 14 18.97 14 19.35V19.55C14 20.18 14.63 20.62 15.21 20.4C18.6 19.11 21 15.84 21 12C21 8.15999 18.6 4.88999 15.21 3.59999C14.63 3.36999 14 3.81999 14 4.44999Z",fill:"currentColor"})}),K0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M16.5 12C16.5 10.23 15.48 8.71 14 7.97V10.18L16.45 12.63C16.48 12.43 16.5 12.22 16.5 12ZM19 12C19 12.94 18.8 13.82 18.46 14.64L19.97 16.15C20.63 14.91 21 13.5 21 12C21 7.72 18.01 4.14 14 3.23V5.29C16.89 6.15 19 8.83 19 12ZM4.27 3L3 4.27L7.73 9H3V15H7L12 20V13.27L16.25 17.52C15.58 18.04 14.83 18.45 14 18.7V20.76C15.38 20.45 16.63 19.81 17.69 18.95L19.73 21L21 19.73L12 10.73L4.27 3ZM12 4L9.91 6.09L12 8.18V4Z",fill:"currentColor"})}),q0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M12.87 15.07L10.33 12.56L10.36 12.53C12.1 10.59 13.34 8.36 14.07 6H17V4H10V2H8V4H1V5.99H12.17C11.5 7.92 10.44 9.75 9 11.35C8.07 10.32 7.3 9.19 6.69 8H4.69C5.42 9.63 6.42 11.17 7.67 12.56L2.58 17.58L4 19L9 14L12.11 17.11L12.87 15.07ZM18.5 10H16.5L12 22H14L15.12 19H19.87L21 22H23L18.5 10ZM15.88 17L17.5 12.67L19.12 17H15.88Z",fill:"currentColor"})}),J0=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M19 19H5V5H12V3H5C3.89 3 3 3.9 3 5V19C3 20.1 3.89 21 5 21H19C20.1 21 21 20.1 21 19V12H19V19ZM14 3V5H17.59L7.76 14.83L9.17 16.24L19 6.41V10H21V3H14Z",fill:"currentColor"})}),em=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M8 5V19L19 12L8 5Z",fill:"currentColor"})}),tm=e=>p.jsxs("svg",{viewBox:"0 0 24 24",...N(e),children:[p.jsx("path",{d:"M13 14.5C13 15.3284 12.3284 16 11.5 16C10.6716 16 10 15.3284 10 14.5C10 13.6716 10.6716 13 11.5 13C12.3284 13 13 13.6716 13 14.5Z",fill:"currentColor"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 2H14L20 8V20C20 21.1 19.1 22 18 22H5.99C4.89 22 4 21.1 4 20V4C4 2.9 4.9 2 6 2ZM13.16 17.57L15.04 19.45L16.45 18.04L14.57 16.16C15.29 14.83 15.1 13.15 13.98 12.03C12.61 10.66 10.4 10.66 9.03 12.03C7.66 13.4 7.66 15.61 9.03 16.98C10.15 18.1 11.83 18.28 13.16 17.57ZM13 3.5V9H18.5L13 3.5Z",fill:"currentColor"})]}),nm=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M3 15H21V13H3V15ZM3 19H21V17H3V19ZM3 11H21V9H3V11ZM3 5V7H21V5H3Z",fill:"currentColor"})}),nf=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M10 3C14.97 3 19 7.03 19 12H22L18.11 15.89L18.04 16.03L14 12H17C17 8.13 13.87 5 10 5C6.13 5 3 8.13 3 12C3 15.87 6.13 19 10 19V21C5.03 21 1 16.97 1 12C1 7.03 5.03 3 10 3Z",fill:"currentColor"})}),rf=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M19.1064 12.9302C19.1459 12.6333 19.1657 12.3266 19.1657 12C19.1657 11.6833 19.1459 11.3667 19.0965 11.0698L21.1053 9.50625C21.2834 9.36771 21.3329 9.10052 21.2241 8.9026L19.3241 5.61719C19.2053 5.39948 18.9579 5.33021 18.7402 5.39948L16.3751 6.34948C15.8803 5.97344 15.3558 5.65677 14.772 5.41927L14.4157 2.90573C14.3761 2.66823 14.1782 2.5 13.9407 2.5H10.1407C9.90323 2.5 9.71521 2.66823 9.67563 2.90573L9.31938 5.41927C8.73552 5.65677 8.20115 5.98333 7.71625 6.34948L5.35115 5.39948C5.13344 5.32031 4.88604 5.39948 4.7673 5.61719L2.87719 8.9026C2.75844 9.11042 2.79802 9.36771 2.99594 9.50625L5.00479 11.0698C4.95532 11.3667 4.91573 11.6932 4.91573 12C4.91573 12.3068 4.93552 12.6333 4.985 12.9302L2.97615 14.4938C2.79802 14.6323 2.74855 14.8995 2.8574 15.0974L4.7574 18.3828C4.87615 18.6005 5.12354 18.6698 5.34125 18.6005L7.70636 17.6505C8.20115 18.0266 8.72563 18.3432 9.30948 18.5807L9.66573 21.0943C9.71521 21.3318 9.90323 21.5 10.1407 21.5H13.9407C14.1782 21.5 14.3761 21.3318 14.4058 21.0943L14.7621 18.5807C15.3459 18.3432 15.8803 18.0266 16.3652 17.6505L18.7303 18.6005C18.948 18.6797 19.1954 18.6005 19.3142 18.3828L21.2142 15.0974C21.3329 14.8797 21.2834 14.6323 21.0954 14.4938L19.1064 12.9302ZM12.0407 15.5625C10.0814 15.5625 8.47823 13.9594 8.47823 12C8.47823 10.0406 10.0814 8.4375 12.0407 8.4375C14.0001 8.4375 15.6032 10.0406 15.6032 12C15.6032 13.9594 14.0001 15.5625 12.0407 15.5625Z",fill:"currentColor"})}),rm=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M15.5 14H14.71L14.43 13.73C15.41 12.59 16 11.11 16 9.5C16 5.91 13.09 3 9.5 3C5.91 3 3 5.91 3 9.5C3 13.09 5.91 16 9.5 16C11.11 16 12.59 15.41 13.73 14.43L14 14.71V15.5L19 20.49L20.49 19L15.5 14ZM9.5 14C7.01 14 5 11.99 5 9.5C5 7.01 7.01 5 9.5 5C11.99 5 14 7.01 14 9.5C14 11.99 11.99 14 9.5 14Z",fill:"currentColor"})}),om=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M18 16.08C17.24 16.08 16.56 16.38 16.04 16.85L8.91 12.7C8.96 12.47 9 12.24 9 12C9 11.76 8.96 11.53 8.91 11.3L15.96 7.19C16.5 7.69 17.21 8 18 8C19.66 8 21 6.66 21 5C21 3.34 19.66 2 18 2C16.34 2 15 3.34 15 5C15 5.24 15.04 5.47 15.09 5.7L8.04 9.81C7.5 9.31 6.79 9 6 9C4.34 9 3 10.34 3 12C3 13.66 4.34 15 6 15C6.79 15 7.5 14.69 8.04 14.19L15.16 18.35C15.11 18.56 15.08 18.78 15.08 19C15.08 20.61 16.39 21.92 18 21.92C19.61 21.92 20.92 20.61 20.92 19C20.92 17.39 19.61 16.08 18 16.08Z",fill:"currentColor"})}),of=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z",fill:"currentColor"})}),im=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M15 3H6C5.17 3 4.46 3.5 4.16 4.22L1.14 11.27C1.05 11.5 1 11.74 1 12V14C1 15.1 1.9 16 3 16H9.31L8.36 20.57L8.33 20.89C8.33 21.3 8.5 21.68 8.77 21.95L9.83 23L16.42 16.41C16.78 16.05 17 15.55 17 15V5C17 3.9 16.1 3 15 3ZM19 3V15H23V3H19Z",fill:"currentColor"})}),lm=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M1 21H5V9H1V21ZM23 10C23 8.9 22.1 8 21 8H14.69L15.64 3.43L15.67 3.11C15.67 2.7 15.5 2.32 15.23 2.05L14.17 1L7.59 7.59C7.22 7.95 7 8.45 7 9V19C7 20.1 7.9 21 9 21H18C18.83 21 19.54 20.5 19.84 19.78L22.86 12.73C22.95 12.5 23 12.26 23 12V10Z",fill:"currentColor"})}),sm=e=>p.jsxs("svg",{viewBox:"0 0 24 24",...N(e),children:[p.jsx("path",{d:"M11 7H12.5V12.25L17 14.92L16.25 16.15L11 13V7Z",fill:"currentColor"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.47997 6.47 1.99997 11.99 1.99997C17.52 1.99997 22 6.47997 22 12C22 17.52 17.52 22 11.99 22C6.47 22 2 17.52 2 12ZM4 12C4 16.42 7.58 20 12 20C16.42 20 20 16.42 20 12C20 7.57997 16.42 3.99997 12 3.99997C7.58 3.99997 4 7.57997 4 12Z",fill:"currentColor"})]}),lf=e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M13 3C8.03 3 4 7.03 4 12H1L4.89 15.89L4.96 16.03L9 12H6C6 8.13 9.13 5 13 5C16.87 5 20 8.13 20 12C20 15.87 16.87 19 13 19V21C17.97 21 22 16.97 22 12C22 7.03 17.97 3 13 3Z",fill:"currentColor"})}),sf=Object.freeze(Object.defineProperty({__proto__:null,Action:$0,Add:H0,ArrowDown:A0,ArrowForward:hi,ArrowLeft:B0,ArrowRight:V0,ArrowUp:F0,Assistant:Us,AssistantOld:D0,Attachment:Zs,Camera:U0,Check:Kd,Close:qd,Copy:Z0,Date:Jd,Delete:ef,Error:Ws,Escalate:tf,FullScreen:W0,Help:e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M11 18H13V16H11V18ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12 6C9.79 6 8 7.79 8 10H10C10 8.9 10.9 8 12 8C13.1 8 14 8.9 14 10C14 12 11 11.75 11 15H13C13 12.75 16 12.5 16 10C16 7.79 14.21 6 12 6Z",fill:"currentColor"})}),Location:X0,Mic:Q0,MicOff:Y0,OpenInNew:J0,Play:em,Preview:tm,Refresh:e=>p.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:p.jsx("path",{d:"M12 4V1L8 5L12 9V6C15.31 6 18 8.69 18 12C18 13.01 17.75 13.97 17.3 14.8L18.76 16.26C19.54 15.03 20 13.57 20 12C20 7.58 16.42 4 12 4ZM12 18C8.69 18 6 15.31 6 12C6 10.99 6.25 10.03 6.7 9.2L5.24 7.74C4.46 8.97 4 10.43 4 12C4 16.42 7.58 20 12 20V23L16 19L12 15V18Z",fill:"currentColor"})}),Reorder:nm,Restart:nf,Search:rm,Settings:rf,Share:om,ThumbDown:im,ThumbUp:lm,Time:sm,Translate:q0,Undo:lf,Volume:G0,VolumeOff:K0,Warning:of},Symbol.toStringTag,{value:"Module"})),am=e=>p.jsxs("button",{className:U("p-3 w-fit bg-background text-primary-80 rounded-outer","after:content-[''] after:rounded-outer after:absolute after:inset-0 after:pointer-events-none","hover:after:bg-primary-10",e.className),disabled:e.onClick==null,onClick:e.onClick,children:[p.jsx("span",{className:"block flex-none w-8 h-8",children:e.iconUrl==null?p.jsx(Us,{}):p.jsx("img",{src:e.iconUrl,className:"w-8 h-8"})}),e.showLabel??!1?p.jsx("span",{children:e.label}):null]}),um="bg-primary-80 text-secondary-80 enabled:hover:before:bg-primary-80 focus:before:bg-primary-80 enabled:active:before:bg-secondary-10 disabled:bg-primary-10 disabled:text-secondary-40",cm="bg-primary-5 text-primary-80 enabled:hover:before:bg-primary-10 focus:before:bg-primary-10 enabled:active:before:bg-secondary-10 disabled:bg-primary-5 disabled:text-primary-20",dm="bg-accent text-secondary-80 enabled:hover:before:bg-primary-40 focus:before:bg-primary-40 enabled:active:before:bg-secondary-10 disabled:bg-accent-20",fm="bg-secondary-60 backdrop-blur text-primary-80 enabled:hover:before:bg-primary-10 focus:before:bg-primary-10 enabled:active:before:bg-secondary-10 disabled:bg-secondary-20 disabled:text-primary-20",pm="bg-background backdrop-blur text-primary-80 enabled:hover:before:bg-primary-10 focus:before:bg-primary-10 enabled:active:before:bg-secondary-10 disabled:bg-secondary-20 disabled:text-primary-20",xt=({onClick:e,type:t,label:n,className:r,Icon:o})=>{const i=e==null;return p.jsx("button",{onClick:i?void 0:e,disabled:i,"aria-label":n,className:U("p-3 w-10 h-10 transition-colors rounded-inner relative z-10 overflow-hidden before:content-[''] before:absolute before:transition-colors before:-z-10 before:inset-0 before:bg-transparent focus:outline-0",t==="main"?um:null,t==="ghost"?cm:null,t==="activated"?dm:null,t==="coverup"?fm:null,t==="overlay"?pm:null,r),children:p.jsx(o,{})})},hm=typeof globalThis<"u"&&typeof navigator<"u"&&typeof document<"u",Qn=new Map,af=e=>{const t=matchMedia(e),n=new Set,r=()=>{for(const o of n)o(t.matches)};return t.addEventListener("change",r,{passive:!0}),{mql:t,dispatchers:n,listener:r}},mm=(e,t)=>{let n=Qn.get(e);n||(n=af(e),Qn.set(e,n)),n.dispatchers.add(t),t(n.mql.matches)},gm=(e,t)=>{const n=Qn.get(e);if(n){const{mql:r,dispatchers:o,listener:i}=n;o.delete(t),o.size===0&&(Qn.delete(e),r.removeEventListener?r.removeEventListener("change",i):r.removeListener(i))}};function ym(e,t={}){let{initializeWithValue:n=!0}=t;hm||(n=!1);const[r,o]=R.useState(()=>{if(n){let i=Qn.get(e);return i||(i=af(e),Qn.set(e,i)),i.mql.matches}});return R.useEffect(()=>(mm(e,o),()=>{gm(e,o)}),[e]),r}const uf=e=>ym("(min-width: 768px)"),vm=({windowSize:e,collapse:t,toggleSettings:n,isSettingsOpen:r,brandIcon:o,reset:i})=>{const l=e==="half",s=uf(),a=l&&s?"overlay":"ghost";return p.jsxs("div",{className:U("flex","p-2 md:p-3 items-center justify-between gap-2",l?"md:absolute md:w-fit md:flex-col md:left-0 md:-translate-x-full":"md:absolute md:left-0 md:right-0 md:top-0"),children:[o!=null?p.jsx("img",{className:"w-10 h-10 block",src:o,role:"presentation"}):null,p.jsx(xt,{label:"Reset",type:a,className:o==null?"":"ml-auto",onClick:()=>{i()},Icon:lf}),n!=null?p.jsx(xt,{className:o!=null?"":"ml-auto",Icon:rf,label:"Settings",type:r?"activated":a,onClick:n}):null,p.jsx(xt,{label:"Collapse",type:a,className:U(n==null?"ml-auto":"",l?"md:-order-1":""),onClick:()=>{t()},Icon:qd})]})},Ar=({onClick:e,label:t,type:n="ghost",Icon:r,className:o})=>p.jsxs("button",{onClick:e,disabled:e==null,className:U("relative z-10 w-full px-5 py-4 transition-colors rounded-outer flex justify-between items-center focus:outline-0 overflow-hidden before:content-[''] before:absolute before:transition-colors before:-z-10 before:inset-0 before:bg-transparent",{"bg-primary-80 text-secondary-80 enabled:hover:before:bg-primary-80 focus:before:bg-primary-80 enabled:active:before:bg-secondary-10 disabled:bg-primary-10 disabled:text-secondary-40":n==="main","bg-primary-5 text-primary-80 enabled:hover:before:bg-primary-5 focus:before:bg-primary-5 enabled:active:before:bg-secondary-10 disabled:bg-primary-5 disabled:text-primary-20":n==="ghost"},o),children:[t,p.jsx(r,{size:16})]}),wm=({onClose:e,handler:t,className:n})=>p.jsxs("div",{className:U("p-2 md:p-3 flex flex-col flex-grow justify-center gap-2",n),children:[p.jsx(Ar,{label:"Restart conversation",Icon:nf,type:"ghost",onClick:()=>{t.reset({clearResponses:!0}),t.sendWelcomeIntent(),e()}}),p.jsx(Ar,{label:"Talk to an agent",Icon:tf,type:"ghost",onClick:()=>{t.sendIntent("NLX.Escalation"),e()}})]});function Qs(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let dn=Qs();function cf(e){dn=e}const Br={exec:()=>null};function V(e,t=""){let n=typeof e=="string"?e:e.source;const r={replace:(o,i)=>{let l=typeof i=="string"?i:i.source;return l=l.replace(_e.caret,"$1"),n=n.replace(o,l),r},getRegex:()=>new RegExp(n,t)};return r}const _e={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},xm=/^(?:[ \t]*(?:\n|$))+/,km=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Cm=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Vr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,bm=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,df=/(?:[*+-]|\d{1,9}[.)])/,ff=V(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,df).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),Ys=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Sm=/^[^\n]+/,Xs=/(?!\s*\])(?:\\.|[^\[\]\\])+/,_m=V(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Xs).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Em=V(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,df).getRegex(),mi="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Gs=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Lm=V("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Gs).replace("tag",mi).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),pf=V(Ys).replace("hr",Vr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mi).getRegex(),Ks={blockquote:V(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",pf).getRegex(),code:km,def:_m,fences:Cm,heading:bm,hr:Vr,html:Lm,lheading:ff,list:Em,newline:xm,paragraph:pf,table:Br,text:Sm},hf=V("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Vr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mi).getRegex(),jm={...Ks,table:hf,paragraph:V(Ys).replace("hr",Vr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",hf).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mi).getRegex()},Tm={...Ks,html:V(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Gs).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Br,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:V(Ys).replace("hr",Vr).replace("heading",` *#{1,6} *[^
|
|
61
|
-
]`).replace("lheading",
|
|
60
|
+
*/var b0=function(){if(typeof WebSocket<"u")return WebSocket},S0=function(e){return typeof e<"u"&&!!e&&e.CLOSING===2},fn={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0,startClosed:!1,debug:!1},_0=function(){function e(t,n,r){var o=this;r===void 0&&(r={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(i){o._debug("open event");var l=o._options.minUptime,s=l===void 0?fn.minUptime:l;clearTimeout(o._connectTimeout),o._uptimeTimeout=setTimeout(function(){return o._acceptOpen()},s),o._ws.binaryType=o._binaryType,o._messageQueue.forEach(function(a){return o._ws.send(a)}),o._messageQueue=[],o.onopen&&o.onopen(i),o._listeners.open.forEach(function(a){return o._callEventListener(i,a)})},this._handleMessage=function(i){o._debug("message event"),o.onmessage&&o.onmessage(i),o._listeners.message.forEach(function(l){return o._callEventListener(i,l)})},this._handleError=function(i){o._debug("error event",i.message),o._disconnect(void 0,i.message==="TIMEOUT"?"timeout":void 0),o.onerror&&o.onerror(i),o._debug("exec error listeners"),o._listeners.error.forEach(function(l){return o._callEventListener(i,l)}),o._connect()},this._handleClose=function(i){o._debug("close event"),o._clearTimeouts(),o._shouldReconnect&&o._connect(),o.onclose&&o.onclose(i),o._listeners.close.forEach(function(l){return o._callEventListener(i,l)})},this._url=t,this._protocols=n,this._options=r,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(e,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CONNECTING",{get:function(){return e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OPEN",{get:function(){return e.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSING",{get:function(){return e.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSED",{get:function(){return e.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(t){this._binaryType=t,this._ws&&(this._ws.binaryType=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bufferedAmount",{get:function(){var t=this._messageQueue.reduce(function(n,r){return typeof r=="string"?n+=r.length:r instanceof Blob?n+=r.size:n+=r.byteLength,n},0);return t+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?e.CLOSED:e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),e.prototype.close=function(t,n){if(t===void 0&&(t=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(t,n)},e.prototype.reconnect=function(t,n){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(t,n),this._connect())},e.prototype.send=function(t){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",t),this._ws.send(t);else{var n=this._options.maxEnqueuedMessages,r=n===void 0?fn.maxEnqueuedMessages:n;this._messageQueue.length<r&&(this._debug("enqueue",t),this._messageQueue.push(t))}},e.prototype.addEventListener=function(t,n){this._listeners[t]&&this._listeners[t].push(n)},e.prototype.dispatchEvent=function(t){var n,r,o=this._listeners[t.type];if(o)try{for(var i=v0(o),l=i.next();!l.done;l=i.next()){var s=l.value;this._callEventListener(t,s)}}catch(a){n={error:a}}finally{try{l&&!l.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0},e.prototype.removeEventListener=function(t,n){this._listeners[t]&&(this._listeners[t]=this._listeners[t].filter(function(r){return r!==n}))},e.prototype._debug=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._options.debug&&console.log.apply(console,x0(["RWS>"],t))},e.prototype._getNextDelay=function(){var t=this._options,n=t.reconnectionDelayGrowFactor,r=n===void 0?fn.reconnectionDelayGrowFactor:n,o=t.minReconnectionDelay,i=o===void 0?fn.minReconnectionDelay:o,l=t.maxReconnectionDelay,s=l===void 0?fn.maxReconnectionDelay:l,a=0;return this._retryCount>0&&(a=i*Math.pow(r,this._retryCount-1),a>s&&(a=s)),this._debug("next delay",a),a},e.prototype._wait=function(){var t=this;return new Promise(function(n){setTimeout(n,t._getNextDelay())})},e.prototype._getNextUrl=function(t){if(typeof t=="string")return Promise.resolve(t);if(typeof t=="function"){var n=t();if(typeof n=="string")return Promise.resolve(n);if(n.then)return n}throw Error("Invalid URL")},e.prototype._connect=function(){var t=this;if(!(this._connectLock||!this._shouldReconnect)){this._connectLock=!0;var n=this._options,r=n.maxRetries,o=r===void 0?fn.maxRetries:r,i=n.connectionTimeout,l=i===void 0?fn.connectionTimeout:i,s=n.WebSocket,a=s===void 0?b0():s;if(this._retryCount>=o){this._debug("max retries reached",this._retryCount,">=",o);return}if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),!S0(a))throw Error("No valid WebSocket class provided");this._wait().then(function(){return t._getNextUrl(t._url)}).then(function(u){t._closeCalled||(t._debug("connect",{url:u,protocols:t._protocols}),t._ws=t._protocols?new a(u,t._protocols):new a(u),t._ws.binaryType=t._binaryType,t._connectLock=!1,t._addListeners(),t._connectTimeout=setTimeout(function(){return t._handleTimeout()},l))})}},e.prototype._handleTimeout=function(){this._debug("timeout event"),this._handleError(new k0(Error("TIMEOUT"),this))},e.prototype._disconnect=function(t,n){if(t===void 0&&(t=1e3),this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(t,n),this._handleClose(new C0(t,n,this))}catch{}}},e.prototype._acceptOpen=function(){this._debug("accept open"),this._retryCount=0},e.prototype._callEventListener=function(t,n){"handleEvent"in n?n.handleEvent(t):n(t)},e.prototype._removeListeners=function(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))},e.prototype._addListeners=function(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))},e.prototype._clearTimeouts=function(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)},e}();function te(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function dn(e){return function t(n){return arguments.length===0||te(n)?t:e.apply(this,arguments)}}function Yn(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return te(n)?t:dn(function(o){return e(n,o)});default:return te(n)&&te(r)?t:te(n)?dn(function(o){return e(o,r)}):te(r)?dn(function(o){return e(n,o)}):e(n,r)}}}function E0(e,t){e=e||[],t=t||[];var n,r=e.length,o=t.length,i=[];for(n=0;n<r;)i[i.length]=e[n],n+=1;for(n=0;n<o;)i[i.length]=t[n],n+=1;return i}function j0(e){return function t(n,r,o){switch(arguments.length){case 0:return t;case 1:return te(n)?t:Yn(function(i,l){return e(n,i,l)});case 2:return te(n)&&te(r)?t:te(n)?Yn(function(i,l){return e(i,r,l)}):te(r)?Yn(function(i,l){return e(n,i,l)}):dn(function(i){return e(n,r,i)});default:return te(n)&&te(r)&&te(o)?t:te(n)&&te(r)?Yn(function(i,l){return e(i,l,o)}):te(n)&&te(o)?Yn(function(i,l){return e(i,r,l)}):te(r)&&te(o)?Yn(function(i,l){return e(n,i,l)}):te(n)?dn(function(i){return e(i,r,o)}):te(r)?dn(function(i){return e(n,i,o)}):te(o)?dn(function(i){return e(n,r,i)}):e(n,r,o)}}}var od=j0(function(t,n,r){var o=r.length;if(t>=o||t<-o)return r;var i=(o+t)%o,l=E0(r);return l[i]=n(r[i]),l});let Ci;const L0=new Uint8Array(16);function T0(){if(!Ci&&(Ci=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ci))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ci(L0)}const ye=[];for(let e=0;e<256;++e)ye.push((e+256).toString(16).slice(1));function P0(e,t=0){return ye[e[t+0]]+ye[e[t+1]]+ye[e[t+2]]+ye[e[t+3]]+"-"+ye[e[t+4]]+ye[e[t+5]]+"-"+ye[e[t+6]]+ye[e[t+7]]+"-"+ye[e[t+8]]+ye[e[t+9]]+"-"+ye[e[t+10]]+ye[e[t+11]]+ye[e[t+12]]+ye[e[t+13]]+ye[e[t+14]]+ye[e[t+15]]}const id={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function ld(e,t,n){if(id.randomUUID&&!t&&!e)return id.randomUUID();e=e||{};const r=e.random||(e.rng||T0)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,P0(r)}var R0="@nlxai/chat-core",z0="1.0.5-alpha.0",M0="NLX Chat SDK core",O0="module",N0="lib/index.cjs",I0="lib/index.esm.js",$0="lib/index.umd.js",D0="lib/index.d.ts",A0={".":{types:"./lib/index.d.ts",import:"./lib/index.esm.js",require:"./lib/index.cjs"}},H0={build:"rm -rf lib && rollup -c --configPlugin typescript",docs:"rm -rf docs/ && typedoc && concat-md --decrease-title-levels --dir-name-as-title docs/ > docs/index.md","lint:check":"eslint src/ --ext .ts,.tsx,.js,.jsx --max-warnings 0",lint:"eslint src/ --ext .ts,.tsx,.js,.jsx --fix",prepublish:"npm run build","preview-docs":"npm run docs && comrak --unsafe --gfm -o docs/index.html docs/index.md && open docs/index.html","publish-docs":"npm run docs && mv docs/index.md ../website/src/content/headless-api-reference.md",test:"typedoc --emit none",tsc:"tsc"},B0="Peter Szerzo <peter@nlx.ai>",V0="MIT",F0={"@types/isomorphic-fetch":"^0.0.36","@types/node":"^22.10.1","@types/ramda":"0.29.1","@types/uuid":"^9.0.7","concat-md":"^0.5.1","eslint-config-nlx":"*",prettier:"^3.1.0","rollup-config-nlx":"*",typedoc:"^0.25.13","typedoc-plugin-markdown":"^3.17.1",typescript:"^5.5.4"},U0={"isomorphic-fetch":"^3.0.0",ramda:"^0.29.1","reconnecting-websocket":"^4.4.0",uuid:"^9.0.1"},Z0={access:"public"},W0="52817ba637a5d33ccf2ab6b3efd7e446bec7b7f8",Q0={name:R0,version:z0,description:M0,type:O0,main:N0,module:I0,browser:$0,types:D0,exports:A0,scripts:H0,author:B0,license:V0,devDependencies:F0,dependencies:U0,publishConfig:Z0,gitHead:W0};const Ks=console,Y0="NLX.Welcome",q0="We encountered an issue. Please try again soon.",sd=e=>Array.isArray(e)?e:Object.entries(e).map(([t,n])=>({slotId:t,value:n})),ad=e=>({...e,slots:e.slots!=null?sd(e.slots):e.slots}),ud=e=>e.responses,X0=e=>{try{return JSON.parse(e)}catch{return null}},G0=e=>(e.applicationUrl??e.botUrl??"").length>0;function K0(e){let t;const n=e.applicationUrl??e.botUrl??"";/[-|_][a-z]{2,}[-|_][A-Z]{2,}$/.test(n)&&Ks.warn("Since v1.0.0, the language code is no longer added at the end of the application URL. Please remove the modifier (e.g. '-en-US') from the URL, and specify it in the `languageCode` parameter instead.");const r=e.conversationId??ld();let o={responses:e.responses??[],languageCode:e.languageCode,userId:e.userId,conversationId:r};const i=(w,C)=>{o={...o,...w},y.forEach(k=>{k(ud(o),C)})},l=()=>{const w={type:"failure",receivedAt:new Date().getTime(),payload:{text:e.failureMessage??q0}};i({responses:[...o.responses,w]},w)},s=w=>{if((w==null?void 0:w.messages.length)>0){const C={type:"bot",receivedAt:new Date().getTime(),payload:{...w,messages:w.messages.map(k=>({nodeId:k.nodeId,messageId:k.messageId,text:k.text,choices:k.choices??[]}))}};i({responses:[...o.responses,C]},C),w.metadata.hasPendingDataRequest&&(E({poll:!0}),setTimeout(()=>{f({request:{structured:{poll:!0}}})},1500))}else Ks.warn("Invalid message structure, expected object with field 'messages'."),l()};let a,u=[],c=null;const f=async w=>{var k,L;if(a!=null){a(w,j=>{const D={type:"bot",receivedAt:new Date().getTime(),payload:j};i({responses:[...o.responses,D]},D)});return}const C={userId:o.userId,conversationId:o.conversationId,...w,languageCode:o.languageCode,channelType:(k=e.experimental)==null?void 0:k.channelType,environment:e.environment};if(p())(t==null?void 0:t.readyState)===1?t.send(JSON.stringify(C)):u=[...u,C];else try{const j=await y0(`${n}${((L=e.experimental)==null?void 0:L.completeBotUrl)===!0?"":`-${o.languageCode}`}`,{method:"POST",headers:{...e.headers??{},Accept:"application/json","Content-Type":"application/json","nlx-sdk-version":Q0.version},body:JSON.stringify(C)});if(j.status>=400)throw new Error(`Responded with ${j.status}`);const D=await j.json();s(D)}catch(j){Ks.warn(j),l()}},p=()=>n.indexOf("wss://")===0;let y=[];const x=()=>{var C;const w=new URL(n);((C=e.experimental)==null?void 0:C.completeBotUrl)!==!0&&(w.searchParams.set("languageCode",o.languageCode),w.searchParams.set("channelKey",`${w.searchParams.get("channelKey")??""}-${o.languageCode}`)),w.searchParams.set("conversationId",o.conversationId),t=new _0(w.href),c=setInterval(()=>{},500),t.onmessage=function(k){typeof(k==null?void 0:k.data)=="string"&&s(X0(k.data))}},v=()=>{c!=null&&clearInterval(c),t!=null&&(t.onmessage=null,t.close(),t=void 0)};p()&&x();const E=(w,C)=>{const k={type:"user",receivedAt:new Date().getTime(),payload:{type:"structured",...ad(w),context:C}};i({responses:[...o.responses,k]},k)},m=(w,C)=>{E({intentId:w},C),f({context:C,request:{structured:{intentId:w}}})},d=(w,C)=>{const k={type:"user",receivedAt:new Date().getTime(),payload:{type:"text",text:w,context:C}};i({responses:[...o.responses,k]},k),f({context:C,request:{unstructured:{text:w}}})},g=(w,C,k)=>{let L=[...o.responses];const j={type:"user",receivedAt:new Date().getTime(),payload:{type:"choice",choiceId:w}},D=(k==null?void 0:k.responseIndex)??-1,Q=(k==null?void 0:k.messageIndex)??-1;D>-1&&Q>-1&&(L=od(D,G=>G.type==="bot"?{...G,payload:{...G.payload,messages:od(Q,de=>({...de,selectedChoiceId:w}),G.payload.messages)}}:G,L)),L=[...L,j],i({responses:L},j),f({context:C,request:{structured:{nodeId:k==null?void 0:k.nodeId,intentId:k==null?void 0:k.intentId,choiceId:w}}})},b=w=>{y=y.filter(C=>C!==w)};return{sendText:d,sendStructured:(w,C)=>{E(w,C),f({context:C,request:{structured:ad(w)}})},sendSlots:(w,C)=>{E({slots:w},C),f({context:C,request:{structured:{slots:sd(w)}}})},sendIntent:m,sendWelcomeIntent:w=>{m(Y0,w)},sendChoice:g,currentConversationId:()=>o.conversationId,setLanguageCode:w=>{if(w===o.languageCode){console.warn("Attempted to set language code to the one already active.");return}p()&&(v(),x()),i({languageCode:w})},currentLanguageCode:()=>o.languageCode,subscribe:w=>(y=[...y,w],w(ud(o)),()=>{b(w)}),unsubscribe:b,unsubscribeAll:()=>{y=[]},reset:w=>{i({conversationId:ld(),responses:(w==null?void 0:w.clearResponses)===!0?[]:o.responses}),p()&&(v(),x())},destroy:()=>{y=[],p()&&v()},setBotRequestOverride:w=>{a=w}}}function cd(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=cd(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Z(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=cd(e))&&(r&&(r+=" "),r+=t);return r}function qn(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function Xn(e){return function t(n){return arguments.length===0||qn(n)?t:e.apply(this,arguments)}}function fd(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return qn(n)?t:Xn(function(o){return e(n,o)});default:return qn(n)&&qn(r)?t:qn(n)?Xn(function(o){return e(o,r)}):qn(r)?Xn(function(o){return e(n,o)}):e(n,r)}}}const J0=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function em(e){return e!=null&&typeof e["@@transducer/step"]=="function"}function tm(e,t,n){return function(){if(arguments.length===0)return n();var r=arguments[arguments.length-1];if(!J0(r)){for(var o=0;o<e.length;){if(typeof r[e[o]]=="function")return r[e[o]].apply(r,Array.prototype.slice.call(arguments,0,-1));o+=1}if(em(r)){var i=t.apply(null,Array.prototype.slice.call(arguments,0,-1));return i(r)}}return n.apply(this,arguments)}}const nm={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}};function dd(e){for(var t=[],n;!(n=e.next()).done;)t.push(n.value);return t}function pd(e,t,n){for(var r=0,o=n.length;r<o;){if(e(t,n[r]))return!0;r+=1}return!1}function rm(e){var t=String(e).match(/^function (\w*)/);return t==null?"":t[1]}function bi(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function om(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}const Js=typeof Object.is=="function"?Object.is:om;var hd=Object.prototype.toString,im=function(){return hd.call(arguments)==="[object Arguments]"?function(t){return hd.call(t)==="[object Arguments]"}:function(t){return bi("callee",t)}}(),lm=!{toString:null}.propertyIsEnumerable("toString"),md=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],gd=function(){return arguments.propertyIsEnumerable("length")}(),sm=function(t,n){for(var r=0;r<t.length;){if(t[r]===n)return!0;r+=1}return!1},yd=Xn(typeof Object.keys=="function"&&!gd?function(t){return Object(t)!==t?[]:Object.keys(t)}:function(t){if(Object(t)!==t)return[];var n,r,o=[],i=gd&&im(t);for(n in t)bi(n,t)&&(!i||n!=="length")&&(o[o.length]=n);if(lm)for(r=md.length-1;r>=0;)n=md[r],bi(n,t)&&!sm(o,n)&&(o[o.length]=n),r-=1;return o}),vd=Xn(function(t){return t===null?"Null":t===void 0?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});function wd(e,t,n,r){var o=dd(e),i=dd(t);function l(s,a){return ea(s,a,n.slice(),r.slice())}return!pd(function(s,a){return!pd(l,a,s)},i,o)}function ea(e,t,n,r){if(Js(e,t))return!0;var o=vd(e);if(o!==vd(t))return!1;if(typeof e["fantasy-land/equals"]=="function"||typeof t["fantasy-land/equals"]=="function")return typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t)&&typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e);if(typeof e.equals=="function"||typeof t.equals=="function")return typeof e.equals=="function"&&e.equals(t)&&typeof t.equals=="function"&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if(typeof e.constructor=="function"&&rm(e.constructor)==="Promise")return e===t;break;case"Boolean":case"Number":case"String":if(!(typeof e==typeof t&&Js(e.valueOf(),t.valueOf())))return!1;break;case"Date":if(!Js(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(!(e.source===t.source&&e.global===t.global&&e.ignoreCase===t.ignoreCase&&e.multiline===t.multiline&&e.sticky===t.sticky&&e.unicode===t.unicode))return!1;break}for(var i=n.length-1;i>=0;){if(n[i]===e)return r[i]===t;i-=1}switch(o){case"Map":return e.size!==t.size?!1:wd(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size!==t.size?!1:wd(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var l=yd(e);if(l.length!==yd(t).length)return!1;var s=n.concat([e]),a=r.concat([t]);for(i=l.length-1;i>=0;){var u=l[i];if(!(bi(u,t)&&ea(t[u],e[u],s,a)))return!1;i-=1}return!0}var am=fd(function(t,n){return ea(t,n,[],[])}),um=function(){function e(t,n){this.xf=n,this.f=t,this.idx=-1,this.lastIdx=-1}return e.prototype["@@transducer/init"]=nm.init,e.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.lastIdx))},e.prototype["@@transducer/step"]=function(t,n){return this.idx+=1,this.f(n)&&(this.lastIdx=this.idx),t},e}();function cm(e){return function(t){return new um(e,t)}}var xd=fd(tm([],cm,function(t,n){for(var r=n.length-1;r>=0;){if(t(n[r]))return r;r-=1}return-1}));const N=e=>({width:e.size!=null?`${e.size}px`:"100%",height:e.size!=null?`${e.size}px`:"100%",className:e.className}),fm=e=>h.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:h.jsx("path",{d:"M11 21H10L11 14H7.5C6.92 14 6.93 13.68 7.12 13.34C7.31 13 7.17 13.26 7.19 13.22C8.48 10.94 10.42 7.54 13 3H14L13 10H16.5C16.99 10 17.06 10.33 16.97 10.51L16.9 10.66C12.96 17.55 11 21 11 21Z",fill:"currentColor"})}),ta=e=>h.jsxs("svg",{viewBox:"0 0 24 24",...N(e),children:[h.jsx("path",{d:"M13.5562 5.34835C12.2796 6.62498 12.4866 8.90179 14.0186 10.4337C14.3377 10.7529 14.5571 11.134 14.6767 11.5383C14.8007 11.9572 14.8177 12.4011 14.7277 12.8268C14.6656 13.1203 14.5526 13.4051 14.3887 13.6672C14.3259 13.7677 14.2557 13.865 14.1778 13.9581C14.1279 14.018 14.0747 14.0761 14.0186 14.1322C13.3341 14.8166 12.3641 15.0421 11.4917 14.8092L11.4728 14.8042C9.38654 14.2543 7.32235 15.2129 6.85652 16.9516C6.5761 17.9979 5.50065 18.6188 4.45431 18.3385C3.40798 18.0581 2.787 16.9826 3.06729 15.9363C3.34209 14.9111 4.38012 14.2942 5.40615 14.5335L5.40666 14.5317C5.42748 14.5378 5.44842 14.5437 5.46962 14.5493C7.21342 15.0166 9.08173 13.699 9.64244 11.6062C9.64857 11.5835 9.65521 11.5608 9.66185 11.5383C9.7815 11.134 10.0009 10.7529 10.32 10.4337L10.332 10.4214C10.339 10.4142 10.346 10.407 10.3533 10.4C11.8549 8.86865 12.0496 6.61566 10.7824 5.34835C10.0163 4.58237 10.0163 3.34047 10.7824 2.57449C11.5483 1.8085 12.7903 1.8085 13.5562 2.57449C14.3066 3.32501 14.3218 4.53237 13.6016 5.30135L13.6029 5.30263C13.5872 5.3177 13.5716 5.33289 13.5562 5.34835Z",fill:"currentColor"}),h.jsx("path",{d:"M19.327 6.83185C20.0311 6.83185 20.6019 7.40264 20.6019 8.10675C20.6019 8.81087 20.0311 9.38166 19.327 9.38166C18.6229 9.38166 18.0521 8.81087 18.0521 8.10675C18.0521 7.40264 18.6229 6.83185 19.327 6.83185Z",fill:"currentColor"}),h.jsx("path",{d:"M21.3237 16.4754C21.3237 15.3741 20.4309 14.4813 19.3297 14.4813C18.2284 14.4813 17.3356 15.3741 17.3356 16.4754C17.3356 17.5767 18.2284 18.4695 19.3297 18.4695C20.4309 18.4695 21.3237 17.5767 21.3237 16.4754Z",fill:"currentColor"}),h.jsx("path",{d:"M12.1025 19.3194C12.8246 19.3194 13.4101 19.9195 13.4101 20.6597C13.4101 21.4 12.8246 22 12.1025 22C11.3804 22 10.7949 21.4 10.7949 20.6597C10.7949 19.9195 11.3804 19.3194 12.1025 19.3194Z",fill:"currentColor"}),h.jsx("path",{d:"M6.28367 8.13944C6.28367 7.41726 5.68363 6.83185 4.94339 6.83185C4.20314 6.83185 3.6031 7.41726 3.6031 8.13944C3.6031 8.86163 4.20314 9.44704 4.94339 9.44704C5.68363 9.44704 6.28367 8.86163 6.28367 8.13944Z",fill:"currentColor"})]}),dm=e=>h.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:h.jsx("path",{d:"M6 13C5.45 13 5 13.45 5 14C5 14.55 5.45 15 6 15C6.55 15 7 14.55 7 14C7 13.45 6.55 13 6 13ZM6 17C5.45 17 5 17.45 5 18C5 18.55 5.45 19 6 19C6.55 19 7 18.55 7 18C7 17.45 6.55 17 6 17ZM6 9C5.45 9 5 9.45 5 10C5 10.55 5.45 11 6 11C6.55 11 7 10.55 7 10C7 9.45 6.55 9 6 9ZM3 9.5C2.72 9.5 2.5 9.72 2.5 10C2.5 10.28 2.72 10.5 3 10.5C3.28 10.5 3.5 10.28 3.5 10C3.5 9.72 3.28 9.5 3 9.5ZM6 5C5.45 5 5 5.45 5 6C5 6.55 5.45 7 6 7C6.55 7 7 6.55 7 6C7 5.45 6.55 5 6 5ZM21 10.5C21.28 10.5 21.5 10.28 21.5 10C21.5 9.72 21.28 9.5 21 9.5C20.72 9.5 20.5 9.72 20.5 10C20.5 10.28 20.72 10.5 21 10.5ZM14 7C14.55 7 15 6.55 15 6C15 5.45 14.55 5 14 5C13.45 5 13 5.45 13 6C13 6.55 13.45 7 14 7ZM14 3.5C14.28 3.5 14.5 3.28 14.5 3C14.5 2.72 14.28 2.5 14 2.5C13.72 2.5 13.5 2.72 13.5 3C13.5 3.28 13.72 3.5 14 3.5ZM3 13.5C2.72 13.5 2.5 13.72 2.5 14C2.5 14.28 2.72 14.5 3 14.5C3.28 14.5 3.5 14.28 3.5 14C3.5 13.72 3.28 13.5 3 13.5ZM10 20.5C9.72 20.5 9.5 20.72 9.5 21C9.5 21.28 9.72 21.5 10 21.5C10.28 21.5 10.5 21.28 10.5 21C10.5 20.72 10.28 20.5 10 20.5ZM10 3.5C10.28 3.5 10.5 3.28 10.5 3C10.5 2.72 10.28 2.5 10 2.5C9.72 2.5 9.5 2.72 9.5 3C9.5 3.28 9.72 3.5 10 3.5ZM10 7C10.55 7 11 6.55 11 6C11 5.45 10.55 5 10 5C9.45 5 9 5.45 9 6C9 6.55 9.45 7 10 7ZM10 12.5C9.17 12.5 8.5 13.17 8.5 14C8.5 14.83 9.17 15.5 10 15.5C10.83 15.5 11.5 14.83 11.5 14C11.5 13.17 10.83 12.5 10 12.5ZM18 13C17.45 13 17 13.45 17 14C17 14.55 17.45 15 18 15C18.55 15 19 14.55 19 14C19 13.45 18.55 13 18 13ZM18 17C17.45 17 17 17.45 17 18C17 18.55 17.45 19 18 19C18.55 19 19 18.55 19 18C19 17.45 18.55 17 18 17ZM18 9C17.45 9 17 9.45 17 10C17 10.55 17.45 11 18 11C18.55 11 19 10.55 19 10C19 9.45 18.55 9 18 9ZM18 5C17.45 5 17 5.45 17 6C17 6.55 17.45 7 18 7C18.55 7 19 6.55 19 6C19 5.45 18.55 5 18 5ZM21 13.5C20.72 13.5 20.5 13.72 20.5 14C20.5 14.28 20.72 14.5 21 14.5C21.28 14.5 21.5 14.28 21.5 14C21.5 13.72 21.28 13.5 21 13.5ZM14 17C13.45 17 13 17.45 13 18C13 18.55 13.45 19 14 19C14.55 19 15 18.55 15 18C15 17.45 14.55 17 14 17ZM14 20.5C13.72 20.5 13.5 20.72 13.5 21C13.5 21.28 13.72 21.5 14 21.5C14.28 21.5 14.5 21.28 14.5 21C14.5 20.72 14.28 20.5 14 20.5ZM10 8.5C9.17 8.5 8.5 9.17 8.5 10C8.5 10.83 9.17 11.5 10 11.5C10.83 11.5 11.5 10.83 11.5 10C11.5 9.17 10.83 8.5 10 8.5ZM10 17C9.45 17 9 17.45 9 18C9 18.55 9.45 19 10 19C10.55 19 11 18.55 11 18C11 17.45 10.55 17 10 17ZM14 12.5C13.17 12.5 12.5 13.17 12.5 14C12.5 14.83 13.17 15.5 14 15.5C14.83 15.5 15.5 14.83 15.5 14C15.5 13.17 14.83 12.5 14 12.5ZM14 8.5C13.17 8.5 12.5 9.17 12.5 10C12.5 10.83 13.17 11.5 14 11.5C14.83 11.5 15.5 10.83 15.5 10C15.5 9.17 14.83 8.5 14 8.5Z",fill:"currentColor"})}),pm=e=>h.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:h.jsx("path",{d:"M19 13H13V19H11V13H5V11H11V5H13V11H19V13Z",fill:"currentColor"})}),hm=e=>h.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:h.jsx("path",{d:"M12 15.41L6 9.40997L7.41 7.99997L12 12.58L16.59 7.99997L18 9.40997L12 15.41Z",fill:"currentColor"})}),mm=e=>h.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:h.jsx("path",{d:"M7.59001 12L13.59 18L15 16.59L10.42 12L15 7.41002L13.59 6.00002L7.59001 12Z",fill:"currentColor"})}),gm=e=>h.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:h.jsx("path",{d:"M15 12L9.00005 18L7.59005 16.59L12.17 12L7.59005 7.41002L9.00005 6.00002L15 12Z",fill:"currentColor"})}),ym=e=>h.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:h.jsx("path",{d:"M12 8L6 14L7.41 15.41L12 10.83L16.59 15.41L18 14L12 8Z",fill:"currentColor"})}),Si=e=>h.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:h.jsx("path",{d:"M12 4L10.59 5.41L16.17 11H4V13H16.17L10.59 18.59L12 20L20 12L12 4Z",fill:"currentColor"})}),na=e=>h.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:h.jsx("path",{d:"M18.5 16H7C4.79 16 3 14.21 3 12C3 9.79 4.79 8 7 8H19.5C20.88 8 22 9.12 22 10.5C22 11.88 20.88 13 19.5 13H9C8.45 13 8 12.55 8 12C8 11.45 8.45 11 9 11H18.5V9.5H9C7.62 9.5 6.5 10.62 6.5 12C6.5 13.38 7.62 14.5 9 14.5H19.5C21.71 14.5 23.5 12.71 23.5 10.5C23.5 8.29 21.71 6.5 19.5 6.5H7C3.96 6.5 1.5 8.96 1.5 12C1.5 15.04 3.96 17.5 7 17.5H18.5V16Z",fill:"currentColor"})}),vm=e=>h.jsxs("svg",{viewBox:"0 0 24 24",...N(e),children:[h.jsx("path",{d:"M12 15.2C13.7673 15.2 15.2 13.7673 15.2 12C15.2 10.2327 13.7673 8.8 12 8.8C10.2327 8.8 8.8 10.2327 8.8 12C8.8 13.7673 10.2327 15.2 12 15.2Z",fill:"currentColor"}),h.jsx("path",{d:"M9 2L7.17 4H4C2.9 4 2 4.9 2 6V18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V6C22 4.9 21.1 4 20 4H16.83L15 2H9ZM12 17C9.24 17 7 14.76 7 12C7 9.24 9.24 7 12 7C14.76 7 17 9.24 17 12C17 14.76 14.76 17 12 17Z",fill:"currentColor"})]}),kd=e=>h.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:h.jsx("path",{d:"M8.99991 16.17L4.82991 12L3.40991 13.41L8.99991 19L20.9999 7L19.5899 5.59L8.99991 16.17Z",fill:"currentColor"})}),Cd=e=>h.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:h.jsx("path",{d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",fill:"currentColor"})}),wm=e=>h.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:h.jsx("path",{d:"M16 1H4C2.9 1 2 1.9 2 3V17H4V3H16V1ZM19 5H8C6.9 5 6 5.9 6 7V21C6 22.1 6.9 23 8 23H19C20.1 23 21 22.1 21 21V7C21 5.9 20.1 5 19 5ZM19 21H8V7H19V21Z",fill:"currentColor"})}),bd=e=>h.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:h.jsx("path",{d:"M19 4H18V2H16V4H8V2H6V4H5C3.89 4 3.01 4.9 3.01 6L3 20C3 21.1 3.89 22 5 22H19C20.1 22 21 21.1 21 20V6C21 4.9 20.1 4 19 4ZM19 20H5V9H19V20Z",fill:"currentColor"})}),Sd=e=>h.jsxs("svg",{viewBox:"0 0 24 24",...N(e),children:[h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 21C6.9 21 6 20.1 6 19V7H18V19C18 20.1 17.1 21 16 21H8ZM9.33337 9H8V19H9.33337V9ZM11.3334 9V19H12.6666V9H11.3334ZM16 19H14.6666V9H16V19Z",fill:"currentColor"}),h.jsx("path",{d:"M15.5 4H19V6H5V4H8.5L9.5 3H14.5L15.5 4Z",fill:"currentColor"})]}),_d=e=>h.jsxs("svg",{viewBox:"0 0 24 24",...N(e),children:[h.jsx("path",{d:"M21 12.22C21 6.73 16.74 3 12 3C7.31 3 3 6.65 3 12.28C2.4 12.62 2 13.26 2 14V16C2 17.1 2.9 18 4 18H5V11.9C5 8.03 8.13 4.9 12 4.9C15.87 4.9 19 8.03 19 11.9V19H11V21H19C20.1 21 21 20.1 21 19V17.78C21.59 17.47 22 16.86 22 16.14V13.84C22 13.14 21.59 12.53 21 12.22Z",fill:"currentColor"}),h.jsx("path",{d:"M9 14C9.55228 14 10 13.5523 10 13C10 12.4477 9.55228 12 9 12C8.44772 12 8 12.4477 8 13C8 13.5523 8.44772 14 9 14Z",fill:"currentColor"}),h.jsx("path",{d:"M15 14C15.5523 14 16 13.5523 16 13C16 12.4477 15.5523 12 15 12C14.4477 12 14 12.4477 14 13C14 13.5523 14.4477 14 15 14Z",fill:"currentColor"}),h.jsx("path",{d:"M18 11.03C17.52 8.18 15.04 6 12.05 6C9.02 6 5.76 8.51 6.02 12.45C8.49 11.44 10.35 9.24 10.88 6.56C12.19 9.19 14.88 11 18 11.03Z",fill:"currentColor"})]}),ra=e=>h.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:h.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM13 17H11V15H13V17ZM13 13H11V7H13V13Z",fill:"currentColor"})}),xm=e=>h.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:h.jsx("path",{d:"M7 14H5V19H10V17H7V14ZM5 10H7V7H10V5H5V10ZM17 17H14V19H19V14H17V17ZM14 5V7H17V10H19V5H14Z",fill:"currentColor"})}),km=e=>h.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:h.jsx("path",{d:"M12 15C13.66 15 14.99 13.66 14.99 12L15 6C15 4.34 13.66 3 12 3C10.34 3 9 4.34 9 6V12C9 13.66 10.34 15 12 15ZM17.3 12C17.3 15 14.76 17.1 12 17.1C9.24 17.1 6.7 15 6.7 12H5C5 15.42 7.72 18.23 11 18.72V22H13V18.72C16.28 18.24 19 15.42 19 12H17.3Z",fill:"currentColor"})}),Cm=e=>h.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:h.jsx("path",{d:"M19 11H17.3C17.3 11.74 17.14 12.43 16.87 13.05L18.1 14.28C18.66 13.3 19 12.19 19 11ZM14.98 11.17C14.98 11.11 15 11.06 15 11V5C15 3.34 13.66 2 12 2C10.34 2 9 3.34 9 5V5.18L14.98 11.17ZM4.27 3L3 4.27L9.01 10.28V11C9.01 12.66 10.34 14 12 14C12.22 14 12.44 13.97 12.65 13.92L14.31 15.58C13.6 15.91 12.81 16.1 12 16.1C9.24 16.1 6.7 14 6.7 11H5C5 14.41 7.72 17.23 11 17.72V21H13V17.72C13.91 17.59 14.77 17.27 15.54 16.82L19.73 21L21 19.73L4.27 3Z",fill:"currentColor"})}),bm=e=>h.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:h.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9C5 14.25 12 22 12 22C12 22 19 14.25 19 9C19 5.13 15.87 2 12 2ZM12 11.5C10.62 11.5 9.5 10.38 9.5 9C9.5 7.62 10.62 6.5 12 6.5C13.38 6.5 14.5 7.62 14.5 9C14.5 10.38 13.38 11.5 12 11.5Z",fill:"currentColor"})}),Sm=e=>h.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:h.jsx("path",{d:"M3 9.99999V14C3 14.55 3.45 15 4 15H7L10.29 18.29C10.92 18.92 12 18.47 12 17.58V6.40999C12 5.51999 10.92 5.06999 10.29 5.69999L7 8.99999H4C3.45 8.99999 3 9.44999 3 9.99999ZM16.5 12C16.5 10.23 15.48 8.70999 14 7.96999V16.02C15.48 15.29 16.5 13.77 16.5 12ZM14 4.44999V4.64999C14 5.02999 14.25 5.35999 14.6 5.49999C17.18 6.52999 19 9.05999 19 12C19 14.94 17.18 17.47 14.6 18.5C14.24 18.64 14 18.97 14 19.35V19.55C14 20.18 14.63 20.62 15.21 20.4C18.6 19.11 21 15.84 21 12C21 8.15999 18.6 4.88999 15.21 3.59999C14.63 3.36999 14 3.81999 14 4.44999Z",fill:"currentColor"})}),_m=e=>h.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:h.jsx("path",{d:"M16.5 12C16.5 10.23 15.48 8.71 14 7.97V10.18L16.45 12.63C16.48 12.43 16.5 12.22 16.5 12ZM19 12C19 12.94 18.8 13.82 18.46 14.64L19.97 16.15C20.63 14.91 21 13.5 21 12C21 7.72 18.01 4.14 14 3.23V5.29C16.89 6.15 19 8.83 19 12ZM4.27 3L3 4.27L7.73 9H3V15H7L12 20V13.27L16.25 17.52C15.58 18.04 14.83 18.45 14 18.7V20.76C15.38 20.45 16.63 19.81 17.69 18.95L19.73 21L21 19.73L12 10.73L4.27 3ZM12 4L9.91 6.09L12 8.18V4Z",fill:"currentColor"})}),Em=e=>h.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:h.jsx("path",{d:"M12.87 15.07L10.33 12.56L10.36 12.53C12.1 10.59 13.34 8.36 14.07 6H17V4H10V2H8V4H1V5.99H12.17C11.5 7.92 10.44 9.75 9 11.35C8.07 10.32 7.3 9.19 6.69 8H4.69C5.42 9.63 6.42 11.17 7.67 12.56L2.58 17.58L4 19L9 14L12.11 17.11L12.87 15.07ZM18.5 10H16.5L12 22H14L15.12 19H19.87L21 22H23L18.5 10ZM15.88 17L17.5 12.67L19.12 17H15.88Z",fill:"currentColor"})}),jm=e=>h.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:h.jsx("path",{d:"M19 19H5V5H12V3H5C3.89 3 3 3.9 3 5V19C3 20.1 3.89 21 5 21H19C20.1 21 21 20.1 21 19V12H19V19ZM14 3V5H17.59L7.76 14.83L9.17 16.24L19 6.41V10H21V3H14Z",fill:"currentColor"})}),Lm=e=>h.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:h.jsx("path",{d:"M8 5V19L19 12L8 5Z",fill:"currentColor"})}),Tm=e=>h.jsxs("svg",{viewBox:"0 0 24 24",...N(e),children:[h.jsx("path",{d:"M13 14.5C13 15.3284 12.3284 16 11.5 16C10.6716 16 10 15.3284 10 14.5C10 13.6716 10.6716 13 11.5 13C12.3284 13 13 13.6716 13 14.5Z",fill:"currentColor"}),h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 2H14L20 8V20C20 21.1 19.1 22 18 22H5.99C4.89 22 4 21.1 4 20V4C4 2.9 4.9 2 6 2ZM13.16 17.57L15.04 19.45L16.45 18.04L14.57 16.16C15.29 14.83 15.1 13.15 13.98 12.03C12.61 10.66 10.4 10.66 9.03 12.03C7.66 13.4 7.66 15.61 9.03 16.98C10.15 18.1 11.83 18.28 13.16 17.57ZM13 3.5V9H18.5L13 3.5Z",fill:"currentColor"})]}),Pm=e=>h.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:h.jsx("path",{d:"M3 15H21V13H3V15ZM3 19H21V17H3V19ZM3 11H21V9H3V11ZM3 5V7H21V5H3Z",fill:"currentColor"})}),Ed=e=>h.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:h.jsx("path",{d:"M10 3C14.97 3 19 7.03 19 12H22L18.11 15.89L18.04 16.03L14 12H17C17 8.13 13.87 5 10 5C6.13 5 3 8.13 3 12C3 15.87 6.13 19 10 19V21C5.03 21 1 16.97 1 12C1 7.03 5.03 3 10 3Z",fill:"currentColor"})}),jd=e=>h.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:h.jsx("path",{d:"M19.1064 12.9302C19.1459 12.6333 19.1657 12.3266 19.1657 12C19.1657 11.6833 19.1459 11.3667 19.0965 11.0698L21.1053 9.50625C21.2834 9.36771 21.3329 9.10052 21.2241 8.9026L19.3241 5.61719C19.2053 5.39948 18.9579 5.33021 18.7402 5.39948L16.3751 6.34948C15.8803 5.97344 15.3558 5.65677 14.772 5.41927L14.4157 2.90573C14.3761 2.66823 14.1782 2.5 13.9407 2.5H10.1407C9.90323 2.5 9.71521 2.66823 9.67563 2.90573L9.31938 5.41927C8.73552 5.65677 8.20115 5.98333 7.71625 6.34948L5.35115 5.39948C5.13344 5.32031 4.88604 5.39948 4.7673 5.61719L2.87719 8.9026C2.75844 9.11042 2.79802 9.36771 2.99594 9.50625L5.00479 11.0698C4.95532 11.3667 4.91573 11.6932 4.91573 12C4.91573 12.3068 4.93552 12.6333 4.985 12.9302L2.97615 14.4938C2.79802 14.6323 2.74855 14.8995 2.8574 15.0974L4.7574 18.3828C4.87615 18.6005 5.12354 18.6698 5.34125 18.6005L7.70636 17.6505C8.20115 18.0266 8.72563 18.3432 9.30948 18.5807L9.66573 21.0943C9.71521 21.3318 9.90323 21.5 10.1407 21.5H13.9407C14.1782 21.5 14.3761 21.3318 14.4058 21.0943L14.7621 18.5807C15.3459 18.3432 15.8803 18.0266 16.3652 17.6505L18.7303 18.6005C18.948 18.6797 19.1954 18.6005 19.3142 18.3828L21.2142 15.0974C21.3329 14.8797 21.2834 14.6323 21.0954 14.4938L19.1064 12.9302ZM12.0407 15.5625C10.0814 15.5625 8.47823 13.9594 8.47823 12C8.47823 10.0406 10.0814 8.4375 12.0407 8.4375C14.0001 8.4375 15.6032 10.0406 15.6032 12C15.6032 13.9594 14.0001 15.5625 12.0407 15.5625Z",fill:"currentColor"})}),Rm=e=>h.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:h.jsx("path",{d:"M15.5 14H14.71L14.43 13.73C15.41 12.59 16 11.11 16 9.5C16 5.91 13.09 3 9.5 3C5.91 3 3 5.91 3 9.5C3 13.09 5.91 16 9.5 16C11.11 16 12.59 15.41 13.73 14.43L14 14.71V15.5L19 20.49L20.49 19L15.5 14ZM9.5 14C7.01 14 5 11.99 5 9.5C5 7.01 7.01 5 9.5 5C11.99 5 14 7.01 14 9.5C14 11.99 11.99 14 9.5 14Z",fill:"currentColor"})}),zm=e=>h.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:h.jsx("path",{d:"M18 16.08C17.24 16.08 16.56 16.38 16.04 16.85L8.91 12.7C8.96 12.47 9 12.24 9 12C9 11.76 8.96 11.53 8.91 11.3L15.96 7.19C16.5 7.69 17.21 8 18 8C19.66 8 21 6.66 21 5C21 3.34 19.66 2 18 2C16.34 2 15 3.34 15 5C15 5.24 15.04 5.47 15.09 5.7L8.04 9.81C7.5 9.31 6.79 9 6 9C4.34 9 3 10.34 3 12C3 13.66 4.34 15 6 15C6.79 15 7.5 14.69 8.04 14.19L15.16 18.35C15.11 18.56 15.08 18.78 15.08 19C15.08 20.61 16.39 21.92 18 21.92C19.61 21.92 20.92 20.61 20.92 19C20.92 17.39 19.61 16.08 18 16.08Z",fill:"currentColor"})}),Ld=e=>h.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:h.jsx("path",{d:"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z",fill:"currentColor"})}),Mm=e=>h.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:h.jsx("path",{d:"M15 3H6C5.17 3 4.46 3.5 4.16 4.22L1.14 11.27C1.05 11.5 1 11.74 1 12V14C1 15.1 1.9 16 3 16H9.31L8.36 20.57L8.33 20.89C8.33 21.3 8.5 21.68 8.77 21.95L9.83 23L16.42 16.41C16.78 16.05 17 15.55 17 15V5C17 3.9 16.1 3 15 3ZM19 3V15H23V3H19Z",fill:"currentColor"})}),Om=e=>h.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:h.jsx("path",{d:"M1 21H5V9H1V21ZM23 10C23 8.9 22.1 8 21 8H14.69L15.64 3.43L15.67 3.11C15.67 2.7 15.5 2.32 15.23 2.05L14.17 1L7.59 7.59C7.22 7.95 7 8.45 7 9V19C7 20.1 7.9 21 9 21H18C18.83 21 19.54 20.5 19.84 19.78L22.86 12.73C22.95 12.5 23 12.26 23 12V10Z",fill:"currentColor"})}),Nm=e=>h.jsxs("svg",{viewBox:"0 0 24 24",...N(e),children:[h.jsx("path",{d:"M11 7H12.5V12.25L17 14.92L16.25 16.15L11 13V7Z",fill:"currentColor"}),h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.47997 6.47 1.99997 11.99 1.99997C17.52 1.99997 22 6.47997 22 12C22 17.52 17.52 22 11.99 22C6.47 22 2 17.52 2 12ZM4 12C4 16.42 7.58 20 12 20C16.42 20 20 16.42 20 12C20 7.57997 16.42 3.99997 12 3.99997C7.58 3.99997 4 7.57997 4 12Z",fill:"currentColor"})]}),Td=e=>h.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:h.jsx("path",{d:"M13 3C8.03 3 4 7.03 4 12H1L4.89 15.89L4.96 16.03L9 12H6C6 8.13 9.13 5 13 5C16.87 5 20 8.13 20 12C20 15.87 16.87 19 13 19V21C17.97 21 22 16.97 22 12C22 7.03 17.97 3 13 3Z",fill:"currentColor"})}),Pd=Object.freeze(Object.defineProperty({__proto__:null,Action:fm,Add:pm,ArrowDown:hm,ArrowForward:Si,ArrowLeft:mm,ArrowRight:gm,ArrowUp:ym,Assistant:ta,AssistantOld:dm,Attachment:na,Camera:vm,Check:kd,Close:Cd,Copy:wm,Date:bd,Delete:Sd,Error:ra,Escalate:_d,FullScreen:xm,Help:e=>h.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:h.jsx("path",{d:"M11 18H13V16H11V18ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12 6C9.79 6 8 7.79 8 10H10C10 8.9 10.9 8 12 8C13.1 8 14 8.9 14 10C14 12 11 11.75 11 15H13C13 12.75 16 12.5 16 10C16 7.79 14.21 6 12 6Z",fill:"currentColor"})}),Location:bm,Mic:km,MicOff:Cm,OpenInNew:jm,Play:Lm,Preview:Tm,Refresh:e=>h.jsx("svg",{viewBox:"0 0 24 24",...N(e),children:h.jsx("path",{d:"M12 4V1L8 5L12 9V6C15.31 6 18 8.69 18 12C18 13.01 17.75 13.97 17.3 14.8L18.76 16.26C19.54 15.03 20 13.57 20 12C20 7.58 16.42 4 12 4ZM12 18C8.69 18 6 15.31 6 12C6 10.99 6.25 10.03 6.7 9.2L5.24 7.74C4.46 8.97 4 10.43 4 12C4 16.42 7.58 20 12 20V23L16 19L12 15V18Z",fill:"currentColor"})}),Reorder:Pm,Restart:Ed,Search:Rm,Settings:jd,Share:zm,ThumbDown:Mm,ThumbUp:Om,Time:Nm,Translate:Em,Undo:Td,Volume:Sm,VolumeOff:_m,Warning:Ld},Symbol.toStringTag,{value:"Module"})),Im=e=>h.jsxs("button",{className:Z("p-3 w-fit bg-background text-primary-80 rounded-outer","after:content-[''] after:rounded-outer after:absolute after:inset-0 after:pointer-events-none","hover:after:bg-primary-10",e.className),disabled:e.onClick==null,onClick:e.onClick,children:[h.jsx("span",{className:"block flex-none w-8 h-8",children:e.iconUrl==null?h.jsx(ta,{}):h.jsx("img",{src:e.iconUrl,className:"w-8 h-8"})}),e.showLabel??!1?h.jsx("span",{children:e.label}):null]}),$m="bg-primary-80 text-secondary-80 enabled:hover:before:bg-primary-80 focus:before:bg-primary-80 enabled:active:before:bg-secondary-10 disabled:bg-primary-10 disabled:text-secondary-40",Dm="bg-primary-5 text-primary-80 enabled:hover:before:bg-primary-10 focus:before:bg-primary-10 enabled:active:before:bg-secondary-10 disabled:bg-primary-5 disabled:text-primary-20",Am="bg-accent text-secondary-80 enabled:hover:before:bg-primary-40 focus:before:bg-primary-40 enabled:active:before:bg-secondary-10 disabled:bg-accent-20",Hm="bg-secondary-60 backdrop-blur text-primary-80 enabled:hover:before:bg-primary-10 focus:before:bg-primary-10 enabled:active:before:bg-secondary-10 disabled:bg-secondary-20 disabled:text-primary-20",Bm="bg-background backdrop-blur text-primary-80 enabled:hover:before:bg-primary-10 focus:before:bg-primary-10 enabled:active:before:bg-secondary-10 disabled:bg-secondary-20 disabled:text-primary-20",bt=({onClick:e,type:t,label:n,className:r,Icon:o})=>{const i=e==null;return h.jsx("button",{onClick:i?void 0:e,disabled:i,"aria-label":n,className:Z("p-3 w-10 h-10 transition-colors rounded-inner relative z-10 overflow-hidden before:content-[''] before:absolute before:transition-colors before:-z-10 before:inset-0 before:bg-transparent focus:outline-0",t==="main"?$m:null,t==="ghost"?Dm:null,t==="activated"?Am:null,t==="coverup"?Hm:null,t==="overlay"?Bm:null,r),children:h.jsx(o,{})})},Vm=typeof globalThis<"u"&&typeof navigator<"u"&&typeof document<"u",Gn=new Map,Rd=e=>{const t=matchMedia(e),n=new Set,r=()=>{for(const o of n)o(t.matches)};return t.addEventListener("change",r,{passive:!0}),{mql:t,dispatchers:n,listener:r}},Fm=(e,t)=>{let n=Gn.get(e);n||(n=Rd(e),Gn.set(e,n)),n.dispatchers.add(t),t(n.mql.matches)},Um=(e,t)=>{const n=Gn.get(e);if(n){const{mql:r,dispatchers:o,listener:i}=n;o.delete(t),o.size===0&&(Gn.delete(e),r.removeEventListener?r.removeEventListener("change",i):r.removeListener(i))}};function Zm(e,t={}){let{initializeWithValue:n=!0}=t;Vm||(n=!1);const[r,o]=R.useState(()=>{if(n){let i=Gn.get(e);return i||(i=Rd(e),Gn.set(e,i)),i.mql.matches}});return R.useEffect(()=>(Fm(e,o),()=>{Um(e,o)}),[e]),r}const zd=e=>Zm("(min-width: 768px)"),Wm=({windowSize:e,renderCollapse:t,collapse:n,toggleSettings:r,isSettingsOpen:o,brandIcon:i,reset:l,enabled:s})=>{const a=e==="half",u=zd(),c=a&&u?"overlay":"ghost";return h.jsxs("div",{className:Z("flex","p-2 md:p-3 items-center justify-between gap-2",{"md:absolute md:w-fit md:flex-col md:left-0 md:-translate-x-full":e==="half","md:absolute md:left-0 md:right-0 md:top-0":e==="full"}),children:[i!=null?h.jsx("img",{className:"w-10 h-10 block",src:i,role:"presentation"}):null,h.jsx(bt,{label:"Reset",type:c,className:i==null?"":"ml-auto",onClick:s?()=>{l()}:void 0,Icon:Td}),r!=null?h.jsx(bt,{className:i!=null?"":"ml-auto",Icon:jd,label:"Settings",type:o?"activated":c,onClick:s?r:void 0}):null,t?h.jsx(bt,{label:"Collapse",type:c,className:Z(r==null?"ml-auto":"",a?"md:-order-1":""),onClick:s?()=>{n(new Event("collapse"))}:void 0,Icon:Cd}):null]})},Qr=({onClick:e,label:t,type:n="ghost",Icon:r,className:o})=>h.jsxs("button",{onClick:e,disabled:e==null,className:Z("relative z-10 w-full px-5 py-4 transition-colors rounded-outer flex justify-between items-center focus:outline-0 overflow-hidden before:content-[''] before:absolute before:transition-colors before:-z-10 before:inset-0 before:bg-transparent",{"bg-primary-80 text-secondary-80 enabled:hover:before:bg-primary-80 focus:before:bg-primary-80 enabled:active:before:bg-secondary-10 disabled:bg-primary-10 disabled:text-secondary-40":n==="main","bg-primary-5 text-primary-80 enabled:hover:before:bg-primary-5 focus:before:bg-primary-5 enabled:active:before:bg-secondary-10 disabled:bg-primary-5 disabled:text-primary-20":n==="ghost"},o),children:[t,h.jsx(r,{size:16})]}),Qm=({onClose:e,handler:t,className:n})=>h.jsxs("div",{className:Z("p-2 md:p-3 flex flex-col flex-grow justify-center gap-2",n),children:[h.jsx(Qr,{label:"Restart conversation",Icon:Ed,type:"ghost",onClick:()=>{t.reset({clearResponses:!0}),t.sendWelcomeIntent(),e()}}),h.jsx(Qr,{label:"Talk to an agent",Icon:_d,type:"ghost",onClick:()=>{t.sendIntent("NLX.Escalation"),e()}})]});function oa(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let pn=oa();function Md(e){pn=e}const Yr={exec:()=>null};function U(e,t=""){let n=typeof e=="string"?e:e.source;const r={replace:(o,i)=>{let l=typeof i=="string"?i:i.source;return l=l.replace(je.caret,"$1"),n=n.replace(o,l),r},getRegex:()=>new RegExp(n,t)};return r}const je={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},Ym=/^(?:[ \t]*(?:\n|$))+/,qm=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Xm=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,qr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Gm=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Od=/(?:[*+-]|\d{1,9}[.)])/,Nd=U(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Od).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),ia=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Km=/^[^\n]+/,la=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Jm=U(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",la).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),eg=U(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Od).getRegex(),_i="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",sa=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,tg=U("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",sa).replace("tag",_i).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Id=U(ia).replace("hr",qr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_i).getRegex(),aa={blockquote:U(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Id).getRegex(),code:qm,def:Jm,fences:Xm,heading:Gm,hr:qr,html:tg,lheading:Nd,list:eg,newline:Ym,paragraph:Id,table:Yr,text:Km},$d=U("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",qr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_i).getRegex(),ng={...aa,table:$d,paragraph:U(ia).replace("hr",qr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",$d).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_i).getRegex()},rg={...aa,html:U(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",sa).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Yr,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:U(ia).replace("hr",qr).replace("heading",` *#{1,6} *[^
|
|
61
|
+
]`).replace("lheading",Nd).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},og=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ig=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Dd=/^( {2,}|\\)\n(?!\s*$)/,lg=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ei=/[\p{P}\p{S}]/u,ua=/[\s\p{P}\p{S}]/u,Ad=/[^\s\p{P}\p{S}]/u,sg=U(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ua).getRegex(),ag=/(?!~)[\p{P}\p{S}]/u,ug=/(?!~)[\s\p{P}\p{S}]/u,cg=/(?:[^\s\p{P}\p{S}]|~)/u,fg=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,dg=U(/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,"u").replace(/punct/g,Ei).getRegex(),Hd="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",pg=U(Hd,"gu").replace(/notPunctSpace/g,Ad).replace(/punctSpace/g,ua).replace(/punct/g,Ei).getRegex(),hg=U(Hd,"gu").replace(/notPunctSpace/g,cg).replace(/punctSpace/g,ug).replace(/punct/g,ag).getRegex(),mg=U("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ad).replace(/punctSpace/g,ua).replace(/punct/g,Ei).getRegex(),gg=U(/\\(punct)/,"gu").replace(/punct/g,Ei).getRegex(),yg=U(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),vg=U(sa).replace("(?:-->|$)","-->").getRegex(),wg=U("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",vg).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ji=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,xg=U(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",ji).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Bd=U(/^!?\[(label)\]\[(ref)\]/).replace("label",ji).replace("ref",la).getRegex(),Vd=U(/^!?\[(ref)\](?:\[\])?/).replace("ref",la).getRegex(),kg=U("reflink|nolink(?!\\()","g").replace("reflink",Bd).replace("nolink",Vd).getRegex(),ca={_backpedal:Yr,anyPunctuation:gg,autolink:yg,blockSkip:fg,br:Dd,code:ig,del:Yr,emStrongLDelim:dg,emStrongRDelimAst:pg,emStrongRDelimUnd:mg,escape:og,link:xg,nolink:Vd,punctuation:sg,reflink:Bd,reflinkSearch:kg,tag:wg,text:lg,url:Yr},Cg={...ca,link:U(/^!?\[(label)\]\((.*?)\)/).replace("label",ji).getRegex(),reflink:U(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ji).getRegex()},fa={...ca,emStrongRDelimAst:hg,url:U(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},bg={...fa,br:U(Dd).replace("{2,}","*").getRegex(),text:U(fa.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Li={normal:aa,gfm:ng,pedantic:rg},Xr={normal:ca,gfm:fa,breaks:bg,pedantic:Cg},Sg={"&":"&","<":"<",">":">",'"':""","'":"'"},Fd=e=>Sg[e];function ct(e,t){if(t){if(je.escapeTest.test(e))return e.replace(je.escapeReplace,Fd)}else if(je.escapeTestNoEncode.test(e))return e.replace(je.escapeReplaceNoEncode,Fd);return e}function Ud(e){try{e=encodeURI(e).replace(je.percentDecode,"%")}catch{return null}return e}function Zd(e,t){var i;const n=e.replace(je.findPipe,(l,s,a)=>{let u=!1,c=s;for(;--c>=0&&a[c]==="\\";)u=!u;return u?"|":" |"}),r=n.split(je.splitPipe);let o=0;if(r[0].trim()||r.shift(),r.length>0&&!((i=r.at(-1))!=null&&i.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;o<r.length;o++)r[o]=r[o].trim().replace(je.slashPipe,"|");return r}function Gr(e,t,n){const r=e.length;if(r===0)return"";let o=0;for(;o<r&&(e.charAt(r-o-1)===t&&!n);)o++;return e.slice(0,r-o)}function _g(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return-1}function Wd(e,t,n,r,o){const i=t.href,l=t.title||null,s=e[1].replace(o.other.outputLinkReplace,"$1");if(e[0].charAt(0)!=="!"){r.state.inLink=!0;const a={type:"link",raw:n,href:i,title:l,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,a}return{type:"image",raw:n,href:i,title:l,text:s}}function Eg(e,t,n){const r=e.match(n.other.indentCodeCompensation);if(r===null)return t;const o=r[1];return t.split(`
|
|
62
62
|
`).map(i=>{const l=i.match(n.other.beginningSpace);if(l===null)return i;const[s]=l;return s.length>=o.length?i.slice(o.length):i}).join(`
|
|
63
|
-
`)}class
|
|
64
|
-
`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],o=
|
|
65
|
-
`)}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let r=
|
|
63
|
+
`)}class Ti{constructor(t){H(this,"options");H(this,"rules");H(this,"lexer");this.options=t||pn}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const r=n[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Gr(r,`
|
|
64
|
+
`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],o=Eg(r,n[3]||"",this.rules);return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:o}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let r=n[2].trim();if(this.rules.other.endingHash.test(r)){const o=Gr(r,"#");(this.options.pedantic||!o||this.rules.other.endingSpaceChar.test(o))&&(r=o.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:Gr(n[0],`
|
|
65
|
+
`)}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let r=Gr(n[0],`
|
|
66
66
|
`).split(`
|
|
67
67
|
`),o="",i="";const l=[];for(;r.length>0;){let s=!1;const a=[];let u;for(u=0;u<r.length;u++)if(this.rules.other.blockquoteStart.test(r[u]))a.push(r[u]),s=!0;else if(!s)a.push(r[u]);else break;r=r.slice(u);const c=a.join(`
|
|
68
68
|
`),f=c.replace(this.rules.other.blockquoteSetextReplace,`
|
|
69
69
|
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");o=o?`${o}
|
|
70
70
|
${c}`:c,i=i?`${i}
|
|
71
|
-
${f}`:f;const
|
|
71
|
+
${f}`:f;const p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(f,l,!0),this.lexer.state.top=p,r.length===0)break;const y=l.at(-1);if((y==null?void 0:y.type)==="code")break;if((y==null?void 0:y.type)==="blockquote"){const x=y,v=x.raw+`
|
|
72
72
|
`+r.join(`
|
|
73
73
|
`),E=this.blockquote(v);l[l.length-1]=E,o=o.substring(0,o.length-x.raw.length)+E.raw,i=i.substring(0,i.length-x.text.length)+E.text;break}else if((y==null?void 0:y.type)==="list"){const x=y,v=x.raw+`
|
|
74
74
|
`+r.join(`
|
|
75
75
|
`),E=this.list(v);l[l.length-1]=E,o=o.substring(0,o.length-y.raw.length)+E.raw,i=i.substring(0,i.length-x.raw.length)+E.raw,r=v.substring(l.at(-1).raw.length).split(`
|
|
76
|
-
`);continue}}return{type:"blockquote",raw:o,tokens:l,text:i}}}list(t){let n=this.rules.block.list.exec(t);if(n){let r=n[1].trim();const o=r.length>1,i={type:"list",raw:"",ordered:o,start:o?+r.slice(0,-1):"",loose:!1,items:[]};r=o?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=o?r:"[*+-]");const l=this.rules.other.listItemRegex(r);let s=!1;for(;t;){let u=!1,c="",f="";if(!(n=l.exec(t))||this.rules.block.hr.test(t))break;c=n[0],t=t.substring(c.length);let
|
|
76
|
+
`);continue}}return{type:"blockquote",raw:o,tokens:l,text:i}}}list(t){let n=this.rules.block.list.exec(t);if(n){let r=n[1].trim();const o=r.length>1,i={type:"list",raw:"",ordered:o,start:o?+r.slice(0,-1):"",loose:!1,items:[]};r=o?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=o?r:"[*+-]");const l=this.rules.other.listItemRegex(r);let s=!1;for(;t;){let u=!1,c="",f="";if(!(n=l.exec(t))||this.rules.block.hr.test(t))break;c=n[0],t=t.substring(c.length);let p=n[2].split(`
|
|
77
77
|
`,1)[0].replace(this.rules.other.listReplaceTabs,d=>" ".repeat(3*d.length)),y=t.split(`
|
|
78
|
-
`,1)[0],x=!
|
|
79
|
-
`,t=t.substring(y.length+1),u=!0),!u){const d=this.rules.other.nextBulletRegex(v),g=this.rules.other.hrRegex(v),b=this.rules.other.fencesBeginRegex(v),S=this.rules.other.headingBeginRegex(v),w=this.rules.other.htmlBeginRegex(v);for(;t;){const
|
|
80
|
-
`,1)[0];let
|
|
81
|
-
`+
|
|
82
|
-
`+y}!x&&!y.trim()&&(x=!0),c+=
|
|
83
|
-
`,t=t.substring(
|
|
84
|
-
`):[],l={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===o.length){for(const a of o)this.rules.other.tableAlignRight.test(a)?l.align.push("right"):this.rules.other.tableAlignCenter.test(a)?l.align.push("center"):this.rules.other.tableAlignLeft.test(a)?l.align.push("left"):l.align.push(null);for(let a=0;a<r.length;a++)l.header.push({text:r[a],tokens:this.lexer.inline(r[a]),header:!0,align:l.align[a]});for(const a of i)l.rows.push(
|
|
85
|
-
`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const r=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;const l=
|
|
86
|
-
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){var o,i,l;for(this.options.pedantic&&(t=t.replace(
|
|
78
|
+
`,1)[0],x=!p.trim(),v=0;if(this.options.pedantic?(v=2,f=p.trimStart()):x?v=n[1].length+1:(v=n[2].search(this.rules.other.nonSpaceChar),v=v>4?1:v,f=p.slice(v),v+=n[1].length),x&&this.rules.other.blankLine.test(y)&&(c+=y+`
|
|
79
|
+
`,t=t.substring(y.length+1),u=!0),!u){const d=this.rules.other.nextBulletRegex(v),g=this.rules.other.hrRegex(v),b=this.rules.other.fencesBeginRegex(v),S=this.rules.other.headingBeginRegex(v),w=this.rules.other.htmlBeginRegex(v);for(;t;){const C=t.split(`
|
|
80
|
+
`,1)[0];let k;if(y=C,this.options.pedantic?(y=y.replace(this.rules.other.listReplaceNesting," "),k=y):k=y.replace(this.rules.other.tabCharGlobal," "),b.test(y)||S.test(y)||w.test(y)||d.test(y)||g.test(y))break;if(k.search(this.rules.other.nonSpaceChar)>=v||!y.trim())f+=`
|
|
81
|
+
`+k.slice(v);else{if(x||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||b.test(p)||S.test(p)||g.test(p))break;f+=`
|
|
82
|
+
`+y}!x&&!y.trim()&&(x=!0),c+=C+`
|
|
83
|
+
`,t=t.substring(C.length+1),p=k.slice(v)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(s=!0));let E=null,m;this.options.gfm&&(E=this.rules.other.listIsTask.exec(f),E&&(m=E[0]!=="[ ] ",f=f.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:c,task:!!E,checked:m,loose:!1,text:f,tokens:[]}),i.raw+=c}const a=i.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let u=0;u<i.items.length;u++)if(this.lexer.state.top=!1,i.items[u].tokens=this.lexer.blockTokens(i.items[u].text,[]),!i.loose){const c=i.items[u].tokens.filter(p=>p.type==="space"),f=c.length>0&&c.some(p=>this.rules.other.anyLine.test(p.raw));i.loose=f}if(i.loose)for(let u=0;u<i.items.length;u++)i.items[u].loose=!0;return i}}html(t){const n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){const n=this.rules.block.def.exec(t);if(n){const r=n[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),o=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:o,title:i}}}table(t){var s;const n=this.rules.block.table.exec(t);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;const r=Zd(n[1]),o=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=(s=n[3])!=null&&s.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
84
|
+
`):[],l={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===o.length){for(const a of o)this.rules.other.tableAlignRight.test(a)?l.align.push("right"):this.rules.other.tableAlignCenter.test(a)?l.align.push("center"):this.rules.other.tableAlignLeft.test(a)?l.align.push("left"):l.align.push(null);for(let a=0;a<r.length;a++)l.header.push({text:r[a],tokens:this.lexer.inline(r[a]),header:!0,align:l.align[a]});for(const a of i)l.rows.push(Zd(a,l.header.length).map((u,c)=>({text:u,tokens:this.lexer.inline(u),header:!1,align:l.align[c]})));return l}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const r=n[1].charAt(n[1].length-1)===`
|
|
85
|
+
`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const r=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;const l=Gr(r.slice(0,-1),"\\");if((r.length-l.length)%2===0)return}else{const l=_g(n[2],"()");if(l>-1){const a=(n[0].indexOf("!")===0?5:4)+n[1].length+l;n[2]=n[2].substring(0,l),n[0]=n[0].substring(0,a).trim(),n[3]=""}}let o=n[2],i="";if(this.options.pedantic){const l=this.rules.other.pedanticHrefTitle.exec(o);l&&(o=l[1],i=l[3])}else i=n[3]?n[3].slice(1,-1):"";return o=o.trim(),this.rules.other.startAngleBracket.test(o)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?o=o.slice(1):o=o.slice(1,-1)),Wd(n,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){const o=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=n[o.toLowerCase()];if(!i){const l=r[0].charAt(0);return{type:"text",raw:l,text:l}}return Wd(r,i,r[0],this.lexer,this.rules)}}emStrong(t,n,r=""){let o=this.rules.inline.emStrongLDelim.exec(t);if(!o||o[3]&&r.match(this.rules.other.unicodeAlphaNumeric))return;if(!(o[1]||o[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const l=[...o[0]].length-1;let s,a,u=l,c=0;const f=o[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(f.lastIndex=0,n=n.slice(-1*t.length+l);(o=f.exec(n))!=null;){if(s=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!s)continue;if(a=[...s].length,o[3]||o[4]){u+=a;continue}else if((o[5]||o[6])&&l%3&&!((l+a)%3)){c+=a;continue}if(u-=a,u>0)continue;a=Math.min(a,a+u+c);const p=[...o[0]][0].length,y=t.slice(0,l+o.index+p+a);if(Math.min(l,a)%2){const v=y.slice(1,-1);return{type:"em",raw:y,text:v,tokens:this.lexer.inlineTokens(v)}}const x=y.slice(2,-2);return{type:"strong",raw:y,text:x,tokens:this.lexer.inlineTokens(x)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(this.rules.other.newLineCharGlobal," ");const o=this.rules.other.nonSpaceChar.test(r),i=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return o&&i&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:n[0],text:r}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let r,o;return n[2]==="@"?(r=n[1],o="mailto:"+r):(r=n[1],o=r),{type:"link",raw:n[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}url(t){var r;let n;if(n=this.rules.inline.url.exec(t)){let o,i;if(n[2]==="@")o=n[0],i="mailto:"+o;else{let l;do l=n[0],n[0]=((r=this.rules.inline._backpedal.exec(n[0]))==null?void 0:r[0])??"";while(l!==n[0]);o=n[0],n[1]==="www."?i="http://"+n[0]:i=n[0]}return{type:"link",raw:n[0],text:o,href:i,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){const r=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:r}}}}class We{constructor(t){H(this,"tokens");H(this,"options");H(this,"state");H(this,"tokenizer");H(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||pn,this.options.tokenizer=this.options.tokenizer||new Ti,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={other:je,block:Li.normal,inline:Xr.normal};this.options.pedantic?(n.block=Li.pedantic,n.inline=Xr.pedantic):this.options.gfm&&(n.block=Li.gfm,this.options.breaks?n.inline=Xr.breaks:n.inline=Xr.gfm),this.tokenizer.rules=n}static get rules(){return{block:Li,inline:Xr}}static lex(t,n){return new We(n).lex(t)}static lexInline(t,n){return new We(n).inlineTokens(t)}lex(t){t=t.replace(je.carriageReturn,`
|
|
86
|
+
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){var o,i,l;for(this.options.pedantic&&(t=t.replace(je.tabCharGlobal," ").replace(je.spaceLine,""));t;){let s;if((i=(o=this.options.extensions)==null?void 0:o.block)!=null&&i.some(u=>(s=u.call({lexer:this},t,n))?(t=t.substring(s.raw.length),n.push(s),!0):!1))continue;if(s=this.tokenizer.space(t)){t=t.substring(s.raw.length);const u=n.at(-1);s.raw.length===1&&u!==void 0?u.raw+=`
|
|
87
87
|
`:n.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length);const u=n.at(-1);(u==null?void 0:u.type)==="paragraph"||(u==null?void 0:u.type)==="text"?(u.raw+=`
|
|
88
88
|
`+s.raw,u.text+=`
|
|
89
89
|
`+s.text,this.inlineQueue.at(-1).src=u.text):n.push(s);continue}if(s=this.tokenizer.fences(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.heading(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.hr(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.blockquote(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.list(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.html(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.def(t)){t=t.substring(s.raw.length);const u=n.at(-1);(u==null?void 0:u.type)==="paragraph"||(u==null?void 0:u.type)==="text"?(u.raw+=`
|
|
90
90
|
`+s.raw,u.text+=`
|
|
91
|
-
`+s.raw,this.inlineQueue.at(-1).src=u.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title});continue}if(s=this.tokenizer.table(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.lheading(t)){t=t.substring(s.raw.length),n.push(s);continue}let a=t;if((l=this.options.extensions)!=null&&l.startBlock){let u=1/0;const c=t.slice(1);let f;this.options.extensions.startBlock.forEach(
|
|
91
|
+
`+s.raw,this.inlineQueue.at(-1).src=u.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title});continue}if(s=this.tokenizer.table(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.lheading(t)){t=t.substring(s.raw.length),n.push(s);continue}let a=t;if((l=this.options.extensions)!=null&&l.startBlock){let u=1/0;const c=t.slice(1);let f;this.options.extensions.startBlock.forEach(p=>{f=p.call({lexer:this},c),typeof f=="number"&&f>=0&&(u=Math.min(u,f))}),u<1/0&&u>=0&&(a=t.substring(0,u+1))}if(this.state.top&&(s=this.tokenizer.paragraph(a))){const u=n.at(-1);r&&(u==null?void 0:u.type)==="paragraph"?(u.raw+=`
|
|
92
92
|
`+s.raw,u.text+=`
|
|
93
93
|
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):n.push(s),r=a.length!==t.length,t=t.substring(s.raw.length);continue}if(s=this.tokenizer.text(t)){t=t.substring(s.raw.length);const u=n.at(-1);(u==null?void 0:u.type)==="text"?(u.raw+=`
|
|
94
94
|
`+s.raw,u.text+=`
|
|
95
|
-
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):n.push(s);continue}if(t){const u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var s,a,u;let r=t,o=null;if(this.tokens.links){const c=Object.keys(this.tokens.links);if(c.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)c.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,o.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i=!1,l="";for(;t;){i||(l=""),i=!1;let c;if((a=(s=this.options.extensions)==null?void 0:s.inline)!=null&&a.some(
|
|
96
|
-
`;return o?'<pre><code class="language-'+
|
|
97
|
-
`:"<pre><code>"+(r?i:
|
|
95
|
+
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):n.push(s);continue}if(t){const u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var s,a,u;let r=t,o=null;if(this.tokens.links){const c=Object.keys(this.tokens.links);if(c.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)c.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,o.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i=!1,l="";for(;t;){i||(l=""),i=!1;let c;if((a=(s=this.options.extensions)==null?void 0:s.inline)!=null&&a.some(p=>(c=p.call({lexer:this},t,n))?(t=t.substring(c.raw.length),n.push(c),!0):!1))continue;if(c=this.tokenizer.escape(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.tag(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.link(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(c.raw.length);const p=n.at(-1);c.type==="text"&&(p==null?void 0:p.type)==="text"?(p.raw+=c.raw,p.text+=c.text):n.push(c);continue}if(c=this.tokenizer.emStrong(t,r,l)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.codespan(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.br(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.del(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.autolink(t)){t=t.substring(c.raw.length),n.push(c);continue}if(!this.state.inLink&&(c=this.tokenizer.url(t))){t=t.substring(c.raw.length),n.push(c);continue}let f=t;if((u=this.options.extensions)!=null&&u.startInline){let p=1/0;const y=t.slice(1);let x;this.options.extensions.startInline.forEach(v=>{x=v.call({lexer:this},y),typeof x=="number"&&x>=0&&(p=Math.min(p,x))}),p<1/0&&p>=0&&(f=t.substring(0,p+1))}if(c=this.tokenizer.inlineText(f)){t=t.substring(c.raw.length),c.raw.slice(-1)!=="_"&&(l=c.raw.slice(-1)),i=!0;const p=n.at(-1);(p==null?void 0:p.type)==="text"?(p.raw+=c.raw,p.text+=c.text):n.push(c);continue}if(t){const p="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return n}}class Pi{constructor(t){H(this,"options");H(this,"parser");this.options=t||pn}space(t){return""}code({text:t,lang:n,escaped:r}){var l;const o=(l=(n||"").match(je.notSpaceStart))==null?void 0:l[0],i=t.replace(je.endingNewline,"")+`
|
|
96
|
+
`;return o?'<pre><code class="language-'+ct(o)+'">'+(r?i:ct(i,!0))+`</code></pre>
|
|
97
|
+
`:"<pre><code>"+(r?i:ct(i,!0))+`</code></pre>
|
|
98
98
|
`}blockquote({tokens:t}){return`<blockquote>
|
|
99
99
|
${this.parser.parse(t)}</blockquote>
|
|
100
100
|
`}html({text:t}){return t}heading({tokens:t,depth:n}){return`<h${n}>${this.parser.parseInline(t)}</h${n}>
|
|
101
101
|
`}hr(t){return`<hr>
|
|
102
102
|
`}list(t){const n=t.ordered,r=t.start;let o="";for(let s=0;s<t.items.length;s++){const a=t.items[s];o+=this.listitem(a)}const i=n?"ol":"ul",l=n&&r!==1?' start="'+r+'"':"";return"<"+i+l+`>
|
|
103
103
|
`+o+"</"+i+`>
|
|
104
|
-
`}listitem(t){var r;let n="";if(t.task){const o=this.checkbox({checked:!!t.checked});t.loose?((r=t.tokens[0])==null?void 0:r.type)==="paragraph"?(t.tokens[0].text=o+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=o+" "+
|
|
104
|
+
`}listitem(t){var r;let n="";if(t.task){const o=this.checkbox({checked:!!t.checked});t.loose?((r=t.tokens[0])==null?void 0:r.type)==="paragraph"?(t.tokens[0].text=o+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=o+" "+ct(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:o+" ",text:o+" ",escaped:!0}):n+=o+" "}return n+=this.parser.parse(t.tokens,!!t.loose),`<li>${n}</li>
|
|
105
105
|
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
106
106
|
`}table(t){let n="",r="";for(let i=0;i<t.header.length;i++)r+=this.tablecell(t.header[i]);n+=this.tablerow({text:r});let o="";for(let i=0;i<t.rows.length;i++){const l=t.rows[i];r="";for(let s=0;s<l.length;s++)r+=this.tablecell(l[s]);o+=this.tablerow({text:r})}return o&&(o=`<tbody>${o}</tbody>`),`<table>
|
|
107
107
|
<thead>
|
|
@@ -110,13 +110,13 @@ ${this.parser.parse(t)}</blockquote>
|
|
|
110
110
|
`}tablerow({text:t}){return`<tr>
|
|
111
111
|
${t}</tr>
|
|
112
112
|
`}tablecell(t){const n=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+n+`</${r}>
|
|
113
|
-
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${
|
|
114
|
-
`+this.renderer.text(u);n?r+=this.renderer.paragraph({type:"paragraph",raw:c,text:c,tokens:[{type:"text",raw:c,text:c,escaped:!0}]}):r+=c;continue}default:{const u='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return r}parseInline(t,n=this.renderer){var o,i;let r="";for(let l=0;l<t.length;l++){const s=t[l];if((i=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&i[s.type]){const u=this.options.extensions.renderers[s.type].call({parser:this},s);if(u!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){r+=u||"";continue}}const a=s;switch(a.type){case"escape":{r+=n.text(a);break}case"html":{r+=n.html(a);break}case"link":{r+=n.link(a);break}case"image":{r+=n.image(a);break}case"strong":{r+=n.strong(a);break}case"em":{r+=n.em(a);break}case"codespan":{r+=n.codespan(a);break}case"br":{r+=n.br(a);break}case"del":{r+=n.del(a);break}case"text":{r+=n.text(a);break}default:{const u='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return r}}class
|
|
115
|
-
Please report this to https://github.com/markedjs/marked.`,t){const o="<p>An error occurred:</p><pre>"+
|
|
113
|
+
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${ct(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:r}){const o=this.parser.parseInline(r),i=Ud(t);if(i===null)return o;t=i;let l='<a href="'+t+'"';return n&&(l+=' title="'+ct(n)+'"'),l+=">"+o+"</a>",l}image({href:t,title:n,text:r}){const o=Ud(t);if(o===null)return ct(r);t=o;let i=`<img src="${t}" alt="${r}"`;return n&&(i+=` title="${ct(n)}"`),i+=">",i}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:ct(t.text)}}class da{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}}class Qe{constructor(t){H(this,"options");H(this,"renderer");H(this,"textRenderer");this.options=t||pn,this.options.renderer=this.options.renderer||new Pi,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new da}static parse(t,n){return new Qe(n).parse(t)}static parseInline(t,n){return new Qe(n).parseInline(t)}parse(t,n=!0){var o,i;let r="";for(let l=0;l<t.length;l++){const s=t[l];if((i=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&i[s.type]){const u=s,c=this.options.extensions.renderers[u.type].call({parser:this},u);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(u.type)){r+=c||"";continue}}const a=s;switch(a.type){case"space":{r+=this.renderer.space(a);continue}case"hr":{r+=this.renderer.hr(a);continue}case"heading":{r+=this.renderer.heading(a);continue}case"code":{r+=this.renderer.code(a);continue}case"table":{r+=this.renderer.table(a);continue}case"blockquote":{r+=this.renderer.blockquote(a);continue}case"list":{r+=this.renderer.list(a);continue}case"html":{r+=this.renderer.html(a);continue}case"paragraph":{r+=this.renderer.paragraph(a);continue}case"text":{let u=a,c=this.renderer.text(u);for(;l+1<t.length&&t[l+1].type==="text";)u=t[++l],c+=`
|
|
114
|
+
`+this.renderer.text(u);n?r+=this.renderer.paragraph({type:"paragraph",raw:c,text:c,tokens:[{type:"text",raw:c,text:c,escaped:!0}]}):r+=c;continue}default:{const u='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return r}parseInline(t,n=this.renderer){var o,i;let r="";for(let l=0;l<t.length;l++){const s=t[l];if((i=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&i[s.type]){const u=this.options.extensions.renderers[s.type].call({parser:this},s);if(u!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){r+=u||"";continue}}const a=s;switch(a.type){case"escape":{r+=n.text(a);break}case"html":{r+=n.html(a);break}case"link":{r+=n.link(a);break}case"image":{r+=n.image(a);break}case"strong":{r+=n.strong(a);break}case"em":{r+=n.em(a);break}case"codespan":{r+=n.codespan(a);break}case"br":{r+=n.br(a);break}case"del":{r+=n.del(a);break}case"text":{r+=n.text(a);break}default:{const u='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return r}}class Kr{constructor(t){H(this,"options");H(this,"block");this.options=t||pn}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?We.lex:We.lexInline}provideParser(){return this.block?Qe.parse:Qe.parseInline}}H(Kr,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class jg{constructor(...t){H(this,"defaults",oa());H(this,"options",this.setOptions);H(this,"parse",this.parseMarkdown(!0));H(this,"parseInline",this.parseMarkdown(!1));H(this,"Parser",Qe);H(this,"Renderer",Pi);H(this,"TextRenderer",da);H(this,"Lexer",We);H(this,"Tokenizer",Ti);H(this,"Hooks",Kr);this.use(...t)}walkTokens(t,n){var o,i;let r=[];for(const l of t)switch(r=r.concat(n.call(this,l)),l.type){case"table":{const s=l;for(const a of s.header)r=r.concat(this.walkTokens(a.tokens,n));for(const a of s.rows)for(const u of a)r=r.concat(this.walkTokens(u.tokens,n));break}case"list":{const s=l;r=r.concat(this.walkTokens(s.items,n));break}default:{const s=l;(i=(o=this.defaults.extensions)==null?void 0:o.childTokens)!=null&&i[s.type]?this.defaults.extensions.childTokens[s.type].forEach(a=>{const u=s[a].flat(1/0);r=r.concat(this.walkTokens(u,n))}):s.tokens&&(r=r.concat(this.walkTokens(s.tokens,n)))}}return r}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{const o={...r};if(o.async=this.defaults.async||o.async||!1,r.extensions&&(r.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const l=n.renderers[i.name];l?n.renderers[i.name]=function(...s){let a=i.renderer.apply(this,s);return a===!1&&(a=l.apply(this,s)),a}:n.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const l=n[i.level];l?l.unshift(i.tokenizer):n[i.level]=[i.tokenizer],i.start&&(i.level==="block"?n.startBlock?n.startBlock.push(i.start):n.startBlock=[i.start]:i.level==="inline"&&(n.startInline?n.startInline.push(i.start):n.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(n.childTokens[i.name]=i.childTokens)}),o.extensions=n),r.renderer){const i=this.defaults.renderer||new Pi(this.defaults);for(const l in r.renderer){if(!(l in i))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;const s=l,a=r.renderer[s],u=i[s];i[s]=(...c)=>{let f=a.apply(i,c);return f===!1&&(f=u.apply(i,c)),f||""}}o.renderer=i}if(r.tokenizer){const i=this.defaults.tokenizer||new Ti(this.defaults);for(const l in r.tokenizer){if(!(l in i))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;const s=l,a=r.tokenizer[s],u=i[s];i[s]=(...c)=>{let f=a.apply(i,c);return f===!1&&(f=u.apply(i,c)),f}}o.tokenizer=i}if(r.hooks){const i=this.defaults.hooks||new Kr;for(const l in r.hooks){if(!(l in i))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;const s=l,a=r.hooks[s],u=i[s];Kr.passThroughHooks.has(l)?i[s]=c=>{if(this.defaults.async)return Promise.resolve(a.call(i,c)).then(p=>u.call(i,p));const f=a.call(i,c);return u.call(i,f)}:i[s]=(...c)=>{let f=a.apply(i,c);return f===!1&&(f=u.apply(i,c)),f}}o.hooks=i}if(r.walkTokens){const i=this.defaults.walkTokens,l=r.walkTokens;o.walkTokens=function(s){let a=[];return a.push(l.call(this,s)),i&&(a=a.concat(i.call(this,s))),a}}this.defaults={...this.defaults,...o}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return We.lex(t,n??this.defaults)}parser(t,n){return Qe.parse(t,n??this.defaults)}parseMarkdown(t){return(r,o)=>{const i={...o},l={...this.defaults,...i},s=this.onError(!!l.silent,!!l.async);if(this.defaults.async===!0&&i.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));l.hooks&&(l.hooks.options=l,l.hooks.block=t);const a=l.hooks?l.hooks.provideLexer():t?We.lex:We.lexInline,u=l.hooks?l.hooks.provideParser():t?Qe.parse:Qe.parseInline;if(l.async)return Promise.resolve(l.hooks?l.hooks.preprocess(r):r).then(c=>a(c,l)).then(c=>l.hooks?l.hooks.processAllTokens(c):c).then(c=>l.walkTokens?Promise.all(this.walkTokens(c,l.walkTokens)).then(()=>c):c).then(c=>u(c,l)).then(c=>l.hooks?l.hooks.postprocess(c):c).catch(s);try{l.hooks&&(r=l.hooks.preprocess(r));let c=a(r,l);l.hooks&&(c=l.hooks.processAllTokens(c)),l.walkTokens&&this.walkTokens(c,l.walkTokens);let f=u(c,l);return l.hooks&&(f=l.hooks.postprocess(f)),f}catch(c){return s(c)}}}onError(t,n){return r=>{if(r.message+=`
|
|
115
|
+
Please report this to https://github.com/markedjs/marked.`,t){const o="<p>An error occurred:</p><pre>"+ct(r.message+"",!0)+"</pre>";return n?Promise.resolve(o):o}if(n)return Promise.reject(r);throw r}}}const hn=new jg;function F(e,t){return hn.parse(e,t)}F.options=F.setOptions=function(e){return hn.setOptions(e),F.defaults=hn.defaults,Md(F.defaults),F},F.getDefaults=oa,F.defaults=pn,F.use=function(...e){return hn.use(...e),F.defaults=hn.defaults,Md(F.defaults),F},F.walkTokens=function(e,t){return hn.walkTokens(e,t)},F.parseInline=hn.parseInline,F.Parser=Qe,F.parser=Qe.parse,F.Renderer=Pi,F.TextRenderer=da,F.Lexer=We,F.lexer=We.lex,F.Tokenizer=Ti,F.Hooks=Kr,F.parse=F,F.options,F.setOptions,F.use,F.walkTokens,F.parseInline,Qe.parse,We.lex;const Lg=30,Jr=17,Tg=e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,pa=990,Ri=pa+300,Pg=({d:e})=>{const t=Math.PI/2,n=e/Jr/2.8,r=t*Math.min(n,1),o=n<1?(e-Math.sin(r))/Math.cos(r)*.5:0,i=-e,l=e,s=e-Jr*Math.sin(r),a=Jr*Math.cos(r),u=s-o*Math.cos(r),c=a-o*Math.sin(r);return h.jsxs(h.Fragment,{children:[h.jsx("circle",{cx:i,cy:"0",r:Jr}),h.jsx("circle",{cx:l,cy:"0",r:Jr}),n<.45?h.jsx("path",{d:`
|
|
116
116
|
M${-s},${a}
|
|
117
117
|
C${-u},${c} ${u},${c} ${s},${a} L${s},${-a}
|
|
118
118
|
C${u},${-c} ${-u},${-c} ${-s},${-a} Z
|
|
119
|
-
`}):null]})},rg=e=>e<1/3?e*3:e<2/3?1:3-e*3,Sf=e=>e<1/3?0:e<2/3?(e-1/3)*3:1,og=({label:e,className:t})=>{const[n,r]=R.useState(null),o=R.useRef(!1);if(R.useEffect(()=>{const y=x=>{r(v=>v==null?{start:x,current:x}:{...v,current:x}),o.current||requestAnimationFrame(y)};o.current||requestAnimationFrame(y)},[o,r]),n==null)return null;let i,l;const s=n.current-n.start,a=s%ki,u=Math.floor(s/ki);if(a<na){const y=s/ki,x=Math.floor(y),v=tg((y-x)*(ki/na));i=rg(v),l=u%2?Sf(v):1+Sf(v)}else i=0,l=0;const c=i>.2?0:5*(.2-i)/.2,f=.3,h=i>f?1-.25*(i-f)/(1-f):1;return p.jsx("div",{className:U("h-full w-full flex items-center justify-center",t),children:p.jsxs("div",{className:"flex flex-col items-center justify-center gap-3",children:[p.jsx("div",{className:U("w-8 h-8 block text-accent"),children:p.jsx("svg",{viewBox:"0 0 100 100",stroke:"none",fill:"currentColor",style:{filter:`drop-shadow(0 0 ${c}px var(--accent))`},children:p.jsx("g",{transform:`translate(50 50) rotate(${l*90})`,opacity:h,children:p.jsx(ng,{d:eg*i})})})}),p.jsx("p",{className:"text-primary-60",children:e})]})})},ig=({handler:e,message:t,responseIndex:n,messageIndex:r,className:o})=>t.choices.length>0?p.jsx("div",{className:o,children:p.jsx("ul",{className:"space-y-2",children:t.choices.map((i,l)=>t.selectedChoiceId==null||i.choiceId===t.selectedChoiceId?p.jsx("li",{className:"w-full",children:p.jsx(Ar,{type:"ghost",Icon:hi,onClick:t.selectedChoiceId==null?()=>{e.sendChoice(i.choiceId,{},{responseIndex:n,messageIndex:r})}:void 0,label:i.choiceText})},l):null)})}):null,ra=({text:e,files:t})=>p.jsxs("div",{className:"space-y-2",children:[p.jsx("div",{className:"flex justify-end pl-10 text-base",children:p.jsx("div",{className:"text-primary-60 p-3 rounded-inner bg-primary-5 whitespace-pre-wrap",children:e})}),t!=null?p.jsx("div",{className:"flex flex-wrap justify-end gap-2",children:t.map((n,r)=>p.jsx("img",{className:"rounded-inner h-20",src:URL.createObjectURL(n)},r))}):null]}),lg=({message:e})=>p.jsxs("div",{className:"bg-error-secondary text-error-primary text-base p-3 rounded-inner flex items-center gap-2",children:[p.jsx(of,{className:"w-4 h-4 flex-none"}),p.jsx("p",{className:"text-primary-80",children:e})]}),sg=({responses:e,colorMode:t,uploadedFiles:n,lastBotResponseIndex:r,isWaiting:o,customModalities:i,handler:l,className:s})=>{const a=R.useRef(null),u=R.useRef(null);return R.useEffect(()=>{o||setTimeout(()=>{var c;(c=u.current)==null||c.scrollIntoView({behavior:"smooth"})})},[o]),p.jsxs("div",{className:U("relative",s),children:[p.jsx("div",{"data-theme":t==="dark"?"light":"dark",className:U("absolute inset-x-0 h-[1px] top-0 bg-background opacity-[0.01] backdrop-blur-md")}),o?p.jsx(og,{label:"Thinking",className:"absolute inset-0"}):null,p.jsx("div",{className:U("absolute inset-0 p-2 md:p-3 overflow-y-auto no-scrollbar space-y-8",o?"opacity-0":"opacity-100"),ref:a,children:e.map((c,f)=>{if(c.type==="user")return c.payload.type==="text"?p.jsx(ra,{text:c.payload.text},f):c.payload.type==="structured"&&c.payload.utterance!=null&&c.payload.uploadIds!=null?p.jsx(ra,{text:c.payload.utterance,files:c.payload.uploadIds.map(y=>n[y]).filter(y=>y!=null)},f):null;if(c.type==="failure")return p.jsx(lg,{message:c.payload.text},f);const h=r!=null&&f===r;return p.jsxs(R.Fragment,{children:[p.jsxs("div",{className:U("space-y-2",h?"min-h-full":""),ref:h?u:void 0,children:[c.payload.messages.map((y,x)=>p.jsx("div",{className:"text-base",children:p.jsx("div",{className:"pr-10",dangerouslySetInnerHTML:{__html:B(y.text)}})},x)),Object.entries(c.payload.modalities??{}).map(([y,x])=>{const v=i[y];return v==null?(console.warn(`Custom component implementation missing for the ${y} modality.`),null):p.jsx(v,{data:x,conversationHandler:l},y)})]}),c.payload.messages.map((y,x)=>{if(y.selectedChoiceId!=null){const v=y.choices.find(E=>E.choiceId===y.selectedChoiceId);return v==null?null:p.jsx(ra,{text:v.choiceText},x)}return null})]},f)})},"messages")]})},ag=()=>p.jsxs("div",{className:U("flex-grow flex flex-col items-center justify-center gap-6 text-primary-80","fullscreen-error"),children:[p.jsx(Us,{className:"w-20 h-20 text-primary-20"}),p.jsxs("div",{className:"text-center",children:[p.jsx("h3",{className:"text-xl mb-2",children:"Oops!"}),p.jsx("p",{children:"Something went wrong."}),p.jsx("p",{children:"Try again later."})]})]});function oa(){return oa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oa.apply(this,arguments)}function ug(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var cg=R.useLayoutEffect,dg=function(t){var n=bt.useRef(t);return cg(function(){n.current=t}),n},_f=function(t,n){if(typeof t=="function"){t(n);return}t.current=n},fg=function(t,n){var r=bt.useRef();return bt.useCallback(function(o){t.current=o,r.current&&_f(r.current,null),r.current=n,n&&_f(n,o)},[n])},Ef={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},pg=function(t){Object.keys(Ef).forEach(function(n){t.style.setProperty(n,Ef[n],"important")})},Lf=pg,Ee=null,jf=function(t,n){var r=t.scrollHeight;return n.sizingStyle.boxSizing==="border-box"?r+n.borderSize:r-n.paddingSize};function hg(e,t,n,r){n===void 0&&(n=1),r===void 0&&(r=1/0),Ee||(Ee=document.createElement("textarea"),Ee.setAttribute("tabindex","-1"),Ee.setAttribute("aria-hidden","true"),Lf(Ee)),Ee.parentNode===null&&document.body.appendChild(Ee);var o=e.paddingSize,i=e.borderSize,l=e.sizingStyle,s=l.boxSizing;Object.keys(l).forEach(function(h){var y=h;Ee.style[y]=l[y]}),Lf(Ee),Ee.value=t;var a=jf(Ee,e);Ee.value=t,a=jf(Ee,e),Ee.value="x";var u=Ee.scrollHeight-o,c=u*n;s==="border-box"&&(c=c+o+i),a=Math.max(c,a);var f=u*r;return s==="border-box"&&(f=f+o+i),a=Math.min(f,a),[a,u]}var Tf=function(){},mg=function(t,n){return t.reduce(function(r,o){return r[o]=n[o],r},{})},gg=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],yg=!!document.documentElement.currentStyle,vg=function(t){var n=window.getComputedStyle(t);if(n===null)return null;var r=mg(gg,n),o=r.boxSizing;if(o==="")return null;yg&&o==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var i=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),l=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:i,borderSize:l}},wg=vg;function Pf(e,t,n){var r=dg(n);R.useLayoutEffect(function(){var o=function(l){return r.current(l)};if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}var xg=function(t){Pf(window,"resize",t)},kg=function(t){Pf(document.fonts,"loadingdone",t)},Cg=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],bg=function(t,n){var r=t.cacheMeasurements,o=t.maxRows,i=t.minRows,l=t.onChange,s=l===void 0?Tf:l,a=t.onHeightChange,u=a===void 0?Tf:a,c=ug(t,Cg),f=c.value!==void 0,h=R.useRef(null),y=fg(h,n),x=R.useRef(0),v=R.useRef(),E=function(){var g=h.current,b=r&&v.current?v.current:wg(g);if(b){v.current=b;var S=hg(b,g.value||g.placeholder||"x",i,o),w=S[0],k=S[1];x.current!==w&&(x.current=w,g.style.setProperty("height",w+"px","important"),u(w,{rowHeight:k}))}},m=function(g){f||E(),s(g)};return R.useLayoutEffect(E),xg(E),kg(E),R.createElement("textarea",oa({},c,{onChange:m,ref:y}))},Sg=R.forwardRef(bg);const Rf=8,_g=({className:e,choiceMessage:t,handler:n,uploadUrl:r,onFileUpload:o})=>{const[i,l]=R.useState(!1),[s,a]=R.useState(""),[u,c]=R.useState(null),[f,h]=R.useState(null),y=R.useRef(null),x=R.useRef(null),v=uf();R.useEffect(()=>{var C;v&&((C=x.current)==null||C.focus())},[v]);const E=R.useMemo(()=>s.trim()==="",[s]),[m,d]=R.useState(!1),g=E&&f==null||m,b=()=>{if(g)return;const C=(P,T)=>{(T==null?void 0:T.type)==="bot"&&(d(!1),n.unsubscribe(C),a(""),h(null),v&&setTimeout(()=>{var D;(D=x.current)==null||D.focus()}))};n.subscribe(C),d(!0),r!=null&&f!=null?n.sendStructured({uploadIds:[r.uploadId],utterance:s}):n.sendText(s)},S=r!=null,w=()=>{c("Something went wrong. Please try again.")},k=C=>{var Y,ce;if(r==null){w();return}const P=(ce=(Y=C.target)==null?void 0:Y.files)==null?void 0:ce[0];if(P==null){w();return}const{name:T,size:D,type:ne}=P;if(h({name:T,size:D,type:ne}),D/1024**2>Rf){c(`The file is too big. Max file size: ${Rf}mb`);return}fetch(r.url,{method:"PUT",headers:{"Content-Type":"image/jpeg"},body:P}).then(()=>{c(null),o({uploadId:r.uploadId,file:P})}).catch(()=>{w()})};return p.jsxs("div",{className:U("p-2 md:p-3 relative",e),children:[t!=null?p.jsx(ig,{...t,handler:n,className:U("absolute inset-x-0 z-10 top-0 transform -translate-y-full px-2 md:px-3",t.message.selectedChoiceId!=null?"md:top-2":"md:top-1")}):null,(t==null?void 0:t.message.selectedChoiceId)!=null?null:p.jsxs("div",{className:U("bg-primary-5 transition-colors duration-200 p-2 rounded-outer text-base font-normal",i?"":"hover:bg-secondary-20"),children:[u!=null&&p.jsxs("div",{className:"flex items-center py-1 mb-2 w-full bg-error-secondary rounded-inner",children:[p.jsx(Ws,{size:16}),p.jsx("span",{className:"truncate ml-1",children:u})]}),f&&p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"flex items-center justify-between mb-2 w-full",children:[p.jsxs("p",{className:"flex items-center truncate mx-2",children:[u!=null?p.jsx(Ws,{size:16,className:"text-error-primary"}):p.jsx(Kd,{size:16,className:"text-primary-60"}),p.jsx("span",{className:"truncate ml-3",children:f.name})]}),p.jsx(xt,{className:"flex-none",Icon:ef,label:"Delete",onClick:S?()=>{h(null),c(null),y.current!=null&&(y.current.value="")}:void 0,type:"ghost"})]}),p.jsx("hr",{className:"border-b-px border-background mb-2 -mx-2"})]}),p.jsxs("div",{className:U("flex items-end"),children:[S&&f==null?p.jsxs(p.Fragment,{children:[p.jsx("label",{htmlFor:"file-upload",className:"p-3 w-10 h-10 flex-none block transition-colors rounded-inner bg-primary-80 hover:bg-primary-80 text-secondary-80 cursor-pointer",children:p.jsx(Zs,{})}),p.jsx("input",{type:"file",id:"file-upload",className:"sr-only",accept:".jpg, .jpeg, .png, .webp, .mp4, .mpeg4, .avi, .mov, .pdf",onChange:k,ref:y})]}):p.jsx(xt,{className:"flex-none",Icon:Zs,label:"Upload file",type:"ghost"}),p.jsx(Sg,{disabled:m,className:U("h-10 w-full resize-none mr-2 px-2 py-2 outline-none","bg-transparent text-primary-80 placeholder:text-primary-40 caret-accent","disabled:text-primary-40"),placeholder:"Type something",maxRows:10,onFocus:()=>{l(!0)},onBlur:()=>{l(!1)},value:s,onChange:C=>{a(C.target.value)},onKeyDown:C=>{C.key==="Enter"&&!C.shiftKey&&(C.preventDefault(),b())},ref:x}),p.jsx(xt,{className:"flex-none",label:"Send message",onClick:g?void 0:()=>{b()},type:"main",Icon:hi})]})]})]})},Eg=e=>({"--font-family":e.fontFamily,"--inner-border-radius":e.innerBorderRadius,"--outer-border-radius":e.outerBorderRadius,"--primary-80":e.primary80,"--primary-60":e.primary60,"--primary-40":e.primary40,"--primary-20":e.primary20,"--primary-10":e.primary10,"--primary-5":e.primary5,"--primary-1":e.primary1,"--secondary-80":e.secondary80,"--secondary-60":e.secondary60,"--secondary-40":e.secondary40,"--secondary-20":e.secondary20,"--secondary-10":e.secondary10,"--secondary-5":e.secondary5,"--secondary-1":e.secondary1,"--accent":e.accent,"--accent-20":e.accent20,"--background":e.background,"--overlay":e.overlay,"--warning-primary":e.warningPrimary,"--warning-secondary":e.warningSecondary,"--error-primary":e.errorPrimary,"--error-secondary":e.errorSecondary}),Lg={fontFamily:'"Neue Haas Grotesk", sans-serif',innerBorderRadius:"12px",outerBorderRadius:"20px",primary80:"rgba(0, 2, 9, 0.8)",primary60:"rgba(0, 2, 9, 0.6)",primary40:"rgba(0, 2, 9, 0.4)",primary20:"rgba(0, 2, 9, 0.2)",primary10:"rgba(0, 2, 9, 0.1)",primary5:"rgba(0, 2, 9, 0.05)",primary1:"rgba(0, 2, 9, 0.01)",secondary80:"rgba(255, 255, 255, 0.85)",secondary60:"rgba(255, 255, 255, 0.65)",secondary40:"rgba(255, 255, 255, 0.45)",secondary20:"rgba(255, 255, 255, 0.25)",secondary10:"rgba(255, 255, 255, 0.15)",secondary5:"rgba(255, 255, 255, 0.08)",secondary1:"rgba(255, 255, 255, 0.01)",accent:"rgb(28, 99, 218)",accent20:"rgba(28, 99, 218, 0.2)",background:"rgba(220, 220, 220, 0.9)",overlay:"rgba(0, 2, 9, 0.4)",warningPrimary:"rgb(220, 159, 3)",warningSecondary:"rgb(255, 242, 209)",errorPrimary:"rgb(157, 3, 3)",errorSecondary:"rgb(255, 223, 230)"},jg={fontFamily:'"Neue Haas Grotesk", sans-serif',innerBorderRadius:"12px",outerBorderRadius:"20px",primary80:"rgba(255, 255, 255, 0.85)",primary60:"rgba(255, 255, 255, 0.65)",primary40:"rgba(255, 255, 255, 0.45)",primary20:"rgba(255, 255, 255, 0.25)",primary10:"rgba(255, 255, 255, 0.15)",primary5:"rgba(255, 255, 255, 0.08)",primary1:"rgba(255, 255, 255, 0.01)",secondary80:"rgba(0, 2, 9, 0.8)",secondary60:"rgba(0, 2, 9, 0.6)",secondary40:"rgba(0, 2, 9, 0.4)",secondary20:"rgba(0, 2, 9, 0.2)",secondary10:"rgba(0, 2, 9, 0.1)",secondary5:"rgba(0, 2, 9, 0.05)",secondary1:"rgba(0, 2, 9, 0.01)",accent:"rgb(174, 202, 255)",accent20:"rgba(174, 202, 255, 0.25)",background:"rgba(0, 2, 9, 0.9)",overlay:"rgba(0, 2, 9, 0.4)",warningPrimary:"rgb(255, 214, 108)",warningSecondary:"rgb(95, 65, 29)",errorPrimary:"rgb(255, 133, 162)",errorSecondary:"rgb(94, 4, 4)"},ia=({colorMode:e,children:t,theme:n,className:r})=>{const o={...e==="dark"?jg:Lg,...n??{}};return p.jsx("div",{className:U(r),style:{...Eg(o),colorScheme:e},children:t})},zf=!1,Mf=R.forwardRef((e,t)=>{var b,S,w;const n=R.useMemo(()=>T0(e.config),[e.config]),[r,o]=R.useState([]),i=((b=r[r.length-1])==null?void 0:b.type)==="user",l=e.colorMode??"dark",[s,a]=R.useState(zf),u=j0(e.config),[c,f]=R.useState(!1),h=R.useRef(zf);R.useEffect(()=>{h.current=s},[s]),R.useImperativeHandle(t,()=>({setExpanded:a,getExpanded(){return h.current},getConversationHandler(){return n}}),[n,a]),R.useEffect(()=>{const k=C=>{o(C)};return n.subscribe(k),()=>{n.unsubscribe(k)}},[n,o]);const y=R.useRef(!1);R.useEffect(()=>{!s||y.current||(y.current=!0,n.sendWelcomeIntent())},[n,s]);const x=e.windowSize??"half",v=R.useMemo(()=>{const k=Gd(P=>P.type==="bot",r);if(k===-1)return null;const C=r[k];return(C==null?void 0:C.type)!=="bot"?null:{index:k,response:C}},[r]),E=R.useMemo(()=>{if(v==null)return;const k=Gd(P=>P.choices.length>0,v.response.payload.messages);if(k===-1)return;const C=v.response.payload.messages[k];if(C!=null)return{message:C,messageIndex:k,responseIndex:v.index}},[v]),[m,d]=R.useState({}),g=e.customModalities??{};return n==null?null:p.jsx(p.Fragment,{children:s?p.jsxs(ia,{theme:e.theme,colorMode:l,className:"grid grid-cols-2 xl:grid-cols-[1fr_632px] fixed inset-0 z-touchpoint",children:[x==="half"?p.jsx("div",{className:"hidden md:block bg-overlay"}):null,p.jsxs("div",{className:U("w-full bg-background text-primary-80 flex relative flex-col h-full backdrop-blur-overlay",{"col-span-2 md:col-span-1":x==="half","col-span-2":x==="full"}),children:[p.jsx(vm,{windowSize:x,colorMode:l,brandIcon:e.brandIcon,isSettingsOpen:c,toggleSettings:()=>{f(k=>!k)},collapse:()=>{a(!1)},reset:()=>{n.reset({clearResponses:!0}),n.sendWelcomeIntent()}}),c?p.jsx(wm,{className:U("flex-none",x==="full"?"w-full md:max-w-content md:mx-auto":""),onClose:()=>{f(!1)},handler:n}):p.jsxs(p.Fragment,{children:[u?p.jsx(sg,{isWaiting:i,lastBotResponseIndex:v==null?void 0:v.index,responses:r,colorMode:l,handler:n,uploadedFiles:m,customModalities:g,className:U("flex-grow",x==="full"?"w-full md:max-w-content md:mx-auto":"")}):p.jsx(ag,{}),p.jsx(_g,{className:U("flex-none",x==="full"?"w-full md:max-w-content md:mx-auto":""),choiceMessage:E,handler:n,uploadUrl:(w=(S=v==null?void 0:v.response.payload.metadata)==null?void 0:S.uploadUrls)==null?void 0:w[0],onFileUpload:({uploadId:k,file:C})=>{d(P=>({...P,[k]:C}))}})]})]})]}):e.launchIcon!==!1?p.jsx(ia,{className:"font-sans",theme:e.theme,colorMode:l,children:p.jsx(am,{className:"fixed z-100 bottom-2 right-2 backdrop-blur z-launchButton",iconUrl:typeof e.launchIcon=="string"?e.launchIcon:void 0,onClick:()=>{a(!0)},label:"Expand chat"})}):null})});Mf.displayName="App";const Nf=`*,: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:var(--font-family);font-feature-settings:normal;font-variation-settings:normal;-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-feature-settings:normal;font-variation-settings:normal;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;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([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}*{font-family:var(--font-family)!important}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.collapse{visibility:collapse}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.bottom-2{bottom:.5rem}.left-1\\/2{left:50%}.right-2{right:.5rem}.top-0{top:0}.top-1\\/2{top:50%}.z-10{z-index:10}.z-launchButton{z-index:100}.z-touchpoint{z-index:1000}.col-span-1{grid-column:span 1 / span 1}.col-span-2{grid-column:span 2 / span 2}.-mx-2{margin-left:-.5rem;margin-right:-.5rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-auto{margin-left:auto}.mr-2{margin-right:.5rem}.block{display:block}.inline{display:inline}.flex{display:flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-10{height:2.5rem}.h-20{height:5rem}.h-24{height:6rem}.h-4{height:1rem}.h-52{height:13rem}.h-64{height:16rem}.h-72{height:18rem}.h-8{height:2rem}.h-\\[1px\\]{height:1px}.h-\\[360px\\]{height:360px}.h-full{height:100%}.min-h-full{min-height:100%}.w-10{width:2.5rem}.w-20{width:5rem}.w-24{width:6rem}.w-4{width:1rem}.w-72{width:18rem}.w-8{width:2rem}.w-80{width:20rem}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.max-w-content{max-width:608px}.flex-none{flex:none}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-full{--tw-translate-y: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-\\[320px\\,1fr\\]{grid-template-columns:320px 1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.space-y-px>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1px * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded-inner{border-radius:var(--inner-border-radius)}.rounded-outer{border-radius:var(--outer-border-radius)}.border{border-width:1px}.border-background{border-color:var(--background)}.bg-accent{background-color:var(--accent)}.bg-background{background-color:var(--background)}.bg-black\\/50{background-color:#00000080}.bg-error-secondary{background-color:var(--error-secondary)}.bg-overlay{background-color:var(--overlay)}.bg-primary-5{background-color:var(--primary-5)}.bg-primary-80{background-color:var(--primary-80)}.bg-secondary-60{background-color:var(--secondary-60)}.bg-transparent{background-color:transparent}.object-cover{-o-object-fit:cover;object-fit:cover}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-1{padding-bottom:.25rem}.pl-10{padding-left:2.5rem}.pl-4{padding-left:1rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pt-3{padding-top:.75rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-sans{font-family:var(--font-family)}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-normal{font-weight:400}.text-accent{color:var(--accent)}.text-error-primary{color:var(--error-primary)}.text-primary-20{color:var(--primary-20)}.text-primary-40{color:var(--primary-40)}.text-primary-60{color:var(--primary-60)}.text-primary-80{color:var(--primary-80)}.text-secondary-40{color:var(--secondary-40)}.text-secondary-80{color:var(--secondary-80)}.placeholder-primary-20::-moz-placeholder{color:var(--primary-20)}.placeholder-primary-20::placeholder{color:var(--primary-20)}.placeholder-primary-40::-moz-placeholder{color:var(--primary-40)}.placeholder-primary-40::placeholder{color:var(--primary-40)}.caret-accent{caret-color:var(--accent)}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-\\[0\\.01\\]{opacity:.01}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-0{outline-width:0px}.outline-2{outline-width:2px}.outline-accent{outline-color:var(--accent)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur{--tw-backdrop-blur: blur(8px);-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)}.backdrop-blur-md{--tw-backdrop-blur: blur(12px);-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)}.backdrop-blur-overlay{--tw-backdrop-blur: blur(48px);-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)}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}@property --glow-opacity{syntax: "<percentage>"; inherits: false; initial-value: 0%;}.fullscreen-error svg{animation:error-glow 3s ease infinite;--glow-opacity: 0%;filter:drop-shadow(0 0 6px color-mix(in srgb,transparent,var(--accent) var(--glow-opacity)))}@keyframes error-glow{0%{color:var(--primary);fill-opacity:8%;--glow-opacity: 0%}22%{color:var(--primary);fill-opacity:8%;--glow-opacity: 0%}35%{color:var(--accent);fill-opacity:80%;--glow-opacity: 60%}45%{color:var(--accent);fill-opacity:70%;--glow-opacity: 30%}55%{color:var(--accent);fill-opacity:60%;--glow-opacity: 60%}60%{color:var(--primary);fill-opacity:8%;--glow-opacity: 0%}to{color:var(--primary);fill-opacity:8%;--glow-opacity: 0%}}.placeholder\\:text-primary-40::-moz-placeholder{color:var(--primary-40)}.placeholder\\:text-primary-40::placeholder{color:var(--primary-40)}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:inset-0:before{content:var(--tw-content);top:0;right:0;bottom:0;left:0}.before\\:-z-10:before{content:var(--tw-content);z-index:-10}.before\\:bg-transparent:before{content:var(--tw-content);background-color:transparent}.before\\:transition-colors:before{content:var(--tw-content);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.before\\:content-\\[\\'\\'\\]:before{--tw-content: "";content:var(--tw-content)}.after\\:pointer-events-none:after{content:var(--tw-content);pointer-events:none}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:inset-0:after{content:var(--tw-content);top:0;right:0;bottom:0;left:0}.after\\:rounded-outer:after{content:var(--tw-content);border-radius:var(--outer-border-radius)}.after\\:content-\\[\\'\\'\\]:after{--tw-content: "";content:var(--tw-content)}.hover\\:bg-primary-80:hover{background-color:var(--primary-80)}.hover\\:bg-secondary-20:hover{background-color:var(--secondary-20)}.hover\\:text-primary-80:hover{color:var(--primary-80)}.hover\\:after\\:bg-primary-10:hover:after{content:var(--tw-content);background-color:var(--primary-10)}.focus\\:outline-0:focus{outline-width:0px}.focus\\:before\\:bg-primary-10:focus:before{content:var(--tw-content);background-color:var(--primary-10)}.focus\\:before\\:bg-primary-40:focus:before{content:var(--tw-content);background-color:var(--primary-40)}.focus\\:before\\:bg-primary-5:focus:before{content:var(--tw-content);background-color:var(--primary-5)}.focus\\:before\\:bg-primary-80:focus:before{content:var(--tw-content);background-color:var(--primary-80)}.enabled\\:hover\\:before\\:bg-primary-10:hover:enabled:before{content:var(--tw-content);background-color:var(--primary-10)}.enabled\\:hover\\:before\\:bg-primary-40:hover:enabled:before{content:var(--tw-content);background-color:var(--primary-40)}.enabled\\:hover\\:before\\:bg-primary-5:hover:enabled:before{content:var(--tw-content);background-color:var(--primary-5)}.enabled\\:hover\\:before\\:bg-primary-80:hover:enabled:before{content:var(--tw-content);background-color:var(--primary-80)}.enabled\\:active\\:before\\:bg-secondary-10:active:enabled:before{content:var(--tw-content);background-color:var(--secondary-10)}.disabled\\:bg-accent-20:disabled{background-color:var(--accent-20)}.disabled\\:bg-primary-10:disabled{background-color:var(--primary-10)}.disabled\\:bg-primary-5:disabled{background-color:var(--primary-5)}.disabled\\:bg-secondary-20:disabled{background-color:var(--secondary-20)}.disabled\\:text-primary-20:disabled{color:var(--primary-20)}.disabled\\:text-primary-40:disabled{color:var(--primary-40)}.disabled\\:text-secondary-40:disabled{color:var(--secondary-40)}@media (min-width: 768px){.md\\:absolute{position:absolute}.md\\:left-0{left:0}.md\\:right-0{right:0}.md\\:top-0{top:0}.md\\:top-1{top:.25rem}.md\\:top-2{top:.5rem}.md\\:-order-1{order:-1}.md\\:col-span-1{grid-column:span 1 / span 1}.md\\:mx-auto{margin-left:auto;margin-right:auto}.md\\:block{display:block}.md\\:w-fit{width:-moz-fit-content;width:fit-content}.md\\:max-w-content{max-width:608px}.md\\:-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:flex-col{flex-direction:column}.md\\:p-3{padding:.75rem}.md\\:px-3{padding-left:.75rem;padding-right:.75rem}}@media (min-width: 1280px){.xl\\:grid-cols-\\[1fr_632px\\]{grid-template-columns:1fr 632px}}`,Of=({children:e,faded:t})=>p.jsx("p",{className:U("text-base",t?"text-primary-60":"text-primary-80"),children:e}),If=({children:e})=>p.jsx("p",{className:"text-sm text-primary-60",children:e}),$f=({children:e,selected:t,onClick:n})=>p.jsx("div",{className:U("block shrink-0 rounded-inner overflow-hidden","w-80 space-y-px",t?"outline outline-2 outline-accent":""),onClick:n,children:e}),Df=({src:e,alt:t})=>p.jsx("img",{src:e,alt:t,className:"w-full h-52 object-cover"}),Hf=({left:e,right:t,icon:n})=>p.jsxs("div",{className:"flex items-center relative justify-between gap-2 bg-primary-5 px-3 py-4",children:[p.jsx("div",{className:"space-y-1 text-left",children:e}),p.jsx("div",{className:"space-y-1 text-right",children:t}),n!=null?p.jsx(n,{className:"text-primary-60 w-4 h-4 absolute top-1/2 left-1/2 transform -translate-y-1/2 -translate-x-1/2"}):null]});/*! *****************************************************************************
|
|
119
|
+
`}):null]})},Rg=e=>e<1/3?e*3:e<2/3?1:3-e*3,Qd=e=>e<1/3?0:e<2/3?(e-1/3)*3:1,zg=({label:e,className:t})=>{const[n,r]=R.useState(null),o=R.useRef(!1);if(R.useEffect(()=>{const y=x=>{r(v=>v==null?{start:x,current:x}:{...v,current:x}),o.current||requestAnimationFrame(y)};o.current||requestAnimationFrame(y)},[o,r]),n==null)return null;let i,l;const s=n.current-n.start,a=s%Ri,u=Math.floor(s/Ri);if(a<pa){const y=s/Ri,x=Math.floor(y),v=Tg((y-x)*(Ri/pa));i=Rg(v),l=u%2?Qd(v):1+Qd(v)}else i=0,l=0;const c=i>.2?0:5*(.2-i)/.2,f=.3,p=i>f?1-.25*(i-f)/(1-f):1;return h.jsx("div",{className:Z("h-full w-full flex items-center justify-center",t),children:h.jsxs("div",{className:"flex flex-col items-center justify-center gap-3",children:[h.jsx("div",{className:Z("w-8 h-8 block text-accent"),children:h.jsx("svg",{viewBox:"0 0 100 100",stroke:"none",fill:"currentColor",style:{filter:`drop-shadow(0 0 ${c}px var(--accent))`},children:h.jsx("g",{transform:`translate(50 50) rotate(${l*90})`,opacity:p,children:h.jsx(Pg,{d:Lg*i})})})}),h.jsx("p",{className:"text-primary-60",children:e})]})})},Mg=({handler:e,message:t,responseIndex:n,messageIndex:r,className:o})=>t.choices.length>0?h.jsx("div",{className:o,children:h.jsx("ul",{className:"space-y-2",children:t.choices.map((i,l)=>t.selectedChoiceId==null||i.choiceId===t.selectedChoiceId?h.jsx("li",{className:"w-full",children:h.jsx(Qr,{type:"ghost",Icon:Si,onClick:t.selectedChoiceId==null?()=>{e.sendChoice(i.choiceId,{},{responseIndex:n,messageIndex:r})}:void 0,label:i.choiceText})},l):null)})}):null,ha=({text:e,files:t})=>h.jsxs("div",{className:"space-y-2",children:[h.jsx("div",{className:"flex justify-end pl-10 text-base",children:h.jsx("div",{className:"text-primary-60 p-3 rounded-inner bg-primary-5 whitespace-pre-wrap",children:e})}),t!=null?h.jsx("div",{className:"flex flex-wrap justify-end gap-2",children:t.map((n,r)=>h.jsx("img",{className:"rounded-inner h-20",src:URL.createObjectURL(n)},r))}):null]}),Og=({message:e})=>h.jsxs("div",{className:"bg-error-secondary text-error-primary text-base p-3 rounded-inner flex items-center gap-2",children:[h.jsx(Ld,{className:"w-4 h-4 flex-none"}),h.jsx("p",{className:"text-primary-80",children:e})]}),Ng=({responses:e,colorMode:t,uploadedFiles:n,lastBotResponseIndex:r,isWaiting:o,customModalities:i,handler:l,className:s,enabled:a})=>{const u=R.useRef(null),c=R.useRef(null);return R.useEffect(()=>{o||setTimeout(()=>{var f;(f=c.current)==null||f.scrollIntoView({behavior:"smooth"})})},[o]),h.jsxs("div",{className:Z("relative",s),children:[h.jsx("div",{"data-theme":t==="dark"?"light":"dark",className:Z("absolute inset-x-0 h-[1px] top-0 bg-background opacity-[0.01] backdrop-blur-md")}),o?h.jsx(zg,{label:"Thinking",className:"absolute inset-0"}):null,h.jsx("div",{className:Z("absolute inset-0 p-2 md:p-3 overflow-y-auto no-scrollbar space-y-8",o?"opacity-0":"opacity-100"),ref:u,children:e.map((f,p)=>{if(f.type==="user")return f.payload.type==="text"?h.jsx(ha,{text:f.payload.text},p):f.payload.type==="structured"&&f.payload.utterance!=null&&f.payload.uploadIds!=null?h.jsx(ha,{text:f.payload.utterance,files:f.payload.uploadIds.map(x=>n[x]).filter(x=>x!=null)},p):null;if(f.type==="failure")return h.jsx(Og,{message:f.payload.text},p);const y=r!=null&&p===r;return h.jsxs(R.Fragment,{children:[h.jsxs("div",{className:Z("space-y-2",y?"min-h-full":""),ref:y?c:void 0,children:[f.payload.messages.map((x,v)=>h.jsx("div",{className:"text-base",children:h.jsx("div",{className:"pr-10",dangerouslySetInnerHTML:{__html:F(x.text)}})},v)),Object.entries(f.payload.modalities??{}).map(([x,v])=>{const E=i[x];return E==null?(console.warn(`Custom component implementation missing for the ${x} modality.`),null):h.jsx(E,{data:v,conversationHandler:l,enabled:a},x)})]}),f.payload.messages.map((x,v)=>{if(x.selectedChoiceId!=null){const E=x.choices.find(m=>m.choiceId===x.selectedChoiceId);return E==null?null:h.jsx(ha,{text:E.choiceText},v)}return null})]},p)})},"messages")]})},Ig=()=>h.jsxs("div",{className:Z("flex-grow flex flex-col items-center justify-center gap-6 text-primary-80","fullscreen-error"),children:[h.jsx(ta,{className:"w-20 h-20 text-primary-20"}),h.jsxs("div",{className:"text-center",children:[h.jsx("h3",{className:"text-xl mb-2",children:"Oops!"}),h.jsx("p",{children:"Something went wrong."}),h.jsx("p",{children:"Try again later."})]})]});function ma(){return ma=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ma.apply(null,arguments)}function $g(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Dg=R.useLayoutEffect,Ag=function(t){var n=Et.useRef(t);return Dg(function(){n.current=t}),n},Yd=function(t,n){if(typeof t=="function"){t(n);return}t.current=n},Hg=function(t,n){var r=Et.useRef();return Et.useCallback(function(o){t.current=o,r.current&&Yd(r.current,null),r.current=n,n&&Yd(n,o)},[n])},qd={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},Bg=function(t){Object.keys(qd).forEach(function(n){t.style.setProperty(n,qd[n],"important")})},Xd=Bg,Le=null,Gd=function(t,n){var r=t.scrollHeight;return n.sizingStyle.boxSizing==="border-box"?r+n.borderSize:r-n.paddingSize};function Vg(e,t,n,r){n===void 0&&(n=1),r===void 0&&(r=1/0),Le||(Le=document.createElement("textarea"),Le.setAttribute("tabindex","-1"),Le.setAttribute("aria-hidden","true"),Xd(Le)),Le.parentNode===null&&document.body.appendChild(Le);var o=e.paddingSize,i=e.borderSize,l=e.sizingStyle,s=l.boxSizing;Object.keys(l).forEach(function(p){var y=p;Le.style[y]=l[y]}),Xd(Le),Le.value=t;var a=Gd(Le,e);Le.value=t,a=Gd(Le,e),Le.value="x";var u=Le.scrollHeight-o,c=u*n;s==="border-box"&&(c=c+o+i),a=Math.max(c,a);var f=u*r;return s==="border-box"&&(f=f+o+i),a=Math.min(f,a),[a,u]}var Kd=function(){},Fg=function(t,n){return t.reduce(function(r,o){return r[o]=n[o],r},{})},Ug=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],Zg=!!document.documentElement.currentStyle,Wg=function(t){var n=window.getComputedStyle(t);if(n===null)return null;var r=Fg(Ug,n),o=r.boxSizing;if(o==="")return null;Zg&&o==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var i=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),l=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:i,borderSize:l}},Qg=Wg;function Jd(e,t,n){var r=Ag(n);R.useLayoutEffect(function(){var o=function(l){return r.current(l)};if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}var Yg=function(t){Jd(window,"resize",t)},qg=function(t){Jd(document.fonts,"loadingdone",t)},Xg=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],Gg=function(t,n){var r=t.cacheMeasurements,o=t.maxRows,i=t.minRows,l=t.onChange,s=l===void 0?Kd:l,a=t.onHeightChange,u=a===void 0?Kd:a,c=$g(t,Xg),f=c.value!==void 0,p=R.useRef(null),y=Hg(p,n),x=R.useRef(0),v=R.useRef(),E=function(){var g=p.current,b=r&&v.current?v.current:Qg(g);if(b){v.current=b;var S=Vg(b,g.value||g.placeholder||"x",i,o),w=S[0],C=S[1];x.current!==w&&(x.current=w,g.style.setProperty("height",w+"px","important"),u(w,{rowHeight:C}))}},m=function(g){f||E(),s(g)};return R.useLayoutEffect(E),Yg(E),qg(E),R.createElement("textarea",ma({},c,{onChange:m,ref:y}))},Kg=R.forwardRef(Gg);const ep=8,Jg=({className:e,choiceMessage:t,handler:n,uploadUrl:r,onFileUpload:o,enabled:i})=>{const[l,s]=R.useState(!1),[a,u]=R.useState(""),[c,f]=R.useState(null),[p,y]=R.useState(null),x=R.useRef(null),v=R.useRef(null),E=zd();R.useEffect(()=>{var L;E&&((L=v.current)==null||L.focus())},[E]);const m=R.useMemo(()=>a.trim()==="",[a]),[d,g]=R.useState(!1),b=m&&p==null||d||!i,S=()=>{if(b)return;const L=(j,D)=>{(D==null?void 0:D.type)==="bot"&&(g(!1),n.unsubscribe(L),u(""),y(null),E&&setTimeout(()=>{var Q;(Q=v.current)==null||Q.focus()}))};n.subscribe(L),g(!0),r!=null&&p!=null?n.sendStructured({uploadIds:[r.uploadId],utterance:a}):n.sendText(a)},w=r!=null&&i,C=()=>{f("Something went wrong. Please try again.")},k=L=>{var de,tt;if(r==null){C();return}const j=(tt=(de=L.target)==null?void 0:de.files)==null?void 0:tt[0];if(j==null){C();return}const{name:D,size:Q,type:G}=j;if(y({name:D,size:Q,type:G}),Q/1024**2>ep){f(`The file is too big. Max file size: ${ep}mb`);return}fetch(r.url,{method:"PUT",headers:{"Content-Type":"image/jpeg"},body:j}).then(()=>{f(null),o({uploadId:r.uploadId,file:j})}).catch(()=>{C()})};return h.jsxs("div",{className:Z("p-2 md:p-3 relative",e),children:[t!=null?h.jsx(Mg,{...t,handler:n,className:Z("absolute inset-x-0 z-10 top-0 transform -translate-y-full px-2 md:px-3",t.message.selectedChoiceId!=null?"md:top-2":"md:top-1")}):null,(t==null?void 0:t.message.selectedChoiceId)!=null?null:h.jsxs("div",{className:Z("bg-primary-5 transition-colors duration-200 p-2 rounded-outer text-base font-normal",l?"":"hover:bg-secondary-20"),children:[c!=null&&h.jsxs("div",{className:"flex items-center py-1 mb-2 w-full bg-error-secondary rounded-inner",children:[h.jsx(ra,{size:16}),h.jsx("span",{className:"truncate ml-1",children:c})]}),p&&h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"flex items-center justify-between mb-2 w-full",children:[h.jsxs("p",{className:"flex items-center truncate mx-2",children:[c!=null?h.jsx(ra,{size:16,className:"text-error-primary"}):h.jsx(kd,{size:16,className:"text-primary-60"}),h.jsx("span",{className:"truncate ml-3",children:p.name})]}),h.jsx(bt,{className:"flex-none",Icon:Sd,label:"Delete",onClick:w?()=>{y(null),f(null),x.current!=null&&(x.current.value="")}:void 0,type:"ghost"})]}),h.jsx("hr",{className:"border-b-px border-background mb-2 -mx-2"})]}),h.jsxs("div",{className:Z("flex items-end"),children:[w&&p==null?h.jsxs(h.Fragment,{children:[h.jsx("label",{htmlFor:"file-upload",className:"p-3 w-10 h-10 flex-none block transition-colors rounded-inner bg-primary-80 hover:bg-primary-80 text-secondary-80 cursor-pointer",children:h.jsx(na,{})}),h.jsx("input",{type:"file",id:"file-upload",className:"sr-only",accept:".jpg, .jpeg, .png, .webp, .mp4, .mpeg4, .avi, .mov, .pdf",onChange:k,ref:x})]}):h.jsx(bt,{className:"flex-none",Icon:na,label:"Upload file",type:"ghost"}),h.jsx(Kg,{disabled:d||!i,className:Z("h-10 w-full resize-none mr-2 px-2 py-2 outline-none","bg-transparent text-primary-80 placeholder:text-primary-40 caret-accent","disabled:text-primary-40"),placeholder:"Type something",maxRows:10,onFocus:()=>{s(!0)},onBlur:()=>{s(!1)},value:a,onChange:L=>{u(L.target.value)},onKeyDown:L=>{L.key==="Enter"&&!L.shiftKey&&(L.preventDefault(),S())},ref:v}),h.jsx(bt,{className:"flex-none",label:"Send message",onClick:b?void 0:()=>{S()},type:"main",Icon:Si})]})]})]})},ey=e=>({"--font-family":e.fontFamily,"--inner-border-radius":e.innerBorderRadius,"--outer-border-radius":e.outerBorderRadius,"--primary-80":e.primary80,"--primary-60":e.primary60,"--primary-40":e.primary40,"--primary-20":e.primary20,"--primary-10":e.primary10,"--primary-5":e.primary5,"--primary-1":e.primary1,"--secondary-80":e.secondary80,"--secondary-60":e.secondary60,"--secondary-40":e.secondary40,"--secondary-20":e.secondary20,"--secondary-10":e.secondary10,"--secondary-5":e.secondary5,"--secondary-1":e.secondary1,"--accent":e.accent,"--accent-20":e.accent20,"--background":e.background,"--overlay":e.overlay,"--warning-primary":e.warningPrimary,"--warning-secondary":e.warningSecondary,"--error-primary":e.errorPrimary,"--error-secondary":e.errorSecondary}),ty={fontFamily:'"Neue Haas Grotesk", sans-serif',innerBorderRadius:"12px",outerBorderRadius:"20px",primary80:"rgba(0, 2, 9, 0.8)",primary60:"rgba(0, 2, 9, 0.6)",primary40:"rgba(0, 2, 9, 0.4)",primary20:"rgba(0, 2, 9, 0.2)",primary10:"rgba(0, 2, 9, 0.1)",primary5:"rgba(0, 2, 9, 0.05)",primary1:"rgba(0, 2, 9, 0.01)",secondary80:"rgba(255, 255, 255, 0.85)",secondary60:"rgba(255, 255, 255, 0.65)",secondary40:"rgba(255, 255, 255, 0.45)",secondary20:"rgba(255, 255, 255, 0.25)",secondary10:"rgba(255, 255, 255, 0.15)",secondary5:"rgba(255, 255, 255, 0.08)",secondary1:"rgba(255, 255, 255, 0.01)",accent:"rgb(28, 99, 218)",accent20:"rgba(28, 99, 218, 0.2)",background:"rgba(220, 220, 220, 0.9)",overlay:"rgba(0, 2, 9, 0.4)",warningPrimary:"rgb(220, 159, 3)",warningSecondary:"rgb(255, 242, 209)",errorPrimary:"rgb(157, 3, 3)",errorSecondary:"rgb(255, 223, 230)"},ny={fontFamily:'"Neue Haas Grotesk", sans-serif',innerBorderRadius:"12px",outerBorderRadius:"20px",primary80:"rgba(255, 255, 255, 0.85)",primary60:"rgba(255, 255, 255, 0.65)",primary40:"rgba(255, 255, 255, 0.45)",primary20:"rgba(255, 255, 255, 0.25)",primary10:"rgba(255, 255, 255, 0.15)",primary5:"rgba(255, 255, 255, 0.08)",primary1:"rgba(255, 255, 255, 0.01)",secondary80:"rgba(0, 2, 9, 0.8)",secondary60:"rgba(0, 2, 9, 0.6)",secondary40:"rgba(0, 2, 9, 0.4)",secondary20:"rgba(0, 2, 9, 0.2)",secondary10:"rgba(0, 2, 9, 0.1)",secondary5:"rgba(0, 2, 9, 0.05)",secondary1:"rgba(0, 2, 9, 0.01)",accent:"rgb(174, 202, 255)",accent20:"rgba(174, 202, 255, 0.25)",background:"rgba(0, 2, 9, 0.9)",overlay:"rgba(0, 2, 9, 0.4)",warningPrimary:"rgb(255, 214, 108)",warningSecondary:"rgb(95, 65, 29)",errorPrimary:"rgb(255, 133, 162)",errorSecondary:"rgb(94, 4, 4)"},ga=({colorMode:e,children:t,theme:n,className:r})=>{const o={...e==="dark"?ny:ty,...n??{}};return h.jsx("div",{className:Z(r),style:{...ey(o),colorScheme:e},children:t})},tp=R.forwardRef((e,t)=>{var S,w,C;const n=R.useMemo(()=>K0(e.config),[e.config]),[r,o]=R.useState([]),i=((S=r[r.length-1])==null?void 0:S.type)==="user",l=e.colorMode??"dark",[s,a]=R.useState(e.embedded),u=G0(e.config),[c,f]=R.useState(!1),p=R.useRef(e.embedded),y=R.useCallback(k=>{e.onClose!=null&&(e.onClose(k),k.defaultPrevented||a(!1))},[e.onClose,a]);R.useEffect(()=>{p.current=s},[s]),R.useImperativeHandle(t,()=>({setExpanded:a,getExpanded(){return p.current},getConversationHandler(){return n}}),[n,a]),R.useEffect(()=>{const k=L=>{o(L)};return n.subscribe(k),()=>{n.unsubscribe(k)}},[n,o]);const x=R.useRef(!1);R.useEffect(()=>{!s||x.current||(x.current=!0,n.sendWelcomeIntent())},[n,s]);const v=e.windowSize??(e.embedded?"full":"half"),E=R.useMemo(()=>{const k=xd(j=>j.type==="bot",r);if(k===-1)return null;const L=r[k];return(L==null?void 0:L.type)!=="bot"?null:{index:k,response:L}},[r]),m=R.useMemo(()=>{if(E==null)return;const k=xd(j=>j.choices.length>0,E.response.payload.messages);if(k===-1)return;const L=E.response.payload.messages[k];if(L!=null)return{message:L,messageIndex:k,responseIndex:E.index}},[E]),[d,g]=R.useState({}),b=e.customModalities??{};return n==null?null:h.jsx(h.Fragment,{children:s?h.jsxs(ga,{theme:e.theme,colorMode:l,className:"grid grid-cols-2 xl:grid-cols-[1fr_632px] fixed inset-0 z-touchpoint",children:[v==="half"?h.jsx("div",{className:"hidden md:block bg-overlay"}):null,h.jsxs("div",{className:Z("w-full bg-background text-primary-80 flex relative flex-col h-full backdrop-blur-overlay",{"col-span-2 md:col-span-1":v==="half","col-span-2":v==="full"}),children:[h.jsx(Wm,{windowSize:e.embedded?"embedded":v,colorMode:l,brandIcon:e.brandIcon,isSettingsOpen:c,enabled:e.enabled,toggleSettings:e.enableSettings?()=>{f(k=>!k)}:void 0,renderCollapse:e.onClose!=null,collapse:y,reset:()=>{n.reset({clearResponses:!0}),n.sendWelcomeIntent()}}),c?h.jsx(Qm,{className:Z("flex-none",v==="full"?"w-full md:max-w-content md:mx-auto":""),onClose:()=>{f(!1)},handler:n}):h.jsxs(h.Fragment,{children:[u?h.jsx(Ng,{enabled:e.enabled,isWaiting:i,lastBotResponseIndex:E==null?void 0:E.index,responses:r,colorMode:l,handler:n,uploadedFiles:d,customModalities:b,className:Z("flex-grow",v==="full"?"w-full md:max-w-content md:mx-auto":"")}):h.jsx(Ig,{}),h.jsx(Jg,{className:Z("flex-none",v==="full"?"w-full md:max-w-content md:mx-auto":""),enabled:e.enabled,choiceMessage:m,handler:n,uploadUrl:(C=(w=E==null?void 0:E.response.payload.metadata)==null?void 0:w.uploadUrls)==null?void 0:C[0],onFileUpload:({uploadId:k,file:L})=>{g(j=>({...j,[k]:L}))}})]})]})]}):e.launchIcon!==!1?h.jsx(ga,{className:"font-sans",theme:e.theme,colorMode:l,children:h.jsx(Im,{className:"fixed z-100 bottom-2 right-2 backdrop-blur z-launchButton",iconUrl:typeof e.launchIcon=="string"?e.launchIcon:void 0,onClick:()=>{a(!0)},label:"Expand chat"})}):null})});tp.displayName="App";const np=`*,: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:var(--font-family);font-feature-settings:normal;font-variation-settings:normal;-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-feature-settings:normal;font-variation-settings:normal;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;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([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}*{font-family:var(--font-family)!important}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.collapse{visibility:collapse}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.bottom-2{bottom:.5rem}.left-1\\/2{left:50%}.right-2{right:.5rem}.top-0{top:0}.top-1\\/2{top:50%}.z-10{z-index:10}.z-launchButton{z-index:100}.z-touchpoint{z-index:1000}.col-span-1{grid-column:span 1 / span 1}.col-span-2{grid-column:span 2 / span 2}.-mx-2{margin-left:-.5rem;margin-right:-.5rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-auto{margin-left:auto}.mr-2{margin-right:.5rem}.block{display:block}.inline{display:inline}.flex{display:flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-10{height:2.5rem}.h-20{height:5rem}.h-24{height:6rem}.h-4{height:1rem}.h-52{height:13rem}.h-64{height:16rem}.h-72{height:18rem}.h-8{height:2rem}.h-\\[1px\\]{height:1px}.h-\\[360px\\]{height:360px}.h-full{height:100%}.min-h-full{min-height:100%}.w-10{width:2.5rem}.w-20{width:5rem}.w-24{width:6rem}.w-4{width:1rem}.w-72{width:18rem}.w-8{width:2rem}.w-80{width:20rem}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.max-w-content{max-width:608px}.flex-none{flex:none}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-full{--tw-translate-y: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-\\[320px\\,1fr\\]{grid-template-columns:320px 1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.space-y-px>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1px * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded-inner{border-radius:var(--inner-border-radius)}.rounded-outer{border-radius:var(--outer-border-radius)}.border{border-width:1px}.border-background{border-color:var(--background)}.bg-accent{background-color:var(--accent)}.bg-background{background-color:var(--background)}.bg-black\\/50{background-color:#00000080}.bg-error-secondary{background-color:var(--error-secondary)}.bg-overlay{background-color:var(--overlay)}.bg-primary-5{background-color:var(--primary-5)}.bg-primary-80{background-color:var(--primary-80)}.bg-secondary-60{background-color:var(--secondary-60)}.bg-transparent{background-color:transparent}.object-cover{-o-object-fit:cover;object-fit:cover}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-1{padding-bottom:.25rem}.pl-10{padding-left:2.5rem}.pl-4{padding-left:1rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pt-3{padding-top:.75rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-sans{font-family:var(--font-family)}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-normal{font-weight:400}.text-accent{color:var(--accent)}.text-error-primary{color:var(--error-primary)}.text-primary-20{color:var(--primary-20)}.text-primary-40{color:var(--primary-40)}.text-primary-60{color:var(--primary-60)}.text-primary-80{color:var(--primary-80)}.text-secondary-40{color:var(--secondary-40)}.text-secondary-80{color:var(--secondary-80)}.placeholder-primary-20::-moz-placeholder{color:var(--primary-20)}.placeholder-primary-20::placeholder{color:var(--primary-20)}.placeholder-primary-40::-moz-placeholder{color:var(--primary-40)}.placeholder-primary-40::placeholder{color:var(--primary-40)}.caret-accent{caret-color:var(--accent)}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-\\[0\\.01\\]{opacity:.01}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-0{outline-width:0px}.outline-2{outline-width:2px}.outline-accent{outline-color:var(--accent)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur{--tw-backdrop-blur: blur(8px);-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)}.backdrop-blur-md{--tw-backdrop-blur: blur(12px);-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)}.backdrop-blur-overlay{--tw-backdrop-blur: blur(48px);-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)}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}@property --glow-opacity{syntax: "<percentage>"; inherits: false; initial-value: 0%;}.fullscreen-error svg{animation:error-glow 3s ease infinite;--glow-opacity: 0%;filter:drop-shadow(0 0 6px color-mix(in srgb,transparent,var(--accent) var(--glow-opacity)))}@keyframes error-glow{0%{color:var(--primary);fill-opacity:8%;--glow-opacity: 0%}22%{color:var(--primary);fill-opacity:8%;--glow-opacity: 0%}35%{color:var(--accent);fill-opacity:80%;--glow-opacity: 60%}45%{color:var(--accent);fill-opacity:70%;--glow-opacity: 30%}55%{color:var(--accent);fill-opacity:60%;--glow-opacity: 60%}60%{color:var(--primary);fill-opacity:8%;--glow-opacity: 0%}to{color:var(--primary);fill-opacity:8%;--glow-opacity: 0%}}.placeholder\\:text-primary-40::-moz-placeholder{color:var(--primary-40)}.placeholder\\:text-primary-40::placeholder{color:var(--primary-40)}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:inset-0:before{content:var(--tw-content);top:0;right:0;bottom:0;left:0}.before\\:-z-10:before{content:var(--tw-content);z-index:-10}.before\\:bg-transparent:before{content:var(--tw-content);background-color:transparent}.before\\:transition-colors:before{content:var(--tw-content);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.before\\:content-\\[\\'\\'\\]:before{--tw-content: "";content:var(--tw-content)}.after\\:pointer-events-none:after{content:var(--tw-content);pointer-events:none}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:inset-0:after{content:var(--tw-content);top:0;right:0;bottom:0;left:0}.after\\:rounded-outer:after{content:var(--tw-content);border-radius:var(--outer-border-radius)}.after\\:content-\\[\\'\\'\\]:after{--tw-content: "";content:var(--tw-content)}.hover\\:bg-primary-80:hover{background-color:var(--primary-80)}.hover\\:bg-secondary-20:hover{background-color:var(--secondary-20)}.hover\\:text-primary-80:hover{color:var(--primary-80)}.hover\\:after\\:bg-primary-10:hover:after{content:var(--tw-content);background-color:var(--primary-10)}.focus\\:outline-0:focus{outline-width:0px}.focus\\:before\\:bg-primary-10:focus:before{content:var(--tw-content);background-color:var(--primary-10)}.focus\\:before\\:bg-primary-40:focus:before{content:var(--tw-content);background-color:var(--primary-40)}.focus\\:before\\:bg-primary-5:focus:before{content:var(--tw-content);background-color:var(--primary-5)}.focus\\:before\\:bg-primary-80:focus:before{content:var(--tw-content);background-color:var(--primary-80)}.enabled\\:hover\\:before\\:bg-primary-10:hover:enabled:before{content:var(--tw-content);background-color:var(--primary-10)}.enabled\\:hover\\:before\\:bg-primary-40:hover:enabled:before{content:var(--tw-content);background-color:var(--primary-40)}.enabled\\:hover\\:before\\:bg-primary-5:hover:enabled:before{content:var(--tw-content);background-color:var(--primary-5)}.enabled\\:hover\\:before\\:bg-primary-80:hover:enabled:before{content:var(--tw-content);background-color:var(--primary-80)}.enabled\\:active\\:before\\:bg-secondary-10:active:enabled:before{content:var(--tw-content);background-color:var(--secondary-10)}.disabled\\:bg-accent-20:disabled{background-color:var(--accent-20)}.disabled\\:bg-primary-10:disabled{background-color:var(--primary-10)}.disabled\\:bg-primary-5:disabled{background-color:var(--primary-5)}.disabled\\:bg-secondary-20:disabled{background-color:var(--secondary-20)}.disabled\\:text-primary-20:disabled{color:var(--primary-20)}.disabled\\:text-primary-40:disabled{color:var(--primary-40)}.disabled\\:text-secondary-40:disabled{color:var(--secondary-40)}@media (min-width: 768px){.md\\:absolute{position:absolute}.md\\:left-0{left:0}.md\\:right-0{right:0}.md\\:top-0{top:0}.md\\:top-1{top:.25rem}.md\\:top-2{top:.5rem}.md\\:-order-1{order:-1}.md\\:col-span-1{grid-column:span 1 / span 1}.md\\:mx-auto{margin-left:auto;margin-right:auto}.md\\:block{display:block}.md\\:w-fit{width:-moz-fit-content;width:fit-content}.md\\:max-w-content{max-width:608px}.md\\:-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:flex-col{flex-direction:column}.md\\:p-3{padding:.75rem}.md\\:px-3{padding-left:.75rem;padding-right:.75rem}}@media (min-width: 1280px){.xl\\:grid-cols-\\[1fr_632px\\]{grid-template-columns:1fr 632px}}`,rp=({children:e,faded:t})=>h.jsx("p",{className:Z("text-base",t?"text-primary-60":"text-primary-80"),children:e}),op=({children:e})=>h.jsx("p",{className:"text-sm text-primary-60",children:e}),ip=({children:e,selected:t,onClick:n})=>h.jsx("div",{className:Z("block shrink-0 rounded-inner overflow-hidden","w-80 space-y-px",t?"outline outline-2 outline-accent":""),onClick:n,children:e}),lp=({src:e,alt:t})=>h.jsx("img",{src:e,alt:t,className:"w-full h-52 object-cover"}),sp=({left:e,right:t,icon:n})=>h.jsxs("div",{className:"flex items-center relative justify-between gap-2 bg-primary-5 px-3 py-4",children:[h.jsx("div",{className:"space-y-1 text-left",children:e}),h.jsx("div",{className:"space-y-1 text-right",children:t}),n!=null?h.jsx(n,{className:"text-primary-60 w-4 h-4 absolute top-1/2 left-1/2 transform -translate-y-1/2 -translate-x-1/2"}):null]});/*! *****************************************************************************
|
|
120
120
|
Copyright (c) Microsoft Corporation.
|
|
121
121
|
|
|
122
122
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -129,11 +129,11 @@ Please report this to https://github.com/markedjs/marked.`,t){const o="<p>An err
|
|
|
129
129
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
130
130
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
131
131
|
PERFORMANCE OF THIS SOFTWARE.
|
|
132
|
-
***************************************************************************** */var
|
|
132
|
+
***************************************************************************** */var ap=function(e,t){return(ap=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)r.hasOwnProperty(o)&&(n[o]=r[o])})(e,t)},ry,zi,oy=(function(e){/*!
|
|
133
133
|
Copyright (c) 2017 Jed Watson.
|
|
134
134
|
Licensed under the MIT License (MIT), see
|
|
135
135
|
http://jedwatson.github.io/classnames
|
|
136
|
-
*/(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var l=typeof i;if(l==="string"||l==="number")r.push(i);else if(Array.isArray(i)&&i.length){var s=n.apply(null,i);s&&r.push(s)}else if(l==="object")for(var a in i)t.call(i,a)&&i[a]&&r.push(a)}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(
|
|
136
|
+
*/(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var l=typeof i;if(l==="string"||l==="number")r.push(i);else if(Array.isArray(i)&&i.length){var s=n.apply(null,i);s&&r.push(s)}else if(l==="object")for(var a in i)t.call(i,a)&&i[a]&&r.push(a)}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(zi={path:ry,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(t==null&&zi.path)}},zi.exports),zi.exports);function ya(e,t,n){var r,o,i,l,s;function a(){var c=Date.now()-l;c<t&&c>=0?r=setTimeout(a,t-c):(r=null,n||(s=e.apply(i,o),i=o=null))}t==null&&(t=100);var u=function(){i=this,o=arguments,l=Date.now();var c=n&&!r;return r||(r=setTimeout(a,t)),c&&(s=e.apply(i,o),i=o=null),s};return u.clear=function(){r&&(clearTimeout(r),r=null)},u.flush=function(){r&&(s=e.apply(i,o),i=o=null,clearTimeout(r),r=null)},u}ya.debounce=ya;var iy=ya;(function(e,t){t===void 0&&(t={});var n=t.insertAt;if(typeof document<"u"){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}})(`.indiana-scroll-container {
|
|
137
137
|
overflow: auto; }
|
|
138
138
|
.indiana-scroll-container--dragging {
|
|
139
139
|
scroll-behavior: auto !important; }
|
|
@@ -158,5 +158,5 @@ Please report this to https://github.com/markedjs/marked.`,t){const o="<p>An err
|
|
|
158
158
|
.indiana-dragging {
|
|
159
159
|
cursor: -webkit-grab;
|
|
160
160
|
cursor: grab; }
|
|
161
|
-
`);var
|
|
162
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,l=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var a=n.next();return l=a.done,a},e:function(a){s=!0,i=a},f:function(){try{l||n.return==null||n.return()}finally{if(s)throw i}}}}function Uf(e,t,n){return(t=function(r){var o=function(i,l){if(typeof i!="object"||!i)return i;var s=i[Symbol.toPrimitive];if(s!==void 0){var a=s.call(i,l||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(i)}(r,"string");return typeof o=="symbol"?o:o+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bi(){return bi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bi.apply(null,arguments)}function Si(e){return Si=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Si(e)}function $g(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&aa(e,t)}function Zf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Zf=function(){return!!e})()}function Wf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function _i(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Wf(Object(n),!0).forEach(function(r){Uf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qf(e,t){if(e==null)return{};var n,r,o=function(l,s){if(l==null)return{};var a={};for(var u in l)if({}.hasOwnProperty.call(l,u)){if(s.includes(u))continue;a[u]=l[u]}return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function aa(e,t){return aa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},aa(e,t)}function Qr(e,t){var n,r=t.replacementChars,o=t.replacement,i=t.separate,l=r,s="",a=Ff(e);try{for(a.s();!(n=a.n()).done;){var u,c=n.value,f=!Object.prototype.hasOwnProperty.call(o,c)&&((u=o[l[0]])===null||u===void 0?void 0:u.test(c));(i&&c===l[0]||f)&&(l=l.slice(1),s+=c)}}catch(h){a.e(h)}finally{a.f()}return s}function Yf(e,t){var n,r=t.mask,o=t.replacement,i=t.separate,l=t.showMask,s=0,a="",u=Ff(r);try{for(u.s();!(n=u.n()).done;){var c=n.value;if(!l&&e[s]===void 0)break;Object.prototype.hasOwnProperty.call(o,c)&&e[s]!==void 0?a+=e[s++]:a+=c}}catch(h){u.e(h)}finally{u.f()}if(i&&!l){for(var f=r.length-1;f>=0&&a[f]===r[f];f--);a=a.slice(0,f+1)}return a}function Xf(e,t){for(var n=t.mask,r=t.replacement,o=[],i=0;i<n.length;i++){var l,s=(l=e[i])!==null&&l!==void 0?l:n[i],a=Object.prototype.hasOwnProperty.call(r,s)?"replacement":e[i]!==void 0&&e[i]!==n[i]?"input":"mask";o.push({type:a,value:s,index:i})}return o}function Yn(e){return e.length>0?Uf({},e,/./):{}}function ua(e,t){for(var n=t.start,r=n===void 0?0:n,o=t.end,i=t.mask,l=t.replacement,s=t.separate,a=e.slice(r,o),u=i.slice(r,o),c="",f=0;f<u.length;f++){var h=Object.prototype.hasOwnProperty.call(l,u[f]);h&&a[f]!==void 0&&a[f]!==u[f]?c+=a[f]:h&&s&&(c+=u[f])}return c}function Gf(e,t){var n=t.mask,r=t.replacement,o=typeof r=="string"?Yn(r):r,i=RegExp("[^".concat(Object.keys(o).join(""),"]"),"g");return Yf(Qr(e,{replacementChars:n.replace(i,""),replacement:o,separate:!1}),{mask:n,replacement:o,separate:!1,showMask:!1})}function Dg(e,t){var n=t.mask,r=t.replacement,o=typeof r=="string"?Yn(r):r,i=ua(e,{mask:n,replacement:o,separate:!1}),l=RegExp("[^".concat(Object.keys(o).join(""),"]"),"g");return Qr(i,{replacementChars:n.replace(l,""),replacement:o,separate:!1})}function Hg(e,t){var n=t.mask,r=t.replacement,o=typeof r=="string"?Yn(r):r;return Xf(Gf(e,{mask:n,replacement:o}),{mask:n,replacement:o})}var Ag=["[","]","\\","/","^","$",".","|","?","*","+","(",")","{","}"];function Kf(e){return Ag.includes(e)?"\\".concat(e):e}function Bg(e,t){for(var n=t.mask,r=t.replacement,o=typeof r=="string"?Yn(r):r,i=e==="partial"||e==="partial-inexact",l=e==="full"||e==="partial",s="",a=0;a<n.length;a++){var u=n[a];a===0&&(s="^"),i&&(s+="("),s+=Object.prototype.hasOwnProperty.call(o,u)?"".concat(l?"(?!".concat(Kf(u),")"):"","(").concat(o[u].source,")"):Kf(u),a===n.length-1&&(i&&(s+=")?".repeat(n.length)),s+="$")}return s}function Vg(e,t){return new Proxy(e,{set:function(n,r,o){return r==="current"&&(o!==e.current&&(e.current!==null&&t.unregister(e.current),o!==null&&t.register(o)),n[r]=o,!0)}})}function Fg(e,t,n){return t=Yr(t),function(r,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}(r)}(e,ca()?Reflect.construct(t,n||[],Yr(e).constructor):t.apply(e,n))}function qf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jf(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function Ug(e,t,n){return(t=function(r){var o=function(i,l){if(typeof i!="object"||!i)return i;var s=i[Symbol.toPrimitive];if(s!==void 0){var a=s.call(i,l||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(i)}(r,"string");return typeof o=="symbol"?o:o+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yr(e){return Yr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Yr(e)}function Zg(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xr(e,t)}function ca(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ca=function(){return!!e})()}function ep(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function tp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ep(Object(n),!0).forEach(function(r){Ug(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ep(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wg(e,t){if(e==null)return{};var n,r,o=function(l,s){if(l==null)return{};var a={};for(var u in l)if({}.hasOwnProperty.call(l,u)){if(s.includes(u))continue;a[u]=l[u]}return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Xr(e,t){return Xr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Xr(e,t)}function da(e){return da=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},da(e)}function fa(e){var t=typeof Map=="function"?new Map:void 0;return fa=function(n){if(n===null||!function(o){try{return Function.toString.call(o).indexOf("[native code]")!==-1}catch{return typeof o=="function"}}(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return function(o,i,l){if(ca())return Reflect.construct.apply(null,arguments);var s=[null];s.push.apply(s,i);var a=new(o.bind.apply(o,s));return l&&Xr(a,l.prototype),a}(n,arguments,Yr(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Xr(r,n)},fa(e)}var Gr=function(e){function t(n){var r;return qf(this,t),(r=Fg(this,t,[n])).name="SyntheticChangeError",r}return Zg(t,e),Jf(t)}(fa(Error)),np,Qg=["options"],Yg=["text","email","tel","search","url"],rp=Jf(function e(t){var n=t.init,r=t.tracking;qf(this,e);var o=new WeakMap;this.register=function(i){var l;if(Yg.includes(i.type)){var s=(l=i._wrapperState)!==null&&l!==void 0?l:{},a=s.initialValue,u=a===void 0?"":a,c=s.controlled,f=c!==void 0&&c,h=n({initialValue:i.value||u,controlled:f}),y=h.value,x=h.options,v={value:y,options:x,fallbackOptions:x},E={id:-1,cachedId:-1},m={value:"",selectionStart:0,selectionEnd:0},d=Object.getOwnPropertyDescriptor("_valueTracker"in i?i:HTMLInputElement.prototype,"value");Object.defineProperty(i,"value",tp(tp({},d),{},{set:function(w){var k;m.value=w,d==null||(k=d.set)===null||k===void 0||k.call(i,w)}})),i.value=y;var g=function(){var w=function(){var k,C;m.selectionStart=(k=i.selectionStart)!==null&&k!==void 0?k:0,m.selectionEnd=(C=i.selectionEnd)!==null&&C!==void 0?C:0,E.id=window.setTimeout(w)};E.id=window.setTimeout(w)},b=function(){window.clearTimeout(E.id),E.id=-1,E.cachedId=-1},S=function(w){try{var k,C;if(E.cachedId===E.id)throw new Gr("The input selection has not been updated.");E.cachedId=E.id;var P=i.value,T=i.selectionStart,D=i.selectionEnd;if(T===null||D===null)throw new Gr("The selection attributes have not been initialized.");var ne,Y=m.value;if(w.inputType===void 0&&(m.selectionStart=0,m.selectionEnd=Y.length),T>m.selectionStart?ne="insert":T<=m.selectionStart&&T<m.selectionEnd?ne="deleteBackward":T===m.selectionEnd&&P.length<Y.length&&(ne="deleteForward"),ne===void 0||(ne==="deleteBackward"||ne==="deleteForward")&&P.length>Y.length)throw new Gr("Input type detection error.");var ce="",Ut=m.selectionStart,at=m.selectionEnd;if(ne==="insert")ce=P.slice(m.selectionStart,T);else{var kt=Y.length-P.length;Ut=T,at=T+kt}v.value!==Y?v.options=v.fallbackOptions:v.fallbackOptions=v.options;var L=v.options,z=r({inputType:ne,previousValue:Y,previousOptions:L,value:P,addedValue:ce,changeStart:Ut,changeEnd:at,selectionStart:T,selectionEnd:D}),M=z.options,$=Wg(z,Qg);i.value=$.value,i.setSelectionRange($.selectionStart,$.selectionEnd),v.value=$.value,v.options=M,m.selectionStart=$.selectionStart,m.selectionEnd=$.selectionEnd,(k=i._valueTracker)===null||k===void 0||(C=k.setValue)===null||C===void 0||C.call(k,Y)}catch(ee){if(i.value=m.value,i.setSelectionRange(m.selectionStart,m.selectionEnd),w.preventDefault(),w.stopPropagation(),ee.name!=="SyntheticChangeError")throw ee}};document.activeElement===i&&g(),i.addEventListener("focus",g),i.addEventListener("blur",b),i.addEventListener("input",S),o.set(i,{onFocus:g,onBlur:b,onInput:S})}},this.unregister=function(i){var l=o.get(i);l!==void 0&&(i.removeEventListener("focus",l.onFocus),i.removeEventListener("blur",l.onBlur),i.removeEventListener("input",l.onInput),o.delete(i))}});np=rp,Object.defineProperty(np.prototype,Symbol.toStringTag,{writable:!1,enumerable:!1,configurable:!0,value:"Input"});function Xg(e,t){return R.useCallback(function(n){e.current=n,typeof t=="function"?t(n):da(t)==="object"&&t!==null&&(t.current=n)},[e,t])}var op,Gg=["track","modify"];function Xn(e){var t,n,r,o;return{mask:(t=e.mask)!==null&&t!==void 0?t:"",replacement:typeof e.replacement=="string"?Yn(e.replacement):(n=e.replacement)!==null&&n!==void 0?n:{},showMask:(r=e.showMask)!==null&&r!==void 0&&r,separate:(o=e.separate)!==null&&o!==void 0&&o,track:e.track,modify:e.modify}}var ip=function(e){function t(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Og(this,t),(n=Ng(this,t,[{init:function(o){var i=o.initialValue,l=o.controlled,s=Xn(r),a=s.mask,u=s.replacement,c=s.separate,f=s.showMask;return i=l||i?i:f?a:"",{value:i,options:{mask:a,replacement:u,separate:c}}},tracking:function(o){var i=o.inputType,l=o.previousValue,s=o.previousOptions,a=o.addedValue,u=o.changeStart,c=o.changeEnd,f=Xn(r),h=f.track,y=f.modify,x=Qf(f,Gg),v=x.mask,E=x.replacement,m=x.showMask,d=x.separate,g=_i(_i({},i==="insert"?{inputType:i,data:a}:{inputType:i,data:null}),{},{value:l,selectionStart:u,selectionEnd:c}),b=h==null?void 0:h(g);if(b===!1)throw new Gr("Custom tracking stop.");b===null?a="":b!==!0&&b!==void 0&&(a=b);var S=y==null?void 0:y(g);(S==null?void 0:S.mask)!==void 0&&(v=S.mask),(S==null?void 0:S.replacement)!==void 0&&(E=typeof(S==null?void 0:S.replacement)=="string"?Yn(S==null?void 0:S.replacement):S.replacement),(S==null?void 0:S.showMask)!==void 0&&(m=S.showMask),(S==null?void 0:S.separate)!==void 0&&(d=S.separate);var w=ua(l,_i({end:u},s)),k=ua(l,_i({start:c},s)),C=RegExp("[^".concat(Object.keys(E).join(""),"]"),"g"),P=v.replace(C,"");if(w&&(w=Qr(w,{replacementChars:P,replacement:E,separate:d}),P=P.slice(w.length)),a&&(a=Qr(a,{replacementChars:P,replacement:E,separate:!1}),P=P.slice(a.length)),i==="insert"&&a==="")throw new Gr("The character does not match the key value of the `replacement` object.");if(d){var T=v.slice(u,c).replace(C,""),D=T.length-a.length;D<0?k=k.slice(-D):D>0&&(k=T.slice(-D)+k)}k&&(k=Qr(k,{replacementChars:P,replacement:E,separate:d}));var ne=Yf(w+a+k,{mask:v,replacement:E,separate:d,showMask:m}),Y=function(ce){var Ut,at,kt,L=ce.inputType,z=ce.value,M=ce.addedValue,$=ce.beforeChangeValue,ee=ce.mask,pn=ce.replacement,Ct=ce.separate,hn=Xf(z,{mask:ee,replacement:pn}).filter(function(pa){var ap=pa.type;return ap==="input"||Ct&&ap==="replacement"}),ut=(Ut=hn[$.length+M.length-1])===null||Ut===void 0?void 0:Ut.index,et=(at=hn[$.length-1])===null||at===void 0?void 0:at.index,Gn=(kt=hn[$.length+M.length])===null||kt===void 0?void 0:kt.index;if(L==="insert"){if(ut!==void 0)return ut+1;if(Gn!==void 0)return Gn;if(et!==void 0)return et+1}if(L==="deleteForward"){if(Gn!==void 0)return Gn;if(et!==void 0)return et+1}if(L==="deleteBackward"){if(et!==void 0)return et+1;if(Gn!==void 0)return Gn}var sp=z.split("").findIndex(function(pa){return Object.prototype.hasOwnProperty.call(pn,pa)});return sp!==-1?sp:z.length}({inputType:i,value:ne,addedValue:a,beforeChangeValue:w,mask:v,replacement:E,separate:d});return{value:ne,selectionStart:Y,selectionEnd:Y,options:{mask:v,replacement:E,separate:d}}}}])).format=function(o){return Gf(o,Xn(r))},n.formatToParts=function(o){return Hg(o,Xn(r))},n.unformat=function(o){return Dg(o,Xn(r))},n.generatePattern=function(o){return Bg(o,Xn(r))},n}return $g(t,rp),Ig(t)}();op=ip,Object.defineProperty(op.prototype,Symbol.toStringTag,{writable:!1,enumerable:!1,configurable:!0,value:"Mask"});function Kg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mask,n=e.replacement,r=e.showMask,o=e.separate,i=e.track,l=e.modify,s=R.useRef(null),a=R.useRef({mask:t,replacement:n,showMask:r,separate:o,track:i,modify:l});return a.current.mask=t,a.current.replacement=n,a.current.showMask=r,a.current.separate=o,a.current.track=i,a.current.modify=l,R.useMemo(function(){return Vg(s,new ip(a.current))},[])}var qg=["component","mask","replacement","showMask","separate","track","modify"];function Jg(e,t){var n=e.component,r=e.mask,o=e.replacement,i=e.showMask,l=e.separate,s=e.track,a=e.modify,u=Qf(e,qg),c=Kg({mask:r,replacement:o,showMask:i,separate:l,track:s,modify:a}),f=Xg(c,t);return n?bt.createElement(n,bi({ref:f},u)):bt.createElement("input",bi({ref:f},u))}var ey=R.forwardRef(Jg);const ty={mask:"MM / DD / YYYY",replacement:{D:/\d/,M:/\d/,Y:/\d/},showMask:!0},lp=({onSubmit:e})=>{const t=e==null,[n,r]=R.useState(null);return p.jsxs("div",{className:U("relative bg-primary-5 flex items-center justify-between pl-4 py-2 pr-2 rounded-outer transition-colors duration-500 before:content-[''] before:absolute before:transition-colors before:-z-10 before:inset-0 before:bg-transparent",t?"":"hover:bg-secondary-20"),children:[p.jsxs("div",{className:"flex items-center",children:[p.jsx(Jd,{className:"w-4 h-4 text-primary-60"}),p.jsx(ey,{...ty,className:U("bg-transparent text-primary-80 outline-0 ml-2 py-2.5",t?"placeholder-primary-20 pointer-events-none":"placeholder-primary-40"),placeholder:"MM / DD / YYYY",onChange:o=>{const i=o.target.value,[l,s,a]=i.split(" / ");l!=null&&l.length===2&&s!=null&&s.length===2&&a!=null&&a.length===4?r(`${a}-${l}-${s}`):r(null)}})]}),p.jsx(xt,{className:"flex-none",label:"Send message",onClick:n==null||e==null?void 0:()=>{e(n)},type:"main",Icon:hi})]})},ny=({children:e,mode:t,theme:n})=>p.jsxs(p.Fragment,{children:[p.jsx("style",{children:Nf}),p.jsx(ia,{className:"bg-background p-4 rounded-outer space-y-4",theme:n,colorMode:t,children:e})]}),ry=(e=>Oh.bind((t,...n)=>R.createElement(e[t]??t,...n)))({TextButton:Ar,IconButton:xt,BaseText:Of,SmallText:If,DateInput:lp,Carousel:Bf,CustomCard:$f,CustomCardRow:Hf,CustomCardImageRow:Df,...sf});class oy extends HTMLElement{constructor(){super(...arguments);H(this,"_root",null);H(this,"_shadowRoot",null);H(this,"onRef",null)}set props(n){this._shadowRoot=this._shadowRoot??this.attachShadow({mode:"closed"}),this._root=Md(this._shadowRoot),this._root.render(p.jsxs(p.Fragment,{children:[p.jsx("style",{children:Nf}),p.jsx(Mf,{...n,ref:r=>{var o;r!=null&&((o=this.onRef)==null||o.call(this,r))}})]}))}disconnectedCallback(){var n;(n=this._root)==null||n.unmount()}}((e,t)=>{customElements.get(e)==null&&customElements.define(e,t)})("nlx-touchpoint",oy);const iy=e=>new Promise(t=>{const n=document.createElement("nlx-touchpoint");n.onRef=r=>{t({set expanded(o){r.setExpanded(o)},get expanded(){return r.getExpanded()},get conversationHandler(){return r.getConversationHandler()},teardown:()=>{document.body.removeChild(n)}})},n.props=e,document.body.appendChild(n)});F.BaseText=Of,F.Carousel=Bf,F.CustomCard=$f,F.CustomCardImageRow=Df,F.CustomCardRow=Hf,F.DateInput=lp,F.IconButton=xt,F.Icons=sf,F.PreviewContainer=ny,F.React=bt,F.SmallText=If,F.TextButton=Ar,F.create=iy,F.html=ry,Object.defineProperty(F,Symbol.toStringTag,{value:"Module"})});
|
|
161
|
+
`);var va,ly=(va="indiana-scroll-container",function(e,t){if(!e)return va;var n;typeof e=="string"?n=e:t=e;var r=va;return n&&(r+="__"+n),r+(t?Object.keys(t).reduce(function(o,i){var l=t[i];return l&&(o+=" "+(typeof l=="boolean"?r+"--"+i:r+"--"+i+"_"+l)),o},""):"")}),sy=function(e){function t(n){var r=e.call(this,n)||this;return r.onEndScroll=function(){r.scrolling=!1,!r.pressed&&r.started&&r.processEnd()},r.onScroll=function(o){var i=r.container.current;i.scrollLeft===r.scrollLeft&&i.scrollTop===r.scrollTop||(r.scrolling=!0,r.processScroll(o),r.onEndScroll())},r.onTouchStart=function(o){var i=r.props.nativeMobileScroll;if(r.isDraggable(o.target))if(r.internal=!0,i&&r.scrolling)r.pressed=!0;else{var l=o.touches[0];r.processClick(o,l.clientX,l.clientY),!i&&r.props.stopPropagation&&o.stopPropagation()}},r.onTouchEnd=function(o){var i=r.props.nativeMobileScroll;r.pressed&&(!r.started||r.scrolling&&i?r.pressed=!1:r.processEnd(),r.forceUpdate())},r.onTouchMove=function(o){var i=r.props.nativeMobileScroll;if(r.pressed&&(!i||!r.isMobile)){var l=o.touches[0];l&&r.processMove(o,l.clientX,l.clientY),o.preventDefault(),r.props.stopPropagation&&o.stopPropagation()}},r.onMouseDown=function(o){r.isDraggable(o.target)&&r.isScrollable()&&(r.internal=!0,r.props.buttons.indexOf(o.button)!==-1&&(r.processClick(o,o.clientX,o.clientY),o.preventDefault(),r.props.stopPropagation&&o.stopPropagation()))},r.onMouseMove=function(o){r.pressed&&(r.processMove(o,o.clientX,o.clientY),o.preventDefault(),r.props.stopPropagation&&o.stopPropagation())},r.onMouseUp=function(o){r.pressed&&(r.started?r.processEnd():(r.internal=!1,r.pressed=!1,r.forceUpdate(),r.props.onClick&&r.props.onClick(o)),o.preventDefault(),r.props.stopPropagation&&o.stopPropagation())},r.container=Et.createRef(),r.onEndScroll=iy(r.onEndScroll,300),r.scrolling=!1,r.started=!1,r.pressed=!1,r.internal=!1,r.getRef=r.getRef.bind(r),r}return function(n,r){function o(){this.constructor=n}ap(n,r),n.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}(t,e),t.prototype.componentDidMount=function(){var n=this.props.nativeMobileScroll,r=this.container.current;window.addEventListener("mouseup",this.onMouseUp),window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd),r.addEventListener("touchstart",this.onTouchStart,{passive:!1}),r.addEventListener("mousedown",this.onMouseDown,{passive:!1}),n&&(this.isMobile=this.isMobileDevice(),this.isMobile&&this.forceUpdate())},t.prototype.componentWillUnmount=function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},t.prototype.getElement=function(){return this.container.current},t.prototype.isMobileDevice=function(){return window.orientation!==void 0||navigator.userAgent.indexOf("IEMobile")!==-1},t.prototype.isDraggable=function(n){var r=this.props.ignoreElements;if(r){var o=n.closest(r);return o===null||o.contains(this.getElement())}return!0},t.prototype.isScrollable=function(){var n=this.container.current;return n&&(n.scrollWidth>n.clientWidth||n.scrollHeight>n.clientHeight)},t.prototype.processClick=function(n,r,o){var i=this.container.current;this.scrollLeft=i.scrollLeft,this.scrollTop=i.scrollTop,this.clientX=r,this.clientY=o,this.pressed=!0},t.prototype.processStart=function(n){n===void 0&&(n=!0);var r=this.props.onStartScroll;this.started=!0,n&&document.body.classList.add("indiana-dragging"),r&&r({external:!this.internal}),this.forceUpdate()},t.prototype.processScroll=function(n){if(this.started){var r=this.props.onScroll;r&&r({external:!this.internal})}else this.processStart(!1)},t.prototype.processMove=function(n,r,o){var i=this.props,l=i.horizontal,s=i.vertical,a=i.activationDistance,u=i.onScroll,c=this.container.current;this.started?(l&&(c.scrollLeft-=r-this.clientX),s&&(c.scrollTop-=o-this.clientY),u&&u({external:!this.internal}),this.clientX=r,this.clientY=o,this.scrollLeft=c.scrollLeft,this.scrollTop=c.scrollTop):(l&&Math.abs(r-this.clientX)>a||s&&Math.abs(o-this.clientY)>a)&&(this.clientX=r,this.clientY=o,this.processStart())},t.prototype.processEnd=function(){var n=this.props.onEndScroll;this.container.current&&n&&n({external:!this.internal}),this.pressed=!1,this.started=!1,this.scrolling=!1,this.internal=!1,document.body.classList.remove("indiana-dragging"),this.forceUpdate()},t.prototype.getRef=function(n){[this.container,this.props.innerRef].forEach(function(r){r&&(typeof r=="function"?r(n):r.current=n)})},t.prototype.render=function(){var n=this.props,r=n.children,o=n.draggingClassName,i=n.className,l=n.style,s=n.hideScrollbars,a=n.component;return Et.createElement(a,{className:oy(i,this.pressed&&o,ly({dragging:this.pressed,"hide-scrollbars":s,"native-scroll":this.isMobile})),style:l,ref:this.getRef,onScroll:this.onScroll},r)},t.defaultProps={nativeMobileScroll:!0,hideScrollbars:!0,activationDistance:10,vertical:!0,horizontal:!0,stopPropagation:!1,style:{},component:"div",buttons:[0]},t}(R.PureComponent);const up=({children:e})=>h.jsx(sy,{className:"flex gap-x-2 pt-3 pb-1 overflow-x-auto no-scrollbar px-2 -mx-2",children:e});function cp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ay(e,t,n){return t=Oi(t),function(r,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}(r)}(e,pp()?Reflect.construct(t,n||[],Oi(e).constructor):t.apply(e,n))}function uy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cy(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function fp(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(a,u){if(a){if(typeof a=="string")return cp(a,u);var c={}.toString.call(a).slice(8,-1);return c==="Object"&&a.constructor&&(c=a.constructor.name),c==="Map"||c==="Set"?Array.from(a):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?cp(a,u):void 0}}(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(a){throw a},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
162
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,l=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var a=n.next();return l=a.done,a},e:function(a){s=!0,i=a},f:function(){try{l||n.return==null||n.return()}finally{if(s)throw i}}}}function dp(e,t,n){return(t=function(r){var o=function(i,l){if(typeof i!="object"||!i)return i;var s=i[Symbol.toPrimitive];if(s!==void 0){var a=s.call(i,l||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(i)}(r,"string");return typeof o=="symbol"?o:o+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mi(){return Mi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mi.apply(null,arguments)}function Oi(e){return Oi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Oi(e)}function fy(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wa(e,t)}function pp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pp=function(){return!!e})()}function hp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ni(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hp(Object(n),!0).forEach(function(r){dp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mp(e,t){if(e==null)return{};var n,r,o=function(l,s){if(l==null)return{};var a={};for(var u in l)if({}.hasOwnProperty.call(l,u)){if(s.includes(u))continue;a[u]=l[u]}return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function wa(e,t){return wa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},wa(e,t)}function eo(e,t){var n,r=t.replacementChars,o=t.replacement,i=t.separate,l=r,s="",a=fp(e);try{for(a.s();!(n=a.n()).done;){var u,c=n.value,f=!Object.prototype.hasOwnProperty.call(o,c)&&((u=o[l[0]])===null||u===void 0?void 0:u.test(c));(i&&c===l[0]||f)&&(l=l.slice(1),s+=c)}}catch(p){a.e(p)}finally{a.f()}return s}function gp(e,t){var n,r=t.mask,o=t.replacement,i=t.separate,l=t.showMask,s=0,a="",u=fp(r);try{for(u.s();!(n=u.n()).done;){var c=n.value;if(!l&&e[s]===void 0)break;Object.prototype.hasOwnProperty.call(o,c)&&e[s]!==void 0?a+=e[s++]:a+=c}}catch(p){u.e(p)}finally{u.f()}if(i&&!l){for(var f=r.length-1;f>=0&&a[f]===r[f];f--);a=a.slice(0,f+1)}return a}function yp(e,t){for(var n=t.mask,r=t.replacement,o=[],i=0;i<n.length;i++){var l,s=(l=e[i])!==null&&l!==void 0?l:n[i],a=Object.prototype.hasOwnProperty.call(r,s)?"replacement":e[i]!==void 0&&e[i]!==n[i]?"input":"mask";o.push({type:a,value:s,index:i})}return o}function Kn(e){return e.length>0?dp({},e,/./):{}}function xa(e,t){for(var n=t.start,r=n===void 0?0:n,o=t.end,i=t.mask,l=t.replacement,s=t.separate,a=e.slice(r,o),u=i.slice(r,o),c="",f=0;f<u.length;f++){var p=Object.prototype.hasOwnProperty.call(l,u[f]);p&&a[f]!==void 0&&a[f]!==u[f]?c+=a[f]:p&&s&&(c+=u[f])}return c}function vp(e,t){var n=t.mask,r=t.replacement,o=typeof r=="string"?Kn(r):r,i=RegExp("[^".concat(Object.keys(o).join(""),"]"),"g");return gp(eo(e,{replacementChars:n.replace(i,""),replacement:o,separate:!1}),{mask:n,replacement:o,separate:!1,showMask:!1})}function dy(e,t){var n=t.mask,r=t.replacement,o=typeof r=="string"?Kn(r):r,i=xa(e,{mask:n,replacement:o,separate:!1}),l=RegExp("[^".concat(Object.keys(o).join(""),"]"),"g");return eo(i,{replacementChars:n.replace(l,""),replacement:o,separate:!1})}function py(e,t){var n=t.mask,r=t.replacement,o=typeof r=="string"?Kn(r):r;return yp(vp(e,{mask:n,replacement:o}),{mask:n,replacement:o})}var hy=["[","]","\\","/","^","$",".","|","?","*","+","(",")","{","}"];function wp(e){return hy.includes(e)?"\\".concat(e):e}function my(e,t){for(var n=t.mask,r=t.replacement,o=typeof r=="string"?Kn(r):r,i=e==="partial"||e==="partial-inexact",l=e==="full"||e==="partial",s="",a=0;a<n.length;a++){var u=n[a];a===0&&(s="^"),i&&(s+="("),s+=Object.prototype.hasOwnProperty.call(o,u)?"".concat(l?"(?!".concat(wp(u),")"):"","(").concat(o[u].source,")"):wp(u),a===n.length-1&&(i&&(s+=")?".repeat(n.length)),s+="$")}return s}function gy(e,t){return new Proxy(e,{set:function(n,r,o){return r==="current"&&(o!==e.current&&(e.current!==null&&t.unregister(e.current),o!==null&&t.register(o)),n[r]=o,!0)}})}function yy(e,t,n){return t=to(t),function(r,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}(r)}(e,ka()?Reflect.construct(t,n||[],to(e).constructor):t.apply(e,n))}function xp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kp(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function vy(e,t,n){return(t=function(r){var o=function(i,l){if(typeof i!="object"||!i)return i;var s=i[Symbol.toPrimitive];if(s!==void 0){var a=s.call(i,l||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(i)}(r,"string");return typeof o=="symbol"?o:o+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function to(e){return to=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},to(e)}function wy(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&no(e,t)}function ka(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ka=function(){return!!e})()}function Cp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function bp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Cp(Object(n),!0).forEach(function(r){vy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xy(e,t){if(e==null)return{};var n,r,o=function(l,s){if(l==null)return{};var a={};for(var u in l)if({}.hasOwnProperty.call(l,u)){if(s.includes(u))continue;a[u]=l[u]}return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function no(e,t){return no=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},no(e,t)}function Ca(e){return Ca=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ca(e)}function ba(e){var t=typeof Map=="function"?new Map:void 0;return ba=function(n){if(n===null||!function(o){try{return Function.toString.call(o).indexOf("[native code]")!==-1}catch{return typeof o=="function"}}(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return function(o,i,l){if(ka())return Reflect.construct.apply(null,arguments);var s=[null];s.push.apply(s,i);var a=new(o.bind.apply(o,s));return l&&no(a,l.prototype),a}(n,arguments,to(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),no(r,n)},ba(e)}var ro=function(e){function t(n){var r;return xp(this,t),(r=yy(this,t,[n])).name="SyntheticChangeError",r}return wy(t,e),kp(t)}(ba(Error)),Sp,ky=["options"],Cy=["text","email","tel","search","url"],_p=kp(function e(t){var n=t.init,r=t.tracking;xp(this,e);var o=new WeakMap;this.register=function(i){var l;if(Cy.includes(i.type)){var s=(l=i._wrapperState)!==null&&l!==void 0?l:{},a=s.initialValue,u=a===void 0?"":a,c=s.controlled,f=c!==void 0&&c,p=n({initialValue:i.value||u,controlled:f}),y=p.value,x=p.options,v={value:y,options:x,fallbackOptions:x},E={id:-1,cachedId:-1},m={value:"",selectionStart:0,selectionEnd:0},d=Object.getOwnPropertyDescriptor("_valueTracker"in i?i:HTMLInputElement.prototype,"value");Object.defineProperty(i,"value",bp(bp({},d),{},{set:function(w){var C;m.value=w,d==null||(C=d.set)===null||C===void 0||C.call(i,w)}})),i.value=y;var g=function(){var w=function(){var C,k;m.selectionStart=(C=i.selectionStart)!==null&&C!==void 0?C:0,m.selectionEnd=(k=i.selectionEnd)!==null&&k!==void 0?k:0,E.id=window.setTimeout(w)};E.id=window.setTimeout(w)},b=function(){window.clearTimeout(E.id),E.id=-1,E.cachedId=-1},S=function(w){try{var C,k;if(E.cachedId===E.id)throw new ro("The input selection has not been updated.");E.cachedId=E.id;var L=i.value,j=i.selectionStart,D=i.selectionEnd;if(j===null||D===null)throw new ro("The selection attributes have not been initialized.");var Q,G=m.value;if(w.inputType===void 0&&(m.selectionStart=0,m.selectionEnd=G.length),j>m.selectionStart?Q="insert":j<=m.selectionStart&&j<m.selectionEnd?Q="deleteBackward":j===m.selectionEnd&&L.length<G.length&&(Q="deleteForward"),Q===void 0||(Q==="deleteBackward"||Q==="deleteForward")&&L.length>G.length)throw new ro("Input type detection error.");var de="",tt=m.selectionStart,ft=m.selectionEnd;if(Q==="insert")de=L.slice(m.selectionStart,j);else{var St=G.length-L.length;tt=j,ft=j+St}v.value!==G?v.options=v.fallbackOptions:v.fallbackOptions=v.options;var T=v.options,z=r({inputType:Q,previousValue:G,previousOptions:T,value:L,addedValue:de,changeStart:tt,changeEnd:ft,selectionStart:j,selectionEnd:D}),O=z.options,A=xy(z,ky);i.value=A.value,i.setSelectionRange(A.selectionStart,A.selectionEnd),v.value=A.value,v.options=O,m.selectionStart=A.selectionStart,m.selectionEnd=A.selectionEnd,(C=i._valueTracker)===null||C===void 0||(k=C.setValue)===null||k===void 0||k.call(C,G)}catch(ne){if(i.value=m.value,i.setSelectionRange(m.selectionStart,m.selectionEnd),w.preventDefault(),w.stopPropagation(),ne.name!=="SyntheticChangeError")throw ne}};document.activeElement===i&&g(),i.addEventListener("focus",g),i.addEventListener("blur",b),i.addEventListener("input",S),o.set(i,{onFocus:g,onBlur:b,onInput:S})}},this.unregister=function(i){var l=o.get(i);l!==void 0&&(i.removeEventListener("focus",l.onFocus),i.removeEventListener("blur",l.onBlur),i.removeEventListener("input",l.onInput),o.delete(i))}});Sp=_p,Object.defineProperty(Sp.prototype,Symbol.toStringTag,{writable:!1,enumerable:!1,configurable:!0,value:"Input"});function by(e,t){return R.useCallback(function(n){e.current=n,typeof t=="function"?t(n):Ca(t)==="object"&&t!==null&&(t.current=n)},[e,t])}var Ep,Sy=["track","modify"];function Jn(e){var t,n,r,o;return{mask:(t=e.mask)!==null&&t!==void 0?t:"",replacement:typeof e.replacement=="string"?Kn(e.replacement):(n=e.replacement)!==null&&n!==void 0?n:{},showMask:(r=e.showMask)!==null&&r!==void 0&&r,separate:(o=e.separate)!==null&&o!==void 0&&o,track:e.track,modify:e.modify}}var jp=function(e){function t(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return uy(this,t),(n=ay(this,t,[{init:function(o){var i=o.initialValue,l=o.controlled,s=Jn(r),a=s.mask,u=s.replacement,c=s.separate,f=s.showMask;return i=l||i?i:f?a:"",{value:i,options:{mask:a,replacement:u,separate:c}}},tracking:function(o){var i=o.inputType,l=o.previousValue,s=o.previousOptions,a=o.addedValue,u=o.changeStart,c=o.changeEnd,f=Jn(r),p=f.track,y=f.modify,x=mp(f,Sy),v=x.mask,E=x.replacement,m=x.showMask,d=x.separate,g=Ni(Ni({},i==="insert"?{inputType:i,data:a}:{inputType:i,data:null}),{},{value:l,selectionStart:u,selectionEnd:c}),b=p==null?void 0:p(g);if(b===!1)throw new ro("Custom tracking stop.");b===null?a="":b!==!0&&b!==void 0&&(a=b);var S=y==null?void 0:y(g);(S==null?void 0:S.mask)!==void 0&&(v=S.mask),(S==null?void 0:S.replacement)!==void 0&&(E=typeof(S==null?void 0:S.replacement)=="string"?Kn(S==null?void 0:S.replacement):S.replacement),(S==null?void 0:S.showMask)!==void 0&&(m=S.showMask),(S==null?void 0:S.separate)!==void 0&&(d=S.separate);var w=xa(l,Ni({end:u},s)),C=xa(l,Ni({start:c},s)),k=RegExp("[^".concat(Object.keys(E).join(""),"]"),"g"),L=v.replace(k,"");if(w&&(w=eo(w,{replacementChars:L,replacement:E,separate:d}),L=L.slice(w.length)),a&&(a=eo(a,{replacementChars:L,replacement:E,separate:!1}),L=L.slice(a.length)),i==="insert"&&a==="")throw new ro("The character does not match the key value of the `replacement` object.");if(d){var j=v.slice(u,c).replace(k,""),D=j.length-a.length;D<0?C=C.slice(-D):D>0&&(C=j.slice(-D)+C)}C&&(C=eo(C,{replacementChars:L,replacement:E,separate:d}));var Q=gp(w+a+C,{mask:v,replacement:E,separate:d,showMask:m}),G=function(de){var tt,ft,St,T=de.inputType,z=de.value,O=de.addedValue,A=de.beforeChangeValue,ne=de.mask,gn=de.replacement,_t=de.separate,yn=yp(z,{mask:ne,replacement:gn}).filter(function(Sa){var Pp=Sa.type;return Pp==="input"||_t&&Pp==="replacement"}),dt=(tt=yn[A.length+O.length-1])===null||tt===void 0?void 0:tt.index,nt=(ft=yn[A.length-1])===null||ft===void 0?void 0:ft.index,nr=(St=yn[A.length+O.length])===null||St===void 0?void 0:St.index;if(T==="insert"){if(dt!==void 0)return dt+1;if(nr!==void 0)return nr;if(nt!==void 0)return nt+1}if(T==="deleteForward"){if(nr!==void 0)return nr;if(nt!==void 0)return nt+1}if(T==="deleteBackward"){if(nt!==void 0)return nt+1;if(nr!==void 0)return nr}var Tp=z.split("").findIndex(function(Sa){return Object.prototype.hasOwnProperty.call(gn,Sa)});return Tp!==-1?Tp:z.length}({inputType:i,value:Q,addedValue:a,beforeChangeValue:w,mask:v,replacement:E,separate:d});return{value:Q,selectionStart:G,selectionEnd:G,options:{mask:v,replacement:E,separate:d}}}}])).format=function(o){return vp(o,Jn(r))},n.formatToParts=function(o){return py(o,Jn(r))},n.unformat=function(o){return dy(o,Jn(r))},n.generatePattern=function(o){return my(o,Jn(r))},n}return fy(t,_p),cy(t)}();Ep=jp,Object.defineProperty(Ep.prototype,Symbol.toStringTag,{writable:!1,enumerable:!1,configurable:!0,value:"Mask"});function _y(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mask,n=e.replacement,r=e.showMask,o=e.separate,i=e.track,l=e.modify,s=R.useRef(null),a=R.useRef({mask:t,replacement:n,showMask:r,separate:o,track:i,modify:l});return a.current.mask=t,a.current.replacement=n,a.current.showMask=r,a.current.separate=o,a.current.track=i,a.current.modify=l,R.useMemo(function(){return gy(s,new jp(a.current))},[])}var Ey=["component","mask","replacement","showMask","separate","track","modify"];function jy(e,t){var n=e.component,r=e.mask,o=e.replacement,i=e.showMask,l=e.separate,s=e.track,a=e.modify,u=mp(e,Ey),c=_y({mask:r,replacement:o,showMask:i,separate:l,track:s,modify:a}),f=by(c,t);return n?Et.createElement(n,Mi({ref:f},u)):Et.createElement("input",Mi({ref:f},u))}var Ly=R.forwardRef(jy);const Ty={mask:"MM / DD / YYYY",replacement:{D:/\d/,M:/\d/,Y:/\d/},showMask:!0},Lp=({onSubmit:e})=>{const t=e==null,[n,r]=R.useState(null);return h.jsxs("div",{className:Z("relative bg-primary-5 flex items-center justify-between pl-4 py-2 pr-2 rounded-outer transition-colors duration-500 before:content-[''] before:absolute before:transition-colors before:-z-10 before:inset-0 before:bg-transparent",t?"":"hover:bg-secondary-20"),children:[h.jsxs("div",{className:"flex items-center",children:[h.jsx(bd,{className:"w-4 h-4 text-primary-60"}),h.jsx(Ly,{...Ty,className:Z("bg-transparent text-primary-80 outline-0 ml-2 py-2.5",t?"placeholder-primary-20 pointer-events-none":"placeholder-primary-40"),placeholder:"MM / DD / YYYY",onChange:o=>{const i=o.target.value,[l,s,a]=i.split(" / ");l!=null&&l.length===2&&s!=null&&s.length===2&&a!=null&&a.length===4?r(`${a}-${l}-${s}`):r(null)}})]}),h.jsx(bt,{className:"flex-none",label:"Send message",onClick:n==null||e==null?void 0:()=>{e(n)},type:"main",Icon:Si})]})},Py=({children:e,mode:t,theme:n})=>h.jsxs(h.Fragment,{children:[h.jsx("style",{children:np}),h.jsx(ga,{className:"bg-background p-4 rounded-outer space-y-4",theme:n,colorMode:t,children:e})]}),Ry=(e=>o0.bind((t,...n)=>R.createElement(e[t]??t,...n)))({TextButton:Qr,IconButton:bt,BaseText:rp,SmallText:op,DateInput:Lp,Carousel:up,CustomCard:ip,CustomCardRow:sp,CustomCardImageRow:lp,...Pd});class zy extends HTMLElement{constructor(){super(...arguments);rr(this,io);rr(this,er,null);rr(this,oo,null);rr(this,mn,null);H(this,"onRef",null);H(this,"embedded",!0);H(this,"onClose",null);H(this,"enableSettings",!1);rr(this,tr,!0)}set enabled(n){rt(this,tr)!==n&&(lo(this,tr,n),Ea(this,io,ja).call(this))}set touchpointConfiguration(n){am(rt(this,mn),n)||(lo(this,mn,n),Ea(this,io,ja).call(this))}disconnectedCallback(){var n;(n=rt(this,er))==null||n.unmount()}}er=new WeakMap,oo=new WeakMap,mn=new WeakMap,tr=new WeakMap,io=new WeakSet,ja=function(){rt(this,oo)??lo(this,oo,this.attachShadow({mode:"closed"})),rt(this,er)??lo(this,er,Yf(rt(this,oo))),rt(this,mn)!=null&&rt(this,er).render(h.jsxs(h.Fragment,{children:[h.jsx("style",{children:np}),h.jsx(tp,{...rt(this,mn),embedded:this.embedded,onClose:this.onClose,enableSettings:this.enableSettings,enabled:rt(this,tr),ref:n=>{var r;n!=null&&((r=this.onRef)==null||r.call(this,n))}})]}))},((e,t)=>{customElements.get(e)==null&&customElements.define(e,t)})("nlx-touchpoint",zy);const My=e=>new Promise(t=>{const n=document.createElement("nlx-touchpoint");n.embedded=!1,n.onRef=r=>{t({set expanded(o){r.setExpanded(o)},get expanded(){return r.getExpanded()},get conversationHandler(){return r.getConversationHandler()},teardown:()=>{document.body.removeChild(n)}})},n.onClose=()=>{},n.enableSettings=!0,n.touchpointConfiguration=e,document.body.appendChild(n)});M.BaseText=rp,M.Carousel=up,M.CustomCard=ip,M.CustomCardImageRow=lp,M.CustomCardRow=sp,M.DateInput=Lp,M.IconButton=bt,M.Icons=Pd,M.PreviewContainer=Py,M.React=Et,M.SmallText=op,M.TextButton=Qr,M.create=My,M.html=Ry,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})});
|