make this code into readable form : var eg=Object.defineProperty;var tg=(e,t,n)=>t in e?eg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var le=(e,t,n)=>(tg(e,typeof t!="symbol"?t+"":t,n),n);import{i as ng,s as cs,R as fs,f as rg}from"./fileListReducer-ef793690.js";function og(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const ig=[{name:"ChatGPT",inputSelector:"#prompt-textarea",urlPattern:/chatgpt/,buttonTargetSelector:['[aria-label="Attach files"]','[data-testid="send-button"], [aria-label="Send prompt"]'],fileInputSelector:'[type="file"]'},{name:"Claude",urlPattern:/claude/,buttonTargetSelector:['[aria-label="Capture screenshot"]'],inputSelector:'[contenteditable="true"]',fileInputSelector:'[type="file"]'}];function Lu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rp={exports:{}},Hl={},op={exports:{}},ee={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var li=Symbol.for("react.element"),lg=Symbol.for("react.portal"),ag=Symbol.for("react.fragment"),sg=Symbol.for("react.strict_mode"),ug=Symbol.for("react.profiler"),cg=Symbol.for("react.provider"),fg=Symbol.for("react.context"),dg=Symbol.for("react.forward_ref"),pg=Symbol.for("react.suspense"),hg=Symbol.for("react.memo"),mg=Symbol.for("react.lazy"),lf=Symbol.iterator;function gg(e){return e===null||typeof e!="object"?null:(e=lf&&e[lf]||e["@@iterator"],typeof e=="function"?e:null)}var ip={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},lp=Object.assign,ap={};function Zr(e,t,n){this.props=e,this.context=t,this.refs=ap,this.updater=n||ip}Zr.prototype.isReactComponent={};Zr.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")};Zr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function sp(){}sp.prototype=Zr.prototype;function Au(e,t,n){this.props=e,this.context=t,this.refs=ap,this.updater=n||ip}var $u=Au.prototype=new sp;$u.constructor=Au;lp($u,Zr.prototype);$u.isPureReactComponent=!0;var af=Array.isArray,up=Object.prototype.hasOwnProperty,Ru={current:null},cp={key:!0,ref:!0,__self:!0,__source:!0};function fp(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)up.call(t,r)&&!cp.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var s=Array(a),u=0;u<a;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:li,type:e,key:i,ref:l,props:o,_owner:Ru.current}}function yg(e,t){return{$$typeof:li,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function zu(e){return typeof e=="object"&&e!==null&&e.$$typeof===li}function vg(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var sf=/\/+/g;function Ca(e,t){return typeof e=="object"&&e!==null&&e.key!=null?vg(""+e.key):t.toString(36)}function Wi(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 li:case lg:l=!0}}if(l)return l=e,o=o(l),e=r===""?"."+Ca(l,0):r,af(o)?(n="",e!=null&&(n=e.replace(sf,"$&/")+"/"),Wi(o,t,n,"",function(u){return u})):o!=null&&(zu(o)&&(o=yg(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(sf,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=r===""?".":r+":",af(e))for(var a=0;a<e.length;a++){i=e[a];var s=r+Ca(i,a);l+=Wi(i,t,n,s,o)}else if(s=gg(e),typeof s=="function")for(e=s.call(e),a=0;!(i=e.next()).done;)i=i.value,s=r+Ca(i,a++),l+=Wi(i,t,n,s,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 bi(e,t,n){if(e==null)return e;var r=[],o=0;return Wi(e,r,"","",function(i){return t.call(n,i,o++)}),r}function xg(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 We={current:null},Vi={transition:null},wg={ReactCurrentDispatcher:We,ReactCurrentBatchConfig:Vi,ReactCurrentOwner:Ru};function dp(){throw Error("act(...) is not supported in production builds of React.")}ee.Children={map:bi,forEach:function(e,t,n){bi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return bi(e,function(){t++}),t},toArray:function(e){return bi(e,function(t){return t})||[]},only:function(e){if(!zu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ee.Component=Zr;ee.Fragment=ag;ee.Profiler=ug;ee.PureComponent=Au;ee.StrictMode=sg;ee.Suspense=pg;ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=wg;ee.act=dp;ee.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=lp({},e.props),o=e.key,i=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,l=Ru.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(s in t)up.call(t,s)&&!cp.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&a!==void 0?a[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){a=Array(s);for(var u=0;u<s;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:li,type:e.type,key:o,ref:i,props:r,_owner:l}};ee.createContext=function(e){return e={$$typeof:fg,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:cg,_context:e},e.Consumer=e};ee.createElement=fp;ee.createFactory=function(e){var t=fp.bind(null,e);return t.type=e,t};ee.createRef=function(){return{current:null}};ee.forwardRef=function(e){return{$$typeof:dg,render:e}};ee.isValidElement=zu;ee.lazy=function(e){return{$$typeof:mg,_payload:{_status:-1,_result:e},_init:xg}};ee.memo=function(e,t){return{$$typeof:hg,type:e,compare:t===void 0?null:t}};ee.startTransition=function(e){var t=Vi.transition;Vi.transition={};try{e()}finally{Vi.transition=t}};ee.unstable_act=dp;ee.useCallback=function(e,t){return We.current.useCallback(e,t)};ee.useContext=function(e){return We.current.useContext(e)};ee.useDebugValue=function(){};ee.useDeferredValue=function(e){return We.current.useDeferredValue(e)};ee.useEffect=function(e,t){return We.current.useEffect(e,t)};ee.useId=function(){return We.current.useId()};ee.useImperativeHandle=function(e,t,n){return We.current.useImperativeHandle(e,t,n)};ee.useInsertionEffect=function(e,t){return We.current.useInsertionEffect(e,t)};ee.useLayoutEffect=function(e,t){return We.current.useLayoutEffect(e,t)};ee.useMemo=function(e,t){return We.current.useMemo(e,t)};ee.useReducer=function(e,t,n){return We.current.useReducer(e,t,n)};ee.useRef=function(e){return We.current.useRef(e)};ee.useState=function(e){return We.current.useState(e)};ee.useSyncExternalStore=function(e,t,n){return We.current.useSyncExternalStore(e,t,n)};ee.useTransition=function(){return We.current.useTransition()};ee.version="18.3.1";op.exports=ee;var w=op.exports;const X=Lu(w),Do=og({__proto__:null,default:X},[w]);/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var kg=w,bg=Symbol.for("react.element"),Eg=Symbol.for("react.fragment"),Sg=Object.prototype.hasOwnProperty,Cg=kg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Pg={key:!0,ref:!0,__self:!0,__source:!0};function pp(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)Sg.call(t,r)&&!Pg.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:bg,type:e,key:i,ref:l,props:o,_owner:Cg.current}}Hl.Fragment=Eg;Hl.jsx=pp;Hl.jsxs=pp;rp.exports=Hl;var z=rp.exports;function Og(){return`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
  <path stroke-linecap="round" stroke-linejoin="round" d="M3.75 9.776c.112-.017.227-.026.344-.026h15.812c.117 0 .232.009.344.026m-16.5 0a2.25 2.25 0 0 0-1.883 2.542l.857 6a2.25 2.25 0 0 0 2.227 1.932H19.05a2.25 2.25 0 0 0 2.227-1.932l.857-6a2.25 2.25 0 0 0-1.883-2.542m-16.5 0V6A2.25 2.25 0 0 1 6 3.75h3.879a1.5 1.5 0 0 1 1.06.44l2.122 2.12a1.5 1.5 0 0 0 1.06.44H18A2.25 2.25 0 0 1 20.25 9v.776" />
</svg>
`}var hp={exports:{}},at={},mp={exports:{}},gp={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(e){function t(I,V){var W=I.length;I.push(V);e:for(;0<W;){var oe=W-1>>>1,ne=I[oe];if(0<o(ne,V))I[oe]=V,I[W]=ne,W=oe;else break e}}function n(I){return I.length===0?null:I[0]}function r(I){if(I.length===0)return null;var V=I[0],W=I.pop();if(W!==V){I[0]=W;e:for(var oe=0,ne=I.length,ft=ne>>>1;oe<ft;){var ke=2*(oe+1)-1,Dn=I[ke],St=ke+1,$t=I[St];if(0>o(Dn,W))St<ne&&0>o($t,Dn)?(I[oe]=$t,I[St]=W,oe=St):(I[oe]=Dn,I[ke]=W,oe=ke);else if(St<ne&&0>o($t,W))I[oe]=$t,I[St]=W,oe=St;else break e}}return V}function o(I,V){var W=I.sortIndex-V.sortIndex;return W!==0?W:I.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var s=[],u=[],c=1,f=null,d=3,p=!1,y=!1,h=!1,k=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(I){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=I)r(u),V.sortIndex=V.expirationTime,t(s,V);else break;V=n(u)}}function E(I){if(h=!1,v(I),!y)if(n(s)!==null)y=!0,Ce(N);else{var V=n(u);V!==null&&De(E,V.startTime-I)}}function N(I,V){y=!1,h&&(h=!1,m(L),L=-1),p=!0;var W=d;try{for(v(V),f=n(s);f!==null&&(!(f.expirationTime>V)||I&&!F());){var oe=f.callback;if(typeof oe=="function"){f.callback=null,d=f.priorityLevel;var ne=oe(f.expirationTime<=V);V=e.unstable_now(),typeof ne=="function"?f.callback=ne:f===n(s)&&r(s),v(V)}else r(s);f=n(s)}if(f!==null)var ft=!0;else{var ke=n(u);ke!==null&&De(E,ke.startTime-V),ft=!1}return ft}finally{f=null,d=W,p=!1}}var _=!1,j=null,L=-1,M=5,R=-1;function F(){return!(e.unstable_now()-R<M)}function Y(){if(j!==null){var I=e.unstable_now();R=I;var V=!0;try{V=j(!0,I)}finally{V?Q():(_=!1,j=null)}}else _=!1}var Q;if(typeof g=="function")Q=function(){g(Y)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,Z=te.port2;te.port1.onmessage=Y,Q=function(){Z.postMessage(null)}}else Q=function(){k(Y,0)};function Ce(I){j=I,_||(_=!0,Q())}function De(I,V){L=k(function(){I(e.unstable_now())},V)}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(I){I.callback=null},e.unstable_continueExecution=function(){y||p||(y=!0,Ce(N))},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(I){switch(d){case 1:case 2:case 3:var V=3;break;default:V=d}var W=d;d=V;try{return I()}finally{d=W}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(I,V){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var W=d;d=I;try{return V()}finally{d=W}},e.unstable_scheduleCallback=function(I,V,W){var oe=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?oe+W:oe):W=oe,I){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=W+ne,I={id:c++,callback:V,priorityLevel:I,startTime:W,expirationTime:ne,sortIndex:-1},W>oe?(I.sortIndex=W,t(u,I),n(s)===null&&I===n(u)&&(h?(m(L),L=-1):h=!0,De(E,W-oe))):(I.sortIndex=ne,t(s,I),y||p||(y=!0,Ce(N))),I},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(I){var V=d;return function(){var W=d;d=V;try{return I.apply(this,arguments)}finally{d=W}}}})(gp);mp.exports=gp;var _g=mp.exports;/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Ng=w,lt=_g;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 yp=new Set,Uo={};function dr(e,t){Hr(e,t),Hr(e+"Capture",t)}function Hr(e,t){for(Uo[e]=t,e=0;e<t.length;e++)yp.add(t[e])}var en=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ds=Object.prototype.hasOwnProperty,Tg=/^[: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]*$/,uf={},cf={};function jg(e){return ds.call(cf,e)?!0:ds.call(uf,e)?!1:Tg.test(e)?cf[e]=!0:(uf[e]=!0,!1)}function Lg(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 Ag(e,t,n,r){if(t===null||typeof t>"u"||Lg(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 Ve(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 $e={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){$e[e]=new Ve(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];$e[t]=new Ve(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){$e[e]=new Ve(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){$e[e]=new Ve(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){$e[e]=new Ve(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){$e[e]=new Ve(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){$e[e]=new Ve(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){$e[e]=new Ve(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){$e[e]=new Ve(e,5,!1,e.toLowerCase(),null,!1,!1)});var Iu=/[\-:]([a-z])/g;function Fu(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(Iu,Fu);$e[t]=new Ve(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(Iu,Fu);$e[t]=new Ve(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(Iu,Fu);$e[t]=new Ve(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){$e[e]=new Ve(e,1,!1,e.toLowerCase(),null,!1,!1)});$e.xlinkHref=new Ve("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){$e[e]=new Ve(e,1,!1,e.toLowerCase(),null,!0,!0)});function Mu(e,t,n,r){var o=$e.hasOwnProperty(t)?$e[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Ag(t,n,o,r)&&(n=null),r||o===null?jg(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 sn=Ng.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ei=Symbol.for("react.element"),br=Symbol.for("react.portal"),Er=Symbol.for("react.fragment"),Du=Symbol.for("react.strict_mode"),ps=Symbol.for("react.profiler"),vp=Symbol.for("react.provider"),xp=Symbol.for("react.context"),Uu=Symbol.for("react.forward_ref"),hs=Symbol.for("react.suspense"),ms=Symbol.for("react.suspense_list"),Bu=Symbol.for("react.memo"),pn=Symbol.for("react.lazy"),wp=Symbol.for("react.offscreen"),ff=Symbol.iterator;function lo(e){return e===null||typeof e!="object"?null:(e=ff&&e[ff]||e["@@iterator"],typeof e=="function"?e:null)}var xe=Object.assign,Pa;function wo(e){if(Pa===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Pa=t&&t[1]||""}return`
`+Pa+e}var Oa=!1;function _a(e,t){if(!e||Oa)return"";Oa=!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(`
`),i=r.stack.split(`
`),l=o.length-1,a=i.length-1;1<=l&&0<=a&&o[l]!==i[a];)a--;for(;1<=l&&0<=a;l--,a--)if(o[l]!==i[a]){if(l!==1||a!==1)do if(l--,a--,0>a||o[l]!==i[a]){var s=`
`+o[l].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=l&&0<=a);break}}}finally{Oa=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?wo(e):""}function $g(e){switch(e.tag){case 5:return wo(e.type);case 16:return wo("Lazy");case 13:return wo("Suspense");case 19:return wo("SuspenseList");case 0:case 2:case 15:return e=_a(e.type,!1),e;case 11:return e=_a(e.type.render,!1),e;case 1:return e=_a(e.type,!0),e;default:return""}}function gs(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 Er:return"Fragment";case br:return"Portal";case ps:return"Profiler";case Du:return"StrictMode";case hs:return"Suspense";case ms:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case xp:return(e.displayName||"Context")+".Consumer";case vp:return(e._context.displayName||"Context")+".Provider";case Uu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Bu:return t=e.displayName||null,t!==null?t:gs(e.type)||"Memo";case pn:t=e._payload,e=e._init;try{return gs(e(t))}catch{}}return null}function Rg(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 gs(t);case 8:return t===Du?"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 jn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function kp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function zg(e){var t=kp(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 Si(e){e._valueTracker||(e._valueTracker=zg(e))}function bp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=kp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function sl(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 ys(e,t){var n=t.checked;return xe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function df(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=jn(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 Ep(e,t){t=t.checked,t!=null&&Mu(e,"checked",t,!1)}function vs(e,t){Ep(e,t);var n=jn(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")?xs(e,t.type,n):t.hasOwnProperty("defaultValue")&&xs(e,t.type,jn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function pf(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 xs(e,t,n){(t!=="number"||sl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ko=Array.isArray;function zr(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=""+jn(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 ws(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error($(91));return xe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function hf(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(ko(n)){if(1<n.length)throw Error($(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:jn(n)}}function Sp(e,t){var n=jn(t.value),r=jn(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 mf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Cp(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 ks(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Cp(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ci,Pp=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(Ci=Ci||document.createElement("div"),Ci.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ci.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Bo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Oo={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},Ig=["Webkit","ms","Moz","O"];Object.keys(Oo).forEach(function(e){Ig.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Oo[t]=Oo[e]})});function Op(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Oo.hasOwnProperty(e)&&Oo[e]?(""+t).trim():t+"px"}function _p(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Op(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Fg=xe({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 bs(e,t){if(t){if(Fg[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 Es(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 Ss=null;function Hu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Cs=null,Ir=null,Fr=null;function gf(e){if(e=ui(e)){if(typeof Cs!="function")throw Error($(280));var t=e.stateNode;t&&(t=ql(t),Cs(e.stateNode,e.type,t))}}function Np(e){Ir?Fr?Fr.push(e):Fr=[e]:Ir=e}function Tp(){if(Ir){var e=Ir,t=Fr;if(Fr=Ir=null,gf(e),t)for(e=0;e<t.length;e++)gf(t[e])}}function jp(e,t){return e(t)}function Lp(){}var Na=!1;function Ap(e,t,n){if(Na)return e(t,n);Na=!0;try{return jp(e,t,n)}finally{Na=!1,(Ir!==null||Fr!==null)&&(Lp(),Tp())}}function Ho(e,t){var n=e.stateNode;if(n===null)return null;var r=ql(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 Ps=!1;if(en)try{var ao={};Object.defineProperty(ao,"passive",{get:function(){Ps=!0}}),window.addEventListener("test",ao,ao),window.removeEventListener("test",ao,ao)}catch{Ps=!1}function Mg(e,t,n,r,o,i,l,a,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var _o=!1,ul=null,cl=!1,Os=null,Dg={onError:function(e){_o=!0,ul=e}};function Ug(e,t,n,r,o,i,l,a,s){_o=!1,ul=null,Mg.apply(Dg,arguments)}function Bg(e,t,n,r,o,i,l,a,s){if(Ug.apply(this,arguments),_o){if(_o){var u=ul;_o=!1,ul=null}else throw Error($(198));cl||(cl=!0,Os=u)}}function pr(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 $p(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 yf(e){if(pr(e)!==e)throw Error($(188))}function Hg(e){var t=e.alternate;if(!t){if(t=pr(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 yf(o),e;if(i===r)return yf(o),t;i=i.sibling}throw Error($(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,a=o.child;a;){if(a===n){l=!0,n=o,r=i;break}if(a===r){l=!0,r=o,n=i;break}a=a.sibling}if(!l){for(a=i.child;a;){if(a===n){l=!0,n=i,r=o;break}if(a===r){l=!0,r=i,n=o;break}a=a.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 Rp(e){return e=Hg(e),e!==null?zp(e):null}function zp(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=zp(e);if(t!==null)return t;e=e.sibling}return null}var Ip=lt.unstable_scheduleCallback,vf=lt.unstable_cancelCallback,Wg=lt.unstable_shouldYield,Vg=lt.unstable_requestPaint,be=lt.unstable_now,Qg=lt.unstable_getCurrentPriorityLevel,Wu=lt.unstable_ImmediatePriority,Fp=lt.unstable_UserBlockingPriority,fl=lt.unstable_NormalPriority,Yg=lt.unstable_LowPriority,Mp=lt.unstable_IdlePriority,Wl=null,Ut=null;function qg(e){if(Ut&&typeof Ut.onCommitFiberRoot=="function")try{Ut.onCommitFiberRoot(Wl,e,void 0,(e.current.flags&128)===128)}catch{}}var Tt=Math.clz32?Math.clz32:Xg,Kg=Math.log,Gg=Math.LN2;function Xg(e){return e>>>=0,e===0?32:31-(Kg(e)/Gg|0)|0}var Pi=64,Oi=4194304;function bo(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 dl(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 a=l&~o;a!==0?r=bo(a):(i&=l,i!==0&&(r=bo(i)))}else l=n&~o,l!==0?r=bo(l):i!==0&&(r=bo(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-Tt(t),o=1<<n,r|=e[n],t&=~o;return r}function Zg(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 Jg(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var l=31-Tt(i),a=1<<l,s=o[l];s===-1?(!(a&n)||a&r)&&(o[l]=Zg(a,t)):s<=t&&(e.expiredLanes|=a),i&=~a}}function _s(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Dp(){var e=Pi;return Pi<<=1,!(Pi&4194240)&&(Pi=64),e}function Ta(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ai(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Tt(t),e[t]=n}function e1(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-Tt(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function Vu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Tt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var ae=0;function Up(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Bp,Qu,Hp,Wp,Vp,Ns=!1,_i=[],En=null,Sn=null,Cn=null,Wo=new Map,Vo=new Map,mn=[],t1="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 xf(e,t){switch(e){case"focusin":case"focusout":En=null;break;case"dragenter":case"dragleave":Sn=null;break;case"mouseover":case"mouseout":Cn=null;break;case"pointerover":case"pointerout":Wo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vo.delete(t.pointerId)}}function so(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=ui(t),t!==null&&Qu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function n1(e,t,n,r,o){switch(t){case"focusin":return En=so(En,e,t,n,r,o),!0;case"dragenter":return Sn=so(Sn,e,t,n,r,o),!0;case"mouseover":return Cn=so(Cn,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Wo.set(i,so(Wo.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Vo.set(i,so(Vo.get(i)||null,e,t,n,r,o)),!0}return!1}function Qp(e){var t=Kn(e.target);if(t!==null){var n=pr(t);if(n!==null){if(t=n.tag,t===13){if(t=$p(n),t!==null){e.blockedOn=t,Vp(e.priority,function(){Hp(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 Qi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ts(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ss=r,n.target.dispatchEvent(r),Ss=null}else return t=ui(n),t!==null&&Qu(t),e.blockedOn=n,!1;t.shift()}return!0}function wf(e,t,n){Qi(e)&&n.delete(t)}function r1(){Ns=!1,En!==null&&Qi(En)&&(En=null),Sn!==null&&Qi(Sn)&&(Sn=null),Cn!==null&&Qi(Cn)&&(Cn=null),Wo.forEach(wf),Vo.forEach(wf)}function uo(e,t){e.blockedOn===t&&(e.blockedOn=null,Ns||(Ns=!0,lt.unstable_scheduleCallback(lt.unstable_NormalPriority,r1)))}function Qo(e){function t(o){return uo(o,e)}if(0<_i.length){uo(_i[0],e);for(var n=1;n<_i.length;n++){var r=_i[n];r.blockedOn===e&&(r.blockedOn=null)}}for(En!==null&&uo(En,e),Sn!==null&&uo(Sn,e),Cn!==null&&uo(Cn,e),Wo.forEach(t),Vo.forEach(t),n=0;n<mn.length;n++)r=mn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<mn.length&&(n=mn[0],n.blockedOn===null);)Qp(n),n.blockedOn===null&&mn.shift()}var Mr=sn.ReactCurrentBatchConfig,pl=!0;function o1(e,t,n,r){var o=ae,i=Mr.transition;Mr.transition=null;try{ae=1,Yu(e,t,n,r)}finally{ae=o,Mr.transition=i}}function i1(e,t,n,r){var o=ae,i=Mr.transition;Mr.transition=null;try{ae=4,Yu(e,t,n,r)}finally{ae=o,Mr.transition=i}}function Yu(e,t,n,r){if(pl){var o=Ts(e,t,n,r);if(o===null)Da(e,t,r,hl,n),xf(e,r);else if(n1(o,e,t,n,r))r.stopPropagation();else if(xf(e,r),t&4&&-1<t1.indexOf(e)){for(;o!==null;){var i=ui(o);if(i!==null&&Bp(i),i=Ts(e,t,n,r),i===null&&Da(e,t,r,hl,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else Da(e,t,r,null,n)}}var hl=null;function Ts(e,t,n,r){if(hl=null,e=Hu(r),e=Kn(e),e!==null)if(t=pr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=$p(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 hl=e,null}function Yp(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(Qg()){case Wu:return 1;case Fp:return 4;case fl:case Yg:return 16;case Mp:return 536870912;default:return 16}default:return 16}}var xn=null,qu=null,Yi=null;function qp(){if(Yi)return Yi;var e,t=qu,n=t.length,r,o="value"in xn?xn.value:xn.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 Yi=o.slice(e,1<r?1-r:void 0)}function qi(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 Ni(){return!0}function kf(){return!1}function st(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 a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Ni:kf,this.isPropagationStopped=kf,this}return xe(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=Ni)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ni)},persist:function(){},isPersistent:Ni}),t}var Jr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ku=st(Jr),si=xe({},Jr,{view:0,detail:0}),l1=st(si),ja,La,co,Vl=xe({},si,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gu,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!==co&&(co&&e.type==="mousemove"?(ja=e.screenX-co.screenX,La=e.screenY-co.screenY):La=ja=0,co=e),ja)},movementY:function(e){return"movementY"in e?e.movementY:La}}),bf=st(Vl),a1=xe({},Vl,{dataTransfer:0}),s1=st(a1),u1=xe({},si,{relatedTarget:0}),Aa=st(u1),c1=xe({},Jr,{animationName:0,elapsedTime:0,pseudoElement:0}),f1=st(c1),d1=xe({},Jr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),p1=st(d1),h1=xe({},Jr,{data:0}),Ef=st(h1),m1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},g1={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"},y1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function v1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=y1[e])?!!t[e]:!1}function Gu(){return v1}var x1=xe({},si,{key:function(e){if(e.key){var t=m1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=qi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?g1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gu,charCode:function(e){return e.type==="keypress"?qi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?qi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),w1=st(x1),k1=xe({},Vl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sf=st(k1),b1=xe({},si,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gu}),E1=st(b1),S1=xe({},Jr,{propertyName:0,elapsedTime:0,pseudoElement:0}),C1=st(S1),P1=xe({},Vl,{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}),O1=st(P1),_1=[9,13,27,32],Xu=en&&"CompositionEvent"in window,No=null;en&&"documentMode"in document&&(No=document.documentMode);var N1=en&&"TextEvent"in window&&!No,Kp=en&&(!Xu||No&&8<No&&11>=No),Cf=String.fromCharCode(32),Pf=!1;function Gp(e,t){switch(e){case"keyup":return _1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Sr=!1;function T1(e,t){switch(e){case"compositionend":return Xp(t);case"keypress":return t.which!==32?null:(Pf=!0,Cf);case"textInput":return e=t.data,e===Cf&&Pf?null:e;default:return null}}function j1(e,t){if(Sr)return e==="compositionend"||!Xu&&Gp(e,t)?(e=qp(),Yi=qu=xn=null,Sr=!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 Kp&&t.locale!=="ko"?null:t.data;default:return null}}var L1={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 Of(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!L1[e.type]:t==="textarea"}function Zp(e,t,n,r){Np(r),t=ml(t,"onChange"),0<t.length&&(n=new Ku("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var To=null,Yo=null;function A1(e){uh(e,0)}function Ql(e){var t=Or(e);if(bp(t))return e}function $1(e,t){if(e==="change")return t}var Jp=!1;if(en){var $a;if(en){var Ra="oninput"in document;if(!Ra){var _f=document.createElement("div");_f.setAttribute("oninput","return;"),Ra=typeof _f.oninput=="function"}$a=Ra}else $a=!1;Jp=$a&&(!document.documentMode||9<document.documentMode)}function Nf(){To&&(To.detachEvent("onpropertychange",eh),Yo=To=null)}function eh(e){if(e.propertyName==="value"&&Ql(Yo)){var t=[];Zp(t,Yo,e,Hu(e)),Ap(A1,t)}}function R1(e,t,n){e==="focusin"?(Nf(),To=t,Yo=n,To.attachEvent("onpropertychange",eh)):e==="focusout"&&Nf()}function z1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ql(Yo)}function I1(e,t){if(e==="click")return Ql(t)}function F1(e,t){if(e==="input"||e==="change")return Ql(t)}function M1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Lt=typeof Object.is=="function"?Object.is:M1;function qo(e,t){if(Lt(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(!ds.call(t,o)||!Lt(e[o],t[o]))return!1}return!0}function Tf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jf(e,t){var n=Tf(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=Tf(n)}}function th(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?th(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function nh(){for(var e=window,t=sl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=sl(e.document)}return t}function Zu(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 D1(e){var t=nh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&th(n.ownerDocument.documentElement,n)){if(r!==null&&Zu(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=jf(n,i);var l=jf(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 U1=en&&"documentMode"in document&&11>=document.documentMode,Cr=null,js=null,jo=null,Ls=!1;function Lf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ls||Cr==null||Cr!==sl(r)||(r=Cr,"selectionStart"in r&&Zu(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}),jo&&qo(jo,r)||(jo=r,r=ml(js,"onSelect"),0<r.length&&(t=new Ku("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Cr)))}function Ti(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Pr={animationend:Ti("Animation","AnimationEnd"),animationiteration:Ti("Animation","AnimationIteration"),animationstart:Ti("Animation","AnimationStart"),transitionend:Ti("Transition","TransitionEnd")},za={},rh={};en&&(rh=document.createElement("div").style,"AnimationEvent"in window||(delete Pr.animationend.animation,delete Pr.animationiteration.animation,delete Pr.animationstart.animation),"TransitionEvent"in window||delete Pr.transitionend.transition);function Yl(e){if(za[e])return za[e];if(!Pr[e])return e;var t=Pr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in rh)return za[e]=t[n];return e}var oh=Yl("animationend"),ih=Yl("animationiteration"),lh=Yl("animationstart"),ah=Yl("transitionend"),sh=new Map,Af="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 zn(e,t){sh.set(e,t),dr(t,[e])}for(var Ia=0;Ia<Af.length;Ia++){var Fa=Af[Ia],B1=Fa.toLowerCase(),H1=Fa[0].toUpperCase()+Fa.slice(1);zn(B1,"on"+H1)}zn(oh,"onAnimationEnd");zn(ih,"onAnimationIteration");zn(lh,"onAnimationStart");zn("dblclick","onDoubleClick");zn("focusin","onFocus");zn("focusout","onBlur");zn(ah,"onTransitionEnd");Hr("onMouseEnter",["mouseout","mouseover"]);Hr("onMouseLeave",["mouseout","mouseover"]);Hr("onPointerEnter",["pointerout","pointerover"]);Hr("onPointerLeave",["pointerout","pointerover"]);dr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));dr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));dr("onBeforeInput",["compositionend","keypress","textInput","paste"]);dr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));dr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));dr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Eo="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(Eo));function $f(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Bg(r,t,void 0,e),e.currentTarget=null}function uh(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 a=r[l],s=a.instance,u=a.currentTarget;if(a=a.listener,s!==i&&o.isPropagationStopped())break e;$f(o,a,u),i=s}else for(l=0;l<r.length;l++){if(a=r[l],s=a.instance,u=a.currentTarget,a=a.listener,s!==i&&o.isPropagationStopped())break e;$f(o,a,u),i=s}}}if(cl)throw e=Os,cl=!1,Os=null,e}function fe(e,t){var n=t[Is];n===void 0&&(n=t[Is]=new Set);var r=e+"__bubble";n.has(r)||(ch(t,e,2,!1),n.add(r))}function Ma(e,t,n){var r=0;t&&(r|=4),ch(n,e,r,t)}var ji="_reactListening"+Math.random().toString(36).slice(2);function Ko(e){if(!e[ji]){e[ji]=!0,yp.forEach(function(n){n!=="selectionchange"&&(W1.has(n)||Ma(n,!1,e),Ma(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ji]||(t[ji]=!0,Ma("selectionchange",!1,t))}}function ch(e,t,n,r){switch(Yp(t)){case 1:var o=o1;break;case 4:o=i1;break;default:o=Yu}n=o.bind(null,t,n,e),o=void 0,!Ps||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 Da(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 a=r.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(l===4)for(l=r.return;l!==null;){var s=l.tag;if((s===3||s===4)&&(s=l.stateNode.containerInfo,s===o||s.nodeType===8&&s.parentNode===o))return;l=l.return}for(;a!==null;){if(l=Kn(a),l===null)return;if(s=l.tag,s===5||s===6){r=i=l;continue e}a=a.parentNode}}r=r.return}Ap(function(){var u=i,c=Hu(n),f=[];e:{var d=sh.get(e);if(d!==void 0){var p=Ku,y=e;switch(e){case"keypress":if(qi(n)===0)break e;case"keydown":case"keyup":p=w1;break;case"focusin":y="focus",p=Aa;break;case"focusout":y="blur",p=Aa;break;case"beforeblur":case"afterblur":p=Aa;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":p=bf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=s1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=E1;break;case oh:case ih:case lh:p=f1;break;case ah:p=C1;break;case"scroll":p=l1;break;case"wheel":p=O1;break;case"copy":case"cut":case"paste":p=p1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Sf}var h=(t&4)!==0,k=!h&&e==="scroll",m=h?d!==null?d+"Capture":null:d;h=[];for(var g=u,v;g!==null;){v=g;var E=v.stateNode;if(v.tag===5&&E!==null&&(v=E,m!==null&&(E=Ho(g,m),E!=null&&h.push(Go(g,E,v)))),k)break;g=g.return}0<h.length&&(d=new p(d,y,null,n,c),f.push({event:d,listeners:h}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",d&&n!==Ss&&(y=n.relatedTarget||n.fromElement)&&(Kn(y)||y[tn]))break e;if((p||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,p?(y=n.relatedTarget||n.toElement,p=u,y=y?Kn(y):null,y!==null&&(k=pr(y),y!==k||y.tag!==5&&y.tag!==6)&&(y=null)):(p=null,y=u),p!==y)){if(h=bf,E="onMouseLeave",m="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(h=Sf,E="onPointerLeave",m="onPointerEnter",g="pointer"),k=p==null?d:Or(p),v=y==null?d:Or(y),d=new h(E,g+"leave",p,n,c),d.target=k,d.relatedTarget=v,E=null,Kn(c)===u&&(h=new h(m,g+"enter",y,n,c),h.target=v,h.relatedTarget=k,E=h),k=E,p&&y)t:{for(h=p,m=y,g=0,v=h;v;v=kr(v))g++;for(v=0,E=m;E;E=kr(E))v++;for(;0<g-v;)h=kr(h),g--;for(;0<v-g;)m=kr(m),v--;for(;g--;){if(h===m||m!==null&&h===m.alternate)break t;h=kr(h),m=kr(m)}h=null}else h=null;p!==null&&Rf(f,d,p,h,!1),y!==null&&k!==null&&Rf(f,k,y,h,!0)}}e:{if(d=u?Or(u):window,p=d.nodeName&&d.nodeName.toLowerCase(),p==="select"||p==="input"&&d.type==="file")var N=$1;else if(Of(d))if(Jp)N=F1;else{N=z1;var _=R1}else(p=d.nodeName)&&p.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(N=I1);if(N&&(N=N(e,u))){Zp(f,N,n,c);break e}_&&_(e,d,u),e==="focusout"&&(_=d._wrapperState)&&_.controlled&&d.type==="number"&&xs(d,"number",d.value)}switch(_=u?Or(u):window,e){case"focusin":(Of(_)||_.contentEditable==="true")&&(Cr=_,js=u,jo=null);break;case"focusout":jo=js=Cr=null;break;case"mousedown":Ls=!0;break;case"contextmenu":case"mouseup":case"dragend":Ls=!1,Lf(f,n,c);break;case"selectionchange":if(U1)break;case"keydown":case"keyup":Lf(f,n,c)}var j;if(Xu)e:{switch(e){case"compositionstart":var L="onCompositionStart";break e;case"compositionend":L="onCompositionEnd";break e;case"compositionupdate":L="onCompositionUpdate";break e}L=void 0}else Sr?Gp(e,n)&&(L="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(L="onCompositionStart");L&&(Kp&&n.locale!=="ko"&&(Sr||L!=="onCompositionStart"?L==="onCompositionEnd"&&Sr&&(j=qp()):(xn=c,qu="value"in xn?xn.value:xn.textContent,Sr=!0)),_=ml(u,L),0<_.length&&(L=new Ef(L,e,null,n,c),f.push({event:L,listeners:_}),j?L.data=j:(j=Xp(n),j!==null&&(L.data=j)))),(j=N1?T1(e,n):j1(e,n))&&(u=ml(u,"onBeforeInput"),0<u.length&&(c=new Ef("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=j))}uh(f,t)})}function Go(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ml(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Ho(e,n),i!=null&&r.unshift(Go(e,i,o)),i=Ho(e,t),i!=null&&r.push(Go(e,i,o))),e=e.return}return r}function kr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Rf(e,t,n,r,o){for(var i=t._reactName,l=[];n!==null&&n!==r;){var a=n,s=a.alternate,u=a.stateNode;if(s!==null&&s===r)break;a.tag===5&&u!==null&&(a=u,o?(s=Ho(n,i),s!=null&&l.unshift(Go(n,s,a))):o||(s=Ho(n,i),s!=null&&l.push(Go(n,s,a)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var V1=/\r\n?/g,Q1=/\u0000|\uFFFD/g;function zf(e){return(typeof e=="string"?e:""+e).replace(V1,`
`).replace(Q1,"")}function Li(e,t,n){if(t=zf(t),zf(e)!==t&&n)throw Error($(425))}function gl(){}var As=null,$s=null;function Rs(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 zs=typeof setTimeout=="function"?setTimeout:void 0,Y1=typeof clearTimeout=="function"?clearTimeout:void 0,If=typeof Promise=="function"?Promise:void 0,q1=typeof queueMicrotask=="function"?queueMicrotask:typeof If<"u"?function(e){return If.resolve(null).then(e).catch(K1)}:zs;function K1(e){setTimeout(function(){throw e})}function Ua(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),Qo(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Qo(t)}function Pn(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 Ff(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 eo=Math.random().toString(36).slice(2),Ft="__reactFiber$"+eo,Xo="__reactProps$"+eo,tn="__reactContainer$"+eo,Is="__reactEvents$"+eo,G1="__reactListeners$"+eo,X1="__reactHandles$"+eo;function Kn(e){var t=e[Ft];if(t)return t;for(var n=e.parentNode;n;){if(t=n[tn]||n[Ft]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ff(e);e!==null;){if(n=e[Ft])return n;e=Ff(e)}return t}e=n,n=e.parentNode}return null}function ui(e){return e=e[Ft]||e[tn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Or(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error($(33))}function ql(e){return e[Xo]||null}var Fs=[],_r=-1;function In(e){return{current:e}}function de(e){0>_r||(e.current=Fs[_r],Fs[_r]=null,_r--)}function ce(e,t){_r++,Fs[_r]=e.current,e.current=t}var Ln={},Me=In(Ln),qe=In(!1),or=Ln;function Wr(e,t){var n=e.type.contextTypes;if(!n)return Ln;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 Ke(e){return e=e.childContextTypes,e!=null}function yl(){de(qe),de(Me)}function Mf(e,t,n){if(Me.current!==Ln)throw Error($(168));ce(Me,t),ce(qe,n)}function fh(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,Rg(e)||"Unknown",o));return xe({},n,r)}function vl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ln,or=Me.current,ce(Me,e),ce(qe,qe.current),!0}function Df(e,t,n){var r=e.stateNode;if(!r)throw Error($(169));n?(e=fh(e,t,or),r.__reactInternalMemoizedMergedChildContext=e,de(qe),de(Me),ce(Me,e)):de(qe),ce(qe,n)}var qt=null,Kl=!1,Ba=!1;function dh(e){qt===null?qt=[e]:qt.push(e)}function Z1(e){Kl=!0,dh(e)}function Fn(){if(!Ba&&qt!==null){Ba=!0;var e=0,t=ae;try{var n=qt;for(ae=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}qt=null,Kl=!1}catch(o){throw qt!==null&&(qt=qt.slice(e+1)),Ip(Wu,Fn),o}finally{ae=t,Ba=!1}}return null}var Nr=[],Tr=0,xl=null,wl=0,ht=[],mt=0,ir=null,Kt=1,Gt="";function Vn(e,t){Nr[Tr++]=wl,Nr[Tr++]=xl,xl=e,wl=t}function ph(e,t,n){ht[mt++]=Kt,ht[mt++]=Gt,ht[mt++]=ir,ir=e;var r=Kt;e=Gt;var o=32-Tt(r)-1;r&=~(1<<o),n+=1;var i=32-Tt(t)+o;if(30<i){var l=o-o%5;i=(r&(1<<l)-1).toString(32),r>>=l,o-=l,Kt=1<<32-Tt(t)+o|n<<o|r,Gt=i+e}else Kt=1<<i|n<<o|r,Gt=e}function Ju(e){e.return!==null&&(Vn(e,1),ph(e,1,0))}function ec(e){for(;e===xl;)xl=Nr[--Tr],Nr[Tr]=null,wl=Nr[--Tr],Nr[Tr]=null;for(;e===ir;)ir=ht[--mt],ht[mt]=null,Gt=ht[--mt],ht[mt]=null,Kt=ht[--mt],ht[mt]=null}var rt=null,tt=null,he=!1,Nt=null;function hh(e,t){var n=gt(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 Uf(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,rt=e,tt=Pn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,rt=e,tt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ir!==null?{id:Kt,overflow:Gt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=gt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,rt=e,tt=null,!0):!1;default:return!1}}function Ms(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ds(e){if(he){var t=tt;if(t){var n=t;if(!Uf(e,t)){if(Ms(e))throw Error($(418));t=Pn(n.nextSibling);var r=rt;t&&Uf(e,t)?hh(r,n):(e.flags=e.flags&-4097|2,he=!1,rt=e)}}else{if(Ms(e))throw Error($(418));e.flags=e.flags&-4097|2,he=!1,rt=e}}}function Bf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;rt=e}function Ai(e){if(e!==rt)return!1;if(!he)return Bf(e),he=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Rs(e.type,e.memoizedProps)),t&&(t=tt)){if(Ms(e))throw mh(),Error($(418));for(;t;)hh(e,t),t=Pn(t.nextSibling)}if(Bf(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){tt=Pn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}tt=null}}else tt=rt?Pn(e.stateNode.nextSibling):null;return!0}function mh(){for(var e=tt;e;)e=Pn(e.nextSibling)}function Vr(){tt=rt=null,he=!1}function tc(e){Nt===null?Nt=[e]:Nt.push(e)}var J1=sn.ReactCurrentBatchConfig;function fo(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 a=o.refs;l===null?delete a[i]:a[i]=l},t._stringRef=i,t)}if(typeof e!="string")throw Error($(284));if(!n._owner)throw Error($(290,e))}return e}function $i(e,t){throw e=Object.prototype.toString.call(t),Error($(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Hf(e){var t=e._init;return t(e._payload)}function gh(e){function t(m,g){if(e){var v=m.deletions;v===null?(m.deletions=[g],m.flags|=16):v.push(g)}}function n(m,g){if(!e)return null;for(;g!==null;)t(m,g),g=g.sibling;return null}function r(m,g){for(m=new Map;g!==null;)g.key!==null?m.set(g.key,g):m.set(g.index,g),g=g.sibling;return m}function o(m,g){return m=Tn(m,g),m.index=0,m.sibling=null,m}function i(m,g,v){return m.index=v,e?(v=m.alternate,v!==null?(v=v.index,v<g?(m.flags|=2,g):v):(m.flags|=2,g)):(m.flags|=1048576,g)}function l(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,g,v,E){return g===null||g.tag!==6?(g=Ka(v,m.mode,E),g.return=m,g):(g=o(g,v),g.return=m,g)}function s(m,g,v,E){var N=v.type;return N===Er?c(m,g,v.props.children,E,v.key):g!==null&&(g.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===pn&&Hf(N)===g.type)?(E=o(g,v.props),E.ref=fo(m,g,v),E.return=m,E):(E=tl(v.type,v.key,v.props,null,m.mode,E),E.ref=fo(m,g,v),E.return=m,E)}function u(m,g,v,E){return g===null||g.tag!==4||g.stateNode.containerInfo!==v.containerInfo||g.stateNode.implementation!==v.implementation?(g=Ga(v,m.mode,E),g.return=m,g):(g=o(g,v.children||[]),g.return=m,g)}function c(m,g,v,E,N){return g===null||g.tag!==7?(g=er(v,m.mode,E,N),g.return=m,g):(g=o(g,v),g.return=m,g)}function f(m,g,v){if(typeof g=="string"&&g!==""||typeof g=="number")return g=Ka(""+g,m.mode,v),g.return=m,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Ei:return v=tl(g.type,g.key,g.props,null,m.mode,v),v.ref=fo(m,null,g),v.return=m,v;case br:return g=Ga(g,m.mode,v),g.return=m,g;case pn:var E=g._init;return f(m,E(g._payload),v)}if(ko(g)||lo(g))return g=er(g,m.mode,v,null),g.return=m,g;$i(m,g)}return null}function d(m,g,v,E){var N=g!==null?g.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return N!==null?null:a(m,g,""+v,E);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Ei:return v.key===N?s(m,g,v,E):null;case br:return v.key===N?u(m,g,v,E):null;case pn:return N=v._init,d(m,g,N(v._payload),E)}if(ko(v)||lo(v))return N!==null?null:c(m,g,v,E,null);$i(m,v)}return null}function p(m,g,v,E,N){if(typeof E=="string"&&E!==""||typeof E=="number")return m=m.get(v)||null,a(g,m,""+E,N);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Ei:return m=m.get(E.key===null?v:E.key)||null,s(g,m,E,N);case br:return m=m.get(E.key===null?v:E.key)||null,u(g,m,E,N);case pn:var _=E._init;return p(m,g,v,_(E._payload),N)}if(ko(E)||lo(E))return m=m.get(v)||null,c(g,m,E,N,null);$i(g,E)}return null}function y(m,g,v,E){for(var N=null,_=null,j=g,L=g=0,M=null;j!==null&&L<v.length;L++){j.index>L?(M=j,j=null):M=j.sibling;var R=d(m,j,v[L],E);if(R===null){j===null&&(j=M);break}e&&j&&R.alternate===null&&t(m,j),g=i(R,g,L),_===null?N=R:_.sibling=R,_=R,j=M}if(L===v.length)return n(m,j),he&&Vn(m,L),N;if(j===null){for(;L<v.length;L++)j=f(m,v[L],E),j!==null&&(g=i(j,g,L),_===null?N=j:_.sibling=j,_=j);return he&&Vn(m,L),N}for(j=r(m,j);L<v.length;L++)M=p(j,m,L,v[L],E),M!==null&&(e&&M.alternate!==null&&j.delete(M.key===null?L:M.key),g=i(M,g,L),_===null?N=M:_.sibling=M,_=M);return e&&j.forEach(function(F){return t(m,F)}),he&&Vn(m,L),N}function h(m,g,v,E){var N=lo(v);if(typeof N!="function")throw Error($(150));if(v=N.call(v),v==null)throw Error($(151));for(var _=N=null,j=g,L=g=0,M=null,R=v.next();j!==null&&!R.done;L++,R=v.next()){j.index>L?(M=j,j=null):M=j.sibling;var F=d(m,j,R.value,E);if(F===null){j===null&&(j=M);break}e&&j&&F.alternate===null&&t(m,j),g=i(F,g,L),_===null?N=F:_.sibling=F,_=F,j=M}if(R.done)return n(m,j),he&&Vn(m,L),N;if(j===null){for(;!R.done;L++,R=v.next())R=f(m,R.value,E),R!==null&&(g=i(R,g,L),_===null?N=R:_.sibling=R,_=R);return he&&Vn(m,L),N}for(j=r(m,j);!R.done;L++,R=v.next())R=p(j,m,L,R.value,E),R!==null&&(e&&R.alternate!==null&&j.delete(R.key===null?L:R.key),g=i(R,g,L),_===null?N=R:_.sibling=R,_=R);return e&&j.forEach(function(Y){return t(m,Y)}),he&&Vn(m,L),N}function k(m,g,v,E){if(typeof v=="object"&&v!==null&&v.type===Er&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Ei:e:{for(var N=v.key,_=g;_!==null;){if(_.key===N){if(N=v.type,N===Er){if(_.tag===7){n(m,_.sibling),g=o(_,v.props.children),g.return=m,m=g;break e}}else if(_.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===pn&&Hf(N)===_.type){n(m,_.sibling),g=o(_,v.props),g.ref=fo(m,_,v),g.return=m,m=g;break e}n(m,_);break}else t(m,_);_=_.sibling}v.type===Er?(g=er(v.props.children,m.mode,E,v.key),g.return=m,m=g):(E=tl(v.type,v.key,v.props,null,m.mode,E),E.ref=fo(m,g,v),E.return=m,m=E)}return l(m);case br:e:{for(_=v.key;g!==null;){if(g.key===_)if(g.tag===4&&g.stateNode.containerInfo===v.containerInfo&&g.stateNode.implementation===v.implementation){n(m,g.sibling),g=o(g,v.children||[]),g.return=m,m=g;break e}else{n(m,g);break}else t(m,g);g=g.sibling}g=Ga(v,m.mode,E),g.return=m,m=g}return l(m);case pn:return _=v._init,k(m,g,_(v._payload),E)}if(ko(v))return y(m,g,v,E);if(lo(v))return h(m,g,v,E);$i(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,g!==null&&g.tag===6?(n(m,g.sibling),g=o(g,v),g.return=m,m=g):(n(m,g),g=Ka(v,m.mode,E),g.return=m,m=g),l(m)):n(m,g)}return k}var Qr=gh(!0),yh=gh(!1),kl=In(null),bl=null,jr=null,nc=null;function rc(){nc=jr=bl=null}function oc(e){var t=kl.current;de(kl),e._currentValue=t}function Us(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 Dr(e,t){bl=e,nc=jr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ye=!0),e.firstContext=null)}function wt(e){var t=e._currentValue;if(nc!==e)if(e={context:e,memoizedValue:t,next:null},jr===null){if(bl===null)throw Error($(308));jr=e,bl.dependencies={lanes:0,firstContext:e}}else jr=jr.next=e;return t}var Gn=null;function ic(e){Gn===null?Gn=[e]:Gn.push(e)}function vh(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,ic(t)):(n.next=o.next,o.next=n),t.interleaved=n,nn(e,r)}function nn(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 hn=!1;function lc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function xh(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 On(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,re&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,nn(e,n)}return o=r.interleaved,o===null?(t.next=t,ic(r)):(t.next=o.next,o.next=t),r.interleaved=t,nn(e,n)}function Ki(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,Vu(e,n)}}function Wf(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 El(e,t,n,r){var o=e.updateQueue;hn=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var s=a,u=s.next;s.next=null,l===null?i=u:l.next=u,l=s;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==l&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=s))}if(i!==null){var f=o.baseState;l=0,c=u=s=null,a=i;do{var d=a.lane,p=a.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,h=a;switch(d=t,p=n,h.tag){case 1:if(y=h.payload,typeof y=="function"){f=y.call(p,f,d);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=h.payload,d=typeof y=="function"?y.call(p,f,d):y,d==null)break e;f=xe({},f,d);break e;case 2:hn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=o.effects,d===null?o.effects=[a]:d.push(a))}else p={eventTime:p,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=p,s=f):c=c.next=p,l|=d;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;d=a,a=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(1);if(c===null&&(s=f),o.baseState=s,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);ar|=l,e.lanes=l,e.memoizedState=f}}function Vf(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 ci={},Bt=In(ci),Zo=In(ci),Jo=In(ci);function Xn(e){if(e===ci)throw Error($(174));return e}function ac(e,t){switch(ce(Jo,t),ce(Zo,e),ce(Bt,ci),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ks(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ks(t,e)}de(Bt),ce(Bt,t)}function Yr(){de(Bt),de(Zo),de(Jo)}function wh(e){Xn(Jo.current);var t=Xn(Bt.current),n=ks(t,e.type);t!==n&&(ce(Zo,e),ce(Bt,n))}function sc(e){Zo.current===e&&(de(Bt),de(Zo))}var ye=In(0);function Sl(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 Ha=[];function uc(){for(var e=0;e<Ha.length;e++)Ha[e]._workInProgressVersionPrimary=null;Ha.length=0}var Gi=sn.ReactCurrentDispatcher,Wa=sn.ReactCurrentBatchConfig,lr=0,ve=null,Pe=null,Ne=null,Cl=!1,Lo=!1,ei=0,ey=0;function Re(){throw Error($(321))}function cc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Lt(e[n],t[n]))return!1;return!0}function fc(e,t,n,r,o,i){if(lr=i,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Gi.current=e===null||e.memoizedState===null?oy:iy,e=n(r,o),Lo){i=0;do{if(Lo=!1,ei=0,25<=i)throw Error($(301));i+=1,Ne=Pe=null,t.updateQueue=null,Gi.current=ly,e=n(r,o)}while(Lo)}if(Gi.current=Pl,t=Pe!==null&&Pe.next!==null,lr=0,Ne=Pe=ve=null,Cl=!1,t)throw Error($(300));return e}function dc(){var e=ei!==0;return ei=0,e}function zt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ne===null?ve.memoizedState=Ne=e:Ne=Ne.next=e,Ne}function kt(){if(Pe===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=Pe.next;var t=Ne===null?ve.memoizedState:Ne.next;if(t!==null)Ne=t,Pe=e;else{if(e===null)throw Error($(310));Pe=e,e={memoizedState:Pe.memoizedState,baseState:Pe.baseState,baseQueue:Pe.baseQueue,queue:Pe.queue,next:null},Ne===null?ve.memoizedState=Ne=e:Ne=Ne.next=e}return Ne}function ti(e,t){return typeof t=="function"?t(e):t}function Va(e){var t=kt(),n=t.queue;if(n===null)throw Error($(311));n.lastRenderedReducer=e;var r=Pe,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 a=l=null,s=null,u=i;do{var c=u.lane;if((lr&c)===c)s!==null&&(s=s.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};s===null?(a=s=f,l=r):s=s.next=f,ve.lanes|=c,ar|=c}u=u.next}while(u!==null&&u!==i);s===null?l=r:s.next=a,Lt(r,t.memoizedState)||(Ye=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,ve.lanes|=i,ar|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Qa(e){var t=kt(),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);Lt(i,t.memoizedState)||(Ye=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function kh(){}function bh(e,t){var n=ve,r=kt(),o=t(),i=!Lt(r.memoizedState,o);if(i&&(r.memoizedState=o,Ye=!0),r=r.queue,pc(Ch.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Ne!==null&&Ne.memoizedState.tag&1){if(n.flags|=2048,ni(9,Sh.bind(null,n,r,o,t),void 0,null),Te===null)throw Error($(349));lr&30||Eh(n,t,o)}return o}function Eh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ve.updateQueue,t===null?(t={lastEffect:null,stores:null},ve.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Sh(e,t,n,r){t.value=n,t.getSnapshot=r,Ph(t)&&Oh(e)}function Ch(e,t,n){return n(function(){Ph(t)&&Oh(e)})}function Ph(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Lt(e,n)}catch{return!0}}function Oh(e){var t=nn(e,1);t!==null&&jt(t,e,1,-1)}function Qf(e){var t=zt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ti,lastRenderedState:e},t.queue=e,e=e.dispatch=ry.bind(null,ve,e),[t.memoizedState,e]}function ni(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ve.updateQueue,t===null?(t={lastEffect:null,stores:null},ve.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 _h(){return kt().memoizedState}function Xi(e,t,n,r){var o=zt();ve.flags|=e,o.memoizedState=ni(1|t,n,void 0,r===void 0?null:r)}function Gl(e,t,n,r){var o=kt();r=r===void 0?null:r;var i=void 0;if(Pe!==null){var l=Pe.memoizedState;if(i=l.destroy,r!==null&&cc(r,l.deps)){o.memoizedState=ni(t,n,i,r);return}}ve.flags|=e,o.memoizedState=ni(1|t,n,i,r)}function Yf(e,t){return Xi(8390656,8,e,t)}function pc(e,t){return Gl(2048,8,e,t)}function Nh(e,t){return Gl(4,2,e,t)}function Th(e,t){return Gl(4,4,e,t)}function jh(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 Lh(e,t,n){return n=n!=null?n.concat([e]):null,Gl(4,4,jh.bind(null,t,e),n)}function hc(){}function Ah(e,t){var n=kt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&cc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function $h(e,t){var n=kt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&cc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Rh(e,t,n){return lr&21?(Lt(n,t)||(n=Dp(),ve.lanes|=n,ar|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ye=!0),e.memoizedState=n)}function ty(e,t){var n=ae;ae=n!==0&&4>n?n:4,e(!0);var r=Wa.transition;Wa.transition={};try{e(!1),t()}finally{ae=n,Wa.transition=r}}function zh(){return kt().memoizedState}function ny(e,t,n){var r=Nn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ih(e))Fh(t,n);else if(n=vh(e,t,n,r),n!==null){var o=He();jt(n,e,r,o),Mh(n,t,r)}}function ry(e,t,n){var r=Nn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ih(e))Fh(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,a=i(l,n);if(o.hasEagerState=!0,o.eagerState=a,Lt(a,l)){var s=t.interleaved;s===null?(o.next=o,ic(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=vh(e,t,o,r),n!==null&&(o=He(),jt(n,e,r,o),Mh(n,t,r))}}function Ih(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function Fh(e,t){Lo=Cl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Mh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Vu(e,n)}}var Pl={readContext:wt,useCallback:Re,useContext:Re,useEffect:Re,useImperativeHandle:Re,useInsertionEffect:Re,useLayoutEffect:Re,useMemo:Re,useReducer:Re,useRef:Re,useState:Re,useDebugValue:Re,useDeferredValue:Re,useTransition:Re,useMutableSource:Re,useSyncExternalStore:Re,useId:Re,unstable_isNewReconciler:!1},oy={readContext:wt,useCallback:function(e,t){return zt().memoizedState=[e,t===void 0?null:t],e},useContext:wt,useEffect:Yf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Xi(4194308,4,jh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Xi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Xi(4,2,e,t)},useMemo:function(e,t){var n=zt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=zt();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=ny.bind(null,ve,e),[r.memoizedState,e]},useRef:function(e){var t=zt();return e={current:e},t.memoizedState=e},useState:Qf,useDebugValue:hc,useDeferredValue:function(e){return zt().memoizedState=e},useTransition:function(){var e=Qf(!1),t=e[0];return e=ty.bind(null,e[1]),zt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ve,o=zt();if(he){if(n===void 0)throw Error($(407));n=n()}else{if(n=t(),Te===null)throw Error($(349));lr&30||Eh(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Yf(Ch.bind(null,r,i,e),[e]),r.flags|=2048,ni(9,Sh.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=zt(),t=Te.identifierPrefix;if(he){var n=Gt,r=Kt;n=(r&~(1<<32-Tt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ei++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=ey++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},iy={readContext:wt,useCallback:Ah,useContext:wt,useEffect:pc,useImperativeHandle:Lh,useInsertionEffect:Nh,useLayoutEffect:Th,useMemo:$h,useReducer:Va,useRef:_h,useState:function(){return Va(ti)},useDebugValue:hc,useDeferredValue:function(e){var t=kt();return Rh(t,Pe.memoizedState,e)},useTransition:function(){var e=Va(ti)[0],t=kt().memoizedState;return[e,t]},useMutableSource:kh,useSyncExternalStore:bh,useId:zh,unstable_isNewReconciler:!1},ly={readContext:wt,useCallback:Ah,useContext:wt,useEffect:pc,useImperativeHandle:Lh,useInsertionEffect:Nh,useLayoutEffect:Th,useMemo:$h,useReducer:Qa,useRef:_h,useState:function(){return Qa(ti)},useDebugValue:hc,useDeferredValue:function(e){var t=kt();return Pe===null?t.memoizedState=e:Rh(t,Pe.memoizedState,e)},useTransition:function(){var e=Qa(ti)[0],t=kt().memoizedState;return[e,t]},useMutableSource:kh,useSyncExternalStore:bh,useId:zh,unstable_isNewReconciler:!1};function Ot(e,t){if(e&&e.defaultProps){t=xe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Bs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:xe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Xl={isMounted:function(e){return(e=e._reactInternals)?pr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=He(),o=Nn(e),i=Xt(r,o);i.payload=t,n!=null&&(i.callback=n),t=On(e,i,o),t!==null&&(jt(t,e,o,r),Ki(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=He(),o=Nn(e),i=Xt(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=On(e,i,o),t!==null&&(jt(t,e,o,r),Ki(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=He(),r=Nn(e),o=Xt(n,r);o.tag=2,t!=null&&(o.callback=t),t=On(e,o,r),t!==null&&(jt(t,e,r,n),Ki(t,e,r))}};function qf(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?!qo(n,r)||!qo(o,i):!0}function Dh(e,t,n){var r=!1,o=Ln,i=t.contextType;return typeof i=="object"&&i!==null?i=wt(i):(o=Ke(t)?or:Me.current,r=t.contextTypes,i=(r=r!=null)?Wr(e,o):Ln),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Xl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Kf(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&&Xl.enqueueReplaceState(t,t.state,null)}function Hs(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},lc(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=wt(i):(i=Ke(t)?or:Me.current,o.context=Wr(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Bs(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&&Xl.enqueueReplaceState(o,o.state,null),El(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function qr(e,t){try{var n="",r=t;do n+=$g(r),r=r.return;while(r);var o=n}catch(i){o=`
Error generating stack: `+i.message+`
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Ya(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 ay=typeof WeakMap=="function"?WeakMap:Map;function Uh(e,t,n){n=Xt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){_l||(_l=!0,eu=r),Ws(e,t)},n}function Bh(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"&&(_n===null?_n=new Set([this]):_n.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Gf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ay;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=ky.bind(null,e,t,n),t.then(e,e))}function Xf(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 Zf(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,On(n,t,1))),n.lanes|=1),e)}var sy=sn.ReactCurrentOwner,Ye=!1;function Be(e,t,n,r){t.child=e===null?yh(t,null,n,r):Qr(t,e.child,n,r)}function Jf(e,t,n,r,o){n=n.render;var i=t.ref;return Dr(t,o),r=fc(e,t,n,r,i,o),n=dc(),e!==null&&!Ye?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,rn(e,t,o)):(he&&n&&Ju(t),t.flags|=1,Be(e,t,r,o),t.child)}function ed(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!bc(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Hh(e,t,i,r,o)):(e=tl(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:qo,n(l,r)&&e.ref===t.ref)return rn(e,t,o)}return t.flags|=1,e=Tn(i,r),e.ref=t.ref,e.return=t,t.child=e}function Hh(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(qo(i,r)&&e.ref===t.ref)if(Ye=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Ye=!0);else return t.lanes=e.lanes,rn(e,t,o)}return Vs(e,t,n,r,o)}function Wh(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},ce(Ar,Ze),Ze|=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,ce(Ar,Ze),Ze|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ce(Ar,Ze),Ze|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ce(Ar,Ze),Ze|=r;return Be(e,t,o,n),t.child}function Vh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Vs(e,t,n,r,o){var i=Ke(n)?or:Me.current;return i=Wr(t,i),Dr(t,o),n=fc(e,t,n,r,i,o),r=dc(),e!==null&&!Ye?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,rn(e,t,o)):(he&&r&&Ju(t),t.flags|=1,Be(e,t,n,o),t.child)}function td(e,t,n,r,o){if(Ke(n)){var i=!0;vl(t)}else i=!1;if(Dr(t,o),t.stateNode===null)Zi(e,t),Dh(t,n,r),Hs(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,a=t.memoizedProps;l.props=a;var s=l.context,u=n.contextType;typeof u=="object"&&u!==null?u=wt(u):(u=Ke(n)?or:Me.current,u=Wr(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof l.getSnapshotBeforeUpdate=="function";f||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==r||s!==u)&&Kf(t,l,r,u),hn=!1;var d=t.memoizedState;l.state=d,El(t,r,l,o),s=t.memoizedState,a!==r||d!==s||qe.current||hn?(typeof c=="function"&&(Bs(t,n,c,r),s=t.memoizedState),(a=hn||qf(t,n,a,r,d,s,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=s),l.props=r,l.state=s,l.context=u,r=a):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,xh(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Ot(t.type,a),l.props=u,f=t.pendingProps,d=l.context,s=n.contextType,typeof s=="object"&&s!==null?s=wt(s):(s=Ke(n)?or:Me.current,s=Wr(t,s));var p=n.getDerivedStateFromProps;(c=typeof p=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==f||d!==s)&&Kf(t,l,r,s),hn=!1,d=t.memoizedState,l.state=d,El(t,r,l,o);var y=t.memoizedState;a!==f||d!==y||qe.current||hn?(typeof p=="function"&&(Bs(t,n,p,r),y=t.memoizedState),(u=hn||qf(t,n,u,r,d,y,s)||!1)?(c||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,y,s),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,y,s)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),l.props=r,l.state=y,l.context=s,r=u):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Qs(e,t,n,r,i,o)}function Qs(e,t,n,r,o,i){Vh(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&Df(t,n,!1),rn(e,t,i);r=t.stateNode,sy.current=t;var a=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=Qr(t,e.child,null,i),t.child=Qr(t,null,a,i)):Be(e,t,a,i),t.memoizedState=r.state,o&&Df(t,n,!0),t.child}function Qh(e){var t=e.stateNode;t.pendingContext?Mf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Mf(e,t.context,!1),ac(e,t.containerInfo)}function nd(e,t,n,r,o){return Vr(),tc(o),t.flags|=256,Be(e,t,n,r),t.child}var Ys={dehydrated:null,treeContext:null,retryLane:0};function qs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Yh(e,t,n){var r=t.pendingProps,o=ye.current,i=!1,l=(t.flags&128)!==0,a;if((a=l)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ce(ye,o&1),e===null)return Ds(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=ea(l,r,0,null),e=er(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=qs(n),t.memoizedState=Ys,e):mc(t,l));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return uy(e,t,l,r,a,o,n);if(i){i=r.fallback,l=t.mode,o=e.child,a=o.sibling;var s={mode:"hidden",children:r.children};return!(l&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=Tn(o,s),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=Tn(a,i):(i=er(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?qs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=Ys,r}return i=e.child,e=i.sibling,r=Tn(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 mc(e,t){return t=ea({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ri(e,t,n,r){return r!==null&&tc(r),Qr(t,e.child,null,n),e=mc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function uy(e,t,n,r,o,i,l){if(n)return t.flags&256?(t.flags&=-257,r=Ya(Error($(422))),Ri(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=ea({mode:"visible",children:r.children},o,0,null),i=er(i,o,l,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Qr(t,e.child,null,l),t.child.memoizedState=qs(l),t.memoizedState=Ys,i);if(!(t.mode&1))return Ri(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error($(419)),r=Ya(i,r,void 0),Ri(e,t,l,r)}if(a=(l&e.childLanes)!==0,Ye||a){if(r=Te,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,nn(e,o),jt(r,e,o,-1))}return kc(),r=Ya(Error($(421))),Ri(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=by.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,tt=Pn(o.nextSibling),rt=t,he=!0,Nt=null,e!==null&&(ht[mt++]=Kt,ht[mt++]=Gt,ht[mt++]=ir,Kt=e.id,Gt=e.overflow,ir=t),t=mc(t,r.children),t.flags|=4096,t)}function rd(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Us(e.return,t,n)}function qa(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 qh(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Be(e,t,r.children,n),r=ye.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&&rd(e,n,t);else if(e.tag===19)rd(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(ce(ye,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&&Sl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),qa(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&&Sl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}qa(t,!0,n,null,i);break;case"together":qa(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Zi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function rn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ar|=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=Tn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Tn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function cy(e,t,n){switch(t.tag){case 3:Qh(t),Vr();break;case 5:wh(t);break;case 1:Ke(t.type)&&vl(t);break;case 4:ac(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ce(kl,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ce(ye,ye.current&1),t.flags|=128,null):n&t.child.childLanes?Yh(e,t,n):(ce(ye,ye.current&1),e=rn(e,t,n),e!==null?e.sibling:null);ce(ye,ye.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return qh(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ce(ye,ye.current),r)break;return null;case 22:case 23:return t.lanes=0,Wh(e,t,n)}return rn(e,t,n)}var Kh,Ks,Gh,Xh;Kh=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}};Ks=function(){};Gh=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Xn(Bt.current);var i=null;switch(n){case"input":o=ys(e,o),r=ys(e,r),i=[];break;case"select":o=xe({},o,{value:void 0}),r=xe({},r,{value:void 0}),i=[];break;case"textarea":o=ws(e,o),r=ws(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=gl)}bs(n,r);var l;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var a=o[u];for(l in a)a.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Uo.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var s=r[u];if(a=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&s!==a&&(s!=null||a!=null))if(u==="style")if(a){for(l in a)!a.hasOwnProperty(l)||s&&s.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in s)s.hasOwnProperty(l)&&a[l]!==s[l]&&(n||(n={}),n[l]=s[l])}else n||(i||(i=[]),i.push(u,n)),n=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,a=a?a.__html:void 0,s!=null&&a!==s&&(i=i||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Uo.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&fe("scroll",e),i||a===s||(i=[])):(i=i||[]).push(u,s))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Xh=function(e,t,n,r){n!==r&&(t.flags|=4)};function po(e,t){if(!he)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 ze(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 fy(e,t,n){var r=t.pendingProps;switch(ec(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ze(t),null;case 1:return Ke(t.type)&&yl(),ze(t),null;case 3:return r=t.stateNode,Yr(),de(qe),de(Me),uc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ai(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Nt!==null&&(ru(Nt),Nt=null))),Ks(e,t),ze(t),null;case 5:sc(t);var o=Xn(Jo.current);if(n=t.type,e!==null&&t.stateNode!=null)Gh(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 ze(t),null}if(e=Xn(Bt.current),Ai(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Ft]=t,r[Xo]=i,e=(t.mode&1)!==0,n){case"dialog":fe("cancel",r),fe("close",r);break;case"iframe":case"object":case"embed":fe("load",r);break;case"video":case"audio":for(o=0;o<Eo.length;o++)fe(Eo[o],r);break;case"source":fe("error",r);break;case"img":case"image":case"link":fe("error",r),fe("load",r);break;case"details":fe("toggle",r);break;case"input":df(r,i),fe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},fe("invalid",r);break;case"textarea":hf(r,i),fe("invalid",r)}bs(n,i),o=null;for(var l in i)if(i.hasOwnProperty(l)){var a=i[l];l==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Li(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Li(r.textContent,a,e),o=["children",""+a]):Uo.hasOwnProperty(l)&&a!=null&&l==="onScroll"&&fe("scroll",r)}switch(n){case"input":Si(r),pf(r,i,!0);break;case"textarea":Si(r),mf(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=gl)}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=Cp(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[Ft]=t,e[Xo]=r,Kh(e,t,!1,!1),t.stateNode=e;e:{switch(l=Es(n,r),n){case"dialog":fe("cancel",e),fe("close",e),o=r;break;case"iframe":case"object":case"embed":fe("load",e),o=r;break;case"video":case"audio":for(o=0;o<Eo.length;o++)fe(Eo[o],e);o=r;break;case"source":fe("error",e),o=r;break;case"img":case"image":case"link":fe("error",e),fe("load",e),o=r;break;case"details":fe("toggle",e),o=r;break;case"input":df(e,r),o=ys(e,r),fe("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=xe({},r,{value:void 0}),fe("invalid",e);break;case"textarea":hf(e,r),o=ws(e,r),fe("invalid",e);break;default:o=r}bs(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var s=a[i];i==="style"?_p(e,s):i==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&Pp(e,s)):i==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&Bo(e,s):typeof s=="number"&&Bo(e,""+s):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Uo.hasOwnProperty(i)?s!=null&&i==="onScroll"&&fe("scroll",e):s!=null&&Mu(e,i,s,l))}switch(n){case"input":Si(e),pf(e,r,!1);break;case"textarea":Si(e),mf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+jn(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?zr(e,!!r.multiple,i,!1):r.defaultValue!=null&&zr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=gl)}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 ze(t),null;case 6:if(e&&t.stateNode!=null)Xh(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error($(166));if(n=Xn(Jo.current),Xn(Bt.current),Ai(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ft]=t,(i=r.nodeValue!==n)&&(e=rt,e!==null))switch(e.tag){case 3:Li(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Li(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ft]=t,t.stateNode=r}return ze(t),null;case 13:if(de(ye),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(he&&tt!==null&&t.mode&1&&!(t.flags&128))mh(),Vr(),t.flags|=98560,i=!1;else if(i=Ai(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[Ft]=t}else Vr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ze(t),i=!1}else Nt!==null&&(ru(Nt),Nt=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||ye.current&1?Oe===0&&(Oe=3):kc())),t.updateQueue!==null&&(t.flags|=4),ze(t),null);case 4:return Yr(),Ks(e,t),e===null&&Ko(t.stateNode.containerInfo),ze(t),null;case 10:return oc(t.type._context),ze(t),null;case 17:return Ke(t.type)&&yl(),ze(t),null;case 19:if(de(ye),i=t.memoizedState,i===null)return ze(t),null;if(r=(t.flags&128)!==0,l=i.rendering,l===null)if(r)po(i,!1);else{if(Oe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=Sl(e),l!==null){for(t.flags|=128,po(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 ce(ye,ye.current&1|2),t.child}e=e.sibling}i.tail!==null&&be()>Kr&&(t.flags|=128,r=!0,po(i,!1),t.lanes=4194304)}else{if(!r)if(e=Sl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),po(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!he)return ze(t),null}else 2*be()-i.renderingStartTime>Kr&&n!==1073741824&&(t.flags|=128,r=!0,po(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=be(),t.sibling=null,n=ye.current,ce(ye,r?n&1|2:n&1),t):(ze(t),null);case 22:case 23:return wc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ze&1073741824&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),null;case 24:return null;case 25:return null}throw Error($(156,t.tag))}function dy(e,t){switch(ec(t),t.tag){case 1:return Ke(t.type)&&yl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yr(),de(qe),de(Me),uc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return sc(t),null;case 13:if(de(ye),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error($(340));Vr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return de(ye),null;case 4:return Yr(),null;case 10:return oc(t.type._context),null;case 22:case 23:return wc(),null;case 24:return null;default:return null}}var zi=!1,Ie=!1,py=typeof WeakSet=="function"?WeakSet:Set,D=null;function Lr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){we(e,t,r)}else n.current=null}function Gs(e,t,n){try{n()}catch(r){we(e,t,r)}}var od=!1;function hy(e,t){if(As=pl,e=nh(),Zu(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,a=-1,s=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var p;f!==n||o!==0&&f.nodeType!==3||(a=l+o),f!==i||r!==0&&f.nodeType!==3||(s=l+r),f.nodeType===3&&(l+=f.nodeValue.length),(p=f.firstChild)!==null;)d=f,f=p;for(;;){if(f===e)break t;if(d===n&&++u===o&&(a=l),d===i&&++c===r&&(s=l),(p=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=p}n=a===-1||s===-1?null:{start:a,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for($s={focusedElem:e,selectionRange:n},pl=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var h=y.memoizedProps,k=y.memoizedState,m=t.stateNode,g=m.getSnapshotBeforeUpdate(t.elementType===t.type?h:Ot(t.type,h),k);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error($(163))}}catch(E){we(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return y=od,od=!1,y}function Ao(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&&Gs(t,n,i)}o=o.next}while(o!==r)}}function Zl(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 Xs(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 Zh(e){var t=e.alternate;t!==null&&(e.alternate=null,Zh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ft],delete t[Xo],delete t[Is],delete t[G1],delete t[X1])),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 Jh(e){return e.tag===5||e.tag===3||e.tag===4}function id(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Jh(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 Zs(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=gl));else if(r!==4&&(e=e.child,e!==null))for(Zs(e,t,n),e=e.sibling;e!==null;)Zs(e,t,n),e=e.sibling}function Js(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(Js(e,t,n),e=e.sibling;e!==null;)Js(e,t,n),e=e.sibling}var je=null,_t=!1;function cn(e,t,n){for(n=n.child;n!==null;)em(e,t,n),n=n.sibling}function em(e,t,n){if(Ut&&typeof Ut.onCommitFiberUnmount=="function")try{Ut.onCommitFiberUnmount(Wl,n)}catch{}switch(n.tag){case 5:Ie||Lr(n,t);case 6:var r=je,o=_t;je=null,cn(e,t,n),je=r,_t=o,je!==null&&(_t?(e=je,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):je.removeChild(n.stateNode));break;case 18:je!==null&&(_t?(e=je,n=n.stateNode,e.nodeType===8?Ua(e.parentNode,n):e.nodeType===1&&Ua(e,n),Qo(e)):Ua(je,n.stateNode));break;case 4:r=je,o=_t,je=n.stateNode.containerInfo,_t=!0,cn(e,t,n),je=r,_t=o;break;case 0:case 11:case 14:case 15:if(!Ie&&(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)&&Gs(n,t,l),o=o.next}while(o!==r)}cn(e,t,n);break;case 1:if(!Ie&&(Lr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){we(n,t,a)}cn(e,t,n);break;case 21:cn(e,t,n);break;case 22:n.mode&1?(Ie=(r=Ie)||n.memoizedState!==null,cn(e,t,n),Ie=r):cn(e,t,n);break;default:cn(e,t,n)}}function ld(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new py),t.forEach(function(r){var o=Ey.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Pt(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,a=l;e:for(;a!==null;){switch(a.tag){case 5:je=a.stateNode,_t=!1;break e;case 3:je=a.stateNode.containerInfo,_t=!0;break e;case 4:je=a.stateNode.containerInfo,_t=!0;break e}a=a.return}if(je===null)throw Error($(160));em(i,l,o),je=null,_t=!1;var s=o.alternate;s!==null&&(s.return=null),o.return=null}catch(u){we(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)tm(t,e),t=t.sibling}function tm(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Pt(t,e),Rt(e),r&4){try{Ao(3,e,e.return),Zl(3,e)}catch(h){we(e,e.return,h)}try{Ao(5,e,e.return)}catch(h){we(e,e.return,h)}}break;case 1:Pt(t,e),Rt(e),r&512&&n!==null&&Lr(n,n.return);break;case 5:if(Pt(t,e),Rt(e),r&512&&n!==null&&Lr(n,n.return),e.flags&32){var o=e.stateNode;try{Bo(o,"")}catch(h){we(e,e.return,h)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,l=n!==null?n.memoizedProps:i,a=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&Ep(o,i),Es(a,l);var u=Es(a,i);for(l=0;l<s.length;l+=2){var c=s[l],f=s[l+1];c==="style"?_p(o,f):c==="dangerouslySetInnerHTML"?Pp(o,f):c==="children"?Bo(o,f):Mu(o,c,f,u)}switch(a){case"input":vs(o,i);break;case"textarea":Sp(o,i);break;case"select":var d=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?zr(o,!!i.multiple,p,!1):d!==!!i.multiple&&(i.defaultValue!=null?zr(o,!!i.multiple,i.defaultValue,!0):zr(o,!!i.multiple,i.multiple?[]:"",!1))}o[Xo]=i}catch(h){we(e,e.return,h)}}break;case 6:if(Pt(t,e),Rt(e),r&4){if(e.stateNode===null)throw Error($(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(h){we(e,e.return,h)}}break;case 3:if(Pt(t,e),Rt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Qo(t.containerInfo)}catch(h){we(e,e.return,h)}break;case 4:Pt(t,e),Rt(e);break;case 13:Pt(t,e),Rt(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(vc=be())),r&4&&ld(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Ie=(u=Ie)||c,Pt(t,e),Ie=u):Pt(t,e),Rt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(D=e,c=e.child;c!==null;){for(f=D=c;D!==null;){switch(d=D,p=d.child,d.tag){case 0:case 11:case 14:case 15:Ao(4,d,d.return);break;case 1:Lr(d,d.return);var y=d.stateNode;if(typeof y.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(h){we(r,n,h)}}break;case 5:Lr(d,d.return);break;case 22:if(d.memoizedState!==null){sd(f);continue}}p!==null?(p.return=d,D=p):sd(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"):(a=f.stateNode,s=f.memoizedProps.style,l=s!=null&&s.hasOwnProperty("display")?s.display:null,a.style.display=Op("display",l))}catch(h){we(e,e.return,h)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(h){we(e,e.return,h)}}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:Pt(t,e),Rt(e),r&4&&ld(e);break;case 21:break;default:Pt(t,e),Rt(e)}}function Rt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Jh(n)){var r=n;break e}n=n.return}throw Error($(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Bo(o,""),r.flags&=-33);var i=id(e);Js(e,i,o);break;case 3:case 4:var l=r.stateNode.containerInfo,a=id(e);Zs(e,a,l);break;default:throw Error($(161))}}catch(s){we(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function my(e,t,n){D=e,nm(e)}function nm(e,t,n){for(var r=(e.mode&1)!==0;D!==null;){var o=D,i=o.child;if(o.tag===22&&r){var l=o.memoizedState!==null||zi;if(!l){var a=o.alternate,s=a!==null&&a.memoizedState!==null||Ie;a=zi;var u=Ie;if(zi=l,(Ie=s)&&!u)for(D=o;D!==null;)l=D,s=l.child,l.tag===22&&l.memoizedState!==null?ud(o):s!==null?(s.return=l,D=s):ud(o);for(;i!==null;)D=i,nm(i),i=i.sibling;D=o,zi=a,Ie=u}ad(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,D=i):ad(e)}}function ad(e){for(;D!==null;){var t=D;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ie||Zl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ie)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Ot(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Vf(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}Vf(t,l,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.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&&Qo(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error($(163))}Ie||t.flags&512&&Xs(t)}catch(d){we(t,t.return,d)}}if(t===e){D=null;break}if(n=t.sibling,n!==null){n.return=t.return,D=n;break}D=t.return}}function sd(e){for(;D!==null;){var t=D;if(t===e){D=null;break}var n=t.sibling;if(n!==null){n.return=t.return,D=n;break}D=t.return}}function ud(e){for(;D!==null;){var t=D;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Zl(4,t)}catch(s){we(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(s){we(t,o,s)}}var i=t.return;try{Xs(t)}catch(s){we(t,i,s)}break;case 5:var l=t.return;try{Xs(t)}catch(s){we(t,l,s)}}}catch(s){we(t,t.return,s)}if(t===e){D=null;break}var a=t.sibling;if(a!==null){a.return=t.return,D=a;break}D=t.return}}var gy=Math.ceil,Ol=sn.ReactCurrentDispatcher,gc=sn.ReactCurrentOwner,xt=sn.ReactCurrentBatchConfig,re=0,Te=null,Se=null,Ae=0,Ze=0,Ar=In(0),Oe=0,ri=null,ar=0,Jl=0,yc=0,$o=null,Qe=null,vc=0,Kr=1/0,Yt=null,_l=!1,eu=null,_n=null,Ii=!1,wn=null,Nl=0,Ro=0,tu=null,Ji=-1,el=0;function He(){return re&6?be():Ji!==-1?Ji:Ji=be()}function Nn(e){return e.mode&1?re&2&&Ae!==0?Ae&-Ae:J1.transition!==null?(el===0&&(el=Dp()),el):(e=ae,e!==0||(e=window.event,e=e===void 0?16:Yp(e.type)),e):1}function jt(e,t,n,r){if(50<Ro)throw Ro=0,tu=null,Error($(185));ai(e,n,r),(!(re&2)||e!==Te)&&(e===Te&&(!(re&2)&&(Jl|=n),Oe===4&&gn(e,Ae)),Ge(e,r),n===1&&re===0&&!(t.mode&1)&&(Kr=be()+500,Kl&&Fn()))}function Ge(e,t){var n=e.callbackNode;Jg(e,t);var r=dl(e,e===Te?Ae:0);if(r===0)n!==null&&vf(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&vf(n),t===1)e.tag===0?Z1(cd.bind(null,e)):dh(cd.bind(null,e)),q1(function(){!(re&6)&&Fn()}),n=null;else{switch(Up(r)){case 1:n=Wu;break;case 4:n=Fp;break;case 16:n=fl;break;case 536870912:n=Mp;break;default:n=fl}n=cm(n,rm.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function rm(e,t){if(Ji=-1,el=0,re&6)throw Error($(327));var n=e.callbackNode;if(Ur()&&e.callbackNode!==n)return null;var r=dl(e,e===Te?Ae:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Tl(e,r);else{t=r;var o=re;re|=2;var i=im();(Te!==e||Ae!==t)&&(Yt=null,Kr=be()+500,Jn(e,t));do try{xy();break}catch(a){om(e,a)}while(1);rc(),Ol.current=i,re=o,Se!==null?t=0:(Te=null,Ae=0,t=Oe)}if(t!==0){if(t===2&&(o=_s(e),o!==0&&(r=o,t=nu(e,o))),t===1)throw n=ri,Jn(e,0),gn(e,r),Ge(e,be()),n;if(t===6)gn(e,r);else{if(o=e.current.alternate,!(r&30)&&!yy(o)&&(t=Tl(e,r),t===2&&(i=_s(e),i!==0&&(r=i,t=nu(e,i))),t===1))throw n=ri,Jn(e,0),gn(e,r),Ge(e,be()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error($(345));case 2:Qn(e,Qe,Yt);break;case 3:if(gn(e,r),(r&130023424)===r&&(t=vc+500-be(),10<t)){if(dl(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){He(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=zs(Qn.bind(null,e,Qe,Yt),t);break}Qn(e,Qe,Yt);break;case 4:if(gn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-Tt(r);i=1<<l,l=t[l],l>o&&(o=l),r&=~i}if(r=o,r=be()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*gy(r/1960))-r,10<r){e.timeoutHandle=zs(Qn.bind(null,e,Qe,Yt),r);break}Qn(e,Qe,Yt);break;case 5:Qn(e,Qe,Yt);break;default:throw Error($(329))}}}return Ge(e,be()),e.callbackNode===n?rm.bind(null,e):null}function nu(e,t){var n=$o;return e.current.memoizedState.isDehydrated&&(Jn(e,t).flags|=256),e=Tl(e,t),e!==2&&(t=Qe,Qe=n,t!==null&&ru(t)),e}function ru(e){Qe===null?Qe=e:Qe.push.apply(Qe,e)}function yy(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(!Lt(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 gn(e,t){for(t&=~yc,t&=~Jl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Tt(t),r=1<<n;e[n]=-1,t&=~r}}function cd(e){if(re&6)throw Error($(327));Ur();var t=dl(e,0);if(!(t&1))return Ge(e,be()),null;var n=Tl(e,t);if(e.tag!==0&&n===2){var r=_s(e);r!==0&&(t=r,n=nu(e,r))}if(n===1)throw n=ri,Jn(e,0),gn(e,t),Ge(e,be()),n;if(n===6)throw Error($(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Qn(e,Qe,Yt),Ge(e,be()),null}function xc(e,t){var n=re;re|=1;try{return e(t)}finally{re=n,re===0&&(Kr=be()+500,Kl&&Fn())}}function sr(e){wn!==null&&wn.tag===0&&!(re&6)&&Ur();var t=re;re|=1;var n=xt.transition,r=ae;try{if(xt.transition=null,ae=1,e)return e()}finally{ae=r,xt.transition=n,re=t,!(re&6)&&Fn()}}function wc(){Ze=Ar.current,de(Ar)}function Jn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Y1(n)),Se!==null)for(n=Se.return;n!==null;){var r=n;switch(ec(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&yl();break;case 3:Yr(),de(qe),de(Me),uc();break;case 5:sc(r);break;case 4:Yr();break;case 13:de(ye);break;case 19:de(ye);break;case 10:oc(r.type._context);break;case 22:case 23:wc()}n=n.return}if(Te=e,Se=e=Tn(e.current,null),Ae=Ze=t,Oe=0,ri=null,yc=Jl=ar=0,Qe=$o=null,Gn!==null){for(t=0;t<Gn.length;t++)if(n=Gn[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}Gn=null}return e}function om(e,t){do{var n=Se;try{if(rc(),Gi.current=Pl,Cl){for(var r=ve.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Cl=!1}if(lr=0,Ne=Pe=ve=null,Lo=!1,ei=0,gc.current=null,n===null||n.return===null){Oe=1,ri=t,Se=null;break}e:{var i=e,l=n.return,a=n,s=t;if(t=Ae,a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var u=s,c=a,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=Xf(l);if(p!==null){p.flags&=-257,Zf(p,l,a,i,t),p.mode&1&&Gf(i,u,t),t=p,s=u;var y=t.updateQueue;if(y===null){var h=new Set;h.add(s),t.updateQueue=h}else y.add(s);break e}else{if(!(t&1)){Gf(i,u,t),kc();break e}s=Error($(426))}}else if(he&&a.mode&1){var k=Xf(l);if(k!==null){!(k.flags&65536)&&(k.flags|=256),Zf(k,l,a,i,t),tc(qr(s,a));break e}}i=s=qr(s,a),Oe!==4&&(Oe=2),$o===null?$o=[i]:$o.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=Uh(i,s,t);Wf(i,m);break e;case 1:a=s;var g=i.type,v=i.stateNode;if(!(i.flags&128)&&(typeof g.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(_n===null||!_n.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t;var E=Bh(i,a,t);Wf(i,E);break e}}i=i.return}while(i!==null)}am(n)}catch(N){t=N,Se===n&&n!==null&&(Se=n=n.return);continue}break}while(1)}function im(){var e=Ol.current;return Ol.current=Pl,e===null?Pl:e}function kc(){(Oe===0||Oe===3||Oe===2)&&(Oe=4),Te===null||!(ar&268435455)&&!(Jl&268435455)||gn(Te,Ae)}function Tl(e,t){var n=re;re|=2;var r=im();(Te!==e||Ae!==t)&&(Yt=null,Jn(e,t));do try{vy();break}catch(o){om(e,o)}while(1);if(rc(),re=n,Ol.current=r,Se!==null)throw Error($(261));return Te=null,Ae=0,Oe}function vy(){for(;Se!==null;)lm(Se)}function xy(){for(;Se!==null&&!Wg();)lm(Se)}function lm(e){var t=um(e.alternate,e,Ze);e.memoizedProps=e.pendingProps,t===null?am(e):Se=t,gc.current=null}function am(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=dy(n,t),n!==null){n.flags&=32767,Se=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Oe=6,Se=null;return}}else if(n=fy(n,t,Ze),n!==null){Se=n;return}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);Oe===0&&(Oe=5)}function Qn(e,t,n){var r=ae,o=xt.transition;try{xt.transition=null,ae=1,wy(e,t,n,r)}finally{xt.transition=o,ae=r}return null}function wy(e,t,n,r){do Ur();while(wn!==null);if(re&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(e1(e,i),e===Te&&(Se=Te=null,Ae=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ii||(Ii=!0,cm(fl,function(){return Ur(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=xt.transition,xt.transition=null;var l=ae;ae=1;var a=re;re|=4,gc.current=null,hy(e,n),tm(n,e),D1($s),pl=!!As,$s=As=null,e.current=n,my(n),Vg(),re=a,ae=l,xt.transition=i}else e.current=n;if(Ii&&(Ii=!1,wn=e,Nl=o),i=e.pendingLanes,i===0&&(_n=null),qg(n.stateNode),Ge(e,be()),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(_l)throw _l=!1,e=eu,eu=null,e;return Nl&1&&e.tag!==0&&Ur(),i=e.pendingLanes,i&1?e===tu?Ro++:(Ro=0,tu=e):Ro=0,Fn(),null}function Ur(){if(wn!==null){var e=Up(Nl),t=xt.transition,n=ae;try{if(xt.transition=null,ae=16>e?16:e,wn===null)var r=!1;else{if(e=wn,wn=null,Nl=0,re&6)throw Error($(331));var o=re;for(re|=4,D=e.current;D!==null;){var i=D,l=i.child;if(D.flags&16){var a=i.deletions;if(a!==null){for(var s=0;s<a.length;s++){var u=a[s];for(D=u;D!==null;){var c=D;switch(c.tag){case 0:case 11:case 15:Ao(8,c,i)}var f=c.child;if(f!==null)f.return=c,D=f;else for(;D!==null;){c=D;var d=c.sibling,p=c.return;if(Zh(c),c===u){D=null;break}if(d!==null){d.return=p,D=d;break}D=p}}}var y=i.alternate;if(y!==null){var h=y.child;if(h!==null){y.child=null;do{var k=h.sibling;h.sibling=null,h=k}while(h!==null)}}D=i}}if(i.subtreeFlags&2064&&l!==null)l.return=i,D=l;else e:for(;D!==null;){if(i=D,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Ao(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,D=m;break e}D=i.return}}var g=e.current;for(D=g;D!==null;){l=D;var v=l.child;if(l.subtreeFlags&2064&&v!==null)v.return=l,D=v;else e:for(l=g;D!==null;){if(a=D,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Zl(9,a)}}catch(N){we(a,a.return,N)}if(a===l){D=null;break e}var E=a.sibling;if(E!==null){E.return=a.return,D=E;break e}D=a.return}}if(re=o,Fn(),Ut&&typeof Ut.onPostCommitFiberRoot=="function")try{Ut.onPostCommitFiberRoot(Wl,e)}catch{}r=!0}return r}finally{ae=n,xt.transition=t}}return!1}function fd(e,t,n){t=qr(n,t),t=Uh(e,t,1),e=On(e,t,1),t=He(),e!==null&&(ai(e,1,t),Ge(e,t))}function we(e,t,n){if(e.tag===3)fd(e,e,n);else for(;t!==null;){if(t.tag===3){fd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(_n===null||!_n.has(r))){e=qr(n,e),e=Bh(t,e,1),t=On(t,e,1),e=He(),t!==null&&(ai(t,1,e),Ge(t,e));break}}t=t.return}}function ky(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=He(),e.pingedLanes|=e.suspendedLanes&n,Te===e&&(Ae&n)===n&&(Oe===4||Oe===3&&(Ae&130023424)===Ae&&500>be()-vc?Jn(e,0):yc|=n),Ge(e,t)}function sm(e,t){t===0&&(e.mode&1?(t=Oi,Oi<<=1,!(Oi&130023424)&&(Oi=4194304)):t=1);var n=He();e=nn(e,t),e!==null&&(ai(e,t,n),Ge(e,n))}function by(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),sm(e,n)}function Ey(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),sm(e,n)}var um;um=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||qe.current)Ye=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ye=!1,cy(e,t,n);Ye=!!(e.flags&131072)}else Ye=!1,he&&t.flags&1048576&&ph(t,wl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Zi(e,t),e=t.pendingProps;var o=Wr(t,Me.current);Dr(t,n),o=fc(null,t,r,e,o,n);var i=dc();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,Ke(r)?(i=!0,vl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,lc(t),o.updater=Xl,t.stateNode=o,o._reactInternals=t,Hs(t,r,e,n),t=Qs(null,t,r,!0,i,n)):(t.tag=0,he&&i&&Ju(t),Be(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Zi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Cy(r),e=Ot(r,e),o){case 0:t=Vs(null,t,r,e,n);break e;case 1:t=td(null,t,r,e,n);break e;case 11:t=Jf(null,t,r,e,n);break e;case 14:t=ed(null,t,r,Ot(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:Ot(r,o),Vs(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ot(r,o),td(e,t,r,o,n);case 3:e:{if(Qh(t),e===null)throw Error($(387));r=t.pendingProps,i=t.memoizedState,o=i.element,xh(e,t),El(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=qr(Error($(423)),t),t=nd(e,t,r,n,o);break e}else if(r!==o){o=qr(Error($(424)),t),t=nd(e,t,r,n,o);break e}else for(tt=Pn(t.stateNode.containerInfo.firstChild),rt=t,he=!0,Nt=null,n=yh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vr(),r===o){t=rn(e,t,n);break e}Be(e,t,r,n)}t=t.child}return t;case 5:return wh(t),e===null&&Ds(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Rs(r,o)?l=null:i!==null&&Rs(r,i)&&(t.flags|=32),Vh(e,t),Be(e,t,l,n),t.child;case 6:return e===null&&Ds(t),null;case 13:return Yh(e,t,n);case 4:return ac(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Qr(t,null,r,n):Be(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ot(r,o),Jf(e,t,r,o,n);case 7:return Be(e,t,t.pendingProps,n),t.child;case 8:return Be(e,t,t.pendingProps.children,n),t.child;case 12:return Be(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,ce(kl,r._currentValue),r._currentValue=l,i!==null)if(Lt(i.value,l)){if(i.children===o.children&&!qe.current){t=rn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){l=i.child;for(var s=a.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Xt(-1,n&-n),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Us(i.return,n,t),a.lanes|=n;break}s=s.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,a=l.alternate,a!==null&&(a.lanes|=n),Us(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}Be(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Dr(t,n),o=wt(o),r=r(o),t.flags|=1,Be(e,t,r,n),t.child;case 14:return r=t.type,o=Ot(r,t.pendingProps),o=Ot(r.type,o),ed(e,t,r,o,n);case 15:return Hh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ot(r,o),Zi(e,t),t.tag=1,Ke(r)?(e=!0,vl(t)):e=!1,Dr(t,n),Dh(t,r,o),Hs(t,r,o,n),Qs(null,t,r,!0,e,n);case 19:return qh(e,t,n);case 22:return Wh(e,t,n)}throw Error($(156,t.tag))};function cm(e,t){return Ip(e,t)}function Sy(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 gt(e,t,n,r){return new Sy(e,t,n,r)}function bc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Cy(e){if(typeof e=="function")return bc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Uu)return 11;if(e===Bu)return 14}return 2}function Tn(e,t){var n=e.alternate;return n===null?(n=gt(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 tl(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")bc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Er:return er(n.children,o,i,t);case Du:l=8,o|=8;break;case ps:return e=gt(12,n,t,o|2),e.elementType=ps,e.lanes=i,e;case hs:return e=gt(13,n,t,o),e.elementType=hs,e.lanes=i,e;case ms:return e=gt(19,n,t,o),e.elementType=ms,e.lanes=i,e;case wp:return ea(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case vp:l=10;break e;case xp:l=9;break e;case Uu:l=11;break e;case Bu:l=14;break e;case pn:l=16,r=null;break e}throw Error($(130,e==null?e:typeof e,""))}return t=gt(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function er(e,t,n,r){return e=gt(7,e,r,t),e.lanes=n,e}function ea(e,t,n,r){return e=gt(22,e,r,t),e.elementType=wp,e.lanes=n,e.stateNode={isHidden:!1},e}function Ka(e,t,n){return e=gt(6,e,null,t),e.lanes=n,e}function Ga(e,t,n){return t=gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Py(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=Ta(0),this.expirationTimes=Ta(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ta(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ec(e,t,n,r,o,i,l,a,s){return e=new Py(e,t,n,a,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=gt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},lc(i),e}function Oy(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:br,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function fm(e){if(!e)return Ln;e=e._reactInternals;e:{if(pr(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(Ke(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(Ke(n))return fh(e,n,t)}return t}function dm(e,t,n,r,o,i,l,a,s){return e=Ec(n,r,!0,e,o,i,l,a,s),e.context=fm(null),n=e.current,r=He(),o=Nn(n),i=Xt(r,o),i.callback=t??null,On(n,i,o),e.current.lanes=o,ai(e,o,r),Ge(e,r),e}function ta(e,t,n,r){var o=t.current,i=He(),l=Nn(o);return n=fm(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=On(o,t,l),e!==null&&(jt(e,o,l,i),Ki(e,o,l)),l}function jl(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 dd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Sc(e,t){dd(e,t),(e=e.alternate)&&dd(e,t)}function _y(){return null}var pm=typeof reportError=="function"?reportError:function(e){console.error(e)};function Cc(e){this._internalRoot=e}na.prototype.render=Cc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error($(409));ta(e,t,null,null)};na.prototype.unmount=Cc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;sr(function(){ta(null,e,null,null)}),t[tn]=null}};function na(e){this._internalRoot=e}na.prototype.unstable_scheduleHydration=function(e){if(e){var t=Wp();e={blockedOn:null,target:e,priority:t};for(var n=0;n<mn.length&&t!==0&&t<mn[n].priority;n++);mn.splice(n,0,e),n===0&&Qp(e)}};function Pc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ra(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function pd(){}function Ny(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=jl(l);i.call(u)}}var l=dm(t,r,e,0,null,!1,!1,"",pd);return e._reactRootContainer=l,e[tn]=l.current,Ko(e.nodeType===8?e.parentNode:e),sr(),l}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var u=jl(s);a.call(u)}}var s=Ec(e,0,!1,null,null,!1,!1,"",pd);return e._reactRootContainer=s,e[tn]=s.current,Ko(e.nodeType===8?e.parentNode:e),sr(function(){ta(t,s,n,r)}),s}function oa(e,t,n,r,o){var i=n._reactRootContainer;if(i){var l=i;if(typeof o=="function"){var a=o;o=function(){var s=jl(l);a.call(s)}}ta(t,l,e,o)}else l=Ny(n,t,e,o,r);return jl(l)}Bp=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=bo(t.pendingLanes);n!==0&&(Vu(t,n|1),Ge(t,be()),!(re&6)&&(Kr=be()+500,Fn()))}break;case 13:sr(function(){var r=nn(e,1);if(r!==null){var o=He();jt(r,e,1,o)}}),Sc(e,1)}};Qu=function(e){if(e.tag===13){var t=nn(e,134217728);if(t!==null){var n=He();jt(t,e,134217728,n)}Sc(e,134217728)}};Hp=function(e){if(e.tag===13){var t=Nn(e),n=nn(e,t);if(n!==null){var r=He();jt(n,e,t,r)}Sc(e,t)}};Wp=function(){return ae};Vp=function(e,t){var n=ae;try{return ae=e,t()}finally{ae=n}};Cs=function(e,t,n){switch(t){case"input":if(vs(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=ql(r);if(!o)throw Error($(90));bp(r),vs(r,o)}}}break;case"textarea":Sp(e,n);break;case"select":t=n.value,t!=null&&zr(e,!!n.multiple,t,!1)}};jp=xc;Lp=sr;var Ty={usingClientEntryPoint:!1,Events:[ui,Or,ql,Np,Tp,xc]},ho={findFiberByHostInstance:Kn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},jy={bundleType:ho.bundleType,version:ho.version,rendererPackageName:ho.rendererPackageName,rendererConfig:ho.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:sn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Rp(e),e===null?null:e.stateNode},findFiberByHostInstance:ho.findFiberByHostInstance||_y,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{Wl=Fi.inject(jy),Ut=Fi}catch{}}at.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ty;at.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Pc(t))throw Error($(200));return Oy(e,t,null,n)};at.createRoot=function(e,t){if(!Pc(e))throw Error($(299));var n=!1,r="",o=pm;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Ec(e,1,!1,null,null,n,!1,r,o),e[tn]=t.current,Ko(e.nodeType===8?e.parentNode:e),new Cc(t)};at.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=Rp(t),e=e===null?null:e.stateNode,e};at.flushSync=function(e){return sr(e)};at.hydrate=function(e,t,n){if(!ra(t))throw Error($(200));return oa(null,e,t,!0,n)};at.hydrateRoot=function(e,t,n){if(!Pc(e))throw Error($(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",l=pm;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=dm(t,null,e,1,n??null,o,!1,i,l),e[tn]=t.current,Ko(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 na(t)};at.render=function(e,t,n){if(!ra(t))throw Error($(200));return oa(null,e,t,!1,n)};at.unmountComponentAtNode=function(e){if(!ra(e))throw Error($(40));return e._reactRootContainer?(sr(function(){oa(null,null,e,!1,function(){e._reactRootContainer=null,e[tn]=null})}),!0):!1};at.unstable_batchedUpdates=xc;at.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ra(n))throw Error($(200));if(e==null||e._reactInternals===void 0)throw Error($(38));return oa(e,t,n,!1,r)};at.version="18.3.1-next-f1338f8080-20240426";function hm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(hm)}catch(e){console.error(e)}}hm(),hp.exports=at;var mm=hp.exports,gm,hd=mm;gm=hd.createRoot,hd.hydrateRoot;var Ly=Object.defineProperty,Ay=(e,t,n)=>t in e?Ly(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xa=(e,t,n)=>(Ay(e,typeof t!="symbol"?t+"":t,n),n);let $y=class{constructor(){Xa(this,"current",this.detect()),Xa(this,"handoffState","pending"),Xa(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Zt=new $y,bt=(e,t)=>{Zt.isServer?w.useEffect(e,t):w.useLayoutEffect(e,t)};function Jt(e){let t=w.useRef(e);return bt(()=>{t.current=e},[e]),t}let me=function(e){let t=Jt(e);return X.useCallback((...n)=>t.current(...n),[t])};function ia(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function hr(){let e=[],t={addEventListener(n,r,o,i){return n.addEventListener(r,o,i),t.add(()=>n.removeEventListener(r,o,i))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return ia(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let i=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:i})})},group(n){let r=hr();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function Oc(){let[e]=w.useState(hr);return w.useEffect(()=>()=>e.dispose(),[e]),e}function Ry(){let e=typeof document>"u";return"useSyncExternalStore"in Do?(t=>t.useSyncExternalStore)(Do)(()=>()=>{},()=>!1,()=>!e):!1}function to(){let e=Ry(),[t,n]=w.useState(Zt.isHandoffComplete);return t&&Zt.isHandoffComplete===!1&&n(!1),w.useEffect(()=>{t!==!0&&n(!0)},[t]),w.useEffect(()=>Zt.handoff(),[]),e?!1:t}var md;let no=(md=X.useId)!=null?md:function(){let e=to(),[t,n]=X.useState(e?()=>Zt.nextId():null);return bt(()=>{t===null&&n(Zt.nextId())},[t]),t!=null?""+t:void 0};function Fe(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Fe),r}function ym(e){return Zt.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let ou=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Yn=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Yn||{}),vm=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(vm||{}),zy=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(zy||{});function Iy(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(ou)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var xm=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(xm||{});function Fy(e,t=0){var n;return e===((n=ym(e))==null?void 0:n.body)?!1:Fe(t,{0(){return e.matches(ou)},1(){let r=e;for(;r!==null;){if(r.matches(ou))return!0;r=r.parentElement}return!1}})}var My=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(My||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function tr(e){e==null||e.focus({preventScroll:!0})}let Dy=["textarea","input"].join(",");function Uy(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,Dy))!=null?n:!1}function By(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),i=t(r);if(o===null||i===null)return 0;let l=o.compareDocumentPosition(i);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function nl(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,l=Array.isArray(e)?n?By(e):e:Iy(e);o.length>0&&l.length>1&&(l=l.filter(p=>!o.includes(p))),r=r??i.activeElement;let a=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),s=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,l.indexOf(r))-1;if(t&4)return Math.max(0,l.indexOf(r))+1;if(t&8)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},c=0,f=l.length,d;do{if(c>=f||c+f<=0)return 0;let p=s+c;if(t&16)p=(p+f)%f;else{if(p<0)return 3;if(p>=f)return 1}d=l[p],d==null||d.focus(u),c+=a}while(d!==i.activeElement);return t&6&&Uy(d)&&d.select(),2}function wm(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Hy(){return/Android/gi.test(window.navigator.userAgent)}function Wy(){return wm()||Hy()}function Mi(e,t,n){let r=Jt(t);w.useEffect(()=>{function o(i){r.current(i)}return document.addEventListener(e,o,n),()=>document.removeEventListener(e,o,n)},[e,n])}function km(e,t,n){let r=Jt(t);w.useEffect(()=>{function o(i){r.current(i)}return window.addEventListener(e,o,n),()=>window.removeEventListener(e,o,n)},[e,n])}function Vy(e,t,n=!0){let r=w.useRef(!1);w.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function o(l,a){if(!r.current||l.defaultPrevented)return;let s=a(l);if(s===null||!s.getRootNode().contains(s)||!s.isConnected)return;let u=function c(f){return typeof f=="function"?c(f()):Array.isArray(f)||f instanceof Set?f:[f]}(e);for(let c of u){if(c===null)continue;let f=c instanceof HTMLElement?c:c.current;if(f!=null&&f.contains(s)||l.composed&&l.composedPath().includes(f))return}return!Fy(s,xm.Loose)&&s.tabIndex!==-1&&l.preventDefault(),t(l,s)}let i=w.useRef(null);Mi("pointerdown",l=>{var a,s;r.current&&(i.current=((s=(a=l.composedPath)==null?void 0:a.call(l))==null?void 0:s[0])||l.target)},!0),Mi("mousedown",l=>{var a,s;r.current&&(i.current=((s=(a=l.composedPath)==null?void 0:a.call(l))==null?void 0:s[0])||l.target)},!0),Mi("click",l=>{Wy()||i.current&&(o(l,()=>i.current),i.current=null)},!0),Mi("touchend",l=>o(l,()=>l.target instanceof HTMLElement?l.target:null),!0),km("blur",l=>o(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function fi(...e){return w.useMemo(()=>ym(...e),[...e])}let bm=Symbol();function Qy(e,t=!0){return Object.assign(e,{[bm]:t})}function At(...e){let t=w.useRef(e);w.useEffect(()=>{t.current=e},[e]);let n=me(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[bm]))?void 0:n}function _c(e,t){let n=w.useRef([]),r=me(e);w.useEffect(()=>{let o=[...n.current];for(let[i,l]of t.entries())if(n.current[i]!==l){let a=r(t,o);return n.current=t,a}},[r,...t])}function Ll(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var Al=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Al||{}),kn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(kn||{});function Et({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:l,mergeRefs:a}){a=a??Yy;let s=Em(t,e);if(i)return Di(s,n,r,l,a);let u=o??0;if(u&2){let{static:c=!1,...f}=s;if(c)return Di(f,n,r,l,a)}if(u&1){let{unmount:c=!0,...f}=s;return Fe(c?0:1,{0(){return null},1(){return Di({...f,hidden:!0,style:{display:"none"}},n,r,l,a)}})}return Di(s,n,r,l,a)}function Di(e,t={},n,r,o){let{as:i=n,children:l,refName:a="ref",...s}=Za(e,["unmount","static"]),u=e.ref!==void 0?{[a]:e.ref}:{},c=typeof l=="function"?l(t):l;"className"in s&&s.className&&typeof s.className=="function"&&(s.className=s.className(t));let f={};if(t){let d=!1,p=[];for(let[y,h]of Object.entries(t))typeof h=="boolean"&&(d=!0),h===!0&&p.push(y);d&&(f["data-headlessui-state"]=p.join(" "))}if(i===w.Fragment&&Object.keys(gd(s)).length>0){if(!w.isValidElement(c)||Array.isArray(c)&&c.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(s).map(h=>`  - ${h}`).join(`
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(h=>`  - ${h}`).join(`
`)].join(`
`));let d=c.props,p=typeof(d==null?void 0:d.className)=="function"?(...h)=>Ll(d==null?void 0:d.className(...h),s.className):Ll(d==null?void 0:d.className,s.className),y=p?{className:p}:{};return w.cloneElement(c,Object.assign({},Em(c.props,gd(Za(s,["ref"]))),f,u,{ref:o(c.ref,u.ref)},y))}return w.createElement(i,Object.assign({},Za(s,["ref"]),i!==w.Fragment&&u,i!==w.Fragment&&f),c)}function Yy(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function Em(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...i){let l=n[r];for(let a of l){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;a(o,...i)}}});return t}function ut(e){var t;return Object.assign(w.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function gd(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Za(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}let qy="div";var $l=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))($l||{});function Ky(e,t){var n;let{features:r=1,...o}=e,i={ref:t,"aria-hidden":(r&2)===2?!0:(n=o["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return Et({ourProps:i,theirProps:o,slot:{},defaultTag:qy,name:"Hidden"})}let iu=ut(Ky),Nc=w.createContext(null);Nc.displayName="OpenClosedContext";var et=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(et||{});function Tc(){return w.useContext(Nc)}function Gy({value:e,children:t}){return X.createElement(Nc.Provider,{value:e},t)}function Xy(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let yn=[];Xy(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&yn[0]!==t.target&&(yn.unshift(t.target),yn=yn.filter(n=>n!=null&&n.isConnected),yn.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Zy(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&Jy(n)?!1:r}function Jy(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}var Sm=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Sm||{});function Cm(e,t,n,r){let o=Jt(n);w.useEffect(()=>{e=e??window;function i(l){o.current(l)}return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)},[e,t,r])}function di(){let e=w.useRef(!1);return bt(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Pm(e){let t=me(e),n=w.useRef(!1);w.useEffect(()=>(n.current=!1,()=>{n.current=!0,ia(()=>{n.current&&t()})}),[t])}var So=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(So||{});function ev(){let e=w.useRef(0);return km("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function Om(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let tv="div";var _m=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(_m||{});function nv(e,t){let n=w.useRef(null),r=At(n,t),{initialFocus:o,containers:i,features:l=30,...a}=e;to()||(l=1);let s=fi(n);iv({ownerDocument:s},!!(l&16));let u=lv({ownerDocument:s,container:n,initialFocus:o},!!(l&2));av({ownerDocument:s,container:n,containers:i,previousActiveElement:u},!!(l&8));let c=ev(),f=me(h=>{let k=n.current;k&&(m=>m())(()=>{Fe(c.current,{[So.Forwards]:()=>{nl(k,Yn.First,{skipElements:[h.relatedTarget]})},[So.Backwards]:()=>{nl(k,Yn.Last,{skipElements:[h.relatedTarget]})}})})}),d=Oc(),p=w.useRef(!1),y={ref:r,onKeyDown(h){h.key=="Tab"&&(p.current=!0,d.requestAnimationFrame(()=>{p.current=!1}))},onBlur(h){let k=Om(i);n.current instanceof HTMLElement&&k.add(n.current);let m=h.relatedTarget;m instanceof HTMLElement&&m.dataset.headlessuiFocusGuard!=="true"&&(Nm(k,m)||(p.current?nl(n.current,Fe(c.current,{[So.Forwards]:()=>Yn.Next,[So.Backwards]:()=>Yn.Previous})|Yn.WrapAround,{relativeTo:h.target}):h.target instanceof HTMLElement&&tr(h.target)))}};return X.createElement(X.Fragment,null,!!(l&4)&&X.createElement(iu,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:$l.Focusable}),Et({ourProps:y,theirProps:a,defaultTag:tv,name:"FocusTrap"}),!!(l&4)&&X.createElement(iu,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:$l.Focusable}))}let rv=ut(nv),mo=Object.assign(rv,{features:_m});function ov(e=!0){let t=w.useRef(yn.slice());return _c(([n],[r])=>{r===!0&&n===!1&&ia(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=yn.slice())},[e,yn,t]),me(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function iv({ownerDocument:e},t){let n=ov(t);_c(()=>{t||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&tr(n())},[t]),Pm(()=>{t&&tr(n())})}function lv({ownerDocument:e,container:t,initialFocus:n},r){let o=w.useRef(null),i=di();return _c(()=>{if(!r)return;let l=t.current;l&&ia(()=>{if(!i.current)return;let a=e==null?void 0:e.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===a){o.current=a;return}}else if(l.contains(a)){o.current=a;return}n!=null&&n.current?tr(n.current):nl(l,Yn.First)===vm.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=e==null?void 0:e.activeElement})},[r]),o}function av({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){let i=di();Cm(e==null?void 0:e.defaultView,"focus",l=>{if(!o||!i.current)return;let a=Om(n);t.current instanceof HTMLElement&&a.add(t.current);let s=r.current;if(!s)return;let u=l.target;u&&u instanceof HTMLElement?Nm(a,u)?(r.current=u,tr(u)):(l.preventDefault(),l.stopPropagation(),tr(s)):tr(r.current)},!0)}function Nm(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let Tm=w.createContext(!1);function sv(){return w.useContext(Tm)}function lu(e){return X.createElement(Tm.Provider,{value:e.force},e.children)}function uv(e){let t=sv(),n=w.useContext(jm),r=fi(e),[o,i]=w.useState(()=>{if(!t&&n!==null||Zt.isServer)return null;let l=r==null?void 0:r.getElementById("headlessui-portal-root");if(l)return l;if(r===null)return null;let a=r.createElement("div");return a.setAttribute("id","headlessui-portal-root"),r.body.appendChild(a)});return w.useEffect(()=>{o!==null&&(r!=null&&r.body.contains(o)||r==null||r.body.appendChild(o))},[o,r]),w.useEffect(()=>{t||n!==null&&i(n.current)},[n,i,t]),o}let cv=w.Fragment;function fv(e,t){let n=e,r=w.useRef(null),o=At(Qy(c=>{r.current=c}),t),i=fi(r),l=uv(r),[a]=w.useState(()=>{var c;return Zt.isServer?null:(c=i==null?void 0:i.createElement("div"))!=null?c:null}),s=w.useContext(au),u=to();return bt(()=>{!l||!a||l.contains(a)||(a.setAttribute("data-headlessui-portal",""),l.appendChild(a))},[l,a]),bt(()=>{if(a&&s)return s.register(a)},[s,a]),Pm(()=>{var c;!l||!a||(a instanceof Node&&l.contains(a)&&l.removeChild(a),l.childNodes.length<=0&&((c=l.parentElement)==null||c.removeChild(l)))}),u?!l||!a?null:mm.createPortal(Et({ourProps:{ref:o},theirProps:n,defaultTag:cv,name:"Portal"}),a):null}let dv=w.Fragment,jm=w.createContext(null);function pv(e,t){let{target:n,...r}=e,o={ref:At(t)};return X.createElement(jm.Provider,{value:n},Et({ourProps:o,theirProps:r,defaultTag:dv,name:"Popover.Group"}))}let au=w.createContext(null);function hv(){let e=w.useContext(au),t=w.useRef([]),n=me(i=>(t.current.push(i),e&&e.register(i),()=>r(i))),r=me(i=>{let l=t.current.indexOf(i);l!==-1&&t.current.splice(l,1),e&&e.unregister(i)}),o=w.useMemo(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,w.useMemo(()=>function({children:i}){return X.createElement(au.Provider,{value:o},i)},[o])]}let mv=ut(fv),gv=ut(pv),su=Object.assign(mv,{Group:gv});function yv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const vv=typeof Object.is=="function"?Object.is:yv,{useState:xv,useEffect:wv,useLayoutEffect:kv,useDebugValue:bv}=Do;function Ev(e,t,n){const r=t(),[{inst:o},i]=xv({inst:{value:r,getSnapshot:t}});return kv(()=>{o.value=r,o.getSnapshot=t,Ja(o)&&i({inst:o})},[e,r,t]),wv(()=>(Ja(o)&&i({inst:o}),e(()=>{Ja(o)&&i({inst:o})})),[e]),bv(r),r}function Ja(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!vv(n,r)}catch{return!0}}function Sv(e,t,n){return t()}const Cv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Pv=!Cv,Ov=Pv?Sv:Ev,_v="useSyncExternalStore"in Do?(e=>e.useSyncExternalStore)(Do):Ov;function Nv(e){return _v(e.subscribe,e.getSnapshot,e.getSnapshot)}function Tv(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...i){let l=t[o].call(n,...i);l&&(n=l,r.forEach(a=>a()))}}}function jv(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,o=r.clientWidth-r.offsetWidth,i=e-o;n.style(r,"paddingRight",`${i}px`)}}}function Lv(){return wm()?{before({doc:e,d:t,meta:n}){function r(o){return n.containers.flatMap(i=>i()).some(i=>i.contains(o))}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=hr();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let i=(o=window.scrollY)!=null?o:window.pageYOffset,l=null;t.addEventListener(e,"click",a=>{if(a.target instanceof HTMLElement)try{let s=a.target.closest("a");if(!s)return;let{hash:u}=new URL(s.href),c=e.querySelector(u);c&&!r(c)&&(l=c)}catch{}},!0),t.addEventListener(e,"touchstart",a=>{if(a.target instanceof HTMLElement)if(r(a.target)){let s=a.target;for(;s.parentElement&&r(s.parentElement);)s=s.parentElement;t.style(s,"overscrollBehavior","contain")}else t.style(a.target,"touchAction","none")}),t.addEventListener(e,"touchmove",a=>{if(a.target instanceof HTMLElement)if(r(a.target)){let s=a.target;for(;s.parentElement&&s.dataset.headlessuiPortal!==""&&!(s.scrollHeight>s.clientHeight||s.scrollWidth>s.clientWidth);)s=s.parentElement;s.dataset.headlessuiPortal===""&&a.preventDefault()}else a.preventDefault()},{passive:!1}),t.add(()=>{var a;let s=(a=window.scrollY)!=null?a:window.pageYOffset;i!==s&&window.scrollTo(0,i),l&&l.isConnected&&(l.scrollIntoView({block:"nearest"}),l=null)})})}}:{}}function Av(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function $v(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Zn=Tv(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:hr(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:$v(n)},o=[Lv(),jv(),Av()];o.forEach(({before:i})=>i==null?void 0:i(r)),o.forEach(({after:i})=>i==null?void 0:i(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Zn.subscribe(()=>{let e=Zn.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&Zn.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Zn.dispatch("TEARDOWN",n)}});function Rv(e,t,n){let r=Nv(Zn),o=e?r.get(e):void 0,i=o?o.count>0:!1;return bt(()=>{if(!(!e||!t))return Zn.dispatch("PUSH",e,n),()=>Zn.dispatch("POP",e,n)},[t,e]),i}let es=new Map,go=new Map;function yd(e,t=!0){bt(()=>{var n;if(!t)return;let r=typeof e=="function"?e():e.current;if(!r)return;function o(){var l;if(!r)return;let a=(l=go.get(r))!=null?l:1;if(a===1?go.delete(r):go.set(r,a-1),a!==1)return;let s=es.get(r);s&&(s["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",s["aria-hidden"]),r.inert=s.inert,es.delete(r))}let i=(n=go.get(r))!=null?n:0;return go.set(r,i+1),i!==0||(es.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),o},[e,t])}function zv({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){var r;let o=w.useRef((r=n==null?void 0:n.current)!=null?r:null),i=fi(o),l=me(()=>{var a,s,u;let c=[];for(let f of e)f!==null&&(f instanceof HTMLElement?c.push(f):"current"in f&&f.current instanceof HTMLElement&&c.push(f.current));if(t!=null&&t.current)for(let f of t.current)c.push(f);for(let f of(a=i==null?void 0:i.querySelectorAll("html > *, body > *"))!=null?a:[])f!==document.body&&f!==document.head&&f instanceof HTMLElement&&f.id!=="headlessui-portal-root"&&(f.contains(o.current)||f.contains((u=(s=o.current)==null?void 0:s.getRootNode())==null?void 0:u.host)||c.some(d=>f.contains(d))||c.push(f));return c});return{resolveContainers:l,contains:me(a=>l().some(s=>s.contains(a))),mainTreeNodeRef:o,MainTreeNode:w.useMemo(()=>function(){return n!=null?null:X.createElement(iu,{features:$l.Hidden,ref:o})},[o,n])}}let jc=w.createContext(()=>{});jc.displayName="StackContext";var uu=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(uu||{});function Iv(){return w.useContext(jc)}function Fv({children:e,onUpdate:t,type:n,element:r,enabled:o}){let i=Iv(),l=me((...a)=>{t==null||t(...a),i(...a)});return bt(()=>{let a=o===void 0||o===!0;return a&&l(0,n,r),()=>{a&&l(1,n,r)}},[l,n,r,o]),X.createElement(jc.Provider,{value:l},e)}let Lm=w.createContext(null);function Am(){let e=w.useContext(Lm);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Am),t}return e}function Mv(){let[e,t]=w.useState([]);return[e.length>0?e.join(" "):void 0,w.useMemo(()=>function(n){let r=me(i=>(t(l=>[...l,i]),()=>t(l=>{let a=l.slice(),s=a.indexOf(i);return s!==-1&&a.splice(s,1),a}))),o=w.useMemo(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return X.createElement(Lm.Provider,{value:o},n.children)},[t])]}let Dv="p";function Uv(e,t){let n=no(),{id:r=`headlessui-description-${n}`,...o}=e,i=Am(),l=At(t);bt(()=>i.register(r),[r,i.register]);let a={ref:l,...i.props,id:r};return Et({ourProps:a,theirProps:o,slot:i.slot||{},defaultTag:Dv,name:i.name||"Description"})}let Bv=ut(Uv),Hv=Object.assign(Bv,{});var Wv=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Wv||{}),Vv=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Vv||{});let Qv={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},Rl=w.createContext(null);Rl.displayName="DialogContext";function pi(e){let t=w.useContext(Rl);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,pi),n}return t}function Yv(e,t,n=()=>[document.body]){Rv(e,t,r=>{var o;return{containers:[...(o=r.containers)!=null?o:[],n]}})}function qv(e,t){return Fe(t.type,Qv,e,t)}let Kv="div",Gv=Al.RenderStrategy|Al.Static;function Xv(e,t){let n=no(),{id:r=`headlessui-dialog-${n}`,open:o,onClose:i,initialFocus:l,role:a="dialog",__demoMode:s=!1,...u}=e,[c,f]=w.useState(0),d=w.useRef(!1);a=function(){return a==="dialog"||a==="alertdialog"?a:(d.current||(d.current=!0,console.warn(`Invalid role [${a}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let p=Tc();o===void 0&&p!==null&&(o=(p&et.Open)===et.Open);let y=w.useRef(null),h=At(y,t),k=fi(y),m=e.hasOwnProperty("open")||p!==null,g=e.hasOwnProperty("onClose");if(!m&&!g)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!m)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!g)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof o!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${o}`);if(typeof i!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${i}`);let v=o?0:1,[E,N]=w.useReducer(qv,{titleId:null,descriptionId:null,panelRef:w.createRef()}),_=me(()=>i(!1)),j=me(ue=>N({type:0,id:ue})),L=to()?s?!1:v===0:!1,M=c>1,R=w.useContext(Rl)!==null,[F,Y]=hv(),Q={get current(){var ue;return(ue=E.panelRef.current)!=null?ue:y.current}},{resolveContainers:te,mainTreeNodeRef:Z,MainTreeNode:Ce}=zv({portals:F,defaultContainers:[Q]}),De=M?"parent":"leaf",I=p!==null?(p&et.Closing)===et.Closing:!1,V=(()=>R||I?!1:L)(),W=w.useCallback(()=>{var ue,Ct;return(Ct=Array.from((ue=k==null?void 0:k.querySelectorAll("body > *"))!=null?ue:[]).find(Ue=>Ue.id==="headlessui-portal-root"?!1:Ue.contains(Z.current)&&Ue instanceof HTMLElement))!=null?Ct:null},[Z]);yd(W,V);let oe=(()=>M?!0:L)(),ne=w.useCallback(()=>{var ue,Ct;return(Ct=Array.from((ue=k==null?void 0:k.querySelectorAll("[data-headlessui-portal]"))!=null?ue:[]).find(Ue=>Ue.contains(Z.current)&&Ue instanceof HTMLElement))!=null?Ct:null},[Z]);yd(ne,oe);let ft=(()=>!(!L||M))();Vy(te,ue=>{ue.preventDefault(),_()},ft);let ke=(()=>!(M||v!==0))();Cm(k==null?void 0:k.defaultView,"keydown",ue=>{ke&&(ue.defaultPrevented||ue.key===Sm.Escape&&(ue.preventDefault(),ue.stopPropagation(),_()))});let Dn=(()=>!(I||v!==0||R))();Yv(k,Dn,te),w.useEffect(()=>{if(v!==0||!y.current)return;let ue=new ResizeObserver(Ct=>{for(let Ue of Ct){let Bn=Ue.target.getBoundingClientRect();Bn.x===0&&Bn.y===0&&Bn.width===0&&Bn.height===0&&_()}});return ue.observe(y.current),()=>ue.disconnect()},[v,y,_]);let[St,$t]=Mv(),ma=w.useMemo(()=>[{dialogState:v,close:_,setTitleId:j},E],[v,E,_,j]),Un=w.useMemo(()=>({open:v===0}),[v]),oo={ref:h,id:r,role:a,"aria-modal":v===0?!0:void 0,"aria-labelledby":E.titleId,"aria-describedby":St};return X.createElement(Fv,{type:"Dialog",enabled:v===0,element:y,onUpdate:me((ue,Ct)=>{Ct==="Dialog"&&Fe(ue,{[uu.Add]:()=>f(Ue=>Ue+1),[uu.Remove]:()=>f(Ue=>Ue-1)})})},X.createElement(lu,{force:!0},X.createElement(su,null,X.createElement(Rl.Provider,{value:ma},X.createElement(su.Group,{target:y},X.createElement(lu,{force:!1},X.createElement($t,{slot:Un,name:"Dialog.Description"},X.createElement(mo,{initialFocus:l,containers:te,features:L?Fe(De,{parent:mo.features.RestoreFocus,leaf:mo.features.All&~mo.features.FocusLock}):mo.features.None},X.createElement(Y,null,Et({ourProps:oo,theirProps:u,slot:Un,defaultTag:Kv,features:Gv,visible:v===0,name:"Dialog"}))))))))),X.createElement(Ce,null))}let Zv="div";function Jv(e,t){let n=no(),{id:r=`headlessui-dialog-overlay-${n}`,...o}=e,[{dialogState:i,close:l}]=pi("Dialog.Overlay"),a=At(t),s=me(c=>{if(c.target===c.currentTarget){if(Zy(c.currentTarget))return c.preventDefault();c.preventDefault(),c.stopPropagation(),l()}}),u=w.useMemo(()=>({open:i===0}),[i]);return Et({ourProps:{ref:a,id:r,"aria-hidden":!0,onClick:s},theirProps:o,slot:u,defaultTag:Zv,name:"Dialog.Overlay"})}let e2="div";function t2(e,t){let n=no(),{id:r=`headlessui-dialog-backdrop-${n}`,...o}=e,[{dialogState:i},l]=pi("Dialog.Backdrop"),a=At(t);w.useEffect(()=>{if(l.panelRef.current===null)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[l.panelRef]);let s=w.useMemo(()=>({open:i===0}),[i]);return X.createElement(lu,{force:!0},X.createElement(su,null,Et({ourProps:{ref:a,id:r,"aria-hidden":!0},theirProps:o,slot:s,defaultTag:e2,name:"Dialog.Backdrop"})))}let n2="div";function r2(e,t){let n=no(),{id:r=`headlessui-dialog-panel-${n}`,...o}=e,[{dialogState:i},l]=pi("Dialog.Panel"),a=At(t,l.panelRef),s=w.useMemo(()=>({open:i===0}),[i]),u=me(c=>{c.stopPropagation()});return Et({ourProps:{ref:a,id:r,onClick:u},theirProps:o,slot:s,defaultTag:n2,name:"Dialog.Panel"})}let o2="h2";function i2(e,t){let n=no(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:l}]=pi("Dialog.Title"),a=At(t);w.useEffect(()=>(l(r),()=>l(null)),[r,l]);let s=w.useMemo(()=>({open:i===0}),[i]);return Et({ourProps:{ref:a,id:r},theirProps:o,slot:s,defaultTag:o2,name:"Dialog.Title"})}let l2=ut(Xv),a2=ut(t2),s2=ut(r2),u2=ut(Jv),c2=ut(i2),vd=Object.assign(l2,{Backdrop:a2,Panel:s2,Overlay:u2,Title:c2,Description:Hv});function f2(e=0){let[t,n]=w.useState(e),r=di(),o=w.useCallback(s=>{r.current&&n(u=>u|s)},[t,r]),i=w.useCallback(s=>!!(t&s),[t]),l=w.useCallback(s=>{r.current&&n(u=>u&~s)},[n,r]),a=w.useCallback(s=>{r.current&&n(u=>u^s)},[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:l,toggleFlag:a}}function d2(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function ts(e,...t){e&&t.length>0&&e.classList.add(...t)}function ns(e,...t){e&&t.length>0&&e.classList.remove(...t)}function p2(e,t){let n=hr();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,l]=[r,o].map(s=>{let[u=0]=s.split(",").filter(Boolean).map(c=>c.includes("ms")?parseFloat(c):parseFloat(c)*1e3).sort((c,f)=>f-c);return u}),a=i+l;if(a!==0){n.group(u=>{u.setTimeout(()=>{t(),u.dispose()},a),u.addEventListener(e,"transitionrun",c=>{c.target===c.currentTarget&&u.dispose()})});let s=n.addEventListener(e,"transitionend",u=>{u.target===u.currentTarget&&(t(),s())})}else t();return n.add(()=>t()),n.dispose}function h2(e,t,n,r){let o=n?"enter":"leave",i=hr(),l=r!==void 0?d2(r):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let a=Fe(o,{enter:()=>t.enter,leave:()=>t.leave}),s=Fe(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),u=Fe(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return ns(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),ts(e,...t.base,...a,...u),i.nextFrame(()=>{ns(e,...t.base,...a,...u),ts(e,...t.base,...a,...s),p2(e,()=>(ns(e,...t.base,...a),ts(e,...t.base,...t.entered),l()))}),i.dispose}function m2({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let l=di(),a=Oc(),s=Jt(n);bt(()=>{e&&(s.current="enter")},[e]),bt(()=>{let u=hr();a.add(u.dispose);let c=t.current;if(c&&s.current!=="idle"&&l.current)return u.dispose(),o.current(s.current),u.add(h2(c,r.current,s.current==="enter",()=>{u.dispose(),i.current(s.current)})),u.dispose},[n])}function fn(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let la=w.createContext(null);la.displayName="TransitionContext";var g2=(e=>(e.Visible="visible",e.Hidden="hidden",e))(g2||{});function y2(){let e=w.useContext(la);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function v2(){let e=w.useContext(aa);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let aa=w.createContext(null);aa.displayName="NestingContext";function sa(e){return"children"in e?sa(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function $m(e,t){let n=Jt(e),r=w.useRef([]),o=di(),i=Oc(),l=me((p,y=kn.Hidden)=>{let h=r.current.findIndex(({el:k})=>k===p);h!==-1&&(Fe(y,{[kn.Unmount](){r.current.splice(h,1)},[kn.Hidden](){r.current[h].state="hidden"}}),i.microTask(()=>{var k;!sa(r)&&o.current&&((k=n.current)==null||k.call(n))}))}),a=me(p=>{let y=r.current.find(({el:h})=>h===p);return y?y.state!=="visible"&&(y.state="visible"):r.current.push({el:p,state:"visible"}),()=>l(p,kn.Unmount)}),s=w.useRef([]),u=w.useRef(Promise.resolve()),c=w.useRef({enter:[],leave:[],idle:[]}),f=me((p,y,h)=>{s.current.splice(0),t&&(t.chains.current[y]=t.chains.current[y].filter(([k])=>k!==p)),t==null||t.chains.current[y].push([p,new Promise(k=>{s.current.push(k)})]),t==null||t.chains.current[y].push([p,new Promise(k=>{Promise.all(c.current[y].map(([m,g])=>g)).then(()=>k())})]),y==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>h(y)):h(y)}),d=me((p,y,h)=>{Promise.all(c.current[y].splice(0).map(([k,m])=>m)).then(()=>{var k;(k=s.current.shift())==null||k()}).then(()=>h(y))});return w.useMemo(()=>({children:r,register:a,unregister:l,onStart:f,onStop:d,wait:u,chains:c}),[a,l,r,f,d,c,u])}function x2(){}let w2=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function xd(e){var t;let n={};for(let r of w2)n[r]=(t=e[r])!=null?t:x2;return n}function k2(e){let t=w.useRef(xd(e));return w.useEffect(()=>{t.current=xd(e)},[e]),t}let b2="div",Rm=Al.RenderStrategy;function E2(e,t){var n,r;let{beforeEnter:o,afterEnter:i,beforeLeave:l,afterLeave:a,enter:s,enterFrom:u,enterTo:c,entered:f,leave:d,leaveFrom:p,leaveTo:y,...h}=e,k=w.useRef(null),m=At(k,t),g=(n=h.unmount)==null||n?kn.Unmount:kn.Hidden,{show:v,appear:E,initial:N}=y2(),[_,j]=w.useState(v?"visible":"hidden"),L=v2(),{register:M,unregister:R}=L;w.useEffect(()=>M(k),[M,k]),w.useEffect(()=>{if(g===kn.Hidden&&k.current){if(v&&_!=="visible"){j("visible");return}return Fe(_,{hidden:()=>R(k),visible:()=>M(k)})}},[_,k,M,R,v,g]);let F=Jt({base:fn(h.className),enter:fn(s),enterFrom:fn(u),enterTo:fn(c),entered:fn(f),leave:fn(d),leaveFrom:fn(p),leaveTo:fn(y)}),Y=k2({beforeEnter:o,afterEnter:i,beforeLeave:l,afterLeave:a}),Q=to();w.useEffect(()=>{if(Q&&_==="visible"&&k.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[k,_,Q]);let te=N&&!E,Z=E&&v&&N,Ce=(()=>!Q||te?"idle":v?"enter":"leave")(),De=f2(0),I=me(ke=>Fe(ke,{enter:()=>{De.addFlag(et.Opening),Y.current.beforeEnter()},leave:()=>{De.addFlag(et.Closing),Y.current.beforeLeave()},idle:()=>{}})),V=me(ke=>Fe(ke,{enter:()=>{De.removeFlag(et.Opening),Y.current.afterEnter()},leave:()=>{De.removeFlag(et.Closing),Y.current.afterLeave()},idle:()=>{}})),W=$m(()=>{j("hidden"),R(k)},L),oe=w.useRef(!1);m2({immediate:Z,container:k,classes:F,direction:Ce,onStart:Jt(ke=>{oe.current=!0,W.onStart(k,ke,I)}),onStop:Jt(ke=>{oe.current=!1,W.onStop(k,ke,V),ke==="leave"&&!sa(W)&&(j("hidden"),R(k))})});let ne=h,ft={ref:m};return Z?ne={...ne,className:Ll(h.className,...F.current.enter,...F.current.enterFrom)}:oe.current&&(ne.className=Ll(h.className,(r=k.current)==null?void 0:r.className),ne.className===""&&delete ne.className),X.createElement(aa.Provider,{value:W},X.createElement(Gy,{value:Fe(_,{visible:et.Open,hidden:et.Closed})|De.flags},Et({ourProps:ft,theirProps:ne,defaultTag:b2,features:Rm,visible:_==="visible",name:"Transition.Child"})))}function S2(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,l=w.useRef(null),a=At(l,t);to();let s=Tc();if(n===void 0&&s!==null&&(n=(s&et.Open)===et.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,c]=w.useState(n?"visible":"hidden"),f=$m(()=>{c("hidden")}),[d,p]=w.useState(!0),y=w.useRef([n]);bt(()=>{d!==!1&&y.current[y.current.length-1]!==n&&(y.current.push(n),p(!1))},[y,n]);let h=w.useMemo(()=>({show:n,appear:r,initial:d}),[n,r,d]);w.useEffect(()=>{if(n)c("visible");else if(!sa(f))c("hidden");else{let v=l.current;if(!v)return;let E=v.getBoundingClientRect();E.x===0&&E.y===0&&E.width===0&&E.height===0&&c("hidden")}},[n,f]);let k={unmount:o},m=me(()=>{var v;d&&p(!1),(v=e.beforeEnter)==null||v.call(e)}),g=me(()=>{var v;d&&p(!1),(v=e.beforeLeave)==null||v.call(e)});return X.createElement(aa.Provider,{value:f},X.createElement(la.Provider,{value:h},Et({ourProps:{...k,as:w.Fragment,children:X.createElement(zm,{ref:a,...k,...i,beforeEnter:m,beforeLeave:g})},theirProps:{},defaultTag:w.Fragment,features:Rm,visible:u==="visible",name:"Transition"})))}function C2(e,t){let n=w.useContext(la)!==null,r=Tc()!==null;return X.createElement(X.Fragment,null,!n&&r?X.createElement(cu,{ref:t,...e}):X.createElement(zm,{ref:t,...e}))}let cu=ut(S2),zm=ut(E2),P2=ut(C2),rs=Object.assign(cu,{Child:P2,Root:cu});function Im({children:e,show:t=!1,maxWidth:n="2xl",closeable:r=!0,onClose:o=()=>{}}){const i=()=>{r&&o()};w.useEffect(()=>{if(t){const a=s=>{s.key==="Escape"&&i()};return document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a)}}},[t]);const l={sm:"sm:max-w-sm",md:"sm:max-w-md",lg:"sm:max-w-lg",xl:"sm:max-w-2xl",none:"container","2xl":"sm:max-w-2xl","3xl":"sm:max-w-3xl"}[n];return z.jsx(rs,{show:t,as:w.Fragment,leave:"duration-200",children:z.jsxs(vd,{as:"div",id:"modal",className:"fixed  inset-0  overflow-y-auto  px-4 py-6 sm:px-0  z-50  transform transition-all",onClose:i,children:[z.jsx(rs.Child,{as:w.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:z.jsx("div",{className:"fixed  inset-0 bg-gray-500/75"})}),z.jsx("div",{className:"fixed inset-0 overflow-y-auto",children:z.jsx("div",{className:"flex min-h-full items-center justify-center p-4 ",children:z.jsx(rs.Child,{as:w.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:z.jsx(vd.Panel,{className:`my-6 bg-white rounded-lg overflow-hidden shadow-xl transform transition-all w-full mx-auto ${l}`,children:e})})})})]})})}var Fm={exports:{}};/*! react-checkbox-tree - v1.8.0 | 2022 */(function(e,t){/*! For license information please see index.browser.js.LICENSE.txt */(function(n,r){e.exports=r(w)})(self,n=>(()=>{var r={4184:(a,s)=>{var u;(function(){var c={}.hasOwnProperty;function f(){for(var d=[],p=0;p<arguments.length;p++){var y=arguments[p];if(y){var h=typeof y;if(h==="string"||h==="number")d.push(y);else if(Array.isArray(y)){if(y.length){var k=f.apply(null,y);k&&d.push(k)}}else if(h==="object")if(y.toString===Object.prototype.toString)for(var m in y)c.call(y,m)&&y[m]&&d.push(m);else d.push(y.toString())}}return d.join(" ")}a.exports?(f.default=f,a.exports=f):(u=(function(){return f}).apply(s,[]))===void 0||(a.exports=u)})()},8552:(a,s,u)=>{var c=u(852)(u(5639),"DataView");a.exports=c},1989:(a,s,u)=>{var c=u(1789),f=u(401),d=u(7667),p=u(1327),y=u(1866);function h(k){var m=-1,g=k==null?0:k.length;for(this.clear();++m<g;){var v=k[m];this.set(v[0],v[1])}}h.prototype.clear=c,h.prototype.delete=f,h.prototype.get=d,h.prototype.has=p,h.prototype.set=y,a.exports=h},8407:(a,s,u)=>{var c=u(7040),f=u(4125),d=u(2117),p=u(7518),y=u(4705);function h(k){var m=-1,g=k==null?0:k.length;for(this.clear();++m<g;){var v=k[m];this.set(v[0],v[1])}}h.prototype.clear=c,h.prototype.delete=f,h.prototype.get=d,h.prototype.has=p,h.prototype.set=y,a.exports=h},7071:(a,s,u)=>{var c=u(852)(u(5639),"Map");a.exports=c},3369:(a,s,u)=>{var c=u(4785),f=u(1285),d=u(6e3),p=u(9916),y=u(5265);function h(k){var m=-1,g=k==null?0:k.length;for(this.clear();++m<g;){var v=k[m];this.set(v[0],v[1])}}h.prototype.clear=c,h.prototype.delete=f,h.prototype.get=d,h.prototype.has=p,h.prototype.set=y,a.exports=h},3818:(a,s,u)=>{var c=u(852)(u(5639),"Promise");a.exports=c},8525:(a,s,u)=>{var c=u(852)(u(5639),"Set");a.exports=c},8668:(a,s,u)=>{var c=u(3369),f=u(619),d=u(2385);function p(y){var h=-1,k=y==null?0:y.length;for(this.__data__=new c;++h<k;)this.add(y[h])}p.prototype.add=p.prototype.push=f,p.prototype.has=d,a.exports=p},6384:(a,s,u)=>{var c=u(8407),f=u(7465),d=u(3779),p=u(7599),y=u(4758),h=u(4309);function k(m){var g=this.__data__=new c(m);this.size=g.size}k.prototype.clear=f,k.prototype.delete=d,k.prototype.get=p,k.prototype.has=y,k.prototype.set=h,a.exports=k},2705:(a,s,u)=>{var c=u(5639).Symbol;a.exports=c},1149:(a,s,u)=>{var c=u(5639).Uint8Array;a.exports=c},577:(a,s,u)=>{var c=u(852)(u(5639),"WeakMap");a.exports=c},4963:a=>{a.exports=function(s,u){for(var c=-1,f=s==null?0:s.length,d=0,p=[];++c<f;){var y=s[c];u(y,c,s)&&(p[d++]=y)}return p}},4636:(a,s,u)=>{var c=u(2545),f=u(5694),d=u(1469),p=u(4144),y=u(5776),h=u(6719),k=Object.prototype.hasOwnProperty;a.exports=function(m,g){var v=d(m),E=!v&&f(m),N=!v&&!E&&p(m),_=!v&&!E&&!N&&h(m),j=v||E||N||_,L=j?c(m.length,String):[],M=L.length;for(var R in m)!g&&!k.call(m,R)||j&&(R=="length"||N&&(R=="offset"||R=="parent")||_&&(R=="buffer"||R=="byteLength"||R=="byteOffset")||y(R,M))||L.push(R);return L}},2488:a=>{a.exports=function(s,u){for(var c=-1,f=u.length,d=s.length;++c<f;)s[d+c]=u[c];return s}},2908:a=>{a.exports=function(s,u){for(var c=-1,f=s==null?0:s.length;++c<f;)if(u(s[c],c,s))return!0;return!1}},8470:(a,s,u)=>{var c=u(7813);a.exports=function(f,d){for(var p=f.length;p--;)if(c(f[p][0],d))return p;return-1}},8866:(a,s,u)=>{var c=u(2488),f=u(1469);a.exports=function(d,p,y){var h=p(d);return f(d)?h:c(h,y(d))}},4239:(a,s,u)=>{var c=u(2705),f=u(9607),d=u(2333),p=c?c.toStringTag:void 0;a.exports=function(y){return y==null?y===void 0?"[object Undefined]":"[object Null]":p&&p in Object(y)?f(y):d(y)}},9454:(a,s,u)=>{var c=u(4239),f=u(7005);a.exports=function(d){return f(d)&&c(d)=="[object Arguments]"}},939:(a,s,u)=>{var c=u(2492),f=u(7005);a.exports=function d(p,y,h,k,m){return p===y||(p==null||y==null||!f(p)&&!f(y)?p!=p&&y!=y:c(p,y,h,k,d,m))}},2492:(a,s,u)=>{var c=u(6384),f=u(7114),d=u(8351),p=u(6096),y=u(4160),h=u(1469),k=u(4144),m=u(6719),g="[object Arguments]",v="[object Array]",E="[object Object]",N=Object.prototype.hasOwnProperty;a.exports=function(_,j,L,M,R,F){var Y=h(_),Q=h(j),te=Y?v:y(_),Z=Q?v:y(j),Ce=(te=te==g?E:te)==E,De=(Z=Z==g?E:Z)==E,I=te==Z;if(I&&k(_)){if(!k(j))return!1;Y=!0,Ce=!1}if(I&&!Ce)return F||(F=new c),Y||m(_)?f(_,j,L,M,R,F):d(_,j,te,L,M,R,F);if(!(1&L)){var V=Ce&&N.call(_,"__wrapped__"),W=De&&N.call(j,"__wrapped__");if(V||W){var oe=V?_.value():_,ne=W?j.value():j;return F||(F=new c),R(oe,ne,L,M,F)}}return!!I&&(F||(F=new c),p(_,j,L,M,R,F))}},8458:(a,s,u)=>{var c=u(3560),f=u(5346),d=u(3218),p=u(346),y=/^\[object .+?Constructor\]$/,h=Function.prototype,k=Object.prototype,m=h.toString,g=k.hasOwnProperty,v=RegExp("^"+m.call(g).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");a.exports=function(E){return!(!d(E)||f(E))&&(c(E)?v:y).test(p(E))}},8749:(a,s,u)=>{var c=u(4239),f=u(1780),d=u(7005),p={};p["[object Float32Array]"]=p["[object Float64Array]"]=p["[object Int8Array]"]=p["[object Int16Array]"]=p["[object Int32Array]"]=p["[object Uint8Array]"]=p["[object Uint8ClampedArray]"]=p["[object Uint16Array]"]=p["[object Uint32Array]"]=!0,p["[object Arguments]"]=p["[object Array]"]=p["[object ArrayBuffer]"]=p["[object Boolean]"]=p["[object DataView]"]=p["[object Date]"]=p["[object Error]"]=p["[object Function]"]=p["[object Map]"]=p["[object Number]"]=p["[object Object]"]=p["[object RegExp]"]=p["[object Set]"]=p["[object String]"]=p["[object WeakMap]"]=!1,a.exports=function(y){return d(y)&&f(y.length)&&!!p[c(y)]}},280:(a,s,u)=>{var c=u(5726),f=u(6916),d=Object.prototype.hasOwnProperty;a.exports=function(p){if(!c(p))return f(p);var y=[];for(var h in Object(p))d.call(p,h)&&h!="constructor"&&y.push(h);return y}},2545:a=>{a.exports=function(s,u){for(var c=-1,f=Array(s);++c<s;)f[c]=u(c);return f}},1717:a=>{a.exports=function(s){return function(u){return s(u)}}},4757:a=>{a.exports=function(s,u){return s.has(u)}},4429:(a,s,u)=>{var c=u(5639)["__core-js_shared__"];a.exports=c},7114:(a,s,u)=>{var c=u(8668),f=u(2908),d=u(4757);a.exports=function(p,y,h,k,m,g){var v=1&h,E=p.length,N=y.length;if(E!=N&&!(v&&N>E))return!1;var _=g.get(p),j=g.get(y);if(_&&j)return _==y&&j==p;var L=-1,M=!0,R=2&h?new c:void 0;for(g.set(p,y),g.set(y,p);++L<E;){var F=p[L],Y=y[L];if(k)var Q=v?k(Y,F,L,y,p,g):k(F,Y,L,p,y,g);if(Q!==void 0){if(Q)continue;M=!1;break}if(R){if(!f(y,function(te,Z){if(!d(R,Z)&&(F===te||m(F,te,h,k,g)))return R.push(Z)})){M=!1;break}}else if(F!==Y&&!m(F,Y,h,k,g)){M=!1;break}}return g.delete(p),g.delete(y),M}},8351:(a,s,u)=>{var c=u(2705),f=u(1149),d=u(7813),p=u(7114),y=u(8776),h=u(1814),k=c?c.prototype:void 0,m=k?k.valueOf:void 0;a.exports=function(g,v,E,N,_,j,L){switch(E){case"[object DataView]":if(g.byteLength!=v.byteLength||g.byteOffset!=v.byteOffset)return!1;g=g.buffer,v=v.buffer;case"[object ArrayBuffer]":return!(g.byteLength!=v.byteLength||!j(new f(g),new f(v)));case"[object Boolean]":case"[object Date]":case"[object Number]":return d(+g,+v);case"[object Error]":return g.name==v.name&&g.message==v.message;case"[object RegExp]":case"[object String]":return g==v+"";case"[object Map]":var M=y;case"[object Set]":var R=1&N;if(M||(M=h),g.size!=v.size&&!R)return!1;var F=L.get(g);if(F)return F==v;N|=2,L.set(g,v);var Y=p(M(g),M(v),N,_,j,L);return L.delete(g),Y;case"[object Symbol]":if(m)return m.call(g)==m.call(v)}return!1}},6096:(a,s,u)=>{var c=u(8234),f=Object.prototype.hasOwnProperty;a.exports=function(d,p,y,h,k,m){var g=1&y,v=c(d),E=v.length;if(E!=c(p).length&&!g)return!1;for(var N=E;N--;){var _=v[N];if(!(g?_ in p:f.call(p,_)))return!1}var j=m.get(d),L=m.get(p);if(j&&L)return j==p&&L==d;var M=!0;m.set(d,p),m.set(p,d);for(var R=g;++N<E;){var F=d[_=v[N]],Y=p[_];if(h)var Q=g?h(Y,F,_,p,d,m):h(F,Y,_,d,p,m);if(!(Q===void 0?F===Y||k(F,Y,y,h,m):Q)){M=!1;break}R||(R=_=="constructor")}if(M&&!R){var te=d.constructor,Z=p.constructor;te==Z||!("constructor"in d)||!("constructor"in p)||typeof te=="function"&&te instanceof te&&typeof Z=="function"&&Z instanceof Z||(M=!1)}return m.delete(d),m.delete(p),M}},1957:(a,s,u)=>{var c=typeof u.g=="object"&&u.g&&u.g.Object===Object&&u.g;a.exports=c},8234:(a,s,u)=>{var c=u(8866),f=u(9551),d=u(3674);a.exports=function(p){return c(p,d,f)}},5050:(a,s,u)=>{var c=u(7019);a.exports=function(f,d){var p=f.__data__;return c(d)?p[typeof d=="string"?"string":"hash"]:p.map}},852:(a,s,u)=>{var c=u(8458),f=u(7801);a.exports=function(d,p){var y=f(d,p);return c(y)?y:void 0}},9607:(a,s,u)=>{var c=u(2705),f=Object.prototype,d=f.hasOwnProperty,p=f.toString,y=c?c.toStringTag:void 0;a.exports=function(h){var k=d.call(h,y),m=h[y];try{h[y]=void 0;var g=!0}catch{}var v=p.call(h);return g&&(k?h[y]=m:delete h[y]),v}},9551:(a,s,u)=>{var c=u(4963),f=u(479),d=Object.prototype.propertyIsEnumerable,p=Object.getOwnPropertySymbols,y=p?function(h){return h==null?[]:(h=Object(h),c(p(h),function(k){return d.call(h,k)}))}:f;a.exports=y},4160:(a,s,u)=>{var c=u(8552),f=u(7071),d=u(3818),p=u(8525),y=u(577),h=u(4239),k=u(346),m="[object Map]",g="[object Promise]",v="[object Set]",E="[object WeakMap]",N="[object DataView]",_=k(c),j=k(f),L=k(d),M=k(p),R=k(y),F=h;(c&&F(new c(new ArrayBuffer(1)))!=N||f&&F(new f)!=m||d&&F(d.resolve())!=g||p&&F(new p)!=v||y&&F(new y)!=E)&&(F=function(Y){var Q=h(Y),te=Q=="[object Object]"?Y.constructor:void 0,Z=te?k(te):"";if(Z)switch(Z){case _:return N;case j:return m;case L:return g;case M:return v;case R:return E}return Q}),a.exports=F},7801:a=>{a.exports=function(s,u){return s==null?void 0:s[u]}},1789:(a,s,u)=>{var c=u(4536);a.exports=function(){this.__data__=c?c(null):{},this.size=0}},401:a=>{a.exports=function(s){var u=this.has(s)&&delete this.__data__[s];return this.size-=u?1:0,u}},7667:(a,s,u)=>{var c=u(4536),f=Object.prototype.hasOwnProperty;a.exports=function(d){var p=this.__data__;if(c){var y=p[d];return y==="__lodash_hash_undefined__"?void 0:y}return f.call(p,d)?p[d]:void 0}},1327:(a,s,u)=>{var c=u(4536),f=Object.prototype.hasOwnProperty;a.exports=function(d){var p=this.__data__;return c?p[d]!==void 0:f.call(p,d)}},1866:(a,s,u)=>{var c=u(4536);a.exports=function(f,d){var p=this.__data__;return this.size+=this.has(f)?0:1,p[f]=c&&d===void 0?"__lodash_hash_undefined__":d,this}},5776:a=>{var s=/^(?:0|[1-9]\d*)$/;a.exports=function(u,c){var f=typeof u;return!!(c=c??9007199254740991)&&(f=="number"||f!="symbol"&&s.test(u))&&u>-1&&u%1==0&&u<c}},7019:a=>{a.exports=function(s){var u=typeof s;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?s!=="__proto__":s===null}},5346:(a,s,u)=>{var c,f=u(4429),d=(c=/[^.]+$/.exec(f&&f.keys&&f.keys.IE_PROTO||""))?"Symbol(src)_1."+c:"";a.exports=function(p){return!!d&&d in p}},5726:a=>{var s=Object.prototype;a.exports=function(u){var c=u&&u.constructor;return u===(typeof c=="function"&&c.prototype||s)}},7040:a=>{a.exports=function(){this.__data__=[],this.size=0}},4125:(a,s,u)=>{var c=u(8470),f=Array.prototype.splice;a.exports=function(d){var p=this.__data__,y=c(p,d);return!(y<0||(y==p.length-1?p.pop():f.call(p,y,1),--this.size,0))}},2117:(a,s,u)=>{var c=u(8470);a.exports=function(f){var d=this.__data__,p=c(d,f);return p<0?void 0:d[p][1]}},7518:(a,s,u)=>{var c=u(8470);a.exports=function(f){return c(this.__data__,f)>-1}},4705:(a,s,u)=>{var c=u(8470);a.exports=function(f,d){var p=this.__data__,y=c(p,f);return y<0?(++this.size,p.push([f,d])):p[y][1]=d,this}},4785:(a,s,u)=>{var c=u(1989),f=u(8407),d=u(7071);a.exports=function(){this.size=0,this.__data__={hash:new c,map:new(d||f),string:new c}}},1285:(a,s,u)=>{var c=u(5050);a.exports=function(f){var d=c(this,f).delete(f);return this.size-=d?1:0,d}},6e3:(a,s,u)=>{var c=u(5050);a.exports=function(f){return c(this,f).get(f)}},9916:(a,s,u)=>{var c=u(5050);a.exports=function(f){return c(this,f).has(f)}},5265:(a,s,u)=>{var c=u(5050);a.exports=function(f,d){var p=c(this,f),y=p.size;return p.set(f,d),this.size+=p.size==y?0:1,this}},8776:a=>{a.exports=function(s){var u=-1,c=Array(s.size);return s.forEach(function(f,d){c[++u]=[d,f]}),c}},4536:(a,s,u)=>{var c=u(852)(Object,"create");a.exports=c},6916:(a,s,u)=>{var c=u(5569)(Object.keys,Object);a.exports=c},1167:(a,s,u)=>{a=u.nmd(a);var c=u(1957),f=s&&!s.nodeType&&s,d=f&&a&&!a.nodeType&&a,p=d&&d.exports===f&&c.process,y=function(){try{return d&&d.require&&d.require("util").types||p&&p.binding&&p.binding("util")}catch{}}();a.exports=y},2333:a=>{var s=Object.prototype.toString;a.exports=function(u){return s.call(u)}},5569:a=>{a.exports=function(s,u){return function(c){return s(u(c))}}},5639:(a,s,u)=>{var c=u(1957),f=typeof self=="object"&&self&&self.Object===Object&&self,d=c||f||Function("return this")();a.exports=d},619:a=>{a.exports=function(s){return this.__data__.set(s,"__lodash_hash_undefined__"),this}},2385:a=>{a.exports=function(s){return this.__data__.has(s)}},1814:a=>{a.exports=function(s){var u=-1,c=Array(s.size);return s.forEach(function(f){c[++u]=f}),c}},7465:(a,s,u)=>{var c=u(8407);a.exports=function(){this.__data__=new c,this.size=0}},3779:a=>{a.exports=function(s){var u=this.__data__,c=u.delete(s);return this.size=u.size,c}},7599:a=>{a.exports=function(s){return this.__data__.get(s)}},4758:a=>{a.exports=function(s){return this.__data__.has(s)}},4309:(a,s,u)=>{var c=u(8407),f=u(7071),d=u(3369);a.exports=function(p,y){var h=this.__data__;if(h instanceof c){var k=h.__data__;if(!f||k.length<199)return k.push([p,y]),this.size=++h.size,this;h=this.__data__=new d(k)}return h.set(p,y),this.size=h.size,this}},346:a=>{var s=Function.prototype.toString;a.exports=function(u){if(u!=null){try{return s.call(u)}catch{}try{return u+""}catch{}}return""}},7813:a=>{a.exports=function(s,u){return s===u||s!=s&&u!=u}},5694:(a,s,u)=>{var c=u(9454),f=u(7005),d=Object.prototype,p=d.hasOwnProperty,y=d.propertyIsEnumerable,h=c(function(){return arguments}())?c:function(k){return f(k)&&p.call(k,"callee")&&!y.call(k,"callee")};a.exports=h},1469:a=>{var s=Array.isArray;a.exports=s},8612:(a,s,u)=>{var c=u(3560),f=u(1780);a.exports=function(d){return d!=null&&f(d.length)&&!c(d)}},4144:(a,s,u)=>{a=u.nmd(a);var c=u(5639),f=u(5062),d=s&&!s.nodeType&&s,p=d&&a&&!a.nodeType&&a,y=p&&p.exports===d?c.Buffer:void 0,h=(y?y.isBuffer:void 0)||f;a.exports=h},8446:(a,s,u)=>{var c=u(939);a.exports=function(f,d){return c(f,d)}},3560:(a,s,u)=>{var c=u(4239),f=u(3218);a.exports=function(d){if(!f(d))return!1;var p=c(d);return p=="[object Function]"||p=="[object GeneratorFunction]"||p=="[object AsyncFunction]"||p=="[object Proxy]"}},1780:a=>{a.exports=function(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=9007199254740991}},3218:a=>{a.exports=function(s){var u=typeof s;return s!=null&&(u=="object"||u=="function")}},7005:a=>{a.exports=function(s){return s!=null&&typeof s=="object"}},6719:(a,s,u)=>{var c=u(8749),f=u(1717),d=u(1167),p=d&&d.isTypedArray,y=p?f(p):c;a.exports=y},3674:(a,s,u)=>{var c=u(4636),f=u(280),d=u(8612);a.exports=function(p){return d(p)?c(p):f(p)}},8306:(a,s,u)=>{var c=u(3369);function f(d,p){if(typeof d!="function"||p!=null&&typeof p!="function")throw new TypeError("Expected a function");var y=function(){var h=arguments,k=p?p.apply(this,h):h[0],m=y.cache;if(m.has(k))return m.get(k);var g=d.apply(this,h);return y.cache=m.set(k,g)||m,g};return y.cache=new(f.Cache||c),y}f.Cache=c,a.exports=f},479:a=>{a.exports=function(){return[]}},5062:a=>{a.exports=function(){return!1}},2703:(a,s,u)=>{var c=u(414);function f(){}function d(){}d.resetWarningCache=f,a.exports=function(){function p(k,m,g,v,E,N){if(N!==c){var _=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw _.name="Invariant Violation",_}}function y(){return p}p.isRequired=p;var h={array:p,bigint:p,bool:p,func:p,number:p,object:p,string:p,symbol:p,any:p,arrayOf:y,element:p,elementType:p,instanceOf:y,node:p,objectOf:y,oneOf:y,oneOfType:y,shape:y,exact:y,checkPropTypes:d,resetWarningCache:f};return h.PropTypes=h,h}},5697:(a,s,u)=>{a.exports=u(2703)()},414:a=>{a.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9787:a=>{a.exports=n}},o={};function i(a){var s=o[a];if(s!==void 0)return s.exports;var u=o[a]={id:a,loaded:!1,exports:{}};return r[a](u,u.exports,i),u.loaded=!0,u.exports}i.n=a=>{var s=a&&a.__esModule?()=>a.default:()=>a;return i.d(s,{a:s}),s},i.d=(a,s)=>{for(var u in s)i.o(s,u)&&!i.o(a,u)&&Object.defineProperty(a,u,{enumerable:!0,get:s[u]})},i.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),i.o=(a,s)=>Object.prototype.hasOwnProperty.call(a,s),i.r=a=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},i.nmd=a=>(a.paths=[],a.children||(a.children=[]),a);var l={};return(()=>{i.r(l),i.d(l,{default:()=>Y0,expandNodesToLevel:()=>rf});var a=i(4184),s=i.n(a),u=i(8446),c=i.n(u),f=i(8306),d=i.n(f);let p=(C=21)=>crypto.getRandomValues(new Uint8Array(C)).reduce((x,O)=>x+((O&=63)<36?O.toString(36):O<62?(O-26).toString(36).toUpperCase():O>62?"-":"_"),"");var y=i(5697),h=i.n(y),k=i(9787),m=i.n(k);function g(C){return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},g(C)}var v=["children","title"];function E(){return E=Object.assign?Object.assign.bind():function(C){for(var x=1;x<arguments.length;x++){var O=arguments[x];for(var S in O)Object.prototype.hasOwnProperty.call(O,S)&&(C[S]=O[S])}return C},E.apply(this,arguments)}function N(C,x){if(!(C instanceof x))throw new TypeError("Cannot call a class as a function")}function _(C,x){for(var O=0;O<x.length;O++){var S=x[O];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(C,S.key,S)}}function j(C,x){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(O,S){return O.__proto__=S,O},j(C,x)}function L(C,x){if(x&&(g(x)==="object"||typeof x=="function"))return x;if(x!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(O){if(O===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O}(C)}function M(C){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(x){return x.__proto__||Object.getPrototypeOf(x)},M(C)}function R(C,x,O){return x in C?Object.defineProperty(C,x,{value:O,enumerable:!0,configurable:!0,writable:!0}):C[x]=O,C}var F=function(C){(function(T,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(b&&b.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),Object.defineProperty(T,"prototype",{writable:!1}),b&&j(T,b)})(K,C);var x,O,S,H,q=(S=K,H=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var T,b=M(S);if(H){var P=M(this).constructor;T=Reflect.construct(b,arguments,P)}else T=b.apply(this,arguments);return L(this,T)});function K(){return N(this,K),q.apply(this,arguments)}return x=K,(O=[{key:"render",value:function(){var T=this.props,b=T.children,P=T.title,A=function(U,G){if(U==null)return{};var Ee,_e,Xe=function(Wn,Sa){if(Wn==null)return{};var xr,wr,ki={},io=Object.keys(Wn);for(wr=0;wr<io.length;wr++)xr=io[wr],Sa.indexOf(xr)>=0||(ki[xr]=Wn[xr]);return ki}(U,G);if(Object.getOwnPropertySymbols){var Wt=Object.getOwnPropertySymbols(U);for(_e=0;_e<Wt.length;_e++)Ee=Wt[_e],G.indexOf(Ee)>=0||Object.prototype.propertyIsEnumerable.call(U,Ee)&&(Xe[Ee]=U[Ee])}return Xe}(T,v);return m().createElement("button",E({"aria-label":P,title:P,type:"button"},A),b)}}])&&_(x.prototype,O),Object.defineProperty(x,"prototype",{writable:!1}),K}(m().PureComponent);R(F,"propTypes",{children:h().node.isRequired,title:h().string}),R(F,"defaultProps",{title:null});const Y=F,Q={ALL:"all",PARENT:"parent",LEAF:"leaf"};function te(C){this.message=C,this.stack=Error().stack}te.prototype=Object.create(Error.prototype),te.prototype.name="CheckboxTreeError";const Z=te;function Ce(C,x){var O=Object.keys(C);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(C);x&&(S=S.filter(function(H){return Object.getOwnPropertyDescriptor(C,H).enumerable})),O.push.apply(O,S)}return O}function De(C,x,O){return x in C?Object.defineProperty(C,x,{value:O,enumerable:!0,configurable:!0,writable:!0}):C[x]=O,C}function I(C,x){if(!(C instanceof x))throw new TypeError("Cannot call a class as a function")}function V(C,x){for(var O=0;O<x.length;O++){var S=x[O];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(C,S.key,S)}}var W=Q;const oe=function(){function C(S){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};I(this,C),this.props=S,this.flatNodes=H}var x,O;return x=C,O=[{key:"setProps",value:function(S){this.props=S}},{key:"clone",value:function(){var S=this,H={};return Object.keys(this.flatNodes).forEach(function(q){var K=S.flatNodes[q];H[q]=function(T){for(var b=1;b<arguments.length;b++){var P=arguments[b]!=null?arguments[b]:{};b%2?Ce(Object(P),!0).forEach(function(A){De(T,A,P[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(T,Object.getOwnPropertyDescriptors(P)):Ce(Object(P)).forEach(function(A){Object.defineProperty(T,A,Object.getOwnPropertyDescriptor(P,A))})}return T}({},K)}),new C(this.props,H)}},{key:"getNode",value:function(S){return this.flatNodes[S]}},{key:"reset",value:function(){this.flatNodes={}}},{key:"flattenNodes",value:function(S){var H=this,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(Array.isArray(S)&&S.length!==0){var T=this.props,b=T.disabled,P=T.noCascade;S.forEach(function(A,U){var G=H.nodeHasChildren(A);if(H.flatNodes[A.value]!==void 0)throw new Z("Duplicate value '".concat(A.value,"' detected. All node values must be unique."));H.flatNodes[A.value]={label:A.label,value:A.value,children:A.children,parent:q,isChild:q.value!==void 0,isParent:G,isLeaf:!G,showCheckbox:A.showCheckbox===void 0||A.showCheckbox,disabled:H.getDisabledState(A,q,b,P),treeDepth:K,index:U},H.flattenNodes(A.children,A,K+1)})}}},{key:"nodeHasChildren",value:function(S){return Array.isArray(S.children)}},{key:"getDisabledState",value:function(S,H,q,K){return!!q||!(K||!H.disabled)||!!S.disabled}},{key:"deserializeLists",value:function(S){var H=this,q=["checked","expanded"];Object.keys(this.flatNodes).forEach(function(K){q.forEach(function(T){H.flatNodes[K][T]=!1})}),q.forEach(function(K){S[K].forEach(function(T){H.flatNodes[T]!==void 0&&(H.flatNodes[T][K]=!0)})})}},{key:"serializeList",value:function(S){var H=this,q=[];return Object.keys(this.flatNodes).forEach(function(K){H.flatNodes[K][S]&&q.push(K)}),q}},{key:"expandAllNodes",value:function(S){var H=this;return Object.keys(this.flatNodes).forEach(function(q){H.flatNodes[q].isParent&&(H.flatNodes[q].expanded=S)}),this}},{key:"toggleChecked",value:function(S,H,q,K){var T=this,b=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],P=this.flatNodes[S.value],A=[W.PARENT,W.ALL].indexOf(q)>-1,U=[W.LEAF,W.ALL].indexOf(q)>-1;if(P.isLeaf||K){if(S.disabled)return this;this.toggleNode(S.value,"checked",H)}else(A||P.children.length===0)&&this.toggleNode(S.value,"checked",H),U&&P.children.forEach(function(G){T.toggleChecked(G,H,q,K,!1)});return b&&!K&&P.isChild&&A&&this.toggleParentStatus(P.parent,q),this}},{key:"toggleParentStatus",value:function(S,H){var q=this.flatNodes[S.value];q.isChild?(H===W.ALL&&this.toggleNode(S.value,"checked",this.isEveryChildChecked(q)),this.toggleParentStatus(q.parent,H)):this.toggleNode(S.value,"checked",this.isEveryChildChecked(q))}},{key:"isEveryChildChecked",value:function(S){var H=this;return S.children.every(function(q){return H.getNode(q.value).checked})}},{key:"toggleNode",value:function(S,H,q){return this.flatNodes[S][H]=q,this}}],O&&V(x.prototype,O),Object.defineProperty(x,"prototype",{writable:!1}),C}();function ne(C){return ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},ne(C)}function ft(){return ft=Object.assign?Object.assign.bind():function(C){for(var x=1;x<arguments.length;x++){var O=arguments[x];for(var S in O)Object.prototype.hasOwnProperty.call(O,S)&&(C[S]=O[S])}return C},ft.apply(this,arguments)}function ke(C,x){var O=Object.keys(C);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(C);x&&(S=S.filter(function(H){return Object.getOwnPropertyDescriptor(C,H).enumerable})),O.push.apply(O,S)}return O}function Dn(C,x){if(!(C instanceof x))throw new TypeError("Cannot call a class as a function")}function St(C,x){for(var O=0;O<x.length;O++){var S=x[O];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(C,S.key,S)}}function $t(C,x){return $t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(O,S){return O.__proto__=S,O},$t(C,x)}function ma(C,x){if(x&&(ne(x)==="object"||typeof x=="function"))return x;if(x!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(O){if(O===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O}(C)}function Un(C){return Un=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(x){return x.__proto__||Object.getPrototypeOf(x)},Un(C)}function oo(C,x,O){return x in C?Object.defineProperty(C,x,{value:O,enumerable:!0,configurable:!0,writable:!0}):C[x]=O,C}var ue=function(C){(function(T,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(b&&b.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),Object.defineProperty(T,"prototype",{writable:!1}),b&&$t(T,b)})(K,C);var x,O,S,H,q=(S=K,H=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var T,b=Un(S);if(H){var P=Un(this).constructor;T=Reflect.construct(b,arguments,P)}else T=b.apply(this,arguments);return ma(this,T)});function K(){return Dn(this,K),q.apply(this,arguments)}return x=K,O=[{key:"componentDidMount",value:function(){this.updateDeterminateProperty()}},{key:"componentDidUpdate",value:function(){this.updateDeterminateProperty()}},{key:"updateDeterminateProperty",value:function(){var T=this.props.indeterminate;this.checkbox.indeterminate=T}},{key:"render",value:function(){var T=this,b=function(P){for(var A=1;A<arguments.length;A++){var U=arguments[A]!=null?arguments[A]:{};A%2?ke(Object(U),!0).forEach(function(G){oo(P,G,U[G])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(U)):ke(Object(U)).forEach(function(G){Object.defineProperty(P,G,Object.getOwnPropertyDescriptor(U,G))})}return P}({},this.props);return delete b.indeterminate,m().createElement("input",ft({},b,{ref:function(P){T.checkbox=P},type:"checkbox"}))}}],O&&St(x.prototype,O),Object.defineProperty(x,"prototype",{writable:!1}),K}(m().PureComponent);oo(ue,"propTypes",{indeterminate:h().bool}),oo(ue,"defaultProps",{indeterminate:!1});const Ct=ue,Ue=h().shape({check:h().node,uncheck:h().node,halfCheck:h().node,expandClose:h().node,expandOpen:h().node,expandAll:h().node,collapseAll:h().node,parentClose:h().node,parentOpen:h().node,leaf:h().node}),Bn=h().shape({collapseAll:h().string.isRequired,expandAll:h().string.isRequired,toggle:h().string.isRequired});function ga(C){return ga=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},ga(C)}function U0(C,x){for(var O=0;O<x.length;O++){var S=x[O];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(C,S.key,S)}}function ya(C,x){return ya=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(O,S){return O.__proto__=S,O},ya(C,x)}function B0(C,x){if(x&&(ga(x)==="object"||typeof x=="function"))return x;if(x!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yr(C)}function yr(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}function xi(C){return xi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(x){return x.__proto__||Object.getPrototypeOf(x)},xi(C)}function Gc(C,x,O){return x in C?Object.defineProperty(C,x,{value:O,enumerable:!0,configurable:!0,writable:!0}):C[x]=O,C}var va=function(C){(function(T,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(b&&b.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),Object.defineProperty(T,"prototype",{writable:!1}),b&&ya(T,b)})(K,C);var x,O,S,H,q=(S=K,H=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var T,b=xi(S);if(H){var P=xi(this).constructor;T=Reflect.construct(b,arguments,P)}else T=b.apply(this,arguments);return B0(this,T)});function K(T){var b;return function(P,A){if(!(P instanceof A))throw new TypeError("Cannot call a class as a function")}(this,K),(b=q.call(this,T)).onCheck=b.onCheck.bind(yr(b)),b.onCheckboxKeyPress=b.onCheckboxKeyPress.bind(yr(b)),b.onCheckboxKeyUp=b.onCheckboxKeyUp.bind(yr(b)),b.onClick=b.onClick.bind(yr(b)),b.onExpand=b.onExpand.bind(yr(b)),b}return x=K,(O=[{key:"onCheck",value:function(){var T=this.props,b=T.value;(0,T.onCheck)({value:b,checked:this.getCheckState({toggle:!0})})}},{key:"onCheckboxKeyPress",value:function(T){T.which===32&&T.preventDefault()}},{key:"onCheckboxKeyUp",value:function(T){var b=T.keyCode;[13,32].includes(b)&&this.onCheck()}},{key:"onClick",value:function(){var T=this.props,b=T.expandOnClick,P=T.isParent,A=T.value,U=T.onClick;P&&b&&this.onExpand(),U({value:A,checked:this.getCheckState({toggle:!1})})}},{key:"onExpand",value:function(){var T=this.props,b=T.expanded,P=T.value;(0,T.onExpand)({value:P,expanded:!b})}},{key:"getCheckState",value:function(T){var b=T.toggle,P=this.props,A=P.checked,U=P.optimisticToggle;return!(A!==0||!b)||A===1&&!b||A===2&&U}},{key:"renderCollapseButton",value:function(){var T=this.props,b=T.expandDisabled,P=T.isLeaf,A=T.lang;return P?m().createElement("span",{className:"rct-collapse"},m().createElement("span",{className:"rct-icon"})):m().createElement(Y,{className:"rct-collapse rct-collapse-btn",disabled:b,title:A.toggle,onClick:this.onExpand},this.renderCollapseIcon())}},{key:"renderCollapseIcon",value:function(){var T=this.props,b=T.expanded,P=T.icons,A=P.expandClose,U=P.expandOpen;return b?U:A}},{key:"renderCheckboxIcon",value:function(){var T=this.props,b=T.checked,P=T.icons,A=P.uncheck,U=P.check,G=P.halfCheck;return b===0?A:b===1?U:G}},{key:"renderNodeIcon",value:function(){var T=this.props,b=T.expanded,P=T.icon,A=T.icons,U=A.leaf,G=A.parentClose,Ee=A.parentOpen,_e=T.isLeaf;return P!==null?P:_e?U:b?Ee:G}},{key:"renderBareLabel",value:function(T){var b=this.props,P=b.onClick,A=b.title,U=P!==null;return m().createElement("span",{className:"rct-bare-label",title:A},U?m().createElement("span",{className:"rct-node-clickable",onClick:this.onClick,onKeyPress:this.onClick,role:"button",tabIndex:0},T):T)}},{key:"renderCheckboxLabel",value:function(T){var b=this.props,P=b.checked,A=b.disabled,U=b.title,G=b.treeId,Ee=b.value,_e=b.onClick!==null,Xe="".concat(G,"-").concat(String(Ee).split(" ").join("_")),Wt=[m().createElement("label",{key:0,htmlFor:Xe,title:U},m().createElement(Ct,{checked:P===1,disabled:A,id:Xe,indeterminate:P===2,onClick:this.onCheck,onChange:function(){}}),m().createElement("span",{"aria-checked":P===1,"aria-disabled":A,className:"rct-checkbox",role:"checkbox",tabIndex:0,onKeyPress:this.onCheckboxKeyPress,onKeyUp:this.onCheckboxKeyUp},this.renderCheckboxIcon()),_e?null:T)];return _e&&Wt.push(m().createElement("span",{key:1,className:"rct-node-clickable",onClick:this.onClick,onKeyPress:this.onClick,role:"link",tabIndex:0},T)),Wt}},{key:"renderLabel",value:function(){var T=this.props,b=T.label,P=T.showCheckbox,A=[T.showNodeIcon?m().createElement("span",{key:0,className:"rct-node-icon"},this.renderNodeIcon()):null,m().createElement("span",{key:1,className:"rct-title"},b)];return P?this.renderCheckboxLabel(A):this.renderBareLabel(A)}},{key:"renderChildren",value:function(){return this.props.expanded?this.props.children:null}},{key:"render",value:function(){var T=this.props,b=T.className,P=T.disabled,A=T.expanded,U=T.isLeaf,G=s()({"rct-node":!0,"rct-node-leaf":U,"rct-node-parent":!U,"rct-node-expanded":!U&&A,"rct-node-collapsed":!U&&!A,"rct-disabled":P},b);return m().createElement("li",{className:G},m().createElement("span",{className:"rct-text"},this.renderCollapseButton(),this.renderLabel()),this.renderChildren())}}])&&U0(x.prototype,O),Object.defineProperty(x,"prototype",{writable:!1}),K}(m().PureComponent);Gc(va,"propTypes",{checked:h().number.isRequired,disabled:h().bool.isRequired,expandDisabled:h().bool.isRequired,expanded:h().bool.isRequired,icons:Ue.isRequired,isLeaf:h().bool.isRequired,isParent:h().bool.isRequired,label:h().node.isRequired,lang:Bn.isRequired,optimisticToggle:h().bool.isRequired,showNodeIcon:h().bool.isRequired,treeId:h().string.isRequired,value:h().oneOfType([h().string,h().number]).isRequired,onCheck:h().func.isRequired,onExpand:h().func.isRequired,children:h().node,className:h().string,expandOnClick:h().bool,icon:h().node,showCheckbox:h().bool,title:h().string,onClick:h().func}),Gc(va,"defaultProps",{children:null,className:null,expandOnClick:!1,icon:null,showCheckbox:!0,title:null,onClick:function(){}});const H0=va,Xc=h().oneOfType([h().arrayOf(h().string),h().arrayOf(h().number)]);function Zc(C,x){var O=Object.keys(C);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(C);x&&(S=S.filter(function(H){return Object.getOwnPropertyDescriptor(C,H).enumerable})),O.push.apply(O,S)}return O}function Jc(C){for(var x=1;x<arguments.length;x++){var O=arguments[x]!=null?arguments[x]:{};x%2?Zc(Object(O),!0).forEach(function(S){W0(C,S,O[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(O)):Zc(Object(O)).forEach(function(S){Object.defineProperty(C,S,Object.getOwnPropertyDescriptor(O,S))})}return C}function W0(C,x,O){return x in C?Object.defineProperty(C,x,{value:O,enumerable:!0,configurable:!0,writable:!0}):C[x]=O,C}var xa={label:h().node.isRequired,value:h().oneOfType([h().string,h().number]).isRequired,disabled:h().bool,icon:h().node,showCheckbox:h().bool,title:h().string};const V0=h().oneOfType([h().shape(xa),h().shape(Jc(Jc({},xa),{},{children:h().arrayOf(xa).isRequired}))]);function wa(C){return wa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},wa(C)}function ef(C,x){var O=Object.keys(C);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(C);x&&(S=S.filter(function(H){return Object.getOwnPropertyDescriptor(C,H).enumerable})),O.push.apply(O,S)}return O}function dt(C){for(var x=1;x<arguments.length;x++){var O=arguments[x]!=null?arguments[x]:{};x%2?ef(Object(O),!0).forEach(function(S){vr(C,S,O[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(O)):ef(Object(O)).forEach(function(S){Object.defineProperty(C,S,Object.getOwnPropertyDescriptor(O,S))})}return C}function tf(C,x){for(var O=0;O<x.length;O++){var S=x[O];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(C,S.key,S)}}function ka(C,x){return ka=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(O,S){return O.__proto__=S,O},ka(C,x)}function Q0(C,x){if(x&&(wa(x)==="object"||typeof x=="function"))return x;if(x!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hn(C)}function Hn(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}function wi(C){return wi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(x){return x.__proto__||Object.getPrototypeOf(x)},wi(C)}function vr(C,x,O){return x in C?Object.defineProperty(C,x,{value:O,enumerable:!0,configurable:!0,writable:!0}):C[x]=O,C}var ba=function(C){(function(b,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(P&&P.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),Object.defineProperty(b,"prototype",{writable:!1}),P&&ka(b,P)})(T,C);var x,O,S,H,q,K=(H=T,q=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var b,P=wi(H);if(q){var A=wi(this).constructor;b=Reflect.construct(P,arguments,A)}else b=P.apply(this,arguments);return Q0(this,b)});function T(b){var P;(function(U,G){if(!(U instanceof G))throw new TypeError("Cannot call a class as a function")})(this,T),P=K.call(this,b);var A=new oe(b);return A.flattenNodes(b.nodes),A.deserializeLists({checked:b.checked,expanded:b.expanded}),P.state={id:b.id||"rct-".concat(p()),model:A,prevProps:b},P.onCheck=P.onCheck.bind(Hn(P)),P.onExpand=P.onExpand.bind(Hn(P)),P.onNodeClick=P.onNodeClick.bind(Hn(P)),P.onExpandAll=P.onExpandAll.bind(Hn(P)),P.onCollapseAll=P.onCollapseAll.bind(Hn(P)),P.combineMemorized=d()(function(U,G){return dt(dt({},U),G)}).bind(Hn(P)),P}return x=T,O=[{key:"onCheck",value:function(b){var P=this.props,A=P.checkModel,U=P.noCascade,G=P.onCheck,Ee=this.state.model.clone(),_e=Ee.getNode(b.value);Ee.toggleChecked(b,b.checked,A,U),G(Ee.serializeList("checked"),dt(dt({},_e),b))}},{key:"onExpand",value:function(b){var P=this.props.onExpand,A=this.state.model.clone(),U=A.getNode(b.value);A.toggleNode(b.value,"expanded",b.expanded),P(A.serializeList("expanded"),dt(dt({},U),b))}},{key:"onNodeClick",value:function(b){(0,this.props.onClick)(dt(dt({},this.state.model.getNode(b.value)),b))}},{key:"onExpandAll",value:function(){this.expandAllNodes()}},{key:"onCollapseAll",value:function(){this.expandAllNodes(!1)}},{key:"expandAllNodes",value:function(){var b=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],P=this.props.onExpand;P(this.state.model.clone().expandAllNodes(b).serializeList("expanded"))}},{key:"determineShallowCheckState",value:function(b,P){var A=this.state.model.getNode(b.value);return A.isLeaf||P||b.children.length===0?A.checked?1:0:this.isEveryChildChecked(b)?1:this.isSomeChildChecked(b)?2:0}},{key:"isEveryChildChecked",value:function(b){var P=this;return b.children.every(function(A){return P.state.model.getNode(A.value).checkState===1})}},{key:"isSomeChildChecked",value:function(b){var P=this;return b.children.some(function(A){return P.state.model.getNode(A.value).checkState>0})}},{key:"renderTreeNodes",value:function(b){var P=this,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=this.props,G=U.expandDisabled,Ee=U.expandOnClick,_e=U.icons,Xe=U.lang,Wt=U.noCascade,Wn=U.onClick,Sa=U.onlyLeafCheckboxes,xr=U.optimisticToggle,wr=U.showNodeTitle,ki=U.showNodeIcon,io=this.state,q0=io.id,of=io.model,K0=T.defaultProps.icons,G0=b.map(function(pt){var X0=pt.value,Vt=of.getNode(pt.value),Z0=Vt.isParent?P.renderTreeNodes(pt.children,pt):null;Vt.checkState=P.determineShallowCheckState(pt,Wt);var J0=Sa?Vt.isLeaf:Vt.showCheckbox;return!A.value||of.getNode(A.value).expanded?m().createElement(H0,{key:X0,checked:Vt.checkState,className:pt.className,disabled:Vt.disabled,expandDisabled:G,expandOnClick:Ee,expanded:Vt.expanded,icon:pt.icon,icons:P.combineMemorized(K0,_e),label:pt.label,lang:Xe,optimisticToggle:xr,isLeaf:Vt.isLeaf,isParent:Vt.isParent,showCheckbox:J0,showNodeIcon:ki,title:wr?pt.title||pt.label:pt.title,treeId:q0,value:pt.value,onCheck:P.onCheck,onClick:Wn&&P.onNodeClick,onExpand:P.onExpand},Z0):null});return m().createElement("ol",null,G0)}},{key:"renderExpandAll",value:function(){var b=this.props,P=b.icons,A=P.expandAll,U=P.collapseAll,G=b.lang;return b.showExpandAll?m().createElement("div",{className:"rct-options"},m().createElement(Y,{className:"rct-option rct-option-expand-all",title:G.expandAll,onClick:this.onExpandAll},A),m().createElement(Y,{className:"rct-option rct-option-collapse-all",title:G.collapseAll,onClick:this.onCollapseAll},U)):null}},{key:"renderHiddenInput",value:function(){var b=this.props,P=b.name,A=b.nameAsArray;return P===void 0?null:A?this.renderArrayHiddenInput():this.renderJoinedHiddenInput()}},{key:"renderArrayHiddenInput",value:function(){var b=this.props,P=b.checked,A=b.name;return P.map(function(U){var G="".concat(A,"[]");return m().createElement("input",{key:U,name:G,type:"hidden",value:U})})}},{key:"renderJoinedHiddenInput",value:function(){var b=this.props,P=b.checked,A=b.name,U=P.join(",");return m().createElement("input",{name:A,type:"hidden",value:U})}},{key:"render",value:function(){var b,P=this.props,A=P.direction,U=P.disabled,G=P.iconsClass,Ee=P.nodes,_e=P.nativeCheckboxes,Xe=this.state.id,Wt=this.renderTreeNodes(Ee),Wn=s()((vr(b={"react-checkbox-tree":!0,"rct-disabled":U},"rct-icons-".concat(G),!0),vr(b,"rct-native-display",_e),vr(b,"rct-direction-rtl",A==="rtl"),b));return m().createElement("div",{className:Wn,id:Xe},this.renderExpandAll(),this.renderHiddenInput(),Wt)}}],S=[{key:"getDerivedStateFromProps",value:function(b,P){var A=P.model,U=P.prevProps,G=b.disabled,Ee=b.id,_e=b.nodes,Xe=dt(dt({},P),{},{prevProps:b});return A.setProps(b),c()(U.nodes,_e)&&U.disabled===G||(A.reset(),A.flattenNodes(_e)),Ee!==null&&(Xe=dt(dt({},Xe),{},{id:Ee})),A.deserializeLists({checked:b.checked,expanded:b.expanded}),Xe}}],O&&tf(x.prototype,O),S&&tf(x,S),Object.defineProperty(x,"prototype",{writable:!1}),T}(m().Component);function nf(C){return function(x){if(Array.isArray(x))return Ea(x)}(C)||function(x){if(typeof Symbol<"u"&&x[Symbol.iterator]!=null||x["@@iterator"]!=null)return Array.from(x)}(C)||function(x,O){if(x){if(typeof x=="string")return Ea(x,O);var S=Object.prototype.toString.call(x).slice(8,-1);return S==="Object"&&x.constructor&&(S=x.constructor.name),S==="Map"||S==="Set"?Array.from(x):S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S)?Ea(x,O):void 0}}(C)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Ea(C,x){(x==null||x>C.length)&&(x=C.length);for(var O=0,S=new Array(x);O<x;O++)S[O]=C[O];return S}function rf(C,x){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(O>x)return[];var S=[];return C.forEach(function(H){H.children&&(S=[].concat(nf(S),[H.value],nf(rf(H.children,x,O+1))))}),S}vr(ba,"propTypes",{nodes:h().arrayOf(V0).isRequired,checkModel:h().oneOf([Q.LEAF,Q.ALL]),checked:Xc,direction:h().string,disabled:h().bool,expandDisabled:h().bool,expandOnClick:h().bool,expanded:Xc,icons:Ue,iconsClass:h().string,id:h().string,lang:Bn,name:h().string,nameAsArray:h().bool,nativeCheckboxes:h().bool,noCascade:h().bool,onlyLeafCheckboxes:h().bool,optimisticToggle:h().bool,showExpandAll:h().bool,showNodeIcon:h().bool,showNodeTitle:h().bool,onCheck:h().func,onClick:h().func,onExpand:h().func}),vr(ba,"defaultProps",{checkModel:Q.LEAF,checked:[],direction:"ltr",disabled:!1,expandDisabled:!1,expandOnClick:!1,expanded:[],icons:{check:m().createElement("span",{className:"rct-icon rct-icon-check"}),uncheck:m().createElement("span",{className:"rct-icon rct-icon-uncheck"}),halfCheck:m().createElement("span",{className:"rct-icon rct-icon-half-check"}),expandClose:m().createElement("span",{className:"rct-icon rct-icon-expand-close"}),expandOpen:m().createElement("span",{className:"rct-icon rct-icon-expand-open"}),expandAll:m().createElement("span",{className:"rct-icon rct-icon-expand-all"}),collapseAll:m().createElement("span",{className:"rct-icon rct-icon-collapse-all"}),parentClose:m().createElement("span",{className:"rct-icon rct-icon-parent-close"}),parentOpen:m().createElement("span",{className:"rct-icon rct-icon-parent-open"}),leaf:m().createElement("span",{className:"rct-icon rct-icon-leaf"})},iconsClass:"fa4",id:null,lang:{collapseAll:"Collapse all",expandAll:"Expand all",toggle:"Toggle"},name:void 0,nameAsArray:!1,nativeCheckboxes:!1,noCascade:!1,onlyLeafCheckboxes:!1,optimisticToggle:!0,showExpandAll:!1,showNodeIcon:!0,showNodeTitle:!1,onCheck:function(){},onClick:null,onExpand:function(){}});const Y0=ba})(),l})())})(Fm);var O2=Fm.exports;const _2=Lu(O2),wd=()=>{};let Lc={},Mm={},Dm=null,Um={mark:wd,measure:wd};try{typeof window<"u"&&(Lc=window),typeof document<"u"&&(Mm=document),typeof MutationObserver<"u"&&(Dm=MutationObserver),typeof performance<"u"&&(Um=performance)}catch{}const{userAgent:kd=""}=Lc.navigator||{},An=Lc,pe=Mm,bd=Dm,Ui=Um;An.document;const un=!!pe.documentElement&&!!pe.head&&typeof pe.addEventListener=="function"&&typeof pe.createElement=="function",Bm=~kd.indexOf("MSIE")||~kd.indexOf("Trident/");var ge="classic",Hm="duotone",ot="sharp",it="sharp-duotone",N2=[ge,Hm,ot,it],T2={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds"}},Ed={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},j2=["kit"],L2=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,A2=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,$2={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},R2={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds"}},z2={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds"}},I2={classic:["fas","far","fal","fat"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds"]},F2={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid"}},M2={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds"}},Wm={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid"}},D2=["solid","regular","light","thin","duotone","brands"],Vm=[1,2,3,4,5,6,7,8,9,10],U2=Vm.concat([11,12,13,14,15,16,17,18,19,20]),Co={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},B2=[...Object.keys(I2),...D2,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Co.GROUP,Co.SWAP_OPACITY,Co.PRIMARY,Co.SECONDARY].concat(Vm.map(e=>"".concat(e,"x"))).concat(U2.map(e=>"w-".concat(e))),H2={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},W2={kit:{"fa-kit":"fak"},"kit-duotone":{"fa-kit-duotone":"fakd"}},V2={kit:{fak:"fa-kit"},"kit-duotone":{fakd:"fa-kit-duotone"}},Sd={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}};const on="___FONT_AWESOME___",fu=16,Qm="fa",Ym="svg-inline--fa",ur="data-fa-i2svg",du="data-fa-pseudo-element",Q2="data-fa-pseudo-element-pending",Ac="data-prefix",$c="data-icon",Cd="fontawesome-i2svg",Y2="async",q2=["HTML","HEAD","STYLE","SCRIPT"],qm=(()=>{try{return!0}catch{return!1}})(),Km=[ge,ot,it];function hi(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[ge]}})}const Gm={...Wm};Gm[ge]={...Wm[ge],...Ed.kit,...Ed["kit-duotone"]};const nr=hi(Gm),pu={...M2};pu[ge]={...pu[ge],...Sd.kit,...Sd["kit-duotone"]};const oi=hi(pu),hu={...F2};hu[ge]={...hu[ge],...V2.kit};const rr=hi(hu),mu={...z2};mu[ge]={...mu[ge],...W2.kit};const K2=hi(mu),G2=L2,Xm="fa-layers-text",X2=A2,Z2={...T2};hi(Z2);const J2=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],os=Co,Gr=new Set;Object.keys(oi[ge]).map(Gr.add.bind(Gr));Object.keys(oi[ot]).map(Gr.add.bind(Gr));Object.keys(oi[it]).map(Gr.add.bind(Gr));const ex=[...j2,...B2],zo=An.FontAwesomeConfig||{};function tx(e){var t=pe.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function nx(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}pe&&typeof pe.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,r]=t;const o=nx(tx(n));o!=null&&(zo[r]=o)});const Zm={styleDefault:"solid",familyDefault:"classic",cssPrefix:Qm,replacementClass:Ym,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};zo.familyPrefix&&(zo.cssPrefix=zo.familyPrefix);const Xr={...Zm,...zo};Xr.autoReplaceSvg||(Xr.observeMutations=!1);const B={};Object.keys(Zm).forEach(e=>{Object.defineProperty(B,e,{enumerable:!0,set:function(t){Xr[e]=t,Io.forEach(n=>n(B))},get:function(){return Xr[e]}})});Object.defineProperty(B,"familyPrefix",{enumerable:!0,set:function(e){Xr.cssPrefix=e,Io.forEach(t=>t(B))},get:function(){return Xr.cssPrefix}});An.FontAwesomeConfig=B;const Io=[];function rx(e){return Io.push(e),()=>{Io.splice(Io.indexOf(e),1)}}const dn=fu,Mt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function ox(e){if(!e||!un)return;const t=pe.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=pe.head.childNodes;let r=null;for(let o=n.length-1;o>-1;o--){const i=n[o],l=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(l)>-1&&(r=i)}return pe.head.insertBefore(t,r),e}const ix="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function ii(){let e=12,t="";for(;e-- >0;)t+=ix[Math.random()*62|0];return t}function ro(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Rc(e){return e.classList?ro(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function Jm(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function lx(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(Jm(e[n]),'" '),"").trim()}function ua(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function zc(e){return e.size!==Mt.size||e.x!==Mt.x||e.y!==Mt.y||e.rotate!==Mt.rotate||e.flipX||e.flipY}function ax(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),l="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)"),s={transform:"".concat(i," ").concat(l," ").concat(a)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:o,inner:s,path:u}}function sx(e){let{transform:t,width:n=fu,height:r=fu,startCentered:o=!1}=e,i="";return o&&Bm?i+="translate(".concat(t.x/dn-n/2,"em, ").concat(t.y/dn-r/2,"em) "):o?i+="translate(calc(-50% + ".concat(t.x/dn,"em), calc(-50% + ").concat(t.y/dn,"em)) "):i+="translate(".concat(t.x/dn,"em, ").concat(t.y/dn,"em) "),i+="scale(".concat(t.size/dn*(t.flipX?-1:1),", ").concat(t.size/dn*(t.flipY?-1:1),") "),i+="rotate(".concat(t.rotate,"deg) "),i}var ux=`:root, :host {
  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
  --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
  --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";
  --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
  --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
  --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
  --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
  --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";
  --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";
  --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";
}

svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
  overflow: visible;
  box-sizing: content-box;
}

.svg-inline--fa {
  display: var(--fa-display, inline-block);
  height: 1em;
  overflow: visible;
  vertical-align: -0.125em;
}
.svg-inline--fa.fa-2xs {
  vertical-align: 0.1em;
}
.svg-inline--fa.fa-xs {
  vertical-align: 0em;
}
.svg-inline--fa.fa-sm {
  vertical-align: -0.0714285705em;
}
.svg-inline--fa.fa-lg {
  vertical-align: -0.2em;
}
.svg-inline--fa.fa-xl {
  vertical-align: -0.25em;
}
.svg-inline--fa.fa-2xl {
  vertical-align: -0.3125em;
}
.svg-inline--fa.fa-pull-left {
  margin-right: var(--fa-pull-margin, 0.3em);
  width: auto;
}
.svg-inline--fa.fa-pull-right {
  margin-left: var(--fa-pull-margin, 0.3em);
  width: auto;
}
.svg-inline--fa.fa-li {
  width: var(--fa-li-width, 2em);
  top: 0.25em;
}
.svg-inline--fa.fa-fw {
  width: var(--fa-fw-width, 1.25em);
}

.fa-layers svg.svg-inline--fa {
  bottom: 0;
  left: 0;
  margin: auto;
  position: absolute;
  right: 0;
  top: 0;
}

.fa-layers-counter, .fa-layers-text {
  display: inline-block;
  position: absolute;
  text-align: center;
}

.fa-layers {
  display: inline-block;
  height: 1em;
  position: relative;
  text-align: center;
  vertical-align: -0.125em;
  width: 1em;
}
.fa-layers svg.svg-inline--fa {
  transform-origin: center center;
}

.fa-layers-text {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
}

.fa-layers-counter {
  background-color: var(--fa-counter-background-color, #ff253a);
  border-radius: var(--fa-counter-border-radius, 1em);
  box-sizing: border-box;
  color: var(--fa-inverse, #fff);
  line-height: var(--fa-counter-line-height, 1);
  max-width: var(--fa-counter-max-width, 5em);
  min-width: var(--fa-counter-min-width, 1.5em);
  overflow: hidden;
  padding: var(--fa-counter-padding, 0.25em 0.5em);
  right: var(--fa-right, 0);
  text-overflow: ellipsis;
  top: var(--fa-top, 0);
  transform: scale(var(--fa-counter-scale, 0.25));
  transform-origin: top right;
}

.fa-layers-bottom-right {
  bottom: var(--fa-bottom, 0);
  right: var(--fa-right, 0);
  top: auto;
  transform: scale(var(--fa-layers-scale, 0.25));
  transform-origin: bottom right;
}

.fa-layers-bottom-left {
  bottom: var(--fa-bottom, 0);
  left: var(--fa-left, 0);
  right: auto;
  top: auto;
  transform: scale(var(--fa-layers-scale, 0.25));
  transform-origin: bottom left;
}

.fa-layers-top-right {
  top: var(--fa-top, 0);
  right: var(--fa-right, 0);
  transform: scale(var(--fa-layers-scale, 0.25));
  transform-origin: top right;
}

.fa-layers-top-left {
  left: var(--fa-left, 0);
  right: auto;
  top: var(--fa-top, 0);
  transform: scale(var(--fa-layers-scale, 0.25));
  transform-origin: top left;
}

.fa-1x {
  font-size: 1em;
}

.fa-2x {
  font-size: 2em;
}

.fa-3x {
  font-size: 3em;
}

.fa-4x {
  font-size: 4em;
}

.fa-5x {
  font-size: 5em;
}

.fa-6x {
  font-size: 6em;
}

.fa-7x {
  font-size: 7em;
}

.fa-8x {
  font-size: 8em;
}

.fa-9x {
  font-size: 9em;
}

.fa-10x {
  font-size: 10em;
}

.fa-2xs {
  font-size: 0.625em;
  line-height: 0.1em;
  vertical-align: 0.225em;
}

.fa-xs {
  font-size: 0.75em;
  line-height: 0.0833333337em;
  vertical-align: 0.125em;
}

.fa-sm {
  font-size: 0.875em;
  line-height: 0.0714285718em;
  vertical-align: 0.0535714295em;
}

.fa-lg {
  font-size: 1.25em;
  line-height: 0.05em;
  vertical-align: -0.075em;
}

.fa-xl {
  font-size: 1.5em;
  line-height: 0.0416666682em;
  vertical-align: -0.125em;
}

.fa-2xl {
  font-size: 2em;
  line-height: 0.03125em;
  vertical-align: -0.1875em;
}

.fa-fw {
  text-align: center;
  width: 1.25em;
}

.fa-ul {
  list-style-type: none;
  margin-left: var(--fa-li-margin, 2.5em);
  padding-left: 0;
}
.fa-ul > li {
  position: relative;
}

.fa-li {
  left: calc(-1 * var(--fa-li-width, 2em));
  position: absolute;
  text-align: center;
  width: var(--fa-li-width, 2em);
  line-height: inherit;
}

.fa-border {
  border-color: var(--fa-border-color, #eee);
  border-radius: var(--fa-border-radius, 0.1em);
  border-style: var(--fa-border-style, solid);
  border-width: var(--fa-border-width, 0.08em);
  padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
}

.fa-pull-left {
  float: left;
  margin-right: var(--fa-pull-margin, 0.3em);
}

.fa-pull-right {
  float: right;
  margin-left: var(--fa-pull-margin, 0.3em);
}

.fa-beat {
  animation-name: fa-beat;
  animation-delay: var(--fa-animation-delay, 0s);
  animation-direction: var(--fa-animation-direction, normal);
  animation-duration: var(--fa-animation-duration, 1s);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-timing-function: var(--fa-animation-timing, ease-in-out);
}

.fa-bounce {
  animation-name: fa-bounce;
  animation-delay: var(--fa-animation-delay, 0s);
  animation-direction: var(--fa-animation-direction, normal);
  animation-duration: var(--fa-animation-duration, 1s);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
}

.fa-fade {
  animation-name: fa-fade;
  animation-delay: var(--fa-animation-delay, 0s);
  animation-direction: var(--fa-animation-direction, normal);
  animation-duration: var(--fa-animation-duration, 1s);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
}

.fa-beat-fade {
  animation-name: fa-beat-fade;
  animation-delay: var(--fa-animation-delay, 0s);
  animation-direction: var(--fa-animation-direction, normal);
  animation-duration: var(--fa-animation-duration, 1s);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
}

.fa-flip {
  animation-name: fa-flip;
  animation-delay: var(--fa-animation-delay, 0s);
  animation-direction: var(--fa-animation-direction, normal);
  animation-duration: var(--fa-animation-duration, 1s);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-timing-function: var(--fa-animation-timing, ease-in-out);
}

.fa-shake {
  animation-name: fa-shake;
  animation-delay: var(--fa-animation-delay, 0s);
  animation-direction: var(--fa-animation-direction, normal);
  animation-duration: var(--fa-animation-duration, 1s);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-timing-function: var(--fa-animation-timing, linear);
}

.fa-spin {
  animation-name: fa-spin;
  animation-delay: var(--fa-animation-delay, 0s);
  animation-direction: var(--fa-animation-direction, normal);
  animation-duration: var(--fa-animation-duration, 2s);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-timing-function: var(--fa-animation-timing, linear);
}

.fa-spin-reverse {
  --fa-animation-direction: reverse;
}

.fa-pulse,
.fa-spin-pulse {
  animation-name: fa-spin;
  animation-direction: var(--fa-animation-direction, normal);
  animation-duration: var(--fa-animation-duration, 1s);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-timing-function: var(--fa-animation-timing, steps(8));
}

@media (prefers-reduced-motion: reduce) {
  .fa-beat,
.fa-bounce,
.fa-fade,
.fa-beat-fade,
.fa-flip,
.fa-pulse,
.fa-shake,
.fa-spin,
.fa-spin-pulse {
    animation-delay: -1ms;
    animation-duration: 1ms;
    animation-iteration-count: 1;
    transition-delay: 0s;
    transition-duration: 0s;
  }
}
@keyframes fa-beat {
  0%, 90% {
    transform: scale(1);
  }
  45% {
    transform: scale(var(--fa-beat-scale, 1.25));
  }
}
@keyframes fa-bounce {
  0% {
    transform: scale(1, 1) translateY(0);
  }
  10% {
    transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
  }
  30% {
    transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
  }
  50% {
    transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
  }
  57% {
    transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
  }
  64% {
    transform: scale(1, 1) translateY(0);
  }
  100% {
    transform: scale(1, 1) translateY(0);
  }
}
@keyframes fa-fade {
  50% {
    opacity: var(--fa-fade-opacity, 0.4);
  }
}
@keyframes fa-beat-fade {
  0%, 100% {
    opacity: var(--fa-beat-fade-opacity, 0.4);
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(var(--fa-beat-fade-scale, 1.125));
  }
}
@keyframes fa-flip {
  50% {
    transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
  }
}
@keyframes fa-shake {
  0% {
    transform: rotate(-15deg);
  }
  4% {
    transform: rotate(15deg);
  }
  8%, 24% {
    transform: rotate(-18deg);
  }
  12%, 28% {
    transform: rotate(18deg);
  }
  16% {
    transform: rotate(-22deg);
  }
  20% {
    transform: rotate(22deg);
  }
  32% {
    transform: rotate(-12deg);
  }
  36% {
    transform: rotate(12deg);
  }
  40%, 100% {
    transform: rotate(0deg);
  }
}
@keyframes fa-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.fa-rotate-90 {
  transform: rotate(90deg);
}

.fa-rotate-180 {
  transform: rotate(180deg);
}

.fa-rotate-270 {
  transform: rotate(270deg);
}

.fa-flip-horizontal {
  transform: scale(-1, 1);
}

.fa-flip-vertical {
  transform: scale(1, -1);
}

.fa-flip-both,
.fa-flip-horizontal.fa-flip-vertical {
  transform: scale(-1, -1);
}

.fa-rotate-by {
  transform: rotate(var(--fa-rotate-angle, 0));
}

.fa-stack {
  display: inline-block;
  vertical-align: middle;
  height: 2em;
  position: relative;
  width: 2.5em;
}

.fa-stack-1x,
.fa-stack-2x {
  bottom: 0;
  left: 0;
  margin: auto;
  position: absolute;
  right: 0;
  top: 0;
  z-index: var(--fa-stack-z-index, auto);
}

.svg-inline--fa.fa-stack-1x {
  height: 1em;
  width: 1.25em;
}
.svg-inline--fa.fa-stack-2x {
  height: 2em;
  width: 2.5em;
}

.fa-inverse {
  color: var(--fa-inverse, #fff);
}

.sr-only,
.fa-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;
}

.sr-only-focusable:not(:focus),
.fa-sr-only-focusable:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.svg-inline--fa .fa-primary {
  fill: var(--fa-primary-color, currentColor);
  opacity: var(--fa-primary-opacity, 1);
}

.svg-inline--fa .fa-secondary {
  fill: var(--fa-secondary-color, currentColor);
  opacity: var(--fa-secondary-opacity, 0.4);
}

.svg-inline--fa.fa-swap-opacity .fa-primary {
  opacity: var(--fa-secondary-opacity, 0.4);
}

.svg-inline--fa.fa-swap-opacity .fa-secondary {
  opacity: var(--fa-primary-opacity, 1);
}

.svg-inline--fa mask .fa-primary,
.svg-inline--fa mask .fa-secondary {
  fill: black;
}

.fad.fa-inverse,
.fa-duotone.fa-inverse {
  color: var(--fa-inverse, #fff);
}`;function e0(){const e=Qm,t=Ym,n=B.cssPrefix,r=B.replacementClass;let o=ux;if(n!==e||r!==t){const i=new RegExp("\\.".concat(e,"\\-"),"g"),l=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(l,"--".concat(n,"-")).replace(a,".".concat(r))}return o}let Pd=!1;function is(){B.autoAddCss&&!Pd&&(ox(e0()),Pd=!0)}var cx={mixout(){return{dom:{css:e0,insertCss:is}}},hooks(){return{beforeDOMElementCreation(){is()},beforeI2svg(){is()}}}};const ln=An||{};ln[on]||(ln[on]={});ln[on].styles||(ln[on].styles={});ln[on].hooks||(ln[on].hooks={});ln[on].shims||(ln[on].shims=[]);var Dt=ln[on];const t0=[],n0=function(){pe.removeEventListener("DOMContentLoaded",n0),zl=1,t0.map(e=>e())};let zl=!1;un&&(zl=(pe.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(pe.readyState),zl||pe.addEventListener("DOMContentLoaded",n0));function fx(e){un&&(zl?setTimeout(e,0):t0.push(e))}function mi(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?Jm(e):"<".concat(t," ").concat(lx(n),">").concat(r.map(mi).join(""),"</").concat(t,">")}function Od(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var dx=function(t,n){return function(r,o,i,l){return t.call(n,r,o,i,l)}},ls=function(t,n,r,o){var i=Object.keys(t),l=i.length,a=o!==void 0?dx(n,o):n,s,u,c;for(r===void 0?(s=1,c=t[i[0]]):(s=0,c=r);s<l;s++)u=i[s],c=a(c,t[u],u,t);return c};function px(e){const t=[];let n=0;const r=e.length;for(;n<r;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const i=e.charCodeAt(n++);(i&64512)==56320?t.push(((o&1023)<<10)+(i&1023)+65536):(t.push(o),n--)}else t.push(o)}return t}function gu(e){const t=px(e);return t.length===1?t[0].toString(16):null}function hx(e,t){const n=e.length;let r=e.charCodeAt(t),o;return r>=55296&&r<=56319&&n>t+1&&(o=e.charCodeAt(t+1),o>=56320&&o<=57343)?(r-55296)*1024+o-56320+65536:r}function _d(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function yu(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,o=_d(t);typeof Dt.hooks.addPack=="function"&&!r?Dt.hooks.addPack(e,_d(t)):Dt.styles[e]={...Dt.styles[e]||{},...o},e==="fas"&&yu("fa",t)}const{styles:qn,shims:mx}=Dt,gx={[ge]:Object.values(rr[ge]),[ot]:Object.values(rr[ot]),[it]:Object.values(rr[it])};let Ic=null,r0={},o0={},i0={},l0={},a0={};const yx={[ge]:Object.keys(nr[ge]),[ot]:Object.keys(nr[ot]),[it]:Object.keys(nr[it])};function vx(e){return~ex.indexOf(e)}function xx(e,t){const n=t.split("-"),r=n[0],o=n.slice(1).join("-");return r===e&&o!==""&&!vx(o)?o:null}const s0=()=>{const e=r=>ls(qn,(o,i,l)=>(o[l]=ls(i,r,{}),o),{});r0=e((r,o,i)=>(o[3]&&(r[o[3]]=i),o[2]&&o[2].filter(a=>typeof a=="number").forEach(a=>{r[a.toString(16)]=i}),r)),o0=e((r,o,i)=>(r[i]=i,o[2]&&o[2].filter(a=>typeof a=="string").forEach(a=>{r[a]=i}),r)),a0=e((r,o,i)=>{const l=o[2];return r[i]=i,l.forEach(a=>{r[a]=i}),r});const t="far"in qn||B.autoFetchSvg,n=ls(mx,(r,o)=>{const i=o[0];let l=o[1];const a=o[2];return l==="far"&&!t&&(l="fas"),typeof i=="string"&&(r.names[i]={prefix:l,iconName:a}),typeof i=="number"&&(r.unicodes[i.toString(16)]={prefix:l,iconName:a}),r},{names:{},unicodes:{}});i0=n.names,l0=n.unicodes,Ic=ca(B.styleDefault,{family:B.familyDefault})};rx(e=>{Ic=ca(e.styleDefault,{family:B.familyDefault})});s0();function Fc(e,t){return(r0[e]||{})[t]}function wx(e,t){return(o0[e]||{})[t]}function bn(e,t){return(a0[e]||{})[t]}function u0(e){return i0[e]||{prefix:null,iconName:null}}function kx(e){const t=l0[e],n=Fc("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function $n(){return Ic}const Mc=()=>({prefix:null,iconName:null,rest:[]});function ca(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=ge}=t,r=nr[n][e],o=oi[n][e]||oi[n][r],i=e in Dt.styles?e:null;return o||i||null}const bx={[ge]:Object.keys(rr[ge]),[ot]:Object.keys(rr[ot]),[it]:Object.keys(rr[it])};function fa(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t,r={[ge]:"".concat(B.cssPrefix,"-").concat(ge),[ot]:"".concat(B.cssPrefix,"-").concat(ot),[it]:"".concat(B.cssPrefix,"-").concat(it)};let o=null,i=ge;const l=N2.filter(s=>s!==Hm);l.forEach(s=>{(e.includes(r[s])||e.some(u=>bx[s].includes(u)))&&(i=s)});const a=e.reduce((s,u)=>{const c=xx(B.cssPrefix,u);if(qn[u]?(u=gx[i].includes(u)?K2[i][u]:u,o=u,s.prefix=u):yx[i].indexOf(u)>-1?(o=u,s.prefix=ca(u,{family:i})):c?s.iconName=c:u!==B.replacementClass&&!l.some(f=>u===r[f])&&s.rest.push(u),!n&&s.prefix&&s.iconName){const f=o==="fa"?u0(s.iconName):{},d=bn(s.prefix,s.iconName);f.prefix&&(o=null),s.iconName=f.iconName||d||s.iconName,s.prefix=f.prefix||s.prefix,s.prefix==="far"&&!qn.far&&qn.fas&&!B.autoFetchSvg&&(s.prefix="fas")}return s},Mc());return(e.includes("fa-brands")||e.includes("fab"))&&(a.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(a.prefix="fad"),!a.prefix&&i===ot&&(qn.fass||B.autoFetchSvg)&&(a.prefix="fass",a.iconName=bn(a.prefix,a.iconName)||a.iconName),!a.prefix&&i===it&&(qn.fasds||B.autoFetchSvg)&&(a.prefix="fasds",a.iconName=bn(a.prefix,a.iconName)||a.iconName),(a.prefix==="fa"||o==="fa")&&(a.prefix=$n()||"fas"),a}class Ex{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o=n.reduce(this._pullDefinitions,{});Object.keys(o).forEach(i=>{this.definitions[i]={...this.definitions[i]||{},...o[i]},yu(i,o[i]);const l=rr[ge][i];l&&yu(l,o[i]),s0()})}reset(){this.definitions={}}_pullDefinitions(t,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(o=>{const{prefix:i,iconName:l,icon:a}=r[o],s=a[2];t[i]||(t[i]={}),s.length>0&&s.forEach(u=>{typeof u=="string"&&(t[i][u]=a)}),t[i][l]=a}),t}}let Nd=[],$r={};const Br={},Sx=Object.keys(Br);function Cx(e,t){let{mixoutsTo:n}=t;return Nd=e,$r={},Object.keys(Br).forEach(r=>{Sx.indexOf(r)===-1&&delete Br[r]}),Nd.forEach(r=>{const o=r.mixout?r.mixout():{};if(Object.keys(o).forEach(i=>{typeof o[i]=="function"&&(n[i]=o[i]),typeof o[i]=="object"&&Object.keys(o[i]).forEach(l=>{n[i]||(n[i]={}),n[i][l]=o[i][l]})}),r.hooks){const i=r.hooks();Object.keys(i).forEach(l=>{$r[l]||($r[l]=[]),$r[l].push(i[l])})}r.provides&&r.provides(Br)}),n}function vu(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return($r[e]||[]).forEach(l=>{t=l.apply(null,[t,...r])}),t}function cr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];($r[e]||[]).forEach(i=>{i.apply(null,n)})}function Rn(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Br[e]?Br[e].apply(null,t):void 0}function xu(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||$n();if(t)return t=bn(n,t)||t,Od(c0.definitions,n,t)||Od(Dt.styles,n,t)}const c0=new Ex,Px=()=>{B.autoReplaceSvg=!1,B.observeMutations=!1,cr("noAuto")},Ox={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return un?(cr("beforeI2svg",e),Rn("pseudoElements2svg",e),Rn("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;B.autoReplaceSvg===!1&&(B.autoReplaceSvg=!0),B.observeMutations=!0,fx(()=>{Nx({autoReplaceSvgRoot:t}),cr("watch",e)})}},_x={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:bn(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=ca(e[0]);return{prefix:n,iconName:bn(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(B.cssPrefix,"-"))>-1||e.match(G2))){const t=fa(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||$n(),iconName:bn(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=$n();return{prefix:t,iconName:bn(t,e)||e}}}},ct={noAuto:Px,config:B,dom:Ox,parse:_x,library:c0,findIconDefinition:xu,toHtml:mi},Nx=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=pe}=e;(Object.keys(Dt.styles).length>0||B.autoFetchSvg)&&un&&B.autoReplaceSvg&&ct.dom.i2svg({node:t})};function da(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>mi(n))}}),Object.defineProperty(e,"node",{get:function(){if(!un)return;const n=pe.createElement("div");return n.innerHTML=e.html,n.children}}),e}function Tx(e){let{children:t,main:n,mask:r,attributes:o,styles:i,transform:l}=e;if(zc(l)&&n.found&&!r.found){const{width:a,height:s}=n,u={x:a/s/2,y:.5};o.style=ua({...i,"transform-origin":"".concat(u.x+l.x/16,"em ").concat(u.y+l.y/16,"em")})}return[{tag:"svg",attributes:o,children:t}]}function jx(e){let{prefix:t,iconName:n,children:r,attributes:o,symbol:i}=e;const l=i===!0?"".concat(t,"-").concat(B.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:{...o,id:l},children:r}]}]}function Dc(e){const{icons:{main:t,mask:n},prefix:r,iconName:o,transform:i,symbol:l,title:a,maskId:s,titleId:u,extra:c,watchable:f=!1}=e,{width:d,height:p}=n.found?n:t,y=r==="fak",h=[B.replacementClass,o?"".concat(B.cssPrefix,"-").concat(o):""].filter(N=>c.classes.indexOf(N)===-1).filter(N=>N!==""||!!N).concat(c.classes).join(" ");let k={children:[],attributes:{...c.attributes,"data-prefix":r,"data-icon":o,class:h,role:c.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(d," ").concat(p)}};const m=y&&!~c.classes.indexOf("fa-fw")?{width:"".concat(d/p*16*.0625,"em")}:{};f&&(k.attributes[ur]=""),a&&(k.children.push({tag:"title",attributes:{id:k.attributes["aria-labelledby"]||"title-".concat(u||ii())},children:[a]}),delete k.attributes.title);const g={...k,prefix:r,iconName:o,main:t,mask:n,maskId:s,transform:i,symbol:l,styles:{...m,...c.styles}},{children:v,attributes:E}=n.found&&t.found?Rn("generateAbstractMask",g)||{children:[],attributes:{}}:Rn("generateAbstractIcon",g)||{children:[],attributes:{}};return g.children=v,g.attributes=E,l?jx(g):Tx(g)}function Td(e){const{content:t,width:n,height:r,transform:o,title:i,extra:l,watchable:a=!1}=e,s={...l.attributes,...i?{title:i}:{},class:l.classes.join(" ")};a&&(s[ur]="");const u={...l.styles};zc(o)&&(u.transform=sx({transform:o,startCentered:!0,width:n,height:r}),u["-webkit-transform"]=u.transform);const c=ua(u);c.length>0&&(s.style=c);const f=[];return f.push({tag:"span",attributes:s,children:[t]}),i&&f.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),f}function Lx(e){const{content:t,title:n,extra:r}=e,o={...r.attributes,...n?{title:n}:{},class:r.classes.join(" ")},i=ua(r.styles);i.length>0&&(o.style=i);const l=[];return l.push({tag:"span",attributes:o,children:[t]}),n&&l.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),l}const{styles:as}=Dt;function wu(e){const t=e[0],n=e[1],[r]=e.slice(4);let o=null;return Array.isArray(r)?o={tag:"g",attributes:{class:"".concat(B.cssPrefix,"-").concat(os.GROUP)},children:[{tag:"path",attributes:{class:"".concat(B.cssPrefix,"-").concat(os.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(B.cssPrefix,"-").concat(os.PRIMARY),fill:"currentColor",d:r[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:o}}const Ax={found:!1,width:512,height:512};function $x(e,t){!qm&&!B.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function ku(e,t){let n=t;return t==="fa"&&B.styleDefault!==null&&(t=$n()),new Promise((r,o)=>{if(n==="fa"){const i=u0(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&as[t]&&as[t][e]){const i=as[t][e];return r(wu(i))}$x(e,t),r({...Ax,icon:B.showMissingIcons&&e?Rn("missingIconAbstract")||{}:{}})})}const jd=()=>{},bu=B.measurePerformance&&Ui&&Ui.mark&&Ui.measure?Ui:{mark:jd,measure:jd},Po='FA "6.6.0"',Rx=e=>(bu.mark("".concat(Po," ").concat(e," begins")),()=>f0(e)),f0=e=>{bu.mark("".concat(Po," ").concat(e," ends")),bu.measure("".concat(Po," ").concat(e),"".concat(Po," ").concat(e," begins"),"".concat(Po," ").concat(e," ends"))};var Uc={begin:Rx,end:f0};const rl=()=>{};function Ld(e){return typeof(e.getAttribute?e.getAttribute(ur):null)=="string"}function zx(e){const t=e.getAttribute?e.getAttribute(Ac):null,n=e.getAttribute?e.getAttribute($c):null;return t&&n}function Ix(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(B.replacementClass)}function Fx(){return B.autoReplaceSvg===!0?ol.replace:ol[B.autoReplaceSvg]||ol.replace}function Mx(e){return pe.createElementNS("http://www.w3.org/2000/svg",e)}function Dx(e){return pe.createElement(e)}function d0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?Mx:Dx}=t;if(typeof e=="string")return pe.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(i){r.setAttribute(i,e.attributes[i])}),(e.children||[]).forEach(function(i){r.appendChild(d0(i,{ceFn:n}))}),r}function Ux(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const ol={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(d0(n),t)}),t.getAttribute(ur)===null&&B.keepOriginalSource){let n=pe.createComment(Ux(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~Rc(t).indexOf(B.replacementClass))return ol.replace(e);const r=new RegExp("".concat(B.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const i=n[0].attributes.class.split(" ").reduce((l,a)=>(a===B.replacementClass||a.match(r)?l.toSvg.push(a):l.toNode.push(a),l),{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",i.toNode.join(" "))}const o=n.map(i=>mi(i)).join(`
`);t.setAttribute(ur,""),t.innerHTML=o}};function Ad(e){e()}function p0(e,t){const n=typeof t=="function"?t:rl;if(e.length===0)n();else{let r=Ad;B.mutateApproach===Y2&&(r=An.requestAnimationFrame||Ad),r(()=>{const o=Fx(),i=Uc.begin("mutate");e.map(o),i(),n()})}}let Bc=!1;function h0(){Bc=!0}function Eu(){Bc=!1}let Il=null;function $d(e){if(!bd||!B.observeMutations)return;const{treeCallback:t=rl,nodeCallback:n=rl,pseudoElementsCallback:r=rl,observeMutationsRoot:o=pe}=e;Il=new bd(i=>{if(Bc)return;const l=$n();ro(i).forEach(a=>{if(a.type==="childList"&&a.addedNodes.length>0&&!Ld(a.addedNodes[0])&&(B.searchPseudoElements&&r(a.target),t(a.target)),a.type==="attributes"&&a.target.parentNode&&B.searchPseudoElements&&r(a.target.parentNode),a.type==="attributes"&&Ld(a.target)&&~J2.indexOf(a.attributeName))if(a.attributeName==="class"&&zx(a.target)){const{prefix:s,iconName:u}=fa(Rc(a.target));a.target.setAttribute(Ac,s||l),u&&a.target.setAttribute($c,u)}else Ix(a.target)&&n(a.target)})}),un&&Il.observe(o,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function Bx(){Il&&Il.disconnect()}function Hx(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((r,o)=>{const i=o.split(":"),l=i[0],a=i.slice(1);return l&&a.length>0&&(r[l]=a.join(":").trim()),r},{})),n}function Wx(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let o=fa(Rc(e));return o.prefix||(o.prefix=$n()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&r.length>0&&(o.iconName=wx(o.prefix,e.innerText)||Fc(o.prefix,gu(e.innerText))),!o.iconName&&B.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function Vx(e){const t=ro(e.attributes).reduce((o,i)=>(o.name!=="class"&&o.name!=="style"&&(o[i.name]=i.value),o),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return B.autoA11y&&(n?t["aria-labelledby"]="".concat(B.replacementClass,"-title-").concat(r||ii()):(t["aria-hidden"]="true",t.focusable="false")),t}function Qx(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Mt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Rd(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:o}=Wx(e),i=Vx(e),l=vu("parseNodeAttributes",{},e);let a=t.styleParser?Hx(e):[];return{iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:Mt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:a,attributes:i},...l}}const{styles:Yx}=Dt;function m0(e){const t=B.autoReplaceSvg==="nest"?Rd(e,{styleParser:!1}):Rd(e);return~t.extra.classes.indexOf(Xm)?Rn("generateLayersText",e,t):Rn("generateSvgReplacementMutation",e,t)}let Ht=new Set;Km.map(e=>{Ht.add("fa-".concat(e))});Object.keys(nr[ge]).map(Ht.add.bind(Ht));Object.keys(nr[ot]).map(Ht.add.bind(Ht));Object.keys(nr[it]).map(Ht.add.bind(Ht));Ht=[...Ht];function zd(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!un)return Promise.resolve();const n=pe.documentElement.classList,r=c=>n.add("".concat(Cd,"-").concat(c)),o=c=>n.remove("".concat(Cd,"-").concat(c)),i=B.autoFetchSvg?Ht:Km.map(c=>"fa-".concat(c)).concat(Object.keys(Yx));i.includes("fa")||i.push("fa");const l=[".".concat(Xm,":not([").concat(ur,"])")].concat(i.map(c=>".".concat(c,":not([").concat(ur,"])"))).join(", ");if(l.length===0)return Promise.resolve();let a=[];try{a=ro(e.querySelectorAll(l))}catch{}if(a.length>0)r("pending"),o("complete");else return Promise.resolve();const s=Uc.begin("onTree"),u=a.reduce((c,f)=>{try{const d=m0(f);d&&c.push(d)}catch(d){qm||d.name==="MissingIcon"&&console.error(d)}return c},[]);return new Promise((c,f)=>{Promise.all(u).then(d=>{p0(d,()=>{r("active"),r("complete"),o("pending"),typeof t=="function"&&t(),s(),c()})}).catch(d=>{s(),f(d)})})}function qx(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;m0(e).then(n=>{n&&p0([n],t)})}function Kx(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:xu(t||{});let{mask:o}=n;return o&&(o=(o||{}).icon?o:xu(o||{})),e(r,{...n,mask:o})}}const Gx=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Mt,symbol:r=!1,mask:o=null,maskId:i=null,title:l=null,titleId:a=null,classes:s=[],attributes:u={},styles:c={}}=t;if(!e)return;const{prefix:f,iconName:d,icon:p}=e;return da({type:"icon",...e},()=>(cr("beforeDOMElementCreation",{iconDefinition:e,params:t}),B.autoA11y&&(l?u["aria-labelledby"]="".concat(B.replacementClass,"-title-").concat(a||ii()):(u["aria-hidden"]="true",u.focusable="false")),Dc({icons:{main:wu(p),mask:o?wu(o.icon):{found:!1,width:null,height:null,icon:{}}},prefix:f,iconName:d,transform:{...Mt,...n},symbol:r,title:l,maskId:i,titleId:a,extra:{attributes:u,styles:c,classes:s}})))};var Xx={mixout(){return{icon:Kx(Gx)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=zd,e.nodeCallback=qx,e}}},provides(e){e.i2svg=function(t){const{node:n=pe,callback:r=()=>{}}=t;return zd(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:o,titleId:i,prefix:l,transform:a,symbol:s,mask:u,maskId:c,extra:f}=n;return new Promise((d,p)=>{Promise.all([ku(r,l),u.iconName?ku(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(y=>{let[h,k]=y;d([t,Dc({icons:{main:h,mask:k},prefix:l,iconName:r,transform:a,symbol:s,maskId:c,title:o,titleId:i,extra:f,watchable:!0})])}).catch(p)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:o,transform:i,styles:l}=t;const a=ua(l);a.length>0&&(r.style=a);let s;return zc(i)&&(s=Rn("generateAbstractTransformGrouping",{main:o,transform:i,containerWidth:o.width,iconWidth:o.width})),n.push(s||o.icon),{children:n,attributes:r}}}},Zx={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return da({type:"layer"},()=>{cr("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e(o=>{Array.isArray(o)?o.map(i=>{r=r.concat(i.abstract)}):r=r.concat(o.abstract)}),[{tag:"span",attributes:{class:["".concat(B.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},Jx={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:r=[],attributes:o={},styles:i={}}=t;return da({type:"counter",content:e},()=>(cr("beforeDOMElementCreation",{content:e,params:t}),Lx({content:e.toString(),title:n,extra:{attributes:o,styles:i,classes:["".concat(B.cssPrefix,"-layers-counter"),...r]}})))}}}},ew={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Mt,title:r=null,classes:o=[],attributes:i={},styles:l={}}=t;return da({type:"text",content:e},()=>(cr("beforeDOMElementCreation",{content:e,params:t}),Td({content:e,transform:{...Mt,...n},title:r,extra:{attributes:i,styles:l,classes:["".concat(B.cssPrefix,"-layers-text"),...o]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:r,transform:o,extra:i}=n;let l=null,a=null;if(Bm){const s=parseInt(getComputedStyle(t).fontSize,10),u=t.getBoundingClientRect();l=u.width/s,a=u.height/s}return B.autoA11y&&!r&&(i.attributes["aria-hidden"]="true"),Promise.resolve([t,Td({content:t.innerHTML,width:l,height:a,transform:o,title:r,extra:i,watchable:!0})])}}};const tw=new RegExp('"',"ug"),Id=[1105920,1112319],Fd={FontAwesome:{normal:"fas",400:"fas"},...R2,...$2,...H2},Su=Object.keys(Fd).reduce((e,t)=>(e[t.toLowerCase()]=Fd[t],e),{}),nw=Object.keys(Su).reduce((e,t)=>{const n=Su[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function rw(e){const t=e.replace(tw,""),n=hx(t,0),r=n>=Id[0]&&n<=Id[1],o=t.length===2?t[0]===t[1]:!1;return{value:gu(o?t[0]:t),isSecondary:r||o}}function ow(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),o=isNaN(r)?"normal":r;return(Su[n]||{})[o]||nw[n]}function Md(e,t){const n="".concat(Q2).concat(t.replace(":","-"));return new Promise((r,o)=>{if(e.getAttribute(n)!==null)return r();const l=ro(e.children).filter(d=>d.getAttribute(du)===t)[0],a=An.getComputedStyle(e,t),s=a.getPropertyValue("font-family"),u=s.match(X2),c=a.getPropertyValue("font-weight"),f=a.getPropertyValue("content");if(l&&!u)return e.removeChild(l),r();if(u&&f!=="none"&&f!==""){const d=a.getPropertyValue("content");let p=ow(s,c);const{value:y,isSecondary:h}=rw(d),k=u[0].startsWith("FontAwesome");let m=Fc(p,y),g=m;if(k){const v=kx(y);v.iconName&&v.prefix&&(m=v.iconName,p=v.prefix)}if(m&&!h&&(!l||l.getAttribute(Ac)!==p||l.getAttribute($c)!==g)){e.setAttribute(n,g),l&&e.removeChild(l);const v=Qx(),{extra:E}=v;E.attributes[du]=t,ku(m,p).then(N=>{const _=Dc({...v,icons:{main:N,mask:Mc()},prefix:p,iconName:g,extra:E,watchable:!0}),j=pe.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(j,e.firstChild):e.appendChild(j),j.outerHTML=_.map(L=>mi(L)).join(`
`),e.removeAttribute(n),r()}).catch(o)}else r()}else r()})}function iw(e){return Promise.all([Md(e,"::before"),Md(e,"::after")])}function lw(e){return e.parentNode!==document.head&&!~q2.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(du)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Dd(e){if(un)return new Promise((t,n)=>{const r=ro(e.querySelectorAll("*")).filter(lw).map(iw),o=Uc.begin("searchPseudoElements");h0(),Promise.all(r).then(()=>{o(),Eu(),t()}).catch(()=>{o(),Eu(),n()})})}var aw={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=Dd,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=pe}=t;B.searchPseudoElements&&Dd(n)}}};let Ud=!1;var sw={mixout(){return{dom:{unwatch(){h0(),Ud=!0}}}},hooks(){return{bootstrap(){$d(vu("mutationObserverCallbacks",{}))},noAuto(){Bx()},watch(e){const{observeMutationsRoot:t}=e;Ud?Eu():$d(vu("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const Bd=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,r)=>{const o=r.toLowerCase().split("-"),i=o[0];let l=o.slice(1).join("-");if(i&&l==="h")return n.flipX=!0,n;if(i&&l==="v")return n.flipY=!0,n;if(l=parseFloat(l),isNaN(l))return n;switch(i){case"grow":n.size=n.size+l;break;case"shrink":n.size=n.size-l;break;case"left":n.x=n.x-l;break;case"right":n.x=n.x+l;break;case"up":n.y=n.y-l;break;case"down":n.y=n.y+l;break;case"rotate":n.rotate=n.rotate+l;break}return n},t)};var uw={mixout(){return{parse:{transform:e=>Bd(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=Bd(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:r,containerWidth:o,iconWidth:i}=t;const l={transform:"translate(".concat(o/2," 256)")},a="translate(".concat(r.x*32,", ").concat(r.y*32,") "),s="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),u="rotate(".concat(r.rotate," 0 0)"),c={transform:"".concat(a," ").concat(s," ").concat(u)},f={transform:"translate(".concat(i/2*-1," -256)")},d={outer:l,inner:c,path:f};return{tag:"g",attributes:{...d.outer},children:[{tag:"g",attributes:{...d.inner},children:[{tag:n.icon.tag,children:n.icon.children,attributes:{...n.icon.attributes,...d.path}}]}]}}}};const ss={x:0,y:0,width:"100%",height:"100%"};function Hd(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function cw(e){return e.tag==="g"?e.children:[e]}var fw={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?fa(n.split(" ").map(o=>o.trim())):Mc();return r.prefix||(r.prefix=$n()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:r,main:o,mask:i,maskId:l,transform:a}=t;const{width:s,icon:u}=o,{width:c,icon:f}=i,d=ax({transform:a,containerWidth:c,iconWidth:s}),p={tag:"rect",attributes:{...ss,fill:"white"}},y=u.children?{children:u.children.map(Hd)}:{},h={tag:"g",attributes:{...d.inner},children:[Hd({tag:u.tag,attributes:{...u.attributes,...d.path},...y})]},k={tag:"g",attributes:{...d.outer},children:[h]},m="mask-".concat(l||ii()),g="clip-".concat(l||ii()),v={tag:"mask",attributes:{...ss,id:m,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[p,k]},E={tag:"defs",children:[{tag:"clipPath",attributes:{id:g},children:cw(f)},v]};return n.push(E,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(g,")"),mask:"url(#".concat(m,")"),...ss}}),{children:n,attributes:r}}}},dw={provides(e){let t=!1;An.matchMedia&&(t=An.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],r={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:{...r,d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}});const i={...o,attributeName:"opacity"},l={tag:"circle",attributes:{...r,cx:"256",cy:"364",r:"28"},children:[]};return t||l.children.push({tag:"animate",attributes:{...o,attributeName:"r",values:"28;14;28;28;14;28;"}},{tag:"animate",attributes:{...i,values:"1;0;1;1;0;1;"}}),n.push(l),n.push({tag:"path",attributes:{...r,opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"},children:t?[]:[{tag:"animate",attributes:{...i,values:"1;0;0;0;0;1;"}}]}),t||n.push({tag:"path",attributes:{...r,opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"},children:[{tag:"animate",attributes:{...i,values:"0;0;1;1;0;0;"}}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},pw={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},hw=[cx,Xx,Zx,Jx,ew,aw,sw,uw,fw,dw,pw];Cx(hw,{mixoutsTo:ct});ct.noAuto;ct.config;ct.library;ct.dom;const Cu=ct.parse;ct.findIconDefinition;ct.toHtml;const mw=ct.icon;ct.layer;ct.text;ct.counter;var g0={exports:{}},gw="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",yw=gw,vw=yw;function y0(){}function v0(){}v0.resetWarningCache=y0;var xw=function(){function e(r,o,i,l,a,s){if(s!==vw){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:v0,resetWarningCache:y0};return n.PropTypes=n,n};g0.exports=xw();var ww=g0.exports;const J=Lu(ww);function Wd(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 It(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Wd(Object(n),!0).forEach(function(r){Rr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wd(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fl(e){"@babel/helpers - typeof";return Fl=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},Fl(e)}function Rr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kw(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}function bw(e,t){if(e==null)return{};var n=kw(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Pu(e){return Ew(e)||Sw(e)||Cw(e)||Pw()}function Ew(e){if(Array.isArray(e))return Ou(e)}function Sw(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Cw(e,t){if(e){if(typeof e=="string")return Ou(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ou(e,t)}}function Ou(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Pw(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ow(e){var t,n=e.beat,r=e.fade,o=e.beatFade,i=e.bounce,l=e.shake,a=e.flash,s=e.spin,u=e.spinPulse,c=e.spinReverse,f=e.pulse,d=e.fixedWidth,p=e.inverse,y=e.border,h=e.listItem,k=e.flip,m=e.size,g=e.rotation,v=e.pull,E=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":o,"fa-bounce":i,"fa-shake":l,"fa-flash":a,"fa-spin":s,"fa-spin-reverse":c,"fa-spin-pulse":u,"fa-pulse":f,"fa-fw":d,"fa-inverse":p,"fa-border":y,"fa-li":h,"fa-flip":k===!0,"fa-flip-horizontal":k==="horizontal"||k==="both","fa-flip-vertical":k==="vertical"||k==="both"},Rr(t,"fa-".concat(m),typeof m<"u"&&m!==null),Rr(t,"fa-rotate-".concat(g),typeof g<"u"&&g!==null&&g!==0),Rr(t,"fa-pull-".concat(v),typeof v<"u"&&v!==null),Rr(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(E).map(function(N){return E[N]?N:null}).filter(function(N){return N})}function _w(e){return e=e-0,e===e}function x0(e){return _w(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var Nw=["style"];function Tw(e){return e.charAt(0).toUpperCase()+e.slice(1)}function jw(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),o=x0(n.slice(0,r)),i=n.slice(r+1).trim();return o.startsWith("webkit")?t[Tw(o)]=i:t[o]=i,t},{})}function w0(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(s){return w0(e,s)}),o=Object.keys(t.attributes||{}).reduce(function(s,u){var c=t.attributes[u];switch(u){case"class":s.attrs.className=c,delete t.attributes.class;break;case"style":s.attrs.style=jw(c);break;default:u.indexOf("aria-")===0||u.indexOf("data-")===0?s.attrs[u.toLowerCase()]=c:s.attrs[x0(u)]=c}return s},{attrs:{}}),i=n.style,l=i===void 0?{}:i,a=bw(n,Nw);return o.attrs.style=It(It({},o.attrs.style),l),e.apply(void 0,[t.tag,It(It({},o.attrs),a)].concat(Pu(r)))}var k0=!1;try{k0=!0}catch{}function Lw(){if(!k0&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Vd(e){if(e&&Fl(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Cu.icon)return Cu.icon(e);if(e===null)return null;if(e&&Fl(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function us(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Rr({},e,t):{}}var Qd={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},Le=X.forwardRef(function(e,t){var n=It(It({},Qd),e),r=n.icon,o=n.mask,i=n.symbol,l=n.className,a=n.title,s=n.titleId,u=n.maskId,c=Vd(r),f=us("classes",[].concat(Pu(Ow(n)),Pu((l||"").split(" ")))),d=us("transform",typeof n.transform=="string"?Cu.transform(n.transform):n.transform),p=us("mask",Vd(o)),y=mw(c,It(It(It(It({},f),d),p),{},{symbol:i,title:a,titleId:s,maskId:u}));if(!y)return Lw("Could not find icon",c),null;var h=y.abstract,k={ref:t};return Object.keys(n).forEach(function(m){Qd.hasOwnProperty(m)||(k[m]=n[m])}),Aw(h[0],k)});Le.displayName="FontAwesomeIcon";Le.propTypes={beat:J.bool,border:J.bool,beatFade:J.bool,bounce:J.bool,className:J.string,fade:J.bool,flash:J.bool,mask:J.oneOfType([J.object,J.array,J.string]),maskId:J.string,fixedWidth:J.bool,inverse:J.bool,flip:J.oneOf([!0,!1,"horizontal","vertical","both"]),icon:J.oneOfType([J.object,J.array,J.string]),listItem:J.bool,pull:J.oneOf(["right","left"]),pulse:J.bool,rotation:J.oneOf([0,90,180,270]),shake:J.bool,size:J.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:J.bool,spinPulse:J.bool,spinReverse:J.bool,symbol:J.oneOfType([J.bool,J.string]),title:J.string,titleId:J.string,transform:J.oneOfType([J.string,J.object]),swapOpacity:J.bool};var Aw=w0.bind(null,X.createElement);const $w={prefix:"fas",iconName:"folder-plus",icon:[512,512,[],"f65e","M512 416c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96C0 60.7 28.7 32 64 32l128 0c20.1 0 39.1 9.5 51.2 25.6l19.2 25.6c6 8.1 15.5 12.8 25.6 12.8l160 0c35.3 0 64 28.7 64 64l0 256zM232 376c0 13.3 10.7 24 24 24s24-10.7 24-24l0-64 64 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-64 0 0-64c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 64-64 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l64 0 0 64z"]},Rw={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},zw={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},Iw={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},Fw={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},Mw={prefix:"far",iconName:"square-minus",icon:[448,512,[61767,"minus-square"],"f146","M64 80c-8.8 0-16 7.2-16 16l0 320c0 8.8 7.2 16 16 16l320 0c8.8 0 16-7.2 16-16l0-320c0-8.8-7.2-16-16-16L64 80zM0 96C0 60.7 28.7 32 64 32l320 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zM152 232l144 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-144 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},Dw=Mw,Uw={prefix:"far",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M64 80c-8.8 0-16 7.2-16 16l0 320c0 8.8 7.2 16 16 16l320 0c8.8 0 16-7.2 16-16l0-320c0-8.8-7.2-16-16-16L64 80zM0 96C0 60.7 28.7 32 64 32l320 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zM337 209L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},Yd=Uw,Bw={prefix:"far",iconName:"folder",icon:[512,512,[128193,128447,61716,"folder-blank"],"f07b","M0 96C0 60.7 28.7 32 64 32l132.1 0c19.1 0 37.4 7.6 50.9 21.1L289.9 96 448 96c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zM64 80c-8.8 0-16 7.2-16 16l0 320c0 8.8 7.2 16 16 16l384 0c8.8 0 16-7.2 16-16l0-256c0-8.8-7.2-16-16-16l-161.4 0c-10.6 0-20.8-4.2-28.3-11.7L213.1 87c-4.5-4.5-10.6-7-17-7L64 80z"]},b0={prefix:"far",iconName:"folder-open",icon:[576,512,[128194,128449,61717],"f07c","M384 480l48 0c11.4 0 21.9-6 27.6-15.9l112-192c5.8-9.9 5.8-22.1 .1-32.1S555.5 224 544 224l-400 0c-11.4 0-21.9 6-27.6 15.9L48 357.1 48 96c0-8.8 7.2-16 16-16l117.5 0c4.2 0 8.3 1.7 11.3 4.7l26.5 26.5c21 21 49.5 32.8 79.2 32.8L416 144c8.8 0 16 7.2 16 16l0 32 48 0 0-32c0-35.3-28.7-64-64-64L298.5 96c-17 0-33.3-6.7-45.3-18.7L226.7 50.7c-12-12-28.3-18.7-45.3-18.7L64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l23.7 0L384 480z"]},Hw={prefix:"far",iconName:"square-plus",icon:[448,512,[61846,"plus-square"],"f0fe","M64 80c-8.8 0-16 7.2-16 16l0 320c0 8.8 7.2 16 16 16l320 0c8.8 0 16-7.2 16-16l0-320c0-8.8-7.2-16-16-16L64 80zM0 96C0 60.7 28.7 32 64 32l320 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zM200 344l0-64-64 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l64 0 0-64c0-13.3 10.7-24 24-24s24 10.7 24 24l0 64 64 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-64 0 0 64c0 13.3-10.7 24-24 24s-24-10.7-24-24z"]},Ww=Hw,Vw={prefix:"far",iconName:"square",icon:[448,512,[9632,9723,9724,61590],"f0c8","M384 80c8.8 0 16 7.2 16 16l0 320c0 8.8-7.2 16-16 16L64 432c-8.8 0-16-7.2-16-16L48 96c0-8.8 7.2-16 16-16l320 0zM64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32z"]},Qw={prefix:"far",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M320 464c8.8 0 16-7.2 16-16l0-288-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16l256 0zM0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64z"]},Yw={prefix:"far",iconName:"copy",icon:[448,512,[],"f0c5","M384 336l-192 0c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l140.1 0L400 115.9 400 320c0 8.8-7.2 16-16 16zM192 384l192 0c35.3 0 64-28.7 64-64l0-204.1c0-12.7-5.1-24.9-14.1-33.9L366.1 14.1c-9-9-21.2-14.1-33.9-14.1L192 0c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64zM64 128c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-32-48 0 0 32c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l32 0 0-48-32 0z"]};function qw(e,t,n){var r=this,o=w.useRef(null),i=w.useRef(0),l=w.useRef(null),a=w.useRef([]),s=w.useRef(),u=w.useRef(),c=w.useRef(e),f=w.useRef(!0);c.current=e;var d=typeof window<"u",p=!t&&t!==0&&d;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var y=!!(n=n||{}).leading,h=!("trailing"in n)||!!n.trailing,k="maxWait"in n,m="debounceOnServer"in n&&!!n.debounceOnServer,g=k?Math.max(+n.maxWait||0,t):null;w.useEffect(function(){return f.current=!0,function(){f.current=!1}},[]);var v=w.useMemo(function(){var E=function(R){var F=a.current,Y=s.current;return a.current=s.current=null,i.current=R,u.current=c.current.apply(Y,F)},N=function(R,F){p&&cancelAnimationFrame(l.current),l.current=p?requestAnimationFrame(R):setTimeout(R,F)},_=function(R){if(!f.current)return!1;var F=R-o.current;return!o.current||F>=t||F<0||k&&R-i.current>=g},j=function(R){return l.current=null,h&&a.current?E(R):(a.current=s.current=null,u.current)},L=function R(){var F=Date.now();if(_(F))return j(F);if(f.current){var Y=t-(F-o.current),Q=k?Math.min(Y,g-(F-i.current)):Y;N(R,Q)}},M=function(){if(d||m){var R=Date.now(),F=_(R);if(a.current=[].slice.call(arguments),s.current=r,o.current=R,F){if(!l.current&&f.current)return i.current=o.current,N(L,t),y?E(o.current):u.current;if(k)return N(L,t),E(o.current)}return l.current||N(L,t),u.current}};return M.cancel=function(){l.current&&(p?cancelAnimationFrame(l.current):clearTimeout(l.current)),i.current=0,a.current=o.current=s.current=l.current=null},M.isPending=function(){return!!l.current},M.flush=function(){return l.current?j(Date.now()):u.current},M},[y,k,t,g,h,p,d,m]);return v}function Kw(e,t){return e===t}function Gw(e,t,n){var r=n&&n.equalityFn||Kw,o=w.useRef(e),i=w.useState({})[1],l=qw(w.useCallback(function(s){o.current=s,i({})},[i]),t,n),a=w.useRef(e);return r(a.current,e)||(l(e),a.current=e),[o.current,l]}const Xw=(e,t)=>{if(!e.length)return null;const n=t.toLowerCase(),r=t?e.filter(l=>l.name.toLowerCase().includes(n)):e;if(!r.length)return null;const o={};return r.forEach(l=>{const a=l.name.split("/");let s="";a.forEach((u,c)=>{var p;const f=s?`${s}/${u}`:u,d=c===a.length-1;if(!o[f]){const y=t?Zw(u,t):u;o[f]={value:f,label:y,...d?{}:{children:[]}},s&&o[s]&&((p=o[s].children)==null||p.push(o[f]))}s=f})}),((l=[])=>l.sort((a,s)=>{const u=!!a.children,c=!!s.children;return u===c?a.value.localeCompare(s.value):u?-1:1}))(Object.values(o).filter(l=>!l.value.includes("/")))[0]||null},Zw=(e,t)=>{if(!t)return e;const n=e.toLowerCase().indexOf(t.toLowerCase());return n===-1?e:z.jsxs(z.Fragment,{children:[e.slice(0,n),z.jsx("span",{className:"font-semibold",children:e.slice(n,n+t.length)}),e.slice(n+t.length)]})},Jw={check:z.jsx(Le,{icon:Yd}),uncheck:z.jsx(Le,{icon:Vw}),halfCheck:z.jsx(Le,{icon:Yd}),expandClose:z.jsx(Le,{icon:Fw}),expandOpen:z.jsx(Le,{icon:zw}),expandAll:z.jsx(Le,{icon:Ww}),collapseAll:z.jsx(Le,{icon:Dw}),parentClose:z.jsx(Le,{icon:Bw}),parentOpen:z.jsx(Le,{icon:b0}),leaf:z.jsx(Le,{icon:Qw})};function ek({files:e,checked:t,onCheckedChange:n,search:r}){const[o,i]=w.useState([]),[l]=Gw(r,350,{leading:!1}),a=w.useMemo(()=>Xw(e,l),[e,l]);return w.useEffect(()=>{if(!a)return;if(!l){i([a.value]);return}const s=new Set,u=c=>{var f;s.add(c.value),(f=c.children)==null||f.forEach(u)};u(a),i(Array.from(s))},[l,a]),a?z.jsx(_2,{icons:Jw,nodes:[a],checked:t,expanded:o,onCheck:n,onExpand:i,showExpandAll:!1}):z.jsxs("div",{className:"flex flex-col justify-center items-center min-h-44 mb-8",children:[z.jsx(Le,{icon:b0,className:"text-gray-400 w-8 h-8"}),z.jsx("span",{className:"text-gray-400 text-xl mt-1",children:"No files found"})]})}function qd({onClick:e,children:t,size:n="md",type:r="primary",disabled:o=!1,className:i=""}){const l={sm:"text-xs px-3 py-2",md:"text-sm px-5 py-2.5",lg:"text-base px-6 py-3"},a={primary:"text-white bg-blue-700 hover:bg-blue-800 focus:ring-blue-300",secondary:"text-gray-900 bg-white border border-gray-300 hover:bg-gray-100 focus:ring-gray-200"},s="text-gray-400 bg-gray-400 cursor-not-allowed hover:bg-gray-500 focus:ring-0";return z.jsx("button",{type:"button",onClick:e,disabled:o,className:`font-medium rounded-lg focus:ring-4 ${l[n]} ${a[r]} ${o?s:""} ${i}`,children:t})}function tk(e){const t=["Bytes","KB","MB","GB","TB"];if(e===0)return"0 Byte";const n=parseInt(Math.floor(Math.log(e)/Math.log(1e3)).toString());if(n===0)return`${e} ${t[n]}`;const r=e/1e3**n;return r%1===0?`${r} ${t[n]}`:`${r.toFixed(1)} ${t[n]}`}function nk({className:e}){return z.jsxs("svg",{"aria-hidden":"true",className:`${e||""} w-14 h-14 text-gray-200 animate-spin fill-blue-600`,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[z.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),z.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})}function E0({onClick:e}){return z.jsxs("button",{type:"button",onClick:e,className:"bg-transparent hover:bg-gray-200 text-gray-400 hover:text-gray-900 rounded-lg text-sm w-8 h-8 inline-flex justify-center items-center","data-modal-hide":"default-modal",children:[z.jsx("svg",{className:"w-3 h-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14",children:z.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})}),z.jsx("span",{className:"sr-only",children:"Close"})]})}let rk={data:""},ok=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||rk,ik=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,lk=/\/\*[^]*?\*\/|  +/g,Kd=/\n+/g,vn=(e,t)=>{let n="",r="",o="";for(let i in e){let l=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+l+";":r+=i[1]=="f"?vn(l,i):i+"{"+vn(l,i[1]=="k"?"":t)+"}":typeof l=="object"?r+=vn(l,t?t.replace(/([^,])+/g,a=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,s=>/&/.test(s)?s.replace(/&/g,a):a?a+" "+s:s)):i):l!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=vn.p?vn.p(i,l):i+":"+l+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Qt={},S0=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+S0(e[n]);return t}return e},ak=(e,t,n,r,o)=>{let i=S0(e),l=Qt[i]||(Qt[i]=(s=>{let u=0,c=11;for(;u<s.length;)c=101*c+s.charCodeAt(u++)>>>0;return"go"+c})(i));if(!Qt[l]){let s=i!==e?e:(u=>{let c,f,d=[{}];for(;c=ik.exec(u.replace(lk,""));)c[4]?d.shift():c[3]?(f=c[3].replace(Kd," ").trim(),d.unshift(d[0][f]=d[0][f]||{})):d[0][c[1]]=c[2].replace(Kd," ").trim();return d[0]})(e);Qt[l]=vn(o?{["@keyframes "+l]:s}:s,n?"":"."+l)}let a=n&&Qt.g?Qt.g:null;return n&&(Qt.g=Qt[l]),((s,u,c,f)=>{f?u.data=u.data.replace(f,s):u.data.indexOf(s)===-1&&(u.data=c?s+u.data:u.data+s)})(Qt[l],t,r,a),l},sk=(e,t,n)=>e.reduce((r,o,i)=>{let l=t[i];if(l&&l.call){let a=l(n),s=a&&a.props&&a.props.className||/^go/.test(a)&&a;l=s?"."+s:a&&typeof a=="object"?a.props?"":vn(a,""):a===!1?"":a}return r+o+(l??"")},"");function pa(e){let t=this||{},n=e.call?e(t.p):e;return ak(n.unshift?n.raw?sk(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,ok(t.target),t.g,t.o,t.k)}let C0,_u,Nu;pa.bind({g:1});let an=pa.bind({k:1});function uk(e,t,n,r){vn.p=t,C0=e,_u=n,Nu=r}function Mn(e,t){let n=this||{};return function(){let r=arguments;function o(i,l){let a=Object.assign({},i),s=a.className||o.className;n.p=Object.assign({theme:_u&&_u()},a),n.o=/ *go\d+/.test(s),a.className=pa.apply(n,r)+(s?" "+s:""),t&&(a.ref=l);let u=e;return e[0]&&(u=a.as||e,delete a.as),Nu&&u[0]&&Nu(a),C0(u,a)}return t?t(o):o}}var ck=e=>typeof e=="function",Ml=(e,t)=>ck(e)?e(t):e,fk=(()=>{let e=0;return()=>(++e).toString()})(),P0=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),dk=20,il=new Map,pk=1e3,Gd=e=>{if(il.has(e))return;let t=setTimeout(()=>{il.delete(e),mr({type:4,toastId:e})},pk);il.set(e,t)},hk=e=>{let t=il.get(e);t&&clearTimeout(t)},Tu=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,dk)};case 1:return t.toast.id&&hk(t.toast.id),{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:n}=t;return e.toasts.find(i=>i.id===n.id)?Tu(e,{type:1,toast:n}):Tu(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?Gd(r):e.toasts.forEach(i=>{Gd(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===r||r===void 0?{...i,visible:!1}:i)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(i=>({...i,pauseDuration:i.pauseDuration+o}))}}},ll=[],al={toasts:[],pausedAt:void 0},mr=e=>{al=Tu(al,e),ll.forEach(t=>{t(al)})},mk={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},gk=(e={})=>{let[t,n]=w.useState(al);w.useEffect(()=>(ll.push(n),()=>{let o=ll.indexOf(n);o>-1&&ll.splice(o,1)}),[t]);let r=t.toasts.map(o=>{var i,l;return{...e,...e[o.type],...o,duration:o.duration||((i=e[o.type])==null?void 0:i.duration)||(e==null?void 0:e.duration)||mk[o.type],style:{...e.style,...(l=e[o.type])==null?void 0:l.style,...o.style}}});return{...t,toasts:r}},yk=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||fk()}),gi=e=>(t,n)=>{let r=yk(t,e,n);return mr({type:2,toast:r}),r.id},nt=(e,t)=>gi("blank")(e,t);nt.error=gi("error");nt.success=gi("success");nt.loading=gi("loading");nt.custom=gi("custom");nt.dismiss=e=>{mr({type:3,toastId:e})};nt.remove=e=>mr({type:4,toastId:e});nt.promise=(e,t,n)=>{let r=nt.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(o=>(nt.success(Ml(t.success,o),{id:r,...n,...n==null?void 0:n.success}),o)).catch(o=>{nt.error(Ml(t.error,o),{id:r,...n,...n==null?void 0:n.error})}),e};var vk=(e,t)=>{mr({type:1,toast:{id:e,height:t}})},xk=()=>{mr({type:5,time:Date.now()})},wk=e=>{let{toasts:t,pausedAt:n}=gk(e);w.useEffect(()=>{if(n)return;let i=Date.now(),l=t.map(a=>{if(a.duration===1/0)return;let s=(a.duration||0)+a.pauseDuration-(i-a.createdAt);if(s<0){a.visible&&nt.dismiss(a.id);return}return setTimeout(()=>nt.dismiss(a.id),s)});return()=>{l.forEach(a=>a&&clearTimeout(a))}},[t,n]);let r=w.useCallback(()=>{n&&mr({type:6,time:Date.now()})},[n]),o=w.useCallback((i,l)=>{let{reverseOrder:a=!1,gutter:s=8,defaultPosition:u}=l||{},c=t.filter(p=>(p.position||u)===(i.position||u)&&p.height),f=c.findIndex(p=>p.id===i.id),d=c.filter((p,y)=>y<f&&p.visible).length;return c.filter(p=>p.visible).slice(...a?[d+1]:[0,d]).reduce((p,y)=>p+(y.height||0)+s,0)},[t]);return{toasts:t,handlers:{updateHeight:vk,startPause:xk,endPause:r,calculateOffset:o}}},kk=an`
from {
  transform: scale(0) rotate(45deg);
	opacity: 0;
}
to {
 transform: scale(1) rotate(45deg);
  opacity: 1;
}`,bk=an`
from {
  transform: scale(0);
  opacity: 0;
}
to {
  transform: scale(1);
  opacity: 1;
}`,Ek=an`
from {
  transform: scale(0) rotate(90deg);
	opacity: 0;
}
to {
  transform: scale(1) rotate(90deg);
	opacity: 1;
}`,Sk=Mn("div")`
  width: 20px;
  opacity: 0;
  height: 20px;
  border-radius: 10px;
  background: ${e=>e.primary||"#ff4b4b"};
  position: relative;
  transform: rotate(45deg);

  animation: ${kk} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: 100ms;

  &:after,
  &:before {
    content: '';
    animation: ${bk} 0.15s ease-out forwards;
    animation-delay: 150ms;
    position: absolute;
    border-radius: 3px;
    opacity: 0;
    background: ${e=>e.secondary||"#fff"};
    bottom: 9px;
    left: 4px;
    height: 2px;
    width: 12px;
  }

  &:before {
    animation: ${Ek} 0.15s ease-out forwards;
    animation-delay: 180ms;
    transform: rotate(90deg);
  }
`,Ck=an`
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
`,Pk=Mn("div")`
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  border: 2px solid;
  border-radius: 100%;
  border-color: ${e=>e.secondary||"#e0e0e0"};
  border-right-color: ${e=>e.primary||"#616161"};
  animation: ${Ck} 1s linear infinite;
`,Ok=an`
from {
  transform: scale(0) rotate(45deg);
	opacity: 0;
}
to {
  transform: scale(1) rotate(45deg);
	opacity: 1;
}`,_k=an`
0% {
	height: 0;
	width: 0;
	opacity: 0;
}
40% {
  height: 0;
	width: 6px;
	opacity: 1;
}
100% {
  opacity: 1;
  height: 10px;
}`,Nk=Mn("div")`
  width: 20px;
  opacity: 0;
  height: 20px;
  border-radius: 10px;
  background: ${e=>e.primary||"#61d345"};
  position: relative;
  transform: rotate(45deg);

  animation: ${Ok} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: 100ms;
  &:after {
    content: '';
    box-sizing: border-box;
    animation: ${_k} 0.2s ease-out forwards;
    opacity: 0;
    animation-delay: 200ms;
    position: absolute;
    border-right: 2px solid;
    border-bottom: 2px solid;
    border-color: ${e=>e.secondary||"#fff"};
    bottom: 6px;
    left: 6px;
    height: 10px;
    width: 6px;
  }
`,Tk=Mn("div")`
  position: absolute;
`,jk=Mn("div")`
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 20px;
  min-height: 20px;
`,Lk=an`
from {
  transform: scale(0.6);
  opacity: 0.4;
}
to {
  transform: scale(1);
  opacity: 1;
}`,Ak=Mn("div")`
  position: relative;
  transform: scale(0.6);
  opacity: 0.4;
  min-width: 20px;
  animation: ${Lk} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
`,$k=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?w.createElement(Ak,null,t):t:n==="blank"?null:w.createElement(jk,null,w.createElement(Pk,{...r}),n!=="loading"&&w.createElement(Tk,null,n==="error"?w.createElement(Sk,{...r}):w.createElement(Nk,{...r})))},Rk=e=>`
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
`,zk=e=>`
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
`,Ik="0%{opacity:0;} 100%{opacity:1;}",Fk="0%{opacity:1;} 100%{opacity:0;}",Mk=Mn("div")`
  display: flex;
  align-items: center;
  background: #fff;
  color: #363636;
  line-height: 1.3;
  will-change: transform;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
  max-width: 350px;
  pointer-events: auto;
  padding: 8px 10px;
  border-radius: 8px;
`,Dk=Mn("div")`
  display: flex;
  justify-content: center;
  margin: 4px 10px;
  color: inherit;
  flex: 1 1 auto;
  white-space: pre-line;
`,Uk=(e,t)=>{let n=e.includes("top")?1:-1,[r,o]=P0()?[Ik,Fk]:[Rk(n),zk(n)];return{animation:t?`${an(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${an(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},Bk=w.memo(({toast:e,position:t,style:n,children:r})=>{let o=e.height?Uk(e.position||t||"top-center",e.visible):{opacity:0},i=w.createElement($k,{toast:e}),l=w.createElement(Dk,{...e.ariaProps},Ml(e.message,e));return w.createElement(Mk,{className:e.className,style:{...o,...n,...e.style}},typeof r=="function"?r({icon:i,message:l}):w.createElement(w.Fragment,null,i,l))});uk(w.createElement);var Hk=({id:e,className:t,style:n,onHeightUpdate:r,children:o})=>{let i=w.useCallback(l=>{if(l){let a=()=>{let s=l.getBoundingClientRect().height;r(e,s)};a(),new MutationObserver(a).observe(l,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return w.createElement("div",{ref:i,className:t,style:n},o)},Wk=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:P0()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...o}},Vk=pa`
  z-index: 9999;
  > * {
    pointer-events: auto;
  }
`,Bi=16,Qk=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:o,containerStyle:i,containerClassName:l})=>{let{toasts:a,handlers:s}=wk(n);return w.createElement("div",{style:{position:"fixed",zIndex:9999,top:Bi,left:Bi,right:Bi,bottom:Bi,pointerEvents:"none",...i},className:l,onMouseEnter:s.startPause,onMouseLeave:s.endPause},a.map(u=>{let c=u.position||t,f=s.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),d=Wk(c,f);return w.createElement(Hk,{id:u.id,key:u.id,onHeightUpdate:s.updateHeight,className:u.visible?Vk:"",style:d},u.type==="custom"?Ml(u.message,u):o?o(u):w.createElement(Bk,{toast:u,position:c}))}))},O0=nt;function Hc(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let gr=Hc();function _0(e){gr=e}const N0=/[&<>"']/,Yk=new RegExp(N0.source,"g"),T0=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,qk=new RegExp(T0.source,"g"),Kk={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Xd=e=>Kk[e];function Je(e,t){if(t){if(N0.test(e))return e.replace(Yk,Xd)}else if(T0.test(e))return e.replace(qk,Xd);return e}const Gk=/(^|[^\[])\^/g;function se(e,t){let n=typeof e=="string"?e:e.source;t=t||"";const r={replace:(o,i)=>{let l=typeof i=="string"?i:i.source;return l=l.replace(Gk,"$1"),n=n.replace(o,l),r},getRegex:()=>new RegExp(n,t)};return r}function Zd(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const Fo={exec:()=>null};function Jd(e,t){const n=e.replace(/\|/g,(i,l,a)=>{let s=!1,u=l;for(;--u>=0&&a[u]==="\\";)s=!s;return s?"|":" |"}),r=n.split(/ \|/);let o=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].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(/\\\|/g,"|");return r}function yo(e,t,n){const r=e.length;if(r===0)return"";let o=0;for(;o<r;){const i=e.charAt(r-o-1);if(i===t&&!n)o++;else if(i!==t&&n)o++;else break}return e.slice(0,r-o)}function Xk(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 ep(e,t,n,r){const o=t.href,i=t.title?Je(t.title):null,l=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){r.state.inLink=!0;const a={type:"link",raw:n,href:o,title:i,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,a}return{type:"image",raw:n,href:o,title:i,text:Je(l)}}function Zk(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const r=n[1];return t.split(`
`).map(o=>{const i=o.match(/^\s+/);if(i===null)return o;const[l]=i;return l.length>=r.length?o.slice(r.length):o}).join(`
`)}class Dl{constructor(t){le(this,"options");le(this,"rules");le(this,"lexer");this.options=t||gr}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(/^(?: {1,4}| {0,3}\t)/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:yo(r,`
`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],o=Zk(r,n[3]||"");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(/#$/.test(r)){const o=yo(r,"#");(this.options.pedantic||!o||/ $/.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:yo(n[0],`
`)}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let r=yo(n[0],`
`).split(`
`),o="",i="";const l=[];for(;r.length>0;){let a=!1;const s=[];let u;for(u=0;u<r.length;u++)if(/^ {0,3}>/.test(r[u]))s.push(r[u]),a=!0;else if(!a)s.push(r[u]);else break;r=r.slice(u);const c=s.join(`
`),f=c.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
    $1`).replace(/^ {0,3}>[ \t]?/gm,"");o=o?`${o}
${c}`:c,i=i?`${i}
${f}`:f;const d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(f,l,!0),this.lexer.state.top=d,r.length===0)break;const p=l[l.length-1];if((p==null?void 0:p.type)==="code")break;if((p==null?void 0:p.type)==="blockquote"){const y=p,h=y.raw+`
`+r.join(`
`),k=this.blockquote(h);l[l.length-1]=k,o=o.substring(0,o.length-y.raw.length)+k.raw,i=i.substring(0,i.length-y.text.length)+k.text;break}else if((p==null?void 0:p.type)==="list"){const y=p,h=y.raw+`
`+r.join(`
`),k=this.list(h);l[l.length-1]=k,o=o.substring(0,o.length-p.raw.length)+k.raw,i=i.substring(0,i.length-y.raw.length)+k.raw,r=h.substring(l[l.length-1].raw.length).split(`
`);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=new RegExp(`^( {0,3}${r})((?:[	 ][^\\n]*)?(?:\\n|$))`);let a=!1;for(;t;){let s=!1,u="",c="";if(!(n=l.exec(t))||this.rules.block.hr.test(t))break;u=n[0],t=t.substring(u.length);let f=n[2].split(`
`,1)[0].replace(/^\t+/,m=>" ".repeat(3*m.length)),d=t.split(`
`,1)[0],p=!f.trim(),y=0;if(this.options.pedantic?(y=2,c=f.trimStart()):p?y=n[1].length+1:(y=n[2].search(/[^ ]/),y=y>4?1:y,c=f.slice(y),y+=n[1].length),p&&/^[ \t]*$/.test(d)&&(u+=d+`
`,t=t.substring(d.length+1),s=!0),!s){const m=new RegExp(`^ {0,${Math.min(3,y-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),g=new RegExp(`^ {0,${Math.min(3,y-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),v=new RegExp(`^ {0,${Math.min(3,y-1)}}(?:\`\`\`|~~~)`),E=new RegExp(`^ {0,${Math.min(3,y-1)}}#`),N=new RegExp(`^ {0,${Math.min(3,y-1)}}<[a-z].*>`,"i");for(;t;){const _=t.split(`
`,1)[0];let j;if(d=_,this.options.pedantic?(d=d.replace(/^ {1,4}(?=( {4})*[^ ])/g,"  "),j=d):j=d.replace(/\t/g,"    "),v.test(d)||E.test(d)||N.test(d)||m.test(d)||g.test(d))break;if(j.search(/[^ ]/)>=y||!d.trim())c+=`
`+j.slice(y);else{if(p||f.replace(/\t/g,"    ").search(/[^ ]/)>=4||v.test(f)||E.test(f)||g.test(f))break;c+=`
`+d}!p&&!d.trim()&&(p=!0),u+=_+`
`,t=t.substring(_.length+1),f=j.slice(y)}}i.loose||(a?i.loose=!0:/\n[ \t]*\n[ \t]*$/.test(u)&&(a=!0));let h=null,k;this.options.gfm&&(h=/^\[[ xX]\] /.exec(c),h&&(k=h[0]!=="[ ] ",c=c.replace(/^\[[ xX]\] +/,""))),i.items.push({type:"list_item",raw:u,task:!!h,checked:k,loose:!1,text:c,tokens:[]}),i.raw+=u}i.items[i.items.length-1].raw=i.items[i.items.length-1].raw.trimEnd(),i.items[i.items.length-1].text=i.items[i.items.length-1].text.trimEnd(),i.raw=i.raw.trimEnd();for(let s=0;s<i.items.length;s++)if(this.lexer.state.top=!1,i.items[s].tokens=this.lexer.blockTokens(i.items[s].text,[]),!i.loose){const u=i.items[s].tokens.filter(f=>f.type==="space"),c=u.length>0&&u.some(f=>/\n.*\n/.test(f.raw));i.loose=c}if(i.loose)for(let s=0;s<i.items.length;s++)i.items[s].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(/\s+/g," "),o=n[2]?n[2].replace(/^<(.*)>$/,"$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){const n=this.rules.block.table.exec(t);if(!n||!/[:|]/.test(n[2]))return;const r=Jd(n[1]),o=n[2].replace(/^\||\| *$/g,"").split("|"),i=n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(`
`):[],l={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===o.length){for(const a of o)/^ *-+: *$/.test(a)?l.align.push("right"):/^ *:-+: *$/.test(a)?l.align.push("center"):/^ *:-+ *$/.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(Jd(a,l.header.length).map((s,u)=>({text:s,tokens:this.lexer.inline(s),header:!1,align:l.align[u]})));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)===`
`?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:Je(n[1])}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&/^<a /i.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.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&&/^</.test(r)){if(!/>$/.test(r))return;const l=yo(r.slice(0,-1),"\\");if((r.length-l.length)%2===0)return}else{const l=Xk(n[2],"()");if(l>-1){const s=(n[0].indexOf("!")===0?5:4)+n[1].length+l;n[2]=n[2].substring(0,l),n[0]=n[0].substring(0,s).trim(),n[3]=""}}let o=n[2],i="";if(this.options.pedantic){const l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);l&&(o=l[1],i=l[3])}else i=n[3]?n[3].slice(1,-1):"";return o=o.trim(),/^</.test(o)&&(this.options.pedantic&&!/>$/.test(r)?o=o.slice(1):o=o.slice(1,-1)),ep(n,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer)}}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(/\s+/g," "),i=n[o.toLowerCase()];if(!i){const l=r[0].charAt(0);return{type:"text",raw:l,text:l}}return ep(r,i,r[0],this.lexer)}}emStrong(t,n,r=""){let o=this.rules.inline.emStrongLDelim.exec(t);if(!o||o[3]&&r.match(/[\p{L}\p{N}]/u))return;if(!(o[1]||o[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const l=[...o[0]].length-1;let a,s,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(a=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!a)continue;if(s=[...a].length,o[3]||o[4]){u+=s;continue}else if((o[5]||o[6])&&l%3&&!((l+s)%3)){c+=s;continue}if(u-=s,u>0)continue;s=Math.min(s,s+u+c);const d=[...o[0]][0].length,p=t.slice(0,l+o.index+d+s);if(Math.min(l,s)%2){const h=p.slice(1,-1);return{type:"em",raw:p,text:h,tokens:this.lexer.inlineTokens(h)}}const y=p.slice(2,-2);return{type:"strong",raw:p,text:y,tokens:this.lexer.inlineTokens(y)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(/\n/g," ");const o=/[^ ]/.test(r),i=/^ /.test(r)&&/ $/.test(r);return o&&i&&(r=r.substring(1,r.length-1)),r=Je(r,!0),{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=Je(n[1]),o="mailto:"+r):(r=Je(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=Je(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=Je(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){let r;return this.lexer.state.inRawBlock?r=n[0]:r=Je(n[0]),{type:"text",raw:n[0],text:r}}}}const Jk=/^(?:[ \t]*(?:\n|$))+/,e4=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,t4=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,yi=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,n4=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,j0=/(?:[*+-]|\d{1,9}[.)])/,L0=se(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,j0).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(),Wc=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,r4=/^[^\n]+/,Vc=/(?!\s*\])(?:\\.|[^\[\]\\])+/,o4=se(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Vc).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),i4=se(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,j0).getRegex(),ha="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",Qc=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,l4=se("^ {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",Qc).replace("tag",ha).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),A0=se(Wc).replace("hr",yi).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",ha).getRegex(),a4=se(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",A0).getRegex(),Yc={blockquote:a4,code:e4,def:o4,fences:t4,heading:n4,hr:yi,html:l4,lheading:L0,list:i4,newline:Jk,paragraph:A0,table:Fo,text:r4},tp=se("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",yi).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",ha).getRegex(),s4={...Yc,table:tp,paragraph:se(Wc).replace("hr",yi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",tp).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",ha).getRegex()},u4={...Yc,html:se(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Qc).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:Fo,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:se(Wc).replace("hr",yi).replace("heading",` *#{1,6} *[^
]`).replace("lheading",L0).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},$0=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,c4=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,R0=/^( {2,}|\\)\n(?!\s*$)/,f4=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,vi="\\p{P}\\p{S}",d4=se(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,vi).getRegex(),p4=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,h4=se(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,vi).getRegex(),m4=se("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,vi).getRegex(),g4=se("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,vi).getRegex(),y4=se(/\\([punct])/,"gu").replace(/punct/g,vi).getRegex(),v4=se(/^<(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(),x4=se(Qc).replace("(?:-->|$)","-->").getRegex(),w4=se("^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",x4).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ul=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,k4=se(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Ul).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),z0=se(/^!?\[(label)\]\[(ref)\]/).replace("label",Ul).replace("ref",Vc).getRegex(),I0=se(/^!?\[(ref)\](?:\[\])?/).replace("ref",Vc).getRegex(),b4=se("reflink|nolink(?!\\()","g").replace("reflink",z0).replace("nolink",I0).getRegex(),qc={_backpedal:Fo,anyPunctuation:y4,autolink:v4,blockSkip:p4,br:R0,code:c4,del:Fo,emStrongLDelim:h4,emStrongRDelimAst:m4,emStrongRDelimUnd:g4,escape:$0,link:k4,nolink:I0,punctuation:d4,reflink:z0,reflinkSearch:b4,tag:w4,text:f4,url:Fo},E4={...qc,link:se(/^!?\[(label)\]\((.*?)\)/).replace("label",Ul).getRegex(),reflink:se(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ul).getRegex()},ju={...qc,escape:se($0).replace("])","~|])").getRegex(),url:se(/^((?: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\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.!#$%&'*+\/=?_`{\|}~-]+@)))/},S4={...ju,br:se(R0).replace("{2,}","*").getRegex(),text:se(ju.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Hi={normal:Yc,gfm:s4,pedantic:u4},vo={normal:qc,gfm:ju,breaks:S4,pedantic:E4};class yt{constructor(t){le(this,"tokens");le(this,"options");le(this,"state");le(this,"tokenizer");le(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||gr,this.options.tokenizer=this.options.tokenizer||new Dl,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={block:Hi.normal,inline:vo.normal};this.options.pedantic?(n.block=Hi.pedantic,n.inline=vo.pedantic):this.options.gfm&&(n.block=Hi.gfm,this.options.breaks?n.inline=vo.breaks:n.inline=vo.gfm),this.tokenizer.rules=n}static get rules(){return{block:Hi,inline:vo}}static lex(t,n){return new yt(n).lex(t)}static lexInline(t,n){return new yt(n).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
`),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){this.options.pedantic&&(t=t.replace(/\t/g,"    ").replace(/^ +$/gm,""));let o,i,l;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>(o=a.call({lexer:this},t,n))?(t=t.substring(o.raw.length),n.push(o),!0):!1))){if(o=this.tokenizer.space(t)){t=t.substring(o.raw.length),o.raw.length===1&&n.length>0?n[n.length-1].raw+=`
`:n.push(o);continue}if(o=this.tokenizer.code(t)){t=t.substring(o.raw.length),i=n[n.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
`+o.raw,i.text+=`
`+o.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text):n.push(o);continue}if(o=this.tokenizer.fences(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.heading(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.hr(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.blockquote(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.list(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.html(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.def(t)){t=t.substring(o.raw.length),i=n[n.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
`+o.raw,i.text+=`
`+o.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title});continue}if(o=this.tokenizer.table(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.lheading(t)){t=t.substring(o.raw.length),n.push(o);continue}if(l=t,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const s=t.slice(1);let u;this.options.extensions.startBlock.forEach(c=>{u=c.call({lexer:this},s),typeof u=="number"&&u>=0&&(a=Math.min(a,u))}),a<1/0&&a>=0&&(l=t.substring(0,a+1))}if(this.state.top&&(o=this.tokenizer.paragraph(l))){i=n[n.length-1],r&&(i==null?void 0:i.type)==="paragraph"?(i.raw+=`
`+o.raw,i.text+=`
`+o.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):n.push(o),r=l.length!==t.length,t=t.substring(o.raw.length);continue}if(o=this.tokenizer.text(t)){t=t.substring(o.raw.length),i=n[n.length-1],i&&i.type==="text"?(i.raw+=`
`+o.raw,i.text+=`
`+o.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):n.push(o);continue}if(t){const a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let r,o,i,l=t,a,s,u;if(this.tokens.links){const c=Object.keys(this.tokens.links);if(c.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(l))!=null;)c.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(l))!=null;)l=l.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(l))!=null;)l=l.slice(0,a.index)+"++"+l.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(s||(u=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(c=>(r=c.call({lexer:this},t,n))?(t=t.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.escape(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.tag(t)){t=t.substring(r.raw.length),o=n[n.length-1],o&&r.type==="text"&&o.type==="text"?(o.raw+=r.raw,o.text+=r.text):n.push(r);continue}if(r=this.tokenizer.link(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length),o=n[n.length-1],o&&r.type==="text"&&o.type==="text"?(o.raw+=r.raw,o.text+=r.text):n.push(r);continue}if(r=this.tokenizer.emStrong(t,l,u)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.codespan(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.br(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.del(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.autolink(t)){t=t.substring(r.raw.length),n.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(t))){t=t.substring(r.raw.length),n.push(r);continue}if(i=t,this.options.extensions&&this.options.extensions.startInline){let c=1/0;const f=t.slice(1);let d;this.options.extensions.startInline.forEach(p=>{d=p.call({lexer:this},f),typeof d=="number"&&d>=0&&(c=Math.min(c,d))}),c<1/0&&c>=0&&(i=t.substring(0,c+1))}if(r=this.tokenizer.inlineText(i)){t=t.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(u=r.raw.slice(-1)),s=!0,o=n[n.length-1],o&&o.type==="text"?(o.raw+=r.raw,o.text+=r.text):n.push(r);continue}if(t){const c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return n}}class Bl{constructor(t){le(this,"options");le(this,"parser");this.options=t||gr}space(t){return""}code({text:t,lang:n,escaped:r}){var l;const o=(l=(n||"").match(/^\S*/))==null?void 0:l[0],i=t.replace(/\n$/,"")+`
`;return o?'<pre><code class="language-'+Je(o)+'">'+(r?i:Je(i,!0))+`</code></pre>
`:"<pre><code>"+(r?i:Je(i,!0))+`</code></pre>
`}blockquote({tokens:t}){return`<blockquote>
${this.parser.parse(t)}</blockquote>
`}html({text:t}){return t}heading({tokens:t,depth:n}){return`<h${n}>${this.parser.parseInline(t)}</h${n}>
`}hr(t){return`<hr>
`}list(t){const n=t.ordered,r=t.start;let o="";for(let a=0;a<t.items.length;a++){const s=t.items[a];o+=this.listitem(s)}const i=n?"ol":"ul",l=n&&r!==1?' start="'+r+'"':"";return"<"+i+l+`>
`+o+"</"+i+`>
`}listitem(t){let n="";if(t.task){const r=this.checkbox({checked:!!t.checked});t.loose?t.tokens.length>0&&t.tokens[0].type==="paragraph"?(t.tokens[0].text=r+" "+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=r+" "+t.tokens[0].tokens[0].text)):t.tokens.unshift({type:"text",raw:r+" ",text:r+" "}):n+=r+" "}return n+=this.parser.parse(t.tokens,!!t.loose),`<li>${n}</li>
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
`}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 a=0;a<l.length;a++)r+=this.tablecell(l[a]);o+=this.tablerow({text:r})}return o&&(o=`<tbody>${o}</tbody>`),`<table>
<thead>
`+n+`</thead>
`+o+`</table>
`}tablerow({text:t}){return`<tr>
${t}</tr>
`}tablecell(t){const n=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+n+`</${r}>
`}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>${t}</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=Zd(t);if(i===null)return o;t=i;let l='<a href="'+t+'"';return n&&(l+=' title="'+n+'"'),l+=">"+o+"</a>",l}image({href:t,title:n,text:r}){const o=Zd(t);if(o===null)return r;t=o;let i=`<img src="${t}" alt="${r}"`;return n&&(i+=` title="${n}"`),i+=">",i}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):t.text}}class Kc{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 vt{constructor(t){le(this,"options");le(this,"renderer");le(this,"textRenderer");this.options=t||gr,this.options.renderer=this.options.renderer||new Bl,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Kc}static parse(t,n){return new vt(n).parse(t)}static parseInline(t,n){return new vt(n).parseInline(t)}parse(t,n=!0){let r="";for(let o=0;o<t.length;o++){const i=t[o];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){const a=i,s=this.options.extensions.renderers[a.type].call({parser:this},a);if(s!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(a.type)){r+=s||"";continue}}const l=i;switch(l.type){case"space":{r+=this.renderer.space(l);continue}case"hr":{r+=this.renderer.hr(l);continue}case"heading":{r+=this.renderer.heading(l);continue}case"code":{r+=this.renderer.code(l);continue}case"table":{r+=this.renderer.table(l);continue}case"blockquote":{r+=this.renderer.blockquote(l);continue}case"list":{r+=this.renderer.list(l);continue}case"html":{r+=this.renderer.html(l);continue}case"paragraph":{r+=this.renderer.paragraph(l);continue}case"text":{let a=l,s=this.renderer.text(a);for(;o+1<t.length&&t[o+1].type==="text";)a=t[++o],s+=`
`+this.renderer.text(a);n?r+=this.renderer.paragraph({type:"paragraph",raw:s,text:s,tokens:[{type:"text",raw:s,text:s}]}):r+=s;continue}default:{const a='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return r}parseInline(t,n){n=n||this.renderer;let r="";for(let o=0;o<t.length;o++){const i=t[o];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){const a=this.options.extensions.renderers[i.type].call({parser:this},i);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){r+=a||"";continue}}const l=i;switch(l.type){case"escape":{r+=n.text(l);break}case"html":{r+=n.html(l);break}case"link":{r+=n.link(l);break}case"image":{r+=n.image(l);break}case"strong":{r+=n.strong(l);break}case"em":{r+=n.em(l);break}case"codespan":{r+=n.codespan(l);break}case"br":{r+=n.br(l);break}case"del":{r+=n.del(l);break}case"text":{r+=n.text(l);break}default:{const a='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return r}}class Mo{constructor(t){le(this,"options");le(this,"block");this.options=t||gr}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?yt.lex:yt.lexInline}provideParser(){return this.block?vt.parse:vt.parseInline}}le(Mo,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class C4{constructor(...t){le(this,"defaults",Hc());le(this,"options",this.setOptions);le(this,"parse",this.parseMarkdown(!0));le(this,"parseInline",this.parseMarkdown(!1));le(this,"Parser",vt);le(this,"Renderer",Bl);le(this,"TextRenderer",Kc);le(this,"Lexer",yt);le(this,"Tokenizer",Dl);le(this,"Hooks",Mo);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 a=l;for(const s of a.header)r=r.concat(this.walkTokens(s.tokens,n));for(const s of a.rows)for(const u of s)r=r.concat(this.walkTokens(u.tokens,n));break}case"list":{const a=l;r=r.concat(this.walkTokens(a.items,n));break}default:{const a=l;(i=(o=this.defaults.extensions)==null?void 0:o.childTokens)!=null&&i[a.type]?this.defaults.extensions.childTokens[a.type].forEach(s=>{const u=a[s].flat(1/0);r=r.concat(this.walkTokens(u,n))}):a.tokens&&(r=r.concat(this.walkTokens(a.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(...a){let s=i.renderer.apply(this,a);return s===!1&&(s=l.apply(this,a)),s}: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 Bl(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 a=l,s=r.renderer[a],u=i[a];i[a]=(...c)=>{let f=s.apply(i,c);return f===!1&&(f=u.apply(i,c)),f||""}}o.renderer=i}if(r.tokenizer){const i=this.defaults.tokenizer||new Dl(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 a=l,s=r.tokenizer[a],u=i[a];i[a]=(...c)=>{let f=s.apply(i,c);return f===!1&&(f=u.apply(i,c)),f}}o.tokenizer=i}if(r.hooks){const i=this.defaults.hooks||new Mo;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 a=l,s=r.hooks[a],u=i[a];Mo.passThroughHooks.has(l)?i[a]=c=>{if(this.defaults.async)return Promise.resolve(s.call(i,c)).then(d=>u.call(i,d));const f=s.call(i,c);return u.call(i,f)}:i[a]=(...c)=>{let f=s.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(a){let s=[];return s.push(l.call(this,a)),i&&(s=s.concat(i.call(this,a))),s}}this.defaults={...this.defaults,...o}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return yt.lex(t,n??this.defaults)}parser(t,n){return vt.parse(t,n??this.defaults)}parseMarkdown(t){return(r,o)=>{const i={...o},l={...this.defaults,...i},a=this.onError(!!l.silent,!!l.async);if(this.defaults.async===!0&&i.async===!1)return a(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 a(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return a(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 s=l.hooks?l.hooks.provideLexer():t?yt.lex:yt.lexInline,u=l.hooks?l.hooks.provideParser():t?vt.parse:vt.parseInline;if(l.async)return Promise.resolve(l.hooks?l.hooks.preprocess(r):r).then(c=>s(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(a);try{l.hooks&&(r=l.hooks.preprocess(r));let c=s(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 a(c)}}}onError(t,n){return r=>{if(r.message+=`
Please report this to https://github.com/markedjs/marked.`,t){const o="<p>An error occurred:</p><pre>"+Je(r.message+"",!0)+"</pre>";return n?Promise.resolve(o):o}if(n)return Promise.reject(r);throw r}}}const fr=new C4;function ie(e,t){return fr.parse(e,t)}ie.options=ie.setOptions=function(e){return fr.setOptions(e),ie.defaults=fr.defaults,_0(ie.defaults),ie};ie.getDefaults=Hc;ie.defaults=gr;ie.use=function(...e){return fr.use(...e),ie.defaults=fr.defaults,_0(ie.defaults),ie};ie.walkTokens=function(e,t){return fr.walkTokens(e,t)};ie.parseInline=fr.parseInline;ie.Parser=vt;ie.parser=vt.parse;ie.Renderer=Bl;ie.TextRenderer=Kc;ie.Lexer=yt;ie.lexer=yt.lex;ie.Tokenizer=Dl;ie.Hooks=Mo;ie.parse=ie;ie.options;ie.setOptions;ie.use;ie.walkTokens;ie.parseInline;vt.parse;yt.lex;async function P4(e){await navigator.clipboard.writeText(e),O0.success("Copied to clipboard")}function O4({content:e,show:t,onClose:n}){const r=w.useMemo(()=>ie(e),[e]);return z.jsxs(Im,{maxWidth:"3xl",show:t,onClose:n,children:[z.jsxs("div",{className:"flex items-center p-3 px-4 border-b border-gray-200",children:[z.jsx("div",{className:"flex-grow flex",children:z.jsx("h3",{className:"text-base font-semibold",children:"Preview"})}),z.jsxs("button",{type:"button",title:"Copy",onClick:()=>P4(e),className:"text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 inline-flex justify-center items-center",children:[z.jsx(Le,{icon:Yw}),z.jsx("span",{className:"sr-only",children:"Copy"})]}),z.jsx(E0,{onClick:n})]}),z.jsx("div",{className:"p-4 overflow-auto max-h-[70vh]",children:z.jsx("div",{className:"prose prose-sm max-w-none",dangerouslySetInnerHTML:{__html:r}})})]})}function _4({onClick:e}){return z.jsx("button",{type:"button",title:"Back",onClick:e,className:"bg-transparent hover:bg-gray-200 text-gray-400 hover:text-gray-900 rounded-lg text-sm w-8 h-8 inline-flex justify-center items-center",children:z.jsxs("svg",{"aria-labelledby":"svg-inline--fa-title-vvoASVEMRUhw","data-prefix":"fas","data-icon":"arrow-left",className:"svg-inline--fa fa-arrow-left w-4 h-4",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:[z.jsx("title",{id:"svg-inline--fa-title-vvoASVEMRUhw",children:"Back"}),z.jsx("path",{fill:"currentColor",d:"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"})]})})}const np=["node_modules","bin","vendor",".git","vendor","venv","site-packages"];class N4{constructor(){le(this,"rootHandle",null);le(this,"rootName","")}async loadContents(t){return this.rootHandle=t,this.rootName=t.name,this}async getTextFileInfo(){if(!this.rootHandle)throw new Error("No directory loaded");const t=[];return await this.traverseDirectory(this.rootHandle,"",t),t}async traverseDirectory(t,n,r){for await(const[o,i]of t.entries()){const l=n?`${n}/${o}`:o,a=`${this.rootName}/${l}`;if(i.kind==="file"){const s=await i.getFile();ng(l)&&r.push({name:a,byteLength:s.size})}else if(i.kind==="directory"){if(n===""&&np.includes(o))continue;await this.traverseDirectory(i,l,r)}}}async getFileContents(t){if(!this.rootHandle)throw new Error("No directory loaded");const n={};for(const r of t){const o=await this.getFileHandle(r);if(o){const i=await o.getFile();n[r]=await i.text()}}return n}async getFileHandle(t){const n=t.split("/");n[0]===this.rootName&&n.shift();let r=this.rootHandle;for(let o=0;o<n.length-1;o++){if(o===0&&np.includes(n[o]))return null;r=await r.getDirectoryHandle(n[o])}try{return await r.getFileHandle(n[n.length-1])}catch{return null}}}async function T4(e,t){if(e==="repo"){const{files:n}=await cs(fs.LoadRepo,{url:t});return{files:n,type:e,compilePrompt:r=>cs(fs.CompilePrompt,{fileNames:r,url:t})}}else{const n=new N4;return await n.loadContents(t),{files:await n.getTextFileInfo(),type:e,async compilePrompt(o){const i=await n.getFileContents(o);return rg(i)}}}}function j4({onSelect:e,onErrorMessage:t}){const[n,r]=w.useState(!1),o=w.useRef(null),i=w.useCallback(c=>{c.preventDefault(),c.stopPropagation()},[]),l=w.useCallback(c=>{c.preventDefault(),c.stopPropagation(),r(!0)},[]),a=w.useCallback(c=>{c.preventDefault(),c.stopPropagation(),o.current&&!o.current.contains(c.relatedTarget)&&r(!1)},[]),s=w.useCallback(async c=>{if(c.preventDefault(),c.stopPropagation(),r(!1),c.dataTransfer.items.length>0){const f=c.dataTransfer.items[0];if(f.kind==="file")try{const d=await f.getAsFileSystemHandle();d&&d.kind==="directory"&&e(d)}catch(d){t==null||t(d.message)}}},[e,t]),u=async()=>{try{const c=await window.showDirectoryPicker();e(c)}catch(c){c.name!=="AbortError"&&(t==null||t(c.message))}};return w.useEffect(()=>{const c=o.current;if(!c)return;const f=p=>{p.preventDefault(),p.stopPropagation()},d=p=>{p.preventDefault(),p.stopPropagation(),c.contains(p.target)&&s(p)};return document.addEventListener("dragover",f,!1),document.addEventListener("drop",d,!1),()=>{document.removeEventListener("dragover",f,!1),document.removeEventListener("drop",d,!1)}},[s]),z.jsx("div",{ref:o,className:"flex items-center justify-center w-full mb-4",onDragEnter:l,onDragOver:i,onDragLeave:a,children:z.jsx("label",{onClick:u,className:`
          transition-all
          flex flex-col items-center justify-center w-full h-28 
          border-2 border-dashed rounded-lg cursor-pointer
          ${n?"border-blue-500 bg-blue-50":"border-gray-300 hover:bg-gray-50"}
        `,children:z.jsxs("div",{className:"flex flex-col items-center justify-center pt-5 pb-6",children:[z.jsx(Le,{className:`w-8 h-8 mb-1 ${n?"text-blue-500":"text-gray-400"}`,icon:$w}),z.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Select or drop a local directory"})]})})})}const L4=({value:e,onChange:t,placeholder:n="Search...",className:r=""})=>{const[o,i]=w.useState(!1),l=w.useRef(null),a=w.useRef(null);w.useEffect(()=>{e&&i(!0)},[]),w.useEffect(()=>{o&&l.current&&l.current.focus()},[o]),w.useEffect(()=>{const f=d=>{a.current&&!a.current.contains(d.target)&&!e&&i(!1)};return document.addEventListener("mousedown",f),()=>{document.removeEventListener("mousedown",f)}},[e]);const s=f=>{f.key==="Escape"&&(f.preventDefault(),f.stopPropagation(),i(!1),t(""))},u=f=>{var d;f.preventDefault(),f.stopPropagation(),t(""),(d=l.current)==null||d.focus()},c=f=>{o||i(!0)};return z.jsx("div",{className:`relative ${r}`,ref:a,onClick:c,"area-label":"Search Input",children:z.jsxs("div",{className:`
          flex items-center
          transition-all duration-300 ease-in-out
          rounded-full
          ${o?"w-64 bg-gray-100":"w-8 cursor-pointer "}
        `,children:[z.jsx(Le,{icon:Rw,className:`
            text-gray-400
            hover:text-gray-900
            ml-3 w-4 h-4
          `}),z.jsx("input",{ref:l,type:"text",value:e,onChange:f=>t(f.target.value),onKeyDown:s,placeholder:n,className:`
            bg-transparent
            border-none
            outline-none
            focus:outline-none
            focus:ring-0
            transition-all duration-300
            text-sm
            ${o?"w-full px-3 py-2 opacity-100":"w-0 px-0 opacity-0"}
          `,style:{cursor:o?"text":"pointer"}}),o&&e&&z.jsx("button",{onClick:u,className:"mr-2 p-1.5 cursor-pointer text-white rounded-full bg-gray-400 hover:bg-gray-500 transition-colors flex-shrink-0 h-4 w-4 flex items-center justify-center",children:z.jsx(Le,{icon:Iw,className:"w-3 h-3"})})]})})},A4=3500;function $4({show:e,onClose:t,config:n}){const[r,o]=w.useState(null),[i,l]=w.useState(""),[a,s]=w.useState([]),[u,c]=w.useState(""),[f,d]=w.useState(!1),[p,y]=w.useState([]),[h,k]=w.useState(""),[m,g]=w.useState(!1),[v,E]=w.useState(""),N=w.useRef(null),_=w.useMemo(()=>p.reduce((Q,te)=>{var Z;return Q+((Z=a.find(Ce=>Ce.name===te))==null?void 0:Z.byteLength)},0),[p,a]);w.useEffect(()=>{e&&setTimeout(()=>{var Q;return(Q=N.current)==null?void 0:Q.focus()},100)},[e]),w.useEffect(()=>{v&&O0.error(v)},[v]),w.useEffect(()=>{if(a.length&&(r==null?void 0:r.type)==="repo"){const Q=setInterval(()=>cs(fs.KeepAlive,{url:i}),A4);return()=>clearInterval(Q)}},[a]);async function j(Q,te){try{y([]),d(!0),E(""),c("");const Z=await T4(Q,te);o(Z),s(Z.files)}catch(Z){E(Z.message)}finally{d(!1)}}const L=async()=>{try{E("");const{content:Q,root:te}=await r.compilePrompt(p),Z=document.querySelector(n.inputSelector),Ce=document.querySelector(n.fileInputSelector);Ce?R4(Ce,`${te}.txt`,Q):Z.innerHTML=ie.parse(Q),t()}catch(Q){E(Q.message)}};async function M(){i&&await j("repo",i)}async function R(Q){await j("filesystem",Q)}const F=async()=>{const{content:Q}=await r.compilePrompt(p);k(Q),g(!0)},Y=()=>{t()};return z.jsxs("div",{children:[z.jsxs(Im,{show:e,onClose:t,children:[z.jsxs("div",{className:"flex items-center p-5",children:[a.length>0&&z.jsx(_4,{onClick:()=>s([])}),z.jsx("div",{className:"flex-grow flex",children:z.jsx("h3",{className:"text-lg font-medium ml-2",children:a.length?"Select files":"Import Repository"})}),a.length>0&&z.jsx(L4,{value:u,onChange:c,className:"mr-2"}),z.jsx(E0,{onClick:Y})]}),f&&z.jsx("div",{className:"flex justify-center items-center min-h-44 mb-8",children:z.jsx(nk,{})}),!a.length&&!f&&z.jsxs("div",{className:" px-7 mb-5",children:[z.jsx(j4,{onSelect:R,onErrorMessage:E}),z.jsx("label",{htmlFor:"repo_url",className:"block mb-2 mt-8 text-sm text-gray-900",children:"Or import from Github"}),z.jsxs("div",{className:"relative mb-8",children:[z.jsx("input",{type:"text",id:"repo_url",ref:N,value:i,onChange:Q=>l(Q.target.value),className:"block w-full p-3 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-blue-500 focus:border-blue-500",placeholder:"http://github.com/",required:!0}),z.jsx("button",{type:"button",onClick:M,className:"text-white absolute end-2 bottom-[7px] bg-blue-700 hover:bg-blue-800 focus:outline-none rounded-lg text-sm px-3 py-1.5 ",children:"Import"})]})]}),z.jsx("div",{className:"",children:a.length>0&&z.jsxs("div",{children:[z.jsx("div",{className:"px-4 overflow-auto max-h-[50vh] mb-4",children:z.jsx(ek,{search:u,onCheckedChange:y,checked:p,files:a})}),z.jsxs("div",{className:"border-t border-gray-200 p-3 px-4 flex justify-between items-center",children:[z.jsxs("p",{className:"text-xs ml-3 text-gray-800",children:[p.length," files ",_>0?`(${tk(_)})`:""," selected, ",a.length," files total"]}),z.jsxs("div",{children:[p.length>0&&z.jsx(qd,{className:"mr-2",type:"secondary",disabled:p.length===0,onClick:F,children:"Preview"}),z.jsx(qd,{disabled:p.length===0,onClick:L,children:"Attach"})]})]})]})}),z.jsx(O4,{content:h,show:m,onClose:()=>g(!1)})]}),z.jsx(Qk,{})]})}function R4(e,t,n){const r=new File([n],t,{type:"text/plain"}),o=new DataTransfer;o.items.add(r),e.files=o.files;const i=new Event("change",{bubbles:!0});e.dispatchEvent(i)}function F0(e,t){const n=new MutationObserver(r=>{for(const o of r)if(o.type==="childList"){const i=(l,a)=>{l.forEach(s=>{s instanceof Element&&e.forEach(u=>{s.matches(u)&&t(s,u,a),s.querySelectorAll(u).forEach(c=>t(c,u,a))})})};i(o.addedNodes,!0),i(o.removedNodes,!1)}});return n.observe(document.body,{childList:!0,subtree:!0}),e.forEach(r=>document.querySelectorAll(r).forEach(o=>t(o,r,!0))),()=>n.disconnect()}function M0(e,t,n){const r=document.createElement("button");return r.innerHTML=`<span class="${e}"><span class="${t}">${Og()}</span></span>`,r.setAttribute("aria-label","Attach Repo"),r.setAttribute("title","Attach Repo"),r.addEventListener("click",n),r}function D0(e,t){let n=null,r=null;return function o(i=t){r||(r=document.createElement("div"),r.id="attach-repo-extension-app",document.body.appendChild(r)),n||(n=gm(r)),n.render(z.jsx($4,{config:e,show:i,onClose:()=>o(!1)}))}}function z4(e){function t(r){const o=M0("inline-flex items-center justify-center h-8 w-8 rounded-lg rounded-bl-xl hover:bg-black/10 text-token-text-primary dark:text-white focus-visible:outline-black dark:focus-visible:outline-white","w-5 h-5",l=>{n(!0),l.preventDefault()}),i=r==null?void 0:r.closest(".button-container, .flex-col");return i.appendChild(o),i.classList.add("button-container"),o}const n=D0(e,!1);(async()=>{n(!1);let r=null;F0(e.buttonTargetSelector,o=>{const i=document.querySelector(e.buttonTargetSelector[0]),l=document.querySelector(e.buttonTargetSelector[1]),a=i||l;r&&r.remove(),r=t(a)})})()}function I4(e){function t(r){const o=M0("inline-flex items-center justify-center w-8 h-8 rounded-lg hover:bg-bg-500/40","w-4 h-4",i=>{n(!0),i.preventDefault()});return r.parentElement.appendChild(o),o}const n=D0(e,!1);(async()=>{n(!1);let r=null;F0(e.buttonTargetSelector,o=>{r&&r.remove(),r=t(o)})})()}const F4=window.location.href,xo=ig.find(e=>e.urlPattern.test(F4));if(xo)switch(xo.name){case"ChatGPT":z4(xo);break;case"Claude":I4(xo);break;default:console.log(`No initialization function for ${xo.name}`)}