@cyberskill/cyber-editor 3.8.0 → 3.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,891 +0,0 @@
1
- var e5=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var vae=e5((wae,iv)=>{function xk(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in t)){const l=Object.getOwnPropertyDescriptor(r,o);l&&Object.defineProperty(t,o,l.get?l:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const s of l.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();var fg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Lv(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var jS={exports:{}},hg={},LS={exports:{}},Ch={exports:{}};Ch.exports;var X$;function t5(){return X$||(X$=1,function(t,e){/**
2
- * @license React
3
- * react.development.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */(function(){function n(D,ce){Object.defineProperty(l.prototype,D,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",ce[0],ce[1])}})}function r(D){return D===null||typeof D!="object"?null:(D=We&&D[We]||D["@@iterator"],typeof D=="function"?D:null)}function o(D,ce){D=(D=D.constructor)&&(D.displayName||D.name)||"ReactClass";var ke=D+"."+ce;ut[ke]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",ce,D),ut[ke]=!0)}function l(D,ce,ke){this.props=D,this.context=ce,this.refs=oe,this.updater=ke||I}function s(){}function u(D,ce,ke){this.props=D,this.context=ce,this.refs=oe,this.updater=ke||I}function d(D){return""+D}function f(D){try{d(D);var ce=!1}catch{ce=!0}if(ce){ce=console;var ke=ce.error,Qe=typeof Symbol=="function"&&Symbol.toStringTag&&D[Symbol.toStringTag]||D.constructor.name||"Object";return ke.call(ce,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Qe),d(D)}}function m(D){if(D==null)return null;if(typeof D=="function")return D.$$typeof===Te?null:D.displayName||D.name||null;if(typeof D=="string")return D;switch(D){case fe:return"Fragment";case xe:return"Portal";case ze:return"Profiler";case Me:return"StrictMode";case pe:return"Suspense";case we:return"SuspenseList"}if(typeof D=="object")switch(typeof D.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),D.$$typeof){case he:return(D.displayName||"Context")+".Provider";case Oe:return(D._context.displayName||"Context")+".Consumer";case De:var ce=D.render;return D=D.displayName,D||(D=ce.displayName||ce.name||"",D=D!==""?"ForwardRef("+D+")":"ForwardRef"),D;case $e:return ce=D.displayName||null,ce!==null?ce:m(D.type)||"Memo";case Pe:ce=D._payload,D=D._init;try{return m(D(ce))}catch{}}return null}function p(D){return typeof D=="string"||typeof D=="function"||D===fe||D===ze||D===Me||D===pe||D===we||D===Ze||typeof D=="object"&&D!==null&&(D.$$typeof===Pe||D.$$typeof===$e||D.$$typeof===he||D.$$typeof===Oe||D.$$typeof===De||D.$$typeof===Xe||D.getModuleId!==void 0)}function g(){}function b(){if(dt===0){vt=console.log,et=console.info,st=console.warn,at=console.error,Ct=console.group,$t=console.groupCollapsed,Ut=console.groupEnd;var D={configurable:!0,enumerable:!0,value:g,writable:!0};Object.defineProperties(console,{info:D,log:D,warn:D,error:D,group:D,groupCollapsed:D,groupEnd:D})}dt++}function S(){if(dt--,dt===0){var D={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:me({},D,{value:vt}),info:me({},D,{value:et}),warn:me({},D,{value:st}),error:me({},D,{value:at}),group:me({},D,{value:Ct}),groupCollapsed:me({},D,{value:$t}),groupEnd:me({},D,{value:Ut})})}0>dt&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function x(D){if(sn===void 0)try{throw Error()}catch(ke){var ce=ke.stack.trim().match(/\n( *(at )?)/);sn=ce&&ce[1]||"",un=-1<ke.stack.indexOf(`
10
- at`)?" (<anonymous>)":-1<ke.stack.indexOf("@")?"@unknown:0:0":""}return`
11
- `+sn+D+un}function w(D,ce){if(!D||kn)return"";var ke=Rt.get(D);if(ke!==void 0)return ke;kn=!0,ke=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var Qe=null;Qe=_e.H,_e.H=null,b();try{var ot={DetermineComponentFrameRoot:function(){try{if(ce){var Ot=function(){throw Error()};if(Object.defineProperty(Ot.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ot,[])}catch(nt){var xt=nt}Reflect.construct(D,[],Ot)}else{try{Ot.call()}catch(nt){xt=nt}D.call(Ot.prototype)}}else{try{throw Error()}catch(nt){xt=nt}(Ot=D())&&typeof Ot.catch=="function"&&Ot.catch(function(){})}}catch(nt){if(nt&&xt&&typeof nt.stack=="string")return[nt.stack,xt.stack]}return[null,null]}};ot.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var mt=Object.getOwnPropertyDescriptor(ot.DetermineComponentFrameRoot,"name");mt&&mt.configurable&&Object.defineProperty(ot.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var rt=ot.DetermineComponentFrameRoot(),Wt=rt[0],Yt=rt[1];if(Wt&&Yt){var Xt=Wt.split(`
12
- `),cn=Yt.split(`
13
- `);for(rt=mt=0;mt<Xt.length&&!Xt[mt].includes("DetermineComponentFrameRoot");)mt++;for(;rt<cn.length&&!cn[rt].includes("DetermineComponentFrameRoot");)rt++;if(mt===Xt.length||rt===cn.length)for(mt=Xt.length-1,rt=cn.length-1;1<=mt&&0<=rt&&Xt[mt]!==cn[rt];)rt--;for(;1<=mt&&0<=rt;mt--,rt--)if(Xt[mt]!==cn[rt]){if(mt!==1||rt!==1)do if(mt--,rt--,0>rt||Xt[mt]!==cn[rt]){var ct=`
14
- `+Xt[mt].replace(" at new "," at ");return D.displayName&&ct.includes("<anonymous>")&&(ct=ct.replace("<anonymous>",D.displayName)),typeof D=="function"&&Rt.set(D,ct),ct}while(1<=mt&&0<=rt);break}}}finally{kn=!1,_e.H=Qe,S(),Error.prepareStackTrace=ke}return Xt=(Xt=D?D.displayName||D.name:"")?x(Xt):"",typeof D=="function"&&Rt.set(D,Xt),Xt}function O(D){if(D==null)return"";if(typeof D=="function"){var ce=D.prototype;return w(D,!(!ce||!ce.isReactComponent))}if(typeof D=="string")return x(D);switch(D){case pe:return x("Suspense");case we:return x("SuspenseList")}if(typeof D=="object")switch(D.$$typeof){case De:return D=w(D.render,!1),D;case $e:return O(D.type);case Pe:ce=D._payload,D=D._init;try{return O(D(ce))}catch{}}return""}function E(){var D=_e.A;return D===null?null:D.getOwner()}function M(D){if(it.call(D,"key")){var ce=Object.getOwnPropertyDescriptor(D,"key").get;if(ce&&ce.isReactWarning)return!1}return D.key!==void 0}function T(D,ce){function ke(){kt||(kt=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",ce))}ke.isReactWarning=!0,Object.defineProperty(D,"key",{get:ke,configurable:!0})}function $(){var D=m(this.type);return jt[D]||(jt[D]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),D=this.props.ref,D!==void 0?D:null}function N(D,ce,ke,Qe,ot,mt){return ke=mt.ref,D={$$typeof:de,type:D,key:ce,props:mt,_owner:ot},(ke!==void 0?ke:null)!==null?Object.defineProperty(D,"ref",{enumerable:!1,get:$}):Object.defineProperty(D,"ref",{enumerable:!1,value:null}),D._store={},Object.defineProperty(D._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(D,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(D.props),Object.freeze(D)),D}function A(D,ce){return ce=N(D.type,ce,void 0,void 0,D._owner,D.props),ce._store.validated=D._store.validated,ce}function z(D,ce){if(typeof D=="object"&&D&&D.$$typeof!==bt){if(Fe(D))for(var ke=0;ke<D.length;ke++){var Qe=D[ke];P(Qe)&&B(Qe,ce)}else if(P(D))D._store&&(D._store.validated=1);else if(ke=r(D),typeof ke=="function"&&ke!==D.entries&&(ke=ke.call(D),ke!==D))for(;!(D=ke.next()).done;)P(D.value)&&B(D.value,ce)}}function P(D){return typeof D=="object"&&D!==null&&D.$$typeof===de}function B(D,ce){if(D._store&&!D._store.validated&&D.key==null&&(D._store.validated=1,ce=L(ce),!wt[ce])){wt[ce]=!0;var ke="";D&&D._owner!=null&&D._owner!==E()&&(ke=null,typeof D._owner.tag=="number"?ke=m(D._owner.type):typeof D._owner.name=="string"&&(ke=D._owner.name),ke=" It was passed a child from "+ke+".");var Qe=_e.getCurrentStack;_e.getCurrentStack=function(){var ot=O(D.type);return Qe&&(ot+=Qe()||""),ot},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',ce,ke),_e.getCurrentStack=Qe}}function L(D){var ce="",ke=E();return ke&&(ke=m(ke.type))&&(ce=`
15
-
16
- Check the render method of \``+ke+"`."),ce||(D=m(D))&&(ce=`
17
-
18
- Check the top-level render call using <`+D+">."),ce}function W(D){var ce={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(ke){return ce[ke]})}function q(D,ce){return typeof D=="object"&&D!==null&&D.key!=null?(f(D.key),W(""+D.key)):ce.toString(36)}function H(){}function J(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(H,H):(D.status="pending",D.then(function(ce){D.status==="pending"&&(D.status="fulfilled",D.value=ce)},function(ce){D.status==="pending"&&(D.status="rejected",D.reason=ce)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function _(D,ce,ke,Qe,ot){var mt=typeof D;(mt==="undefined"||mt==="boolean")&&(D=null);var rt=!1;if(D===null)rt=!0;else switch(mt){case"bigint":case"string":case"number":rt=!0;break;case"object":switch(D.$$typeof){case de:case xe:rt=!0;break;case Pe:return rt=D._init,_(rt(D._payload),ce,ke,Qe,ot)}}if(rt){rt=D,ot=ot(rt);var Wt=Qe===""?"."+q(rt,0):Qe;return Fe(ot)?(ke="",Wt!=null&&(ke=Wt.replace(St,"$&/")+"/"),_(ot,ce,ke,"",function(Xt){return Xt})):ot!=null&&(P(ot)&&(ot.key!=null&&(rt&&rt.key===ot.key||f(ot.key)),ke=A(ot,ke+(ot.key==null||rt&&rt.key===ot.key?"":(""+ot.key).replace(St,"$&/")+"/")+Wt),Qe!==""&&rt!=null&&P(rt)&&rt.key==null&&rt._store&&!rt._store.validated&&(ke._store.validated=2),ot=ke),ce.push(ot)),1}if(rt=0,Wt=Qe===""?".":Qe+":",Fe(D))for(var Yt=0;Yt<D.length;Yt++)Qe=D[Yt],mt=Wt+q(Qe,Yt),rt+=_(Qe,ce,ke,mt,ot);else if(Yt=r(D),typeof Yt=="function")for(Yt===D.entries&&(lt||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),lt=!0),D=Yt.call(D),Yt=0;!(Qe=D.next()).done;)Qe=Qe.value,mt=Wt+q(Qe,Yt++),rt+=_(Qe,ce,ke,mt,ot);else if(mt==="object"){if(typeof D.then=="function")return _(J(D),ce,ke,Qe,ot);throw ce=String(D),Error("Objects are not valid as a React child (found: "+(ce==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":ce)+"). If you meant to render a collection of children, use an array instead.")}return rt}function j(D,ce,ke){if(D==null)return D;var Qe=[],ot=0;return _(D,Qe,"","",function(mt){return ce.call(ke,mt,ot++)}),Qe}function V(D){if(D._status===-1){var ce=D._result;ce=ce(),ce.then(function(ke){(D._status===0||D._status===-1)&&(D._status=1,D._result=ke)},function(ke){(D._status===0||D._status===-1)&&(D._status=2,D._result=ke)}),D._status===-1&&(D._status=0,D._result=ce)}if(D._status===1)return ce=D._result,ce===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
19
-
20
- Your code should look like:
21
- const MyComponent = lazy(() => import('./MyComponent'))
22
-
23
- Did you accidentally put curly braces around the import?`,ce),"default"in ce||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
24
-
25
- Your code should look like:
26
- const MyComponent = lazy(() => import('./MyComponent'))`,ce),ce.default;throw D._result}function G(){var D=_e.H;return D===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
27
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
28
- 2. You might be breaking the Rules of Hooks
29
- 3. You might have more than one copy of React in the same app
30
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),D}function K(){}function Y(D){if(Tt===null)try{var ce=("require"+Math.random()).slice(0,7);Tt=(t&&t[ce]).call(t,"timers").setImmediate}catch{Tt=function(Qe){tn===!1&&(tn=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var ot=new MessageChannel;ot.port1.onmessage=Qe,ot.port2.postMessage(void 0)}}return Tt(D)}function ne(D){return 1<D.length&&typeof AggregateError=="function"?new AggregateError(D):D[0]}function ae(D,ce){ce!==gt-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),gt=ce}function Q(D,ce,ke){var Qe=_e.actQueue;if(Qe!==null)if(Qe.length!==0)try{se(Qe),Y(function(){return Q(D,ce,ke)});return}catch(ot){_e.thrownErrors.push(ot)}else _e.actQueue=null;0<_e.thrownErrors.length?(Qe=ne(_e.thrownErrors),_e.thrownErrors.length=0,ke(Qe)):ce(D)}function se(D){if(!zt){zt=!0;var ce=0;try{for(;ce<D.length;ce++){var ke=D[ce];do{_e.didUsePromise=!1;var Qe=ke(!1);if(Qe!==null){if(_e.didUsePromise){D[ce]=ke,D.splice(0,ce);return}ke=Qe}else break}while(!0)}D.length=0}catch(ot){D.splice(0,ce+1),_e.thrownErrors.push(ot)}finally{zt=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var de=Symbol.for("react.transitional.element"),xe=Symbol.for("react.portal"),fe=Symbol.for("react.fragment"),Me=Symbol.for("react.strict_mode"),ze=Symbol.for("react.profiler"),Oe=Symbol.for("react.consumer"),he=Symbol.for("react.context"),De=Symbol.for("react.forward_ref"),pe=Symbol.for("react.suspense"),we=Symbol.for("react.suspense_list"),$e=Symbol.for("react.memo"),Pe=Symbol.for("react.lazy"),Ze=Symbol.for("react.offscreen"),We=Symbol.iterator,ut={},I={isMounted:function(){return!1},enqueueForceUpdate:function(D){o(D,"forceUpdate")},enqueueReplaceState:function(D){o(D,"replaceState")},enqueueSetState:function(D){o(D,"setState")}},me=Object.assign,oe={};Object.freeze(oe),l.prototype.isReactComponent={},l.prototype.setState=function(D,ce){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,ce,"setState")},l.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};var ge={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},Ue;for(Ue in ge)ge.hasOwnProperty(Ue)&&n(Ue,ge[Ue]);s.prototype=l.prototype,ge=u.prototype=new s,ge.constructor=u,me(ge,l.prototype),ge.isPureReactComponent=!0;var Fe=Array.isArray,Te=Symbol.for("react.client.reference"),_e={H:null,A:null,T:null,S:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null},it=Object.prototype.hasOwnProperty,Xe=Symbol.for("react.client.reference"),dt=0,vt,et,st,at,Ct,$t,Ut;g.__reactDisabledLog=!0;var sn,un,kn=!1,Rt=new(typeof WeakMap=="function"?WeakMap:Map),bt=Symbol.for("react.client.reference"),kt,Dt,jt={},wt={},lt=!1,St=/\/+/g,Kt=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ce=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(ce))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)},tn=!1,Tt=null,gt=0,Nt=!1,zt=!1,Et=typeof queueMicrotask=="function"?function(D){queueMicrotask(function(){return queueMicrotask(D)})}:Y;e.Children={map:j,forEach:function(D,ce,ke){j(D,function(){ce.apply(this,arguments)},ke)},count:function(D){var ce=0;return j(D,function(){ce++}),ce},toArray:function(D){return j(D,function(ce){return ce})||[]},only:function(D){if(!P(D))throw Error("React.Children.only expected to receive a single React element child.");return D}},e.Component=l,e.Fragment=fe,e.Profiler=ze,e.PureComponent=u,e.StrictMode=Me,e.Suspense=pe,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=_e,e.act=function(D){var ce=_e.actQueue,ke=gt;gt++;var Qe=_e.actQueue=ce!==null?ce:[],ot=!1;try{var mt=D()}catch(Yt){_e.thrownErrors.push(Yt)}if(0<_e.thrownErrors.length)throw ae(ce,ke),D=ne(_e.thrownErrors),_e.thrownErrors.length=0,D;if(mt!==null&&typeof mt=="object"&&typeof mt.then=="function"){var rt=mt;return Et(function(){ot||Nt||(Nt=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(Yt,Xt){ot=!0,rt.then(function(cn){if(ae(ce,ke),ke===0){try{se(Qe),Y(function(){return Q(cn,Yt,Xt)})}catch(Ot){_e.thrownErrors.push(Ot)}if(0<_e.thrownErrors.length){var ct=ne(_e.thrownErrors);_e.thrownErrors.length=0,Xt(ct)}}else Yt(cn)},function(cn){ae(ce,ke),0<_e.thrownErrors.length&&(cn=ne(_e.thrownErrors),_e.thrownErrors.length=0),Xt(cn)})}}}var Wt=mt;if(ae(ce,ke),ke===0&&(se(Qe),Qe.length!==0&&Et(function(){ot||Nt||(Nt=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),_e.actQueue=null),0<_e.thrownErrors.length)throw D=ne(_e.thrownErrors),_e.thrownErrors.length=0,D;return{then:function(Yt,Xt){ot=!0,ke===0?(_e.actQueue=Qe,Y(function(){return Q(Wt,Yt,Xt)})):Yt(Wt)}}},e.cache=function(D){return function(){return D.apply(null,arguments)}},e.cloneElement=function(D,ce,ke){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var Qe=me({},D.props),ot=D.key,mt=D._owner;if(ce!=null){var rt;e:{if(it.call(ce,"ref")&&(rt=Object.getOwnPropertyDescriptor(ce,"ref").get)&&rt.isReactWarning){rt=!1;break e}rt=ce.ref!==void 0}rt&&(mt=E()),M(ce)&&(f(ce.key),ot=""+ce.key);for(Wt in ce)!it.call(ce,Wt)||Wt==="key"||Wt==="__self"||Wt==="__source"||Wt==="ref"&&ce.ref===void 0||(Qe[Wt]=ce[Wt])}var Wt=arguments.length-2;if(Wt===1)Qe.children=ke;else if(1<Wt){rt=Array(Wt);for(var Yt=0;Yt<Wt;Yt++)rt[Yt]=arguments[Yt+2];Qe.children=rt}for(Qe=N(D.type,ot,void 0,void 0,mt,Qe),ot=2;ot<arguments.length;ot++)z(arguments[ot],Qe.type);return Qe},e.createContext=function(D){return D={$$typeof:he,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:Oe,_context:D},D._currentRenderer=null,D._currentRenderer2=null,D},e.createElement=function(D,ce,ke){if(p(D))for(var Qe=2;Qe<arguments.length;Qe++)z(arguments[Qe],D);else{if(Qe="",(D===void 0||typeof D=="object"&&D!==null&&Object.keys(D).length===0)&&(Qe+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),D===null)var ot="null";else Fe(D)?ot="array":D!==void 0&&D.$$typeof===de?(ot="<"+(m(D.type)||"Unknown")+" />",Qe=" Did you accidentally export a JSX literal instead of a component?"):ot=typeof D;console.error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ot,Qe)}var mt;if(Qe={},ot=null,ce!=null)for(mt in Dt||!("__self"in ce)||"key"in ce||(Dt=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),M(ce)&&(f(ce.key),ot=""+ce.key),ce)it.call(ce,mt)&&mt!=="key"&&mt!=="__self"&&mt!=="__source"&&(Qe[mt]=ce[mt]);var rt=arguments.length-2;if(rt===1)Qe.children=ke;else if(1<rt){for(var Wt=Array(rt),Yt=0;Yt<rt;Yt++)Wt[Yt]=arguments[Yt+2];Object.freeze&&Object.freeze(Wt),Qe.children=Wt}if(D&&D.defaultProps)for(mt in rt=D.defaultProps,rt)Qe[mt]===void 0&&(Qe[mt]=rt[mt]);return ot&&T(Qe,typeof D=="function"?D.displayName||D.name||"Unknown":D),N(D,ot,void 0,void 0,E(),Qe)},e.createRef=function(){var D={current:null};return Object.seal(D),D},e.forwardRef=function(D){D!=null&&D.$$typeof===$e?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof D!="function"?console.error("forwardRef requires a render function but was given %s.",D===null?"null":typeof D):D.length!==0&&D.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",D.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),D!=null&&D.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var ce={$$typeof:De,render:D},ke;return Object.defineProperty(ce,"displayName",{enumerable:!1,configurable:!0,get:function(){return ke},set:function(Qe){ke=Qe,D.name||D.displayName||(Object.defineProperty(D,"name",{value:Qe}),D.displayName=Qe)}}),ce},e.isValidElement=P,e.lazy=function(D){return{$$typeof:Pe,_payload:{_status:-1,_result:D},_init:V}},e.memo=function(D,ce){p(D)||console.error("memo: The first argument must be a component. Instead received: %s",D===null?"null":typeof D),ce={$$typeof:$e,type:D,compare:ce===void 0?null:ce};var ke;return Object.defineProperty(ce,"displayName",{enumerable:!1,configurable:!0,get:function(){return ke},set:function(Qe){ke=Qe,D.name||D.displayName||(Object.defineProperty(D,"name",{value:Qe}),D.displayName=Qe)}}),ce},e.startTransition=function(D){var ce=_e.T,ke={};_e.T=ke,ke._updatedFibers=new Set;try{var Qe=D(),ot=_e.S;ot!==null&&ot(ke,Qe),typeof Qe=="object"&&Qe!==null&&typeof Qe.then=="function"&&Qe.then(K,Kt)}catch(mt){Kt(mt)}finally{ce===null&&ke._updatedFibers&&(D=ke._updatedFibers.size,ke._updatedFibers.clear(),10<D&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),_e.T=ce}},e.unstable_useCacheRefresh=function(){return G().useCacheRefresh()},e.use=function(D){return G().use(D)},e.useActionState=function(D,ce,ke){return G().useActionState(D,ce,ke)},e.useCallback=function(D,ce){return G().useCallback(D,ce)},e.useContext=function(D){var ce=G();return D.$$typeof===Oe&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),ce.useContext(D)},e.useDebugValue=function(D,ce){return G().useDebugValue(D,ce)},e.useDeferredValue=function(D,ce){return G().useDeferredValue(D,ce)},e.useEffect=function(D,ce){return G().useEffect(D,ce)},e.useId=function(){return G().useId()},e.useImperativeHandle=function(D,ce,ke){return G().useImperativeHandle(D,ce,ke)},e.useInsertionEffect=function(D,ce){return G().useInsertionEffect(D,ce)},e.useLayoutEffect=function(D,ce){return G().useLayoutEffect(D,ce)},e.useMemo=function(D,ce){return G().useMemo(D,ce)},e.useOptimistic=function(D,ce){return G().useOptimistic(D,ce)},e.useReducer=function(D,ce,ke){return G().useReducer(D,ce,ke)},e.useRef=function(D){return G().useRef(D)},e.useState=function(D){return G().useState(D)},e.useSyncExternalStore=function(D,ce,ke){return G().useSyncExternalStore(D,ce,ke)},e.useTransition=function(){return G().useTransition()},e.version="19.0.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()}(Ch,Ch.exports)),Ch.exports}var Q$;function im(){return Q$||(Q$=1,LS.exports=t5()),LS.exports}var Z$;function n5(){if(Z$)return hg;Z$=1;/**
31
- * @license React
32
- * react-jsx-dev-runtime.development.js
33
- *
34
- * Copyright (c) Meta Platforms, Inc. and affiliates.
35
- *
36
- * This source code is licensed under the MIT license found in the
37
- * LICENSE file in the root directory of this source tree.
38
- */return function(){function t(I){if(I==null)return null;if(typeof I=="function")return I.$$typeof===V?null:I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case N:return"Fragment";case $:return"Portal";case z:return"Profiler";case A:return"StrictMode";case W:return"Suspense";case q:return"SuspenseList"}if(typeof I=="object")switch(typeof I.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),I.$$typeof){case B:return(I.displayName||"Context")+".Provider";case P:return(I._context.displayName||"Context")+".Consumer";case L:var me=I.render;return I=I.displayName,I||(I=me.displayName||me.name||"",I=I!==""?"ForwardRef("+I+")":"ForwardRef"),I;case H:return me=I.displayName||null,me!==null?me:t(I.type)||"Memo";case J:me=I._payload,I=I._init;try{return t(I(me))}catch{}}return null}function e(I){return""+I}function n(I){try{e(I);var me=!1}catch{me=!0}if(me){me=console;var oe=me.error,ge=typeof Symbol=="function"&&Symbol.toStringTag&&I[Symbol.toStringTag]||I.constructor.name||"Object";return oe.call(me,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ge),e(I)}}function r(){}function o(){if(Q===0){se=console.log,de=console.info,xe=console.warn,fe=console.error,Me=console.group,ze=console.groupCollapsed,Oe=console.groupEnd;var I={configurable:!0,enumerable:!0,value:r,writable:!0};Object.defineProperties(console,{info:I,log:I,warn:I,error:I,group:I,groupCollapsed:I,groupEnd:I})}Q++}function l(){if(Q--,Q===0){var I={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Y({},I,{value:se}),info:Y({},I,{value:de}),warn:Y({},I,{value:xe}),error:Y({},I,{value:fe}),group:Y({},I,{value:Me}),groupCollapsed:Y({},I,{value:ze}),groupEnd:Y({},I,{value:Oe})})}0>Q&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function s(I){if(he===void 0)try{throw Error()}catch(oe){var me=oe.stack.trim().match(/\n( *(at )?)/);he=me&&me[1]||"",De=-1<oe.stack.indexOf(`
39
- at`)?" (<anonymous>)":-1<oe.stack.indexOf("@")?"@unknown:0:0":""}return`
40
- `+he+I+De}function u(I,me){if(!I||pe)return"";var oe=we.get(I);if(oe!==void 0)return oe;pe=!0,oe=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var ge=null;ge=G.H,G.H=null,o();try{var Ue={DetermineComponentFrameRoot:function(){try{if(me){var et=function(){throw Error()};if(Object.defineProperty(et.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(et,[])}catch(at){var st=at}Reflect.construct(I,[],et)}else{try{et.call()}catch(at){st=at}I.call(et.prototype)}}else{try{throw Error()}catch(at){st=at}(et=I())&&typeof et.catch=="function"&&et.catch(function(){})}}catch(at){if(at&&st&&typeof at.stack=="string")return[at.stack,st.stack]}return[null,null]}};Ue.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var Fe=Object.getOwnPropertyDescriptor(Ue.DetermineComponentFrameRoot,"name");Fe&&Fe.configurable&&Object.defineProperty(Ue.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var Te=Ue.DetermineComponentFrameRoot(),_e=Te[0],it=Te[1];if(_e&&it){var Xe=_e.split(`
41
- `),dt=it.split(`
42
- `);for(Te=Fe=0;Fe<Xe.length&&!Xe[Fe].includes("DetermineComponentFrameRoot");)Fe++;for(;Te<dt.length&&!dt[Te].includes("DetermineComponentFrameRoot");)Te++;if(Fe===Xe.length||Te===dt.length)for(Fe=Xe.length-1,Te=dt.length-1;1<=Fe&&0<=Te&&Xe[Fe]!==dt[Te];)Te--;for(;1<=Fe&&0<=Te;Fe--,Te--)if(Xe[Fe]!==dt[Te]){if(Fe!==1||Te!==1)do if(Fe--,Te--,0>Te||Xe[Fe]!==dt[Te]){var vt=`
43
- `+Xe[Fe].replace(" at new "," at ");return I.displayName&&vt.includes("<anonymous>")&&(vt=vt.replace("<anonymous>",I.displayName)),typeof I=="function"&&we.set(I,vt),vt}while(1<=Fe&&0<=Te);break}}}finally{pe=!1,G.H=ge,l(),Error.prepareStackTrace=oe}return Xe=(Xe=I?I.displayName||I.name:"")?s(Xe):"",typeof I=="function"&&we.set(I,Xe),Xe}function d(I){if(I==null)return"";if(typeof I=="function"){var me=I.prototype;return u(I,!(!me||!me.isReactComponent))}if(typeof I=="string")return s(I);switch(I){case W:return s("Suspense");case q:return s("SuspenseList")}if(typeof I=="object")switch(I.$$typeof){case L:return I=u(I.render,!1),I;case H:return d(I.type);case J:me=I._payload,I=I._init;try{return d(I(me))}catch{}}return""}function f(){var I=G.A;return I===null?null:I.getOwner()}function m(I){if(K.call(I,"key")){var me=Object.getOwnPropertyDescriptor(I,"key").get;if(me&&me.isReactWarning)return!1}return I.key!==void 0}function p(I,me){function oe(){Pe||(Pe=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",me))}oe.isReactWarning=!0,Object.defineProperty(I,"key",{get:oe,configurable:!0})}function g(){var I=t(this.type);return Ze[I]||(Ze[I]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),I=this.props.ref,I!==void 0?I:null}function b(I,me,oe,ge,Ue,Fe){return oe=Fe.ref,I={$$typeof:T,type:I,key:me,props:Fe,_owner:Ue},(oe!==void 0?oe:null)!==null?Object.defineProperty(I,"ref",{enumerable:!1,get:g}):Object.defineProperty(I,"ref",{enumerable:!1,value:null}),I._store={},Object.defineProperty(I._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(I,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(I.props),Object.freeze(I)),I}function S(I,me,oe,ge,Ue,Fe){if(typeof I=="string"||typeof I=="function"||I===N||I===z||I===A||I===W||I===q||I===_||typeof I=="object"&&I!==null&&(I.$$typeof===J||I.$$typeof===H||I.$$typeof===B||I.$$typeof===P||I.$$typeof===L||I.$$typeof===ne||I.getModuleId!==void 0)){var Te=me.children;if(Te!==void 0)if(ge)if(ae(Te)){for(ge=0;ge<Te.length;ge++)x(Te[ge],I);Object.freeze&&Object.freeze(Te)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else x(Te,I)}else Te="",(I===void 0||typeof I=="object"&&I!==null&&Object.keys(I).length===0)&&(Te+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),I===null?ge="null":ae(I)?ge="array":I!==void 0&&I.$$typeof===T?(ge="<"+(t(I.type)||"Unknown")+" />",Te=" Did you accidentally export a JSX literal instead of a component?"):ge=typeof I,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ge,Te);if(K.call(me,"key")){Te=t(I);var _e=Object.keys(me).filter(function(Xe){return Xe!=="key"});ge=0<_e.length?"{key: someKey, "+_e.join(": ..., ")+": ...}":"{key: someKey}",We[Te+ge]||(_e=0<_e.length?"{"+_e.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
44
- let props = %s;
45
- <%s {...props} />
46
- React keys must be passed directly to JSX without using spread:
47
- let props = %s;
48
- <%s key={someKey} {...props} />`,ge,Te,_e,Te),We[Te+ge]=!0)}if(Te=null,oe!==void 0&&(n(oe),Te=""+oe),m(me)&&(n(me.key),Te=""+me.key),"key"in me){oe={};for(var it in me)it!=="key"&&(oe[it]=me[it])}else oe=me;return Te&&p(oe,typeof I=="function"?I.displayName||I.name||"Unknown":I),b(I,Te,Fe,Ue,f(),oe)}function x(I,me){if(typeof I=="object"&&I&&I.$$typeof!==$e){if(ae(I))for(var oe=0;oe<I.length;oe++){var ge=I[oe];w(ge)&&O(ge,me)}else if(w(I))I._store&&(I._store.validated=1);else if(I===null||typeof I!="object"?oe=null:(oe=j&&I[j]||I["@@iterator"],oe=typeof oe=="function"?oe:null),typeof oe=="function"&&oe!==I.entries&&(oe=oe.call(I),oe!==I))for(;!(I=oe.next()).done;)w(I.value)&&O(I.value,me)}}function w(I){return typeof I=="object"&&I!==null&&I.$$typeof===T}function O(I,me){if(I._store&&!I._store.validated&&I.key==null&&(I._store.validated=1,me=E(me),!ut[me])){ut[me]=!0;var oe="";I&&I._owner!=null&&I._owner!==f()&&(oe=null,typeof I._owner.tag=="number"?oe=t(I._owner.type):typeof I._owner.name=="string"&&(oe=I._owner.name),oe=" It was passed a child from "+oe+".");var ge=G.getCurrentStack;G.getCurrentStack=function(){var Ue=d(I.type);return ge&&(Ue+=ge()||""),Ue},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',me,oe),G.getCurrentStack=ge}}function E(I){var me="",oe=f();return oe&&(oe=t(oe.type))&&(me=`
49
-
50
- Check the render method of \``+oe+"`."),me||(I=t(I))&&(me=`
51
-
52
- Check the top-level render call using <`+I+">."),me}var M=im(),T=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),B=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),j=Symbol.iterator,V=Symbol.for("react.client.reference"),G=M.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=Object.prototype.hasOwnProperty,Y=Object.assign,ne=Symbol.for("react.client.reference"),ae=Array.isArray,Q=0,se,de,xe,fe,Me,ze,Oe;r.__reactDisabledLog=!0;var he,De,pe=!1,we=new(typeof WeakMap=="function"?WeakMap:Map),$e=Symbol.for("react.client.reference"),Pe,Ze={},We={},ut={};hg.Fragment=N,hg.jsxDEV=function(I,me,oe,ge,Ue,Fe){return S(I,me,oe,ge,Ue,Fe)}}(),hg}var J$;function r5(){return J$||(J$=1,jS.exports=n5()),jS.exports}var He=r5(),VS={exports:{}},dh={},FS={exports:{}},US={},eN;function o5(){return eN||(eN=1,function(t){/**
53
- * @license React
54
- * scheduler.development.js
55
- *
56
- * Copyright (c) Meta Platforms, Inc. and affiliates.
57
- *
58
- * This source code is licensed under the MIT license found in the
59
- * LICENSE file in the root directory of this source tree.
60
- */(function(){function e(){if(P){var _=t.unstable_now();W=_;var j=!0;try{e:{T=!1,$&&($=!1,A(B),B=-1),M=!0;var V=E;try{t:{for(s(_),O=r(S);O!==null&&!(O.expirationTime>_&&d());){var G=O.callback;if(typeof G=="function"){O.callback=null,E=O.priorityLevel;var K=G(O.expirationTime<=_);if(_=t.unstable_now(),typeof K=="function"){O.callback=K,s(_),j=!0;break t}O===r(S)&&o(S),s(_)}else o(S);O=r(S)}if(O!==null)j=!0;else{var Y=r(x);Y!==null&&m(u,Y.startTime-_),j=!1}}break e}finally{O=null,E=V,M=!1}j=void 0}}finally{j?q():P=!1}}}function n(_,j){var V=_.length;_.push(j);e:for(;0<V;){var G=V-1>>>1,K=_[G];if(0<l(K,j))_[G]=j,_[V]=K,V=G;else break e}}function r(_){return _.length===0?null:_[0]}function o(_){if(_.length===0)return null;var j=_[0],V=_.pop();if(V!==j){_[0]=V;e:for(var G=0,K=_.length,Y=K>>>1;G<Y;){var ne=2*(G+1)-1,ae=_[ne],Q=ne+1,se=_[Q];if(0>l(ae,V))Q<K&&0>l(se,ae)?(_[G]=se,_[Q]=V,G=Q):(_[G]=ae,_[ne]=V,G=ne);else if(Q<K&&0>l(se,V))_[G]=se,_[Q]=V,G=Q;else break e}}return j}function l(_,j){var V=_.sortIndex-j.sortIndex;return V!==0?V:_.id-j.id}function s(_){for(var j=r(x);j!==null;){if(j.callback===null)o(x);else if(j.startTime<=_)o(x),j.sortIndex=j.expirationTime,n(S,j);else break;j=r(x)}}function u(_){if($=!1,s(_),!T)if(r(S)!==null)T=!0,f();else{var j=r(x);j!==null&&m(u,j.startTime-_)}}function d(){return!(t.unstable_now()-W<L)}function f(){P||(P=!0,q())}function m(_,j){B=N(function(){_(t.unstable_now())},j)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var p=performance;t.unstable_now=function(){return p.now()}}else{var g=Date,b=g.now();t.unstable_now=function(){return g.now()-b}}var S=[],x=[],w=1,O=null,E=3,M=!1,T=!1,$=!1,N=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null,P=!1,B=-1,L=5,W=-1;if(typeof z=="function")var q=function(){z(e)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,J=H.port2;H.port1.onmessage=e,q=function(){J.postMessage(null)}}else q=function(){N(e,0)};t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(_){_.callback=null},t.unstable_continueExecution=function(){T||M||(T=!0,f())},t.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<_?Math.floor(1e3/_):5},t.unstable_getCurrentPriorityLevel=function(){return E},t.unstable_getFirstCallbackNode=function(){return r(S)},t.unstable_next=function(_){switch(E){case 1:case 2:case 3:var j=3;break;default:j=E}var V=E;E=j;try{return _()}finally{E=V}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(_,j){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var V=E;E=_;try{return j()}finally{E=V}},t.unstable_scheduleCallback=function(_,j,V){var G=t.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?G+V:G):V=G,_){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=V+K,_={id:w++,callback:j,priorityLevel:_,startTime:V,expirationTime:K,sortIndex:-1},V>G?(_.sortIndex=V,n(x,_),r(S)===null&&_===r(x)&&($?(A(B),B=-1):$=!0,m(u,V-G))):(_.sortIndex=K,n(S,_),T||M||(T=!0,f())),_},t.unstable_shouldYield=d,t.unstable_wrapCallback=function(_){var j=E;return function(){var V=E;E=j;try{return _.apply(this,arguments)}finally{E=V}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()}(US)),US}var tN;function i5(){return tN||(tN=1,FS.exports=o5()),FS.exports}var WS={exports:{}},mo={},nN;function a5(){if(nN)return mo;nN=1;/**
61
- * @license React
62
- * react-dom.development.js
63
- *
64
- * Copyright (c) Meta Platforms, Inc. and affiliates.
65
- *
66
- * This source code is licensed under the MIT license found in the
67
- * LICENSE file in the root directory of this source tree.
68
- */return function(){function t(){}function e(p){return""+p}function n(p,g,b){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{e(S);var x=!1}catch{x=!0}return x&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object"),e(S)),{$$typeof:f,key:S==null?null:""+S,children:p,containerInfo:g,implementation:b}}function r(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}function o(p){return p===null?"`null`":p===void 0?"`undefined`":p===""?"an empty string":'something with type "'+typeof p+'"'}function l(p){return p===null?"`null`":p===void 0?"`undefined`":p===""?"an empty string":typeof p=="string"?JSON.stringify(p):typeof p=="number"?"`"+p+"`":'something with type "'+typeof p+'"'}function s(){var p=m.H;return p===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
69
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
70
- 2. You might be breaking the Rules of Hooks
71
- 3. You might have more than one copy of React in the same app
72
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),p}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var u=im(),d={d:{f:t,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},f=Symbol.for("react.portal"),m=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),mo.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=d,mo.createPortal=function(p,g){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error("Target container is not a DOM element.");return n(p,g,null,b)},mo.flushSync=function(p){var g=m.T,b=d.p;try{if(m.T=null,d.p=2,p)return p()}finally{m.T=g,d.p=b,d.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},mo.preconnect=function(p,g){typeof p=="string"&&p?g!=null&&typeof g!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",l(g)):g!=null&&typeof g.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",o(g.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(p)),typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,d.d.C(p,g))},mo.prefetchDNS=function(p){if(typeof p!="string"||!p)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(p));else if(1<arguments.length){var g=arguments[1];typeof g=="object"&&g.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",l(g)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",l(g))}typeof p=="string"&&d.d.D(p)},mo.preinit=function(p,g){if(typeof p=="string"&&p?g==null||typeof g!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",l(g)):g.as!=="style"&&g.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',l(g.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(p)),typeof p=="string"&&g&&typeof g.as=="string"){var b=g.as,S=r(b,g.crossOrigin),x=typeof g.integrity=="string"?g.integrity:void 0,w=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;b==="style"?d.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:S,integrity:x,fetchPriority:w}):b==="script"&&d.d.X(p,{crossOrigin:S,integrity:x,fetchPriority:w,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},mo.preinitModule=function(p,g){var b="";if(typeof p=="string"&&p||(b+=" The `href` argument encountered was "+o(p)+"."),g!==void 0&&typeof g!="object"?b+=" The `options` argument encountered was "+o(g)+".":g&&"as"in g&&g.as!=="script"&&(b+=" The `as` option encountered was "+l(g.as)+"."),b)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",b);else switch(b=g&&typeof g.as=="string"?g.as:"script",b){case"script":break;default:b=l(b),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',b,p)}typeof p=="string"&&(typeof g=="object"&&g!==null?(g.as==null||g.as==="script")&&(b=r(g.as,g.crossOrigin),d.d.M(p,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})):g==null&&d.d.M(p))},mo.preload=function(p,g){var b="";if(typeof p=="string"&&p||(b+=" The `href` argument encountered was "+o(p)+"."),g==null||typeof g!="object"?b+=" The `options` argument encountered was "+o(g)+".":typeof g.as=="string"&&g.as||(b+=" The `as` option encountered was "+o(g.as)+"."),b&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',b),typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){b=g.as;var S=r(b,g.crossOrigin);d.d.L(p,b,{crossOrigin:S,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},mo.preloadModule=function(p,g){var b="";typeof p=="string"&&p||(b+=" The `href` argument encountered was "+o(p)+"."),g!==void 0&&typeof g!="object"?b+=" The `options` argument encountered was "+o(g)+".":g&&"as"in g&&typeof g.as!="string"&&(b+=" The `as` option encountered was "+o(g.as)+"."),b&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',b),typeof p=="string"&&(g?(b=r(g.as,g.crossOrigin),d.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0})):d.d.m(p))},mo.requestFormReset=function(p){d.d.r(p)},mo.unstable_batchedUpdates=function(p,g){return p(g)},mo.useFormState=function(p,g,b){return s().useFormState(p,g,b)},mo.useFormStatus=function(){return s().useHostTransitionStatus()},mo.version="19.0.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),mo}var rN;function wk(){return rN||(rN=1,WS.exports=a5()),WS.exports}var oN;function l5(){if(oN)return dh;oN=1;/**
73
- * @license React
74
- * react-dom-client.development.js
75
- *
76
- * Copyright (c) Meta Platforms, Inc. and affiliates.
77
- *
78
- * This source code is licensed under the MIT license found in the
79
- * LICENSE file in the root directory of this source tree.
80
- */return function(){function t(i,a){for(i=i.memoizedState;i!==null&&0<a;)i=i.next,a--;return i}function e(i,a,c,h){if(c>=a.length)return h;var v=a[c],C=Jr(i)?i.slice():Sn({},i);return C[v]=e(i[v],a,c+1,h),C}function n(i,a,c){if(a.length!==c.length)console.warn("copyWithRename() expects paths of the same length");else{for(var h=0;h<c.length-1;h++)if(a[h]!==c[h]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return r(i,a,c,0)}}function r(i,a,c,h){var v=a[h],C=Jr(i)?i.slice():Sn({},i);return h+1===a.length?(C[c[h]]=C[v],Jr(C)?C.splice(v,1):delete C[v]):C[v]=r(i[v],a,c,h+1),C}function o(i,a,c){var h=a[c],v=Jr(i)?i.slice():Sn({},i);return c+1===a.length?(Jr(v)?v.splice(h,1):delete v[h],v):(v[h]=o(i[h],a,c+1),v)}function l(){return!1}function s(){return null}function u(i,a,c,h){return new wL(i,a,c,h)}function d(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function f(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function m(){}function p(){}function g(i){var a=[];return i.forEach(function(c){a.push(c)}),a.sort().join(", ")}function b(i,a){i.context===Hl&&(hT(a,i,null,null),hu())}function S(i,a){if(yi!==null){var c=a.staleFamilies;a=a.updatedFamilies,Zs(),By(i.current,a,c),hu()}}function x(i){yi=i}function w(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function O(i){return i===null||typeof i!="object"?null:(i=ET&&i[ET]||i["@@iterator"],typeof i=="function"?i:null)}function E(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===x3?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case Su:return"Fragment";case bu:return"Portal";case w0:return"Profiler";case yp:return"StrictMode";case O0:return"Suspense";case R0:return"SuspenseList"}if(typeof i=="object")switch(typeof i.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),i.$$typeof){case ha:return(i.displayName||"Context")+".Provider";case E0:return(i._context.displayName||"Context")+".Consumer";case wf:var a=i.render;return i=i.displayName,i||(i=a.displayName||a.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case bp:return a=i.displayName||null,a!==null?a:E(i.type)||"Memo";case Yo:a=i._payload,i=i._init;try{return E(i(a))}catch{}}return null}function M(i){return typeof i.tag=="number"?T(i):typeof i.name=="string"?i.name:null}function T(i){var a=i.type;switch(i.tag){case 24:return"Cache";case 9:return(a._context.displayName||"Context")+".Consumer";case 10:return(a.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=a.render,i=i.displayName||i.name||"",a.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return E(a);case 8:return a===yp?"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 14:case 15:if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;break;case 29:if(a=i._debugInfo,a!=null){for(var c=a.length-1;0<=c;c--)if(typeof a[c].name=="string")return a[c].name}if(i.return!==null)return T(i.return)}return null}function $(){}function N(){if(Ef===0){OT=console.log,RT=console.info,TT=console.warn,MT=console.error,$T=console.group,NT=console.groupCollapsed,AT=console.groupEnd;var i={configurable:!0,enumerable:!0,value:$,writable:!0};Object.defineProperties(console,{info:i,log:i,warn:i,error:i,group:i,groupCollapsed:i,groupEnd:i})}Ef++}function A(){if(Ef--,Ef===0){var i={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Sn({},i,{value:OT}),info:Sn({},i,{value:RT}),warn:Sn({},i,{value:TT}),error:Sn({},i,{value:MT}),group:Sn({},i,{value:$T}),groupCollapsed:Sn({},i,{value:NT}),groupEnd:Sn({},i,{value:AT})})}0>Ef&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function z(i){if(T0===void 0)try{throw Error()}catch(c){var a=c.stack.trim().match(/\n( *(at )?)/);T0=a&&a[1]||"",DT=-1<c.stack.indexOf(`
81
- at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
82
- `+T0+i+DT}function P(i,a){if(!i||M0)return"";var c=$0.get(i);if(c!==void 0)return c;M0=!0,c=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var h=null;h=Ve.H,Ve.H=null,N();try{var v={DetermineComponentFrameRoot:function(){try{if(a){var Ie=function(){throw Error()};if(Object.defineProperty(Ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ie,[])}catch(Ft){var Je=Ft}Reflect.construct(i,[],Ie)}else{try{Ie.call()}catch(Ft){Je=Ft}i.call(Ie.prototype)}}else{try{throw Error()}catch(Ft){Je=Ft}(Ie=i())&&typeof Ie.catch=="function"&&Ie.catch(function(){})}}catch(Ft){if(Ft&&Je&&typeof Ft.stack=="string")return[Ft.stack,Je.stack]}return[null,null]}};v.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var C=Object.getOwnPropertyDescriptor(v.DetermineComponentFrameRoot,"name");C&&C.configurable&&Object.defineProperty(v.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var R=v.DetermineComponentFrameRoot(),k=R[0],U=R[1];if(k&&U){var X=k.split(`
83
- `),Ae=U.split(`
84
- `);for(R=C=0;C<X.length&&!X[C].includes("DetermineComponentFrameRoot");)C++;for(;R<Ae.length&&!Ae[R].includes("DetermineComponentFrameRoot");)R++;if(C===X.length||R===Ae.length)for(C=X.length-1,R=Ae.length-1;1<=C&&0<=R&&X[C]!==Ae[R];)R--;for(;1<=C&&0<=R;C--,R--)if(X[C]!==Ae[R]){if(C!==1||R!==1)do if(C--,R--,0>R||X[C]!==Ae[R]){var Ye=`
85
- `+X[C].replace(" at new "," at ");return i.displayName&&Ye.includes("<anonymous>")&&(Ye=Ye.replace("<anonymous>",i.displayName)),typeof i=="function"&&$0.set(i,Ye),Ye}while(1<=C&&0<=R);break}}}finally{M0=!1,Ve.H=h,A(),Error.prepareStackTrace=c}return X=(X=i?i.displayName||i.name:"")?z(X):"",typeof i=="function"&&$0.set(i,X),X}function B(i){switch(i.tag){case 26:case 27:case 5:return z(i.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 15:return i=P(i.type,!1),i;case 11:return i=P(i.type.render,!1),i;case 1:return i=P(i.type,!0),i;default:return""}}function L(i){try{var a="";do{a+=B(i);var c=i._debugInfo;if(c)for(var h=c.length-1;0<=h;h--){var v=c[h];if(typeof v.name=="string"){var C=a,R=v.env,k=z(v.name+(R?" ["+R+"]":""));a=C+k}}i=i.return}while(i);return a}catch(U){return`
86
- Error generating stack: `+U.message+`
87
- `+U.stack}}function W(){if(co===null)return null;var i=co._debugOwner;return i!=null?M(i):null}function q(){return co===null?"":L(co)}function H(i,a,c,h,v,C,R){var k=co;Ve.getCurrentStack=i===null?null:q,gi=!1,co=i;try{return a(c,h,v,C,R)}finally{co=k}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function J(i){var a=i,c=i;if(i.alternate)for(;a.return;)a=a.return;else{i=a;do a=i,(a.flags&4098)!==0&&(c=a.return),i=a.return;while(i)}return a.tag===3?c:null}function _(i){if(i.tag===13){var a=i.memoizedState;if(a===null&&(i=i.alternate,i!==null&&(a=i.memoizedState)),a!==null)return a.dehydrated}return null}function j(i){if(J(i)!==i)throw Error("Unable to find node on an unmounted component.")}function V(i){var a=i.alternate;if(!a){if(a=J(i),a===null)throw Error("Unable to find node on an unmounted component.");return a!==i?null:i}for(var c=i,h=a;;){var v=c.return;if(v===null)break;var C=v.alternate;if(C===null){if(h=v.return,h!==null){c=h;continue}break}if(v.child===C.child){for(C=v.child;C;){if(C===c)return j(v),i;if(C===h)return j(v),a;C=C.sibling}throw Error("Unable to find node on an unmounted component.")}if(c.return!==h.return)c=v,h=C;else{for(var R=!1,k=v.child;k;){if(k===c){R=!0,c=v,h=C;break}if(k===h){R=!0,h=v,c=C;break}k=k.sibling}if(!R){for(k=C.child;k;){if(k===c){R=!0,c=C,h=v;break}if(k===h){R=!0,h=C,c=v;break}k=k.sibling}if(!R)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(c.alternate!==h)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(c.tag!==3)throw Error("Unable to find node on an unmounted component.");return c.stateNode.current===c?i:a}function G(i){var a=i.tag;if(a===5||a===26||a===27||a===6)return i;for(i=i.child;i!==null;){if(a=G(i),a!==null)return a;i=i.sibling}return null}function K(i){return{current:i}}function Y(i,a){0>Ka?console.error("Unexpected pop."):(a!==A0[Ka]&&console.error("Unexpected Fiber popped."),i.current=N0[Ka],N0[Ka]=null,A0[Ka]=null,Ka--)}function ne(i,a,c){Ka++,N0[Ka]=i.current,A0[Ka]=c,i.current=a}function ae(i){return i===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),i}function Q(i,a){ne(zl,a,i),ne(Of,i,i),ne(Pl,null,i);var c=a.nodeType;switch(c){case 9:case 11:c=c===9?"#document":"#fragment",a=(a=a.documentElement)&&(a=a.namespaceURI)?XR(a):al;break;default:if(a=c===8?a.parentNode:a,c=a.tagName,a=a.namespaceURI)a=XR(a),a=QR(a,c);else switch(c){case"svg":a=Ju;break;case"math":a=ig;break;default:a=al}}c=c.toLowerCase(),c=Ge(null,c),c={context:a,ancestorInfo:c},Y(Pl,i),ne(Pl,c,i)}function se(i){Y(Pl,i),Y(Of,i),Y(zl,i)}function de(){return ae(Pl.current)}function xe(i){i.memoizedState!==null&&ne(Sp,i,i);var a=ae(Pl.current),c=i.type,h=QR(a.context,c);c=Ge(a.ancestorInfo,c),h={context:h,ancestorInfo:c},a!==h&&(ne(Of,i,i),ne(Pl,h,i))}function fe(i){Of.current===i&&(Y(Pl,i),Y(Of,i)),Sp.current===i&&(Y(Sp,i),sh._currentValue=xc)}function Me(i){return typeof Symbol=="function"&&Symbol.toStringTag&&i[Symbol.toStringTag]||i.constructor.name||"Object"}function ze(i){try{return Oe(i),!1}catch{return!0}}function Oe(i){return""+i}function he(i,a){if(ze(i))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",a,Me(i)),Oe(i)}function De(i,a){if(ze(i))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",a,Me(i)),Oe(i)}function pe(i){if(ze(i))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",Me(i)),Oe(i)}function we(i){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var a=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(a.isDisabled)return!0;if(!a.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{xu=a.inject(i),uo=a}catch(c){console.error("React instrumentation encountered an error: %s.",c)}return!!a.checkDCE}function $e(i,a){if(uo&&typeof uo.onCommitFiberRoot=="function")try{var c=(i.current.flags&128)===128;switch(a){case ga:var h=I0;break;case va:h=k0;break;case Xa:h=Cu;break;case wp:h=P0;break;default:h=Cu}uo.onCommitFiberRoot(xu,i,h,c)}catch(v){pa||(pa=!0,console.error("React instrumentation encountered an error: %s",v))}}function Pe(i){if(typeof $3=="function"&&N3(i),uo&&typeof uo.setStrictMode=="function")try{uo.setStrictMode(xu,i)}catch(a){pa||(pa=!0,console.error("React instrumentation encountered an error: %s",a))}}function Ze(i){_t=i}function We(){_t!==null&&typeof _t.markCommitStopped=="function"&&_t.markCommitStopped()}function ut(i){_t!==null&&typeof _t.markComponentRenderStarted=="function"&&_t.markComponentRenderStarted(i)}function I(){_t!==null&&typeof _t.markComponentRenderStopped=="function"&&_t.markComponentRenderStopped()}function me(i){_t!==null&&typeof _t.markRenderStarted=="function"&&_t.markRenderStarted(i)}function oe(){_t!==null&&typeof _t.markRenderStopped=="function"&&_t.markRenderStopped()}function ge(i,a){_t!==null&&typeof _t.markStateUpdateScheduled=="function"&&_t.markStateUpdateScheduled(i,a)}function Ue(i){return i>>>=0,i===0?32:31-(A3(i)/D3|0)|0}function Fe(i){if(i&1)return"SyncHydrationLane";if(i&2)return"Sync";if(i&4)return"InputContinuousHydration";if(i&8)return"InputContinuous";if(i&16)return"DefaultHydration";if(i&32)return"Default";if(i&64)return"TransitionHydration";if(i&4194176)return"Transition";if(i&62914560)return"Retry";if(i&67108864)return"SelectiveHydration";if(i&134217728)return"IdleHydration";if(i&268435456)return"Idle";if(i&536870912)return"Offscreen";if(i&1073741824)return"Deferred"}function Te(i){var a=i&42;if(a!==0)return a;switch(i&-i){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:return 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 i&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),i}}function _e(i,a){var c=i.pendingLanes;if(c===0)return 0;var h=0,v=i.suspendedLanes,C=i.pingedLanes,R=i.warmLanes;i=i.finishedLanes!==0;var k=c&134217727;return k!==0?(c=k&~v,c!==0?h=Te(c):(C&=k,C!==0?h=Te(C):i||(R=k&~R,R!==0&&(h=Te(R))))):(k=c&~v,k!==0?h=Te(k):C!==0?h=Te(C):i||(R=c&~R,R!==0&&(h=Te(R)))),h===0?0:a!==0&&a!==h&&(a&v)===0&&(v=h&-h,R=a&-a,v>=R||v===32&&(R&4194176)!==0)?a:h}function it(i,a){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&a)===0}function Xe(i,a){switch(i){case 1:case 2:case 4:case 8:return a+250;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 a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function dt(){var i=Cp;return Cp<<=1,(Cp&4194176)===0&&(Cp=128),i}function vt(){var i=xp;return xp<<=1,(xp&62914560)===0&&(xp=4194304),i}function et(i){for(var a=[],c=0;31>c;c++)a.push(i);return a}function st(i,a){i.pendingLanes|=a,a!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function at(i,a,c,h,v,C){var R=i.pendingLanes;i.pendingLanes=c,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=c,i.entangledLanes&=c,i.errorRecoveryDisabledLanes&=c,i.shellSuspendCounter=0;var k=i.entanglements,U=i.expirationTimes,X=i.hiddenUpdates;for(c=R&~c;0<c;){var Ae=31-wo(c),Ye=1<<Ae;k[Ae]=0,U[Ae]=-1;var Ie=X[Ae];if(Ie!==null)for(X[Ae]=null,Ae=0;Ae<Ie.length;Ae++){var Je=Ie[Ae];Je!==null&&(Je.lane&=-536870913)}c&=~Ye}h!==0&&Ct(i,h,0),C!==0&&v===0&&i.tag!==0&&(i.suspendedLanes|=C&~(R&~a))}function Ct(i,a,c){i.pendingLanes|=a,i.suspendedLanes&=~a;var h=31-wo(a);i.entangledLanes|=a,i.entanglements[h]=i.entanglements[h]|1073741824|c&4194218}function $t(i,a){var c=i.entangledLanes|=a;for(i=i.entanglements;c;){var h=31-wo(c),v=1<<h;v&a|i[h]&a&&(i[h]|=a),c&=~v}}function Ut(i,a,c){if(Li)for(i=i.pendingUpdatersLaneMap;0<c;){var h=31-wo(c),v=1<<h;i[h].add(a),c&=~v}}function sn(i,a){if(Li)for(var c=i.pendingUpdatersLaneMap,h=i.memoizedUpdaters;0<a;){var v=31-wo(a);i=1<<v,v=c[v],0<v.size&&(v.forEach(function(C){var R=C.alternate;R!==null&&h.has(R)||h.add(C)}),v.clear()),a&=~i}}function un(i){return i&=-i,ga<i?va<i?(i&134217727)!==0?Xa:wp:va:ga}function kn(){var i=sr.p;return i!==0?i:(i=window.event,i===void 0?Xa:vT(i.type))}function Rt(i,a){var c=sr.p;try{return sr.p=i,a()}finally{sr.p=c}}function bt(i){delete i[fo],delete i[Bo],delete i[z0],delete i[I3],delete i[k3]}function kt(i){var a=i[fo];if(a)return a;for(var c=i.parentNode;c;){if(a=c[Js]||c[fo]){if(c=a.alternate,a.child!==null||c!==null&&c.child!==null)for(i=nT(i);i!==null;){if(c=i[fo])return c;i=nT(i)}return a}i=c,c=i.parentNode}return null}function Dt(i){if(i=i[fo]||i[Js]){var a=i.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return i}return null}function jt(i){var a=i.tag;if(a===5||a===26||a===27||a===6)return i.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function wt(i){var a=i[IT];return a||(a=i[IT]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function lt(i){i[Rf]=!0}function St(i,a){Kt(i,a),Kt(i+"Capture",a)}function Kt(i,a){ec[i]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",i),ec[i]=a;var c=i.toLowerCase();for(_0[c]=i,i==="onDoubleClick"&&(_0.ondblclick=i),i=0;i<a.length;i++)kT.add(a[i])}function tn(i,a){P3[a.type]||a.onChange||a.onInput||a.readOnly||a.disabled||a.value==null||console.error(i==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),a.onChange||a.readOnly||a.disabled||a.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Tt(i){return Ya.call(zT,i)?!0:Ya.call(PT,i)?!1:z3.test(i)?zT[i]=!0:(PT[i]=!0,console.error("Invalid attribute name: `%s`",i),!1)}function gt(i,a,c){if(Tt(a)){if(!i.hasAttribute(a)){switch(typeof c){case"symbol":case"object":return c;case"function":return c;case"boolean":if(c===!1)return c}return c===void 0?void 0:null}return i=i.getAttribute(a),i===""&&c===!0?!0:(he(c,a),i===""+c?c:i)}}function Nt(i,a,c){if(Tt(a))if(c===null)i.removeAttribute(a);else{switch(typeof c){case"undefined":case"function":case"symbol":i.removeAttribute(a);return;case"boolean":var h=a.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){i.removeAttribute(a);return}}he(c,a),i.setAttribute(a,""+c)}}function zt(i,a,c){if(c===null)i.removeAttribute(a);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(a);return}he(c,a),i.setAttribute(a,""+c)}}function Et(i,a,c,h){if(h===null)i.removeAttribute(c);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(c);return}he(h,c),i.setAttributeNS(a,c,""+h)}}function D(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return pe(i),i;default:return""}}function ce(i){var a=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function ke(i){var a=ce(i)?"checked":"value",c=Object.getOwnPropertyDescriptor(i.constructor.prototype,a);pe(i[a]);var h=""+i[a];if(!i.hasOwnProperty(a)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var v=c.get,C=c.set;return Object.defineProperty(i,a,{configurable:!0,get:function(){return v.call(this)},set:function(R){pe(R),h=""+R,C.call(this,R)}}),Object.defineProperty(i,a,{enumerable:c.enumerable}),{getValue:function(){return h},setValue:function(R){pe(R),h=""+R},stopTracking:function(){i._valueTracker=null,delete i[a]}}}}function Qe(i){i._valueTracker||(i._valueTracker=ke(i))}function ot(i){if(!i)return!1;var a=i._valueTracker;if(!a)return!0;var c=a.getValue(),h="";return i&&(h=ce(i)?i.checked?"true":"false":i.value),i=h,i!==c?(a.setValue(i),!0):!1}function mt(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function rt(i){return i.replace(_3,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Wt(i,a){a.checked===void 0||a.defaultChecked===void 0||BT||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",W()||"A component",a.type),BT=!0),a.value===void 0||a.defaultValue===void 0||_T||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",W()||"A component",a.type),_T=!0)}function Yt(i,a,c,h,v,C,R,k){i.name="",R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?(he(R,"type"),i.type=R):i.removeAttribute("type"),a!=null?R==="number"?(a===0&&i.value===""||i.value!=a)&&(i.value=""+D(a)):i.value!==""+D(a)&&(i.value=""+D(a)):R!=="submit"&&R!=="reset"||i.removeAttribute("value"),a!=null?cn(i,R,D(a)):c!=null?cn(i,R,D(c)):h!=null&&i.removeAttribute("value"),v==null&&C!=null&&(i.defaultChecked=!!C),v!=null&&(i.checked=v&&typeof v!="function"&&typeof v!="symbol"),k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?(he(k,"name"),i.name=""+D(k)):i.removeAttribute("name")}function Xt(i,a,c,h,v,C,R,k){if(C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(he(C,"type"),i.type=C),a!=null||c!=null){if(!(C!=="submit"&&C!=="reset"||a!=null))return;c=c!=null?""+D(c):"",a=a!=null?""+D(a):c,k||a===i.value||(i.value=a),i.defaultValue=a}h=h??v,h=typeof h!="function"&&typeof h!="symbol"&&!!h,i.checked=k?i.checked:!!h,i.defaultChecked=!!h,R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"&&(he(R,"name"),i.name=R)}function cn(i,a,c){a==="number"&&mt(i.ownerDocument)===i||i.defaultValue===""+c||(i.defaultValue=""+c)}function ct(i,a){a.value==null&&(typeof a.children=="object"&&a.children!==null?x0.Children.forEach(a.children,function(c){c==null||typeof c=="string"||typeof c=="number"||typeof c=="bigint"||jT||(jT=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):a.dangerouslySetInnerHTML==null||LT||(LT=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),a.selected==null||HT||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),HT=!0)}function Ot(){var i=W();return i?`
88
-
89
- Check the render method of \``+i+"`.":""}function xt(i,a,c,h){if(i=i.options,a){a={};for(var v=0;v<c.length;v++)a["$"+c[v]]=!0;for(c=0;c<i.length;c++)v=a.hasOwnProperty("$"+i[c].value),i[c].selected!==v&&(i[c].selected=v),v&&h&&(i[c].defaultSelected=!0)}else{for(c=""+D(c),a=null,v=0;v<i.length;v++){if(i[v].value===c){i[v].selected=!0,h&&(i[v].defaultSelected=!0);return}a!==null||i[v].disabled||(a=i[v])}a!==null&&(a.selected=!0)}}function nt(i,a){for(i=0;i<FT.length;i++){var c=FT[i];if(a[c]!=null){var h=Jr(a[c]);a.multiple&&!h?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",c,Ot()):!a.multiple&&h&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",c,Ot())}}a.value===void 0||a.defaultValue===void 0||VT||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),VT=!0)}function qt(i,a){a.value===void 0||a.defaultValue===void 0||UT||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",W()||"A component"),UT=!0),a.children!=null&&a.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function on(i,a,c){if(a!=null&&(a=""+D(a),a!==i.value&&(i.value=a),c==null)){i.defaultValue!==a&&(i.defaultValue=a);return}i.defaultValue=c!=null?""+D(c):""}function dn(i,a,c,h){if(a==null){if(h!=null){if(c!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Jr(h)){if(1<h.length)throw Error("<textarea> can only have at most one child.");h=h[0]}c=h}c==null&&(c=""),a=c}c=D(a),i.defaultValue=c,h=i.textContent,h===c&&h!==""&&h!==null&&(i.value=h)}function Fn(i,a){return i.serverProps===void 0&&i.serverTail.length===0&&i.children.length===1&&3<i.distanceFromLeaf&&i.distanceFromLeaf>15-a?Fn(i.children[0],a):i}function gn(i){return" "+" ".repeat(i)}function _n(i){return"+ "+" ".repeat(i)}function Dn(i){return"- "+" ".repeat(i)}function Ln(i){switch(i.tag){case 26:case 27:case 5:return i.type;case 16:return"Lazy";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return i=i.type,i.displayName||i.name||null;case 11:return i=i.type.render,i.displayName||i.name||null;case 1:return i=i.type,i.displayName||i.name||null;default:return null}}function Jn(i,a){return WT.test(i)?(i=JSON.stringify(i),i.length>a-2?8>a?'{"..."}':"{"+i.slice(0,a-7)+'..."}':"{"+i+"}"):i.length>a?5>a?'{"..."}':i.slice(0,a-3)+"...":i}function dr(i,a,c){var h=120-2*c;if(a===null)return _n(c)+Jn(i,h)+`
90
- `;if(typeof a=="string"){for(var v=0;v<a.length&&v<i.length&&a.charCodeAt(v)===i.charCodeAt(v);v++);return v>h-8&&10<v&&(i="..."+i.slice(v-8),a="..."+a.slice(v-8)),_n(c)+Jn(i,h)+`
91
- `+Dn(c)+Jn(a,h)+`
92
- `}return gn(c)+Jn(i,h)+`
93
- `}function F(i){return Object.prototype.toString.call(i).replace(/^\[object (.*)\]$/,function(a,c){return c})}function ie(i,a){switch(typeof i){case"string":return i=JSON.stringify(i),i.length>a?5>a?'"..."':i.slice(0,a-4)+'..."':i;case"object":if(i===null)return"null";if(Jr(i))return"[...]";if(i.$$typeof===kl)return(a=E(i.type))?"<"+a+">":"<...>";var c=F(i);if(c==="Object"){c="",a-=2;for(var h in i)if(i.hasOwnProperty(h)){var v=JSON.stringify(h);if(v!=='"'+h+'"'&&(h=v),a-=h.length-2,v=ie(i[h],15>a?a:15),a-=v.length,0>a){c+=c===""?"...":", ...";break}c+=(c===""?"":",")+h+":"+v}return"{"+c+"}"}return c;case"function":return(a=i.displayName||i.name)?"function "+a:"function";default:return String(i)}}function Z(i,a){return typeof i!="string"||WT.test(i)?"{"+ie(i,a-2)+"}":i.length>a-2?5>a?'"..."':'"'+i.slice(0,a-5)+'..."':'"'+i+'"'}function be(i,a,c){var h=120-c.length-i.length,v=[],C;for(C in a)if(a.hasOwnProperty(C)&&C!=="children"){var R=Z(a[C],120-c.length-C.length-1);h-=C.length+R.length+2,v.push(C+"="+R)}return v.length===0?c+"<"+i+`>
94
- `:0<h?c+"<"+i+" "+v.join(" ")+`>
95
- `:c+"<"+i+`
96
- `+c+" "+v.join(`
97
- `+c+" ")+`
98
- `+c+`>
99
- `}function Ce(i,a,c){var h="",v=Sn({},a),C;for(C in i)if(i.hasOwnProperty(C)){delete v[C];var R=120-2*c-C.length-2,k=ie(i[C],R);a.hasOwnProperty(C)?(R=ie(a[C],R),h+=_n(c)+C+": "+k+`
100
- `,h+=Dn(c)+C+": "+R+`
101
- `):h+=_n(c)+C+": "+k+`
102
- `}for(var U in v)v.hasOwnProperty(U)&&(i=ie(v[U],120-2*c-U.length-2),h+=Dn(c)+U+": "+i+`
103
- `);return h}function ve(i,a,c,h){var v="",C=new Map;for(X in c)c.hasOwnProperty(X)&&C.set(X.toLowerCase(),X);if(C.size===1&&C.has("children"))v+=be(i,a,gn(h));else{for(var R in a)if(a.hasOwnProperty(R)&&R!=="children"){var k=120-2*(h+1)-R.length-1,U=C.get(R.toLowerCase());if(U!==void 0){C.delete(R.toLowerCase());var X=a[R];U=c[U];var Ae=Z(X,k);k=Z(U,k),typeof X=="object"&&X!==null&&typeof U=="object"&&U!==null&&F(X)==="Object"&&F(U)==="Object"&&(2<Object.keys(X).length||2<Object.keys(U).length||-1<Ae.indexOf("...")||-1<k.indexOf("..."))?v+=gn(h+1)+R+`={{
104
- `+Ce(X,U,h+2)+gn(h+1)+`}}
105
- `:(v+=_n(h+1)+R+"="+Ae+`
106
- `,v+=Dn(h+1)+R+"="+k+`
107
- `)}else v+=gn(h+1)+R+"="+Z(a[R],k)+`
108
- `}C.forEach(function(Ye){if(Ye!=="children"){var Ie=120-2*(h+1)-Ye.length-1;v+=Dn(h+1)+Ye+"="+Z(c[Ye],Ie)+`
109
- `}}),v=v===""?gn(h)+"<"+i+`>
110
- `:gn(h)+"<"+i+`
111
- `+v+gn(h)+`>
112
- `}return i=c.children,a=a.children,typeof i=="string"||typeof i=="number"||typeof i=="bigint"?(C="",(typeof a=="string"||typeof a=="number"||typeof a=="bigint")&&(C=""+a),v+=dr(C,""+i,h+1)):(typeof a=="string"||typeof a=="number"||typeof a=="bigint")&&(v=i==null?v+dr(""+a,null,h+1):v+dr(""+a,void 0,h+1)),v}function qe(i,a){var c=Ln(i);if(c===null){for(c="",i=i.child;i;)c+=qe(i,a),i=i.sibling;return c}return gn(a)+"<"+c+`>
113
- `}function Be(i,a){var c=Fn(i,a);if(c!==i&&(i.children.length!==1||i.children[0]!==c))return gn(a)+`...
114
- `+Be(c,a+1);c="";var h=i.fiber._debugInfo;if(h)for(var v=0;v<h.length;v++){var C=h[v].name;typeof C=="string"&&(c+=gn(a)+"<"+C+`>
115
- `,a++)}if(h="",v=i.fiber.pendingProps,i.fiber.tag===6)h=dr(v,i.serverProps,a),a++;else if(C=Ln(i.fiber),C!==null)if(i.serverProps===void 0){h=a;var R=120-2*h-C.length-2,k="";for(X in v)if(v.hasOwnProperty(X)&&X!=="children"){var U=Z(v[X],15);if(R-=X.length+U.length+2,0>R){k+=" ...";break}k+=" "+X+"="+U}h=gn(h)+"<"+C+k+`>
116
- `,a++}else i.serverProps===null?(h=be(C,v,_n(a)),a++):typeof i.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(h=ve(C,v,i.serverProps,a),a++);var X="";for(v=i.fiber.child,C=0;v&&C<i.children.length;)R=i.children[C],R.fiber===v?(X+=Be(R,a),C++):X+=qe(v,a),v=v.sibling;for(v&&0<i.children.length&&(X+=gn(a)+`...
117
- `),v=i.serverTail,i.serverProps===null&&a--,i=0;i<v.length;i++)C=v[i],X=typeof C=="string"?X+(Dn(a)+Jn(C,120-2*a)+`
118
- `):X+be(C.type,C.props,Dn(a));return c+h+X}function Ne(i){try{return`
119
-
120
- `+Be(i,0)}catch{return""}}function je(i,a,c){for(var h=a,v=null,C=0;h;)h===i&&(C=0),v={fiber:h,children:v!==null?[v]:[],serverProps:h===a?c:h===i?null:void 0,serverTail:[],distanceFromLeaf:C},C++,h=h.return;return v!==null?Ne(v).replaceAll(/^[+-]/gm,">"):""}function Ge(i,a){i=Sn({},i||GT);var c={tag:a};return qT.indexOf(a)!==-1&&(i.aTagInScope=null,i.buttonTagInScope=null,i.nobrTagInScope=null),H3.indexOf(a)!==-1&&(i.pTagInButtonScope=null),B3.indexOf(a)!==-1&&a!=="address"&&a!=="div"&&a!=="p"&&(i.listItemTagAutoclosing=null,i.dlItemTagAutoclosing=null),i.current=c,a==="form"&&(i.formTag=c),a==="a"&&(i.aTagInScope=c),a==="button"&&(i.buttonTagInScope=c),a==="nobr"&&(i.nobrTagInScope=c),a==="p"&&(i.pTagInButtonScope=c),a==="li"&&(i.listItemTagAutoclosing=c),(a==="dd"||a==="dt")&&(i.dlItemTagAutoclosing=c),a==="#document"||a==="html"?i.containerTagInScope=null:i.containerTagInScope||(i.containerTagInScope=c),i}function ft(i,a){switch(a){case"select":return i==="hr"||i==="option"||i==="optgroup"||i==="#text";case"optgroup":return i==="option"||i==="#text";case"option":return i==="#text";case"tr":return i==="th"||i==="td"||i==="style"||i==="script"||i==="template";case"tbody":case"thead":case"tfoot":return i==="tr"||i==="style"||i==="script"||i==="template";case"colgroup":return i==="col"||i==="template";case"table":return i==="caption"||i==="colgroup"||i==="tbody"||i==="tfoot"||i==="thead"||i==="style"||i==="script"||i==="template";case"head":return i==="base"||i==="basefont"||i==="bgsound"||i==="link"||i==="meta"||i==="title"||i==="noscript"||i==="noframes"||i==="style"||i==="script"||i==="template";case"html":return i==="head"||i==="body"||i==="frameset";case"frameset":return i==="frame";case"#document":return i==="html"}switch(i){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return a!=="h1"&&a!=="h2"&&a!=="h3"&&a!=="h4"&&a!=="h5"&&a!=="h6";case"rp":case"rt":return j3.indexOf(a)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return a==null}return!0}function Pt(i,a){switch(i){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return a.pTagInButtonScope;case"form":return a.formTag||a.pTagInButtonScope;case"li":return a.listItemTagAutoclosing;case"dd":case"dt":return a.dlItemTagAutoclosing;case"button":return a.buttonTagInScope;case"a":return a.aTagInScope;case"nobr":return a.nobrTagInScope}return null}function Jt(i,a){for(;i;){switch(i.tag){case 5:case 26:case 27:if(i.type===a)return i}i=i.return}return null}function en(i,a){a=a||GT;var c=a.current;if(a=(c=ft(i,c&&c.tag)?null:c)?null:Pt(i,a),a=c||a,!a)return!0;a=a.tag;var h=String(!!c)+"|"+i+"|"+a;if(Ep[h])return!1;Ep[h]=!0;var v=(h=co)?Jt(h.return,a):null;return h=h!==null&&v!==null?je(v,h,null):"",v="<"+i+">",c?(c="",a==="table"&&i==="tr"&&(c+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
121
- This will cause a hydration error.%s`,v,a,c,h)):console.error(`In HTML, %s cannot be a descendant of <%s>.
122
- This will cause a hydration error.%s`,v,a,h),!1}function bn(i,a){if(ft("#text",a))return!0;var c="#text|"+a;if(Ep[c])return!1;Ep[c]=!0;var h=(c=co)?Jt(c,a):null;return c=c!==null&&h!==null?je(h,c,c.tag!==6?{children:null}:null):"",/\S/.test(i)?console.error(`In HTML, text nodes cannot be a child of <%s>.
123
- This will cause a hydration error.%s`,a,c):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
124
- This will cause a hydration error.%s`,a,c),!1}function vn(i,a){if(a){var c=i.firstChild;if(c&&c===i.lastChild&&c.nodeType===3){c.nodeValue=a;return}}i.textContent=a}function Un(i){return i.replace(F3,function(a,c){return c.toUpperCase()})}function lr(i,a,c){var h=a.indexOf("--")===0;h||(-1<a.indexOf("-")?Eu.hasOwnProperty(a)&&Eu[a]||(Eu[a]=!0,console.error("Unsupported style property %s. Did you mean %s?",a,Un(a.replace(V3,"ms-")))):L3.test(a)?Eu.hasOwnProperty(a)&&Eu[a]||(Eu[a]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",a,a.charAt(0).toUpperCase()+a.slice(1))):!XT.test(c)||H0.hasOwnProperty(c)&&H0[c]||(H0[c]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,a,c.replace(XT,""))),typeof c=="number"&&(isNaN(c)?QT||(QT=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",a)):isFinite(c)||ZT||(ZT=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",a)))),c==null||typeof c=="boolean"||c===""?h?i.setProperty(a,""):a==="float"?i.cssFloat="":i[a]="":h?i.setProperty(a,c):typeof c!="number"||c===0||JT.has(a)?a==="float"?i.cssFloat=c:(De(c,a),i[a]=(""+c).trim()):i[a]=c+"px"}function or(i,a,c){if(a!=null&&typeof a!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(a&&Object.freeze(a),i=i.style,c!=null){if(a){var h={};if(c){for(var v in c)if(c.hasOwnProperty(v)&&!a.hasOwnProperty(v))for(var C=B0[v]||[v],R=0;R<C.length;R++)h[C[R]]=v}for(var k in a)if(a.hasOwnProperty(k)&&(!c||c[k]!==a[k]))for(v=B0[k]||[k],C=0;C<v.length;C++)h[v[C]]=k;k={};for(var U in a)for(v=B0[U]||[U],C=0;C<v.length;C++)k[v[C]]=U;U={};for(var X in h)if(v=h[X],(C=k[X])&&v!==C&&(R=v+","+C,!U[R])){U[R]=!0,R=console;var Ae=a[v];R.error.call(R,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",Ae==null||typeof Ae=="boolean"||Ae===""?"Removing":"Updating",v,C)}}for(var Ye in c)!c.hasOwnProperty(Ye)||a!=null&&a.hasOwnProperty(Ye)||(Ye.indexOf("--")===0?i.setProperty(Ye,""):Ye==="float"?i.cssFloat="":i[Ye]="");for(var Ie in a)X=a[Ie],a.hasOwnProperty(Ie)&&c[Ie]!==X&&lr(i,Ie,X)}else for(h in a)a.hasOwnProperty(h)&&lr(i,h,a[h])}function Wo(i){if(i.indexOf("-")===-1)return!1;switch(i){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}}function Ba(i){return U3.get(i)||i}function Kd(i,a){if(Ya.call(Ou,a)&&Ou[a])return!0;if(q3.test(a)){if(i="aria-"+a.slice(4).toLowerCase(),i=eM.hasOwnProperty(i)?i:null,i==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",a),Ou[a]=!0;if(a!==i)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",a,i),Ou[a]=!0}if(W3.test(a)){if(i=a.toLowerCase(),i=eM.hasOwnProperty(i)?i:null,i==null)return Ou[a]=!0,!1;a!==i&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",a,i),Ou[a]=!0)}return!0}function Pr(i,a){var c=[],h;for(h in a)Kd(i,h)||c.push(h);a=c.map(function(v){return"`"+v+"`"}).join(", "),c.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",a,i):1<c.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",a,i)}function ia(i,a,c,h){if(Ya.call(Eo,a)&&Eo[a])return!0;var v=a.toLowerCase();if(v==="onfocusin"||v==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Eo[a]=!0;if(typeof c=="function"&&(i==="form"&&a==="action"||i==="input"&&a==="formAction"||i==="button"&&a==="formAction"))return!0;if(h!=null){if(i=h.possibleRegistrationNames,h.registrationNameDependencies.hasOwnProperty(a))return!0;if(h=i.hasOwnProperty(v)?i[v]:null,h!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",a,h),Eo[a]=!0;if(nM.test(a))return console.error("Unknown event handler property `%s`. It will be ignored.",a),Eo[a]=!0}else if(nM.test(a))return G3.test(a)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",a),Eo[a]=!0;if(K3.test(a)||Y3.test(a))return!0;if(v==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Eo[a]=!0;if(v==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Eo[a]=!0;if(v==="is"&&c!==null&&c!==void 0&&typeof c!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof c),Eo[a]=!0;if(typeof c=="number"&&isNaN(c))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",a),Eo[a]=!0;if(Rp.hasOwnProperty(v)){if(v=Rp[v],v!==a)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",a,v),Eo[a]=!0}else if(a!==v)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",a,v),Eo[a]=!0;switch(a){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof c){case"boolean":switch(a){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return v=a.toLowerCase().slice(0,5),v==="data-"||v==="aria-"?!0:(c?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',c,a,a,c,a):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',c,a,a,c,a,a,a),Eo[a]=!0)}case"function":case"symbol":return Eo[a]=!0,!1;case"string":if(c==="false"||c==="true"){switch(a){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",c,a,c==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',a,c),Eo[a]=!0}}return!0}function Bi(i,a,c){var h=[],v;for(v in a)ia(i,v,a[v],c)||h.push(v);a=h.map(function(C){return"`"+C+"`"}).join(", "),h.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",a,i):1<h.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",a,i)}function Po(i){return X3.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}function aa(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}function Is(i){var a=Dt(i);if(a&&(i=a.stateNode)){var c=i[Bo]||null;e:switch(i=a.stateNode,a.type){case"input":if(Yt(i,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),a=c.name,c.type==="radio"&&a!=null){for(c=i;c.parentNode;)c=c.parentNode;for(he(a,"name"),c=c.querySelectorAll('input[name="'+rt(""+a)+'"][type="radio"]'),a=0;a<c.length;a++){var h=c[a];if(h!==i&&h.form===i.form){var v=h[Bo]||null;if(!v)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Yt(h,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(a=0;a<c.length;a++)h=c[a],h.form===i.form&&ot(h)}break e;case"textarea":on(i,c.value,c.defaultValue);break e;case"select":a=c.value,a!=null&&xt(i,!!c.multiple,a,!1)}}}function ks(i,a,c){if(j0)return i(a,c);j0=!0;try{var h=i(a);return h}finally{if(j0=!1,(Ru!==null||Tu!==null)&&(hu(),Ru&&(a=Ru,i=Tu,Tu=Ru=null,Is(a),i)))for(a=0;a<i.length;a++)Is(i[a])}}function Ha(i,a){var c=i.stateNode;if(c===null)return null;var h=c[Bo]||null;if(h===null)return null;c=h[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(i=i.type,h=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!h;break e;default:i=!1}if(i)return null;if(c&&typeof c!="function")throw Error("Expected `"+a+"` listener to be a function, instead got a value of `"+typeof c+"` type.");return c}function Bt(){if(Tp)return Tp;var i,a=V0,c=a.length,h,v="value"in Bl?Bl.value:Bl.textContent,C=v.length;for(i=0;i<c&&a[i]===v[i];i++);var R=c-i;for(h=1;h<=R&&a[c-h]===v[C-h];h++);return Tp=v.slice(i,1<h?1-h:void 0)}function Qt(i){var a=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&a===13&&(i=13)):i=a,i===10&&(i=13),32<=i||i===13?i:0}function Wn(){return!0}function fr(){return!1}function xn(i){function a(c,h,v,C,R){this._reactName=c,this._targetInst=v,this.type=h,this.nativeEvent=C,this.target=R,this.currentTarget=null;for(var k in i)i.hasOwnProperty(k)&&(c=i[k],this[k]=c?c(C):C[k]);return this.isDefaultPrevented=(C.defaultPrevented!=null?C.defaultPrevented:C.returnValue===!1)?Wn:fr,this.isPropagationStopped=fr,this}return Sn(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=Wn)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=Wn)},persist:function(){},isPersistent:Wn}),a}function ou(i){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(i):(i=c4[i])?!!a[i]:!1}function Ps(){return ou}function Yd(i,a){switch(i){case"keyup":return C4.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==aM;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zs(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}function Kj(i,a){switch(i){case"compositionend":return zs(a);case"keypress":return a.which!==sM?null:(uM=!0,cM);case"textInput":return i=a.data,i===cM&&uM?null:i;default:return null}}function Yj(i,a){if(Mu)return i==="compositionend"||!q0&&Yd(i,a)?(i=Bt(),Tp=V0=Bl=null,Mu=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return lM&&a.locale!=="ko"?null:a.data;default:return null}}function CE(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a==="input"?!!w4[i.type]:a==="textarea"}function Xj(i){if(!ya)return!1;i="on"+i;var a=i in document;return a||(a=document.createElement("div"),a.setAttribute(i,"return;"),a=typeof a[i]=="function"),a}function xE(i,a,c,h){Ru?Tu?Tu.push(h):Tu=[h]:Ru=h,a=lp(a,"onChange"),0<a.length&&(c=new Mp("onChange","change",null,c,h),i.push({event:c,listeners:a}))}function Qj(i){jR(i,0)}function Mm(i){var a=jt(i);if(ot(a))return i}function wE(i,a){if(i==="change")return a}function EE(){Df&&(Df.detachEvent("onpropertychange",OE),If=Df=null)}function OE(i){if(i.propertyName==="value"&&Mm(If)){var a=[];xE(a,If,i,aa(i)),ks(Qj,a)}}function Zj(i,a,c){i==="focusin"?(EE(),Df=a,If=c,Df.attachEvent("onpropertychange",OE)):i==="focusout"&&EE()}function Jj(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Mm(If)}function eL(i,a){if(i==="click")return Mm(a)}function tL(i,a){if(i==="input"||i==="change")return Mm(a)}function nL(i,a){return i===a&&(i!==0||1/i===1/a)||i!==i&&a!==a}function Xd(i,a){if(Oo(i,a))return!0;if(typeof i!="object"||i===null||typeof a!="object"||a===null)return!1;var c=Object.keys(i),h=Object.keys(a);if(c.length!==h.length)return!1;for(h=0;h<c.length;h++){var v=c[h];if(!Ya.call(a,v)||!Oo(i[v],a[v]))return!1}return!0}function RE(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function TE(i,a){var c=RE(i);i=0;for(var h;c;){if(c.nodeType===3){if(h=i+c.textContent.length,i<=a&&h>=a)return{node:c,offset:a-i};i=h}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=RE(c)}}function ME(i,a){return i&&a?i===a?!0:i&&i.nodeType===3?!1:a&&a.nodeType===3?ME(i,a.parentNode):"contains"in i?i.contains(a):i.compareDocumentPosition?!!(i.compareDocumentPosition(a)&16):!1:!1}function $E(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var a=mt(i.document);a instanceof i.HTMLIFrameElement;){try{var c=typeof a.contentWindow.location.href=="string"}catch{c=!1}if(c)i=a.contentWindow;else break;a=mt(i.document)}return a}function Py(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a&&(a==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||a==="textarea"||i.contentEditable==="true")}function rL(i,a){var c=$E(a);a=i.focusedElem;var h=i.selectionRange;if(c!==a&&a&&a.ownerDocument&&ME(a.ownerDocument.documentElement,a)){if(h!==null&&Py(a)){if(i=h.start,c=h.end,c===void 0&&(c=i),"selectionStart"in a)a.selectionStart=i,a.selectionEnd=Math.min(c,a.value.length);else if(c=(i=a.ownerDocument||document)&&i.defaultView||window,c.getSelection){c=c.getSelection();var v=a.textContent.length,C=Math.min(h.start,v);h=h.end===void 0?C:Math.min(h.end,v),!c.extend&&C>h&&(v=h,h=C,C=v),v=TE(a,C);var R=TE(a,h);v&&R&&(c.rangeCount!==1||c.anchorNode!==v.node||c.anchorOffset!==v.offset||c.focusNode!==R.node||c.focusOffset!==R.offset)&&(i=i.createRange(),i.setStart(v.node,v.offset),c.removeAllRanges(),C>h?(c.addRange(i),c.extend(R.node,R.offset)):(i.setEnd(R.node,R.offset),c.addRange(i)))}}for(i=[],c=a;c=c.parentNode;)c.nodeType===1&&i.push({element:c,left:c.scrollLeft,top:c.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<i.length;a++)c=i[a],c.element.scrollLeft=c.left,c.element.scrollTop=c.top}}function NE(i,a,c){var h=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;K0||$u==null||$u!==mt(h)||(h=$u,"selectionStart"in h&&Py(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),kf&&Xd(kf,h)||(kf=h,h=lp(G0,"onSelect"),0<h.length&&(a=new Mp("onSelect","select",null,a,c),i.push({event:a,listeners:h}),a.target=$u)))}function _s(i,a){var c={};return c[i.toLowerCase()]=a.toLowerCase(),c["Webkit"+i]="webkit"+a,c["Moz"+i]="moz"+a,c}function Bs(i){if(Y0[i])return Y0[i];if(!Nu[i])return i;var a=Nu[i],c;for(c in a)if(a.hasOwnProperty(c)&&c in fM)return Y0[i]=a[c];return i}function Hi(i,a){vM.set(i,a),St(a,[i])}function $m(){for(var i=Au,a=X0=Au=0;a<i;){var c=vi[a];vi[a++]=null;var h=vi[a];vi[a++]=null;var v=vi[a];vi[a++]=null;var C=vi[a];if(vi[a++]=null,h!==null&&v!==null){var R=h.pending;R===null?v.next=v:(v.next=R.next,R.next=v),h.pending=v}C!==0&&AE(c,v,C)}}function Nm(i,a,c,h){vi[Au++]=i,vi[Au++]=a,vi[Au++]=c,vi[Au++]=h,X0|=h,i.lanes|=h,i=i.alternate,i!==null&&(i.lanes|=h)}function zy(i,a,c,h){return Nm(i,a,c,h),Am(i)}function so(i,a){return Nm(i,null,null,a),Am(i)}function AE(i,a,c){i.lanes|=c;var h=i.alternate;h!==null&&(h.lanes|=c);for(var v=!1,C=i.return;C!==null;)C.childLanes|=c,h=C.alternate,h!==null&&(h.childLanes|=c),C.tag===22&&(i=C.stateNode,i===null||i._visibility&Np||(v=!0)),i=C,C=C.return;v&&a!==null&&i.tag===3&&(C=i.stateNode,v=31-wo(c),C=C.hiddenUpdates,i=C[v],i===null?C[v]=[a]:i.push(a),a.lane=c|536870912)}function Am(i){if(rh>j4)throw gc=rh=0,oh=OS=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");gc>L4&&(gc=0,oh=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),i.alternate===null&&(i.flags&4098)!==0&&DR(i);for(var a=i,c=a.return;c!==null;)a.alternate===null&&(a.flags&4098)!==0&&DR(i),a=c,c=a.return;return a.tag===3?a.stateNode:null}function Hs(i){if(yi===null)return i;var a=yi(i);return a===void 0?i:a.current}function _y(i){if(yi===null)return i;var a=yi(i);return a===void 0?i!=null&&typeof i.render=="function"&&(a=Hs(i.render),i.render!==a)?(a={$$typeof:wf,render:a},i.displayName!==void 0&&(a.displayName=i.displayName),a):i:a.current}function DE(i,a){if(yi===null)return!1;var c=i.elementType;a=a.type;var h=!1,v=typeof a=="object"&&a!==null?a.$$typeof:null;switch(i.tag){case 1:typeof a=="function"&&(h=!0);break;case 0:(typeof a=="function"||v===Yo)&&(h=!0);break;case 11:(v===wf||v===Yo)&&(h=!0);break;case 14:case 15:(v===bp||v===Yo)&&(h=!0);break;default:return!1}return!!(h&&(i=yi(c),i!==void 0&&i===yi(a)))}function IE(i){yi!==null&&typeof WeakSet=="function"&&(Du===null&&(Du=new WeakSet),Du.add(i))}function By(i,a,c){var h=i.alternate,v=i.child,C=i.sibling,R=i.tag,k=i.type,U=null;switch(R){case 0:case 15:case 1:U=k;break;case 11:U=k.render}if(yi===null)throw Error("Expected resolveFamily to be set during hot reload.");var X=!1;k=!1,U!==null&&(U=yi(U),U!==void 0&&(c.has(U)?k=!0:a.has(U)&&(R===1?k=!0:X=!0))),Du!==null&&(Du.has(i)||h!==null&&Du.has(h))&&(k=!0),k&&(i._debugNeedsRemount=!0),(k||X)&&(h=so(i,2),h!==null&&gr(h,i,2)),v===null||k||By(v,a,c),C!==null&&By(C,a,c)}function ja(){var i=rc;return rc=0,i}function Dm(i){var a=rc;return rc=i,a}function Qd(i){var a=rc;return rc+=i,a}function Hy(i){Ho=Iu(),0>i.actualStartTime&&(i.actualStartTime=Ho)}function jy(i){if(0<=Ho){var a=Iu()-Ho;i.actualDuration+=a,i.selfBaseDuration=a,Ho=-1}}function kE(i){if(0<=Ho){var a=Iu()-Ho;i.actualDuration+=a,Ho=-1}}function la(){if(0<=Ho){var i=Iu()-Ho;Ho=-1,rc+=i}}function sa(){Ho=Iu()}function Im(i){for(var a=i.child;a;)i.actualDuration+=a.actualDuration,a=a.sibling}function qo(i,a){if(typeof i=="object"&&i!==null){var c=Z0.get(i);return c!==void 0?c:(a={value:i,source:a,stack:L(a)},Z0.set(i,a),a)}return{value:i,source:a,stack:L(a)}}function js(i,a){Ls(),ku[Pu++]=zp,ku[Pu++]=Pp,Pp=i,zp=a}function PE(i,a,c){Ls(),bi[Si++]=Qa,bi[Si++]=Za,bi[Si++]=ic,ic=i;var h=Qa;i=Za;var v=32-wo(h)-1;h&=~(1<<v),c+=1;var C=32-wo(a)+v;if(30<C){var R=v-v%5;C=(h&(1<<R)-1).toString(32),h>>=R,v-=R,Qa=1<<32-wo(a)+v|c<<v|h,Za=C+i}else Qa=1<<C|c<<v|h,Za=i}function Ly(i){Ls(),i.return!==null&&(js(i,1),PE(i,1,0))}function Vy(i){for(;i===Pp;)Pp=ku[--Pu],ku[Pu]=null,zp=ku[--Pu],ku[Pu]=null;for(;i===ic;)ic=bi[--Si],bi[Si]=null,Za=bi[--Si],bi[Si]=null,Qa=bi[--Si],bi[Si]=null}function Ls(){An||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Vs(i,a){if(i.return===null){if(Ci===null)Ci={fiber:i,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:a};else{if(Ci.fiber!==i)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Ci.distanceFromLeaf>a&&(Ci.distanceFromLeaf=a)}return Ci}var c=Vs(i.return,a+1).children;return 0<c.length&&c[c.length-1].fiber===i?(c=c[c.length-1],c.distanceFromLeaf>a&&(c.distanceFromLeaf=a),c):(a={fiber:i,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:a},c.push(a),a)}function Fy(i,a){Ja||(i=Vs(i,0),i.serverProps=null,a!==null&&(a=JR(a),i.serverTail.push(a)))}function Fs(i){var a="",c=Ci;throw c!==null&&(Ci=null,a=Ne(c)),ef(qo(Error(`Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
125
-
126
- - A server/client branch \`if (typeof window !== 'undefined')\`.
127
- - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
128
- - Date formatting in a user's locale which doesn't match the server.
129
- - External changing data without sending a snapshot of it along with the HTML.
130
- - Invalid HTML tag nesting.
131
-
132
- It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
133
-
134
- https://react.dev/link/hydration-mismatch`+a),i)),J0}function zE(i){var a=i.stateNode,c=i.type,h=i.memoizedProps;switch(a[fo]=i,a[Bo]=h,l0(c,h),c){case"dialog":Nn("cancel",a),Nn("close",a);break;case"iframe":case"object":case"embed":Nn("load",a);break;case"video":case"audio":for(c=0;c<ih.length;c++)Nn(ih[c],a);break;case"source":Nn("error",a);break;case"img":case"image":case"link":Nn("error",a),Nn("load",a);break;case"details":Nn("toggle",a);break;case"input":tn("input",h),Nn("invalid",a),Wt(a,h),Xt(a,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0),Qe(a);break;case"option":ct(a,h);break;case"select":tn("select",h),Nn("invalid",a),nt(a,h);break;case"textarea":tn("textarea",h),Nn("invalid",a),qt(a,h),dn(a,h.value,h.defaultValue,h.children),Qe(a)}c=h.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||a.textContent===""+c||h.suppressHydrationWarning===!0||UR(a.textContent,c)?(h.popover!=null&&(Nn("beforetoggle",a),Nn("toggle",a)),h.onScroll!=null&&Nn("scroll",a),h.onScrollEnd!=null&&Nn("scrollend",a),h.onClick!=null&&(a.onclick=sp),a=!0):a=!1,a||Fs(i)}function _E(i){for(Ro=i.return;Ro;)switch(Ro.tag){case 3:case 27:ba=!0;return;case 5:case 13:ba=!1;return;default:Ro=Ro.return}}function Zd(i){if(i!==Ro)return!1;if(!An)return _E(i),An=!0,!1;var a=!1,c;if((c=i.tag!==3&&i.tag!==27)&&((c=i.tag===5)&&(c=i.type,c=!(c!=="form"&&c!=="button")||d0(i.type,i.memoizedProps)),c=!c),c&&(a=!0),a&&to){for(a=to;a;){c=Vs(i,0);var h=JR(a);c.serverTail.push(h),a=h.type==="Suspense"?tT(a):pi(a.nextSibling)}Fs(i)}if(_E(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");to=tT(i)}else to=Ro?pi(i.stateNode.nextSibling):null;return!0}function Jd(){to=Ro=null,Ja=An=!1}function ef(i){Ui===null?Ui=[i]:Ui.push(i)}function BE(){var i=Ci;i!==null&&(Ci=null,i=Ne(i),console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
135
-
136
- - A server/client branch \`if (typeof window !== 'undefined')\`.
137
- - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
138
- - Date formatting in a user's locale which doesn't match the server.
139
- - External changing data without sending a snapshot of it along with the HTML.
140
- - Invalid HTML tag nesting.
141
-
142
- It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
143
-
144
- %s%s`,"https://react.dev/link/hydration-mismatch",i))}function HE(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function jE(i){return i=i.status,i==="fulfilled"||i==="rejected"}function km(){}function LE(i,a,c){Ve.actQueue!==null&&(Ve.didUsePromise=!0);var h=i.thenables;switch(c=h[c],c===void 0?h.push(a):c!==a&&(i.didWarnAboutUncachedPromise||(i.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),a.then(km,km),a=c),a.status){case"fulfilled":return a.value;case"rejected":throw i=a.reason,FE(i),i;default:if(typeof a.status=="string")a.then(km,km);else{if(i=er,i!==null&&100<i.shellSuspendCounter)throw Error("async/await is not yet supported in Client Components, only Server Components. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");i=a,i.status="pending",i.then(function(v){if(a.status==="pending"){var C=a;C.status="fulfilled",C.value=v}},function(v){if(a.status==="pending"){var C=a;C.status="rejected",C.reason=v}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw i=a.reason,FE(i),i}throw Vf=a,Bp=!0,_p}}function VE(){if(Vf===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var i=Vf;return Vf=null,Bp=!1,i}function FE(i){if(i===_p)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Xr(i){var a=yn;return i!=null&&(yn=a===null?i:a.concat(i)),a}function Pm(i,a,c){for(var h=Object.keys(i.props),v=0;v<h.length;v++){var C=h[v];if(C!=="children"&&C!=="key"){a===null&&(a=op(i,c.mode,0),a._debugInfo=yn,a.return=c),H(a,function(R){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",R)},C);break}}}function zm(i){var a=Ff;return Ff+=1,zu===null&&(zu=HE()),LE(zu,i,a)}function tf(i,a){a=a.props.ref,i.ref=a!==void 0?a:null}function _m(i,a){throw a.$$typeof===b3?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
145
- - Multiple copies of the "react" package is used.
146
- - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
147
- - A compiler tries to "inline" JSX instead of using the runtime.`):(i=Object.prototype.toString.call(a),Error("Objects are not valid as a React child (found: "+(i==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":i)+"). If you meant to render a collection of children, use an array instead."))}function Bm(i,a){var c=T(i)||"Component";zM[c]||(zM[c]=!0,a=a.displayName||a.name||"Component",i.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
148
- root.render(%s)`,a,a,a):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
149
- <%s>{%s}</%s>`,a,a,c,a,c))}function Hm(i,a){var c=T(i)||"Component";_M[c]||(_M[c]=!0,a=String(a),i.tag===3?console.error(`Symbols are not valid as a React child.
150
- root.render(%s)`,a):console.error(`Symbols are not valid as a React child.
151
- <%s>%s</%s>`,c,a,c))}function UE(i){function a(ue,le){if(i){var ye=ue.deletions;ye===null?(ue.deletions=[le],ue.flags|=16):ye.push(le)}}function c(ue,le){if(!i)return null;for(;le!==null;)a(ue,le),le=le.sibling;return null}function h(ue){for(var le=new Map;ue!==null;)ue.key!==null?le.set(ue.key,ue):le.set(ue.index,ue),ue=ue.sibling;return le}function v(ue,le){return ue=Dl(ue,le),ue.index=0,ue.sibling=null,ue}function C(ue,le,ye){return ue.index=ye,i?(ye=ue.alternate,ye!==null?(ye=ye.index,ye<le?(ue.flags|=33554434,le):ye):(ue.flags|=33554434,le)):(ue.flags|=1048576,le)}function R(ue){return i&&ue.alternate===null&&(ue.flags|=33554434),ue}function k(ue,le,ye,Ke){return le===null||le.tag!==6?(le=Gb(ye,ue.mode,Ke),le.return=ue,le._debugOwner=ue,le._debugInfo=yn,le):(le=v(le,ye),le.return=ue,le._debugInfo=yn,le)}function U(ue,le,ye,Ke){var Mt=ye.type;return Mt===Su?(le=Ae(ue,le,ye.props.children,Ke,ye.key),Pm(ye,le,ue),le):le!==null&&(le.elementType===Mt||DE(le,ye)||typeof Mt=="object"&&Mt!==null&&Mt.$$typeof===Yo&&jl(Mt)===le.type)?(le=v(le,ye.props),tf(le,ye),le.return=ue,le._debugOwner=ye._owner,le._debugInfo=yn,le):(le=op(ye,ue.mode,Ke),tf(le,ye),le.return=ue,le._debugInfo=yn,le)}function X(ue,le,ye,Ke){return le===null||le.tag!==4||le.stateNode.containerInfo!==ye.containerInfo||le.stateNode.implementation!==ye.implementation?(le=Kb(ye,ue.mode,Ke),le.return=ue,le._debugInfo=yn,le):(le=v(le,ye.children||[]),le.return=ue,le._debugInfo=yn,le)}function Ae(ue,le,ye,Ke,Mt){return le===null||le.tag!==7?(le=Qs(ye,ue.mode,Ke,Mt),le.return=ue,le._debugOwner=ue,le._debugInfo=yn,le):(le=v(le,ye),le.return=ue,le._debugInfo=yn,le)}function Ye(ue,le,ye){if(typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint")return le=Gb(""+le,ue.mode,ye),le.return=ue,le._debugOwner=ue,le._debugInfo=yn,le;if(typeof le=="object"&&le!==null){switch(le.$$typeof){case kl:return ye=op(le,ue.mode,ye),tf(ye,le),ye.return=ue,ue=Xr(le._debugInfo),ye._debugInfo=yn,yn=ue,ye;case bu:return le=Kb(le,ue.mode,ye),le.return=ue,le._debugInfo=yn,le;case Yo:var Ke=Xr(le._debugInfo);return le=jl(le),ue=Ye(ue,le,ye),yn=Ke,ue}if(Jr(le)||O(le))return ye=Qs(le,ue.mode,ye,null),ye.return=ue,ye._debugOwner=ue,ue=Xr(le._debugInfo),ye._debugInfo=yn,yn=ue,ye;if(typeof le.then=="function")return Ke=Xr(le._debugInfo),ue=Ye(ue,zm(le),ye),yn=Ke,ue;if(le.$$typeof===ha)return Ye(ue,ep(ue,le),ye);_m(ue,le)}return typeof le=="function"&&Bm(ue,le),typeof le=="symbol"&&Hm(ue,le),null}function Ie(ue,le,ye,Ke){var Mt=le!==null?le.key:null;if(typeof ye=="string"&&ye!==""||typeof ye=="number"||typeof ye=="bigint")return Mt!==null?null:k(ue,le,""+ye,Ke);if(typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case kl:return ye.key===Mt?(Mt=Xr(ye._debugInfo),ue=U(ue,le,ye,Ke),yn=Mt,ue):null;case bu:return ye.key===Mt?X(ue,le,ye,Ke):null;case Yo:return Mt=Xr(ye._debugInfo),ye=jl(ye),ue=Ie(ue,le,ye,Ke),yn=Mt,ue}if(Jr(ye)||O(ye))return Mt!==null?null:(Mt=Xr(ye._debugInfo),ue=Ae(ue,le,ye,Ke,null),yn=Mt,ue);if(typeof ye.then=="function")return Mt=Xr(ye._debugInfo),ue=Ie(ue,le,zm(ye),Ke),yn=Mt,ue;if(ye.$$typeof===ha)return Ie(ue,le,ep(ue,ye),Ke);_m(ue,ye)}return typeof ye=="function"&&Bm(ue,ye),typeof ye=="symbol"&&Hm(ue,ye),null}function Je(ue,le,ye,Ke,Mt){if(typeof Ke=="string"&&Ke!==""||typeof Ke=="number"||typeof Ke=="bigint")return ue=ue.get(ye)||null,k(le,ue,""+Ke,Mt);if(typeof Ke=="object"&&Ke!==null){switch(Ke.$$typeof){case kl:return ye=ue.get(Ke.key===null?ye:Ke.key)||null,ue=Xr(Ke._debugInfo),le=U(le,ye,Ke,Mt),yn=ue,le;case bu:return ue=ue.get(Ke.key===null?ye:Ke.key)||null,X(le,ue,Ke,Mt);case Yo:var fn=Xr(Ke._debugInfo);return Ke=jl(Ke),le=Je(ue,le,ye,Ke,Mt),yn=fn,le}if(Jr(Ke)||O(Ke))return ye=ue.get(ye)||null,ue=Xr(Ke._debugInfo),le=Ae(le,ye,Ke,Mt,null),yn=ue,le;if(typeof Ke.then=="function")return fn=Xr(Ke._debugInfo),le=Je(ue,le,ye,zm(Ke),Mt),yn=fn,le;if(Ke.$$typeof===ha)return Je(ue,le,ye,ep(le,Ke),Mt);_m(le,Ke)}return typeof Ke=="function"&&Bm(le,Ke),typeof Ke=="symbol"&&Hm(le,Ke),null}function Ft(ue,le,ye,Ke){if(typeof ye!="object"||ye===null)return Ke;switch(ye.$$typeof){case kl:case bu:p(ue,le,ye);var Mt=ye.key;if(typeof Mt!="string")break;if(Ke===null){Ke=new Set,Ke.add(Mt);break}if(!Ke.has(Mt)){Ke.add(Mt);break}H(le,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",Mt)});break;case Yo:ye=jl(ye),Ft(ue,le,ye,Ke)}return Ke}function mn(ue,le,ye,Ke){for(var Mt=null,fn=null,Lt=null,hn=le,pn=le=0,ur=null;hn!==null&&pn<ye.length;pn++){hn.index>pn?(ur=hn,hn=null):ur=hn.sibling;var Mr=Ie(ue,hn,ye[pn],Ke);if(Mr===null){hn===null&&(hn=ur);break}Mt=Ft(ue,Mr,ye[pn],Mt),i&&hn&&Mr.alternate===null&&a(ue,hn),le=C(Mr,le,pn),Lt===null?fn=Mr:Lt.sibling=Mr,Lt=Mr,hn=ur}if(pn===ye.length)return c(ue,hn),An&&js(ue,pn),fn;if(hn===null){for(;pn<ye.length;pn++)hn=Ye(ue,ye[pn],Ke),hn!==null&&(Mt=Ft(ue,hn,ye[pn],Mt),le=C(hn,le,pn),Lt===null?fn=hn:Lt.sibling=hn,Lt=hn);return An&&js(ue,pn),fn}for(hn=h(hn);pn<ye.length;pn++)ur=Je(hn,ue,pn,ye[pn],Ke),ur!==null&&(Mt=Ft(ue,ur,ye[pn],Mt),i&&ur.alternate!==null&&hn.delete(ur.key===null?pn:ur.key),le=C(ur,le,pn),Lt===null?fn=ur:Lt.sibling=ur,Lt=ur);return i&&hn.forEach(function(sl){return a(ue,sl)}),An&&js(ue,pn),fn}function Tr(ue,le,ye,Ke){if(ye==null)throw Error("An iterable object provided no iterator.");for(var Mt=null,fn=null,Lt=le,hn=le=0,pn=null,ur=null,Mr=ye.next();Lt!==null&&!Mr.done;hn++,Mr=ye.next()){Lt.index>hn?(pn=Lt,Lt=null):pn=Lt.sibling;var sl=Ie(ue,Lt,Mr.value,Ke);if(sl===null){Lt===null&&(Lt=pn);break}ur=Ft(ue,sl,Mr.value,ur),i&&Lt&&sl.alternate===null&&a(ue,Lt),le=C(sl,le,hn),fn===null?Mt=sl:fn.sibling=sl,fn=sl,Lt=pn}if(Mr.done)return c(ue,Lt),An&&js(ue,hn),Mt;if(Lt===null){for(;!Mr.done;hn++,Mr=ye.next())Lt=Ye(ue,Mr.value,Ke),Lt!==null&&(ur=Ft(ue,Lt,Mr.value,ur),le=C(Lt,le,hn),fn===null?Mt=Lt:fn.sibling=Lt,fn=Lt);return An&&js(ue,hn),Mt}for(Lt=h(Lt);!Mr.done;hn++,Mr=ye.next())pn=Je(Lt,ue,hn,Mr.value,Ke),pn!==null&&(ur=Ft(ue,pn,Mr.value,ur),i&&pn.alternate!==null&&Lt.delete(pn.key===null?hn:pn.key),le=C(pn,le,hn),fn===null?Mt=pn:fn.sibling=pn,fn=pn);return i&&Lt.forEach(function(J4){return a(ue,J4)}),An&&js(ue,hn),Mt}function Bn(ue,le,ye,Ke){if(typeof ye=="object"&&ye!==null&&ye.type===Su&&ye.key===null&&(Pm(ye,null,ue),ye=ye.props.children),typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case kl:var Mt=Xr(ye._debugInfo);e:{for(var fn=ye.key;le!==null;){if(le.key===fn){if(fn=ye.type,fn===Su){if(le.tag===7){c(ue,le.sibling),Ke=v(le,ye.props.children),Ke.return=ue,Ke._debugOwner=ye._owner,Ke._debugInfo=yn,Pm(ye,Ke,ue),ue=Ke;break e}}else if(le.elementType===fn||DE(le,ye)||typeof fn=="object"&&fn!==null&&fn.$$typeof===Yo&&jl(fn)===le.type){c(ue,le.sibling),Ke=v(le,ye.props),tf(Ke,ye),Ke.return=ue,Ke._debugOwner=ye._owner,Ke._debugInfo=yn,ue=Ke;break e}c(ue,le);break}else a(ue,le);le=le.sibling}ye.type===Su?(Ke=Qs(ye.props.children,ue.mode,Ke,ye.key),Ke.return=ue,Ke._debugOwner=ue,Ke._debugInfo=yn,Pm(ye,Ke,ue),ue=Ke):(Ke=op(ye,ue.mode,Ke),tf(Ke,ye),Ke.return=ue,Ke._debugInfo=yn,ue=Ke)}return ue=R(ue),yn=Mt,ue;case bu:e:{for(Mt=ye,ye=Mt.key;le!==null;){if(le.key===ye)if(le.tag===4&&le.stateNode.containerInfo===Mt.containerInfo&&le.stateNode.implementation===Mt.implementation){c(ue,le.sibling),Ke=v(le,Mt.children||[]),Ke.return=ue,ue=Ke;break e}else{c(ue,le);break}else a(ue,le);le=le.sibling}Ke=Kb(Mt,ue.mode,Ke),Ke.return=ue,ue=Ke}return R(ue);case Yo:return Mt=Xr(ye._debugInfo),ye=jl(ye),ue=Bn(ue,le,ye,Ke),yn=Mt,ue}if(Jr(ye))return Mt=Xr(ye._debugInfo),ue=mn(ue,le,ye,Ke),yn=Mt,ue;if(O(ye)){if(Mt=Xr(ye._debugInfo),fn=O(ye),typeof fn!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Lt=fn.call(ye);return Lt===ye?(ue.tag!==0||Object.prototype.toString.call(ue.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Lt)!=="[object Generator]")&&(kM||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),kM=!0):ye.entries!==fn||rS||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),rS=!0),ue=Tr(ue,le,Lt,Ke),yn=Mt,ue}if(typeof ye.then=="function")return Mt=Xr(ye._debugInfo),ue=Bn(ue,le,zm(ye),Ke),yn=Mt,ue;if(ye.$$typeof===ha)return Bn(ue,le,ep(ue,ye),Ke);_m(ue,ye)}return typeof ye=="string"&&ye!==""||typeof ye=="number"||typeof ye=="bigint"?(Mt=""+ye,le!==null&&le.tag===6?(c(ue,le.sibling),Ke=v(le,Mt),Ke.return=ue,ue=Ke):(c(ue,le),Ke=Gb(Mt,ue.mode,Ke),Ke.return=ue,Ke._debugOwner=ue,Ke._debugInfo=yn,ue=Ke),R(ue)):(typeof ye=="function"&&Bm(ue,ye),typeof ye=="symbol"&&Hm(ue,ye),c(ue,le))}return function(ue,le,ye,Ke){var Mt=yn;yn=null;try{Ff=0;var fn=Bn(ue,le,ye,Ke);return zu=null,fn}catch(ur){if(ur===_p)throw ur;var Lt=u(29,ur,null,ue.mode);Lt.lanes=Ke,Lt.return=ue;var hn=Lt._debugInfo=yn;if(Lt._debugOwner=ue._debugOwner,hn!=null){for(var pn=hn.length-1;0<=pn;pn--)if(typeof hn[pn].stack=="string"){Lt._debugOwner=hn[pn];break}}return Lt}finally{yn=Mt}}}function WE(i,a){var c=xa;ne(Hp,c,i),ne(_u,a,i),xa=c|a.baseLanes}function Uy(i){ne(Hp,xa,i),ne(_u,_u.current,i)}function Wy(i){xa=Hp.current,Y(_u,i),Y(Hp,i)}function Ol(i){var a=i.alternate;ne(zr,zr.current&Bu,i),ne(xi,i,i),Sa===null&&(a===null||_u.current!==null||a.memoizedState!==null)&&(Sa=i)}function qE(i){if(i.tag===22){if(ne(zr,zr.current,i),ne(xi,i,i),Sa===null){var a=i.alternate;a!==null&&a.memoizedState!==null&&(Sa=i)}}else Rl(i)}function Rl(i){ne(zr,zr.current,i),ne(xi,xi.current,i)}function La(i){Y(xi,i),Sa===i&&(Sa=null),Y(zr,i)}function jm(i){for(var a=i;a!==null;){if(a.tag===13){var c=a.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data===bc||c.data===Sc))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function qy(){return{controller:new D4,data:new Map,refCount:0}}function Us(i){i.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),i.refCount++}function nf(i){i.refCount--,0>i.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),i.refCount===0&&I4(k4,function(){i.controller.abort()})}function oL(i,a){if(Wf===null){var c=Wf=[];oS=0,lc=r0(),Hu={status:"pending",value:void 0,then:function(h){c.push(h)}}}return oS++,a.then(GE,GE),a}function GE(){if(--oS===0&&Wf!==null){Hu!==null&&(Hu.status="fulfilled");var i=Wf;Wf=null,lc=0,Hu=null;for(var a=0;a<i.length;a++)(0,i[a])()}}function iL(i,a){var c=[],h={status:"pending",value:null,reason:null,then:function(v){c.push(v)}};return i.then(function(){h.status="fulfilled",h.value=a;for(var v=0;v<c.length;v++)(0,c[v])(a)},function(v){for(h.status="rejected",h.reason=v,v=0;v<c.length;v++)(0,c[v])(void 0)}),h}function Gy(){var i=sc.current;return i!==null?i:er.pooledCache}function Lm(i,a){a===null?ne(sc,sc.current,i):ne(sc,a.pool,i)}function KE(){var i=Gy();return i===null?null:{parent:Br._currentValue,pool:i}}function On(){var i=Le;Oi===null?Oi=[i]:Oi.push(i)}function pt(){var i=Le;if(Oi!==null&&(tl++,Oi[tl]!==i)){var a=T(ln);if(!jM.has(a)&&(jM.add(a),Oi!==null)){for(var c="",h=0;h<=tl;h++){var v=Oi[h],C=h===tl?i:v;for(v=h+1+". "+v;30>v.length;)v+=" ";v+=C+`
152
- `,c+=v}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
153
-
154
- Previous render Next render
155
- ------------------------------------------------------
156
- %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
157
- `,a,c)}}}function iu(i){i==null||Jr(i)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Le,typeof i)}function Vm(){var i=T(ln);VM.has(i)||(VM.add(i),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",i))}function Rr(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
158
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
159
- 2. You might be breaking the Rules of Hooks
160
- 3. You might have more than one copy of React in the same app
161
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Ky(i,a){if(Gf)return!1;if(a===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Le),!1;i.length!==a.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
162
-
163
- Previous: %s
164
- Incoming: %s`,Le,"["+a.join(", ")+"]","["+i.join(", ")+"]");for(var c=0;c<a.length&&c<i.length;c++)if(!Oo(i[c],a[c]))return!1;return!0}function Yy(i,a,c,h,v,C){Ll=C,ln=a,Oi=i!==null?i._debugHookTypes:null,tl=-1,Gf=i!==null&&i.type!==a.type,(Object.prototype.toString.call(c)==="[object AsyncFunction]"||Object.prototype.toString.call(c)==="[object AsyncGeneratorFunction]")&&(C=T(ln),iS.has(C)||(iS.add(C),console.error("async/await is not yet supported in Client Components, only Server Components. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."))),a.memoizedState=null,a.updateQueue=null,a.lanes=0,Ve.H=i!==null&&i.memoizedState!==null?Fl:Oi!==null?uc:Vl,cc=C=(a.mode&ho)!==ir;var R=tS(c,h,v);if(cc=!1,Lu&&(R=Xy(a,c,h,v)),C){Pe(!0);try{R=Xy(a,c,h,v)}finally{Pe(!1)}}return YE(i,a),R}function YE(i,a){a._debugHookTypes=Oi,a.dependencies===null?el!==null&&(a.dependencies={lanes:0,firstContext:null,_debugThenableState:el}):a.dependencies._debugThenableState=el,Ve.H=Ca;var c=Xn!==null&&Xn.next!==null;if(Ll=0,Oi=Le=Ar=Xn=ln=null,tl=-1,i!==null&&(i.flags&31457280)!==(a.flags&31457280)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),jp=!1,qf=0,el=null,c)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");i===null||Fr||(i=i.dependencies,i!==null&&Jm(i)&&(Fr=!0)),Bp?(Bp=!1,i=!0):i=!1,i&&(a=T(a)||"Unknown",LM.has(a)||iS.has(a)||(LM.add(a),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function Xy(i,a,c,h){ln=i;var v=0;do{if(Lu&&(el=null),qf=0,Lu=!1,v>=z4)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(v+=1,Gf=!1,Ar=Xn=null,i.updateQueue!=null){var C=i.updateQueue;C.lastEffect=null,C.events=null,C.stores=null,C.memoCache!=null&&(C.memoCache.index=0)}tl=-1,Ve.H=dc,C=tS(a,c,h)}while(Lu);return C}function aL(){var i=Ve.H,a=i.useState()[0];return a=typeof a.then=="function"?rf(a):a,i=i.useState()[0],(Xn!==null?Xn.memoizedState:null)!==i&&(ln.flags|=1024),a}function Qy(){var i=Lp!==0;return Lp=0,i}function Zy(i,a,c){a.updateQueue=i.updateQueue,a.flags=(a.mode&Vi)!==ir?a.flags&-201328645:a.flags&-2053,i.lanes&=~c}function Jy(i){if(jp){for(i=i.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}jp=!1}Ll=0,Oi=Ar=Xn=ln=null,tl=-1,Le=null,Lu=!1,qf=Lp=0,el=null}function zo(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ar===null?ln.memoizedState=Ar=i:Ar=Ar.next=i,Ar}function qn(){if(Xn===null){var i=ln.alternate;i=i!==null?i.memoizedState:null}else i=Xn.next;var a=Ar===null?ln.memoizedState:Ar.next;if(a!==null)Ar=a,Xn=i;else{if(i===null)throw ln.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");Xn=i,i={memoizedState:Xn.memoizedState,baseState:Xn.baseState,baseQueue:Xn.baseQueue,queue:Xn.queue,next:null},Ar===null?ln.memoizedState=Ar=i:Ar=Ar.next=i}return Ar}function rf(i){var a=qf;return qf+=1,el===null&&(el=HE()),i=LE(el,i,a),a=ln,(Ar===null?a.memoizedState:Ar.next)===null&&(a=a.alternate,Ve.H=a!==null&&a.memoizedState!==null?Fl:Vl),i}function Tl(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return rf(i);if(i.$$typeof===ha)return hr(i)}throw Error("An unsupported type was passed to use(): "+String(i))}function Ws(i){var a=null,c=ln.updateQueue;if(c!==null&&(a=c.memoCache),a==null){var h=ln.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(a={data:h.data.map(function(v){return v.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),c===null&&(c=aS(),ln.updateQueue=c),c.memoCache=a,c=a.data[a.index],c===void 0||Gf)for(c=a.data[a.index]=Array(i),h=0;h<i;h++)c[h]=C3;else c.length!==i&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",c.length,i);return a.index++,c}function ji(i,a){return typeof a=="function"?a(i):a}function eb(i,a,c){var h=zo();if(c!==void 0){var v=c(a);if(cc){Pe(!0);try{c(a)}finally{Pe(!1)}}}else v=a;return h.memoizedState=h.baseState=v,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:v},h.queue=i,i=i.dispatch=uL.bind(null,ln,i),[h.memoizedState,i]}function au(i){var a=qn();return tb(a,Xn,i)}function tb(i,a,c){var h=i.queue;if(h===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");h.lastRenderedReducer=c;var v=i.baseQueue,C=h.pending;if(C!==null){if(v!==null){var R=v.next;v.next=C.next,C.next=R}a.baseQueue!==v&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),a.baseQueue=v=C,h.pending=null}if(C=i.baseState,v===null)i.memoizedState=C;else{a=v.next;var k=R=null,U=null,X=a,Ae=!1;do{var Ye=X.lane&-536870913;if(Ye!==X.lane?(Rn&Ye)===Ye:(Ll&Ye)===Ye){var Ie=X.revertLane;if(Ie===0)U!==null&&(U=U.next={lane:0,revertLane:0,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null}),Ye===lc&&(Ae=!0);else if((Ll&Ie)===Ie){X=X.next,Ie===lc&&(Ae=!0);continue}else Ye={lane:0,revertLane:X.revertLane,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},U===null?(k=U=Ye,R=C):U=U.next=Ye,ln.lanes|=Ie,ql|=Ie;Ye=X.action,cc&&c(C,Ye),C=X.hasEagerState?X.eagerState:c(C,Ye)}else Ie={lane:Ye,revertLane:X.revertLane,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},U===null?(k=U=Ie,R=C):U=U.next=Ie,ln.lanes|=Ye,ql|=Ye;X=X.next}while(X!==null&&X!==a);if(U===null?R=C:U.next=k,!Oo(C,i.memoizedState)&&(Fr=!0,Ae&&(c=Hu,c!==null)))throw c;i.memoizedState=C,i.baseState=R,i.baseQueue=U,h.lastRenderedState=C}return v===null&&(h.lanes=0),[i.memoizedState,h.dispatch]}function of(i){var a=qn(),c=a.queue;if(c===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");c.lastRenderedReducer=i;var h=c.dispatch,v=c.pending,C=a.memoizedState;if(v!==null){c.pending=null;var R=v=v.next;do C=i(C,R.action),R=R.next;while(R!==v);Oo(C,a.memoizedState)||(Fr=!0),a.memoizedState=C,a.baseQueue===null&&(a.baseState=C),c.lastRenderedState=C}return[C,h]}function nb(i,a,c){var h=ln,v=zo();if(An){if(c===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var C=c();ju||C===c()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),ju=!0)}else{if(C=a(),ju||(c=a(),Oo(C,c)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),ju=!0)),er===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Rn&60)!==0||XE(h,a,C)}return v.memoizedState=C,c={value:C,getSnapshot:a},v.queue=c,qm(ZE.bind(null,h,c,i),[i]),h.flags|=2048,su(Ei|_r,QE.bind(null,h,c,C,a),{destroy:void 0},null),C}function Fm(i,a,c){var h=ln,v=qn(),C=An;if(C){if(c===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");c=c()}else if(c=a(),!ju){var R=a();Oo(c,R)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),ju=!0)}(R=!Oo((Xn||v).memoizedState,c))&&(v.memoizedState=c,Fr=!0),v=v.queue;var k=ZE.bind(null,h,v,i);if(_o(2048,_r,k,[i]),v.getSnapshot!==a||R||Ar!==null&&Ar.memoizedState.tag&Ei){if(h.flags|=2048,su(Ei|_r,QE.bind(null,h,v,c,a),{destroy:void 0},null),er===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");C||(Ll&60)!==0||XE(h,a,c)}return c}function XE(i,a,c){i.flags|=16384,i={getSnapshot:a,value:c},a=ln.updateQueue,a===null?(a=aS(),ln.updateQueue=a,a.stores=[i]):(c=a.stores,c===null?a.stores=[i]:c.push(i))}function QE(i,a,c,h){a.value=c,a.getSnapshot=h,JE(a)&&eO(i)}function ZE(i,a,c){return c(function(){JE(a)&&eO(i)})}function JE(i){var a=i.getSnapshot;i=i.value;try{var c=a();return!Oo(i,c)}catch{return!0}}function eO(i){var a=so(i,2);a!==null&&gr(a,i,2)}function rb(i){var a=zo();if(typeof i=="function"){var c=i;if(i=c(),cc){Pe(!0);try{c()}finally{Pe(!1)}}}return a.memoizedState=a.baseState=i,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ji,lastRenderedState:i},a}function ob(i){i=rb(i);var a=i.queue,c=bO.bind(null,ln,a);return a.dispatch=c,[i.memoizedState,c]}function ib(i){var a=zo();a.memoizedState=a.baseState=i;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=c,a=yb.bind(null,ln,!0,c),c.dispatch=a,[i,a]}function tO(i,a){var c=qn();return nO(c,Xn,i,a)}function nO(i,a,c,h){return i.baseState=c,tb(i,Xn,typeof h=="function"?h:ji)}function rO(i,a){var c=qn();return Xn!==null?nO(c,Xn,i,a):(c.baseState=i,[i,c.queue.dispatch])}function lL(i,a,c,h,v){if(Xm(i))throw Error("Cannot update form state while rendering.");if(i=a.action,i!==null){var C={payload:v,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(R){C.listeners.push(R)}};Ve.T!==null?c(!0):C.isTransition=!1,h(C),c=a.pending,c===null?(C.next=a.pending=C,oO(a,C)):(C.next=c.next,a.pending=c.next=C)}}function oO(i,a){var c=a.action,h=a.payload,v=i.state;if(a.isTransition){var C=Ve.T,R={};Ve.T=R,Ve.T._updatedFibers=new Set;try{var k=c(v,h),U=Ve.S;U!==null&&U(R,k),iO(i,a,k)}catch(X){ab(i,a,X)}finally{Ve.T=C,C===null&&R._updatedFibers&&(i=R._updatedFibers.size,R._updatedFibers.clear(),10<i&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{R=c(v,h),iO(i,a,R)}catch(X){ab(i,a,X)}}function iO(i,a,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?(c.then(function(h){aO(i,a,h)},function(h){return ab(i,a,h)}),a.isTransition||console.error("An async function was passed to useActionState, but it was dispatched outside of an action context. This is likely not what you intended. Either pass the dispatch function to an `action` prop, or dispatch manually inside `startTransition`")):aO(i,a,c)}function aO(i,a,c){a.status="fulfilled",a.value=c,lO(a),i.state=c,a=i.pending,a!==null&&(c=a.next,c===a?i.pending=null:(c=c.next,a.next=c,oO(i,c)))}function ab(i,a,c){var h=i.pending;if(i.pending=null,h!==null){h=h.next;do a.status="rejected",a.reason=c,lO(a),a=a.next;while(a!==h)}i.action=null}function lO(i){i=i.listeners;for(var a=0;a<i.length;a++)(0,i[a])()}function sO(i,a){return a}function lu(i,a){if(An){var c=er.formState;if(c!==null){e:{var h=ln;if(An){if(to){t:{for(var v=to,C=ba;v.nodeType!==8;){if(!C){v=null;break t}if(v=pi(v.nextSibling),v===null){v=null;break t}}C=v.data,v=C===IS||C===M$?v:null}if(v){to=pi(v.nextSibling),h=v.data===IS;break e}}Fs(h)}h=!1}h&&(a=c[0])}}return c=zo(),c.memoizedState=c.baseState=a,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sO,lastRenderedState:a},c.queue=h,c=bO.bind(null,ln,h),h.dispatch=c,h=rb(!1),C=yb.bind(null,ln,!1,h.queue),h=zo(),v={state:a,dispatch:null,action:i,pending:null},h.queue=v,c=lL.bind(null,ln,v,C,c),v.dispatch=c,h.memoizedState=i,[a,c,!1]}function Um(i){var a=qn();return cO(a,Xn,i)}function cO(i,a,c){a=tb(i,a,sO)[0],i=au(ji)[0],a=typeof a=="object"&&a!==null&&typeof a.then=="function"?rf(a):a;var h=qn(),v=h.queue,C=v.dispatch;return c!==h.memoizedState&&(ln.flags|=2048,su(Ei|_r,sL.bind(null,v,c),{destroy:void 0},null)),[a,C,i]}function sL(i,a){i.action=a}function Wm(i){var a=qn(),c=Xn;if(c!==null)return cO(a,c,i);qn(),a=a.memoizedState,c=qn();var h=c.queue.dispatch;return c.memoizedState=i,[a,h,!1]}function su(i,a,c,h){return i={tag:i,create:a,inst:c,deps:h,next:null},a=ln.updateQueue,a===null&&(a=aS(),ln.updateQueue=a),c=a.lastEffect,c===null?a.lastEffect=i.next=i:(h=c.next,c.next=i,i.next=h,a.lastEffect=i),i}function lb(i){var a=zo();return i={current:i},a.memoizedState=i}function qs(i,a,c,h){var v=zo();ln.flags|=i,v.memoizedState=su(Ei|a,c,{destroy:void 0},h===void 0?null:h)}function _o(i,a,c,h){var v=qn();h=h===void 0?null:h;var C=v.memoizedState.inst;Xn!==null&&h!==null&&Ky(h,Xn.memoizedState.deps)?v.memoizedState=su(a,c,C,h):(ln.flags|=i,v.memoizedState=su(Ei|a,c,C,h))}function qm(i,a){(ln.mode&Vi)!==ir&&(ln.mode&bM)===ir?qs(142608384,_r,i,a):qs(8390656,_r,i,a)}function sb(i,a){var c=4194308;return(ln.mode&Vi)!==ir&&(c|=67108864),qs(c,no,i,a)}function uO(i,a){if(typeof a=="function"){i=i();var c=a(i);return function(){typeof c=="function"?c():a(null)}}if(a!=null)return a.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(a).join(", ")+"}"),i=i(),a.current=i,function(){a.current=null}}function cb(i,a,c){typeof a!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",a!==null?typeof a:"null"),c=c!=null?c.concat([i]):null;var h=4194308;(ln.mode&Vi)!==ir&&(h|=67108864),qs(h,no,uO.bind(null,a,i),c)}function Gm(i,a,c){typeof a!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",a!==null?typeof a:"null"),c=c!=null?c.concat([i]):null,_o(4,no,uO.bind(null,a,i),c)}function ub(i,a){return zo().memoizedState=[i,a===void 0?null:a],i}function Km(i,a){var c=qn();a=a===void 0?null:a;var h=c.memoizedState;return a!==null&&Ky(a,h[1])?h[0]:(c.memoizedState=[i,a],i)}function db(i,a){var c=zo();a=a===void 0?null:a;var h=i();if(cc){Pe(!0);try{i()}finally{Pe(!1)}}return c.memoizedState=[h,a],h}function Ym(i,a){var c=qn();a=a===void 0?null:a;var h=c.memoizedState;if(a!==null&&Ky(a,h[1]))return h[0];if(h=i(),cc){Pe(!0);try{i()}finally{Pe(!1)}}return c.memoizedState=[h,a],h}function fb(i,a){var c=zo();return hb(c,i,a)}function dO(i,a){var c=qn();return hO(c,Xn.memoizedState,i,a)}function fO(i,a){var c=qn();return Xn===null?hb(c,i,a):hO(c,Xn.memoizedState,i,a)}function hb(i,a,c){return c===void 0||(Ll&1073741824)!==0?i.memoizedState=a:(i.memoizedState=c,i=vR(),ln.lanes|=i,ql|=i,c)}function hO(i,a,c,h){return Oo(c,a)?c:_u.current!==null?(i=hb(i,c,h),Oo(i,a)||(Fr=!0),i):(Ll&42)===0?(Fr=!0,i.memoizedState=c):(i=vR(),ln.lanes|=i,ql|=i,a)}function mO(i,a,c,h,v){var C=sr.p;sr.p=C!==0&&C<va?C:va;var R=Ve.T,k={};Ve.T=k,yb(i,!1,a,c),k._updatedFibers=new Set;try{var U=v(),X=Ve.S;if(X!==null&&X(k,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){var Ae=iL(U,h);af(i,a,Ae,Ko(i))}else af(i,a,h,Ko(i))}catch(Ye){af(i,a,{then:function(){},status:"rejected",reason:Ye},Ko(i))}finally{sr.p=C,Ve.T=R,R===null&&k._updatedFibers&&(i=k._updatedFibers.size,k._updatedFibers.clear(),10<i&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function mb(i,a,c,h){if(i.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var v=pO(i).queue;mO(i,v,a,xc,c===null?m:function(){return gO(i),c(h)})}function pO(i){var a=i.memoizedState;if(a!==null)return a;a={memoizedState:xc,baseState:xc,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ji,lastRenderedState:xc},next:null};var c={};return a.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ji,lastRenderedState:c},next:null},i.memoizedState=a,i=i.alternate,i!==null&&(i.memoizedState=a),a}function gO(i){Ve.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var a=pO(i).next.queue;af(i,a,{},Ko(i))}function pb(){var i=rb(!1);return i=mO.bind(null,ln,i.queue,!0,!1),zo().memoizedState=i,[!1,i]}function vO(){var i=au(ji)[0],a=qn().memoizedState;return[typeof i=="boolean"?i:rf(i),a]}function yO(){var i=of(ji)[0],a=qn().memoizedState;return[typeof i=="boolean"?i:rf(i),a]}function Gs(){return hr(sh)}function gb(){var i=zo(),a=er.identifierPrefix;if(An){var c=Za,h=Qa;c=(h&~(1<<32-wo(h)-1)).toString(32)+c,a=":"+a+"R"+c,c=Lp++,0<c&&(a+="H"+c.toString(32)),a+=":"}else c=P4++,a=":"+a+"r"+c.toString(32)+":";return i.memoizedState=a}function vb(){return zo().memoizedState=cL.bind(null,ln)}function cL(i,a){for(var c=i.return;c!==null;){switch(c.tag){case 24:case 3:var h=Ko(c);i=$l(h);var v=Nl(c,i,h);v!==null&&(gr(v,c,h),cf(v,c,h)),c=qy(),a!=null&&v!==null&&console.error("The seed argument is not enabled outside experimental channels."),i.payload={cache:c};return}c=c.return}}function uL(i,a,c,h){typeof h=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),h=Ko(i),c={lane:h,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null},Xm(i)?SO(a,c):(c=zy(i,a,c,h),c!==null&&(gr(c,i,h),CO(c,a,h))),ge(i,h)}function bO(i,a,c,h){typeof h=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),h=Ko(i),af(i,a,c,h),ge(i,h)}function af(i,a,c,h){var v={lane:h,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null};if(Xm(i))SO(a,v);else{var C=i.alternate;if(i.lanes===0&&(C===null||C.lanes===0)&&(C=a.lastRenderedReducer,C!==null)){var R=Ve.H;Ve.H=Mo;try{var k=a.lastRenderedState,U=C(k,c);if(v.hasEagerState=!0,v.eagerState=U,Oo(U,k))return Nm(i,a,v,0),er===null&&$m(),!1}catch{}finally{Ve.H=R}}if(c=zy(i,a,v,h),c!==null)return gr(c,i,h),CO(c,a,h),!0}return!1}function yb(i,a,c,h){if(Ve.T===null&&lc===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),h={lane:2,revertLane:r0(),action:h,hasEagerState:!1,eagerState:null,next:null},Xm(i)){if(a)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else a=zy(i,c,h,2),a!==null&&gr(a,i,2);ge(i,2)}function Xm(i){var a=i.alternate;return i===ln||a!==null&&a===ln}function SO(i,a){Lu=jp=!0;var c=i.pending;c===null?a.next=a:(a.next=c.next,c.next=a),i.pending=a}function CO(i,a,c){if((c&4194176)!==0){var h=a.lanes;h&=i.pendingLanes,c|=h,a.lanes=c,$t(i,c)}}function bb(i){if(i!==null&&typeof i!="function"){var a=String(i);JM.has(a)||(JM.add(a),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",i))}}function Sb(i,a,c,h){var v=i.memoizedState,C=c(h,v);if(i.mode&ho){Pe(!0);try{C=c(h,v)}finally{Pe(!1)}}C===void 0&&(a=E(a)||"Component",YM.has(a)||(YM.add(a),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",a))),v=C==null?v:Sn({},v,C),i.memoizedState=v,i.lanes===0&&(i.updateQueue.baseState=v)}function xO(i,a,c,h,v,C,R){var k=i.stateNode;if(typeof k.shouldComponentUpdate=="function"){if(c=k.shouldComponentUpdate(h,C,R),i.mode&ho){Pe(!0);try{c=k.shouldComponentUpdate(h,C,R)}finally{Pe(!1)}}return c===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",E(a)||"Component"),c}return a.prototype&&a.prototype.isPureReactComponent?!Xd(c,h)||!Xd(v,C):!0}function wO(i,a,c,h){var v=a.state;typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(c,h),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(c,h),a.state!==v&&(i=T(i)||"Component",UM.has(i)||(UM.add(i),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",i)),lS.enqueueReplaceState(a,a.state,null))}function Ks(i,a){var c=a;if("ref"in a){c={};for(var h in a)h!=="ref"&&(c[h]=a[h])}if(i=i.defaultProps){c===a&&(c=Sn({},c));for(var v in i)c[v]===void 0&&(c[v]=i[v])}return c}function EO(i,a){Vp(i),i=Vu?"An error occurred in the <"+Vu+"> component.":"An error occurred in one of your React components.";var c=Ve.getCurrentStack,h=a.componentStack!=null?a.componentStack:"";Ve.getCurrentStack=function(){return h};try{console.warn(`%s
165
-
166
- %s
167
- `,i,`Consider adding an error boundary to your tree to customize error handling behavior.
168
- Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}finally{Ve.getCurrentStack=c}}function OO(i,a){var c=Vu?"The above error occurred in the <"+Vu+"> component.":"The above error occurred in one of your React components.",h="React will try to recreate this component tree from scratch using the error boundary you provided, "+((sS||"Anonymous")+"."),v=Ve.getCurrentStack,C=a.componentStack!=null?a.componentStack:"";Ve.getCurrentStack=function(){return C};try{typeof i=="object"&&i!==null&&typeof i.environmentName=="string"?u3("error",[`%o
169
-
170
- %s
171
-
172
- %s
173
- `,i,c,h],i.environmentName)():console.error(`%o
174
-
175
- %s
176
-
177
- %s
178
- `,i,c,h)}finally{Ve.getCurrentStack=v}}function RO(i){Vp(i)}function Qm(i,a){try{Vu=a.source?T(a.source):null,sS=null;var c=a.value;if(Ve.actQueue!==null)Ve.thrownErrors.push(c);else{var h=i.onUncaughtError;h(c,{componentStack:a.stack})}}catch(v){setTimeout(function(){throw v})}}function TO(i,a,c){try{Vu=c.source?T(c.source):null,sS=T(a);var h=i.onCaughtError;h(c.value,{componentStack:c.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function Cb(i,a,c){return c=$l(c),c.tag=hS,c.payload={element:null},c.callback=function(){H(a.source,Qm,i,a)},c}function xb(i){return i=$l(i),i.tag=hS,i}function wb(i,a,c,h){var v=c.type.getDerivedStateFromError;if(typeof v=="function"){var C=h.value;i.payload=function(){return v(C)},i.callback=function(){IE(c),H(h.source,TO,a,c,h)}}var R=c.stateNode;R!==null&&typeof R.componentDidCatch=="function"&&(i.callback=function(){IE(c),H(h.source,TO,a,c,h),typeof v!="function"&&(Kl===null?Kl=new Set([this]):Kl.add(this)),$4(this,h),typeof v=="function"||(c.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",T(c)||"Unknown")})}function dL(i,a,c,h,v){if(c.flags|=32768,Li&&gf(i,v),h!==null&&typeof h=="object"&&typeof h.then=="function"){if(a=c.alternate,a!==null&&sf(a,c,v,!0),An&&(Ja=!0),c=xi.current,c!==null){switch(c.tag){case 13:return Sa===null?Qb():c.alternate===null&&br===ol&&(br=vS),c.flags&=-257,c.flags|=65536,c.lanes=v,h===eS?c.flags|=16384:(a=c.updateQueue,a===null?c.updateQueue=new Set([h]):a.add(h),e0(i,h,v)),!1;case 22:return c.flags|=65536,h===eS?c.flags|=16384:(a=c.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([h])},c.updateQueue=a):(c=a.retryQueue,c===null?a.retryQueue=new Set([h]):c.add(h)),e0(i,h,v)),!1}throw Error("Unexpected Suspense handler tag ("+c.tag+"). This is a bug in React.")}return e0(i,h,v),Qb(),!1}if(An)return Ja=!0,a=xi.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=v,h!==J0&&ef(qo(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:h}),c))):(h!==J0&&ef(qo(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:h}),c)),i=i.current.alternate,i.flags|=65536,v&=-v,i.lanes|=v,h=qo(h,c),v=Cb(i.stateNode,h,v),tp(i,v),br!==fc&&(br=Ku)),!1;var C=qo(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:h}),c);if(eh===null?eh=[C]:eh.push(C),br!==fc&&(br=Ku),a===null)return!0;h=qo(h,c),c=a;do{switch(c.tag){case 3:return c.flags|=65536,i=v&-v,c.lanes|=i,i=Cb(c.stateNode,h,i),tp(c,i),!1;case 1:if(a=c.type,C=c.stateNode,(c.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(Kl===null||!Kl.has(C))))return c.flags|=65536,v&=-v,c.lanes|=v,v=xb(v),wb(v,i,c,h),tp(c,v),!1}c=c.return}while(c!==null);return!1}function Qr(i,a,c,h){a.child=i===null?BM(a,null,c,h):ac(a,i.child,c,h)}function MO(i,a,c,h,v){c=c.render;var C=a.ref;if("ref"in h){var R={};for(var k in h)k!=="ref"&&(R[k]=h[k])}else R=h;return Ys(a),ut(a),h=Yy(i,a,c,R,C,v),k=Qy(),I(),i!==null&&!Fr?(Zy(i,a,v),Va(i,a,v)):(An&&k&&Ly(a),a.flags|=1,Qr(i,a,h,v),a.child)}function $O(i,a,c,h,v){if(i===null){var C=c.type;return typeof C=="function"&&!Wb(C)&&C.defaultProps===void 0&&c.compare===null?(c=Hs(C),a.tag=15,a.type=c,Ob(a,C),NO(i,a,c,h,v)):(i=qb(c.type,null,h,a,a.mode,v),i.ref=a.ref,i.return=a,a.child=i)}if(C=i.child,!Db(i,v)){var R=C.memoizedProps;if(c=c.compare,c=c!==null?c:Xd,c(R,h)&&i.ref===a.ref)return Va(i,a,v)}return a.flags|=1,i=Dl(C,h),i.ref=a.ref,i.return=a,a.child=i}function NO(i,a,c,h,v){if(i!==null){var C=i.memoizedProps;if(Xd(C,h)&&i.ref===a.ref&&a.type===i.type)if(Fr=!1,a.pendingProps=h=C,Db(i,v))(i.flags&131072)!==0&&(Fr=!0);else return a.lanes=i.lanes,Va(i,a,v)}return Eb(i,a,c,h,v)}function AO(i,a,c){var h=a.pendingProps,v=h.children,C=(a.stateNode._pendingVisibility&Pf)!==0,R=i!==null?i.memoizedState:null;if(lf(i,a),h.mode==="hidden"||C){if((a.flags&128)!==0){if(h=R!==null?R.baseLanes|c:c,i!==null){for(v=a.child=i.child,C=0;v!==null;)C=C|v.lanes|v.childLanes,v=v.sibling;a.childLanes=C&~h}else a.childLanes=0,a.child=null;return DO(i,a,h,c)}if((c&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},i!==null&&Lm(a,R!==null?R.cachePool:null),R!==null?WE(a,R):Uy(a),qE(a);else return a.lanes=a.childLanes=536870912,DO(i,a,R!==null?R.baseLanes|c:c,c)}else R!==null?(Lm(a,R.cachePool),WE(a,R),Rl(a),a.memoizedState=null):(i!==null&&Lm(a,null),Uy(a),Rl(a));return Qr(i,a,v,c),a.child}function DO(i,a,c,h){var v=Gy();return v=v===null?null:{parent:Br._currentValue,pool:v},a.memoizedState={baseLanes:c,cachePool:v},i!==null&&Lm(a,null),Uy(a),qE(a),i!==null&&sf(i,a,h,!0),null}function lf(i,a){var c=a.ref;if(c===null)i!==null&&i.ref!==null&&(a.flags|=2097664);else{if(typeof c!="function"&&typeof c!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(i===null||i.ref!==c)&&(a.flags|=2097664)}}function Eb(i,a,c,h,v){if(c.prototype&&typeof c.prototype.render=="function"){var C=E(c)||"Unknown";t$[C]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",C,C),t$[C]=!0)}return a.mode&ho&&Fi.recordLegacyContextWarning(a,null),i===null&&(Ob(a,a.type),c.contextTypes&&(C=E(c)||"Unknown",r$[C]||(r$[C]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",C)))),Ys(a),ut(a),c=Yy(i,a,c,h,void 0,v),h=Qy(),I(),i!==null&&!Fr?(Zy(i,a,v),Va(i,a,v)):(An&&h&&Ly(a),a.flags|=1,Qr(i,a,c,v),a.child)}function IO(i,a,c,h,v,C){return Ys(a),ut(a),tl=-1,Gf=i!==null&&i.type!==a.type,a.updateQueue=null,c=Xy(a,h,c,v),YE(i,a),h=Qy(),I(),i!==null&&!Fr?(Zy(i,a,C),Va(i,a,C)):(An&&h&&Ly(a),a.flags|=1,Qr(i,a,c,C),a.child)}function kO(i,a,c,h,v){switch(s(a)){case!1:var C=a.stateNode,R=new a.type(a.memoizedProps,C.context).state;C.updater.enqueueSetState(C,R,null);break;case!0:a.flags|=128,a.flags|=65536,C=Error("Simulated error coming from DevTools");var k=v&-v;if(a.lanes|=k,R=er,R===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");k=xb(k),wb(k,R,a,qo(C,a)),tp(a,k)}if(Ys(a),a.stateNode===null){if(R=Hl,C=c.contextType,"contextType"in c&&C!==null&&(C===void 0||C.$$typeof!==ha)&&!ZM.has(c)&&(ZM.add(c),k=C===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof C!="object"?" However, it is set to a "+typeof C+".":C.$$typeof===E0?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(C).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",E(c)||"Component",k)),typeof C=="object"&&C!==null&&(R=hr(C)),C=new c(h,R),a.mode&ho){Pe(!0);try{C=new c(h,R)}finally{Pe(!1)}}if(R=a.memoizedState=C.state!==null&&C.state!==void 0?C.state:null,C.updater=lS,a.stateNode=C,C._reactInternals=a,C._reactInternalInstance=FM,typeof c.getDerivedStateFromProps=="function"&&R===null&&(R=E(c)||"Component",WM.has(R)||(WM.add(R),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",R,C.state===null?"null":"undefined",R))),typeof c.getDerivedStateFromProps=="function"||typeof C.getSnapshotBeforeUpdate=="function"){var U=k=R=null;if(typeof C.componentWillMount=="function"&&C.componentWillMount.__suppressDeprecationWarning!==!0?R="componentWillMount":typeof C.UNSAFE_componentWillMount=="function"&&(R="UNSAFE_componentWillMount"),typeof C.componentWillReceiveProps=="function"&&C.componentWillReceiveProps.__suppressDeprecationWarning!==!0?k="componentWillReceiveProps":typeof C.UNSAFE_componentWillReceiveProps=="function"&&(k="UNSAFE_componentWillReceiveProps"),typeof C.componentWillUpdate=="function"&&C.componentWillUpdate.__suppressDeprecationWarning!==!0?U="componentWillUpdate":typeof C.UNSAFE_componentWillUpdate=="function"&&(U="UNSAFE_componentWillUpdate"),R!==null||k!==null||U!==null){C=E(c)||"Component";var X=typeof c.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";GM.has(C)||(GM.add(C),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
179
-
180
- %s uses %s but also contains the following legacy lifecycles:%s%s%s
181
-
182
- The above lifecycles should be removed. Learn more about this warning here:
183
- https://react.dev/link/unsafe-component-lifecycles`,C,X,R!==null?`
184
- `+R:"",k!==null?`
185
- `+k:"",U!==null?`
186
- `+U:""))}}C=a.stateNode,R=E(c)||"Component",C.render||(c.prototype&&typeof c.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",R):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",R)),!C.getInitialState||C.getInitialState.isReactClassApproved||C.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",R),C.getDefaultProps&&!C.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",R),C.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",R),c.childContextTypes&&!QM.has(c)&&(QM.add(c),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",R)),c.contextTypes&&!XM.has(c)&&(XM.add(c),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",R)),typeof C.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",R),c.prototype&&c.prototype.isPureReactComponent&&typeof C.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",E(c)||"A pure component"),typeof C.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",R),typeof C.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",R),typeof C.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",R),typeof C.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",R),k=C.props!==h,C.props!==void 0&&k&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",R),C.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",R,R),typeof C.getSnapshotBeforeUpdate!="function"||typeof C.componentDidUpdate=="function"||qM.has(c)||(qM.add(c),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",E(c))),typeof C.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",R),typeof C.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",R),typeof c.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",R),(k=C.state)&&(typeof k!="object"||Jr(k))&&console.error("%s.state: must be set to an object or null",R),typeof C.getChildContext=="function"&&typeof c.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",R),C=a.stateNode,C.props=h,C.state=a.memoizedState,C.refs={},zb(a),R=c.contextType,C.context=typeof R=="object"&&R!==null?hr(R):Hl,C.state===h&&(R=E(c)||"Component",KM.has(R)||(KM.add(R),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",R))),a.mode&ho&&Fi.recordLegacyContextWarning(a,C),Fi.recordUnsafeLifecycleWarnings(a,C),C.state=a.memoizedState,R=c.getDerivedStateFromProps,typeof R=="function"&&(Sb(a,c,R,h),C.state=a.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof C.getSnapshotBeforeUpdate=="function"||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(R=C.state,typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount(),R!==C.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",T(a)||"Component"),lS.enqueueReplaceState(C,C.state,null)),df(a,h,C,v),uf(),C.state=a.memoizedState),typeof C.componentDidMount=="function"&&(a.flags|=4194308),(a.mode&Vi)!==ir&&(a.flags|=67108864),C=!0}else if(i===null){C=a.stateNode;var Ae=a.memoizedProps;k=Ks(c,Ae),C.props=k;var Ye=C.context;U=c.contextType,R=Hl,typeof U=="object"&&U!==null&&(R=hr(U)),X=c.getDerivedStateFromProps,U=typeof X=="function"||typeof C.getSnapshotBeforeUpdate=="function",Ae=a.pendingProps!==Ae,U||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(Ae||Ye!==R)&&wO(a,C,h,R),Wl=!1;var Ie=a.memoizedState;C.state=Ie,df(a,h,C,v),uf(),Ye=a.memoizedState,Ae||Ie!==Ye||Wl?(typeof X=="function"&&(Sb(a,c,X,h),Ye=a.memoizedState),(k=Wl||xO(a,c,k,h,Ie,Ye,R))?(U||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount()),typeof C.componentDidMount=="function"&&(a.flags|=4194308),(a.mode&Vi)!==ir&&(a.flags|=67108864)):(typeof C.componentDidMount=="function"&&(a.flags|=4194308),(a.mode&Vi)!==ir&&(a.flags|=67108864),a.memoizedProps=h,a.memoizedState=Ye),C.props=h,C.state=Ye,C.context=R,C=k):(typeof C.componentDidMount=="function"&&(a.flags|=4194308),(a.mode&Vi)!==ir&&(a.flags|=67108864),C=!1)}else{C=a.stateNode,_b(i,a),R=a.memoizedProps,U=Ks(c,R),C.props=U,X=a.pendingProps,Ie=C.context,Ye=c.contextType,k=Hl,typeof Ye=="object"&&Ye!==null&&(k=hr(Ye)),Ae=c.getDerivedStateFromProps,(Ye=typeof Ae=="function"||typeof C.getSnapshotBeforeUpdate=="function")||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(R!==X||Ie!==k)&&wO(a,C,h,k),Wl=!1,Ie=a.memoizedState,C.state=Ie,df(a,h,C,v),uf();var Je=a.memoizedState;R!==X||Ie!==Je||Wl||i!==null&&i.dependencies!==null&&Jm(i.dependencies)?(typeof Ae=="function"&&(Sb(a,c,Ae,h),Je=a.memoizedState),(U=Wl||xO(a,c,U,h,Ie,Je,k)||i!==null&&i.dependencies!==null&&Jm(i.dependencies))?(Ye||typeof C.UNSAFE_componentWillUpdate!="function"&&typeof C.componentWillUpdate!="function"||(typeof C.componentWillUpdate=="function"&&C.componentWillUpdate(h,Je,k),typeof C.UNSAFE_componentWillUpdate=="function"&&C.UNSAFE_componentWillUpdate(h,Je,k)),typeof C.componentDidUpdate=="function"&&(a.flags|=4),typeof C.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof C.componentDidUpdate!="function"||R===i.memoizedProps&&Ie===i.memoizedState||(a.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||R===i.memoizedProps&&Ie===i.memoizedState||(a.flags|=1024),a.memoizedProps=h,a.memoizedState=Je),C.props=h,C.state=Je,C.context=k,C=U):(typeof C.componentDidUpdate!="function"||R===i.memoizedProps&&Ie===i.memoizedState||(a.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||R===i.memoizedProps&&Ie===i.memoizedState||(a.flags|=1024),C=!1)}if(k=C,lf(i,a),R=(a.flags&128)!==0,k||R){if(k=a.stateNode,Ve.getCurrentStack=a===null?null:q,gi=!1,co=a,R&&typeof c.getDerivedStateFromError!="function")c=null,Ho=-1;else{if(ut(a),c=EM(k),a.mode&ho){Pe(!0);try{EM(k)}finally{Pe(!1)}}I()}a.flags|=1,i!==null&&R?(a.child=ac(a,i.child,null,v),a.child=ac(a,null,c,v)):Qr(i,a,c,v),a.memoizedState=k.state,i=a.child}else i=Va(i,a,v);return v=a.stateNode,C&&v.props!==h&&(Fu||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",T(a)||"a component"),Fu=!0),i}function PO(i,a,c,h){return Jd(),a.flags|=256,Qr(i,a,c,h),a.child}function Ob(i,a){a&&a.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
187
- %s.childContextTypes = ...`,a.displayName||a.name||"Component"),typeof a.getDerivedStateFromProps=="function"&&(i=E(a)||"Unknown",o$[i]||(console.error("%s: Function components do not support getDerivedStateFromProps.",i),o$[i]=!0)),typeof a.contextType=="object"&&a.contextType!==null&&(a=E(a)||"Unknown",n$[a]||(console.error("%s: Function components do not support contextType.",a),n$[a]=!0))}function Rb(i){return{baseLanes:i,cachePool:KE()}}function Tb(i,a,c){return i=i!==null?i.childLanes&~c:0,a&&(i|=Jo),i}function zO(i,a,c){var h,v=a.pendingProps;l(a)&&(a.flags|=128);var C=!1,R=(a.flags&128)!==0;if((h=R)||(h=i!==null&&i.memoizedState===null?!1:(zr.current&Uf)!==0),h&&(C=!0,a.flags&=-129),h=(a.flags&32)!==0,a.flags&=-33,i===null){if(An){if(C?Ol(a):Rl(a),An){var k=to,U;if(!(U=!k)){e:{var X=k;for(U=ba;X.nodeType!==8;){if(!U){U=null;break e}if(X=pi(X.nextSibling),X===null){U=null;break e}}U=X}U!==null?(Ls(),a.memoizedState={dehydrated:U,treeContext:ic!==null?{id:Qa,overflow:Za}:null,retryLane:536870912},X=u(18,null,null,ir),X.stateNode=U,X.return=a,a.child=X,Ro=a,to=null,U=!0):U=!1,U=!U}U&&(Fy(a,k),Fs(a))}if(k=a.memoizedState,k!==null&&(k=k.dehydrated,k!==null))return k.data===Sc?a.lanes=16:a.lanes=536870912,null;La(a)}return k=v.children,v=v.fallback,C?(Rl(a),C=a.mode,k=$b({mode:"hidden",children:k},C),v=Qs(v,C,c,null),k.return=a,v.return=a,k.sibling=v,a.child=k,C=a.child,C.memoizedState=Rb(c),C.childLanes=Tb(i,h,c),a.memoizedState=uS,v):(Ol(a),Mb(a,k))}var Ae=i.memoizedState;if(Ae!==null&&(k=Ae.dehydrated,k!==null)){if(R)a.flags&256?(Ol(a),a.flags&=-257,a=Nb(i,a,c)):a.memoizedState!==null?(Rl(a),a.child=i.child,a.flags|=128,a=null):(Rl(a),C=v.fallback,k=a.mode,v=$b({mode:"visible",children:v.children},k),C=Qs(C,k,c,null),C.flags|=2,v.return=a,C.return=a,v.sibling=C,a.child=v,ac(a,i.child,null,c),v=a.child,v.memoizedState=Rb(c),v.childLanes=Tb(i,h,c),a.memoizedState=uS,a=C);else if(Ol(a),An&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug."),k.data===Sc){if(h=k.nextSibling&&k.nextSibling.dataset,h){U=h.dgst;var Ye=h.msg;X=h.stck;var Ie=h.cstck}k=Ye,h=U,v=X,U=C=Ie,C=Error(k||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),C.stack=v||"",C.digest=h,h=U===void 0?null:U,v={value:C,source:null,stack:h},typeof h=="string"&&Z0.set(C,v),ef(v),a=Nb(i,a,c)}else if(Fr||sf(i,a,c,!1),h=(c&i.childLanes)!==0,Fr||h){if(h=er,h!==null){if(v=c&-c,(v&42)!==0)v=1;else switch(v){case 2:v=1;break;case 8:v=4;break;case 32:v=16;break;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:v=64;break;case 268435456:v=134217728;break;default:v=0}if(v=(v&(h.suspendedLanes|c))!==0?0:v,v!==0&&v!==Ae.retryLane)throw Ae.retryLane=v,so(i,v),gr(h,i,v),e$}k.data===bc||Qb(),a=Nb(i,a,c)}else k.data===bc?(a.flags|=128,a.child=i.child,a=kL.bind(null,i),k._reactRetry=a,a=null):(i=Ae.treeContext,to=pi(k.nextSibling),Ro=a,An=!0,Ui=null,Ja=!1,Ci=null,ba=!1,i!==null&&(Ls(),bi[Si++]=Qa,bi[Si++]=Za,bi[Si++]=ic,Qa=i.id,Za=i.overflow,ic=a),a=Mb(a,v.children),a.flags|=4096);return a}return C?(Rl(a),C=v.fallback,k=a.mode,U=i.child,X=U.sibling,v=Dl(U,{mode:"hidden",children:v.children}),v.subtreeFlags=U.subtreeFlags&31457280,X!==null?C=Dl(X,C):(C=Qs(C,k,c,null),C.flags|=2),C.return=a,v.return=a,v.sibling=C,a.child=v,v=C,C=a.child,k=i.child.memoizedState,k===null?k=Rb(c):(U=k.cachePool,U!==null?(X=Br._currentValue,U=U.parent!==X?{parent:X,pool:X}:U):U=KE(),k={baseLanes:k.baseLanes|c,cachePool:U}),C.memoizedState=k,C.childLanes=Tb(i,h,c),a.memoizedState=uS,v):(Ol(a),c=i.child,i=c.sibling,c=Dl(c,{mode:"visible",children:v.children}),c.return=a,c.sibling=null,i!==null&&(h=a.deletions,h===null?(a.deletions=[i],a.flags|=16):h.push(i)),a.child=c,a.memoizedState=null,c)}function Mb(i,a){return a=$b({mode:"visible",children:a},i.mode),a.return=i,i.child=a}function $b(i,a){return hR(i,a,0,null)}function Nb(i,a,c){return ac(a,i.child,null,c),i=Mb(a,a.pendingProps.children),i.flags|=2,a.memoizedState=null,i}function _O(i,a,c){i.lanes|=a;var h=i.alternate;h!==null&&(h.lanes|=a),kb(i.return,a,c)}function BO(i,a){var c=Jr(i);return i=!c&&typeof O(i)=="function",c||i?(c=c?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",c,a,c),!1):!0}function Ab(i,a,c,h,v){var C=i.memoizedState;C===null?i.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:h,tail:c,tailMode:v}:(C.isBackwards=a,C.rendering=null,C.renderingStartTime=0,C.last=h,C.tail=c,C.tailMode=v)}function HO(i,a,c){var h=a.pendingProps,v=h.revealOrder,C=h.tail;if(h=h.children,v!==void 0&&v!=="forwards"&&v!=="backwards"&&v!=="together"&&!i$[v])if(i$[v]=!0,typeof v=="string")switch(v.toLowerCase()){case"together":case"forwards":case"backwards":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',v,v.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',v,v.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',v)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',v);C===void 0||cS[C]||(C!=="collapsed"&&C!=="hidden"?(cS[C]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',C)):v!=="forwards"&&v!=="backwards"&&(cS[C]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',C)));e:if((v==="forwards"||v==="backwards")&&h!==void 0&&h!==null&&h!==!1)if(Jr(h)){for(var R=0;R<h.length;R++)if(!BO(h[R],R))break e}else if(R=O(h),typeof R=="function"){if(R=R.call(h))for(var k=R.next(),U=0;!k.done;k=R.next()){if(!BO(k.value,U))break e;U++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',v);if(Qr(i,a,h,c),h=zr.current,(h&Uf)!==0)h=h&Bu|Uf,a.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=a.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&_O(i,c,a);else if(i.tag===19)_O(i,c,a);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break e;for(;i.sibling===null;){if(i.return===null||i.return===a)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}h&=Bu}switch(ne(zr,h,a),v){case"forwards":for(c=a.child,v=null;c!==null;)i=c.alternate,i!==null&&jm(i)===null&&(v=c),c=c.sibling;c=v,c===null?(v=a.child,a.child=null):(v=c.sibling,c.sibling=null),Ab(a,!1,v,c,C);break;case"backwards":for(c=null,v=a.child,a.child=null;v!==null;){if(i=v.alternate,i!==null&&jm(i)===null){a.child=v;break}i=v.sibling,v.sibling=c,c=v,v=i}Ab(a,!0,c,null,C);break;case"together":Ab(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function Va(i,a,c){if(i!==null&&(a.dependencies=i.dependencies),Ho=-1,ql|=a.lanes,(c&a.childLanes)===0)if(i!==null){if(sf(i,a,c,!1),(c&a.childLanes)===0)return null}else return null;if(i!==null&&a.child!==i.child)throw Error("Resuming work not yet implemented.");if(a.child!==null){for(i=a.child,c=Dl(i,i.pendingProps),a.child=c,c.return=a;i.sibling!==null;)i=i.sibling,c=c.sibling=Dl(i,i.pendingProps),c.return=a;c.sibling=null}return a.child}function Db(i,a){return(i.lanes&a)!==0?!0:(i=i.dependencies,!!(i!==null&&Jm(i)))}function fL(i,a,c){switch(a.tag){case 3:Q(a,a.stateNode.containerInfo),Ml(a,Br,i.memoizedState.cache),Jd();break;case 27:case 5:xe(a);break;case 4:Q(a,a.stateNode.containerInfo);break;case 10:Ml(a,a.type,a.memoizedProps.value);break;case 12:(c&a.childLanes)!==0&&(a.flags|=4),a.flags|=2048;var h=a.stateNode;h.effectDuration=-0,h.passiveEffectDuration=-0;break;case 13:if(h=a.memoizedState,h!==null)return h.dehydrated!==null?(Ol(a),a.flags|=128,null):(c&a.child.childLanes)!==0?zO(i,a,c):(Ol(a),i=Va(i,a,c),i!==null?i.sibling:null);Ol(a);break;case 19:var v=(i.flags&128)!==0;if(h=(c&a.childLanes)!==0,h||(sf(i,a,c,!1),h=(c&a.childLanes)!==0),v){if(h)return HO(i,a,c);a.flags|=128}if(v=a.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),ne(zr,zr.current,a),h)break;return null;case 22:case 23:return a.lanes=0,AO(i,a,c);case 24:Ml(a,Br,i.memoizedState.cache)}return Va(i,a,c)}function Ib(i,a,c){if(a._debugNeedsRemount&&i!==null){c=qb(a.type,a.key,a.pendingProps,a._debugOwner||null,a.mode,a.lanes);var h=a.return;if(h===null)throw Error("Cannot swap the root fiber.");if(i.alternate=null,a.alternate=null,c.index=a.index,c.sibling=a.sibling,c.return=a.return,c.ref=a.ref,c._debugInfo=a._debugInfo,a===h.child)h.child=c;else{var v=h.child;if(v===null)throw Error("Expected parent to have a child.");for(;v.sibling!==a;)if(v=v.sibling,v===null)throw Error("Expected to find the previous sibling.");v.sibling=c}return a=h.deletions,a===null?(h.deletions=[i],h.flags|=16):a.push(i),c.flags|=2,c}if(i!==null)if(i.memoizedProps!==a.pendingProps||a.type!==i.type)Fr=!0;else{if(!Db(i,c)&&(a.flags&128)===0)return Fr=!1,fL(i,a,c);Fr=(i.flags&131072)!==0}else Fr=!1,(h=An)&&(Ls(),h=(a.flags&1048576)!==0),h&&(h=a.index,Ls(),PE(a,zp,h));switch(a.lanes=0,a.tag){case 16:e:if(h=a.pendingProps,i=jl(a.elementType),a.type=i,typeof i=="function")Wb(i)?(h=Ks(i,h),a.tag=1,a.type=i=Hs(i),a=kO(null,a,i,h,c)):(a.tag=0,Ob(a,i),a.type=i=Hs(i),a=Eb(null,a,i,h,c));else{if(i!=null){if(v=i.$$typeof,v===wf){a.tag=11,a.type=i=_y(i),a=MO(null,a,i,h,c);break e}else if(v===bp){a.tag=14,a=$O(null,a,i,h,c);break e}}throw a="",i!==null&&typeof i=="object"&&i.$$typeof===Yo&&(a=" Did you wrap a component in React.lazy() more than once?"),i=E(i)||i,Error("Element type is invalid. Received a promise that resolves to: "+i+". Lazy element type must resolve to a class or function."+a)}return a;case 0:return Eb(i,a,a.type,a.pendingProps,c);case 1:return h=a.type,v=Ks(h,a.pendingProps),kO(i,a,h,v,c);case 3:e:{if(Q(a,a.stateNode.containerInfo),i===null)throw Error("Should have a current fiber. This is a bug in React.");var C=a.pendingProps;v=a.memoizedState,h=v.element,_b(i,a),df(a,C,null,c);var R=a.memoizedState;if(C=R.cache,Ml(a,Br,C),C!==v.cache&&Pb(a,[Br],c,!0),uf(),C=R.element,v.isDehydrated)if(v={element:C,isDehydrated:!1,cache:R.cache},a.updateQueue.baseState=v,a.memoizedState=v,a.flags&256){a=PO(i,a,C,c);break e}else if(C!==h){h=qo(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),a),ef(h),a=PO(i,a,C,c);break e}else for(to=pi(a.stateNode.containerInfo.firstChild),Ro=a,An=!0,Ui=null,Ja=!1,Ci=null,ba=!0,i=BM(a,null,C,c),a.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Jd(),C===h){a=Va(i,a,c);break e}Qr(i,a,C,c)}a=a.child}return a;case 26:return lf(i,a),i===null?(i=iT(a.type,null,a.pendingProps,null))?a.memoizedState=i:An||(i=a.type,c=a.pendingProps,h=ae(zl.current),h=up(h).createElement(i),h[fo]=a,h[Bo]=c,Zr(h,i,c),lt(h),a.stateNode=h):a.memoizedState=iT(a.type,i.memoizedProps,a.pendingProps,i.memoizedState),null;case 27:return xe(a),i===null&&An&&(v=ae(zl.current),h=de(),v=a.stateNode=rT(a.type,a.pendingProps,v,h,!1),Ja||(h=YR(v,a.type,a.pendingProps,h),h!==null&&(Vs(a,0).serverProps=h)),Ro=a,ba=!0,to=pi(v.firstChild)),h=a.pendingProps.children,i!==null||An?Qr(i,a,h,c):a.child=ac(a,null,h,c),lf(i,a),a.child;case 5:return i===null&&An&&(C=de(),h=en(a.type,C.ancestorInfo),v=to,(R=!v)||(R=JL(v,a.type,a.pendingProps,ba),R!==null?(a.stateNode=R,Ja||(C=YR(R,a.type,a.pendingProps,C),C!==null&&(Vs(a,0).serverProps=C)),Ro=a,to=pi(R.firstChild),ba=!1,C=!0):C=!1,R=!C),R&&(h&&Fy(a,v),Fs(a))),xe(a),v=a.type,C=a.pendingProps,R=i!==null?i.memoizedProps:null,h=C.children,d0(v,C)?h=null:R!==null&&d0(v,R)&&(a.flags|=32),a.memoizedState!==null&&(v=Yy(i,a,aL,null,null,c),sh._currentValue=v),lf(i,a),Qr(i,a,h,c),a.child;case 6:return i===null&&An&&(i=a.pendingProps,c=de().ancestorInfo.current,i=c!=null?bn(i,c.tag):!0,c=to,(h=!c)||(h=e3(c,a.pendingProps,ba),h!==null?(a.stateNode=h,Ro=a,to=null,h=!0):h=!1,h=!h),h&&(i&&Fy(a,c),Fs(a))),null;case 13:return zO(i,a,c);case 4:return Q(a,a.stateNode.containerInfo),h=a.pendingProps,i===null?a.child=ac(a,null,h,c):Qr(i,a,h,c),a.child;case 11:return MO(i,a,a.type,a.pendingProps,c);case 7:return Qr(i,a,a.pendingProps,c),a.child;case 8:return Qr(i,a,a.pendingProps.children,c),a.child;case 12:return a.flags|=4,a.flags|=2048,h=a.stateNode,h.effectDuration=-0,h.passiveEffectDuration=-0,Qr(i,a,a.pendingProps.children,c),a.child;case 10:return h=a.type,v=a.pendingProps,C=v.value,"value"in v||a$||(a$=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Ml(a,h,C),Qr(i,a,v.children,c),a.child;case 9:return v=a.type._context,h=a.pendingProps.children,typeof h!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Ys(a),v=hr(v),ut(a),h=tS(h,v,void 0),I(),a.flags|=1,Qr(i,a,h,c),a.child;case 14:return $O(i,a,a.type,a.pendingProps,c);case 15:return NO(i,a,a.type,a.pendingProps,c);case 19:return HO(i,a,c);case 22:return AO(i,a,c);case 24:return Ys(a),h=hr(Br),i===null?(v=Gy(),v===null&&(v=er,C=qy(),v.pooledCache=C,Us(C),C!==null&&(v.pooledCacheLanes|=c),v=C),a.memoizedState={parent:h,cache:v},zb(a),Ml(a,Br,v)):((i.lanes&c)!==0&&(_b(i,a),df(a,null,null,c),uf()),v=i.memoizedState,C=a.memoizedState,v.parent!==h?(v={parent:h,cache:h},a.memoizedState=v,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=v),Ml(a,Br,h)):(h=C.cache,Ml(a,Br,h),h!==v.cache&&Pb(a,[Br],c,!0))),Qr(i,a,a.pendingProps.children,c),a.child;case 29:throw a.pendingProps}throw Error("Unknown unit of work tag ("+a.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Zm(){Uu=Fp=null,Wu=!1}function Ml(i,a,c){ne(dS,a._currentValue,i),a._currentValue=c,ne(fS,a._currentRenderer,i),a._currentRenderer!==void 0&&a._currentRenderer!==null&&a._currentRenderer!==l$&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),a._currentRenderer=l$}function Fa(i,a){i._currentValue=dS.current;var c=fS.current;Y(fS,a),i._currentRenderer=c,Y(dS,a)}function kb(i,a,c){for(;i!==null;){var h=i.alternate;if((i.childLanes&a)!==a?(i.childLanes|=a,h!==null&&(h.childLanes|=a)):h!==null&&(h.childLanes&a)!==a&&(h.childLanes|=a),i===c)break;i=i.return}i!==c&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function Pb(i,a,c,h){var v=i.child;for(v!==null&&(v.return=i);v!==null;){var C=v.dependencies;if(C!==null){var R=v.child;C=C.firstContext;e:for(;C!==null;){var k=C;C=v;for(var U=0;U<a.length;U++)if(k.context===a[U]){C.lanes|=c,k=C.alternate,k!==null&&(k.lanes|=c),kb(C.return,c,i),h||(R=null);break e}C=k.next}}else if(v.tag===18){if(R=v.return,R===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");R.lanes|=c,C=R.alternate,C!==null&&(C.lanes|=c),kb(R,c,i),R=null}else R=v.child;if(R!==null)R.return=v;else for(R=v;R!==null;){if(R===i){R=null;break}if(v=R.sibling,v!==null){v.return=R.return,R=v;break}R=R.return}v=R}}function sf(i,a,c,h){i=null;for(var v=a,C=!1;v!==null;){if(!C){if((v.flags&524288)!==0)C=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var R=v.alternate;if(R===null)throw Error("Should have a current fiber. This is a bug in React.");if(R=R.memoizedProps,R!==null){var k=v.type;Oo(v.pendingProps.value,R.value)||(i!==null?i.push(k):i=[k])}}else if(v===Sp.current){if(R=v.alternate,R===null)throw Error("Should have a current fiber. This is a bug in React.");R.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(i!==null?i.push(sh):i=[sh])}v=v.return}i!==null&&Pb(a,i,c,h),a.flags|=262144}function Jm(i){for(i=i.firstContext;i!==null;){if(!Oo(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Ys(i){Fp=i,Uu=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function hr(i){return Wu&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),jO(Fp,i)}function ep(i,a){return Fp===null&&Ys(i),jO(i,a)}function jO(i,a){var c=a._currentValue;if(a={context:a,memoizedValue:c,next:null},Uu===null){if(i===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Uu=a,i.dependencies={lanes:0,firstContext:a,_debugThenableState:null},i.flags|=524288}else Uu=Uu.next=a;return c}function zb(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _b(i,a){i=i.updateQueue,a.updateQueue===i&&(a.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function $l(i){return{lane:i,tag:s$,payload:null,callback:null,next:null}}function Nl(i,a,c){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,mS===h&&!d$){var v=T(i);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
188
-
189
- Please update the following component: %s`,v),d$=!0}return(cr&$o)!==Qo?(v=h.pending,v===null?a.next=a:(a.next=v.next,v.next=a),h.pending=a,a=Am(i),AE(i,null,c),a):(Nm(i,h,a,c),Am(i))}function cf(i,a,c){if(a=a.updateQueue,a!==null&&(a=a.shared,(c&4194176)!==0)){var h=a.lanes;h&=i.pendingLanes,c|=h,a.lanes=c,$t(i,c)}}function tp(i,a){var c=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,c===h)){var v=null,C=null;if(c=c.firstBaseUpdate,c!==null){do{var R={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};C===null?v=C=R:C=C.next=R,c=c.next}while(c!==null);C===null?v=C=a:C=C.next=a}else v=C=a;c={baseState:h.baseState,firstBaseUpdate:v,lastBaseUpdate:C,shared:h.shared,callbacks:h.callbacks},i.updateQueue=c;return}i=c.lastBaseUpdate,i===null?c.firstBaseUpdate=a:i.next=a,c.lastBaseUpdate=a}function uf(){if(pS){var i=Hu;if(i!==null)throw i}}function df(i,a,c,h){pS=!1;var v=i.updateQueue;Wl=!1,mS=v.shared;var C=v.firstBaseUpdate,R=v.lastBaseUpdate,k=v.shared.pending;if(k!==null){v.shared.pending=null;var U=k,X=U.next;U.next=null,R===null?C=X:R.next=X,R=U;var Ae=i.alternate;Ae!==null&&(Ae=Ae.updateQueue,k=Ae.lastBaseUpdate,k!==R&&(k===null?Ae.firstBaseUpdate=X:k.next=X,Ae.lastBaseUpdate=U))}if(C!==null){var Ye=v.baseState;R=0,Ae=X=U=null,k=C;do{var Ie=k.lane&-536870913,Je=Ie!==k.lane;if(Je?(Rn&Ie)===Ie:(h&Ie)===Ie){Ie!==0&&Ie===lc&&(pS=!0),Ae!==null&&(Ae=Ae.next={lane:0,tag:k.tag,payload:k.payload,callback:null,next:null});e:{Ie=i;var Ft=k,mn=a,Tr=c;switch(Ft.tag){case c$:if(Ft=Ft.payload,typeof Ft=="function"){Wu=!0;var Bn=Ft.call(Tr,Ye,mn);if(Ie.mode&ho){Pe(!0);try{Ft.call(Tr,Ye,mn)}finally{Pe(!1)}}Wu=!1,Ye=Bn;break e}Ye=Ft;break e;case hS:Ie.flags=Ie.flags&-65537|128;case s$:if(Bn=Ft.payload,typeof Bn=="function"){if(Wu=!0,Ft=Bn.call(Tr,Ye,mn),Ie.mode&ho){Pe(!0);try{Bn.call(Tr,Ye,mn)}finally{Pe(!1)}}Wu=!1}else Ft=Bn;if(Ft==null)break e;Ye=Sn({},Ye,Ft);break e;case u$:Wl=!0}}Ie=k.callback,Ie!==null&&(i.flags|=64,Je&&(i.flags|=8192),Je=v.callbacks,Je===null?v.callbacks=[Ie]:Je.push(Ie))}else Je={lane:Ie,tag:k.tag,payload:k.payload,callback:k.callback,next:null},Ae===null?(X=Ae=Je,U=Ye):Ae=Ae.next=Je,R|=Ie;if(k=k.next,k===null){if(k=v.shared.pending,k===null)break;Je=k,k=Je.next,Je.next=null,v.lastBaseUpdate=Je,v.shared.pending=null}}while(!0);Ae===null&&(U=Ye),v.baseState=U,v.firstBaseUpdate=X,v.lastBaseUpdate=Ae,C===null&&(v.shared.lanes=0),ql|=R,i.lanes=R,i.memoizedState=Ye}mS=null}function LO(i,a){if(typeof i!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+i);i.call(a)}function hL(i,a){var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)LO(c[i],a)}function VO(i,a){var c=i.callbacks;if(c!==null)for(i.callbacks=null,i=0;i<c.length;i++)LO(c[i],a)}function ca(i){return(i.mode&eo)!==ir}function FO(i,a){ca(i)?(sa(),ff(a,i),la()):ff(a,i)}function Bb(i,a,c){ca(i)?(sa(),cu(c,i,a),la()):cu(c,i,a)}function ff(i,a){try{var c=a.updateQueue,h=c!==null?c.lastEffect:null;if(h!==null){var v=h.next;c=v;do{if((c.tag&i)===i&&((i&_r)!==wi?_t!==null&&typeof _t.markComponentPassiveEffectMountStarted=="function"&&_t.markComponentPassiveEffectMountStarted(a):(i&no)!==wi&&_t!==null&&typeof _t.markComponentLayoutEffectMountStarted=="function"&&_t.markComponentLayoutEffectMountStarted(a),h=void 0,(i&To)!==wi&&(Qu=!0),h=H(a,N4,c),(i&To)!==wi&&(Qu=!1),(i&_r)!==wi?_t!==null&&typeof _t.markComponentPassiveEffectMountStopped=="function"&&_t.markComponentPassiveEffectMountStopped():(i&no)!==wi&&_t!==null&&typeof _t.markComponentLayoutEffectMountStopped=="function"&&_t.markComponentLayoutEffectMountStopped(),h!==void 0&&typeof h!="function")){var C=void 0;C=(c.tag&no)!==0?"useLayoutEffect":(c.tag&To)!==0?"useInsertionEffect":"useEffect";var R=void 0;R=h===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof h.then=="function"?`
190
-
191
- It looks like you wrote `+C+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
192
-
193
- `+C+`(() => {
194
- async function fetchData() {
195
- // You can await here
196
- const response = await MyAPI.getData(someId);
197
- // ...
198
- }
199
- fetchData();
200
- }, [someId]); // Or [] if effect doesn't need props or state
201
-
202
- Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+h,H(a,function(k,U){console.error("%s must not return anything besides a function, which is used for clean-up.%s",k,U)},C,R)}c=c.next}while(c!==v)}}catch(k){Kn(a,a.return,k)}}function cu(i,a,c){try{var h=a.updateQueue,v=h!==null?h.lastEffect:null;if(v!==null){var C=v.next;h=C;do{if((h.tag&i)===i){var R=h.inst,k=R.destroy;k!==void 0&&(R.destroy=void 0,(i&_r)!==wi?_t!==null&&typeof _t.markComponentPassiveEffectUnmountStarted=="function"&&_t.markComponentPassiveEffectUnmountStarted(a):(i&no)!==wi&&_t!==null&&typeof _t.markComponentLayoutEffectUnmountStarted=="function"&&_t.markComponentLayoutEffectUnmountStarted(a),(i&To)!==wi&&(Qu=!0),H(a,A4,a,c,k),(i&To)!==wi&&(Qu=!1),(i&_r)!==wi?_t!==null&&typeof _t.markComponentPassiveEffectUnmountStopped=="function"&&_t.markComponentPassiveEffectUnmountStopped():(i&no)!==wi&&_t!==null&&typeof _t.markComponentLayoutEffectUnmountStopped=="function"&&_t.markComponentLayoutEffectUnmountStopped())}h=h.next}while(h!==C)}}catch(U){Kn(a,a.return,U)}}function UO(i,a){ca(i)?(sa(),ff(a,i),la()):ff(a,i)}function Hb(i,a,c){ca(i)?(sa(),cu(c,i,a),la()):cu(c,i,a)}function WO(i){var a=i.updateQueue;if(a!==null){var c=i.stateNode;i.type.defaultProps||"ref"in i.memoizedProps||Fu||(c.props!==i.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",T(i)||"instance"),c.state!==i.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",T(i)||"instance"));try{H(i,VO,a,c)}catch(h){Kn(i,i.return,h)}}}function mL(i,a,c){return i.getSnapshotBeforeUpdate(a,c)}function pL(i,a){var c=a.memoizedProps,h=a.memoizedState;a=i.stateNode,i.type.defaultProps||"ref"in i.memoizedProps||Fu||(a.props!==i.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",T(i)||"instance"),a.state!==i.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",T(i)||"instance"));try{var v=Ks(i.type,c,i.elementType===i.type),C=H(i,mL,a,v,h);c=f$,C!==void 0||c.has(i.type)||(c.add(i.type),H(i,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",T(i))})),a.__reactInternalSnapshotBeforeUpdate=C}catch(R){Kn(i,i.return,R)}}function qO(i,a,c){c.props=Ks(i.type,i.memoizedProps),c.state=i.memoizedState,ca(i)?(sa(),H(i,NM,i,a,c),la()):H(i,NM,i,a,c)}function gL(i){var a=i.ref;if(a!==null){var c=i.stateNode;if(typeof a=="function")if(ca(i))try{sa(),i.refCleanup=a(c)}finally{la()}else i.refCleanup=a(c);else typeof a=="string"?console.error("String refs are no longer supported."):a.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",T(i)),a.current=c}}function Xs(i,a){try{H(i,gL,i)}catch(c){Kn(i,a,c)}}function Go(i,a){var c=i.ref,h=i.refCleanup;if(c!==null)if(typeof h=="function")try{if(ca(i))try{sa(),H(i,h)}finally{la(i)}else H(i,h)}catch(v){Kn(i,a,v)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof c=="function")try{if(ca(i))try{sa(),H(i,c,null)}finally{la(i)}else H(i,c,null)}catch(v){Kn(i,a,v)}else c.current=null}function GO(i,a,c,h){var v=i.memoizedProps,C=v.id,R=v.onCommit;v=v.onRender,a=a===null?"mount":"update",Dp&&(a="nested-update"),typeof v=="function"&&v(C,a,i.actualDuration,i.treeBaseDuration,i.actualStartTime,c),typeof R=="function"&&R(i.memoizedProps.id,a,h,c)}function vL(i,a,c,h){var v=i.memoizedProps;i=v.id,v=v.onPostCommit,a=a===null?"mount":"update",Dp&&(a="nested-update"),typeof v=="function"&&v(i,a,h,c)}function KO(i){var a=i.type,c=i.memoizedProps,h=i.stateNode;try{H(i,UL,h,a,c,i)}catch(v){Kn(i,i.return,v)}}function YO(i,a,c){try{H(i,WL,i.stateNode,i.type,c,a,i)}catch(h){Kn(i,i.return,h)}}function XO(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27||i.tag===4}function jb(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||XO(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==27&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Lb(i,a,c){var h=i.tag;if(h===5||h===6)i=i.stateNode,a?c.nodeType===8?c.parentNode.insertBefore(i,a):c.insertBefore(i,a):(c.nodeType===8?(a=c.parentNode,a.insertBefore(i,c)):(a=c,a.appendChild(i)),c=c._reactRootContainer,c!=null||a.onclick!==null||(a.onclick=sp));else if(h!==4&&h!==27&&(i=i.child,i!==null))for(Lb(i,a,c),i=i.sibling;i!==null;)Lb(i,a,c),i=i.sibling}function np(i,a,c){var h=i.tag;if(h===5||h===6)i=i.stateNode,a?c.insertBefore(i,a):c.appendChild(i);else if(h!==4&&h!==27&&(i=i.child,i!==null))for(np(i,a,c),i=i.sibling;i!==null;)np(i,a,c),i=i.sibling}function yL(i){if(i.tag!==27){e:{for(var a=i.return;a!==null;){if(XO(a)){var c=a;break e}a=a.return}throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}switch(c.tag){case 27:a=c.stateNode,c=jb(i),np(i,c,a);break;case 5:a=c.stateNode,c.flags&32&&(ZR(a),c.flags&=-33),c=jb(i),np(i,c,a);break;case 3:case 4:a=c.stateNode.containerInfo,c=jb(i),Lb(i,c,a);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}}function bL(i,a){if(i=i.containerInfo,kS=cg,i=$E(i),Py(i)){if("selectionStart"in i)var c={start:i.selectionStart,end:i.selectionEnd};else e:{c=(c=i.ownerDocument)&&c.defaultView||window;var h=c.getSelection&&c.getSelection();if(h&&h.rangeCount!==0){c=h.anchorNode;var v=h.anchorOffset,C=h.focusNode;h=h.focusOffset;try{c.nodeType,C.nodeType}catch{c=null;break e}var R=0,k=-1,U=-1,X=0,Ae=0,Ye=i,Ie=null;t:for(;;){for(var Je;Ye!==c||v!==0&&Ye.nodeType!==3||(k=R+v),Ye!==C||h!==0&&Ye.nodeType!==3||(U=R+h),Ye.nodeType===3&&(R+=Ye.nodeValue.length),(Je=Ye.firstChild)!==null;)Ie=Ye,Ye=Je;for(;;){if(Ye===i)break t;if(Ie===c&&++X===v&&(k=R),Ie===C&&++Ae===h&&(U=R),(Je=Ye.nextSibling)!==null)break;Ye=Ie,Ie=Ye.parentNode}Ye=Je}c=k===-1||U===-1?null:{start:k,end:U}}else c=null}c=c||{start:0,end:0}}else c=null;for(PS={focusedElem:i,selectionRange:c},cg=!1,Ur=a;Ur!==null;)if(a=Ur,i=a.child,(a.subtreeFlags&1028)!==0&&i!==null)i.return=a,Ur=i;else for(;Ur!==null;){switch(i=a=Ur,c=i.alternate,v=i.flags,i.tag){case 0:break;case 11:case 15:break;case 1:(v&1024)!==0&&c!==null&&pL(i,c);break;case 3:if((v&1024)!==0){if(i=i.stateNode.containerInfo,c=i.nodeType,c===9)h0(i);else if(c===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":h0(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((v&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(i=a.sibling,i!==null){i.return=a.return,Ur=i;break}Ur=a.return}return a=m$,m$=!1,a}function QO(i,a,c){var h=c.flags;switch(c.tag){case 0:case 11:case 15:ua(i,c),h&4&&FO(c,no|Ei);break;case 1:if(ua(i,c),h&4)if(i=c.stateNode,a===null)c.type.defaultProps||"ref"in c.memoizedProps||Fu||(i.props!==c.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",T(c)||"instance"),i.state!==c.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",T(c)||"instance")),ca(c)?(sa(),H(c,nS,c,i),la()):H(c,nS,c,i);else{var v=Ks(c.type,a.memoizedProps);a=a.memoizedState,c.type.defaultProps||"ref"in c.memoizedProps||Fu||(i.props!==c.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",T(c)||"instance"),i.state!==c.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",T(c)||"instance")),ca(c)?(sa(),H(c,TM,c,i,v,a,i.__reactInternalSnapshotBeforeUpdate),la()):H(c,TM,c,i,v,a,i.__reactInternalSnapshotBeforeUpdate)}h&64&&WO(c),h&512&&Xs(c,c.return);break;case 3:if(a=ja(),ua(i,c),h&64&&(h=c.updateQueue,h!==null)){if(v=null,c.child!==null)switch(c.child.tag){case 27:case 5:v=c.child.stateNode;break;case 1:v=c.child.stateNode}try{H(c,VO,h,v)}catch(k){Kn(c,c.return,k)}}i.effectDuration+=Dm(a);break;case 26:ua(i,c),h&512&&Xs(c,c.return);break;case 27:case 5:ua(i,c),a===null&&h&4&&KO(c),h&512&&Xs(c,c.return);break;case 12:if(h&4){h=ja(),ua(i,c),i=c.stateNode,i.effectDuration+=Qd(h);try{H(c,GO,c,a,Ap,i.effectDuration)}catch(k){Kn(c,c.return,k)}}else ua(i,c);break;case 13:ua(i,c),h&4&&eR(i,c);break;case 22:if(v=c.memoizedState!==null||nl,!v){a=a!==null&&a.memoizedState!==null||yr;var C=nl,R=yr;nl=v,(yr=a)&&!R?Wa(i,c,(c.subtreeFlags&8772)!==0):ua(i,c),nl=C,yr=R}h&512&&(c.memoizedProps.mode==="manual"?Xs(c,c.return):Go(c,c.return));break;default:ua(i,c)}}function ZO(i){var a=i.alternate;a!==null&&(i.alternate=null,ZO(a)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(a=i.stateNode,a!==null&&bt(a)),i.stateNode=null,i._debugOwner=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function Ua(i,a,c){for(c=c.child;c!==null;)JO(i,a,c),c=c.sibling}function JO(i,a,c){if(uo&&typeof uo.onCommitFiberUnmount=="function")try{uo.onCommitFiberUnmount(xu,c)}catch(C){pa||(pa=!0,console.error("React instrumentation encountered an error: %s",C))}switch(c.tag){case 26:yr||Go(c,a),Ua(i,a,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:yr||Go(c,a);var h=Dr,v=Xo;for(Dr=c.stateNode,Ua(i,a,c),c=c.stateNode,i=c.attributes;i.length;)c.removeAttributeNode(i[0]);bt(c),Dr=h,Xo=v;break;case 5:yr||Go(c,a);case 6:if(h=Dr,v=Xo,Dr=null,Ua(i,a,c),Dr=h,Xo=v,Dr!==null)if(Xo)try{H(c,KL,Dr,c.stateNode)}catch(C){Kn(c,a,C)}else try{H(c,GL,Dr,c.stateNode)}catch(C){Kn(c,a,C)}break;case 18:Dr!==null&&(Xo?(i=Dr,c=c.stateNode,i.nodeType===8?f0(i.parentNode,c):i.nodeType===1&&f0(i,c),xf(i)):f0(Dr,c.stateNode));break;case 4:h=Dr,v=Xo,Dr=c.stateNode.containerInfo,Xo=!0,Ua(i,a,c),Dr=h,Xo=v;break;case 0:case 11:case 14:case 15:yr||cu(To,c,a),yr||Bb(c,a,no),Ua(i,a,c);break;case 1:yr||(Go(c,a),h=c.stateNode,typeof h.componentWillUnmount=="function"&&qO(c,a,h)),Ua(i,a,c);break;case 21:Ua(i,a,c);break;case 22:yr||Go(c,a),yr=(h=yr)||c.memoizedState!==null,Ua(i,a,c),yr=h;break;default:Ua(i,a,c)}}function eR(i,a){if(a.memoizedState===null&&(i=a.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{H(a,n3,i)}catch(c){Kn(a,a.return,c)}}function SL(i){switch(i.tag){case 13:case 19:var a=i.stateNode;return a===null&&(a=i.stateNode=new h$),a;case 22:return i=i.stateNode,a=i._retryCache,a===null&&(a=i._retryCache=new h$),a;default:throw Error("Unexpected Suspense handler tag ("+i.tag+"). This is a bug in React.")}}function Vb(i,a){var c=SL(i);a.forEach(function(h){var v=PL.bind(null,i,h);if(!c.has(h)){if(c.add(h),Li)if(qu!==null&&Gu!==null)gf(Gu,qu);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");h.then(v,v)}})}function CL(i,a,c){qu=c,Gu=i,tR(a,i),Gu=qu=null}function fi(i,a){var c=a.deletions;if(c!==null)for(var h=0;h<c.length;h++){var v=i,C=a,R=c[h],k=C;e:for(;k!==null;){switch(k.tag){case 27:case 5:Dr=k.stateNode,Xo=!1;break e;case 3:Dr=k.stateNode.containerInfo,Xo=!0;break e;case 4:Dr=k.stateNode.containerInfo,Xo=!0;break e}k=k.return}if(Dr===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");JO(v,C,R),Dr=null,Xo=!1,v=R,C=v.alternate,C!==null&&(C.return=null),v.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)tR(a,i),a=a.sibling}function tR(i,a){var c=i.alternate,h=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:fi(a,i),hi(i),h&4&&(cu(To|Ei,i,i.return),ff(To|Ei,i),Bb(i,i.return,no|Ei));break;case 1:fi(a,i),hi(i),h&512&&(yr||c===null||Go(c,c.return)),h&64&&nl&&(i=i.updateQueue,i!==null&&(h=i.callbacks,h!==null&&(c=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=c===null?h:c.concat(h))));break;case 26:var v=Wi;if(fi(a,i),hi(i),h&512&&(yr||c===null||Go(c,c.return)),h&4)if(a=c!==null?c.memoizedState:null,h=i.memoizedState,c===null)if(h===null)if(i.stateNode===null){e:{h=i.type,c=i.memoizedProps,a=v.ownerDocument||v;t:switch(h){case"title":v=a.getElementsByTagName("title")[0],(!v||v[Rf]||v[fo]||v.namespaceURI===wu||v.hasAttribute("itemprop"))&&(v=a.createElement(h),a.head.insertBefore(v,a.querySelector("head > title"))),Zr(v,h,c),v[fo]=i,lt(v),h=v;break e;case"link":var C=sT("link","href",a).get(h+(c.href||""));if(C){for(var R=0;R<C.length;R++)if(v=C[R],v.getAttribute("href")===(c.href==null?null:c.href)&&v.getAttribute("rel")===(c.rel==null?null:c.rel)&&v.getAttribute("title")===(c.title==null?null:c.title)&&v.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){C.splice(R,1);break t}}v=a.createElement(h),Zr(v,h,c),a.head.appendChild(v);break;case"meta":if(C=sT("meta","content",a).get(h+(c.content||""))){for(R=0;R<C.length;R++)if(v=C[R],he(c.content,"content"),v.getAttribute("content")===(c.content==null?null:""+c.content)&&v.getAttribute("name")===(c.name==null?null:c.name)&&v.getAttribute("property")===(c.property==null?null:c.property)&&v.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&v.getAttribute("charset")===(c.charSet==null?null:c.charSet)){C.splice(R,1);break t}}v=a.createElement(h),Zr(v,h,c),a.head.appendChild(v);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+h+'". This is a bug in React.')}v[fo]=i,lt(v),h=v}i.stateNode=h}else cT(v,i.type,i.stateNode);else i.stateNode=lT(v,h,i.memoizedProps);else a!==h?(a===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):a.count--,h===null?cT(v,i.type,i.stateNode):lT(v,h,i.memoizedProps)):h===null&&i.stateNode!==null&&YO(i,i.memoizedProps,c.memoizedProps);break;case 27:if(h&4&&i.alternate===null){v=i.stateNode,C=i.memoizedProps;try{for(R=v.firstChild;R;){var k=R.nextSibling,U=R.nodeName;R[Rf]||U==="HEAD"||U==="BODY"||U==="SCRIPT"||U==="STYLE"||U==="LINK"&&R.rel.toLowerCase()==="stylesheet"||v.removeChild(R),R=k}H(i,r3,i.type,C,v,i)}catch(Ae){Kn(i,i.return,Ae)}}case 5:if(fi(a,i),hi(i),h&512&&(yr||c===null||Go(c,c.return)),i.flags&32){a=i.stateNode;try{H(i,ZR,a)}catch(Ae){Kn(i,i.return,Ae)}}h&4&&i.stateNode!=null&&(a=i.memoizedProps,YO(i,a,c!==null?c.memoizedProps:a)),h&1024&&(gS=!0,i.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(fi(a,i),hi(i),h&4){if(i.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");h=i.memoizedProps,c=c!==null?c.memoizedProps:h,a=i.stateNode;try{H(i,qL,a,c,h)}catch(Ae){Kn(i,i.return,Ae)}}break;case 3:if(v=ja(),ag=null,C=Wi,Wi=dp(a.containerInfo),fi(a,i),Wi=C,hi(i),h&4&&c!==null&&c.memoizedState.isDehydrated)try{H(i,t3,a.containerInfo)}catch(Ae){Kn(i,i.return,Ae)}gS&&(gS=!1,nR(i)),a.effectDuration+=Dm(v);break;case 4:h=Wi,Wi=dp(i.stateNode.containerInfo),fi(a,i),hi(i),Wi=h;break;case 12:h=ja(),fi(a,i),hi(i),i.stateNode.effectDuration+=Qd(h);break;case 13:fi(a,i),hi(i),i.child.flags&8192&&i.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(xS=ma()),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,Vb(i,h)));break;case 22:h&512&&(yr||c===null||Go(c,c.return)),R=i.memoizedState!==null,k=c!==null&&c.memoizedState!==null,U=nl;var X=yr;if(nl=U||R,yr=X||k,fi(a,i),yr=X,nl=U,hi(i),a=i.stateNode,a._current=i,a._visibility&=-3,a._visibility|=a._pendingVisibility&Pf,h&8192&&(a._visibility=R?a._visibility&-2:a._visibility|Np,R&&(a=nl||yr,c===null||k||a||uu(i)),i.memoizedProps===null||i.memoizedProps.mode!=="manual"))e:for(c=null,a=i;;){if(a.tag===5||a.tag===26||a.tag===27){if(c===null){k=c=a;try{v=k.stateNode,R?H(k,YL,v):H(k,QL,k.stateNode,k.memoizedProps)}catch(Ae){Kn(k,k.return,Ae)}}}else if(a.tag===6){if(c===null){k=a;try{C=k.stateNode,R?H(k,XL,C):H(k,ZL,C,k.memoizedProps)}catch(Ae){Kn(k,k.return,Ae)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===i)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break e;for(;a.sibling===null;){if(a.return===null||a.return===i)break e;c===a&&(c=null),a=a.return}c===a&&(c=null),a.sibling.return=a.return,a=a.sibling}h&4&&(h=i.updateQueue,h!==null&&(c=h.retryQueue,c!==null&&(h.retryQueue=null,Vb(i,c))));break;case 19:fi(a,i),hi(i),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,Vb(i,h)));break;case 21:break;default:fi(a,i),hi(i)}}function hi(i){var a=i.flags;if(a&2){try{H(i,yL,i)}catch(c){Kn(i,i.return,c)}i.flags&=-3}a&4096&&(i.flags&=-4097)}function nR(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var a=i;nR(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),i=i.sibling}}function xL(i,a,c){qu=c,Gu=a,QO(a,i.alternate,i),Gu=qu=null}function ua(i,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)QO(i,a.alternate,a),a=a.sibling}function rR(i){switch(i.tag){case 0:case 11:case 14:case 15:Bb(i,i.return,no),uu(i);break;case 1:Go(i,i.return);var a=i.stateNode;typeof a.componentWillUnmount=="function"&&qO(i,i.return,a),uu(i);break;case 26:case 27:case 5:Go(i,i.return),uu(i);break;case 22:Go(i,i.return),i.memoizedState===null&&uu(i);break;default:uu(i)}}function uu(i){for(i=i.child;i!==null;)rR(i),i=i.sibling}function oR(i,a,c,h){var v=c.flags;switch(c.tag){case 0:case 11:case 15:Wa(i,c,h),FO(c,no);break;case 1:if(Wa(i,c,h),a=c.stateNode,typeof a.componentDidMount=="function"&&H(c,nS,c,a),a=c.updateQueue,a!==null){i=c.stateNode;try{H(c,hL,a,i)}catch(C){Kn(c,c.return,C)}}h&&v&64&&WO(c),Xs(c,c.return);break;case 26:case 27:case 5:Wa(i,c,h),h&&a===null&&v&4&&KO(c),Xs(c,c.return);break;case 12:if(h&&v&4){v=ja(),Wa(i,c,h),h=c.stateNode,h.effectDuration+=Qd(v);try{H(c,GO,c,a,Ap,h.effectDuration)}catch(C){Kn(c,c.return,C)}}else Wa(i,c,h);break;case 13:Wa(i,c,h),h&&v&4&&eR(i,c);break;case 22:c.memoizedState===null&&Wa(i,c,h),Xs(c,c.return);break;default:Wa(i,c,h)}}function Wa(i,a,c){for(c=c&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;)oR(i,a.alternate,a,c),a=a.sibling}function Fb(i,a){var c=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==c&&(i!=null&&Us(i),c!=null&&nf(c))}function Ub(i,a){i=null,a.alternate!==null&&(i=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==i&&(Us(a),i!=null&&nf(i))}function Al(i,a,c,h){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)iR(i,a,c,h),a=a.sibling}function iR(i,a,c,h){var v=a.flags;switch(a.tag){case 0:case 11:case 15:Al(i,a,c,h),v&2048&&UO(a,_r|Ei);break;case 3:var C=ja();Al(i,a,c,h),v&2048&&(c=null,a.alternate!==null&&(c=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==c&&(Us(a),c!=null&&nf(c))),i.passiveEffectDuration+=Dm(C);break;case 12:if(v&2048){C=ja(),Al(i,a,c,h),i=a.stateNode,i.passiveEffectDuration+=Qd(C);try{H(a,vL,a,a.alternate,Ap,i.passiveEffectDuration)}catch(R){Kn(a,a.return,R)}}else Al(i,a,c,h);break;case 23:break;case 22:C=a.stateNode,a.memoizedState!==null?C._visibility&nc?Al(i,a,c,h):hf(i,a):C._visibility&nc?Al(i,a,c,h):(C._visibility|=nc,du(i,a,c,h,(a.subtreeFlags&10256)!==0)),v&2048&&Fb(a.alternate,a);break;case 24:Al(i,a,c,h),v&2048&&Ub(a.alternate,a);break;default:Al(i,a,c,h)}}function du(i,a,c,h,v){for(v=v&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;)aR(i,a,c,h,v),a=a.sibling}function aR(i,a,c,h,v){var C=a.flags;switch(a.tag){case 0:case 11:case 15:du(i,a,c,h,v),UO(a,_r);break;case 23:break;case 22:var R=a.stateNode;a.memoizedState!==null?R._visibility&nc?du(i,a,c,h,v):hf(i,a):(R._visibility|=nc,du(i,a,c,h,v)),v&&C&2048&&Fb(a.alternate,a);break;case 24:du(i,a,c,h,v),v&&C&2048&&Ub(a.alternate,a);break;default:du(i,a,c,h,v)}}function hf(i,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var c=i,h=a,v=h.flags;switch(h.tag){case 22:hf(c,h),v&2048&&Fb(h.alternate,h);break;case 24:hf(c,h),v&2048&&Ub(h.alternate,h);break;default:hf(c,h)}a=a.sibling}}function fu(i){if(i.subtreeFlags&Kf)for(i=i.child;i!==null;)lR(i),i=i.sibling}function lR(i){switch(i.tag){case 26:fu(i),i.flags&Kf&&i.memoizedState!==null&&l3(Wi,i.memoizedState,i.memoizedProps);break;case 5:fu(i);break;case 3:case 4:var a=Wi;Wi=dp(i.stateNode.containerInfo),fu(i),Wi=a;break;case 22:i.memoizedState===null&&(a=i.alternate,a!==null&&a.memoizedState!==null?(a=Kf,Kf=16777216,fu(i),Kf=a):fu(i));break;default:fu(i)}}function sR(i){var a=i.alternate;if(a!==null&&(i=a.child,i!==null)){a.child=null;do a=i.sibling,i.sibling=null,i=a;while(i!==null)}}function mf(i){var a=i.deletions;if((i.flags&16)!==0){if(a!==null)for(var c=0;c<a.length;c++){var h=a[c];Ur=h,dR(h,i)}sR(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)cR(i),i=i.sibling}function cR(i){switch(i.tag){case 0:case 11:case 15:mf(i),i.flags&2048&&Hb(i,i.return,_r|Ei);break;case 3:var a=ja();mf(i),i.stateNode.passiveEffectDuration+=Dm(a);break;case 12:a=ja(),mf(i),i.stateNode.passiveEffectDuration+=Qd(a);break;case 22:a=i.stateNode,i.memoizedState!==null&&a._visibility&nc&&(i.return===null||i.return.tag!==13)?(a._visibility&=-5,rp(i)):mf(i);break;default:mf(i)}}function rp(i){var a=i.deletions;if((i.flags&16)!==0){if(a!==null)for(var c=0;c<a.length;c++){var h=a[c];Ur=h,dR(h,i)}sR(i)}for(i=i.child;i!==null;)uR(i),i=i.sibling}function uR(i){switch(i.tag){case 0:case 11:case 15:Hb(i,i.return,_r),rp(i);break;case 22:var a=i.stateNode;a._visibility&nc&&(a._visibility&=-5,rp(i));break;default:rp(i)}}function dR(i,a){for(;Ur!==null;){var c=Ur,h=c;switch(h.tag){case 0:case 11:case 15:Hb(h,a,_r);break;case 23:case 22:h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(h=h.memoizedState.cachePool.pool,h!=null&&Us(h));break;case 24:nf(h.memoizedState.cache)}if(h=c.child,h!==null)h.return=c,Ur=h;else e:for(c=i;Ur!==null;){h=Ur;var v=h.sibling,C=h.return;if(ZO(h),h===c){Ur=null;break e}if(v!==null){v.return=C,Ur=v;break e}Ur=C}}}function wL(i,a,c,h){this.tag=i,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,p$||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function Wb(i){return i=i.prototype,!(!i||!i.isReactComponent)}function Dl(i,a){var c=i.alternate;switch(c===null?(c=u(i.tag,a,i.key,i.mode),c.elementType=i.elementType,c.type=i.type,c.stateNode=i.stateNode,c._debugOwner=i._debugOwner,c._debugHookTypes=i._debugHookTypes,c.alternate=i,i.alternate=c):(c.pendingProps=a,c.type=i.type,c.flags=0,c.subtreeFlags=0,c.deletions=null,c.actualDuration=-0,c.actualStartTime=-1.1),c.flags=i.flags&31457280,c.childLanes=i.childLanes,c.lanes=i.lanes,c.child=i.child,c.memoizedProps=i.memoizedProps,c.memoizedState=i.memoizedState,c.updateQueue=i.updateQueue,a=i.dependencies,c.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext,_debugThenableState:a._debugThenableState},c.sibling=i.sibling,c.index=i.index,c.ref=i.ref,c.refCleanup=i.refCleanup,c.selfBaseDuration=i.selfBaseDuration,c.treeBaseDuration=i.treeBaseDuration,c._debugInfo=i._debugInfo,c._debugNeedsRemount=i._debugNeedsRemount,c.tag){case 0:case 15:c.type=Hs(i.type);break;case 1:c.type=Hs(i.type);break;case 11:c.type=_y(i.type)}return c}function fR(i,a){i.flags&=31457282;var c=i.alternate;return c===null?(i.childLanes=0,i.lanes=a,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null,i.selfBaseDuration=0,i.treeBaseDuration=0):(i.childLanes=c.childLanes,i.lanes=c.lanes,i.child=c.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=c.memoizedProps,i.memoizedState=c.memoizedState,i.updateQueue=c.updateQueue,i.type=c.type,a=c.dependencies,i.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext,_debugThenableState:a._debugThenableState},i.selfBaseDuration=c.selfBaseDuration,i.treeBaseDuration=c.treeBaseDuration),i}function qb(i,a,c,h,v,C){var R=0,k=i;if(typeof i=="function")Wb(i)&&(R=1),k=Hs(k);else if(typeof i=="string")R=de(),R=i3(i,c,R)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case Su:return Qs(c.children,v,C,a);case yp:R=8,v|=ho,v|=Vi;break;case w0:return i=c,h=v,typeof i.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof i.id),a=u(12,i,a,h|eo),a.elementType=w0,a.lanes=C,a.stateNode={effectDuration:0,passiveEffectDuration:0},a;case O0:return a=u(13,c,a,v),a.elementType=O0,a.lanes=C,a;case R0:return a=u(19,c,a,v),a.elementType=R0,a.lanes=C,a;case wT:return hR(c,v,C,a);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case S3:case ha:R=10;break e;case E0:R=9;break e;case wf:R=11,k=_y(k);break e;case bp:R=14;break e;case Yo:R=16,k=null;break e}k="",(i===void 0||typeof i=="object"&&i!==null&&Object.keys(i).length===0)&&(k+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),i===null?c="null":Jr(i)?c="array":i!==void 0&&i.$$typeof===kl?(c="<"+(E(i.type)||"Unknown")+" />",k=" Did you accidentally export a JSX literal instead of a component?"):c=typeof i,(R=h?M(h):null)&&(k+=`
203
-
204
- Check the render method of \``+R+"`."),R=29,c=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(c+"."+k)),k=null}return a=u(R,c,a,v),a.elementType=i,a.type=k,a.lanes=C,a._debugOwner=h,a}function op(i,a,c){return a=qb(i.type,i.key,i.props,i._owner,a,c),a._debugOwner=i._owner,a}function Qs(i,a,c,h){return i=u(7,i,h,a),i.lanes=c,i}function hR(i,a,c,h){i=u(22,i,h,a),i.elementType=wT,i.lanes=c;var v={_visibility:Np,_pendingVisibility:Np,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var C=v,R=C._current;if(R===null)throw Error("Calling Offscreen.detach before instance handle has been set.");if((C._pendingVisibility&Pf)===0){var k=so(R,2);k!==null&&(C._pendingVisibility|=Pf,gr(k,R,2))}},attach:function(){var C=v,R=C._current;if(R===null)throw Error("Calling Offscreen.detach before instance handle has been set.");if((C._pendingVisibility&Pf)!==0){var k=so(R,2);k!==null&&(C._pendingVisibility&=-3,gr(k,R,2))}}};return i.stateNode=v,i}function Gb(i,a,c){return i=u(6,i,null,a),i.lanes=c,i}function Kb(i,a,c){return a=u(4,i.children!==null?i.children:[],i.key,a),a.lanes=c,a.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},a}function qa(i){i.flags|=4}function mR(i,a){if(a.type!=="stylesheet"||(a.state.loading&Ri)!==Cc)i.flags&=-16777217;else if(i.flags|=16777216,!uT(a)){if(a=xi.current,a!==null&&((Rn&4194176)===Rn?Sa!==null:(Rn&62914560)!==Rn&&(Rn&536870912)===0||a!==Sa))throw Vf=eS,CM;i.flags|=8192}}function ip(i,a){a!==null&&(i.flags|=4),i.flags&16384&&(a=i.tag!==22?vt():536870912,i.lanes|=a,mc|=a)}function pf(i,a){if(!An)switch(i.tailMode){case"hidden":a=i.tail;for(var c=null;a!==null;)a.alternate!==null&&(c=a),a=a.sibling;c===null?i.tail=null:c.sibling=null;break;case"collapsed":c=i.tail;for(var h=null;c!==null;)c.alternate!==null&&(h=c),c=c.sibling;h===null?a||i.tail===null?i.tail=null:i.tail.sibling=null:h.sibling=null}}function mr(i){var a=i.alternate!==null&&i.alternate.child===i.child,c=0,h=0;if(a)if((i.mode&eo)!==ir){for(var v=i.selfBaseDuration,C=i.child;C!==null;)c|=C.lanes|C.childLanes,h|=C.subtreeFlags&31457280,h|=C.flags&31457280,v+=C.treeBaseDuration,C=C.sibling;i.treeBaseDuration=v}else for(v=i.child;v!==null;)c|=v.lanes|v.childLanes,h|=v.subtreeFlags&31457280,h|=v.flags&31457280,v.return=i,v=v.sibling;else if((i.mode&eo)!==ir){v=i.actualDuration,C=i.selfBaseDuration;for(var R=i.child;R!==null;)c|=R.lanes|R.childLanes,h|=R.subtreeFlags,h|=R.flags,v+=R.actualDuration,C+=R.treeBaseDuration,R=R.sibling;i.actualDuration=v,i.treeBaseDuration=C}else for(v=i.child;v!==null;)c|=v.lanes|v.childLanes,h|=v.subtreeFlags,h|=v.flags,v.return=i,v=v.sibling;return i.subtreeFlags|=h,i.childLanes=c,a}function EL(i,a,c){var h=a.pendingProps;switch(Vy(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mr(a),null;case 1:return mr(a),null;case 3:return h=a.stateNode,c=null,i!==null&&(c=i.memoizedState.cache),a.memoizedState.cache!==c&&(a.flags|=2048),Fa(Br,a),se(a),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(i===null||i.child===null)&&(Zd(a)?(BE(),qa(a)):i===null||i.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Ui!==null&&(Yb(Ui),Ui=null))),mr(a),null;case 26:return c=a.memoizedState,i===null?(qa(a),c!==null?(mr(a),mR(a,c)):(mr(a),a.flags&=-16777217)):c?c!==i.memoizedState?(qa(a),mr(a),mR(a,c)):(mr(a),a.flags&=-16777217):(i.memoizedProps!==h&&qa(a),mr(a),a.flags&=-16777217),null;case 27:fe(a),c=ae(zl.current);var v=a.type;if(i!==null&&a.stateNode!=null)i.memoizedProps!==h&&qa(a);else{if(!h){if(a.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return mr(a),null}i=de(),Zd(a)?zE(a):(i=rT(v,h,c,i,!0),a.stateNode=i,qa(a))}return mr(a),null;case 5:if(fe(a),c=a.type,i!==null&&a.stateNode!=null)i.memoizedProps!==h&&qa(a);else{if(!h){if(a.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return mr(a),null}if(v=de(),Zd(a))zE(a);else{switch(i=ae(zl.current),en(c,v.ancestorInfo),v=v.context,i=up(i),v){case Ju:i=i.createElementNS(wu,c);break;case ig:i=i.createElementNS(Op,c);break;default:switch(c){case"svg":i=i.createElementNS(wu,c);break;case"math":i=i.createElementNS(Op,c);break;case"script":i=i.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof h.is=="string"?i.createElement("select",{is:h.is}):i.createElement("select"),h.multiple?i.multiple=!0:h.size&&(i.size=h.size);break;default:i=typeof h.is=="string"?i.createElement(c,{is:h.is}):i.createElement(c),c.indexOf("-")===-1&&(c!==c.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",c),Object.prototype.toString.call(i)!=="[object HTMLUnknownElement]"||Ya.call($$,c)||($$[c]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",c)))}}i[fo]=a,i[Bo]=h;e:for(v=a.child;v!==null;){if(v.tag===5||v.tag===6)i.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===a)break e;for(;v.sibling===null;){if(v.return===null||v.return===a)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}a.stateNode=i;e:switch(Zr(i,c,h),c){case"button":case"input":case"select":case"textarea":i=!!h.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&qa(a)}}return mr(a),a.flags&=-16777217,null;case 6:if(i&&a.stateNode!=null)i.memoizedProps!==h&&qa(a);else{if(typeof h!="string"&&a.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(i=ae(zl.current),c=de(),Zd(a)){i=a.stateNode,h=a.memoizedProps,v=!Ja,c=null;var C=Ro;if(C!==null)switch(C.tag){case 3:v&&(v=eT(i,h,c),v!==null&&(Vs(a,0).serverProps=v));break;case 27:case 5:c=C.memoizedProps,v&&(v=eT(i,h,c),v!==null&&(Vs(a,0).serverProps=v))}i[fo]=a,i=!!(i.nodeValue===h||c!==null&&c.suppressHydrationWarning===!0||UR(i.nodeValue,h)),i||Fs(a)}else c=c.ancestorInfo.current,c!=null&&bn(h,c.tag),i=up(i).createTextNode(h),i[fo]=a,a.stateNode=i}return mr(a),null;case 13:if(h=a.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(v=Zd(a),h!==null&&h.dehydrated!==null){if(i===null){if(!v)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(v=a.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");v[fo]=a,mr(a),(a.mode&eo)!==ir&&h!==null&&(v=a.child,v!==null&&(a.treeBaseDuration-=v.treeBaseDuration))}else BE(),Jd(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4,mr(a),(a.mode&eo)!==ir&&h!==null&&(v=a.child,v!==null&&(a.treeBaseDuration-=v.treeBaseDuration));v=!1}else Ui!==null&&(Yb(Ui),Ui=null),v=!0;if(!v)return a.flags&256?(La(a),a):(La(a),null)}return La(a),(a.flags&128)!==0?(a.lanes=c,(a.mode&eo)!==ir&&Im(a),a):(h=h!==null,i=i!==null&&i.memoizedState!==null,h&&(c=a.child,v=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(v=c.alternate.memoizedState.cachePool.pool),C=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(C=c.memoizedState.cachePool.pool),C!==v&&(c.flags|=2048)),h!==i&&h&&(a.child.flags|=8192),ip(a,a.updateQueue),mr(a),(a.mode&eo)!==ir&&h&&(i=a.child,i!==null&&(a.treeBaseDuration-=i.treeBaseDuration)),null);case 4:return se(a),i===null&&i0(a.stateNode.containerInfo),mr(a),null;case 10:return Fa(a.type,a),mr(a),null;case 19:if(Y(zr,a),v=a.memoizedState,v===null)return mr(a),null;if(h=(a.flags&128)!==0,C=v.rendering,C===null)if(h)pf(v,!1);else{if(br!==ol||i!==null&&(i.flags&128)!==0)for(i=a.child;i!==null;){if(C=jm(i),C!==null){for(a.flags|=128,pf(v,!1),i=C.updateQueue,a.updateQueue=i,ip(a,i),a.subtreeFlags=0,i=c,h=a.child;h!==null;)fR(h,i),h=h.sibling;return ne(zr,zr.current&Bu|Uf,a),a.child}i=i.sibling}v.tail!==null&&ma()>qp&&(a.flags|=128,h=!0,pf(v,!1),a.lanes=4194304)}else{if(!h)if(i=jm(C),i!==null){if(a.flags|=128,h=!0,i=i.updateQueue,a.updateQueue=i,ip(a,i),pf(v,!0),v.tail===null&&v.tailMode==="hidden"&&!C.alternate&&!An)return mr(a),null}else 2*ma()-v.renderingStartTime>qp&&c!==536870912&&(a.flags|=128,h=!0,pf(v,!1),a.lanes=4194304);v.isBackwards?(C.sibling=a.child,a.child=C):(i=v.last,i!==null?i.sibling=C:a.child=C,v.last=C)}return v.tail!==null?(i=v.tail,v.rendering=i,v.tail=i.sibling,v.renderingStartTime=ma(),i.sibling=null,c=zr.current,c=h?c&Bu|Uf:c&Bu,ne(zr,c,a),i):(mr(a),null);case 22:case 23:return La(a),Wy(a),h=a.memoizedState!==null,i!==null?i.memoizedState!==null!==h&&(a.flags|=8192):h&&(a.flags|=8192),h?(c&536870912)!==0&&(a.flags&128)===0&&(mr(a),a.subtreeFlags&6&&(a.flags|=8192)):mr(a),h=a.updateQueue,h!==null&&ip(a,h.retryQueue),h=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(h=i.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==h&&(a.flags|=2048),i!==null&&Y(sc,a),null;case 24:return h=null,i!==null&&(h=i.memoizedState.cache),a.memoizedState.cache!==h&&(a.flags|=2048),Fa(Br,a),mr(a),null;case 25:return null}throw Error("Unknown unit of work tag ("+a.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function OL(i,a){switch(Vy(a),a.tag){case 1:return i=a.flags,i&65536?(a.flags=i&-65537|128,(a.mode&eo)!==ir&&Im(a),a):null;case 3:return Fa(Br,a),se(a),i=a.flags,(i&65536)!==0&&(i&128)===0?(a.flags=i&-65537|128,a):null;case 26:case 27:case 5:return fe(a),null;case 13:if(La(a),i=a.memoizedState,i!==null&&i.dehydrated!==null){if(a.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Jd()}return i=a.flags,i&65536?(a.flags=i&-65537|128,(a.mode&eo)!==ir&&Im(a),a):null;case 19:return Y(zr,a),null;case 4:return se(a),null;case 10:return Fa(a.type,a),null;case 22:case 23:return La(a),Wy(a),i!==null&&Y(sc,a),i=a.flags,i&65536?(a.flags=i&-65537|128,(a.mode&eo)!==ir&&Im(a),a):null;case 24:return Fa(Br,a),null;case 25:return null;default:return null}}function pR(i,a){switch(Vy(a),a.tag){case 3:Fa(Br,a),se(a);break;case 26:case 27:case 5:fe(a);break;case 4:se(a);break;case 13:La(a);break;case 19:Y(zr,a);break;case 10:Fa(a.type,a);break;case 22:case 23:La(a),Wy(a),i!==null&&Y(sc,a);break;case 24:Fa(Br,a)}}function RL(){B4.forEach(function(i){return i()})}function gR(){var i=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return i||Ve.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),i}function Ko(i){if((cr&$o)!==Qo&&Rn!==0)return Rn&-Rn;var a=Ve.T;return a!==null?(a._updatedFibers||(a._updatedFibers=new Set),a._updatedFibers.add(i),i=lc,i!==0?i:r0()):kn()}function vR(){Jo===0&&(Jo=(Rn&536870912)===0||An?dt():536870912);var i=xi.current;return i!==null&&(i.flags|=32),Jo}function gr(i,a,c){if(Qu&&console.error("useInsertionEffect must not schedule updates."),RS&&(Kp=!0),(i===er&&tr===hc||i.cancelPendingCommit!==null)&&(mu(i,0),Ga(i,Rn,Jo,!1)),st(i,c),(cr&$o)!==0&&i===er){if(gi)switch(a.tag){case 0:case 11:case 15:i=wn&&T(wn)||"Unknown",w$.has(i)||(w$.add(i),a=T(a)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",a,i,i));break;case 1:x$||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),x$=!0)}}else Li&&Ut(i,a,c),_L(a),i===er&&((cr&$o)===Qo&&(Gl|=c),br===fc&&Ga(i,Rn,Jo,!1)),da(i)}function yR(i,a,c){if((cr&($o|rl))!==Qo)throw Error("Should not already be working.");var h=!c&&(a&60)===0&&(a&i.expiredLanes)===0||it(i,a),v=h?ML(i,a):Zb(i,a,!0),C=h;do{if(v===ol){Xu&&!h&&Ga(i,a,0,!1);break}else if(v===Up)Ga(i,a,0,!il);else{if(c=i.current.alternate,C&&!TL(c)){v=Zb(i,a,!1),C=!1;continue}if(v===Ku){if(C=a,i.errorRecoveryDisabledLanes&C)var R=0;else R=i.pendingLanes&-536870913,R=R!==0?R:R&536870912?536870912:0;if(R!==0){a=R;e:{v=i;var k=R;R=eh;var U=v.current.memoizedState.isDehydrated;if(U&&(mu(v,k).flags|=256),k=Zb(v,k,!1),k!==Ku){if(SS&&!U){v.errorRecoveryDisabledLanes|=C,Gl|=C,v=fc;break e}v=qi,qi=R,v!==null&&Yb(v)}v=k}if(C=!1,v!==Ku)continue}}if(v===Xf){mu(i,0),Ga(i,a,0,!0);break}e:{switch(h=i,v){case ol:case Xf:throw Error("Root did not complete. This is a bug in React.");case fc:if((a&4194176)===a){Ga(h,a,Jo,!il);break e}break;case Ku:qi=null;break;case vS:case v$:break;default:throw Error("Unknown root exit status.")}if(h.finishedWork=c,h.finishedLanes=a,Ve.actQueue!==null)Jb(h,qi,th,Wp,Jo,Gl,mc,C$,Q0,0);else{if((a&62914560)===a&&(v=xS+b$-ma(),10<v)){if(Ga(h,a,Jo,!il),_e(h,0)!==0)break e;h.timeoutHandle=N$(bR.bind(null,h,c,qi,th,Wp,a,Jo,Gl,mc,il,F4,Q0,0),v);break e}bR(h,c,qi,th,Wp,a,Jo,Gl,mc,il,C$,Q0,0)}}}break}while(!0);da(i)}function Yb(i){qi===null?qi=i:qi.push.apply(qi,i)}function bR(i,a,c,h,v,C,R,k,U,X,Ae,Ye,Ie){var Je=a.subtreeFlags;if((Je&8192||(Je&16785408)===16785408)&&(lh={stylesheets:null,count:0,unsuspend:a3},lR(a),a=s3(),a!==null)){i.cancelPendingCommit=a(Jb.bind(null,i,c,h,v,R,k,U,V4,Ye,Ie)),Ga(i,C,R,!X);return}Jb(i,c,h,v,R,k,U,Ae,Ye,Ie)}function TL(i){for(var a=i;;){var c=a.tag;if((c===0||c===11||c===15)&&a.flags&16384&&(c=a.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var h=0;h<c.length;h++){var v=c[h],C=v.getSnapshot;v=v.value;try{if(!Oo(C(),v))return!1}catch{return!1}}if(c=a.child,a.subtreeFlags&16384&&c!==null)c.return=a,a=c;else{if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Ga(i,a,c,h){a&=~CS,a&=~Gl,i.suspendedLanes|=a,i.pingedLanes&=~a,h&&(i.warmLanes|=a),h=i.expirationTimes;for(var v=a;0<v;){var C=31-wo(v),R=1<<C;h[C]=-1,v&=~R}c!==0&&Ct(i,c,a)}function hu(){return(cr&($o|rl))===Qo?(vf(0),!1):!0}function Xb(){if(wn!==null){if(tr===Lo)var i=wn.return;else i=wn,Zm(),Jy(i),zu=null,Ff=0,i=wn;for(;i!==null;)pR(i.alternate,i),i=i.return;wn=null}}function mu(i,a){i.finishedWork=null,i.finishedLanes=0;var c=i.timeoutHandle;c!==_S&&(i.timeoutHandle=_S,X4(c)),c=i.cancelPendingCommit,c!==null&&(i.cancelPendingCommit=null,c()),Xb(),er=i,wn=c=Dl(i.current,null),Rn=a,tr=Lo,Zo=null,il=!1,Xu=it(i,a),SS=!1,br=ol,mc=Jo=CS=Gl=ql=0,qi=eh=null,Wp=!1,(a&8)!==0&&(a|=a&32);var h=i.entangledLanes;if(h!==0)for(i=i.entanglements,h&=a;0<h;){var v=31-wo(h),C=1<<v;a|=i[v],h&=~C}return xa=a,$m(),Fi.discardPendingWarnings(),c}function SR(i,a){ln=null,Ve.H=Ca,Ve.getCurrentStack=null,gi=!1,co=null,a===_p?(a=VE(),tr=Zf):a===CM?(a=VE(),tr=y$):tr=a===e$?bS:a!==null&&typeof a=="object"&&typeof a.then=="function"?Yu:Qf,Zo=a;var c=wn;if(c===null)br=Xf,Qm(i,qo(a,i.current));else switch(c.mode&eo&&jy(c),I(),tr){case Qf:_t!==null&&typeof _t.markComponentErrored=="function"&&_t.markComponentErrored(c,a,Rn);break;case hc:case Zf:case Yu:case Jf:_t!==null&&typeof _t.markComponentSuspended=="function"&&_t.markComponentSuspended(c,a,Rn)}}function CR(){var i=Ve.H;return Ve.H=Ca,i===null?Ca:i}function xR(){var i=Ve.A;return Ve.A=_4,i}function Qb(){br=fc,il||(Rn&4194176)!==Rn&&xi.current!==null||(Xu=!0),(ql&134217727)===0&&(Gl&134217727)===0||er===null||Ga(er,Rn,Jo,!1)}function Zb(i,a,c){var h=cr;cr|=$o;var v=CR(),C=xR();if(er!==i||Rn!==a){if(Li){var R=i.memoizedUpdaters;0<R.size&&(gf(i,Rn),R.clear()),sn(i,a)}th=null,mu(i,a)}me(a),a=!1,R=br;e:do try{if(tr!==Lo&&wn!==null){var k=wn,U=Zo;switch(tr){case bS:Xb(),R=Up;break e;case Zf:case hc:case Yu:xi.current===null&&(a=!0);var X=tr;if(tr=Lo,Zo=null,pu(i,k,U,X),c&&Xu){R=ol;break e}break;default:X=tr,tr=Lo,Zo=null,pu(i,k,U,X)}}wR(),R=br;break}catch(Ae){SR(i,Ae)}while(!0);return a&&i.shellSuspendCounter++,Zm(),cr=h,Ve.H=v,Ve.A=C,oe(),wn===null&&(er=null,Rn=0,$m()),R}function wR(){for(;wn!==null;)ER(wn)}function ML(i,a){var c=cr;cr|=$o;var h=CR(),v=xR();if(er!==i||Rn!==a){if(Li){var C=i.memoizedUpdaters;0<C.size&&(gf(i,Rn),C.clear()),sn(i,a)}th=null,qp=ma()+S$,mu(i,a)}else Xu=it(i,a);me(a);e:do try{if(tr!==Lo&&wn!==null)t:switch(a=wn,C=Zo,tr){case Qf:tr=Lo,Zo=null,pu(i,a,C,Qf);break;case hc:if(jE(C)){tr=Lo,Zo=null,OR(a);break}a=function(){tr===hc&&er===i&&(tr=Jf),da(i)},C.then(a,a);break e;case Zf:tr=Jf;break e;case y$:tr=yS;break e;case Jf:jE(C)?(tr=Lo,Zo=null,OR(a)):(tr=Lo,Zo=null,pu(i,a,C,Jf));break;case yS:var R=null;switch(wn.tag){case 26:R=wn.memoizedState;case 5:case 27:var k=wn;if(!R||uT(R)){tr=Lo,Zo=null;var U=k.sibling;if(U!==null)wn=U;else{var X=k.return;X!==null?(wn=X,ap(X)):wn=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}tr=Lo,Zo=null,pu(i,a,C,yS);break;case Yu:tr=Lo,Zo=null,pu(i,a,C,Yu);break;case bS:Xb(),br=Up;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Ve.actQueue!==null?wR():$L();break}catch(Ae){SR(i,Ae)}while(!0);return Zm(),Ve.H=h,Ve.A=v,cr=c,wn!==null?(_t!==null&&typeof _t.markRenderYielded=="function"&&_t.markRenderYielded(),ol):(oe(),er=null,Rn=0,$m(),br)}function $L(){for(;wn!==null&&!O3();)ER(wn)}function ER(i){var a=i.alternate;(i.mode&eo)!==ir?(Hy(i),a=H(i,Ib,a,i,xa),jy(i)):a=H(i,Ib,a,i,xa),i.memoizedProps=i.pendingProps,a===null?ap(i):wn=a}function OR(i){var a=H(i,NL,i);i.memoizedProps=i.pendingProps,a===null?ap(i):wn=a}function NL(i){var a=i.alternate,c=(i.mode&eo)!==ir;switch(c&&Hy(i),i.tag){case 15:case 0:a=IO(a,i,i.pendingProps,i.type,void 0,Rn);break;case 11:a=IO(a,i,i.pendingProps,i.type.render,i.ref,Rn);break;case 5:Jy(i);default:pR(a,i),i=wn=fR(i,xa),a=Ib(a,i,xa)}return c&&jy(i),a}function pu(i,a,c,h){Zm(),Jy(a),zu=null,Ff=0;var v=a.return;try{if(dL(i,v,a,c,Rn)){br=Xf,Qm(i,qo(c,i.current)),wn=null;return}}catch(C){if(v!==null)throw wn=v,C;br=Xf,Qm(i,qo(c,i.current)),wn=null;return}a.flags&32768?(An||h===Qf?i=!0:Xu||(Rn&536870912)!==0?i=!1:(il=i=!0,(h===hc||h===Zf||h===Yu)&&(h=xi.current,h!==null&&h.tag===13&&(h.flags|=16384))),RR(a,i)):ap(a)}function ap(i){var a=i;do{if((a.flags&32768)!==0){RR(a,il);return}var c=a.alternate;if(i=a.return,Hy(a),c=H(a,EL,c,a,xa),(a.mode&eo)!==ir&&kE(a),c!==null){wn=c;return}if(a=a.sibling,a!==null){wn=a;return}wn=a=i}while(a!==null);br===ol&&(br=v$)}function RR(i,a){do{var c=OL(i.alternate,i);if(c!==null){c.flags&=32767,wn=c;return}if((i.mode&eo)!==ir){kE(i),c=i.actualDuration;for(var h=i.child;h!==null;)c+=h.actualDuration,h=h.sibling;i.actualDuration=c}if(c=i.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!a&&(i=i.sibling,i!==null)){wn=i;return}wn=i=c}while(i!==null);br=Up,wn=null}function Jb(i,a,c,h,v,C,R,k,U,X){var Ae=Ve.T,Ye=sr.p;try{sr.p=ga,Ve.T=null,AL(i,a,c,h,Ye,v,C,R,k,U,X)}finally{Ve.T=Ae,sr.p=Ye}}function AL(i,a,c,h,v,C,R,k){do Zs();while(pc!==null);if(Fi.flushLegacyContextWarning(),Fi.flushPendingUnsafeLifecycleWarnings(),(cr&($o|rl))!==Qo)throw Error("Should not already be working.");var U=i.finishedWork;if(h=i.finishedLanes,_t!==null&&typeof _t.markCommitStarted=="function"&&_t.markCommitStarted(h),U===null)return We(),null;if(h===0&&console.error("root.finishedLanes should not be empty during a commit. This is a bug in React."),i.finishedWork=null,i.finishedLanes=0,U===i.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");i.callbackNode=null,i.callbackPriority=0,i.cancelPendingCommit=null;var X=U.lanes|U.childLanes;if(X|=X0,at(i,h,X,C,R,k),i===er&&(wn=er=null,Rn=0),(U.subtreeFlags&10256)===0&&(U.flags&10256)===0||Gp||(Gp=!0,wS=X,ES=c,zL(Cu,function(){return Zs(),null})),Ap=Iu(),c=(U.flags&15990)!==0,(U.subtreeFlags&15990)!==0||c?(c=Ve.T,Ve.T=null,C=sr.p,sr.p=ga,R=cr,cr|=rl,bL(i,U),CL(i,U,h),rL(PS,i.containerInfo),cg=!!kS,PS=kS=null,i.current=U,_t!==null&&typeof _t.markLayoutEffectsStarted=="function"&&_t.markLayoutEffectsStarted(h),xL(U,i,h),_t!==null&&typeof _t.markLayoutEffectsStopped=="function"&&_t.markLayoutEffectsStopped(),R3(),cr=R,sr.p=C,Ve.T=c):i.current=U,(c=Gp)?(Gp=!1,pc=i,nh=h):(TR(i,X),gc=0,oh=null),X=i.pendingLanes,X===0&&(Kl=null),c||AR(i),$e(U.stateNode,v),Li&&i.memoizedUpdaters.clear(),RL(),da(i),a!==null)for(v=i.onRecoverableError,U=0;U<a.length;U++)X=a[U],c=DL(X.stack),H(X.source,v,X.value,c);return(nh&3)!==0&&Zs(),X=i.pendingLanes,(h&4194218)!==0&&(X&42)!==0?(Ip=!0,i===OS?rh++:(rh=0,OS=i)):rh=0,vf(0),We(),null}function DL(i){return i={componentStack:i},Object.defineProperty(i,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),i}function TR(i,a){(i.pooledCacheLanes&=a)===0&&(a=i.pooledCache,a!=null&&(i.pooledCache=null,nf(a)))}function Zs(){if(pc!==null){var i=pc,a=wS;wS=0;var c=un(nh),h=Xa>c?Xa:c;c=Ve.T;var v=sr.p;try{if(sr.p=h,Ve.T=null,pc===null)var C=!1;else{h=ES,ES=null;var R=pc,k=nh;if(pc=null,nh=0,(cr&($o|rl))!==Qo)throw Error("Cannot flush passive effects while already rendering.");RS=!0,Kp=!1,_t!==null&&typeof _t.markPassiveEffectsStarted=="function"&&_t.markPassiveEffectsStarted(k);var U=cr;if(cr|=rl,cR(R.current),iR(R,R.current,k,h),_t!==null&&typeof _t.markPassiveEffectsStopped=="function"&&_t.markPassiveEffectsStopped(),AR(R),cr=U,vf(0,!1),Kp?R===oh?gc++:(gc=0,oh=R):gc=0,Kp=RS=!1,uo&&typeof uo.onPostCommitFiberRoot=="function")try{uo.onPostCommitFiberRoot(xu,R)}catch(Ae){pa||(pa=!0,console.error("React instrumentation encountered an error: %s",Ae))}var X=R.current.stateNode;X.effectDuration=0,X.passiveEffectDuration=0,C=!0}return C}finally{sr.p=v,Ve.T=c,TR(i,a)}}return!1}function MR(i,a,c){a=qo(c,a),a=Cb(i.stateNode,a,2),i=Nl(i,a,2),i!==null&&(st(i,2),da(i))}function Kn(i,a,c){if(Qu=!1,i.tag===3)MR(i,i,c);else{for(;a!==null;){if(a.tag===3){MR(a,i,c);return}if(a.tag===1){var h=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(Kl===null||!Kl.has(h))){i=qo(c,i),c=xb(2),h=Nl(a,c,2),h!==null&&(wb(c,h,a,i),st(h,2),da(h));return}}a=a.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
205
-
206
- Error message:
207
-
208
- %s`,c)}}function e0(i,a,c){var h=i.pingCache;if(h===null){h=i.pingCache=new H4;var v=new Set;h.set(a,v)}else v=h.get(a),v===void 0&&(v=new Set,h.set(a,v));v.has(c)||(SS=!0,v.add(c),h=IL.bind(null,i,a,c),Li&&gf(i,c),a.then(h,h))}function IL(i,a,c){var h=i.pingCache;h!==null&&h.delete(a),i.pingedLanes|=i.suspendedLanes&c,i.warmLanes&=~c,gR()&&Ve.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
209
-
210
- When testing, code that resolves suspended data should be wrapped into act(...):
211
-
212
- act(() => {
213
- /* finish loading suspended data */
214
- });
215
- /* assert on the output */
216
-
217
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),er===i&&(Rn&c)===c&&(br===fc||br===vS&&(Rn&62914560)===Rn&&ma()-xS<b$?(cr&$o)===Qo&&mu(i,0):CS|=c,mc===Rn&&(mc=0)),da(i)}function $R(i,a){a===0&&(a=vt()),i=so(i,a),i!==null&&(st(i,a),da(i))}function kL(i){var a=i.memoizedState,c=0;a!==null&&(c=a.retryLane),$R(i,c)}function PL(i,a){var c=0;switch(i.tag){case 13:var h=i.stateNode,v=i.memoizedState;v!==null&&(c=v.retryLane);break;case 19:h=i.stateNode;break;case 22:h=i.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}h!==null&&h.delete(a),$R(i,c)}function t0(i,a,c){if((a.subtreeFlags&33562624)!==0)for(a=a.child;a!==null;){var h=i,v=a,C=v.type===yp;C=c||C,v.tag!==22?v.flags&33554432?C&&H(v,NR,h,v,(v.mode&bM)===ir):t0(h,v,C):v.memoizedState===null&&(C&&v.flags&8192?H(v,NR,h,v):v.subtreeFlags&33554432&&H(v,t0,h,v,C)),a=a.sibling}}function NR(i,a){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:!0;Pe(!0);try{rR(a),c&&uR(a),oR(i,a.alternate,a,!1),c&&aR(i,a,0,null,!1)}finally{Pe(!1)}}function AR(i){var a=!0;i.current.mode&(ho|Vi)||(a=!1),t0(i,i.current,a)}function DR(i){if((cr&$o)===Qo){var a=i.tag;if(a===3||a===1||a===0||a===11||a===14||a===15){if(a=T(i)||"ReactComponent",Yp!==null){if(Yp.has(a))return;Yp.add(a)}else Yp=new Set([a]);H(i,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")})}}}function gf(i,a){Li&&i.memoizedUpdaters.forEach(function(c){Ut(i,c,a)})}function zL(i,a){var c=Ve.actQueue;return c!==null?(c.push(a),U4):D0(i,a)}function _L(i){gR()&&Ve.actQueue===null&&H(i,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
218
-
219
- When testing, code that causes React state updates should be wrapped into act(...):
220
-
221
- act(() => {
222
- /* fire events that update state */
223
- });
224
- /* assert on the output */
225
-
226
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,T(i))})}function da(i){i!==Zu&&i.next===null&&(Zu===null?Xp=Zu=i:Zu=Zu.next=i),Qp=!0,Ve.actQueue!==null?MS||(MS=!0,_R(IR)):TS||(TS=!0,_R(IR))}function vf(i,a){if(!$S&&Qp){$S=!0;do for(var c=!1,h=Xp;h!==null;){if(i!==0){var v=h.pendingLanes;if(v===0)var C=0;else{var R=h.suspendedLanes,k=h.pingedLanes;C=(1<<31-wo(42|i)+1)-1,C&=v&~(R&~k),C=C&201326677?C&201326677|1:C?C|2:0}C!==0&&(c=!0,zR(h,C))}else C=Rn,C=_e(h,h===er?C:0),(C&3)===0||it(h,C)||(c=!0,zR(h,C));h=h.next}while(c);$S=!1}}function IR(){Qp=MS=TS=!1;var i=0;vc!==0&&(VL()&&(i=vc),vc=0);for(var a=ma(),c=null,h=Xp;h!==null;){var v=h.next,C=kR(h,a);C===0?(h.next=null,c===null?Xp=v:c.next=v,v===null&&(Zu=c)):(c=h,(i!==0||(C&3)!==0)&&(Qp=!0)),h=v}vf(i)}function kR(i,a){for(var c=i.suspendedLanes,h=i.pingedLanes,v=i.expirationTimes,C=i.pendingLanes&-62914561;0<C;){var R=31-wo(C),k=1<<R,U=v[R];U===-1?((k&c)===0||(k&h)!==0)&&(v[R]=Xe(k,a)):U<=a&&(i.expiredLanes|=k),C&=~k}if(a=er,c=Rn,c=_e(i,i===a?c:0),h=i.callbackNode,c===0||i===a&&tr===hc||i.cancelPendingCommit!==null)return h!==null&&n0(h),i.callbackNode=null,i.callbackPriority=0;if((c&3)===0||it(i,c)){if(a=c&-c,a!==i.callbackPriority||Ve.actQueue!==null&&h!==NS)n0(h);else return a;switch(un(c)){case ga:case va:c=k0;break;case Xa:c=Cu;break;case wp:c=P0;break;default:c=Cu}return h=PR.bind(null,i),Ve.actQueue!==null?(Ve.actQueue.push(h),c=NS):c=D0(c,h),i.callbackPriority=a,i.callbackNode=c,a}return h!==null&&n0(h),i.callbackPriority=2,i.callbackNode=null,2}function PR(i,a){Ip=Dp=!1;var c=i.callbackNode;if(Zs()&&i.callbackNode!==c)return null;var h=Rn;return h=_e(i,i===er?h:0),h===0?null:(yR(i,h,a),kR(i,ma()),i.callbackNode!=null&&i.callbackNode===c?PR.bind(null,i):null)}function zR(i,a){if(Zs())return null;Dp=Ip,Ip=!1,yR(i,a,!0)}function n0(i){i!==NS&&i!==null&&E3(i)}function _R(i){Ve.actQueue!==null&&Ve.actQueue.push(function(){return i(),null}),Q4(function(){(cr&($o|rl))!==Qo?D0(I0,i):i()})}function r0(){return vc===0&&(vc=dt()),vc}function BR(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:(he(i,"action"),Po(""+i))}function HR(i,a){var c=a.ownerDocument.createElement("input");return c.name=a.name,c.value=a.value,i.id&&c.setAttribute("form",i.id),a.parentNode.insertBefore(c,a),i=new FormData(i),c.parentNode.removeChild(c),i}function BL(i,a,c,h,v){if(a==="submit"&&c&&c.stateNode===v){var C=BR((v[Bo]||null).action),R=h.submitter;R&&(a=(a=R[Bo]||null)?BR(a.formAction):R.getAttribute("formAction"),a!==null&&(C=a,R=null));var k=new Mp("action","action",null,h,v);i.push({event:k,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(vc!==0){var U=R?HR(v,R):new FormData(v),X={pending:!0,data:U,method:v.method,action:C};Object.freeze(X),mb(c,X,null,U)}}else typeof C=="function"&&(k.preventDefault(),U=R?HR(v,R):new FormData(v),X={pending:!0,data:U,method:v.method,action:C},Object.freeze(X),mb(c,X,C,U))},currentTarget:v}]})}}function jR(i,a){a=(a&4)!==0;for(var c=0;c<i.length;c++){var h=i[c];e:{var v=void 0,C=h.event;if(h=h.listeners,a)for(var R=h.length-1;0<=R;R--){var k=h[R],U=k.instance,X=k.currentTarget;if(k=k.listener,U!==v&&C.isPropagationStopped())break e;v=C,v.currentTarget=X;try{k(v)}catch(Ae){Vp(Ae)}v.currentTarget=null,v=U}else for(R=0;R<h.length;R++){if(k=h[R],U=k.instance,X=k.currentTarget,k=k.listener,U!==v&&C.isPropagationStopped())break e;v=C,v.currentTarget=X;try{k(v)}catch(Ae){Vp(Ae)}v.currentTarget=null,v=U}}}}function Nn(i,a){AS.has(i)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',i);var c=a[z0];c===void 0&&(c=a[z0]=new Set);var h=i+"__bubble";c.has(h)||(LR(a,i,2,!1),c.add(h))}function o0(i,a,c){AS.has(i)&&!a&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',i);var h=0;a&&(h|=4),LR(c,i,h,a)}function i0(i){if(!i[Zp]){i[Zp]=!0,kT.forEach(function(c){c!=="selectionchange"&&(AS.has(c)||o0(c,!1,i),o0(c,!0,i))});var a=i.nodeType===9?i:i.ownerDocument;a===null||a[Zp]||(a[Zp]=!0,o0("selectionchange",!1,a))}}function LR(i,a,c,h){switch(vT(a)){case ga:var v=m3;break;case va:v=p3;break;default:v=y0}c=v.bind(null,a,c,i),v=void 0,!L0||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(v=!0),h?v!==void 0?i.addEventListener(a,c,{capture:!0,passive:v}):i.addEventListener(a,c,!0):v!==void 0?i.addEventListener(a,c,{passive:v}):i.addEventListener(a,c,!1)}function a0(i,a,c,h,v){var C=h;if((a&1)===0&&(a&2)===0&&h!==null)e:for(;;){if(h===null)return;var R=h.tag;if(R===3||R===4){var k=h.stateNode.containerInfo;if(k===v||k.nodeType===8&&k.parentNode===v)break;if(R===4)for(R=h.return;R!==null;){var U=R.tag;if((U===3||U===4)&&(U=R.stateNode.containerInfo,U===v||U.nodeType===8&&U.parentNode===v))return;R=R.return}for(;k!==null;){if(R=kt(k),R===null)return;if(U=R.tag,U===5||U===6||U===26||U===27){h=C=R;continue e}k=k.parentNode}}h=h.return}ks(function(){var X=C,Ae=aa(c),Ye=[];e:{var Ie=vM.get(i);if(Ie!==void 0){var Je=Mp,Ft=i;switch(i){case"keypress":if(Qt(c)===0)break e;case"keydown":case"keyup":Je=d4;break;case"focusin":Ft="focus",Je=W0;break;case"focusout":Ft="blur",Je=W0;break;case"beforeblur":case"afterblur":Je=W0;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Je=rM;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Je=J3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Je=m4;break;case hM:case mM:case pM:Je=n4;break;case gM:Je=g4;break;case"scroll":case"scrollend":Je=Q3;break;case"wheel":Je=y4;break;case"copy":case"cut":case"paste":Je=o4;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Je=iM;break;case"toggle":case"beforetoggle":Je=S4}var mn=(a&4)!==0,Tr=!mn&&(i==="scroll"||i==="scrollend"),Bn=mn?Ie!==null?Ie+"Capture":null:Ie;mn=[];for(var ue=X,le;ue!==null;){var ye=ue;if(le=ye.stateNode,ye=ye.tag,ye!==5&&ye!==26&&ye!==27||le===null||Bn===null||(ye=Ha(ue,Bn),ye!=null&&mn.push(yf(ue,ye,le))),Tr)break;ue=ue.return}0<mn.length&&(Ie=new Je(Ie,Ft,null,c,Ae),Ye.push({event:Ie,listeners:mn}))}}if((a&7)===0){e:{if(Ie=i==="mouseover"||i==="pointerover",Je=i==="mouseout"||i==="pointerout",Ie&&c!==Tf&&(Ft=c.relatedTarget||c.fromElement)&&(kt(Ft)||Ft[Js]))break e;if((Je||Ie)&&(Ie=Ae.window===Ae?Ae:(Ie=Ae.ownerDocument)?Ie.defaultView||Ie.parentWindow:window,Je?(Ft=c.relatedTarget||c.toElement,Je=X,Ft=Ft?kt(Ft):null,Ft!==null&&(Tr=J(Ft),mn=Ft.tag,Ft!==Tr||mn!==5&&mn!==27&&mn!==6)&&(Ft=null)):(Je=null,Ft=X),Je!==Ft)){if(mn=rM,ye="onMouseLeave",Bn="onMouseEnter",ue="mouse",(i==="pointerout"||i==="pointerover")&&(mn=iM,ye="onPointerLeave",Bn="onPointerEnter",ue="pointer"),Tr=Je==null?Ie:jt(Je),le=Ft==null?Ie:jt(Ft),Ie=new mn(ye,ue+"leave",Je,c,Ae),Ie.target=Tr,Ie.relatedTarget=le,ye=null,kt(Ae)===X&&(mn=new mn(Bn,ue+"enter",Ft,c,Ae),mn.target=le,mn.relatedTarget=Tr,ye=mn),Tr=ye,Je&&Ft)t:{for(mn=Je,Bn=Ft,ue=0,le=mn;le;le=gu(le))ue++;for(le=0,ye=Bn;ye;ye=gu(ye))le++;for(;0<ue-le;)mn=gu(mn),ue--;for(;0<le-ue;)Bn=gu(Bn),le--;for(;ue--;){if(mn===Bn||Bn!==null&&mn===Bn.alternate)break t;mn=gu(mn),Bn=gu(Bn)}mn=null}else mn=null;Je!==null&&VR(Ye,Ie,Je,mn,!1),Ft!==null&&Tr!==null&&VR(Ye,Tr,Ft,mn,!0)}}e:{if(Ie=X?jt(X):window,Je=Ie.nodeName&&Ie.nodeName.toLowerCase(),Je==="select"||Je==="input"&&Ie.type==="file")var Ke=wE;else if(CE(Ie))if(dM)Ke=tL;else{Ke=Jj;var Mt=Zj}else Je=Ie.nodeName,!Je||Je.toLowerCase()!=="input"||Ie.type!=="checkbox"&&Ie.type!=="radio"?X&&Wo(X.elementType)&&(Ke=wE):Ke=eL;if(Ke&&(Ke=Ke(i,X))){xE(Ye,Ke,c,Ae);break e}Mt&&Mt(i,Ie,X),i==="focusout"&&X&&Ie.type==="number"&&X.memoizedProps.value!=null&&cn(Ie,"number",Ie.value)}switch(Mt=X?jt(X):window,i){case"focusin":(CE(Mt)||Mt.contentEditable==="true")&&($u=Mt,G0=X,kf=null);break;case"focusout":kf=G0=$u=null;break;case"mousedown":K0=!0;break;case"contextmenu":case"mouseup":case"dragend":K0=!1,NE(Ye,c,Ae);break;case"selectionchange":if(E4)break;case"keydown":case"keyup":NE(Ye,c,Ae)}var fn;if(q0)e:{switch(i){case"compositionstart":var Lt="onCompositionStart";break e;case"compositionend":Lt="onCompositionEnd";break e;case"compositionupdate":Lt="onCompositionUpdate";break e}Lt=void 0}else Mu?Yd(i,c)&&(Lt="onCompositionEnd"):i==="keydown"&&c.keyCode===aM&&(Lt="onCompositionStart");Lt&&(lM&&c.locale!=="ko"&&(Mu||Lt!=="onCompositionStart"?Lt==="onCompositionEnd"&&Mu&&(fn=Bt()):(Bl=Ae,V0="value"in Bl?Bl.value:Bl.textContent,Mu=!0)),Mt=lp(X,Lt),0<Mt.length&&(Lt=new oM(Lt,i,null,c,Ae),Ye.push({event:Lt,listeners:Mt}),fn?Lt.data=fn:(fn=zs(c),fn!==null&&(Lt.data=fn)))),(fn=x4?Kj(i,c):Yj(i,c))&&(Lt=lp(X,"onBeforeInput"),0<Lt.length&&(Mt=new a4("onBeforeInput","beforeinput",null,c,Ae),Ye.push({event:Mt,listeners:Lt}),Mt.data=fn)),BL(Ye,i,X,c,Ae)}jR(Ye,a)})}function yf(i,a,c){return{instance:i,listener:a,currentTarget:c}}function lp(i,a){for(var c=a+"Capture",h=[];i!==null;){var v=i,C=v.stateNode;v=v.tag,v!==5&&v!==26&&v!==27||C===null||(v=Ha(i,c),v!=null&&h.unshift(yf(i,v,C)),v=Ha(i,a),v!=null&&h.push(yf(i,v,C))),i=i.return}return h}function gu(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function VR(i,a,c,h,v){for(var C=a._reactName,R=[];c!==null&&c!==h;){var k=c,U=k.alternate,X=k.stateNode;if(k=k.tag,U!==null&&U===h)break;k!==5&&k!==26&&k!==27||X===null||(U=X,v?(X=Ha(c,C),X!=null&&R.unshift(yf(c,X,U))):v||(X=Ha(c,C),X!=null&&R.push(yf(c,X,U)))),c=c.return}R.length!==0&&i.push({event:a,listeners:R})}function l0(i,a){Pr(i,a),i!=="input"&&i!=="textarea"&&i!=="select"||a==null||a.value!==null||tM||(tM=!0,i==="select"&&a.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",i):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",i));var c={registrationNameDependencies:ec,possibleRegistrationNames:_0};Wo(i)||typeof a.is=="string"||Bi(i,a,c),a.contentEditable&&!a.suppressContentEditableWarning&&a.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function Vr(i,a,c,h){a!==c&&(c=Il(c),Il(a)!==c&&(h[i]=a))}function HL(i,a,c){a.forEach(function(h){c[WR(h)]=h==="style"?c0(i):i.getAttribute(h)})}function fa(i,a){a===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",i,i,i):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",i,typeof a)}function FR(i,a){return i=i.namespaceURI===Op||i.namespaceURI===wu?i.ownerDocument.createElementNS(i.namespaceURI,i.tagName):i.ownerDocument.createElement(i.tagName),i.innerHTML=a,i.innerHTML}function Il(i){return ze(i)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",Me(i)),Oe(i)),(typeof i=="string"?i:""+i).replace(W4,`
227
- `).replace(q4,"")}function UR(i,a){return a=Il(a),Il(i)===a}function sp(){}function Yn(i,a,c,h,v,C){switch(c){case"children":typeof h=="string"?(bn(h,a),a==="body"||a==="textarea"&&h===""||vn(i,h)):(typeof h=="number"||typeof h=="bigint")&&(bn(""+h,a),a!=="body"&&vn(i,""+h));break;case"className":zt(i,"class",h);break;case"tabIndex":zt(i,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":zt(i,c,h);break;case"style":or(i,h,C);break;case"data":if(a!=="object"){zt(i,"data",h);break}case"src":case"href":if(h===""&&(a!=="a"||c!=="href")){console.error(c==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',c,c),i.removeAttribute(c);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(c);break}he(h,c),h=Po(""+h),i.setAttribute(c,h);break;case"action":case"formAction":if(h!=null&&(a==="form"?c==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof h=="function"&&(v.encType==null&&v.method==null||tg||(tg=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),v.target==null||eg||(eg=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):a==="input"||a==="button"?c==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):a!=="input"||v.type==="submit"||v.type==="image"||Jp?a!=="button"||v.type==null||v.type==="submit"||Jp?typeof h=="function"&&(v.name==null||R$||(R$=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),v.formEncType==null&&v.formMethod==null||tg||(tg=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),v.formTarget==null||eg||(eg=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(Jp=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Jp=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(c==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof h=="function"){i.setAttribute(c,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof C=="function"&&(c==="formAction"?(a!=="input"&&Yn(i,a,"name",v.name,v,null),Yn(i,a,"formEncType",v.formEncType,v,null),Yn(i,a,"formMethod",v.formMethod,v,null),Yn(i,a,"formTarget",v.formTarget,v,null)):(Yn(i,a,"encType",v.encType,v,null),Yn(i,a,"method",v.method,v,null),Yn(i,a,"target",v.target,v,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(c);break}he(h,c),h=Po(""+h),i.setAttribute(c,h);break;case"onClick":h!=null&&(typeof h!="function"&&fa(c,h),i.onclick=sp);break;case"onScroll":h!=null&&(typeof h!="function"&&fa(c,h),Nn("scroll",i));break;case"onScrollEnd":h!=null&&(typeof h!="function"&&fa(c,h),Nn("scrollend",i));break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(c=h.__html,c!=null){if(v.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");i.innerHTML=c}}break;case"multiple":i.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":i.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){i.removeAttribute("xlink:href");break}he(h,c),c=Po(""+h),i.setAttributeNS(yc,"xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?(he(h,c),i.setAttribute(c,""+h)):i.removeAttribute(c);break;case"inert":h!==""||ng[c]||(ng[c]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",c));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":h&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(c,""):i.removeAttribute(c);break;case"capture":case"download":h===!0?i.setAttribute(c,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?(he(h,c),i.setAttribute(c,h)):i.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?(he(h,c),i.setAttribute(c,h)):i.removeAttribute(c);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?i.removeAttribute(c):(he(h,c),i.setAttribute(c,h));break;case"popover":Nn("beforetoggle",i),Nn("toggle",i),Nt(i,"popover",h);break;case"xlinkActuate":Et(i,yc,"xlink:actuate",h);break;case"xlinkArcrole":Et(i,yc,"xlink:arcrole",h);break;case"xlinkRole":Et(i,yc,"xlink:role",h);break;case"xlinkShow":Et(i,yc,"xlink:show",h);break;case"xlinkTitle":Et(i,yc,"xlink:title",h);break;case"xlinkType":Et(i,yc,"xlink:type",h);break;case"xmlBase":Et(i,DS,"xml:base",h);break;case"xmlLang":Et(i,DS,"xml:lang",h);break;case"xmlSpace":Et(i,DS,"xml:space",h);break;case"is":C!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Nt(i,"is",h);break;case"innerText":case"textContent":break;case"popoverTarget":T$||h==null||typeof h!="object"||(T$=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",h));default:!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N"?(c=Ba(c),Nt(i,c,h)):ec.hasOwnProperty(c)&&h!=null&&typeof h!="function"&&fa(c,h)}}function s0(i,a,c,h,v,C){switch(c){case"style":or(i,h,C);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(c=h.__html,c!=null){if(v.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");i.innerHTML=c}}break;case"children":typeof h=="string"?vn(i,h):(typeof h=="number"||typeof h=="bigint")&&vn(i,""+h);break;case"onScroll":h!=null&&(typeof h!="function"&&fa(c,h),Nn("scroll",i));break;case"onScrollEnd":h!=null&&(typeof h!="function"&&fa(c,h),Nn("scrollend",i));break;case"onClick":h!=null&&(typeof h!="function"&&fa(c,h),i.onclick=sp);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(ec.hasOwnProperty(c))h!=null&&typeof h!="function"&&fa(c,h);else e:{if(c[0]==="o"&&c[1]==="n"&&(v=c.endsWith("Capture"),a=c.slice(2,v?c.length-7:void 0),C=i[Bo]||null,C=C!=null?C[c]:null,typeof C=="function"&&i.removeEventListener(a,C,v),typeof h=="function")){typeof C!="function"&&C!==null&&(c in i?i[c]=null:i.hasAttribute(c)&&i.removeAttribute(c)),i.addEventListener(a,h,v);break e}c in i?i[c]=h:h===!0?i.setAttribute(c,""):Nt(i,c,h)}}}function Zr(i,a,c){switch(l0(a,c),a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Nn("error",i),Nn("load",i);var h=!1,v=!1,C;for(C in c)if(c.hasOwnProperty(C)){var R=c[C];if(R!=null)switch(C){case"src":h=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Yn(i,a,C,R,c,null)}}v&&Yn(i,a,"srcSet",c.srcSet,c,null),h&&Yn(i,a,"src",c.src,c,null);return;case"input":tn("input",c),Nn("invalid",i);var k=C=R=v=null,U=null,X=null;for(h in c)if(c.hasOwnProperty(h)){var Ae=c[h];if(Ae!=null)switch(h){case"name":v=Ae;break;case"type":R=Ae;break;case"checked":U=Ae;break;case"defaultChecked":X=Ae;break;case"value":C=Ae;break;case"defaultValue":k=Ae;break;case"children":case"dangerouslySetInnerHTML":if(Ae!=null)throw Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Yn(i,a,h,Ae,c,null)}}Wt(i,c),Xt(i,C,k,U,X,R,v,!1),Qe(i);return;case"select":tn("select",c),Nn("invalid",i),h=R=C=null;for(v in c)if(c.hasOwnProperty(v)&&(k=c[v],k!=null))switch(v){case"value":C=k;break;case"defaultValue":R=k;break;case"multiple":h=k;default:Yn(i,a,v,k,c,null)}nt(i,c),a=C,c=R,i.multiple=!!h,a!=null?xt(i,!!h,a,!1):c!=null&&xt(i,!!h,c,!0);return;case"textarea":tn("textarea",c),Nn("invalid",i),C=v=h=null;for(R in c)if(c.hasOwnProperty(R)&&(k=c[R],k!=null))switch(R){case"value":h=k;break;case"defaultValue":v=k;break;case"children":C=k;break;case"dangerouslySetInnerHTML":if(k!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Yn(i,a,R,k,c,null)}qt(i,c),dn(i,h,v,C),Qe(i);return;case"option":ct(i,c);for(U in c)if(c.hasOwnProperty(U)&&(h=c[U],h!=null))switch(U){case"selected":i.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:Yn(i,a,U,h,c,null)}return;case"dialog":Nn("cancel",i),Nn("close",i);break;case"iframe":case"object":Nn("load",i);break;case"video":case"audio":for(h=0;h<ih.length;h++)Nn(ih[h],i);break;case"image":Nn("error",i),Nn("load",i);break;case"details":Nn("toggle",i);break;case"embed":case"source":case"link":Nn("error",i),Nn("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(X in c)if(c.hasOwnProperty(X)&&(h=c[X],h!=null))switch(X){case"children":case"dangerouslySetInnerHTML":throw Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Yn(i,a,X,h,c,null)}return;default:if(Wo(a)){for(Ae in c)c.hasOwnProperty(Ae)&&(h=c[Ae],h!==void 0&&s0(i,a,Ae,h,c,void 0));return}}for(k in c)c.hasOwnProperty(k)&&(h=c[k],h!=null&&Yn(i,a,k,h,c,null))}function jL(i,a,c,h){switch(l0(a,h),a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,C=null,R=null,k=null,U=null,X=null,Ae=null;for(Je in c){var Ye=c[Je];if(c.hasOwnProperty(Je)&&Ye!=null)switch(Je){case"checked":break;case"value":break;case"defaultValue":U=Ye;default:h.hasOwnProperty(Je)||Yn(i,a,Je,null,h,Ye)}}for(var Ie in h){var Je=h[Ie];if(Ye=c[Ie],h.hasOwnProperty(Ie)&&(Je!=null||Ye!=null))switch(Ie){case"type":C=Je;break;case"name":v=Je;break;case"checked":X=Je;break;case"defaultChecked":Ae=Je;break;case"value":R=Je;break;case"defaultValue":k=Je;break;case"children":case"dangerouslySetInnerHTML":if(Je!=null)throw Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Je!==Ye&&Yn(i,a,Ie,Je,h,Ye)}}a=c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null,h=h.type==="checkbox"||h.type==="radio"?h.checked!=null:h.value!=null,a||!h||O$||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),O$=!0),!a||h||E$||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),E$=!0),Yt(i,R,k,U,X,Ae,C,v);return;case"select":Je=R=k=Ie=null;for(C in c)if(U=c[C],c.hasOwnProperty(C)&&U!=null)switch(C){case"value":break;case"multiple":Je=U;default:h.hasOwnProperty(C)||Yn(i,a,C,null,h,U)}for(v in h)if(C=h[v],U=c[v],h.hasOwnProperty(v)&&(C!=null||U!=null))switch(v){case"value":Ie=C;break;case"defaultValue":k=C;break;case"multiple":R=C;default:C!==U&&Yn(i,a,v,C,h,U)}h=k,a=R,c=Je,Ie!=null?xt(i,!!a,Ie,!1):!!c!=!!a&&(h!=null?xt(i,!!a,h,!0):xt(i,!!a,a?[]:"",!1));return;case"textarea":Je=Ie=null;for(k in c)if(v=c[k],c.hasOwnProperty(k)&&v!=null&&!h.hasOwnProperty(k))switch(k){case"value":break;case"children":break;default:Yn(i,a,k,null,h,v)}for(R in h)if(v=h[R],C=c[R],h.hasOwnProperty(R)&&(v!=null||C!=null))switch(R){case"value":Ie=v;break;case"defaultValue":Je=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:v!==C&&Yn(i,a,R,v,h,C)}on(i,Ie,Je);return;case"option":for(var Ft in c)if(Ie=c[Ft],c.hasOwnProperty(Ft)&&Ie!=null&&!h.hasOwnProperty(Ft))switch(Ft){case"selected":i.selected=!1;break;default:Yn(i,a,Ft,null,h,Ie)}for(U in h)if(Ie=h[U],Je=c[U],h.hasOwnProperty(U)&&Ie!==Je&&(Ie!=null||Je!=null))switch(U){case"selected":i.selected=Ie&&typeof Ie!="function"&&typeof Ie!="symbol";break;default:Yn(i,a,U,Ie,h,Je)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var mn in c)Ie=c[mn],c.hasOwnProperty(mn)&&Ie!=null&&!h.hasOwnProperty(mn)&&Yn(i,a,mn,null,h,Ie);for(X in h)if(Ie=h[X],Je=c[X],h.hasOwnProperty(X)&&Ie!==Je&&(Ie!=null||Je!=null))switch(X){case"children":case"dangerouslySetInnerHTML":if(Ie!=null)throw Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Yn(i,a,X,Ie,h,Je)}return;default:if(Wo(a)){for(var Tr in c)Ie=c[Tr],c.hasOwnProperty(Tr)&&Ie!==void 0&&!h.hasOwnProperty(Tr)&&s0(i,a,Tr,void 0,h,Ie);for(Ae in h)Ie=h[Ae],Je=c[Ae],!h.hasOwnProperty(Ae)||Ie===Je||Ie===void 0&&Je===void 0||s0(i,a,Ae,Ie,h,Je);return}}for(var Bn in c)Ie=c[Bn],c.hasOwnProperty(Bn)&&Ie!=null&&!h.hasOwnProperty(Bn)&&Yn(i,a,Bn,null,h,Ie);for(Ye in h)Ie=h[Ye],Je=c[Ye],!h.hasOwnProperty(Ye)||Ie===Je||Ie==null&&Je==null||Yn(i,a,Ye,Ie,h,Je)}function WR(i){switch(i){case"class":return"className";case"for":return"htmlFor";default:return i}}function c0(i){var a={};i=i.style;for(var c=0;c<i.length;c++){var h=i[c];a[h]=i.getPropertyValue(h)}return a}function qR(i,a,c){if(a!=null&&typeof a!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var h,v=h="",C;for(C in a)if(a.hasOwnProperty(C)){var R=a[C];R!=null&&typeof R!="boolean"&&R!==""&&(C.indexOf("--")===0?(De(R,C),h+=v+C+":"+(""+R).trim()):typeof R!="number"||R===0||JT.has(C)?(De(R,C),h+=v+C.replace(KT,"-$1").toLowerCase().replace(YT,"-ms-")+":"+(""+R).trim()):h+=v+C.replace(KT,"-$1").toLowerCase().replace(YT,"-ms-")+":"+R+"px",v=";")}h=h||null,a=i.getAttribute("style"),a!==h&&(h=Il(h),Il(a)!==h&&(c.style=c0(i)))}}function mi(i,a,c,h,v,C){if(v.delete(c),i=i.getAttribute(c),i===null)switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":return}else if(h!=null)switch(typeof h){case"function":case"symbol":case"boolean":break;default:if(he(h,a),i===""+h)return}Vr(a,i,h,C)}function GR(i,a,c,h,v,C){if(v.delete(c),i=i.getAttribute(c),i===null){switch(typeof h){case"function":case"symbol":return}if(!h)return}else switch(typeof h){case"function":case"symbol":break;default:if(h)return}Vr(a,i,h,C)}function u0(i,a,c,h,v,C){if(v.delete(c),i=i.getAttribute(c),i===null)switch(typeof h){case"undefined":case"function":case"symbol":return}else if(h!=null)switch(typeof h){case"function":case"symbol":break;default:if(he(h,c),i===""+h)return}Vr(a,i,h,C)}function KR(i,a,c,h,v,C){if(v.delete(c),i=i.getAttribute(c),i===null)switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(h))return}else if(h!=null)switch(typeof h){case"function":case"symbol":case"boolean":break;default:if(!isNaN(h)&&(he(h,a),i===""+h))return}Vr(a,i,h,C)}function cp(i,a,c,h,v,C){if(v.delete(c),i=i.getAttribute(c),i===null)switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":return}else if(h!=null)switch(typeof h){case"function":case"symbol":case"boolean":break;default:if(he(h,a),c=Po(""+h),i===c)return}Vr(a,i,h,C)}function YR(i,a,c,h){for(var v={},C=new Set,R=i.attributes,k=0;k<R.length;k++)switch(R[k].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:C.add(R[k].name)}if(Wo(a)){for(var U in c)if(c.hasOwnProperty(U)){var X=c[U];if(X!=null){if(ec.hasOwnProperty(U))typeof X!="function"&&fa(U,X);else if(c.suppressHydrationWarning!==!0)switch(U){case"children":typeof X!="string"&&typeof X!="number"||Vr("children",i.textContent,X,v);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":R=i.innerHTML,X=X?X.__html:void 0,X!=null&&(X=FR(i,X),Vr(U,R,X,v));continue;case"style":C.delete(U),qR(i,X,v);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":C.delete(U.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",U);continue;case"className":C.delete("class"),R=gt(i,"class",X),Vr("className",R,X,v);continue;default:h.context===al&&a!=="svg"&&a!=="math"?C.delete(U.toLowerCase()):C.delete(U),R=gt(i,U,X),Vr(U,R,X,v)}}}}else for(X in c)if(c.hasOwnProperty(X)&&(U=c[X],U!=null)){if(ec.hasOwnProperty(X))typeof U!="function"&&fa(X,U);else if(c.suppressHydrationWarning!==!0)switch(X){case"children":typeof U!="string"&&typeof U!="number"||Vr("children",i.textContent,U,v);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":R=i.innerHTML,U=U?U.__html:void 0,U!=null&&(U=FR(i,U),R!==U&&(v[X]={__html:R}));continue;case"className":mi(i,X,"class",U,C,v);continue;case"tabIndex":mi(i,X,"tabindex",U,C,v);continue;case"style":C.delete(X),qR(i,U,v);continue;case"multiple":C.delete(X),Vr(X,i.multiple,U,v);continue;case"muted":C.delete(X),Vr(X,i.muted,U,v);continue;case"autoFocus":C.delete("autofocus"),Vr(X,i.autofocus,U,v);continue;case"data":if(a!=="object"){C.delete(X),R=i.getAttribute("data"),Vr(X,R,U,v);continue}case"src":case"href":if(!(U!==""||a==="a"&&X==="href"||a==="object"&&X==="data")){console.error(X==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',X,X),cp(i,X,X,null,C,v);continue}cp(i,X,X,U,C,v);continue;case"action":case"formAction":if(R=i.getAttribute(X),typeof U=="function"){C.delete(X.toLowerCase()),X==="formAction"?(C.delete("name"),C.delete("formenctype"),C.delete("formmethod"),C.delete("formtarget")):(C.delete("enctype"),C.delete("method"),C.delete("target"));continue}else if(R===G4){C.delete(X.toLowerCase()),Vr(X,"function",U,v);continue}cp(i,X,X.toLowerCase(),U,C,v);continue;case"xlinkHref":cp(i,X,"xlink:href",U,C,v);continue;case"contentEditable":u0(i,X,"contenteditable",U,C,v);continue;case"spellCheck":u0(i,X,"spellcheck",U,C,v);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u0(i,X,X,U,C,v);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":GR(i,X,X.toLowerCase(),U,C,v);continue;case"capture":case"download":e:{k=i;var Ae=R=X,Ye=v;if(C.delete(Ae),k=k.getAttribute(Ae),k===null)switch(typeof U){case"undefined":case"function":case"symbol":break e;default:if(U===!1)break e}else if(U!=null)switch(typeof U){case"function":case"symbol":break;case"boolean":if(U===!0&&k==="")break e;break;default:if(he(U,R),k===""+U)break e}Vr(R,k,U,Ye)}continue;case"cols":case"rows":case"size":case"span":e:{if(k=i,Ae=R=X,Ye=v,C.delete(Ae),k=k.getAttribute(Ae),k===null)switch(typeof U){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(U)||1>U)break e}else if(U!=null)switch(typeof U){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(U)||1>U)&&(he(U,R),k===""+U))break e}Vr(R,k,U,Ye)}continue;case"rowSpan":KR(i,X,"rowspan",U,C,v);continue;case"start":KR(i,X,X,U,C,v);continue;case"xHeight":mi(i,X,"x-height",U,C,v);continue;case"xlinkActuate":mi(i,X,"xlink:actuate",U,C,v);continue;case"xlinkArcrole":mi(i,X,"xlink:arcrole",U,C,v);continue;case"xlinkRole":mi(i,X,"xlink:role",U,C,v);continue;case"xlinkShow":mi(i,X,"xlink:show",U,C,v);continue;case"xlinkTitle":mi(i,X,"xlink:title",U,C,v);continue;case"xlinkType":mi(i,X,"xlink:type",U,C,v);continue;case"xmlBase":mi(i,X,"xml:base",U,C,v);continue;case"xmlLang":mi(i,X,"xml:lang",U,C,v);continue;case"xmlSpace":mi(i,X,"xml:space",U,C,v);continue;case"inert":U!==""||ng[X]||(ng[X]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",X)),GR(i,X,X,U,C,v);continue;default:if(!(2<X.length)||X[0]!=="o"&&X[0]!=="O"||X[1]!=="n"&&X[1]!=="N"){k=Ba(X),R=!1,h.context===al&&a!=="svg"&&a!=="math"?C.delete(k.toLowerCase()):(Ae=X.toLowerCase(),Ae=Rp.hasOwnProperty(Ae)&&Rp[Ae]||null,Ae!==null&&Ae!==X&&(R=!0,C.delete(Ae)),C.delete(k));e:if(Ae=i,Ye=k,k=U,Tt(Ye))if(Ae.hasAttribute(Ye))Ae=Ae.getAttribute(Ye),he(k,Ye),k=Ae===""+k?k:Ae;else{switch(typeof k){case"function":case"symbol":break e;case"boolean":if(Ae=Ye.toLowerCase().slice(0,5),Ae!=="data-"&&Ae!=="aria-")break e}k=k===void 0?void 0:null}else k=void 0;R||Vr(X,k,U,v)}}}return 0<C.size&&c.suppressHydrationWarning!==!0&&HL(i,C,v),Object.keys(v).length===0?null:v}function LL(i,a){switch(i.length){case 0:return"";case 1:return i[0];case 2:return i[0]+" "+a+" "+i[1];default:return i.slice(0,-1).join(", ")+", "+a+" "+i[i.length-1]}}function up(i){return i.nodeType===9?i:i.ownerDocument}function XR(i){switch(i){case wu:return Ju;case Op:return ig;default:return al}}function QR(i,a){if(i===al)switch(a){case"svg":return Ju;case"math":return ig;default:return al}return i===Ju&&a==="foreignObject"?al:i}function d0(i,a){return i==="textarea"||i==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}function VL(){var i=window.event;return i&&i.type==="popstate"?i===zS?!1:(zS=i,!0):(zS=null,!1)}function FL(i){setTimeout(function(){throw i})}function UL(i,a,c){switch(a){case"button":case"input":case"select":case"textarea":c.autoFocus&&i.focus();break;case"img":c.src?i.src=c.src:c.srcSet&&(i.srcset=c.srcSet)}}function WL(i,a,c,h){jL(i,a,c,h),i[Bo]=h}function ZR(i){vn(i,"")}function qL(i,a,c){i.nodeValue=c}function GL(i,a){i.removeChild(a)}function KL(i,a){i.nodeType===8?i.parentNode.removeChild(a):i.removeChild(a)}function f0(i,a){var c=a,h=0;do{var v=c.nextSibling;if(i.removeChild(c),v&&v.nodeType===8)if(c=v.data,c===og){if(h===0){i.removeChild(v),xf(a);return}h--}else c!==rg&&c!==bc&&c!==Sc||h++;c=v}while(c);xf(a)}function YL(i){i=i.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"}function XL(i){i.nodeValue=""}function QL(i,a){a=a[Y4],a=a!=null&&a.hasOwnProperty("display")?a.display:null,i.style.display=a==null||typeof a=="boolean"?"":(""+a).trim()}function ZL(i,a){i.nodeValue=a}function h0(i){var a=i.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var c=a;switch(a=a.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":h0(c),bt(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}i.removeChild(c)}}function JL(i,a,c,h){for(;i.nodeType===1;){var v=c;if(i.nodeName.toLowerCase()!==a.toLowerCase()){if(!h&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(h){if(!i[Rf])switch(a){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(C=i.getAttribute("rel"),C==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(C!==v.rel||i.getAttribute("href")!==(v.href==null?null:v.href)||i.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||i.getAttribute("title")!==(v.title==null?null:v.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(C=i.getAttribute("src"),(C!==(v.src==null?null:v.src)||i.getAttribute("type")!==(v.type==null?null:v.type)||i.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&C&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(a==="input"&&i.type==="hidden"){he(v.name,"name");var C=v.name==null?null:""+v.name;if(v.type==="hidden"&&i.getAttribute("name")===C)return i}else return i;if(i=pi(i.nextSibling),i===null)break}return null}function e3(i,a,c){if(a==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!c||(i=pi(i.nextSibling),i===null))return null;return i}function pi(i){for(;i!=null;i=i.nextSibling){var a=i.nodeType;if(a===1||a===3)break;if(a===8){if(a=i.data,a===rg||a===Sc||a===bc||a===IS||a===M$)break;if(a===og)return null}}return i}function JR(i){if(i.nodeType===1){for(var a=i.nodeName.toLowerCase(),c={},h=i.attributes,v=0;v<h.length;v++){var C=h[v];c[WR(C.name)]=C.name.toLowerCase()==="style"?c0(i):C.value}return{type:a,props:c}}return i.nodeType===8?{type:"Suspense",props:{}}:i.nodeValue}function eT(i,a,c){return c===null||c[K4]!==!0?(i.nodeValue===a?i=null:(a=Il(a),i=Il(i.nodeValue)===a?null:i.nodeValue),i):null}function tT(i){i=i.nextSibling;for(var a=0;i;){if(i.nodeType===8){var c=i.data;if(c===og){if(a===0)return pi(i.nextSibling);a--}else c!==rg&&c!==Sc&&c!==bc||a++}i=i.nextSibling}return null}function nT(i){i=i.previousSibling;for(var a=0;i;){if(i.nodeType===8){var c=i.data;if(c===rg||c===Sc||c===bc){if(a===0)return i;a--}else c===og&&a++}i=i.previousSibling}return null}function t3(i){xf(i)}function n3(i){xf(i)}function rT(i,a,c,h,v){switch(v&&en(i,h.ancestorInfo),a=up(c),i){case"html":if(i=a.documentElement,!i)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return i;case"head":if(i=a.head,!i)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return i;case"body":if(i=a.body,!i)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return i;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function r3(i,a,c,h){if(Dt(c)){var v=c.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",v,v,v)}switch(i){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(v=c.attributes;v.length;)c.removeAttributeNode(v[0]);Zr(c,i,a),c[fo]=h,c[Bo]=a}function dp(i){return typeof i.getRootNode=="function"?i.getRootNode():i.ownerDocument}function oT(i,a,c){var h=ed;if(h&&typeof a=="string"&&a){var v=rt(a);v='link[rel="'+i+'"][href="'+v+'"]',typeof c=="string"&&(v+='[crossorigin="'+c+'"]'),k$.has(v)||(k$.add(v),i={rel:i,crossOrigin:c,href:a},h.querySelector(v)===null&&(a=h.createElement("link"),Zr(a,"link",i),lt(a),h.head.appendChild(a)))}}function iT(i,a,c,h){var v=(v=zl.current)?dp(v):null;if(!v)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(i){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(c=vu(c.href),a=wt(v).hoistableStyles,h=a.get(c),h||(h={type:"style",instance:null,count:0,state:null},a.set(c,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){i=vu(c.href);var C=wt(v).hoistableStyles,R=C.get(i);if(!R&&(v=v.ownerDocument||v,R={type:"stylesheet",instance:null,count:0,state:{loading:Cc,preload:null}},C.set(i,R),(C=v.querySelector(bf(i)))&&!C._p&&(R.instance=C,R.state.loading=ah|Ri),!Ti.has(i))){var k={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy};Ti.set(i,k),C||o3(v,i,k,R.state)}if(a&&h===null)throw c=`
228
-
229
- - `+fp(a)+`
230
- + `+fp(c),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+c);return R}if(a&&h!==null)throw c=`
231
-
232
- - `+fp(a)+`
233
- + `+fp(c),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+c);return null;case"script":return a=c.async,c=c.src,typeof c=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(c=yu(c),a=wt(v).hoistableScripts,h=a.get(c),h||(h={type:"script",instance:null,count:0,state:null},a.set(c,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+i+'". this is a bug in React.')}}function fp(i){var a=0,c="<link";return typeof i.rel=="string"?(a++,c+=' rel="'+i.rel+'"'):Ya.call(i,"rel")&&(a++,c+=' rel="'+(i.rel===null?"null":"invalid type "+typeof i.rel)+'"'),typeof i.href=="string"?(a++,c+=' href="'+i.href+'"'):Ya.call(i,"href")&&(a++,c+=' href="'+(i.href===null?"null":"invalid type "+typeof i.href)+'"'),typeof i.precedence=="string"?(a++,c+=' precedence="'+i.precedence+'"'):Ya.call(i,"precedence")&&(a++,c+=" precedence={"+(i.precedence===null?"null":"invalid type "+typeof i.precedence)+"}"),Object.getOwnPropertyNames(i).length>a&&(c+=" ..."),c+" />"}function vu(i){return'href="'+rt(i)+'"'}function bf(i){return'link[rel="stylesheet"]['+i+"]"}function aT(i){return Sn({},i,{"data-precedence":i.precedence,precedence:null})}function o3(i,a,c,h){i.querySelector('link[rel="preload"][as="style"]['+a+"]")?h.loading=ah:(a=i.createElement("link"),h.preload=a,a.addEventListener("load",function(){return h.loading|=ah}),a.addEventListener("error",function(){return h.loading|=D$}),Zr(a,"link",c),lt(a),i.head.appendChild(a))}function yu(i){return'[src="'+rt(i)+'"]'}function Sf(i){return"script[async]"+i}function lT(i,a,c){if(a.count++,a.instance===null)switch(a.type){case"style":var h=i.querySelector('style[data-href~="'+rt(c.href)+'"]');if(h)return a.instance=h,lt(h),h;var v=Sn({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return h=(i.ownerDocument||i).createElement("style"),lt(h),Zr(h,"style",v),hp(h,c.precedence,i),a.instance=h;case"stylesheet":v=vu(c.href);var C=i.querySelector(bf(v));if(C)return a.state.loading|=Ri,a.instance=C,lt(C),C;h=aT(c),(v=Ti.get(v))&&m0(h,v),C=(i.ownerDocument||i).createElement("link"),lt(C);var R=C;return R._p=new Promise(function(k,U){R.onload=k,R.onerror=U}),Zr(C,"link",h),a.state.loading|=Ri,hp(C,c.precedence,i),a.instance=C;case"script":return C=yu(c.src),(v=i.querySelector(Sf(C)))?(a.instance=v,lt(v),v):(h=c,(v=Ti.get(C))&&(h=Sn({},c),p0(h,v)),i=i.ownerDocument||i,v=i.createElement("script"),lt(v),Zr(v,"link",h),i.head.appendChild(v),a.instance=v);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+a.type+'". this is a bug in React.')}else a.type==="stylesheet"&&(a.state.loading&Ri)===Cc&&(h=a.instance,a.state.loading|=Ri,hp(h,c.precedence,i));return a.instance}function hp(i,a,c){for(var h=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=h.length?h[h.length-1]:null,C=v,R=0;R<h.length;R++){var k=h[R];if(k.dataset.precedence===a)C=k;else if(C!==v)break}C?C.parentNode.insertBefore(i,C.nextSibling):(a=c.nodeType===9?c.head:c,a.insertBefore(i,a.firstChild))}function m0(i,a){i.crossOrigin==null&&(i.crossOrigin=a.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=a.referrerPolicy),i.title==null&&(i.title=a.title)}function p0(i,a){i.crossOrigin==null&&(i.crossOrigin=a.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=a.referrerPolicy),i.integrity==null&&(i.integrity=a.integrity)}function sT(i,a,c){if(ag===null){var h=new Map,v=ag=new Map;v.set(c,h)}else v=ag,h=v.get(c),h||(h=new Map,v.set(c,h));if(h.has(i))return h;for(h.set(i,null),c=c.getElementsByTagName(i),v=0;v<c.length;v++){var C=c[v];if(!(C[Rf]||C[fo]||i==="link"&&C.getAttribute("rel")==="stylesheet")&&C.namespaceURI!==wu){var R=C.getAttribute(a)||"";R=i+R;var k=h.get(R);k?k.push(C):h.set(R,[C])}}return h}function cT(i,a,c){i=i.ownerDocument||i,i.head.insertBefore(c,a==="title"?i.querySelector("head > title"):null)}function i3(i,a,c){var h=!c.ancestorInfo.containerTagInScope;if(c.context===Ju||a.itemProp!=null)return!h||a.itemProp==null||i!=="meta"&&i!=="title"&&i!=="style"&&i!=="link"&&i!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",i,i),!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href===""){h&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflic with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`, or move the <style> to the <style> tag.');break}return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError){if(a.rel==="stylesheet"&&typeof a.precedence=="string"){i=a.href;var v=a.onError,C=a.disabled;c=[],a.onLoad&&c.push("`onLoad`"),v&&c.push("`onError`"),C!=null&&c.push("`disabled`"),v=LL(c,"and"),v+=c.length===1?" prop":" props",C=c.length===1?"an "+v:"the "+v,c.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',i,C,v)}h&&(typeof a.rel!="string"||typeof a.href!="string"||a.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(a.onError||a.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(a.rel){case"stylesheet":return i=a.precedence,a=a.disabled,typeof i!="string"&&h&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof i=="string"&&a==null;default:return!0}case"script":if(i=a.async&&typeof a.async!="function"&&typeof a.async!="symbol",!i||a.onLoad||a.onError||!a.src||typeof a.src!="string"){h&&(i?a.onLoad||a.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":h&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",i)}return!1}function uT(i){return!(i.type==="stylesheet"&&(i.state.loading&I$)===Cc)}function a3(){}function l3(i,a,c){if(lh===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var h=lh;if(a.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(a.state.loading&Ri)===Cc){if(a.instance===null){var v=vu(c.href),C=i.querySelector(bf(v));if(C){i=C._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(h.count++,h=mp.bind(h),i.then(h,h)),a.state.loading|=Ri,a.instance=C,lt(C);return}C=i.ownerDocument||i,c=aT(c),(v=Ti.get(v))&&m0(c,v),C=C.createElement("link"),lt(C);var R=C;R._p=new Promise(function(k,U){R.onload=k,R.onerror=U}),Zr(C,"link",c),a.instance=C}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(a,i),(i=a.state.preload)&&(a.state.loading&I$)===Cc&&(h.count++,a=mp.bind(h),i.addEventListener("load",a),i.addEventListener("error",a))}}function s3(){if(lh===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var i=lh;return i.stylesheets&&i.count===0&&g0(i,i.stylesheets),0<i.count?function(a){var c=setTimeout(function(){if(i.stylesheets&&g0(i,i.stylesheets),i.unsuspend){var h=i.unsuspend;i.unsuspend=null,h()}},6e4);return i.unsuspend=a,function(){i.unsuspend=null,clearTimeout(c)}}:null}function mp(){if(this.count--,this.count===0){if(this.stylesheets)g0(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}function g0(i,a){i.stylesheets=null,i.unsuspend!==null&&(i.count++,lg=new Map,a.forEach(c3,i),lg=null,mp.call(i))}function c3(i,a){if(!(a.state.loading&Ri)){var c=lg.get(i);if(c)var h=c.get(BS);else{c=new Map,lg.set(i,c);for(var v=i.querySelectorAll("link[data-precedence],style[data-precedence]"),C=0;C<v.length;C++){var R=v[C];(R.nodeName==="LINK"||R.getAttribute("media")!=="not all")&&(c.set(R.dataset.precedence,R),h=R)}h&&c.set(BS,h)}v=a.instance,R=v.getAttribute("data-precedence"),C=c.get(R)||h,C===h&&c.set(BS,v),c.set(R,v),this.count++,h=mp.bind(this),v.addEventListener("load",h),v.addEventListener("error",h),C?C.parentNode.insertBefore(v,C.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(v,i.firstChild)),a.state.loading|=Ri}}function u3(i,a,c){var h=0;switch(i){case"dir":case"dirxml":case"groupEnd":case"table":return B$.apply(console[i],[console].concat(a));case"assert":h=1}return a=a.slice(0),typeof a[h]=="string"?a.splice(h,1,P$+a[h],z$,sg+c+sg,_$):a.splice(h,0,P$,z$,sg+c+sg,_$),a.unshift(console),B$.apply(console[i],a)}function d3(i,a,c,h,v,C,R,k){for(this.tag=1,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=_S,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=et(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=et(0),this.hiddenUpdates=et(null),this.identifierPrefix=h,this.onUncaughtError=v,this.onCaughtError=C,this.onRecoverableError=R,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=k,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,i=this.pendingUpdatersLaneMap=[],a=0;31>a;a++)i.push(new Set);this._debugRootType=c?"hydrateRoot()":"createRoot()"}function dT(i,a,c,h,v,C,R,k,U,X,Ae,Ye){return i=new d3(i,a,c,R,k,U,X,Ye),a=M4,C===!0&&(a|=ho|Vi),Li&&(a|=eo),C=u(3,null,null,a),i.current=C,C.stateNode=i,a=qy(),Us(a),i.pooledCache=a,Us(a),C.memoizedState={element:h,isDehydrated:c,cache:a},zb(C),i}function fT(i){return i?(i=Hl,i):Hl}function hT(i,a,c,h){return a.tag===0&&Zs(),mT(a.current,2,i,a,c,h),2}function mT(i,a,c,h,v,C){if(uo&&typeof uo.onScheduleFiberRoot=="function")try{uo.onScheduleFiberRoot(xu,h,c)}catch(R){pa||(pa=!0,console.error("React instrumentation encountered an error: %s",R))}_t!==null&&typeof _t.markRenderScheduled=="function"&&_t.markRenderScheduled(a),v=fT(v),h.context===null?h.context=v:h.pendingContext=v,gi&&co!==null&&!H$&&(H$=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
234
-
235
- Check the render method of %s.`,T(co)||"Unknown")),h=$l(a),h.payload={element:c},C=C===void 0?null:C,C!==null&&(typeof C!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",C),h.callback=C),c=Nl(i,h,a),c!==null&&(gr(c,i,a),cf(c,i,a))}function pT(i,a){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var c=i.retryLane;i.retryLane=c!==0&&c<a?c:a}}function v0(i,a){pT(i,a),(i=i.alternate)&&pT(i,a)}function gT(i){if(i.tag===13){var a=so(i,67108864);a!==null&&gr(a,i,67108864),v0(i,67108864)}}function f3(){return co}function h3(){for(var i=new Map,a=1,c=0;31>c;c++){var h=Fe(a);i.set(a,h),a*=2}return i}function m3(i,a,c,h){var v=Ve.T;Ve.T=null;var C=sr.p;try{sr.p=ga,y0(i,a,c,h)}finally{sr.p=C,Ve.T=v}}function p3(i,a,c,h){var v=Ve.T;Ve.T=null;var C=sr.p;try{sr.p=va,y0(i,a,c,h)}finally{sr.p=C,Ve.T=v}}function y0(i,a,c,h){if(cg){var v=b0(h);if(v===null)a0(i,a,h,ug,c),yT(i,h);else if(g3(v,i,a,c,h))h.stopPropagation();else if(yT(i,h),a&4&&-1<Z4.indexOf(i)){for(;v!==null;){var C=Dt(v);if(C!==null)switch(C.tag){case 3:if(C=C.stateNode,C.current.memoizedState.isDehydrated){var R=Te(C.pendingLanes);if(R!==0){var k=C;for(k.pendingLanes|=2,k.entangledLanes|=2;R;){var U=1<<31-wo(R);k.entanglements[1]|=U,R&=~U}da(C),(cr&($o|rl))===Qo&&(qp=ma()+S$,vf(0))}}break;case 13:k=so(C,2),k!==null&&gr(k,C,2),hu(),v0(C,2)}if(C=b0(h),C===null&&a0(i,a,h,ug,c),C===v)break;v=C}v!==null&&h.stopPropagation()}else a0(i,a,h,null,c)}}function b0(i){return i=aa(i),S0(i)}function S0(i){if(ug=null,i=kt(i),i!==null){var a=J(i);if(a===null)i=null;else{var c=a.tag;if(c===13){if(i=_(a),i!==null)return i;i=null}else if(c===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return ug=i,null}function vT(i){switch(i){case"beforetoggle":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"toggle":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 ga;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return va;case"message":switch(T3()){case I0:return ga;case k0:return va;case Cu:case M3:return Xa;case P0:return wp;default:return Xa}default:return Xa}}function yT(i,a){switch(i){case"focusin":case"focusout":Yl=null;break;case"dragenter":case"dragleave":Xl=null;break;case"mouseover":case"mouseout":Ql=null;break;case"pointerover":case"pointerout":ch.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":uh.delete(a.pointerId)}}function Cf(i,a,c,h,v,C){return i===null||i.nativeEvent!==C?(i={blockedOn:a,domEventName:c,eventSystemFlags:h,nativeEvent:C,targetContainers:[v]},a!==null&&(a=Dt(a),a!==null&&gT(a)),i):(i.eventSystemFlags|=h,a=i.targetContainers,v!==null&&a.indexOf(v)===-1&&a.push(v),i)}function g3(i,a,c,h,v){switch(a){case"focusin":return Yl=Cf(Yl,i,a,c,h,v),!0;case"dragenter":return Xl=Cf(Xl,i,a,c,h,v),!0;case"mouseover":return Ql=Cf(Ql,i,a,c,h,v),!0;case"pointerover":var C=v.pointerId;return ch.set(C,Cf(ch.get(C)||null,i,a,c,h,v)),!0;case"gotpointercapture":return C=v.pointerId,uh.set(C,Cf(uh.get(C)||null,i,a,c,h,v)),!0}return!1}function bT(i){var a=kt(i.target);if(a!==null){var c=J(a);if(c!==null){if(a=c.tag,a===13){if(a=_(c),a!==null){i.blockedOn=a,Rt(i.priority,function(){if(c.tag===13){var h=Ko(c),v=so(c,h);v!==null&&gr(v,c,h),v0(c,h)}});return}}else if(a===3&&c.stateNode.current.memoizedState.isDehydrated){i.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}i.blockedOn=null}function pp(i){if(i.blockedOn!==null)return!1;for(var a=i.targetContainers;0<a.length;){var c=b0(i.nativeEvent);if(c===null){c=i.nativeEvent;var h=new c.constructor(c.type,c),v=h;Tf!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Tf=v,c.target.dispatchEvent(h),Tf===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Tf=null}else return a=Dt(c),a!==null&&gT(a),i.blockedOn=c,!1;a.shift()}return!0}function ST(i,a,c){pp(i)&&c.delete(a)}function v3(){HS=!1,Yl!==null&&pp(Yl)&&(Yl=null),Xl!==null&&pp(Xl)&&(Xl=null),Ql!==null&&pp(Ql)&&(Ql=null),ch.forEach(ST),uh.forEach(ST)}function gp(i,a){i.blockedOn===a&&(i.blockedOn=null,HS||(HS=!0,Nr.unstable_scheduleCallback(Nr.unstable_NormalPriority,v3)))}function CT(i){dg!==i&&(dg=i,Nr.unstable_scheduleCallback(Nr.unstable_NormalPriority,function(){dg===i&&(dg=null);for(var a=0;a<i.length;a+=3){var c=i[a],h=i[a+1],v=i[a+2];if(typeof h!="function"){if(S0(h||c)===null)continue;break}var C=Dt(c);C!==null&&(i.splice(a,3),a-=3,c={pending:!0,data:v,method:c.method,action:h},Object.freeze(c),mb(C,c,h,v))}}))}function xf(i){function a(U){return gp(U,i)}Yl!==null&&gp(Yl,i),Xl!==null&&gp(Xl,i),Ql!==null&&gp(Ql,i),ch.forEach(a),uh.forEach(a);for(var c=0;c<Zl.length;c++){var h=Zl[c];h.blockedOn===i&&(h.blockedOn=null)}for(;0<Zl.length&&(c=Zl[0],c.blockedOn===null);)bT(c),c.blockedOn===null&&Zl.shift();if(c=(i.ownerDocument||i).$$reactFormReplay,c!=null)for(h=0;h<c.length;h+=3){var v=c[h],C=c[h+1],R=v[Bo]||null;if(typeof C=="function")R||CT(c);else if(R){var k=null;if(C&&C.hasAttribute("formAction")){if(v=C,R=C[Bo]||null)k=R.formAction;else if(S0(v)!==null)continue}else k=R.action;typeof k=="function"?c[h+1]=k:(c.splice(h,3),h-=3),CT(c)}}}function C0(i){this._internalRoot=i}function vp(i){this._internalRoot=i}function xT(i){i[Js]&&(i._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Nr=i5(),x0=im(),y3=wk(),b3=Symbol.for("react.element"),kl=Symbol.for("react.transitional.element"),bu=Symbol.for("react.portal"),Su=Symbol.for("react.fragment"),yp=Symbol.for("react.strict_mode"),w0=Symbol.for("react.profiler"),S3=Symbol.for("react.provider"),E0=Symbol.for("react.consumer"),ha=Symbol.for("react.context"),wf=Symbol.for("react.forward_ref"),O0=Symbol.for("react.suspense"),R0=Symbol.for("react.suspense_list"),bp=Symbol.for("react.memo"),Yo=Symbol.for("react.lazy"),wT=Symbol.for("react.offscreen"),C3=Symbol.for("react.memo_cache_sentinel"),ET=Symbol.iterator,x3=Symbol.for("react.client.reference"),Ve=x0.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Sn=Object.assign,Ef=0,OT,RT,TT,MT,$T,NT,AT;$.__reactDisabledLog=!0;var T0,DT,M0=!1,$0=new(typeof WeakMap=="function"?WeakMap:Map),co=null,gi=!1,Jr=Array.isArray,sr=y3.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w3=Object.freeze({pending:!1,data:null,method:null,action:null}),N0=[],A0=[],Ka=-1,Pl=K(null),Of=K(null),zl=K(null),Sp=K(null),Ya=Object.prototype.hasOwnProperty,D0=Nr.unstable_scheduleCallback,E3=Nr.unstable_cancelCallback,O3=Nr.unstable_shouldYield,R3=Nr.unstable_requestPaint,ma=Nr.unstable_now,T3=Nr.unstable_getCurrentPriorityLevel,I0=Nr.unstable_ImmediatePriority,k0=Nr.unstable_UserBlockingPriority,Cu=Nr.unstable_NormalPriority,M3=Nr.unstable_LowPriority,P0=Nr.unstable_IdlePriority,$3=Nr.log,N3=Nr.unstable_setDisableYieldValue,xu=null,uo=null,_t=null,pa=!1,Li=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",wo=Math.clz32?Math.clz32:Ue,A3=Math.log,D3=Math.LN2,Cp=128,xp=4194304,ga=2,va=8,Xa=32,wp=268435456,_l=Math.random().toString(36).slice(2),fo="__reactFiber$"+_l,Bo="__reactProps$"+_l,Js="__reactContainer$"+_l,z0="__reactEvents$"+_l,I3="__reactListeners$"+_l,k3="__reactHandles$"+_l,IT="__reactResources$"+_l,Rf="__reactMarker$"+_l,kT=new Set,ec={},_0={},ya=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),P3={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},z3=RegExp("^[: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]*$"),PT={},zT={},_3=/[\n"\\]/g,_T=!1,BT=!1,HT=!1,jT=!1,LT=!1,VT=!1,FT=["value","defaultValue"],UT=!1,WT=/["'&<>\n\t]|^\s|\s$/,B3="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),qT="applet caption html table td th marquee object template foreignObject desc title".split(" "),H3=qT.concat(["button"]),j3="dd dt li option optgroup p rp rt".split(" "),GT={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null},Ep={},Op="http://www.w3.org/1998/Math/MathML",wu="http://www.w3.org/2000/svg",B0={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},KT=/([A-Z])/g,YT=/^ms-/,L3=/^(?:webkit|moz|o)[A-Z]/,V3=/^-ms-/,F3=/-(.)/g,XT=/;\s*$/,Eu={},H0={},QT=!1,ZT=!1,JT=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),U3=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Rp={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},eM={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Ou={},W3=RegExp("^(aria)-[: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]*$"),q3=RegExp("^(aria)[A-Z][: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]*$"),tM=!1,Eo={},nM=/^on./,G3=/^on[^A-Z]/,K3=RegExp("^(aria)-[: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]*$"),Y3=RegExp("^(aria)[A-Z][: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]*$"),X3=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,Tf=null,Ru=null,Tu=null,j0=!1,L0=!1;if(ya)try{var Mf={};Object.defineProperty(Mf,"passive",{get:function(){L0=!0}}),window.addEventListener("test",Mf,Mf),window.removeEventListener("test",Mf,Mf)}catch{L0=!1}var Bl=null,V0=null,Tp=null,tc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mp=xn(tc),$f=Sn({},tc,{view:0,detail:0}),Q3=xn($f),F0,U0,Nf,$p=Sn({},$f,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ps,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==Nf&&(Nf&&i.type==="mousemove"?(F0=i.screenX-Nf.screenX,U0=i.screenY-Nf.screenY):U0=F0=0,Nf=i),F0)},movementY:function(i){return"movementY"in i?i.movementY:U0}}),rM=xn($p),Z3=Sn({},$p,{dataTransfer:0}),J3=xn(Z3),e4=Sn({},$f,{relatedTarget:0}),W0=xn(e4),t4=Sn({},tc,{animationName:0,elapsedTime:0,pseudoElement:0}),n4=xn(t4),r4=Sn({},tc,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),o4=xn(r4),i4=Sn({},tc,{data:0}),oM=xn(i4),a4=oM,l4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},s4={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"},c4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},u4=Sn({},$f,{key:function(i){if(i.key){var a=l4[i.key]||i.key;if(a!=="Unidentified")return a}return i.type==="keypress"?(i=Qt(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?s4[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ps,charCode:function(i){return i.type==="keypress"?Qt(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Qt(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),d4=xn(u4),f4=Sn({},$p,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),iM=xn(f4),h4=Sn({},$f,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ps}),m4=xn(h4),p4=Sn({},tc,{propertyName:0,elapsedTime:0,pseudoElement:0}),g4=xn(p4),v4=Sn({},$p,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),y4=xn(v4),b4=Sn({},tc,{newState:0,oldState:0}),S4=xn(b4),C4=[9,13,27,32],aM=229,q0=ya&&"CompositionEvent"in window,Af=null;ya&&"documentMode"in document&&(Af=document.documentMode);var x4=ya&&"TextEvent"in window&&!Af,lM=ya&&(!q0||Af&&8<Af&&11>=Af),sM=32,cM=String.fromCharCode(sM),uM=!1,Mu=!1,w4={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},Df=null,If=null,dM=!1;ya&&(dM=Xj("input")&&(!document.documentMode||9<document.documentMode));var Oo=typeof Object.is=="function"?Object.is:nL,E4=ya&&"documentMode"in document&&11>=document.documentMode,$u=null,G0=null,kf=null,K0=!1,Nu={animationend:_s("Animation","AnimationEnd"),animationiteration:_s("Animation","AnimationIteration"),animationstart:_s("Animation","AnimationStart"),transitionrun:_s("Transition","TransitionRun"),transitionstart:_s("Transition","TransitionStart"),transitioncancel:_s("Transition","TransitionCancel"),transitionend:_s("Transition","TransitionEnd")},Y0={},fM={};ya&&(fM=document.createElement("div").style,"AnimationEvent"in window||(delete Nu.animationend.animation,delete Nu.animationiteration.animation,delete Nu.animationstart.animation),"TransitionEvent"in window||delete Nu.transitionend.transition);var hM=Bs("animationend"),mM=Bs("animationiteration"),pM=Bs("animationstart"),O4=Bs("transitionrun"),R4=Bs("transitionstart"),T4=Bs("transitioncancel"),gM=Bs("transitionend"),vM=new Map,yM="abort auxClick beforeToggle 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 scrollEnd toggle touchMove waiting wheel".split(" "),Np=1,Pf=2,nc=4,vi=[],Au=0,X0=0,Hl={};Object.freeze(Hl);var yi=null,Du=null,ir=0,M4=1,eo=2,ho=8,Vi=16,bM=64,Iu=Nr.unstable_now,Q0=-0,Ap=-0,Ho=-1.1,rc=-0,Dp=!1,Ip=!1,Fi={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},zf=[],_f=[],Bf=[],Hf=[],jf=[],Lf=[],oc=new Set;Fi.recordUnsafeLifecycleWarnings=function(i,a){oc.has(i.type)||(typeof a.componentWillMount=="function"&&a.componentWillMount.__suppressDeprecationWarning!==!0&&zf.push(i),i.mode&ho&&typeof a.UNSAFE_componentWillMount=="function"&&_f.push(i),typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Bf.push(i),i.mode&ho&&typeof a.UNSAFE_componentWillReceiveProps=="function"&&Hf.push(i),typeof a.componentWillUpdate=="function"&&a.componentWillUpdate.__suppressDeprecationWarning!==!0&&jf.push(i),i.mode&ho&&typeof a.UNSAFE_componentWillUpdate=="function"&&Lf.push(i))},Fi.flushPendingUnsafeLifecycleWarnings=function(){var i=new Set;0<zf.length&&(zf.forEach(function(k){i.add(T(k)||"Component"),oc.add(k.type)}),zf=[]);var a=new Set;0<_f.length&&(_f.forEach(function(k){a.add(T(k)||"Component"),oc.add(k.type)}),_f=[]);var c=new Set;0<Bf.length&&(Bf.forEach(function(k){c.add(T(k)||"Component"),oc.add(k.type)}),Bf=[]);var h=new Set;0<Hf.length&&(Hf.forEach(function(k){h.add(T(k)||"Component"),oc.add(k.type)}),Hf=[]);var v=new Set;0<jf.length&&(jf.forEach(function(k){v.add(T(k)||"Component"),oc.add(k.type)}),jf=[]);var C=new Set;if(0<Lf.length&&(Lf.forEach(function(k){C.add(T(k)||"Component"),oc.add(k.type)}),Lf=[]),0<a.size){var R=g(a);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
236
-
237
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
238
-
239
- Please update the following components: %s`,R)}0<h.size&&(R=g(h),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
240
-
241
- * Move data fetching code or side effects to componentDidUpdate.
242
- * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
243
-
244
- Please update the following components: %s`,R)),0<C.size&&(R=g(C),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
245
-
246
- * Move data fetching code or side effects to componentDidUpdate.
247
-
248
- Please update the following components: %s`,R)),0<i.size&&(R=g(i),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
249
-
250
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
251
- * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
252
-
253
- Please update the following components: %s`,R)),0<c.size&&(R=g(c),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
254
-
255
- * Move data fetching code or side effects to componentDidUpdate.
256
- * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
257
- * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
258
-
259
- Please update the following components: %s`,R)),0<v.size&&(R=g(v),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
260
-
261
- * Move data fetching code or side effects to componentDidUpdate.
262
- * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
263
-
264
- Please update the following components: %s`,R))};var kp=new Map,SM=new Set;Fi.recordLegacyContextWarning=function(i,a){for(var c=null,h=i;h!==null;)h.mode&ho&&(c=h),h=h.return;c===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!SM.has(i.type)&&(h=kp.get(c),i.type.contextTypes!=null||i.type.childContextTypes!=null||a!==null&&typeof a.getChildContext=="function")&&(h===void 0&&(h=[],kp.set(c,h)),h.push(i))},Fi.flushLegacyContextWarning=function(){kp.forEach(function(i){if(i.length!==0){var a=i[0],c=new Set;i.forEach(function(v){c.add(T(v)||"Component"),SM.add(v.type)});var h=g(c);H(a,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
265
-
266
- The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
267
-
268
- Please update the following components: %s
269
-
270
- Learn more about this warning here: https://react.dev/link/legacy-context`,h)})}})},Fi.discardPendingWarnings=function(){zf=[],_f=[],Bf=[],Hf=[],jf=[],Lf=[],kp=new Map};var Z0=new WeakMap,ku=[],Pu=0,Pp=null,zp=0,bi=[],Si=0,ic=null,Qa=1,Za="",Ro=null,to=null,An=!1,Ja=!1,Ci=null,Ui=null,ba=!1,J0=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),_p=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`"),CM=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),eS={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},Vf=null,Bp=!1,xM={"react-stack-bottom-frame":function(i,a,c){var h=gi;gi=!0;try{return i(a,c)}finally{gi=h}}},tS=xM["react-stack-bottom-frame"].bind(xM),wM={"react-stack-bottom-frame":function(i){var a=gi;gi=!0;try{return i.render()}finally{gi=a}}},EM=wM["react-stack-bottom-frame"].bind(wM),OM={"react-stack-bottom-frame":function(i,a){try{a.componentDidMount()}catch(c){Kn(i,i.return,c)}}},nS=OM["react-stack-bottom-frame"].bind(OM),RM={"react-stack-bottom-frame":function(i,a,c,h,v){try{a.componentDidUpdate(c,h,v)}catch(C){Kn(i,i.return,C)}}},TM=RM["react-stack-bottom-frame"].bind(RM),MM={"react-stack-bottom-frame":function(i,a){var c=a.stack;i.componentDidCatch(a.value,{componentStack:c!==null?c:""})}},$4=MM["react-stack-bottom-frame"].bind(MM),$M={"react-stack-bottom-frame":function(i,a,c){try{c.componentWillUnmount()}catch(h){Kn(i,a,h)}}},NM=$M["react-stack-bottom-frame"].bind($M),AM={"react-stack-bottom-frame":function(i){var a=i.create;return i=i.inst,a=a(),i.destroy=a}},N4=AM["react-stack-bottom-frame"].bind(AM),DM={"react-stack-bottom-frame":function(i,a,c){try{c()}catch(h){Kn(i,a,h)}}},A4=DM["react-stack-bottom-frame"].bind(DM),IM={"react-stack-bottom-frame":function(i){var a=i._init;return a(i._payload)}},jl=IM["react-stack-bottom-frame"].bind(IM),zu=null,Ff=0,yn=null,rS,kM=rS=!1,PM={},zM={},_M={};p=function(i,a,c){if(c!==null&&typeof c=="object"&&c._store&&(!c._store.validated&&c.key==null||c._store.validated===2)){if(typeof c._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");c._store.validated=1;var h=T(i),v=h||"null";if(!PM[v]){PM[v]=!0,c=c._owner,i=i._debugOwner;var C="";i&&typeof i.tag=="number"&&(v=T(i))&&(C=`
271
-
272
- Check the render method of \``+v+"`."),C||h&&(C=`
273
-
274
- Check the top-level render call using <`+h+">.");var R="";c!=null&&i!==c&&(h=null,typeof c.tag=="number"?h=T(c):typeof c.name=="string"&&(h=c.name),h&&(R=" It was passed a child from "+h+".")),H(a,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',C,R)})}}};var ac=UE(!0),BM=UE(!1),_u=K(null),Hp=K(0),xi=K(null),Sa=null,Bu=1,Uf=2,zr=K(0),wi=0,Ei=1,To=2,no=4,_r=8,D4=typeof AbortController<"u"?AbortController:function(){var i=[],a=this.signal={aborted:!1,addEventListener:function(c,h){i.push(h)}};this.abort=function(){a.aborted=!0,i.forEach(function(c){return c()})}},I4=Nr.unstable_scheduleCallback,k4=Nr.unstable_NormalPriority,Br={$$typeof:ha,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Wf=null,oS=0,lc=0,Hu=null,HM=Ve.S;Ve.S=function(i,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&oL(i,a),HM!==null&&HM(i,a)};var sc=K(null),ju,jM=new Set,LM=new Set,iS=new Set,VM=new Set,Ll=0,ln=null,Xn=null,Ar=null,jp=!1,Lu=!1,cc=!1,Lp=0,qf=0,el=null,P4=0,z4=25,Le=null,Oi=null,tl=-1,Gf=!1,aS=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}},Ca={readContext:hr,use:Tl,useCallback:Rr,useContext:Rr,useEffect:Rr,useImperativeHandle:Rr,useLayoutEffect:Rr,useInsertionEffect:Rr,useMemo:Rr,useReducer:Rr,useRef:Rr,useState:Rr,useDebugValue:Rr,useDeferredValue:Rr,useTransition:Rr,useSyncExternalStore:Rr,useId:Rr};Ca.useCacheRefresh=Rr,Ca.useMemoCache=Rr,Ca.useHostTransitionStatus=Rr,Ca.useFormState=Rr,Ca.useActionState=Rr,Ca.useOptimistic=Rr;var Vl=null,uc=null,Fl=null,dc=null,jo=null,Mo=null,Ul=null;Vl={readContext:function(i){return hr(i)},use:Tl,useCallback:function(i,a){return Le="useCallback",On(),iu(a),ub(i,a)},useContext:function(i){return Le="useContext",On(),hr(i)},useEffect:function(i,a){return Le="useEffect",On(),iu(a),qm(i,a)},useImperativeHandle:function(i,a,c){return Le="useImperativeHandle",On(),iu(c),cb(i,a,c)},useInsertionEffect:function(i,a){Le="useInsertionEffect",On(),iu(a),qs(4,To,i,a)},useLayoutEffect:function(i,a){return Le="useLayoutEffect",On(),iu(a),sb(i,a)},useMemo:function(i,a){Le="useMemo",On(),iu(a);var c=Ve.H;Ve.H=jo;try{return db(i,a)}finally{Ve.H=c}},useReducer:function(i,a,c){Le="useReducer",On();var h=Ve.H;Ve.H=jo;try{return eb(i,a,c)}finally{Ve.H=h}},useRef:function(i){return Le="useRef",On(),lb(i)},useState:function(i){Le="useState",On();var a=Ve.H;Ve.H=jo;try{return ob(i)}finally{Ve.H=a}},useDebugValue:function(){Le="useDebugValue",On()},useDeferredValue:function(i,a){return Le="useDeferredValue",On(),fb(i,a)},useTransition:function(){return Le="useTransition",On(),pb()},useSyncExternalStore:function(i,a,c){return Le="useSyncExternalStore",On(),nb(i,a,c)},useId:function(){return Le="useId",On(),gb()},useCacheRefresh:function(){return Le="useCacheRefresh",On(),vb()}},Vl.useMemoCache=Ws,Vl.useHostTransitionStatus=Gs,Vl.useFormState=function(i,a){return Le="useFormState",On(),Vm(),lu(i,a)},Vl.useActionState=function(i,a){return Le="useActionState",On(),lu(i,a)},Vl.useOptimistic=function(i){return Le="useOptimistic",On(),ib(i)},uc={readContext:function(i){return hr(i)},use:Tl,useCallback:function(i,a){return Le="useCallback",pt(),ub(i,a)},useContext:function(i){return Le="useContext",pt(),hr(i)},useEffect:function(i,a){return Le="useEffect",pt(),qm(i,a)},useImperativeHandle:function(i,a,c){return Le="useImperativeHandle",pt(),cb(i,a,c)},useInsertionEffect:function(i,a){Le="useInsertionEffect",pt(),qs(4,To,i,a)},useLayoutEffect:function(i,a){return Le="useLayoutEffect",pt(),sb(i,a)},useMemo:function(i,a){Le="useMemo",pt();var c=Ve.H;Ve.H=jo;try{return db(i,a)}finally{Ve.H=c}},useReducer:function(i,a,c){Le="useReducer",pt();var h=Ve.H;Ve.H=jo;try{return eb(i,a,c)}finally{Ve.H=h}},useRef:function(i){return Le="useRef",pt(),lb(i)},useState:function(i){Le="useState",pt();var a=Ve.H;Ve.H=jo;try{return ob(i)}finally{Ve.H=a}},useDebugValue:function(){Le="useDebugValue",pt()},useDeferredValue:function(i,a){return Le="useDeferredValue",pt(),fb(i,a)},useTransition:function(){return Le="useTransition",pt(),pb()},useSyncExternalStore:function(i,a,c){return Le="useSyncExternalStore",pt(),nb(i,a,c)},useId:function(){return Le="useId",pt(),gb()},useCacheRefresh:function(){return Le="useCacheRefresh",pt(),vb()}},uc.useMemoCache=Ws,uc.useHostTransitionStatus=Gs,uc.useFormState=function(i,a){return Le="useFormState",pt(),Vm(),lu(i,a)},uc.useActionState=function(i,a){return Le="useActionState",pt(),lu(i,a)},uc.useOptimistic=function(i){return Le="useOptimistic",pt(),ib(i)},Fl={readContext:function(i){return hr(i)},use:Tl,useCallback:function(i,a){return Le="useCallback",pt(),Km(i,a)},useContext:function(i){return Le="useContext",pt(),hr(i)},useEffect:function(i,a){Le="useEffect",pt(),_o(2048,_r,i,a)},useImperativeHandle:function(i,a,c){return Le="useImperativeHandle",pt(),Gm(i,a,c)},useInsertionEffect:function(i,a){return Le="useInsertionEffect",pt(),_o(4,To,i,a)},useLayoutEffect:function(i,a){return Le="useLayoutEffect",pt(),_o(4,no,i,a)},useMemo:function(i,a){Le="useMemo",pt();var c=Ve.H;Ve.H=Mo;try{return Ym(i,a)}finally{Ve.H=c}},useReducer:function(i,a,c){Le="useReducer",pt();var h=Ve.H;Ve.H=Mo;try{return au(i,a,c)}finally{Ve.H=h}},useRef:function(){return Le="useRef",pt(),qn().memoizedState},useState:function(){Le="useState",pt();var i=Ve.H;Ve.H=Mo;try{return au(ji)}finally{Ve.H=i}},useDebugValue:function(){Le="useDebugValue",pt()},useDeferredValue:function(i,a){return Le="useDeferredValue",pt(),dO(i,a)},useTransition:function(){return Le="useTransition",pt(),vO()},useSyncExternalStore:function(i,a,c){return Le="useSyncExternalStore",pt(),Fm(i,a,c)},useId:function(){return Le="useId",pt(),qn().memoizedState},useCacheRefresh:function(){return Le="useCacheRefresh",pt(),qn().memoizedState}},Fl.useMemoCache=Ws,Fl.useHostTransitionStatus=Gs,Fl.useFormState=function(i){return Le="useFormState",pt(),Vm(),Um(i)},Fl.useActionState=function(i){return Le="useActionState",pt(),Um(i)},Fl.useOptimistic=function(i,a){return Le="useOptimistic",pt(),tO(i,a)},dc={readContext:function(i){return hr(i)},use:Tl,useCallback:function(i,a){return Le="useCallback",pt(),Km(i,a)},useContext:function(i){return Le="useContext",pt(),hr(i)},useEffect:function(i,a){Le="useEffect",pt(),_o(2048,_r,i,a)},useImperativeHandle:function(i,a,c){return Le="useImperativeHandle",pt(),Gm(i,a,c)},useInsertionEffect:function(i,a){return Le="useInsertionEffect",pt(),_o(4,To,i,a)},useLayoutEffect:function(i,a){return Le="useLayoutEffect",pt(),_o(4,no,i,a)},useMemo:function(i,a){Le="useMemo",pt();var c=Ve.H;Ve.H=Ul;try{return Ym(i,a)}finally{Ve.H=c}},useReducer:function(i,a,c){Le="useReducer",pt();var h=Ve.H;Ve.H=Ul;try{return of(i,a,c)}finally{Ve.H=h}},useRef:function(){return Le="useRef",pt(),qn().memoizedState},useState:function(){Le="useState",pt();var i=Ve.H;Ve.H=Ul;try{return of(ji)}finally{Ve.H=i}},useDebugValue:function(){Le="useDebugValue",pt()},useDeferredValue:function(i,a){return Le="useDeferredValue",pt(),fO(i,a)},useTransition:function(){return Le="useTransition",pt(),yO()},useSyncExternalStore:function(i,a,c){return Le="useSyncExternalStore",pt(),Fm(i,a,c)},useId:function(){return Le="useId",pt(),qn().memoizedState},useCacheRefresh:function(){return Le="useCacheRefresh",pt(),qn().memoizedState}},dc.useMemoCache=Ws,dc.useHostTransitionStatus=Gs,dc.useFormState=function(i){return Le="useFormState",pt(),Vm(),Wm(i)},dc.useActionState=function(i){return Le="useActionState",pt(),Wm(i)},dc.useOptimistic=function(i,a){return Le="useOptimistic",pt(),rO(i,a)},jo={readContext:function(i){return f(),hr(i)},use:function(i){return d(),Tl(i)},useCallback:function(i,a){return Le="useCallback",d(),On(),ub(i,a)},useContext:function(i){return Le="useContext",d(),On(),hr(i)},useEffect:function(i,a){return Le="useEffect",d(),On(),qm(i,a)},useImperativeHandle:function(i,a,c){return Le="useImperativeHandle",d(),On(),cb(i,a,c)},useInsertionEffect:function(i,a){Le="useInsertionEffect",d(),On(),qs(4,To,i,a)},useLayoutEffect:function(i,a){return Le="useLayoutEffect",d(),On(),sb(i,a)},useMemo:function(i,a){Le="useMemo",d(),On();var c=Ve.H;Ve.H=jo;try{return db(i,a)}finally{Ve.H=c}},useReducer:function(i,a,c){Le="useReducer",d(),On();var h=Ve.H;Ve.H=jo;try{return eb(i,a,c)}finally{Ve.H=h}},useRef:function(i){return Le="useRef",d(),On(),lb(i)},useState:function(i){Le="useState",d(),On();var a=Ve.H;Ve.H=jo;try{return ob(i)}finally{Ve.H=a}},useDebugValue:function(){Le="useDebugValue",d(),On()},useDeferredValue:function(i,a){return Le="useDeferredValue",d(),On(),fb(i,a)},useTransition:function(){return Le="useTransition",d(),On(),pb()},useSyncExternalStore:function(i,a,c){return Le="useSyncExternalStore",d(),On(),nb(i,a,c)},useId:function(){return Le="useId",d(),On(),gb()},useCacheRefresh:function(){return Le="useCacheRefresh",On(),vb()},useMemoCache:function(i){return d(),Ws(i)}},jo.useHostTransitionStatus=Gs,jo.useFormState=function(i,a){return Le="useFormState",d(),On(),lu(i,a)},jo.useActionState=function(i,a){return Le="useActionState",d(),On(),lu(i,a)},jo.useOptimistic=function(i){return Le="useOptimistic",d(),On(),ib(i)},Mo={readContext:function(i){return f(),hr(i)},use:function(i){return d(),Tl(i)},useCallback:function(i,a){return Le="useCallback",d(),pt(),Km(i,a)},useContext:function(i){return Le="useContext",d(),pt(),hr(i)},useEffect:function(i,a){Le="useEffect",d(),pt(),_o(2048,_r,i,a)},useImperativeHandle:function(i,a,c){return Le="useImperativeHandle",d(),pt(),Gm(i,a,c)},useInsertionEffect:function(i,a){return Le="useInsertionEffect",d(),pt(),_o(4,To,i,a)},useLayoutEffect:function(i,a){return Le="useLayoutEffect",d(),pt(),_o(4,no,i,a)},useMemo:function(i,a){Le="useMemo",d(),pt();var c=Ve.H;Ve.H=Mo;try{return Ym(i,a)}finally{Ve.H=c}},useReducer:function(i,a,c){Le="useReducer",d(),pt();var h=Ve.H;Ve.H=Mo;try{return au(i,a,c)}finally{Ve.H=h}},useRef:function(){return Le="useRef",d(),pt(),qn().memoizedState},useState:function(){Le="useState",d(),pt();var i=Ve.H;Ve.H=Mo;try{return au(ji)}finally{Ve.H=i}},useDebugValue:function(){Le="useDebugValue",d(),pt()},useDeferredValue:function(i,a){return Le="useDeferredValue",d(),pt(),dO(i,a)},useTransition:function(){return Le="useTransition",d(),pt(),vO()},useSyncExternalStore:function(i,a,c){return Le="useSyncExternalStore",d(),pt(),Fm(i,a,c)},useId:function(){return Le="useId",d(),pt(),qn().memoizedState},useCacheRefresh:function(){return Le="useCacheRefresh",pt(),qn().memoizedState},useMemoCache:function(i){return d(),Ws(i)}},Mo.useHostTransitionStatus=Gs,Mo.useFormState=function(i){return Le="useFormState",d(),pt(),Um(i)},Mo.useActionState=function(i){return Le="useActionState",d(),pt(),Um(i)},Mo.useOptimistic=function(i,a){return Le="useOptimistic",d(),pt(),tO(i,a)},Ul={readContext:function(i){return f(),hr(i)},use:function(i){return d(),Tl(i)},useCallback:function(i,a){return Le="useCallback",d(),pt(),Km(i,a)},useContext:function(i){return Le="useContext",d(),pt(),hr(i)},useEffect:function(i,a){Le="useEffect",d(),pt(),_o(2048,_r,i,a)},useImperativeHandle:function(i,a,c){return Le="useImperativeHandle",d(),pt(),Gm(i,a,c)},useInsertionEffect:function(i,a){return Le="useInsertionEffect",d(),pt(),_o(4,To,i,a)},useLayoutEffect:function(i,a){return Le="useLayoutEffect",d(),pt(),_o(4,no,i,a)},useMemo:function(i,a){Le="useMemo",d(),pt();var c=Ve.H;Ve.H=Mo;try{return Ym(i,a)}finally{Ve.H=c}},useReducer:function(i,a,c){Le="useReducer",d(),pt();var h=Ve.H;Ve.H=Mo;try{return of(i,a,c)}finally{Ve.H=h}},useRef:function(){return Le="useRef",d(),pt(),qn().memoizedState},useState:function(){Le="useState",d(),pt();var i=Ve.H;Ve.H=Mo;try{return of(ji)}finally{Ve.H=i}},useDebugValue:function(){Le="useDebugValue",d(),pt()},useDeferredValue:function(i,a){return Le="useDeferredValue",d(),pt(),fO(i,a)},useTransition:function(){return Le="useTransition",d(),pt(),yO()},useSyncExternalStore:function(i,a,c){return Le="useSyncExternalStore",d(),pt(),Fm(i,a,c)},useId:function(){return Le="useId",d(),pt(),qn().memoizedState},useCacheRefresh:function(){return Le="useCacheRefresh",pt(),qn().memoizedState},useMemoCache:function(i){return d(),Ws(i)}},Ul.useHostTransitionStatus=Gs,Ul.useFormState=function(i){return Le="useFormState",d(),pt(),Wm(i)},Ul.useActionState=function(i){return Le="useActionState",d(),pt(),Wm(i)},Ul.useOptimistic=function(i,a){return Le="useOptimistic",d(),pt(),rO(i,a)};var FM={},UM=new Set,WM=new Set,qM=new Set,GM=new Set,KM=new Set,YM=new Set,XM=new Set,QM=new Set,ZM=new Set,JM=new Set;Object.freeze(FM);var lS={isMounted:function(i){var a=co;if(a!==null&&gi&&a.tag===1){var c=a.stateNode;c._warnedAboutRefsInRender||console.error("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",T(a)||"A component"),c._warnedAboutRefsInRender=!0}return(i=i._reactInternals)?J(i)===i:!1},enqueueSetState:function(i,a,c){i=i._reactInternals;var h=Ko(i),v=$l(h);v.payload=a,c!=null&&(bb(c),v.callback=c),a=Nl(i,v,h),a!==null&&(gr(a,i,h),cf(a,i,h)),ge(i,h)},enqueueReplaceState:function(i,a,c){i=i._reactInternals;var h=Ko(i),v=$l(h);v.tag=c$,v.payload=a,c!=null&&(bb(c),v.callback=c),a=Nl(i,v,h),a!==null&&(gr(a,i,h),cf(a,i,h)),ge(i,h)},enqueueForceUpdate:function(i,a){i=i._reactInternals;var c=Ko(i),h=$l(c);h.tag=u$,a!=null&&(bb(a),h.callback=a),a=Nl(i,h,c),a!==null&&(gr(a,i,c),cf(a,i,c)),_t!==null&&typeof _t.markForceUpdateScheduled=="function"&&_t.markForceUpdateScheduled(i,c)}},Vp=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)},Vu=null,sS=null,e$=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),Fr=!1,t$={},n$={},r$={},o$={},Fu=!1,i$={},cS={},uS={dehydrated:null,treeContext:null,retryLane:0},a$=!1,dS=K(null),fS=K(null),l$={},Fp=null,Uu=null,Wu=!1,s$=0,c$=1,u$=2,hS=3,Wl=!1,d$=!1,mS=null,pS=!1,f$=null;f$=new Set;var nl=!1,yr=!1,gS=!1,h$=typeof WeakSet=="function"?WeakSet:Set,Ur=null,qu=null,Gu=null,m$=!1,Dr=null,Xo=!1,Wi=null,Kf=8192,p$=!1;try{var g$=Object.preventExtensions({})}catch{p$=!0}var _4={getCacheForType:function(i){var a=hr(Br),c=a.data.get(i);return c===void 0&&(c=i(),a.data.set(i,c)),c},getOwner:function(){return co}};if(typeof Symbol=="function"&&Symbol.for){var Yf=Symbol.for;Yf("selector.component"),Yf("selector.has_pseudo_class"),Yf("selector.role"),Yf("selector.test_id"),Yf("selector.text")}var B4=[],H4=typeof WeakMap=="function"?WeakMap:Map,Qo=0,$o=2,rl=4,ol=0,Xf=1,Ku=2,vS=3,fc=4,v$=5,Up=6,cr=Qo,er=null,wn=null,Rn=0,Lo=0,Qf=1,hc=2,Zf=3,y$=4,yS=5,Yu=6,Jf=7,bS=8,tr=Lo,Zo=null,il=!1,Xu=!1,SS=!1,xa=0,br=ol,ql=0,Gl=0,CS=0,Jo=0,mc=0,eh=null,qi=null,Wp=!1,xS=0,b$=300,qp=1/0,S$=500,th=null,Kl=null,Gp=!1,pc=null,nh=0,wS=0,ES=null,j4=50,rh=0,OS=null,RS=!1,Kp=!1,L4=50,gc=0,oh=null,Qu=!1,C$=0,V4=1,F4=2,Yp=null,x$=!1,w$=new Set,U4={},Xp=null,Zu=null,TS=!1,MS=!1,Qp=!1,$S=!1,vc=0,NS={};(function(){for(var i=0;i<yM.length;i++){var a=yM[i],c=a.toLowerCase();a=a[0].toUpperCase()+a.slice(1),Hi(c,"on"+a)}Hi(hM,"onAnimationEnd"),Hi(mM,"onAnimationIteration"),Hi(pM,"onAnimationStart"),Hi("dblclick","onDoubleClick"),Hi("focusin","onFocus"),Hi("focusout","onBlur"),Hi(O4,"onTransitionRun"),Hi(R4,"onTransitionStart"),Hi(T4,"onTransitionCancel"),Hi(gM,"onTransitionEnd")})(),Kt("onMouseEnter",["mouseout","mouseover"]),Kt("onMouseLeave",["mouseout","mouseover"]),Kt("onPointerEnter",["pointerout","pointerover"]),Kt("onPointerLeave",["pointerout","pointerover"]),St("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),St("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),St("onBeforeInput",["compositionend","keypress","textInput","paste"]),St("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),St("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),St("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ih="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(" "),AS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ih)),Zp="_reactListening"+Math.random().toString(36).slice(2),E$=!1,O$=!1,Jp=!1,R$=!1,eg=!1,tg=!1,T$=!1,ng={},W4=/\r\n?/g,q4=/\u0000|\uFFFD/g,yc="http://www.w3.org/1999/xlink",DS="http://www.w3.org/XML/1998/namespace",G4="javascript:throw new Error('React form unexpectedly submitted.')",K4="suppressHydrationWarning",rg="$",og="/$",bc="$?",Sc="$!",IS="F!",M$="F",Y4="style",al=0,Ju=1,ig=2,kS=null,PS=null,$$={dialog:!0,webview:!0},zS=null,N$=typeof setTimeout=="function"?setTimeout:void 0,X4=typeof clearTimeout=="function"?clearTimeout:void 0,_S=-1,A$=typeof Promise=="function"?Promise:void 0,Q4=typeof queueMicrotask=="function"?queueMicrotask:typeof A$<"u"?function(i){return A$.resolve(null).then(i).catch(FL)}:N$,Cc=0,ah=1,D$=2,I$=3,Ri=4,Ti=new Map,k$=new Set,ll=sr.d;sr.d={f:function(){var i=ll.f(),a=hu();return i||a},r:function(i){var a=Dt(i);a!==null&&a.tag===5&&a.type==="form"?gO(a):ll.r(i)},D:function(i){ll.D(i),oT("dns-prefetch",i,null)},C:function(i,a){ll.C(i,a),oT("preconnect",i,a)},L:function(i,a,c){ll.L(i,a,c);var h=ed;if(h&&i&&a){var v='link[rel="preload"][as="'+rt(a)+'"]';a==="image"&&c&&c.imageSrcSet?(v+='[imagesrcset="'+rt(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(v+='[imagesizes="'+rt(c.imageSizes)+'"]')):v+='[href="'+rt(i)+'"]';var C=v;switch(a){case"style":C=vu(i);break;case"script":C=yu(i)}Ti.has(C)||(i=Sn({rel:"preload",href:a==="image"&&c&&c.imageSrcSet?void 0:i,as:a},c),Ti.set(C,i),h.querySelector(v)!==null||a==="style"&&h.querySelector(bf(C))||a==="script"&&h.querySelector(Sf(C))||(a=h.createElement("link"),Zr(a,"link",i),lt(a),h.head.appendChild(a)))}},m:function(i,a){ll.m(i,a);var c=ed;if(c&&i){var h=a&&typeof a.as=="string"?a.as:"script",v='link[rel="modulepreload"][as="'+rt(h)+'"][href="'+rt(i)+'"]',C=v;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":C=yu(i)}if(!Ti.has(C)&&(i=Sn({rel:"modulepreload",href:i},a),Ti.set(C,i),c.querySelector(v)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(Sf(C)))return}h=c.createElement("link"),Zr(h,"link",i),lt(h),c.head.appendChild(h)}}},X:function(i,a){ll.X(i,a);var c=ed;if(c&&i){var h=wt(c).hoistableScripts,v=yu(i),C=h.get(v);C||(C=c.querySelector(Sf(v)),C||(i=Sn({src:i,async:!0},a),(a=Ti.get(v))&&p0(i,a),C=c.createElement("script"),lt(C),Zr(C,"link",i),c.head.appendChild(C)),C={type:"script",instance:C,count:1,state:null},h.set(v,C))}},S:function(i,a,c){ll.S(i,a,c);var h=ed;if(h&&i){var v=wt(h).hoistableStyles,C=vu(i);a=a||"default";var R=v.get(C);if(!R){var k={loading:Cc,preload:null};if(R=h.querySelector(bf(C)))k.loading=ah|Ri;else{i=Sn({rel:"stylesheet",href:i,"data-precedence":a},c),(c=Ti.get(C))&&m0(i,c);var U=R=h.createElement("link");lt(U),Zr(U,"link",i),U._p=new Promise(function(X,Ae){U.onload=X,U.onerror=Ae}),U.addEventListener("load",function(){k.loading|=ah}),U.addEventListener("error",function(){k.loading|=D$}),k.loading|=Ri,hp(R,a,h)}R={type:"stylesheet",instance:R,count:1,state:k},v.set(C,R)}}},M:function(i,a){ll.M(i,a);var c=ed;if(c&&i){var h=wt(c).hoistableScripts,v=yu(i),C=h.get(v);C||(C=c.querySelector(Sf(v)),C||(i=Sn({src:i,async:!0,type:"module"},a),(a=Ti.get(v))&&p0(i,a),C=c.createElement("script"),lt(C),Zr(C,"link",i),c.head.appendChild(C)),C={type:"script",instance:C,count:1,state:null},h.set(v,C))}}};var ed=typeof document>"u"?null:document,ag=null,lh=null,BS=null,lg=null,xc=w3,sh={$$typeof:ha,Provider:null,Consumer:null,_currentValue:xc,_currentValue2:xc,_threadCount:0},P$="%c%s%c ",z$="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",_$="",sg=" ",B$=Function.prototype.bind,H$=!1,j$=null,L$=null,V$=null,F$=null,U$=null,W$=null,q$=null,G$=null,K$=null;j$=function(i,a,c,h){a=t(i,a),a!==null&&(c=e(a.memoizedState,c,0,h),a.memoizedState=c,a.baseState=c,i.memoizedProps=Sn({},i.memoizedProps),c=so(i,2),c!==null&&gr(c,i,2))},L$=function(i,a,c){a=t(i,a),a!==null&&(c=o(a.memoizedState,c,0),a.memoizedState=c,a.baseState=c,i.memoizedProps=Sn({},i.memoizedProps),c=so(i,2),c!==null&&gr(c,i,2))},V$=function(i,a,c,h){a=t(i,a),a!==null&&(c=n(a.memoizedState,c,h),a.memoizedState=c,a.baseState=c,i.memoizedProps=Sn({},i.memoizedProps),c=so(i,2),c!==null&&gr(c,i,2))},F$=function(i,a,c){i.pendingProps=e(i.memoizedProps,a,0,c),i.alternate&&(i.alternate.pendingProps=i.pendingProps),a=so(i,2),a!==null&&gr(a,i,2)},U$=function(i,a){i.pendingProps=o(i.memoizedProps,a,0),i.alternate&&(i.alternate.pendingProps=i.pendingProps),a=so(i,2),a!==null&&gr(a,i,2)},W$=function(i,a,c){i.pendingProps=n(i.memoizedProps,a,c),i.alternate&&(i.alternate.pendingProps=i.pendingProps),a=so(i,2),a!==null&&gr(a,i,2)},q$=function(i){var a=so(i,2);a!==null&&gr(a,i,2)},G$=function(i){s=i},K$=function(i){l=i};var cg=!0,ug=null,HS=!1,Yl=null,Xl=null,Ql=null,ch=new Map,uh=new Map,Zl=[],Z4="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".split(" "),dg=null;if(vp.prototype.render=C0.prototype.render=function(i,a){var c=this._internalRoot;if(c===null)throw Error("Cannot update an unmounted root.");typeof a=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):w(a)?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof a<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),a=c.current;var h=Ko(a);mT(a,h,i,c,null,null)},vp.prototype.unmount=C0.prototype.unmount=function(i){if(typeof i=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),i=this._internalRoot,i!==null){this._internalRoot=null;var a=i.containerInfo;(cr&($o|rl))!==Qo&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),hT(null,i,null,null),hu(),a[Js]=null}},vp.prototype.unstable_scheduleHydration=function(i){if(i){var a=kn();i={blockedOn:null,target:i,priority:a};for(var c=0;c<Zl.length&&a!==0&&a<Zl[c].priority;c++);Zl.splice(c,0,i),c===0&&bT(i)}},function(){var i=x0.version;if(i!=="19.0.0")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
275
- - react: `+(i+`
276
- - react-dom: 19.0.0
277
- Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),sr.findDOMNode=function(i){var a=i._reactInternals;if(a===void 0)throw typeof i.render=="function"?Error("Unable to find node on an unmounted component."):(i=Object.keys(i).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+i));return i=V(a),i=i!==null?G(i):null,i=i===null?null:i.stateNode,i},!function(){var i={bundleType:1,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:Ve,findFiberByHostInstance:kt,reconcilerVersion:"19.0.0"};return i.overrideHookState=j$,i.overrideHookStateDeletePath=L$,i.overrideHookStateRenamePath=V$,i.overrideProps=F$,i.overridePropsDeletePath=U$,i.overridePropsRenamePath=W$,i.scheduleUpdate=q$,i.setErrorHandler=G$,i.setSuspenseHandler=K$,i.scheduleRefresh=S,i.scheduleRoot=b,i.setRefreshHandler=x,i.getCurrentFiber=f3,i.getLaneLabelMap=h3,i.injectProfilingHooks=Ze,we(i)}()&&ya&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var Y$=window.location.protocol;/^(https?|file):$/.test(Y$)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(Y$==="file:"?`
278
- You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}dh.createRoot=function(i,a){if(!w(i))throw Error("Target container is not a DOM element.");xT(i);var c=!1,h="",v=EO,C=OO,R=RO,k=null;return a!=null&&(a.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof a=="object"&&a!==null&&a.$$typeof===kl&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
279
-
280
- let root = createRoot(domContainer);
281
- root.render(<App />);`),a.unstable_strictMode===!0&&(c=!0),a.identifierPrefix!==void 0&&(h=a.identifierPrefix),a.onUncaughtError!==void 0&&(v=a.onUncaughtError),a.onCaughtError!==void 0&&(C=a.onCaughtError),a.onRecoverableError!==void 0&&(R=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(k=a.unstable_transitionCallbacks)),a=dT(i,1,!1,null,null,c,h,v,C,R,k,null),i[Js]=a.current,i0(i.nodeType===8?i.parentNode:i),new C0(a)},dh.hydrateRoot=function(i,a,c){if(!w(i))throw Error("Target container is not a DOM element.");xT(i),a===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var h=!1,v="",C=EO,R=OO,k=RO,U=null,X=null;return c!=null&&(c.unstable_strictMode===!0&&(h=!0),c.identifierPrefix!==void 0&&(v=c.identifierPrefix),c.onUncaughtError!==void 0&&(C=c.onUncaughtError),c.onCaughtError!==void 0&&(R=c.onCaughtError),c.onRecoverableError!==void 0&&(k=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(U=c.unstable_transitionCallbacks),c.formState!==void 0&&(X=c.formState)),a=dT(i,1,!0,a,c??null,h,v,C,R,k,U,X),a.context=fT(null),c=a.current,h=Ko(c),v=$l(h),v.callback=null,Nl(c,v,h),a.current.lanes=h,st(a,h),da(a),i[Js]=a.current,i0(i),new vp(a)},dh.version="19.0.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),dh}var iN;function s5(){return iN||(iN=1,VS.exports=l5()),VS.exports}var c5=s5();const u5=Lv(c5);var y=im();const ee=Lv(y),Vv=xk({__proto__:null,default:ee},[y]);var qS={exports:{}},fh={},aN;function d5(){if(aN)return fh;aN=1;/**
282
- * @license React
283
- * react-jsx-runtime.development.js
284
- *
285
- * Copyright (c) Meta Platforms, Inc. and affiliates.
286
- *
287
- * This source code is licensed under the MIT license found in the
288
- * LICENSE file in the root directory of this source tree.
289
- */return function(){function t(I){if(I==null)return null;if(typeof I=="function")return I.$$typeof===V?null:I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case N:return"Fragment";case $:return"Portal";case z:return"Profiler";case A:return"StrictMode";case W:return"Suspense";case q:return"SuspenseList"}if(typeof I=="object")switch(typeof I.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),I.$$typeof){case B:return(I.displayName||"Context")+".Provider";case P:return(I._context.displayName||"Context")+".Consumer";case L:var me=I.render;return I=I.displayName,I||(I=me.displayName||me.name||"",I=I!==""?"ForwardRef("+I+")":"ForwardRef"),I;case H:return me=I.displayName||null,me!==null?me:t(I.type)||"Memo";case J:me=I._payload,I=I._init;try{return t(I(me))}catch{}}return null}function e(I){return""+I}function n(I){try{e(I);var me=!1}catch{me=!0}if(me){me=console;var oe=me.error,ge=typeof Symbol=="function"&&Symbol.toStringTag&&I[Symbol.toStringTag]||I.constructor.name||"Object";return oe.call(me,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ge),e(I)}}function r(){}function o(){if(Q===0){se=console.log,de=console.info,xe=console.warn,fe=console.error,Me=console.group,ze=console.groupCollapsed,Oe=console.groupEnd;var I={configurable:!0,enumerable:!0,value:r,writable:!0};Object.defineProperties(console,{info:I,log:I,warn:I,error:I,group:I,groupCollapsed:I,groupEnd:I})}Q++}function l(){if(Q--,Q===0){var I={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Y({},I,{value:se}),info:Y({},I,{value:de}),warn:Y({},I,{value:xe}),error:Y({},I,{value:fe}),group:Y({},I,{value:Me}),groupCollapsed:Y({},I,{value:ze}),groupEnd:Y({},I,{value:Oe})})}0>Q&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function s(I){if(he===void 0)try{throw Error()}catch(oe){var me=oe.stack.trim().match(/\n( *(at )?)/);he=me&&me[1]||"",De=-1<oe.stack.indexOf(`
290
- at`)?" (<anonymous>)":-1<oe.stack.indexOf("@")?"@unknown:0:0":""}return`
291
- `+he+I+De}function u(I,me){if(!I||pe)return"";var oe=we.get(I);if(oe!==void 0)return oe;pe=!0,oe=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var ge=null;ge=G.H,G.H=null,o();try{var Ue={DetermineComponentFrameRoot:function(){try{if(me){var et=function(){throw Error()};if(Object.defineProperty(et.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(et,[])}catch(at){var st=at}Reflect.construct(I,[],et)}else{try{et.call()}catch(at){st=at}I.call(et.prototype)}}else{try{throw Error()}catch(at){st=at}(et=I())&&typeof et.catch=="function"&&et.catch(function(){})}}catch(at){if(at&&st&&typeof at.stack=="string")return[at.stack,st.stack]}return[null,null]}};Ue.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var Fe=Object.getOwnPropertyDescriptor(Ue.DetermineComponentFrameRoot,"name");Fe&&Fe.configurable&&Object.defineProperty(Ue.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var Te=Ue.DetermineComponentFrameRoot(),_e=Te[0],it=Te[1];if(_e&&it){var Xe=_e.split(`
292
- `),dt=it.split(`
293
- `);for(Te=Fe=0;Fe<Xe.length&&!Xe[Fe].includes("DetermineComponentFrameRoot");)Fe++;for(;Te<dt.length&&!dt[Te].includes("DetermineComponentFrameRoot");)Te++;if(Fe===Xe.length||Te===dt.length)for(Fe=Xe.length-1,Te=dt.length-1;1<=Fe&&0<=Te&&Xe[Fe]!==dt[Te];)Te--;for(;1<=Fe&&0<=Te;Fe--,Te--)if(Xe[Fe]!==dt[Te]){if(Fe!==1||Te!==1)do if(Fe--,Te--,0>Te||Xe[Fe]!==dt[Te]){var vt=`
294
- `+Xe[Fe].replace(" at new "," at ");return I.displayName&&vt.includes("<anonymous>")&&(vt=vt.replace("<anonymous>",I.displayName)),typeof I=="function"&&we.set(I,vt),vt}while(1<=Fe&&0<=Te);break}}}finally{pe=!1,G.H=ge,l(),Error.prepareStackTrace=oe}return Xe=(Xe=I?I.displayName||I.name:"")?s(Xe):"",typeof I=="function"&&we.set(I,Xe),Xe}function d(I){if(I==null)return"";if(typeof I=="function"){var me=I.prototype;return u(I,!(!me||!me.isReactComponent))}if(typeof I=="string")return s(I);switch(I){case W:return s("Suspense");case q:return s("SuspenseList")}if(typeof I=="object")switch(I.$$typeof){case L:return I=u(I.render,!1),I;case H:return d(I.type);case J:me=I._payload,I=I._init;try{return d(I(me))}catch{}}return""}function f(){var I=G.A;return I===null?null:I.getOwner()}function m(I){if(K.call(I,"key")){var me=Object.getOwnPropertyDescriptor(I,"key").get;if(me&&me.isReactWarning)return!1}return I.key!==void 0}function p(I,me){function oe(){Pe||(Pe=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",me))}oe.isReactWarning=!0,Object.defineProperty(I,"key",{get:oe,configurable:!0})}function g(){var I=t(this.type);return Ze[I]||(Ze[I]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),I=this.props.ref,I!==void 0?I:null}function b(I,me,oe,ge,Ue,Fe){return oe=Fe.ref,I={$$typeof:T,type:I,key:me,props:Fe,_owner:Ue},(oe!==void 0?oe:null)!==null?Object.defineProperty(I,"ref",{enumerable:!1,get:g}):Object.defineProperty(I,"ref",{enumerable:!1,value:null}),I._store={},Object.defineProperty(I._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(I,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(I.props),Object.freeze(I)),I}function S(I,me,oe,ge,Ue,Fe){if(typeof I=="string"||typeof I=="function"||I===N||I===z||I===A||I===W||I===q||I===_||typeof I=="object"&&I!==null&&(I.$$typeof===J||I.$$typeof===H||I.$$typeof===B||I.$$typeof===P||I.$$typeof===L||I.$$typeof===ne||I.getModuleId!==void 0)){var Te=me.children;if(Te!==void 0)if(ge)if(ae(Te)){for(ge=0;ge<Te.length;ge++)x(Te[ge],I);Object.freeze&&Object.freeze(Te)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else x(Te,I)}else Te="",(I===void 0||typeof I=="object"&&I!==null&&Object.keys(I).length===0)&&(Te+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),I===null?ge="null":ae(I)?ge="array":I!==void 0&&I.$$typeof===T?(ge="<"+(t(I.type)||"Unknown")+" />",Te=" Did you accidentally export a JSX literal instead of a component?"):ge=typeof I,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ge,Te);if(K.call(me,"key")){Te=t(I);var _e=Object.keys(me).filter(function(Xe){return Xe!=="key"});ge=0<_e.length?"{key: someKey, "+_e.join(": ..., ")+": ...}":"{key: someKey}",We[Te+ge]||(_e=0<_e.length?"{"+_e.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
295
- let props = %s;
296
- <%s {...props} />
297
- React keys must be passed directly to JSX without using spread:
298
- let props = %s;
299
- <%s key={someKey} {...props} />`,ge,Te,_e,Te),We[Te+ge]=!0)}if(Te=null,oe!==void 0&&(n(oe),Te=""+oe),m(me)&&(n(me.key),Te=""+me.key),"key"in me){oe={};for(var it in me)it!=="key"&&(oe[it]=me[it])}else oe=me;return Te&&p(oe,typeof I=="function"?I.displayName||I.name||"Unknown":I),b(I,Te,Fe,Ue,f(),oe)}function x(I,me){if(typeof I=="object"&&I&&I.$$typeof!==$e){if(ae(I))for(var oe=0;oe<I.length;oe++){var ge=I[oe];w(ge)&&O(ge,me)}else if(w(I))I._store&&(I._store.validated=1);else if(I===null||typeof I!="object"?oe=null:(oe=j&&I[j]||I["@@iterator"],oe=typeof oe=="function"?oe:null),typeof oe=="function"&&oe!==I.entries&&(oe=oe.call(I),oe!==I))for(;!(I=oe.next()).done;)w(I.value)&&O(I.value,me)}}function w(I){return typeof I=="object"&&I!==null&&I.$$typeof===T}function O(I,me){if(I._store&&!I._store.validated&&I.key==null&&(I._store.validated=1,me=E(me),!ut[me])){ut[me]=!0;var oe="";I&&I._owner!=null&&I._owner!==f()&&(oe=null,typeof I._owner.tag=="number"?oe=t(I._owner.type):typeof I._owner.name=="string"&&(oe=I._owner.name),oe=" It was passed a child from "+oe+".");var ge=G.getCurrentStack;G.getCurrentStack=function(){var Ue=d(I.type);return ge&&(Ue+=ge()||""),Ue},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',me,oe),G.getCurrentStack=ge}}function E(I){var me="",oe=f();return oe&&(oe=t(oe.type))&&(me=`
300
-
301
- Check the render method of \``+oe+"`."),me||(I=t(I))&&(me=`
302
-
303
- Check the top-level render call using <`+I+">."),me}var M=im(),T=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),B=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),j=Symbol.iterator,V=Symbol.for("react.client.reference"),G=M.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=Object.prototype.hasOwnProperty,Y=Object.assign,ne=Symbol.for("react.client.reference"),ae=Array.isArray,Q=0,se,de,xe,fe,Me,ze,Oe;r.__reactDisabledLog=!0;var he,De,pe=!1,we=new(typeof WeakMap=="function"?WeakMap:Map),$e=Symbol.for("react.client.reference"),Pe,Ze={},We={},ut={};fh.Fragment=N,fh.jsx=function(I,me,oe,ge,Ue){return S(I,me,oe,!1,ge,Ue)},fh.jsxs=function(I,me,oe,ge,Ue){return S(I,me,oe,!0,ge,Ue)}}(),fh}var lN;function f5(){return lN||(lN=1,qS.exports=d5()),qS.exports}var Jl=f5(),GS={exports:{}};/*!
304
- Copyright (c) 2018 Jed Watson.
305
- Licensed under the MIT License (MIT), see
306
- http://jedwatson.github.io/classnames
307
- */var sN;function h5(){return sN||(sN=1,function(t){(function(){var e={}.hasOwnProperty;function n(){for(var l="",s=0;s<arguments.length;s++){var u=arguments[s];u&&(l=o(l,r(u)))}return l}function r(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return n.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var s="";for(var u in l)e.call(l,u)&&l[u]&&(s=o(s,u));return s}function o(l,s){return s?l?l+" "+s:l+s:l}t.exports?(n.default=n,t.exports=n):window.classNames=n})()}(GS)),GS.exports}var m5=h5();const Se=Lv(m5),p5="_fullscreen_giq1a_2",g5="_block_giq1a_3",v5="_container_giq1a_31",y5="_ring_giq1a_39",b5="_message_giq1a_70",es={fullscreen:p5,block:g5,container:v5,ring:y5,message:b5};function mg(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var KS={exports:{}};/*!
308
- localForage -- Offline Storage, Improved
309
- Version 1.10.0
310
- https://localforage.github.io/localForage
311
- (c) 2013-2017 Mozilla, Apache License 2.0
312
- */var cN;function S5(){return cN||(cN=1,function(t,e){(function(n){t.exports=n()})(function(){return function n(r,o,l){function s(f,m){if(!o[f]){if(!r[f]){var p=typeof mg=="function"&&mg;if(!m&&p)return p(f,!0);if(u)return u(f,!0);var g=new Error("Cannot find module '"+f+"'");throw g.code="MODULE_NOT_FOUND",g}var b=o[f]={exports:{}};r[f][0].call(b.exports,function(S){var x=r[f][1][S];return s(x||S)},b,b.exports,n,r,o,l)}return o[f].exports}for(var u=typeof mg=="function"&&mg,d=0;d<l.length;d++)s(l[d]);return s}({1:[function(n,r,o){(function(l){var s=l.MutationObserver||l.WebKitMutationObserver,u;if(s){var d=0,f=new s(S),m=l.document.createTextNode("");f.observe(m,{characterData:!0}),u=function(){m.data=d=++d%2}}else if(!l.setImmediate&&typeof l.MessageChannel<"u"){var p=new l.MessageChannel;p.port1.onmessage=S,u=function(){p.port2.postMessage(0)}}else"document"in l&&"onreadystatechange"in l.document.createElement("script")?u=function(){var w=l.document.createElement("script");w.onreadystatechange=function(){S(),w.onreadystatechange=null,w.parentNode.removeChild(w),w=null},l.document.documentElement.appendChild(w)}:u=function(){setTimeout(S,0)};var g,b=[];function S(){g=!0;for(var w,O,E=b.length;E;){for(O=b,b=[],w=-1;++w<E;)O[w]();E=b.length}g=!1}r.exports=x;function x(w){b.push(w)===1&&!g&&u()}}).call(this,typeof fg<"u"?fg:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(n,r,o){var l=n(1);function s(){}var u={},d=["REJECTED"],f=["FULFILLED"],m=["PENDING"];r.exports=p;function p($){if(typeof $!="function")throw new TypeError("resolver must be a function");this.state=m,this.queue=[],this.outcome=void 0,$!==s&&x(this,$)}p.prototype.catch=function($){return this.then(null,$)},p.prototype.then=function($,N){if(typeof $!="function"&&this.state===f||typeof N!="function"&&this.state===d)return this;var A=new this.constructor(s);if(this.state!==m){var z=this.state===f?$:N;b(A,z,this.outcome)}else this.queue.push(new g(A,$,N));return A};function g($,N,A){this.promise=$,typeof N=="function"&&(this.onFulfilled=N,this.callFulfilled=this.otherCallFulfilled),typeof A=="function"&&(this.onRejected=A,this.callRejected=this.otherCallRejected)}g.prototype.callFulfilled=function($){u.resolve(this.promise,$)},g.prototype.otherCallFulfilled=function($){b(this.promise,this.onFulfilled,$)},g.prototype.callRejected=function($){u.reject(this.promise,$)},g.prototype.otherCallRejected=function($){b(this.promise,this.onRejected,$)};function b($,N,A){l(function(){var z;try{z=N(A)}catch(P){return u.reject($,P)}z===$?u.reject($,new TypeError("Cannot resolve promise with itself")):u.resolve($,z)})}u.resolve=function($,N){var A=w(S,N);if(A.status==="error")return u.reject($,A.value);var z=A.value;if(z)x($,z);else{$.state=f,$.outcome=N;for(var P=-1,B=$.queue.length;++P<B;)$.queue[P].callFulfilled(N)}return $},u.reject=function($,N){$.state=d,$.outcome=N;for(var A=-1,z=$.queue.length;++A<z;)$.queue[A].callRejected(N);return $};function S($){var N=$&&$.then;if($&&(typeof $=="object"||typeof $=="function")&&typeof N=="function")return function(){N.apply($,arguments)}}function x($,N){var A=!1;function z(W){A||(A=!0,u.reject($,W))}function P(W){A||(A=!0,u.resolve($,W))}function B(){N(P,z)}var L=w(B);L.status==="error"&&z(L.value)}function w($,N){var A={};try{A.value=$(N),A.status="success"}catch(z){A.status="error",A.value=z}return A}p.resolve=O;function O($){return $ instanceof this?$:u.resolve(new this(s),$)}p.reject=E;function E($){var N=new this(s);return u.reject(N,$)}p.all=M;function M($){var N=this;if(Object.prototype.toString.call($)!=="[object Array]")return this.reject(new TypeError("must be an array"));var A=$.length,z=!1;if(!A)return this.resolve([]);for(var P=new Array(A),B=0,L=-1,W=new this(s);++L<A;)q($[L],L);return W;function q(H,J){N.resolve(H).then(_,function(j){z||(z=!0,u.reject(W,j))});function _(j){P[J]=j,++B===A&&!z&&(z=!0,u.resolve(W,P))}}}p.race=T;function T($){var N=this;if(Object.prototype.toString.call($)!=="[object Array]")return this.reject(new TypeError("must be an array"));var A=$.length,z=!1;if(!A)return this.resolve([]);for(var P=-1,B=new this(s);++P<A;)L($[P]);return B;function L(W){N.resolve(W).then(function(q){z||(z=!0,u.resolve(B,q))},function(q){z||(z=!0,u.reject(B,q))})}}},{1:1}],3:[function(n,r,o){(function(l){typeof l.Promise!="function"&&(l.Promise=n(2))}).call(this,typeof fg<"u"?fg:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(n,r,o){var l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F};function s(F,ie){if(!(F instanceof ie))throw new TypeError("Cannot call a class as a function")}function u(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var d=u();function f(){try{if(!d||!d.open)return!1;var F=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),ie=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!F||ie)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function m(F,ie){F=F||[],ie=ie||{};try{return new Blob(F,ie)}catch(ve){if(ve.name!=="TypeError")throw ve;for(var Z=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,be=new Z,Ce=0;Ce<F.length;Ce+=1)be.append(F[Ce]);return be.getBlob(ie.type)}}typeof Promise>"u"&&n(3);var p=Promise;function g(F,ie){ie&&F.then(function(Z){ie(null,Z)},function(Z){ie(Z)})}function b(F,ie,Z){typeof ie=="function"&&F.then(ie),typeof Z=="function"&&F.catch(Z)}function S(F){return typeof F!="string"&&(console.warn(F+" used as a key, but it is not a string."),F=String(F)),F}function x(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var w="local-forage-detect-blob-support",O=void 0,E={},M=Object.prototype.toString,T="readonly",$="readwrite";function N(F){for(var ie=F.length,Z=new ArrayBuffer(ie),be=new Uint8Array(Z),Ce=0;Ce<ie;Ce++)be[Ce]=F.charCodeAt(Ce);return Z}function A(F){return new p(function(ie){var Z=F.transaction(w,$),be=m([""]);Z.objectStore(w).put(be,"key"),Z.onabort=function(Ce){Ce.preventDefault(),Ce.stopPropagation(),ie(!1)},Z.oncomplete=function(){var Ce=navigator.userAgent.match(/Chrome\/(\d+)/),ve=navigator.userAgent.match(/Edge\//);ie(ve||!Ce||parseInt(Ce[1],10)>=43)}}).catch(function(){return!1})}function z(F){return typeof O=="boolean"?p.resolve(O):A(F).then(function(ie){return O=ie,O})}function P(F){var ie=E[F.name],Z={};Z.promise=new p(function(be,Ce){Z.resolve=be,Z.reject=Ce}),ie.deferredOperations.push(Z),ie.dbReady?ie.dbReady=ie.dbReady.then(function(){return Z.promise}):ie.dbReady=Z.promise}function B(F){var ie=E[F.name],Z=ie.deferredOperations.pop();if(Z)return Z.resolve(),Z.promise}function L(F,ie){var Z=E[F.name],be=Z.deferredOperations.pop();if(be)return be.reject(ie),be.promise}function W(F,ie){return new p(function(Z,be){if(E[F.name]=E[F.name]||ne(),F.db)if(ie)P(F),F.db.close();else return Z(F.db);var Ce=[F.name];ie&&Ce.push(F.version);var ve=d.open.apply(d,Ce);ie&&(ve.onupgradeneeded=function(qe){var Be=ve.result;try{Be.createObjectStore(F.storeName),qe.oldVersion<=1&&Be.createObjectStore(w)}catch(Ne){if(Ne.name==="ConstraintError")console.warn('The database "'+F.name+'" has been upgraded from version '+qe.oldVersion+" to version "+qe.newVersion+', but the storage "'+F.storeName+'" already exists.');else throw Ne}}),ve.onerror=function(qe){qe.preventDefault(),be(ve.error)},ve.onsuccess=function(){var qe=ve.result;qe.onversionchange=function(Be){Be.target.close()},Z(qe),B(F)}})}function q(F){return W(F,!1)}function H(F){return W(F,!0)}function J(F,ie){if(!F.db)return!0;var Z=!F.db.objectStoreNames.contains(F.storeName),be=F.version<F.db.version,Ce=F.version>F.db.version;if(be&&(F.version!==ie&&console.warn('The database "'+F.name+`" can't be downgraded from version `+F.db.version+" to version "+F.version+"."),F.version=F.db.version),Ce||Z){if(Z){var ve=F.db.version+1;ve>F.version&&(F.version=ve)}return!0}return!1}function _(F){return new p(function(ie,Z){var be=new FileReader;be.onerror=Z,be.onloadend=function(Ce){var ve=btoa(Ce.target.result||"");ie({__local_forage_encoded_blob:!0,data:ve,type:F.type})},be.readAsBinaryString(F)})}function j(F){var ie=N(atob(F.data));return m([ie],{type:F.type})}function V(F){return F&&F.__local_forage_encoded_blob}function G(F){var ie=this,Z=ie._initReady().then(function(){var be=E[ie._dbInfo.name];if(be&&be.dbReady)return be.dbReady});return b(Z,F,F),Z}function K(F){P(F);for(var ie=E[F.name],Z=ie.forages,be=0;be<Z.length;be++){var Ce=Z[be];Ce._dbInfo.db&&(Ce._dbInfo.db.close(),Ce._dbInfo.db=null)}return F.db=null,q(F).then(function(ve){return F.db=ve,J(F)?H(F):ve}).then(function(ve){F.db=ie.db=ve;for(var qe=0;qe<Z.length;qe++)Z[qe]._dbInfo.db=ve}).catch(function(ve){throw L(F,ve),ve})}function Y(F,ie,Z,be){be===void 0&&(be=1);try{var Ce=F.db.transaction(F.storeName,ie);Z(null,Ce)}catch(ve){if(be>0&&(!F.db||ve.name==="InvalidStateError"||ve.name==="NotFoundError"))return p.resolve().then(function(){if(!F.db||ve.name==="NotFoundError"&&!F.db.objectStoreNames.contains(F.storeName)&&F.version<=F.db.version)return F.db&&(F.version=F.db.version+1),H(F)}).then(function(){return K(F).then(function(){Y(F,ie,Z,be-1)})}).catch(Z);Z(ve)}}function ne(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function ae(F){var ie=this,Z={db:null};if(F)for(var be in F)Z[be]=F[be];var Ce=E[Z.name];Ce||(Ce=ne(),E[Z.name]=Ce),Ce.forages.push(ie),ie._initReady||(ie._initReady=ie.ready,ie.ready=G);var ve=[];function qe(){return p.resolve()}for(var Be=0;Be<Ce.forages.length;Be++){var Ne=Ce.forages[Be];Ne!==ie&&ve.push(Ne._initReady().catch(qe))}var je=Ce.forages.slice(0);return p.all(ve).then(function(){return Z.db=Ce.db,q(Z)}).then(function(Ge){return Z.db=Ge,J(Z,ie._defaultConfig.version)?H(Z):Ge}).then(function(Ge){Z.db=Ce.db=Ge,ie._dbInfo=Z;for(var ft=0;ft<je.length;ft++){var Pt=je[ft];Pt!==ie&&(Pt._dbInfo.db=Z.db,Pt._dbInfo.version=Z.version)}})}function Q(F,ie){var Z=this;F=S(F);var be=new p(function(Ce,ve){Z.ready().then(function(){Y(Z._dbInfo,T,function(qe,Be){if(qe)return ve(qe);try{var Ne=Be.objectStore(Z._dbInfo.storeName),je=Ne.get(F);je.onsuccess=function(){var Ge=je.result;Ge===void 0&&(Ge=null),V(Ge)&&(Ge=j(Ge)),Ce(Ge)},je.onerror=function(){ve(je.error)}}catch(Ge){ve(Ge)}})}).catch(ve)});return g(be,ie),be}function se(F,ie){var Z=this,be=new p(function(Ce,ve){Z.ready().then(function(){Y(Z._dbInfo,T,function(qe,Be){if(qe)return ve(qe);try{var Ne=Be.objectStore(Z._dbInfo.storeName),je=Ne.openCursor(),Ge=1;je.onsuccess=function(){var ft=je.result;if(ft){var Pt=ft.value;V(Pt)&&(Pt=j(Pt));var Jt=F(Pt,ft.key,Ge++);Jt!==void 0?Ce(Jt):ft.continue()}else Ce()},je.onerror=function(){ve(je.error)}}catch(ft){ve(ft)}})}).catch(ve)});return g(be,ie),be}function de(F,ie,Z){var be=this;F=S(F);var Ce=new p(function(ve,qe){var Be;be.ready().then(function(){return Be=be._dbInfo,M.call(ie)==="[object Blob]"?z(Be.db).then(function(Ne){return Ne?ie:_(ie)}):ie}).then(function(Ne){Y(be._dbInfo,$,function(je,Ge){if(je)return qe(je);try{var ft=Ge.objectStore(be._dbInfo.storeName);Ne===null&&(Ne=void 0);var Pt=ft.put(Ne,F);Ge.oncomplete=function(){Ne===void 0&&(Ne=null),ve(Ne)},Ge.onabort=Ge.onerror=function(){var Jt=Pt.error?Pt.error:Pt.transaction.error;qe(Jt)}}catch(Jt){qe(Jt)}})}).catch(qe)});return g(Ce,Z),Ce}function xe(F,ie){var Z=this;F=S(F);var be=new p(function(Ce,ve){Z.ready().then(function(){Y(Z._dbInfo,$,function(qe,Be){if(qe)return ve(qe);try{var Ne=Be.objectStore(Z._dbInfo.storeName),je=Ne.delete(F);Be.oncomplete=function(){Ce()},Be.onerror=function(){ve(je.error)},Be.onabort=function(){var Ge=je.error?je.error:je.transaction.error;ve(Ge)}}catch(Ge){ve(Ge)}})}).catch(ve)});return g(be,ie),be}function fe(F){var ie=this,Z=new p(function(be,Ce){ie.ready().then(function(){Y(ie._dbInfo,$,function(ve,qe){if(ve)return Ce(ve);try{var Be=qe.objectStore(ie._dbInfo.storeName),Ne=Be.clear();qe.oncomplete=function(){be()},qe.onabort=qe.onerror=function(){var je=Ne.error?Ne.error:Ne.transaction.error;Ce(je)}}catch(je){Ce(je)}})}).catch(Ce)});return g(Z,F),Z}function Me(F){var ie=this,Z=new p(function(be,Ce){ie.ready().then(function(){Y(ie._dbInfo,T,function(ve,qe){if(ve)return Ce(ve);try{var Be=qe.objectStore(ie._dbInfo.storeName),Ne=Be.count();Ne.onsuccess=function(){be(Ne.result)},Ne.onerror=function(){Ce(Ne.error)}}catch(je){Ce(je)}})}).catch(Ce)});return g(Z,F),Z}function ze(F,ie){var Z=this,be=new p(function(Ce,ve){if(F<0){Ce(null);return}Z.ready().then(function(){Y(Z._dbInfo,T,function(qe,Be){if(qe)return ve(qe);try{var Ne=Be.objectStore(Z._dbInfo.storeName),je=!1,Ge=Ne.openKeyCursor();Ge.onsuccess=function(){var ft=Ge.result;if(!ft){Ce(null);return}F===0||je?Ce(ft.key):(je=!0,ft.advance(F))},Ge.onerror=function(){ve(Ge.error)}}catch(ft){ve(ft)}})}).catch(ve)});return g(be,ie),be}function Oe(F){var ie=this,Z=new p(function(be,Ce){ie.ready().then(function(){Y(ie._dbInfo,T,function(ve,qe){if(ve)return Ce(ve);try{var Be=qe.objectStore(ie._dbInfo.storeName),Ne=Be.openKeyCursor(),je=[];Ne.onsuccess=function(){var Ge=Ne.result;if(!Ge){be(je);return}je.push(Ge.key),Ge.continue()},Ne.onerror=function(){Ce(Ne.error)}}catch(Ge){Ce(Ge)}})}).catch(Ce)});return g(Z,F),Z}function he(F,ie){ie=x.apply(this,arguments);var Z=this.config();F=typeof F!="function"&&F||{},F.name||(F.name=F.name||Z.name,F.storeName=F.storeName||Z.storeName);var be=this,Ce;if(!F.name)Ce=p.reject("Invalid arguments");else{var ve=F.name===Z.name&&be._dbInfo.db,qe=ve?p.resolve(be._dbInfo.db):q(F).then(function(Be){var Ne=E[F.name],je=Ne.forages;Ne.db=Be;for(var Ge=0;Ge<je.length;Ge++)je[Ge]._dbInfo.db=Be;return Be});F.storeName?Ce=qe.then(function(Be){if(Be.objectStoreNames.contains(F.storeName)){var Ne=Be.version+1;P(F);var je=E[F.name],Ge=je.forages;Be.close();for(var ft=0;ft<Ge.length;ft++){var Pt=Ge[ft];Pt._dbInfo.db=null,Pt._dbInfo.version=Ne}var Jt=new p(function(en,bn){var vn=d.open(F.name,Ne);vn.onerror=function(Un){var lr=vn.result;lr.close(),bn(Un)},vn.onupgradeneeded=function(){var Un=vn.result;Un.deleteObjectStore(F.storeName)},vn.onsuccess=function(){var Un=vn.result;Un.close(),en(Un)}});return Jt.then(function(en){je.db=en;for(var bn=0;bn<Ge.length;bn++){var vn=Ge[bn];vn._dbInfo.db=en,B(vn._dbInfo)}}).catch(function(en){throw(L(F,en)||p.resolve()).catch(function(){}),en})}}):Ce=qe.then(function(Be){P(F);var Ne=E[F.name],je=Ne.forages;Be.close();for(var Ge=0;Ge<je.length;Ge++){var ft=je[Ge];ft._dbInfo.db=null}var Pt=new p(function(Jt,en){var bn=d.deleteDatabase(F.name);bn.onerror=function(){var vn=bn.result;vn&&vn.close(),en(bn.error)},bn.onblocked=function(){console.warn('dropInstance blocked for database "'+F.name+'" until all open connections are closed')},bn.onsuccess=function(){var vn=bn.result;vn&&vn.close(),Jt(vn)}});return Pt.then(function(Jt){Ne.db=Jt;for(var en=0;en<je.length;en++){var bn=je[en];B(bn._dbInfo)}}).catch(function(Jt){throw(L(F,Jt)||p.resolve()).catch(function(){}),Jt})})}return g(Ce,ie),Ce}var De={_driver:"asyncStorage",_initStorage:ae,_support:f(),iterate:se,getItem:Q,setItem:de,removeItem:xe,clear:fe,length:Me,key:ze,keys:Oe,dropInstance:he};function pe(){return typeof openDatabase=="function"}var we="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$e="~~local_forage_type~",Pe=/^~~local_forage_type~([^~]+)~/,Ze="__lfsc__:",We=Ze.length,ut="arbf",I="blob",me="si08",oe="ui08",ge="uic8",Ue="si16",Fe="si32",Te="ur16",_e="ui32",it="fl32",Xe="fl64",dt=We+ut.length,vt=Object.prototype.toString;function et(F){var ie=F.length*.75,Z=F.length,be,Ce=0,ve,qe,Be,Ne;F[F.length-1]==="="&&(ie--,F[F.length-2]==="="&&ie--);var je=new ArrayBuffer(ie),Ge=new Uint8Array(je);for(be=0;be<Z;be+=4)ve=we.indexOf(F[be]),qe=we.indexOf(F[be+1]),Be=we.indexOf(F[be+2]),Ne=we.indexOf(F[be+3]),Ge[Ce++]=ve<<2|qe>>4,Ge[Ce++]=(qe&15)<<4|Be>>2,Ge[Ce++]=(Be&3)<<6|Ne&63;return je}function st(F){var ie=new Uint8Array(F),Z="",be;for(be=0;be<ie.length;be+=3)Z+=we[ie[be]>>2],Z+=we[(ie[be]&3)<<4|ie[be+1]>>4],Z+=we[(ie[be+1]&15)<<2|ie[be+2]>>6],Z+=we[ie[be+2]&63];return ie.length%3===2?Z=Z.substring(0,Z.length-1)+"=":ie.length%3===1&&(Z=Z.substring(0,Z.length-2)+"=="),Z}function at(F,ie){var Z="";if(F&&(Z=vt.call(F)),F&&(Z==="[object ArrayBuffer]"||F.buffer&&vt.call(F.buffer)==="[object ArrayBuffer]")){var be,Ce=Ze;F instanceof ArrayBuffer?(be=F,Ce+=ut):(be=F.buffer,Z==="[object Int8Array]"?Ce+=me:Z==="[object Uint8Array]"?Ce+=oe:Z==="[object Uint8ClampedArray]"?Ce+=ge:Z==="[object Int16Array]"?Ce+=Ue:Z==="[object Uint16Array]"?Ce+=Te:Z==="[object Int32Array]"?Ce+=Fe:Z==="[object Uint32Array]"?Ce+=_e:Z==="[object Float32Array]"?Ce+=it:Z==="[object Float64Array]"?Ce+=Xe:ie(new Error("Failed to get type for BinaryArray"))),ie(Ce+st(be))}else if(Z==="[object Blob]"){var ve=new FileReader;ve.onload=function(){var qe=$e+F.type+"~"+st(this.result);ie(Ze+I+qe)},ve.readAsArrayBuffer(F)}else try{ie(JSON.stringify(F))}catch(qe){console.error("Couldn't convert value into a JSON string: ",F),ie(null,qe)}}function Ct(F){if(F.substring(0,We)!==Ze)return JSON.parse(F);var ie=F.substring(dt),Z=F.substring(We,dt),be;if(Z===I&&Pe.test(ie)){var Ce=ie.match(Pe);be=Ce[1],ie=ie.substring(Ce[0].length)}var ve=et(ie);switch(Z){case ut:return ve;case I:return m([ve],{type:be});case me:return new Int8Array(ve);case oe:return new Uint8Array(ve);case ge:return new Uint8ClampedArray(ve);case Ue:return new Int16Array(ve);case Te:return new Uint16Array(ve);case Fe:return new Int32Array(ve);case _e:return new Uint32Array(ve);case it:return new Float32Array(ve);case Xe:return new Float64Array(ve);default:throw new Error("Unkown type: "+Z)}}var $t={serialize:at,deserialize:Ct,stringToBuffer:et,bufferToString:st};function Ut(F,ie,Z,be){F.executeSql("CREATE TABLE IF NOT EXISTS "+ie.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],Z,be)}function sn(F){var ie=this,Z={db:null};if(F)for(var be in F)Z[be]=typeof F[be]!="string"?F[be].toString():F[be];var Ce=new p(function(ve,qe){try{Z.db=openDatabase(Z.name,String(Z.version),Z.description,Z.size)}catch(Be){return qe(Be)}Z.db.transaction(function(Be){Ut(Be,Z,function(){ie._dbInfo=Z,ve()},function(Ne,je){qe(je)})},qe)});return Z.serializer=$t,Ce}function un(F,ie,Z,be,Ce,ve){F.executeSql(Z,be,Ce,function(qe,Be){Be.code===Be.SYNTAX_ERR?qe.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[ie.storeName],function(Ne,je){je.rows.length?ve(Ne,Be):Ut(Ne,ie,function(){Ne.executeSql(Z,be,Ce,ve)},ve)},ve):ve(qe,Be)},ve)}function kn(F,ie){var Z=this;F=S(F);var be=new p(function(Ce,ve){Z.ready().then(function(){var qe=Z._dbInfo;qe.db.transaction(function(Be){un(Be,qe,"SELECT * FROM "+qe.storeName+" WHERE key = ? LIMIT 1",[F],function(Ne,je){var Ge=je.rows.length?je.rows.item(0).value:null;Ge&&(Ge=qe.serializer.deserialize(Ge)),Ce(Ge)},function(Ne,je){ve(je)})})}).catch(ve)});return g(be,ie),be}function Rt(F,ie){var Z=this,be=new p(function(Ce,ve){Z.ready().then(function(){var qe=Z._dbInfo;qe.db.transaction(function(Be){un(Be,qe,"SELECT * FROM "+qe.storeName,[],function(Ne,je){for(var Ge=je.rows,ft=Ge.length,Pt=0;Pt<ft;Pt++){var Jt=Ge.item(Pt),en=Jt.value;if(en&&(en=qe.serializer.deserialize(en)),en=F(en,Jt.key,Pt+1),en!==void 0){Ce(en);return}}Ce()},function(Ne,je){ve(je)})})}).catch(ve)});return g(be,ie),be}function bt(F,ie,Z,be){var Ce=this;F=S(F);var ve=new p(function(qe,Be){Ce.ready().then(function(){ie===void 0&&(ie=null);var Ne=ie,je=Ce._dbInfo;je.serializer.serialize(ie,function(Ge,ft){ft?Be(ft):je.db.transaction(function(Pt){un(Pt,je,"INSERT OR REPLACE INTO "+je.storeName+" (key, value) VALUES (?, ?)",[F,Ge],function(){qe(Ne)},function(Jt,en){Be(en)})},function(Pt){if(Pt.code===Pt.QUOTA_ERR){if(be>0){qe(bt.apply(Ce,[F,Ne,Z,be-1]));return}Be(Pt)}})})}).catch(Be)});return g(ve,Z),ve}function kt(F,ie,Z){return bt.apply(this,[F,ie,Z,1])}function Dt(F,ie){var Z=this;F=S(F);var be=new p(function(Ce,ve){Z.ready().then(function(){var qe=Z._dbInfo;qe.db.transaction(function(Be){un(Be,qe,"DELETE FROM "+qe.storeName+" WHERE key = ?",[F],function(){Ce()},function(Ne,je){ve(je)})})}).catch(ve)});return g(be,ie),be}function jt(F){var ie=this,Z=new p(function(be,Ce){ie.ready().then(function(){var ve=ie._dbInfo;ve.db.transaction(function(qe){un(qe,ve,"DELETE FROM "+ve.storeName,[],function(){be()},function(Be,Ne){Ce(Ne)})})}).catch(Ce)});return g(Z,F),Z}function wt(F){var ie=this,Z=new p(function(be,Ce){ie.ready().then(function(){var ve=ie._dbInfo;ve.db.transaction(function(qe){un(qe,ve,"SELECT COUNT(key) as c FROM "+ve.storeName,[],function(Be,Ne){var je=Ne.rows.item(0).c;be(je)},function(Be,Ne){Ce(Ne)})})}).catch(Ce)});return g(Z,F),Z}function lt(F,ie){var Z=this,be=new p(function(Ce,ve){Z.ready().then(function(){var qe=Z._dbInfo;qe.db.transaction(function(Be){un(Be,qe,"SELECT key FROM "+qe.storeName+" WHERE id = ? LIMIT 1",[F+1],function(Ne,je){var Ge=je.rows.length?je.rows.item(0).key:null;Ce(Ge)},function(Ne,je){ve(je)})})}).catch(ve)});return g(be,ie),be}function St(F){var ie=this,Z=new p(function(be,Ce){ie.ready().then(function(){var ve=ie._dbInfo;ve.db.transaction(function(qe){un(qe,ve,"SELECT key FROM "+ve.storeName,[],function(Be,Ne){for(var je=[],Ge=0;Ge<Ne.rows.length;Ge++)je.push(Ne.rows.item(Ge).key);be(je)},function(Be,Ne){Ce(Ne)})})}).catch(Ce)});return g(Z,F),Z}function Kt(F){return new p(function(ie,Z){F.transaction(function(be){be.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(Ce,ve){for(var qe=[],Be=0;Be<ve.rows.length;Be++)qe.push(ve.rows.item(Be).name);ie({db:F,storeNames:qe})},function(Ce,ve){Z(ve)})},function(be){Z(be)})})}function tn(F,ie){ie=x.apply(this,arguments);var Z=this.config();F=typeof F!="function"&&F||{},F.name||(F.name=F.name||Z.name,F.storeName=F.storeName||Z.storeName);var be=this,Ce;return F.name?Ce=new p(function(ve){var qe;F.name===Z.name?qe=be._dbInfo.db:qe=openDatabase(F.name,"","",0),F.storeName?ve({db:qe,storeNames:[F.storeName]}):ve(Kt(qe))}).then(function(ve){return new p(function(qe,Be){ve.db.transaction(function(Ne){function je(Jt){return new p(function(en,bn){Ne.executeSql("DROP TABLE IF EXISTS "+Jt,[],function(){en()},function(vn,Un){bn(Un)})})}for(var Ge=[],ft=0,Pt=ve.storeNames.length;ft<Pt;ft++)Ge.push(je(ve.storeNames[ft]));p.all(Ge).then(function(){qe()}).catch(function(Jt){Be(Jt)})},function(Ne){Be(Ne)})})}):Ce=p.reject("Invalid arguments"),g(Ce,ie),Ce}var Tt={_driver:"webSQLStorage",_initStorage:sn,_support:pe(),iterate:Rt,getItem:kn,setItem:kt,removeItem:Dt,clear:jt,length:wt,key:lt,keys:St,dropInstance:tn};function gt(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function Nt(F,ie){var Z=F.name+"/";return F.storeName!==ie.storeName&&(Z+=F.storeName+"/"),Z}function zt(){var F="_localforage_support_test";try{return localStorage.setItem(F,!0),localStorage.removeItem(F),!1}catch{return!0}}function Et(){return!zt()||localStorage.length>0}function D(F){var ie=this,Z={};if(F)for(var be in F)Z[be]=F[be];return Z.keyPrefix=Nt(F,ie._defaultConfig),Et()?(ie._dbInfo=Z,Z.serializer=$t,p.resolve()):p.reject()}function ce(F){var ie=this,Z=ie.ready().then(function(){for(var be=ie._dbInfo.keyPrefix,Ce=localStorage.length-1;Ce>=0;Ce--){var ve=localStorage.key(Ce);ve.indexOf(be)===0&&localStorage.removeItem(ve)}});return g(Z,F),Z}function ke(F,ie){var Z=this;F=S(F);var be=Z.ready().then(function(){var Ce=Z._dbInfo,ve=localStorage.getItem(Ce.keyPrefix+F);return ve&&(ve=Ce.serializer.deserialize(ve)),ve});return g(be,ie),be}function Qe(F,ie){var Z=this,be=Z.ready().then(function(){for(var Ce=Z._dbInfo,ve=Ce.keyPrefix,qe=ve.length,Be=localStorage.length,Ne=1,je=0;je<Be;je++){var Ge=localStorage.key(je);if(Ge.indexOf(ve)===0){var ft=localStorage.getItem(Ge);if(ft&&(ft=Ce.serializer.deserialize(ft)),ft=F(ft,Ge.substring(qe),Ne++),ft!==void 0)return ft}}});return g(be,ie),be}function ot(F,ie){var Z=this,be=Z.ready().then(function(){var Ce=Z._dbInfo,ve;try{ve=localStorage.key(F)}catch{ve=null}return ve&&(ve=ve.substring(Ce.keyPrefix.length)),ve});return g(be,ie),be}function mt(F){var ie=this,Z=ie.ready().then(function(){for(var be=ie._dbInfo,Ce=localStorage.length,ve=[],qe=0;qe<Ce;qe++){var Be=localStorage.key(qe);Be.indexOf(be.keyPrefix)===0&&ve.push(Be.substring(be.keyPrefix.length))}return ve});return g(Z,F),Z}function rt(F){var ie=this,Z=ie.keys().then(function(be){return be.length});return g(Z,F),Z}function Wt(F,ie){var Z=this;F=S(F);var be=Z.ready().then(function(){var Ce=Z._dbInfo;localStorage.removeItem(Ce.keyPrefix+F)});return g(be,ie),be}function Yt(F,ie,Z){var be=this;F=S(F);var Ce=be.ready().then(function(){ie===void 0&&(ie=null);var ve=ie;return new p(function(qe,Be){var Ne=be._dbInfo;Ne.serializer.serialize(ie,function(je,Ge){if(Ge)Be(Ge);else try{localStorage.setItem(Ne.keyPrefix+F,je),qe(ve)}catch(ft){(ft.name==="QuotaExceededError"||ft.name==="NS_ERROR_DOM_QUOTA_REACHED")&&Be(ft),Be(ft)}})})});return g(Ce,Z),Ce}function Xt(F,ie){if(ie=x.apply(this,arguments),F=typeof F!="function"&&F||{},!F.name){var Z=this.config();F.name=F.name||Z.name,F.storeName=F.storeName||Z.storeName}var be=this,Ce;return F.name?Ce=new p(function(ve){F.storeName?ve(Nt(F,be._defaultConfig)):ve(F.name+"/")}).then(function(ve){for(var qe=localStorage.length-1;qe>=0;qe--){var Be=localStorage.key(qe);Be.indexOf(ve)===0&&localStorage.removeItem(Be)}}):Ce=p.reject("Invalid arguments"),g(Ce,ie),Ce}var cn={_driver:"localStorageWrapper",_initStorage:D,_support:gt(),iterate:Qe,getItem:ke,setItem:Yt,removeItem:Wt,clear:ce,length:rt,key:ot,keys:mt,dropInstance:Xt},ct=function(ie,Z){return ie===Z||typeof ie=="number"&&typeof Z=="number"&&isNaN(ie)&&isNaN(Z)},Ot=function(ie,Z){for(var be=ie.length,Ce=0;Ce<be;){if(ct(ie[Ce],Z))return!0;Ce++}return!1},xt=Array.isArray||function(F){return Object.prototype.toString.call(F)==="[object Array]"},nt={},qt={},on={INDEXEDDB:De,WEBSQL:Tt,LOCALSTORAGE:cn},dn=[on.INDEXEDDB._driver,on.WEBSQL._driver,on.LOCALSTORAGE._driver],Fn=["dropInstance"],gn=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Fn),_n={description:"",driver:dn.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Dn(F,ie){F[ie]=function(){var Z=arguments;return F.ready().then(function(){return F[ie].apply(F,Z)})}}function Ln(){for(var F=1;F<arguments.length;F++){var ie=arguments[F];if(ie)for(var Z in ie)ie.hasOwnProperty(Z)&&(xt(ie[Z])?arguments[0][Z]=ie[Z].slice():arguments[0][Z]=ie[Z])}return arguments[0]}var Jn=function(){function F(ie){s(this,F);for(var Z in on)if(on.hasOwnProperty(Z)){var be=on[Z],Ce=be._driver;this[Z]=Ce,nt[Ce]||this.defineDriver(be)}this._defaultConfig=Ln({},_n),this._config=Ln({},this._defaultConfig,ie),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return F.prototype.config=function(Z){if((typeof Z>"u"?"undefined":l(Z))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var be in Z){if(be==="storeName"&&(Z[be]=Z[be].replace(/\W/g,"_")),be==="version"&&typeof Z[be]!="number")return new Error("Database version must be a number.");this._config[be]=Z[be]}return"driver"in Z&&Z.driver?this.setDriver(this._config.driver):!0}else return typeof Z=="string"?this._config[Z]:this._config},F.prototype.defineDriver=function(Z,be,Ce){var ve=new p(function(qe,Be){try{var Ne=Z._driver,je=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!Z._driver){Be(je);return}for(var Ge=gn.concat("_initStorage"),ft=0,Pt=Ge.length;ft<Pt;ft++){var Jt=Ge[ft],en=!Ot(Fn,Jt);if((en||Z[Jt])&&typeof Z[Jt]!="function"){Be(je);return}}var bn=function(){for(var lr=function(Pr){return function(){var ia=new Error("Method "+Pr+" is not implemented by the current driver"),Bi=p.reject(ia);return g(Bi,arguments[arguments.length-1]),Bi}},or=0,Wo=Fn.length;or<Wo;or++){var Ba=Fn[or];Z[Ba]||(Z[Ba]=lr(Ba))}};bn();var vn=function(lr){nt[Ne]&&console.info("Redefining LocalForage driver: "+Ne),nt[Ne]=Z,qt[Ne]=lr,qe()};"_support"in Z?Z._support&&typeof Z._support=="function"?Z._support().then(vn,Be):vn(!!Z._support):vn(!0)}catch(Un){Be(Un)}});return b(ve,be,Ce),ve},F.prototype.driver=function(){return this._driver||null},F.prototype.getDriver=function(Z,be,Ce){var ve=nt[Z]?p.resolve(nt[Z]):p.reject(new Error("Driver not found."));return b(ve,be,Ce),ve},F.prototype.getSerializer=function(Z){var be=p.resolve($t);return b(be,Z),be},F.prototype.ready=function(Z){var be=this,Ce=be._driverSet.then(function(){return be._ready===null&&(be._ready=be._initDriver()),be._ready});return b(Ce,Z,Z),Ce},F.prototype.setDriver=function(Z,be,Ce){var ve=this;xt(Z)||(Z=[Z]);var qe=this._getSupportedDrivers(Z);function Be(){ve._config.driver=ve.driver()}function Ne(ft){return ve._extend(ft),Be(),ve._ready=ve._initStorage(ve._config),ve._ready}function je(ft){return function(){var Pt=0;function Jt(){for(;Pt<ft.length;){var en=ft[Pt];return Pt++,ve._dbInfo=null,ve._ready=null,ve.getDriver(en).then(Ne).catch(Jt)}Be();var bn=new Error("No available storage method found.");return ve._driverSet=p.reject(bn),ve._driverSet}return Jt()}}var Ge=this._driverSet!==null?this._driverSet.catch(function(){return p.resolve()}):p.resolve();return this._driverSet=Ge.then(function(){var ft=qe[0];return ve._dbInfo=null,ve._ready=null,ve.getDriver(ft).then(function(Pt){ve._driver=Pt._driver,Be(),ve._wrapLibraryMethodsWithReady(),ve._initDriver=je(qe)})}).catch(function(){Be();var ft=new Error("No available storage method found.");return ve._driverSet=p.reject(ft),ve._driverSet}),b(this._driverSet,be,Ce),this._driverSet},F.prototype.supports=function(Z){return!!qt[Z]},F.prototype._extend=function(Z){Ln(this,Z)},F.prototype._getSupportedDrivers=function(Z){for(var be=[],Ce=0,ve=Z.length;Ce<ve;Ce++){var qe=Z[Ce];this.supports(qe)&&be.push(qe)}return be},F.prototype._wrapLibraryMethodsWithReady=function(){for(var Z=0,be=gn.length;Z<be;Z++)Dn(this,gn[Z])},F.prototype.createInstance=function(Z){return new F(Z)},F}(),dr=new Jn;r.exports=dr},{3:3}]},{},[4])(4)})}(KS)),KS.exports}S5();function C5(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function x5(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){C5(t,o,n[o])})}return t}function w5(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n.push.apply(n,r)}return n}function E5(t,e){return e=e??{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):w5(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}function O5(t,e){if(t==null)return{};var n=R5(t,e),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(o=0;o<l.length;o++)r=l[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function R5(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,l;for(l=0;l<r.length;l++)o=r[l],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}y.createContext(void 0);function T5(t){var e=t.full,n=e===void 0?!1:e,r=t.block,o=r===void 0?!1:r,l=t.className,s=l===void 0?"":l,u=t.message,d=u===void 0?"Loading":u,f=O5(t,["full","block","className","message"]);function m(){return Jl.jsxs("div",E5(x5({className:es.container},f),{children:[Jl.jsx("div",{className:es.ring}),Jl.jsx("div",{className:es.ring}),Jl.jsx("div",{className:es.ring}),Jl.jsx("div",{className:es.ring}),d&&Jl.jsx("div",{className:es.message,children:d})]}))}return n?Jl.jsx("div",{className:Se(es.fullscreen,s),children:m()}):o?Jl.jsx("div",{className:Se(es.block,s),children:m()}):m()}y.createContext(void 0);function ro(t){this.content=t}ro.prototype={constructor:ro,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,o=r.find(t),l=r.content.slice();return o==-1?l.push(n||t,e):(l[o+1]=e,n&&(l[o]=n)),new ro(l)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new ro(n)},addToStart:function(t,e){return new ro([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new ro(n)},addBefore:function(t,e,n){var r=this.remove(e),o=r.content.slice(),l=r.find(t);return o.splice(l==-1?o.length:l,0,e,n),new ro(o)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=ro.from(t),t.size?new ro(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=ro.from(t),t.size?new ro(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=ro.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}};ro.from=function(t){if(t instanceof ro)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new ro(e)};function Ek(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let o=t.child(r),l=e.child(r);if(o==l){n+=o.nodeSize;continue}if(!o.sameMarkup(l))return n;if(o.isText&&o.text!=l.text){for(let s=0;o.text[s]==l.text[s];s++)n++;return n}if(o.content.size||l.content.size){let s=Ek(o.content,l.content,n+1);if(s!=null)return s}n+=o.nodeSize}}function Ok(t,e,n,r){for(let o=t.childCount,l=e.childCount;;){if(o==0||l==0)return o==l?null:{a:n,b:r};let s=t.child(--o),u=e.child(--l),d=s.nodeSize;if(s==u){n-=d,r-=d;continue}if(!s.sameMarkup(u))return{a:n,b:r};if(s.isText&&s.text!=u.text){let f=0,m=Math.min(s.text.length,u.text.length);for(;f<m&&s.text[s.text.length-f-1]==u.text[u.text.length-f-1];)f++,n--,r--;return{a:n,b:r}}if(s.content.size||u.content.size){let f=Ok(s.content,u.content,n-1,r-1);if(f)return f}n-=d,r-=d}}class tt{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,o=0,l){for(let s=0,u=0;u<n;s++){let d=this.content[s],f=u+d.nodeSize;if(f>e&&r(d,o+u,l||null,s)!==!1&&d.content.size){let m=u+1;d.nodesBetween(Math.max(0,e-m),Math.min(d.content.size,n-m),r,o+m)}u=f}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,o){let l="",s=!0;return this.nodesBetween(e,n,(u,d)=>{let f=u.isText?u.text.slice(Math.max(e,d)-d,n-d):u.isLeaf?o?typeof o=="function"?o(u):o:u.type.spec.leafText?u.type.spec.leafText(u):"":"";u.isBlock&&(u.isLeaf&&f||u.isTextblock)&&r&&(s?s=!1:l+=r),l+=f},0),l}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,o=this.content.slice(),l=0;for(n.isText&&n.sameMarkup(r)&&(o[o.length-1]=n.withText(n.text+r.text),l=1);l<e.content.length;l++)o.push(e.content[l]);return new tt(o,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],o=0;if(n>e)for(let l=0,s=0;s<n;l++){let u=this.content[l],d=s+u.nodeSize;d>e&&((s<e||d>n)&&(u.isText?u=u.cut(Math.max(0,e-s),Math.min(u.text.length,n-s)):u=u.cut(Math.max(0,e-s-1),Math.min(u.content.size,n-s-1))),r.push(u),o+=u.nodeSize),s=d}return new tt(r,o)}cutByIndex(e,n){return e==n?tt.empty:e==0&&n==this.content.length?this:new tt(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let o=this.content.slice(),l=this.size+n.nodeSize-r.nodeSize;return o[e]=n,new tt(o,l)}addToStart(e){return new tt([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new tt(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let o=this.content[n];e(o,r,n),r+=o.nodeSize}}findDiffStart(e,n=0){return Ek(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return Ok(this,e,n,r)}findIndex(e,n=-1){if(e==0)return pg(0,e);if(e==this.size)return pg(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,o=0;;r++){let l=this.child(r),s=o+l.nodeSize;if(s>=e)return s==e||n>0?pg(r+1,s):pg(r,o);o=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return tt.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new tt(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return tt.empty;let n,r=0;for(let o=0;o<e.length;o++){let l=e[o];r+=l.nodeSize,o&&l.isText&&e[o-1].sameMarkup(l)?(n||(n=e.slice(0,o)),n[n.length-1]=l.withText(n[n.length-1].text+l.text)):n&&n.push(l)}return new tt(n||e,r)}static from(e){if(!e)return tt.empty;if(e instanceof tt)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new tt([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}tt.empty=new tt([],0);const YS={index:0,offset:0};function pg(t,e){return YS.index=t,YS.offset=e,YS}function av(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!av(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!av(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}let nr=class r1{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let o=0;o<e.length;o++){let l=e[o];if(this.eq(l))return e;if(this.type.excludes(l.type))n||(n=e.slice(0,o));else{if(l.type.excludes(this.type))return e;!r&&l.type.rank>this.type.rank&&(n||(n=e.slice(0,o)),n.push(this),r=!0),n&&n.push(l)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&av(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);let o=r.create(n.attrs);return r.checkAttrs(o.attrs),o}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return r1.none;if(e instanceof r1)return[e];let n=e.slice();return n.sort((r,o)=>r.type.rank-o.type.rank),n}};nr.none=[];class lv extends Error{}class At{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=Tk(this.content,e+this.openStart,n);return r&&new At(r,this.openStart,this.openEnd)}removeBetween(e,n){return new At(Rk(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return At.empty;let r=n.openStart||0,o=n.openEnd||0;if(typeof r!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new At(tt.fromJSON(e,n.content),r,o)}static maxOpen(e,n=!0){let r=0,o=0;for(let l=e.firstChild;l&&!l.isLeaf&&(n||!l.type.spec.isolating);l=l.firstChild)r++;for(let l=e.lastChild;l&&!l.isLeaf&&(n||!l.type.spec.isolating);l=l.lastChild)o++;return new At(e,r,o)}}At.empty=new At(tt.empty,0,0);function Rk(t,e,n){let{index:r,offset:o}=t.findIndex(e),l=t.maybeChild(r),{index:s,offset:u}=t.findIndex(n);if(o==e||l.isText){if(u!=n&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(r,l.copy(Rk(l.content,e-o-1,n-o-1)))}function Tk(t,e,n,r){let{index:o,offset:l}=t.findIndex(e),s=t.maybeChild(o);if(l==e||s.isText)return t.cut(0,e).append(n).append(t.cut(e));let u=Tk(s.content,e-l-1,n);return u&&t.replaceChild(o,s.copy(u))}function M5(t,e,n){if(n.openStart>t.depth)throw new lv("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new lv("Inconsistent open depths");return Mk(t,e,n,0)}function Mk(t,e,n,r){let o=t.index(r),l=t.node(r);if(o==e.index(r)&&r<t.depth-n.openStart){let s=Mk(t,e,n,r+1);return l.copy(l.content.replaceChild(o,s))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let s=t.parent,u=s.content;return Pc(s,u.cut(0,t.parentOffset).append(n.content).append(u.cut(e.parentOffset)))}else{let{start:s,end:u}=$5(n,t);return Pc(l,Nk(t,s,u,e,r))}else return Pc(l,sv(t,e,r))}function $k(t,e){if(!e.type.compatibleContent(t.type))throw new lv("Cannot join "+e.type.name+" onto "+t.type.name)}function o1(t,e,n){let r=t.node(n);return $k(r,e.node(n)),r}function kc(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function $h(t,e,n,r){let o=(e||t).node(n),l=0,s=e?e.index(n):o.childCount;t&&(l=t.index(n),t.depth>n?l++:t.textOffset&&(kc(t.nodeAfter,r),l++));for(let u=l;u<s;u++)kc(o.child(u),r);e&&e.depth==n&&e.textOffset&&kc(e.nodeBefore,r)}function Pc(t,e){return t.type.checkContent(e),t.copy(e)}function Nk(t,e,n,r,o){let l=t.depth>o&&o1(t,e,o+1),s=r.depth>o&&o1(n,r,o+1),u=[];return $h(null,t,o,u),l&&s&&e.index(o)==n.index(o)?($k(l,s),kc(Pc(l,Nk(t,e,n,r,o+1)),u)):(l&&kc(Pc(l,sv(t,e,o+1)),u),$h(e,n,o,u),s&&kc(Pc(s,sv(n,r,o+1)),u)),$h(r,null,o,u),new tt(u)}function sv(t,e,n){let r=[];if($h(null,t,n,r),t.depth>n){let o=o1(t,e,n+1);kc(Pc(o,sv(t,e,n+1)),r)}return $h(e,null,n,r),new tt(r)}function $5(t,e){let n=e.depth-t.openStart,o=e.node(n).copy(t.content);for(let l=n-1;l>=0;l--)o=e.node(l).copy(tt.from(o));return{start:o.resolveNoCache(t.openStart+n),end:o.resolveNoCache(o.content.size-t.openEnd-n)}}class _h{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],o=e.child(n);return r?e.child(n).cut(r):o}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],o=n==0?0:this.path[n*3-1]+1;for(let l=0;l<e;l++)o+=r.child(l).nodeSize;return o}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return nr.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),o=e.maybeChild(n);if(!r){let u=r;r=o,o=u}let l=r.marks;for(var s=0;s<l.length;s++)l[s].type.spec.inclusive===!1&&(!o||!l[s].isInSet(o.marks))&&(l=l[s--].removeFromSet(l));return l}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,o=e.parent.maybeChild(e.index());for(var l=0;l<r.length;l++)r[l].type.spec.inclusive===!1&&(!o||!r[l].isInSet(o.marks))&&(r=r[l--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new cv(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],o=0,l=n;for(let s=e;;){let{index:u,offset:d}=s.content.findIndex(l),f=l-d;if(r.push(s,u,o+d),!f||(s=s.child(u),s.isText))break;l=f-1,o+=d+1}return new _h(n,r,l)}static resolveCached(e,n){let r=uN.get(e);if(r)for(let l=0;l<r.elts.length;l++){let s=r.elts[l];if(s.pos==n)return s}else uN.set(e,r=new N5);let o=r.elts[r.i]=_h.resolve(e,n);return r.i=(r.i+1)%A5,o}}class N5{constructor(){this.elts=[],this.i=0}}const A5=12,uN=new WeakMap;class cv{constructor(e,n,r){this.$from=e,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const D5=Object.create(null);let vs=class i1{constructor(e,n,r,o=nr.none){this.type=e,this.attrs=n,this.marks=o,this.content=r||tt.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,o=0){this.content.nodesBetween(e,n,r,o,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,o){return this.content.textBetween(e,n,r,o)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&av(this.attrs,n||e.defaultAttrs||D5)&&nr.sameSet(this.marks,r||nr.none)}copy(e=null){return e==this.content?this:new i1(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new i1(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return At.empty;let o=this.resolve(e),l=this.resolve(n),s=r?0:o.sharedDepth(n),u=o.start(s),f=o.node(s).content.cut(o.pos-u,l.pos-u);return new At(f,o.depth-s,l.depth-s)}replace(e,n,r){return M5(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:o}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(o==e||n.isText)return n;e-=o+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let o=this.content.child(n-1);return{node:o,index:n-1,offset:r-o.nodeSize}}resolve(e){return _h.resolveCached(this,e)}resolveNoCache(e){return _h.resolve(this,e)}rangeHasMark(e,n,r){let o=!1;return n>e&&this.nodesBetween(e,n,l=>(r.isInSet(l.marks)&&(o=!0),!o)),o}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),Ak(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=tt.empty,o=0,l=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,o,l),u=s&&s.matchFragment(this.content,n);if(!u||!u.validEnd)return!1;for(let d=o;d<l;d++)if(!this.type.allowsMarks(r.child(d).marks))return!1;return!0}canReplaceWith(e,n,r,o){if(o&&!this.type.allowsMarks(o))return!1;let l=this.contentMatchAt(e).matchType(r),s=l&&l.matchFragment(this.content,n);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=nr.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!nr.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let o=tt.fromJSON(e,n.content),l=e.nodeType(n.type).create(n.attrs,o,r);return l.type.checkAttrs(l.attrs),l}};vs.prototype.text=void 0;class uv extends vs{constructor(e,n,r,o){if(super(e,n,null,o),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Ak(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new uv(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new uv(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function Ak(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class Vc{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new I5(e,n);if(r.next==null)return Vc.empty;let o=Dk(r);r.next&&r.err("Unexpected trailing text");let l=j5(H5(o));return L5(l,r),l}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let o=this;for(let l=n;o&&l<r;l++)o=o.matchType(e.child(l).type);return o}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let o=[this];function l(s,u){let d=s.matchFragment(e,r);if(d&&(!n||d.validEnd))return tt.from(u.map(f=>f.createAndFill()));for(let f=0;f<s.next.length;f++){let{type:m,next:p}=s.next[f];if(!(m.isText||m.hasRequiredAttrs())&&o.indexOf(p)==-1){o.push(p);let g=l(p,u.concat(m));if(g)return g}}return null}return l(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let o=r.shift(),l=o.match;if(l.matchType(e)){let s=[];for(let u=o;u.type;u=u.via)s.push(u.type);return s.reverse()}for(let s=0;s<l.next.length;s++){let{type:u,next:d}=l.next[s];!u.isLeaf&&!u.hasRequiredAttrs()&&!(u.name in n)&&(!o.type||d.validEnd)&&(r.push({match:u.contentMatch,type:u,via:o}),n[u.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let o=0;o<r.next.length;o++)e.indexOf(r.next[o].next)==-1&&n(r.next[o].next)}return n(this),e.map((r,o)=>{let l=o+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)l+=(s?", ":"")+r.next[s].type.name+"->"+e.indexOf(r.next[s].next);return l}).join(`
313
- `)}}Vc.empty=new Vc(!0);class I5{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function Dk(t){let e=[];do e.push(k5(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function k5(t){let e=[];do e.push(P5(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function P5(t){let e=B5(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=z5(t,e);else break;return e}function dN(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function z5(t,e){let n=dN(t),r=n;return t.eat(",")&&(t.next!="}"?r=dN(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function _5(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let o=[];for(let l in n){let s=n[l];s.isInGroup(e)&&o.push(s)}return o.length==0&&t.err("No node type or group '"+e+"' found"),o}function B5(t){if(t.eat("(")){let e=Dk(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=_5(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function H5(t){let e=[[]];return o(l(t,0),n()),e;function n(){return e.push([])-1}function r(s,u,d){let f={term:d,to:u};return e[s].push(f),f}function o(s,u){s.forEach(d=>d.to=u)}function l(s,u){if(s.type=="choice")return s.exprs.reduce((d,f)=>d.concat(l(f,u)),[]);if(s.type=="seq")for(let d=0;;d++){let f=l(s.exprs[d],u);if(d==s.exprs.length-1)return f;o(f,u=n())}else if(s.type=="star"){let d=n();return r(u,d),o(l(s.expr,d),d),[r(d)]}else if(s.type=="plus"){let d=n();return o(l(s.expr,u),d),o(l(s.expr,d),d),[r(d)]}else{if(s.type=="opt")return[r(u)].concat(l(s.expr,u));if(s.type=="range"){let d=u;for(let f=0;f<s.min;f++){let m=n();o(l(s.expr,d),m),d=m}if(s.max==-1)o(l(s.expr,d),d);else for(let f=s.min;f<s.max;f++){let m=n();r(d,m),o(l(s.expr,d),m),d=m}return[r(d)]}else{if(s.type=="name")return[r(u,void 0,s.value)];throw new Error("Unknown expr type")}}}}function Ik(t,e){return e-t}function fN(t,e){let n=[];return r(e),n.sort(Ik);function r(o){let l=t[o];if(l.length==1&&!l[0].term)return r(l[0].to);n.push(o);for(let s=0;s<l.length;s++){let{term:u,to:d}=l[s];!u&&n.indexOf(d)==-1&&r(d)}}}function j5(t){let e=Object.create(null);return n(fN(t,0));function n(r){let o=[];r.forEach(s=>{t[s].forEach(({term:u,to:d})=>{if(!u)return;let f;for(let m=0;m<o.length;m++)o[m][0]==u&&(f=o[m][1]);fN(t,d).forEach(m=>{f||o.push([u,f=[]]),f.indexOf(m)==-1&&f.push(m)})})});let l=e[r.join(",")]=new Vc(r.indexOf(t.length-1)>-1);for(let s=0;s<o.length;s++){let u=o[s][1].sort(Ik);l.next.push({type:o[s][0],next:e[u.join(",")]||n(u)})}return l}}function L5(t,e){for(let n=0,r=[t];n<r.length;n++){let o=r[n],l=!o.validEnd,s=[];for(let u=0;u<o.next.length;u++){let{type:d,next:f}=o.next[u];s.push(d.name),l&&!(d.isText||d.hasRequiredAttrs())&&(l=!1),r.indexOf(f)==-1&&r.push(f)}l&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function kk(t){let e=Object.create(null);for(let n in t){let r=t[n];if(!r.hasDefault)return null;e[n]=r.default}return e}function Pk(t,e){let n=Object.create(null);for(let r in t){let o=e&&e[r];if(o===void 0){let l=t[r];if(l.hasDefault)o=l.default;else throw new RangeError("No value supplied for attribute "+r)}n[r]=o}return n}function zk(t,e,n,r){for(let o in e)if(!(o in t))throw new RangeError(`Unsupported attribute ${o} for ${n} of type ${o}`);for(let o in t){let l=t[o];l.validate&&l.validate(e[o])}}function _k(t,e){let n=Object.create(null);if(e)for(let r in e)n[r]=new F5(t,r,e[r]);return n}let hN=class Bk{constructor(e,n,r){this.name=e,this.schema=n,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=_k(e,r.attrs),this.defaultAttrs=kk(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Vc.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:Pk(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new vs(this,this.computeAttrs(e),tt.from(n),nr.setFrom(r))}createChecked(e=null,n,r){return n=tt.from(n),this.checkContent(n),new vs(this,this.computeAttrs(e),n,nr.setFrom(r))}createAndFill(e=null,n,r){if(e=this.computeAttrs(e),n=tt.from(n),n.size){let s=this.contentMatch.fillBefore(n);if(!s)return null;n=s.append(n)}let o=this.contentMatch.matchFragment(n),l=o&&o.fillBefore(tt.empty,!0);return l?new vs(this,e,n.append(l),nr.setFrom(r)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){zk(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?n&&n.push(e[r]):n||(n=e.slice(0,r));return n?n.length?n:nr.none:e}static compile(e,n){let r=Object.create(null);e.forEach((l,s)=>r[l]=new Bk(l,n,s));let o=n.spec.topNode||"doc";if(!r[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let l in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function V5(t,e,n){let r=n.split("|");return o=>{let l=o===null?"null":typeof o;if(r.indexOf(l)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${t}, got ${l}`)}}class F5{constructor(e,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?V5(e,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class Fv{constructor(e,n,r,o){this.name=e,this.rank=n,this.schema=r,this.spec=o,this.attrs=_k(e,o.attrs),this.excluded=null;let l=kk(this.attrs);this.instance=l?new nr(this,l):null}create(e=null){return!e&&this.instance?this.instance:new nr(this,Pk(this.attrs,e))}static compile(e,n){let r=Object.create(null),o=0;return e.forEach((l,s)=>r[l]=new Fv(l,o++,n,s)),r}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}checkAttrs(e){zk(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}let Hk=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let o in e)n[o]=e[o];n.nodes=ro.from(e.nodes),n.marks=ro.from(e.marks||{}),this.nodes=hN.compile(this.spec.nodes,this),this.marks=Fv.compile(this.spec.marks,this);let r=Object.create(null);for(let o in this.nodes){if(o in this.marks)throw new RangeError(o+" can not be both a node and a mark");let l=this.nodes[o],s=l.spec.content||"",u=l.spec.marks;if(l.contentMatch=r[s]||(r[s]=Vc.parse(s,this.nodes)),l.inlineContent=l.contentMatch.inlineContent,l.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!l.isInline||!l.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=l}l.markSet=u=="_"?null:u?mN(this,u.split(" ")):u==""||!l.inlineContent?[]:null}for(let o in this.marks){let l=this.marks[o],s=l.spec.excludes;l.excluded=s==null?[l]:s==""?[]:mN(this,s.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,r,o){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof hN){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,r,o)}text(e,n){let r=this.nodes.text;return new uv(r,r.defaultAttrs,e,nr.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeFromJSON(e){return vs.fromJSON(this,e)}markFromJSON(e){return nr.fromJSON(this,e)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}};function mN(t,e){let n=[];for(let r=0;r<e.length;r++){let o=e[r],l=t.marks[o],s=l;if(l)n.push(l);else for(let u in t.marks){let d=t.marks[u];(o=="_"||d.spec.group&&d.spec.group.split(" ").indexOf(o)>-1)&&n.push(s=d)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}function U5(t){return t.tag!=null}function W5(t){return t.style!=null}class ys{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(o=>{if(U5(o))this.tags.push(o);else if(W5(o)){let l=/[^=]*/.exec(o.style)[0];r.indexOf(l)<0&&r.push(l),this.styles.push(o)}}),this.normalizeLists=!this.tags.some(o=>{if(!/^(ul|ol)\b/.test(o.tag)||!o.node)return!1;let l=e.nodes[o.node];return l.contentMatch.matchType(l)})}parse(e,n={}){let r=new gN(this,n,!1);return r.addAll(e,nr.none,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new gN(this,n,!0);return r.addAll(e,nr.none,n.from,n.to),At.maxOpen(r.finish())}matchTag(e,n,r){for(let o=r?this.tags.indexOf(r)+1:0;o<this.tags.length;o++){let l=this.tags[o];if(K5(e,l.tag)&&(l.namespace===void 0||e.namespaceURI==l.namespace)&&(!l.context||n.matchesContext(l.context))){if(l.getAttrs){let s=l.getAttrs(e);if(s===!1)continue;l.attrs=s||void 0}return l}}}matchStyle(e,n,r,o){for(let l=o?this.styles.indexOf(o)+1:0;l<this.styles.length;l++){let s=this.styles[l],u=s.style;if(!(u.indexOf(e)!=0||s.context&&!r.matchesContext(s.context)||u.length>e.length&&(u.charCodeAt(e.length)!=61||u.slice(e.length+1)!=n))){if(s.getAttrs){let d=s.getAttrs(n);if(d===!1)continue;s.attrs=d||void 0}return s}}}static schemaRules(e){let n=[];function r(o){let l=o.priority==null?50:o.priority,s=0;for(;s<n.length;s++){let u=n[s];if((u.priority==null?50:u.priority)<l)break}n.splice(s,0,o)}for(let o in e.marks){let l=e.marks[o].spec.parseDOM;l&&l.forEach(s=>{r(s=vN(s)),s.mark||s.ignore||s.clearMark||(s.mark=o)})}for(let o in e.nodes){let l=e.nodes[o].spec.parseDOM;l&&l.forEach(s=>{r(s=vN(s)),s.node||s.ignore||s.mark||(s.node=o)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new ys(e,ys.schemaRules(e)))}}const jk={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},q5={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Lk={ol:!0,ul:!0},Bh=1,a1=2,_g=4;function pN(t,e,n){return e!=null?(e?Bh:0)|(e==="full"?a1:0):t&&t.whitespace=="pre"?Bh|a1:n&-5}class gg{constructor(e,n,r,o,l,s){this.type=e,this.attrs=n,this.marks=r,this.solid=o,this.options=s,this.content=[],this.activeMarks=nr.none,this.match=l||(s&_g?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(tt.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,o;return(o=r.findWrapping(e.type))?(this.match=r,o):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Bh)){let r=this.content[this.content.length-1],o;if(r&&r.isText&&(o=/[ \t\r\n\u000c]+$/.exec(r.text))){let l=r;r.text.length==o[0].length?this.content.pop():this.content[this.content.length-1]=l.withText(l.text.slice(0,l.text.length-o[0].length))}}let n=tt.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(tt.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!jk.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class gN{constructor(e,n,r){this.parser=e,this.options=n,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let o=n.topNode,l,s=pN(null,n.preserveWhitespace,0)|(r?_g:0);o?l=new gg(o.type,o.attrs,nr.none,!0,n.topMatch||o.type.contentMatch,s):r?l=new gg(null,null,nr.none,!0,null,s):l=new gg(e.schema.topNodeType,null,nr.none,!0,null,s),this.nodes=[l],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let r=e.nodeValue,o=this.top,l=o.options&a1?"full":this.localPreserveWS||(o.options&Bh)>0;if(l==="full"||o.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(l)l!=="full"?r=r.replace(/\r?\n|\r/g," "):r=r.replace(/\r\n?/g,`
314
- `);else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let s=o.content[o.content.length-1],u=e.previousSibling;(!s||u&&u.nodeName=="BR"||s.isText&&/[ \t\r\n\u000c]$/.test(s.text))&&(r=r.slice(1))}r&&this.insertNode(this.parser.schema.text(r),n),this.findInText(e)}else this.findInside(e)}addElement(e,n,r){let o=this.localPreserveWS,l=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let s=e.nodeName.toLowerCase(),u;Lk.hasOwnProperty(s)&&this.parser.normalizeLists&&G5(e);let d=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(u=this.parser.matchTag(e,this,r));e:if(d?d.ignore:q5.hasOwnProperty(s))this.findInside(e),this.ignoreFallback(e,n);else if(!d||d.skip||d.closeParent){d&&d.closeParent?this.open=Math.max(0,this.open-1):d&&d.skip.nodeType&&(e=d.skip);let f,m=this.needsBlock;if(jk.hasOwnProperty(s))l.content.length&&l.content[0].isInline&&this.open&&(this.open--,l=this.top),f=!0,l.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);break e}let p=d&&d.skip?n:this.readStyles(e,n);p&&this.addAll(e,p),f&&this.sync(l),this.needsBlock=m}else{let f=this.readStyles(e,n);f&&this.addElementByRule(e,d,f,d.consuming===!1?u:void 0)}this.localPreserveWS=o}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
315
- `),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n)}readStyles(e,n){let r=e.style;if(r&&r.length)for(let o=0;o<this.parser.matchedStyles.length;o++){let l=this.parser.matchedStyles[o],s=r.getPropertyValue(l);if(s)for(let u=void 0;;){let d=this.parser.matchStyle(l,s,this,u);if(!d)break;if(d.ignore)return null;if(d.clearMark?n=n.filter(f=>!d.clearMark(f)):n=n.concat(this.parser.schema.marks[d.mark].create(d.attrs)),d.consuming===!1)u=d;else break}}return n}addElementByRule(e,n,r,o){let l,s;if(n.node)if(s=this.parser.schema.nodes[n.node],s.isLeaf)this.insertNode(s.create(n.attrs),r)||this.leafFallback(e,r);else{let d=this.enter(s,n.attrs||null,r,n.preserveWhitespace);d&&(l=!0,r=d)}else{let d=this.parser.schema.marks[n.mark];r=r.concat(d.create(n.attrs))}let u=this.top;if(s&&s.isLeaf)this.findInside(e);else if(o)this.addElement(e,r,o);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(d=>this.insertNode(d,r));else{let d=e;typeof n.contentElement=="string"?d=e.querySelector(n.contentElement):typeof n.contentElement=="function"?d=n.contentElement(e):n.contentElement&&(d=n.contentElement),this.findAround(e,d,!0),this.addAll(d,r),this.findAround(e,d,!1)}l&&this.sync(u)&&this.open--}addAll(e,n,r,o){let l=r||0;for(let s=r?e.childNodes[r]:e.firstChild,u=o==null?null:e.childNodes[o];s!=u;s=s.nextSibling,++l)this.findAtPoint(e,l),this.addDOM(s,n);this.findAtPoint(e,l)}findPlace(e,n){let r,o;for(let l=this.open;l>=0;l--){let s=this.nodes[l],u=s.findWrapping(e);if(u&&(!r||r.length>u.length)&&(r=u,o=s,!u.length)||s.solid)break}if(!r)return null;this.sync(o);for(let l=0;l<r.length;l++)n=this.enterInner(r[l],null,n,!1);return n}insertNode(e,n){if(e.isInline&&this.needsBlock&&!this.top.type){let o=this.textblockFromContext();o&&(n=this.enterInner(o,null,n))}let r=this.findPlace(e,n);if(r){this.closeExtra();let o=this.top;o.match&&(o.match=o.match.matchType(e.type));let l=nr.none;for(let s of r.concat(e.marks))(o.type?o.type.allowsMarkType(s.type):yN(s.type,e.type))&&(l=s.addToSet(l));return o.content.push(e.mark(l)),!0}return!1}enter(e,n,r,o){let l=this.findPlace(e.create(n),r);return l&&(l=this.enterInner(e,n,r,!0,o)),l}enterInner(e,n,r,o=!1,l){this.closeExtra();let s=this.top;s.match=s.match&&s.match.matchType(e);let u=pN(e,l,s.options);s.options&_g&&s.content.length==0&&(u|=_g);let d=nr.none;return r=r.filter(f=>(s.type?s.type.allowsMarkType(f.type):yN(f.type,e))?(d=f.addToSet(d),!1):!0),this.nodes.push(new gg(e,n,d,o,null,u)),this.open++,r}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let n=this.open;n>=0;n--){if(this.nodes[n]==e)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=Bh)}return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let o=r.length-1;o>=0;o--)e+=r[o].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,r){if(e!=n&&this.find)for(let o=0;o<this.find.length;o++)this.find[o].pos==null&&e.nodeType==1&&e.contains(this.find[o].node)&&n.compareDocumentPosition(this.find[o].node)&(r?2:4)&&(this.find[o].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),r=this.options.context,o=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),l=-(r?r.depth+1:0)+(o?0:1),s=(u,d)=>{for(;u>=0;u--){let f=n[u];if(f==""){if(u==n.length-1||u==0)continue;for(;d>=l;d--)if(s(u-1,d))return!0;return!1}else{let m=d>0||d==0&&o?this.nodes[d].type:r&&d>=l?r.node(d-l).type:null;if(!m||m.name!=f&&!m.isInGroup(f))return!1;d--}}return!0};return s(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}}function G5(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&Lk.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function K5(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function vN(t){let e={};for(let n in t)e[n]=t[n];return e}function yN(t,e){let n=e.schema.nodes;for(let r in n){let o=n[r];if(!o.allowsMarkType(t))continue;let l=[],s=u=>{l.push(u);for(let d=0;d<u.edgeCount;d++){let{type:f,next:m}=u.edge(d);if(f==e||l.indexOf(m)<0&&s(m))return!0}};if(s(o.contentMatch))return!0}}class Qc{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},r){r||(r=XS(n).createDocumentFragment());let o=r,l=[];return e.forEach(s=>{if(l.length||s.marks.length){let u=0,d=0;for(;u<l.length&&d<s.marks.length;){let f=s.marks[d];if(!this.marks[f.type.name]){d++;continue}if(!f.eq(l[u][0])||f.type.spec.spanning===!1)break;u++,d++}for(;u<l.length;)o=l.pop()[1];for(;d<s.marks.length;){let f=s.marks[d++],m=this.serializeMark(f,s.isInline,n);m&&(l.push([f,o]),o.appendChild(m.dom),o=m.contentDOM||m.dom)}}o.appendChild(this.serializeNodeInner(s,n))}),r}serializeNodeInner(e,n){let{dom:r,contentDOM:o}=Bg(XS(n),this.nodes[e.type.name](e),null,e.attrs);if(o){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,o)}return r}serializeNode(e,n={}){let r=this.serializeNodeInner(e,n);for(let o=e.marks.length-1;o>=0;o--){let l=this.serializeMark(e.marks[o],e.isInline,n);l&&((l.contentDOM||l.dom).appendChild(r),r=l.dom)}return r}serializeMark(e,n,r={}){let o=this.marks[e.type.name];return o&&Bg(XS(r),o(e,n),null,e.attrs)}static renderSpec(e,n,r=null,o){return Bg(e,n,r,o)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Qc(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=bN(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return bN(e.marks)}}function bN(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function XS(t){return t.document||window.document}const SN=new WeakMap;function Y5(t){let e=SN.get(t);return e===void 0&&SN.set(t,e=X5(t)),e}function X5(t){let e=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let o=0;o<r.length;o++)n(r[o]);else for(let o in r)n(r[o])}return n(t),e}function Bg(t,e,n,r){if(typeof e=="string")return{dom:t.createTextNode(e)};if(e.nodeType!=null)return{dom:e};if(e.dom&&e.dom.nodeType!=null)return e;let o=e[0],l;if(typeof o!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(l=Y5(r))&&l.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let s=o.indexOf(" ");s>0&&(n=o.slice(0,s),o=o.slice(s+1));let u,d=n?t.createElementNS(n,o):t.createElement(o),f=e[1],m=1;if(f&&typeof f=="object"&&f.nodeType==null&&!Array.isArray(f)){m=2;for(let p in f)if(f[p]!=null){let g=p.indexOf(" ");g>0?d.setAttributeNS(p.slice(0,g),p.slice(g+1),f[p]):d.setAttribute(p,f[p])}}for(let p=m;p<e.length;p++){let g=e[p];if(g===0){if(p<e.length-1||p>m)throw new RangeError("Content hole must be the only child of its parent node");return{dom:d,contentDOM:d}}else{let{dom:b,contentDOM:S}=Bg(t,g,n,r);if(d.appendChild(b),S){if(u)throw new RangeError("Multiple content holes");u=S}}}return{dom:d,contentDOM:u}}const Vk=65535,Fk=Math.pow(2,16);function Q5(t,e){return t+e*Fk}function CN(t){return t&Vk}function Z5(t){return(t-(t&Vk))/Fk}const Uk=1,Wk=2,Hg=4,qk=8;class l1{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&qk)>0}get deletedBefore(){return(this.delInfo&(Uk|Hg))>0}get deletedAfter(){return(this.delInfo&(Wk|Hg))>0}get deletedAcross(){return(this.delInfo&Hg)>0}}class oi{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&oi.empty)return oi.empty}recover(e){let n=0,r=CN(e);if(!this.inverted)for(let o=0;o<r;o++)n+=this.ranges[o*3+2]-this.ranges[o*3+1];return this.ranges[r*3]+n+Z5(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,r){let o=0,l=this.inverted?2:1,s=this.inverted?1:2;for(let u=0;u<this.ranges.length;u+=3){let d=this.ranges[u]-(this.inverted?o:0);if(d>e)break;let f=this.ranges[u+l],m=this.ranges[u+s],p=d+f;if(e<=p){let g=f?e==d?-1:e==p?1:n:n,b=d+o+(g<0?0:m);if(r)return b;let S=e==(n<0?d:p)?null:Q5(u/3,e-d),x=e==d?Wk:e==p?Uk:Hg;return(n<0?e!=d:e!=p)&&(x|=qk),new l1(b,x,S)}o+=m-f}return r?e+o:new l1(e+o,0,null)}touches(e,n){let r=0,o=CN(n),l=this.inverted?2:1,s=this.inverted?1:2;for(let u=0;u<this.ranges.length;u+=3){let d=this.ranges[u]-(this.inverted?r:0);if(d>e)break;let f=this.ranges[u+l],m=d+f;if(e<=m&&u==o*3)return!0;r+=this.ranges[u+s]-f}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let o=0,l=0;o<this.ranges.length;o+=3){let s=this.ranges[o],u=s-(this.inverted?l:0),d=s+(this.inverted?0:l),f=this.ranges[o+n],m=this.ranges[o+r];e(u,u+f,d,d+m),l+=m-f}}invert(){return new oi(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?oi.empty:new oi(e<0?[0,-e,0]:[0,0,e])}}oi.empty=new oi([]);class Hh{constructor(e,n,r=0,o=e?e.length:0){this.mirror=n,this.from=r,this.to=o,this._maps=e||[],this.ownData=!(e||n)}get maps(){return this._maps}slice(e=0,n=this.maps.length){return new Hh(this._maps,this.mirror,e,n)}appendMap(e,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),n!=null&&this.setMirror(this._maps.length-1,n)}appendMapping(e){for(let n=0,r=this._maps.length;n<e._maps.length;n++){let o=e.getMirror(n);this.appendMap(e._maps[n],o!=null&&o<n?r+o:void 0)}}getMirror(e){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==e)return this.mirror[n+(n%2?-1:1)]}}setMirror(e,n){this.mirror||(this.mirror=[]),this.mirror.push(e,n)}appendMappingInverted(e){for(let n=e.maps.length-1,r=this._maps.length+e._maps.length;n>=0;n--){let o=e.getMirror(n);this.appendMap(e._maps[n].invert(),o!=null&&o>n?r-o-1:void 0)}}invert(){let e=new Hh;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,n);return e}mapResult(e,n=1){return this._map(e,n,!1)}_map(e,n,r){let o=0;for(let l=this.from;l<this.to;l++){let s=this._maps[l],u=s.mapResult(e,n);if(u.recover!=null){let d=this.getMirror(l);if(d!=null&&d>l&&d<this.to){l=d,e=this._maps[d].recover(u.recover);continue}}o|=u.delInfo,e=u.pos}return r?e:new l1(e,o,null)}}const QS=Object.create(null);class Co{getMap(){return oi.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=QS[n.stepType];if(!r)throw new RangeError(`No step type ${n.stepType} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in QS)throw new RangeError("Duplicate use of step JSON ID "+e);return QS[e]=n,n.prototype.jsonID=e,n}}class kr{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new kr(e,null)}static fail(e){return new kr(null,e)}static fromReplace(e,n,r,o){try{return kr.ok(e.replace(n,r,o))}catch(l){if(l instanceof lv)return kr.fail(l.message);throw l}}}function Vx(t,e,n){let r=[];for(let o=0;o<t.childCount;o++){let l=t.child(o);l.content.size&&(l=l.copy(Vx(l.content,e,l))),l.isInline&&(l=e(l,n,o)),r.push(l)}return tt.fromArray(r)}class ds extends Co{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=e.resolve(this.from),o=r.node(r.sharedDepth(this.to)),l=new At(Vx(n.content,(s,u)=>!s.isAtom||!u.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),o),n.openStart,n.openEnd);return kr.fromReplace(e,this.from,this.to,l)}invert(){return new Ra(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new ds(n.pos,r.pos,this.mark)}merge(e){return e instanceof ds&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new ds(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new ds(n.from,n.to,e.markFromJSON(n.mark))}}Co.jsonID("addMark",ds);class Ra extends Co{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=new At(Vx(n.content,o=>o.mark(this.mark.removeFromSet(o.marks)),e),n.openStart,n.openEnd);return kr.fromReplace(e,this.from,this.to,r)}invert(){return new ds(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new Ra(n.pos,r.pos,this.mark)}merge(e){return e instanceof Ra&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Ra(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Ra(n.from,n.to,e.markFromJSON(n.mark))}}Co.jsonID("removeMark",Ra);class fs extends Co{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return kr.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return kr.fromReplace(e,this.pos,this.pos+1,new At(tt.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let o=0;o<n.marks.length;o++)if(!n.marks[o].isInSet(r))return new fs(this.pos,n.marks[o]);return new fs(this.pos,this.mark)}}return new Od(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new fs(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new fs(n.pos,e.markFromJSON(n.mark))}}Co.jsonID("addNodeMark",fs);class Od extends Co{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return kr.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return kr.fromReplace(e,this.pos,this.pos+1,new At(tt.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new fs(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Od(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Od(n.pos,e.markFromJSON(n.mark))}}Co.jsonID("removeNodeMark",Od);class qr extends Co{constructor(e,n,r,o=!1){super(),this.from=e,this.to=n,this.slice=r,this.structure=o}apply(e){return this.structure&&s1(e,this.from,this.to)?kr.fail("Structure replace would overwrite content"):kr.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new oi([this.from,this.to-this.from,this.slice.size])}invert(e){return new qr(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deletedAcross&&r.deletedAcross?null:new qr(n.pos,Math.max(n.pos,r.pos),this.slice)}merge(e){if(!(e instanceof qr)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let n=this.slice.size+e.slice.size==0?At.empty:new At(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new qr(this.from,this.to+(e.to-e.from),n,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let n=this.slice.size+e.slice.size==0?At.empty:new At(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new qr(e.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new qr(n.from,n.to,At.fromJSON(e,n.slice),!!n.structure)}}Co.jsonID("replace",qr);class Gr extends Co{constructor(e,n,r,o,l,s,u=!1){super(),this.from=e,this.to=n,this.gapFrom=r,this.gapTo=o,this.slice=l,this.insert=s,this.structure=u}apply(e){if(this.structure&&(s1(e,this.from,this.gapFrom)||s1(e,this.gapTo,this.to)))return kr.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return kr.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?kr.fromReplace(e,this.from,this.to,r):kr.fail("Content does not fit in gap")}getMap(){return new oi([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let n=this.gapTo-this.gapFrom;return new Gr(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),o=this.from==this.gapFrom?n.pos:e.map(this.gapFrom,-1),l=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||o<n.pos||l>r.pos?null:new Gr(n.pos,r.pos,o,l,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Gr(n.from,n.to,n.gapFrom,n.gapTo,At.fromJSON(e,n.slice),n.insert,!!n.structure)}}Co.jsonID("replaceAround",Gr);function s1(t,e,n){let r=t.resolve(e),o=n-e,l=r.depth;for(;o>0&&l>0&&r.indexAfter(l)==r.node(l).childCount;)l--,o--;if(o>0){let s=r.node(l).maybeChild(r.indexAfter(l));for(;o>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,o--}}return!1}function J5(t,e,n,r){let o=[],l=[],s,u;t.doc.nodesBetween(e,n,(d,f,m)=>{if(!d.isInline)return;let p=d.marks;if(!r.isInSet(p)&&m.type.allowsMarkType(r.type)){let g=Math.max(f,e),b=Math.min(f+d.nodeSize,n),S=r.addToSet(p);for(let x=0;x<p.length;x++)p[x].isInSet(S)||(s&&s.to==g&&s.mark.eq(p[x])?s.to=b:o.push(s=new Ra(g,b,p[x])));u&&u.to==g?u.to=b:l.push(u=new ds(g,b,r))}}),o.forEach(d=>t.step(d)),l.forEach(d=>t.step(d))}function eV(t,e,n,r){let o=[],l=0;t.doc.nodesBetween(e,n,(s,u)=>{if(!s.isInline)return;l++;let d=null;if(r instanceof Fv){let f=s.marks,m;for(;m=r.isInSet(f);)(d||(d=[])).push(m),f=m.removeFromSet(f)}else r?r.isInSet(s.marks)&&(d=[r]):d=s.marks;if(d&&d.length){let f=Math.min(u+s.nodeSize,n);for(let m=0;m<d.length;m++){let p=d[m],g;for(let b=0;b<o.length;b++){let S=o[b];S.step==l-1&&p.eq(o[b].style)&&(g=S)}g?(g.to=f,g.step=l):o.push({style:p,from:Math.max(u,e),to:f,step:l})}}}),o.forEach(s=>t.step(new Ra(s.from,s.to,s.style)))}function Fx(t,e,n,r=n.contentMatch,o=!0){let l=t.doc.nodeAt(e),s=[],u=e+1;for(let d=0;d<l.childCount;d++){let f=l.child(d),m=u+f.nodeSize,p=r.matchType(f.type);if(!p)s.push(new qr(u,m,At.empty));else{r=p;for(let g=0;g<f.marks.length;g++)n.allowsMarkType(f.marks[g].type)||t.step(new Ra(u,m,f.marks[g]));if(o&&f.isText&&n.whitespace!="pre"){let g,b=/\r?\n|\r/g,S;for(;g=b.exec(f.text);)S||(S=new At(tt.from(n.schema.text(" ",n.allowedMarks(f.marks))),0,0)),s.push(new qr(u+g.index,u+g.index+g[0].length,S))}}u=m}if(!r.validEnd){let d=r.fillBefore(tt.empty,!0);t.replace(u,u,new At(d,0,0))}for(let d=s.length-1;d>=0;d--)t.step(s[d])}function tV(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function Ld(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth;;--r){let o=t.$from.node(r),l=t.$from.index(r),s=t.$to.indexAfter(r);if(r<t.depth&&o.canReplace(l,s,n))return r;if(r==0||o.type.spec.isolating||!tV(o,l,s))break}return null}function nV(t,e,n){let{$from:r,$to:o,depth:l}=e,s=r.before(l+1),u=o.after(l+1),d=s,f=u,m=tt.empty,p=0;for(let S=l,x=!1;S>n;S--)x||r.index(S)>0?(x=!0,m=tt.from(r.node(S).copy(m)),p++):d--;let g=tt.empty,b=0;for(let S=l,x=!1;S>n;S--)x||o.after(S+1)<o.end(S)?(x=!0,g=tt.from(o.node(S).copy(g)),b++):f++;t.step(new Gr(d,f,s,u,new At(m.append(g),p,b),m.size-p,!0))}function Ux(t,e,n=null,r=t){let o=rV(t,e),l=o&&oV(r,e);return l?o.map(xN).concat({type:e,attrs:n}).concat(l.map(xN)):null}function xN(t){return{type:t,attrs:null}}function rV(t,e){let{parent:n,startIndex:r,endIndex:o}=t,l=n.contentMatchAt(r).findWrapping(e);if(!l)return null;let s=l.length?l[0]:e;return n.canReplaceWith(r,o,s)?l:null}function oV(t,e){let{parent:n,startIndex:r,endIndex:o}=t,l=n.child(r),s=e.contentMatch.findWrapping(l.type);if(!s)return null;let d=(s.length?s[s.length-1]:e).contentMatch;for(let f=r;d&&f<o;f++)d=d.matchType(n.child(f).type);return!d||!d.validEnd?null:s}function iV(t,e,n){let r=tt.empty;for(let s=n.length-1;s>=0;s--){if(r.size){let u=n[s].type.contentMatch.matchFragment(r);if(!u||!u.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=tt.from(n[s].type.create(n[s].attrs,r))}let o=e.start,l=e.end;t.step(new Gr(o,l,o,l,new At(r,0,0),n.length,!0))}function aV(t,e,n,r,o){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let l=t.steps.length;t.doc.nodesBetween(e,n,(s,u)=>{let d=typeof o=="function"?o(s):o;if(s.isTextblock&&!s.hasMarkup(r,d)&&lV(t.doc,t.mapping.slice(l).map(u),r)){let f=null;if(r.schema.linebreakReplacement){let b=r.whitespace=="pre",S=!!r.contentMatch.matchType(r.schema.linebreakReplacement);b&&!S?f=!1:!b&&S&&(f=!0)}f===!1&&Kk(t,s,u,l),Fx(t,t.mapping.slice(l).map(u,1),r,void 0,f===null);let m=t.mapping.slice(l),p=m.map(u,1),g=m.map(u+s.nodeSize,1);return t.step(new Gr(p,g,p+1,g-1,new At(tt.from(r.create(d,null,s.marks)),0,0),1,!0)),f===!0&&Gk(t,s,u,l),!1}})}function Gk(t,e,n,r){e.forEach((o,l)=>{if(o.isText){let s,u=/\r?\n|\r/g;for(;s=u.exec(o.text);){let d=t.mapping.slice(r).map(n+1+l+s.index);t.replaceWith(d,d+1,e.type.schema.linebreakReplacement.create())}}})}function Kk(t,e,n,r){e.forEach((o,l)=>{if(o.type==o.type.schema.linebreakReplacement){let s=t.mapping.slice(r).map(n+1+l);t.replaceWith(s,s+1,e.type.schema.text(`
316
- `))}})}function lV(t,e,n){let r=t.resolve(e),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}function sV(t,e,n,r,o){let l=t.doc.nodeAt(e);if(!l)throw new RangeError("No node at given position");n||(n=l.type);let s=n.create(r,null,o||l.marks);if(l.isLeaf)return t.replaceWith(e,e+l.nodeSize,s);if(!n.validContent(l.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new Gr(e,e+l.nodeSize,e+1,e+l.nodeSize-1,new At(tt.from(s),0,0),1,!0))}function pl(t,e,n=1,r){let o=t.resolve(e),l=o.depth-n,s=r&&r[r.length-1]||o.parent;if(l<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!s.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let f=o.depth-1,m=n-2;f>l;f--,m--){let p=o.node(f),g=o.index(f);if(p.type.spec.isolating)return!1;let b=p.content.cutByIndex(g,p.childCount),S=r&&r[m+1];S&&(b=b.replaceChild(0,S.type.create(S.attrs)));let x=r&&r[m]||p;if(!p.canReplace(g+1,p.childCount)||!x.type.validContent(b))return!1}let u=o.indexAfter(l),d=r&&r[0];return o.node(l).canReplaceWith(u,u,d?d.type:o.node(l+1).type)}function cV(t,e,n=1,r){let o=t.doc.resolve(e),l=tt.empty,s=tt.empty;for(let u=o.depth,d=o.depth-n,f=n-1;u>d;u--,f--){l=tt.from(o.node(u).copy(l));let m=r&&r[f];s=tt.from(m?m.type.create(m.attrs,s):o.node(u).copy(s))}t.step(new qr(e,e,new At(l.append(s),n,n),!0))}function Ts(t,e){let n=t.resolve(e),r=n.index();return Yk(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function uV(t,e){e.content.size||t.type.compatibleContent(e.type);let n=t.contentMatchAt(t.childCount),{linebreakReplacement:r}=t.type.schema;for(let o=0;o<e.childCount;o++){let l=e.child(o),s=l.type==r?t.type.schema.nodes.text:l.type;if(n=n.matchType(s),!n||!t.type.allowsMarks(l.marks))return!1}return n.validEnd}function Yk(t,e){return!!(t&&e&&!t.isLeaf&&uV(t,e))}function Uv(t,e,n=-1){let r=t.resolve(e);for(let o=r.depth;;o--){let l,s,u=r.index(o);if(o==r.depth?(l=r.nodeBefore,s=r.nodeAfter):n>0?(l=r.node(o+1),u++,s=r.node(o).maybeChild(u)):(l=r.node(o).maybeChild(u-1),s=r.node(o+1)),l&&!l.isTextblock&&Yk(l,s)&&r.node(o).canReplace(u,u+1))return e;if(o==0)break;e=n<0?r.before(o):r.after(o)}}function dV(t,e,n){let r=null,{linebreakReplacement:o}=t.doc.type.schema,l=t.doc.resolve(e-n),s=l.node().type;if(o&&s.inlineContent){let m=s.whitespace=="pre",p=!!s.contentMatch.matchType(o);m&&!p?r=!1:!m&&p&&(r=!0)}let u=t.steps.length;if(r===!1){let m=t.doc.resolve(e+n);Kk(t,m.node(),m.before(),u)}s.inlineContent&&Fx(t,e+n-1,s,l.node().contentMatchAt(l.index()),r==null);let d=t.mapping.slice(u),f=d.map(e-n);if(t.step(new qr(f,d.map(e+n,-1),At.empty,!0)),r===!0){let m=t.doc.resolve(f);Gk(t,m.node(),m.before(),t.steps.length)}return t}function fV(t,e,n){let r=t.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),n))return e;if(r.parentOffset==0)for(let o=r.depth-1;o>=0;o--){let l=r.index(o);if(r.node(o).canReplaceWith(l,l,n))return r.before(o+1);if(l>0)return null}if(r.parentOffset==r.parent.content.size)for(let o=r.depth-1;o>=0;o--){let l=r.indexAfter(o);if(r.node(o).canReplaceWith(l,l,n))return r.after(o+1);if(l<r.node(o).childCount)return null}return null}function Xk(t,e,n){let r=t.resolve(e);if(!n.content.size)return e;let o=n.content;for(let l=0;l<n.openStart;l++)o=o.firstChild.content;for(let l=1;l<=(n.openStart==0&&n.size?2:1);l++)for(let s=r.depth;s>=0;s--){let u=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,d=r.index(s)+(u>0?1:0),f=r.node(s),m=!1;if(l==1)m=f.canReplace(d,d,o);else{let p=f.contentMatchAt(d).findWrapping(o.firstChild.type);m=p&&f.canReplaceWith(d,d,p[0])}if(m)return u==0?r.pos:u<0?r.before(s+1):r.after(s+1)}return null}function Wv(t,e,n=e,r=At.empty){if(e==n&&!r.size)return null;let o=t.resolve(e),l=t.resolve(n);return Qk(o,l,r)?new qr(e,n,r):new hV(o,l,r).fit()}function Qk(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class hV{constructor(e,n,r){this.$from=e,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=tt.empty;for(let o=0;o<=e.depth;o++){let l=e.node(o);this.frontier.push({type:l.type,match:l.contentMatchAt(e.indexAfter(o))})}for(let o=e.depth;o>0;o--)this.placed=tt.from(e.node(o).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let f=this.findFittable();f?this.placeNodes(f):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,o=this.close(e<0?this.$to:r.doc.resolve(e));if(!o)return null;let l=this.placed,s=r.depth,u=o.depth;for(;s&&u&&l.childCount==1;)l=l.firstChild.content,s--,u--;let d=new At(l,s,u);return e>-1?new Gr(r.pos,e,this.$to.pos,this.$to.end(),d,n):d.size||r.pos!=this.$to.pos?new qr(r.pos,o.pos,d):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,o=this.unplaced.openEnd;r<e;r++){let l=n.firstChild;if(n.childCount>1&&(o=0),l.type.spec.isolating&&o<=r){e=r;break}n=l.content}for(let n=1;n<=2;n++)for(let r=n==1?e:this.unplaced.openStart;r>=0;r--){let o,l=null;r?(l=ZS(this.unplaced.content,r-1).firstChild,o=l.content):o=this.unplaced.content;let s=o.firstChild;for(let u=this.depth;u>=0;u--){let{type:d,match:f}=this.frontier[u],m,p=null;if(n==1&&(s?f.matchType(s.type)||(p=f.fillBefore(tt.from(s),!1)):l&&d.compatibleContent(l.type)))return{sliceDepth:r,frontierDepth:u,parent:l,inject:p};if(n==2&&s&&(m=f.findWrapping(s.type)))return{sliceDepth:r,frontierDepth:u,parent:l,wrap:m};if(l&&f.matchType(l.type))break}}}openMore(){let{content:e,openStart:n,openEnd:r}=this.unplaced,o=ZS(e,n);return!o.childCount||o.firstChild.isLeaf?!1:(this.unplaced=new At(e,n+1,Math.max(r,o.size+n>=e.size-r?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:r}=this.unplaced,o=ZS(e,n);if(o.childCount<=1&&n>0){let l=e.size-n<=n+o.size;this.unplaced=new At(xh(e,n-1,1),n-1,l?n-1:r)}else this.unplaced=new At(xh(e,n,1),n,r)}placeNodes({sliceDepth:e,frontierDepth:n,parent:r,inject:o,wrap:l}){for(;this.depth>n;)this.closeFrontierNode();if(l)for(let x=0;x<l.length;x++)this.openFrontierNode(l[x]);let s=this.unplaced,u=r?r.content:s.content,d=s.openStart-e,f=0,m=[],{match:p,type:g}=this.frontier[n];if(o){for(let x=0;x<o.childCount;x++)m.push(o.child(x));p=p.matchFragment(o)}let b=u.size+e-(s.content.size-s.openEnd);for(;f<u.childCount;){let x=u.child(f),w=p.matchType(x.type);if(!w)break;f++,(f>1||d==0||x.content.size)&&(p=w,m.push(Zk(x.mark(g.allowedMarks(x.marks)),f==1?d:0,f==u.childCount?b:-1)))}let S=f==u.childCount;S||(b=-1),this.placed=wh(this.placed,n,tt.from(m)),this.frontier[n].match=p,S&&b<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let x=0,w=u;x<b;x++){let O=w.lastChild;this.frontier.push({type:O.type,match:O.contentMatchAt(O.childCount)}),w=O.content}this.unplaced=S?e==0?At.empty:new At(xh(s.content,e-1,1),e-1,b<0?s.openEnd:e-1):new At(xh(s.content,e,f),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!JS(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:r}=this.$to,o=this.$to.after(r);for(;r>1&&o==this.$to.end(--r);)++o;return o}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:r,type:o}=this.frontier[n],l=n<e.depth&&e.end(n+1)==e.pos+(e.depth-(n+1)),s=JS(e,n,o,r,l);if(s){for(let u=n-1;u>=0;u--){let{match:d,type:f}=this.frontier[u],m=JS(e,u,f,d,!0);if(!m||m.childCount)continue e}return{depth:n,fit:s,move:l?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=wh(this.placed,n.depth,n.fit)),e=n.move;for(let r=n.depth+1;r<=e.depth;r++){let o=e.node(r),l=o.type.contentMatch.fillBefore(o.content,!0,e.index(r));this.openFrontierNode(o.type,o.attrs,l)}return e}openFrontierNode(e,n=null,r){let o=this.frontier[this.depth];o.match=o.match.matchType(e),this.placed=wh(this.placed,this.depth,tt.from(e.create(n,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(tt.empty,!0);n.childCount&&(this.placed=wh(this.placed,this.frontier.length,n))}}function xh(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(xh(t.firstChild.content,e-1,n)))}function wh(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(wh(t.lastChild.content,e-1,n)))}function ZS(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function Zk(t,e,n){if(e<=0)return t;let r=t.content;return e>1&&(r=r.replaceChild(0,Zk(r.firstChild,e-1,r.childCount==1?n-1:0))),e>0&&(r=t.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(t.type.contentMatch.matchFragment(r).fillBefore(tt.empty,!0)))),t.copy(r)}function JS(t,e,n,r,o){let l=t.node(e),s=o?t.indexAfter(e):t.index(e);if(s==l.childCount&&!n.compatibleContent(l.type))return null;let u=r.fillBefore(l.content,!0,s);return u&&!mV(n,l.content,s)?u:null}function mV(t,e,n){for(let r=n;r<e.childCount;r++)if(!t.allowsMarks(e.child(r).marks))return!0;return!1}function pV(t){return t.spec.defining||t.spec.definingForContent}function gV(t,e,n,r){if(!r.size)return t.deleteRange(e,n);let o=t.doc.resolve(e),l=t.doc.resolve(n);if(Qk(o,l,r))return t.step(new qr(e,n,r));let s=eP(o,t.doc.resolve(n));s[s.length-1]==0&&s.pop();let u=-(o.depth+1);s.unshift(u);for(let g=o.depth,b=o.pos-1;g>0;g--,b--){let S=o.node(g).type.spec;if(S.defining||S.definingAsContext||S.isolating)break;s.indexOf(g)>-1?u=g:o.before(g)==b&&s.splice(1,0,-g)}let d=s.indexOf(u),f=[],m=r.openStart;for(let g=r.content,b=0;;b++){let S=g.firstChild;if(f.push(S),b==r.openStart)break;g=S.content}for(let g=m-1;g>=0;g--){let b=f[g],S=pV(b.type);if(S&&!b.sameMarkup(o.node(Math.abs(u)-1)))m=g;else if(S||!b.type.isTextblock)break}for(let g=r.openStart;g>=0;g--){let b=(g+m+1)%(r.openStart+1),S=f[b];if(S)for(let x=0;x<s.length;x++){let w=s[(x+d)%s.length],O=!0;w<0&&(O=!1,w=-w);let E=o.node(w-1),M=o.index(w-1);if(E.canReplaceWith(M,M,S.type,S.marks))return t.replace(o.before(w),O?l.after(w):n,new At(Jk(r.content,0,r.openStart,b),b,r.openEnd))}}let p=t.steps.length;for(let g=s.length-1;g>=0&&(t.replace(e,n,r),!(t.steps.length>p));g--){let b=s[g];b<0||(e=o.before(b),n=l.after(b))}}function Jk(t,e,n,r,o){if(e<n){let l=t.firstChild;t=t.replaceChild(0,l.copy(Jk(l.content,e+1,n,r,l)))}if(e>r){let l=o.contentMatchAt(0),s=l.fillBefore(t).append(t);t=s.append(l.matchFragment(s).fillBefore(tt.empty,!0))}return t}function vV(t,e,n,r){if(!r.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let o=fV(t.doc,e,r.type);o!=null&&(e=n=o)}t.replaceRange(e,n,new At(tt.from(r),0,0))}function yV(t,e,n){let r=t.doc.resolve(e),o=t.doc.resolve(n),l=eP(r,o);for(let s=0;s<l.length;s++){let u=l[s],d=s==l.length-1;if(d&&u==0||r.node(u).type.contentMatch.validEnd)return t.delete(r.start(u),o.end(u));if(u>0&&(d||r.node(u-1).canReplace(r.index(u-1),o.indexAfter(u-1))))return t.delete(r.before(u),o.after(u))}for(let s=1;s<=r.depth&&s<=o.depth;s++)if(e-r.start(s)==r.depth-s&&n>r.end(s)&&o.end(s)-n!=o.depth-s&&r.start(s-1)==o.start(s-1)&&r.node(s-1).canReplace(r.index(s-1),o.index(s-1)))return t.delete(r.before(s),n);t.delete(e,n)}function eP(t,e){let n=[],r=Math.min(t.depth,e.depth);for(let o=r;o>=0;o--){let l=t.start(o);if(l<t.pos-(t.depth-o)||e.end(o)>e.pos+(e.depth-o)||t.node(o).type.spec.isolating||e.node(o).type.spec.isolating)break;(l==e.start(o)||o==t.depth&&o==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&o&&e.start(o-1)==l-1)&&n.push(o)}return n}class bd extends Co{constructor(e,n,r){super(),this.pos=e,this.attr=n,this.value=r}apply(e){let n=e.nodeAt(this.pos);if(!n)return kr.fail("No node at attribute step's position");let r=Object.create(null);for(let l in n.attrs)r[l]=n.attrs[l];r[this.attr]=this.value;let o=n.type.create(r,null,n.marks);return kr.fromReplace(e,this.pos,this.pos+1,new At(tt.from(o),0,n.isLeaf?0:1))}getMap(){return oi.empty}invert(e){return new bd(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new bd(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new bd(n.pos,n.attr,n.value)}}Co.jsonID("attr",bd);class jh extends Co{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let o in e.attrs)n[o]=e.attrs[o];n[this.attr]=this.value;let r=e.type.create(n,e.content,e.marks);return kr.ok(r)}getMap(){return oi.empty}invert(e){return new jh(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new jh(n.attr,n.value)}}Co.jsonID("docAttr",jh);let Rd=class extends Error{};Rd=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n};Rd.prototype=Object.create(Error.prototype);Rd.prototype.constructor=Rd;Rd.prototype.name="TransformError";let tP=class{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Hh}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new Rd(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,r=At.empty){let o=Wv(this.doc,e,n,r);return o&&this.step(o),this}replaceWith(e,n,r){return this.replace(e,n,new At(tt.from(r),0,0))}delete(e,n){return this.replace(e,n,At.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,r){return gV(this,e,n,r),this}replaceRangeWith(e,n,r){return vV(this,e,n,r),this}deleteRange(e,n){return yV(this,e,n),this}lift(e,n){return nV(this,e,n),this}join(e,n=1){return dV(this,e,n),this}wrap(e,n){return iV(this,e,n),this}setBlockType(e,n=e,r,o=null){return aV(this,e,n,r,o),this}setNodeMarkup(e,n,r=null,o){return sV(this,e,n,r,o),this}setNodeAttribute(e,n,r){return this.step(new bd(e,n,r)),this}setDocAttribute(e,n){return this.step(new jh(e,n)),this}addNodeMark(e,n){return this.step(new fs(e,n)),this}removeNodeMark(e,n){if(!(n instanceof nr)){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(n=n.isInSet(r.marks),!n)return this}return this.step(new Od(e,n)),this}split(e,n=1,r){return cV(this,e,n,r),this}addMark(e,n,r){return J5(this,e,n,r),this}removeMark(e,n,r){return eV(this,e,n,r),this}clearIncompatible(e,n,r){return Fx(this,e,n,r),this}};const eC=Object.create(null);class nn{constructor(e,n,r){this.$anchor=e,this.$head=n,this.ranges=r||[new nP(e.min(n),e.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let n=0;n<e.length;n++)if(e[n].$from.pos!=e[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,n=At.empty){let r=n.content.lastChild,o=null;for(let u=0;u<n.openEnd;u++)o=r,r=r.lastChild;let l=e.steps.length,s=this.ranges;for(let u=0;u<s.length;u++){let{$from:d,$to:f}=s[u],m=e.mapping.slice(l);e.replaceRange(m.map(d.pos),m.map(f.pos),u?At.empty:n),u==0&&ON(e,l,(r?r.isInline:o&&o.isTextblock)?-1:1)}}replaceWith(e,n){let r=e.steps.length,o=this.ranges;for(let l=0;l<o.length;l++){let{$from:s,$to:u}=o[l],d=e.mapping.slice(r),f=d.map(s.pos),m=d.map(u.pos);l?e.deleteRange(f,m):(e.replaceRangeWith(f,m,n),ON(e,r,n.isInline?-1:1))}}static findFrom(e,n,r=!1){let o=e.parent.inlineContent?new Zt(e):fd(e.node(0),e.parent,e.pos,e.index(),n,r);if(o)return o;for(let l=e.depth-1;l>=0;l--){let s=n<0?fd(e.node(0),e.node(l),e.before(l+1),e.index(l),n,r):fd(e.node(0),e.node(l),e.after(l+1),e.index(l)+1,n,r);if(s)return s}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new si(e.node(0))}static atStart(e){return fd(e,e,0,0,1)||new si(e)}static atEnd(e){return fd(e,e,e.content.size,e.childCount,-1)||new si(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=eC[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in eC)throw new RangeError("Duplicate use of selection JSON ID "+e);return eC[e]=n,n.prototype.jsonID=e,n}getBookmark(){return Zt.between(this.$anchor,this.$head).getBookmark()}}nn.prototype.visible=!0;class nP{constructor(e,n){this.$from=e,this.$to=n}}let wN=!1;function EN(t){!wN&&!t.parent.inlineContent&&(wN=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class Zt extends nn{constructor(e,n=e){EN(e),EN(n),super(e,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let r=e.resolve(n.map(this.head));if(!r.parent.inlineContent)return nn.near(r);let o=e.resolve(n.map(this.anchor));return new Zt(o.parent.inlineContent?o:r,r)}replace(e,n=At.empty){if(super.replace(e,n),n==At.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof Zt&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new qv(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Zt(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,r=n){let o=e.resolve(n);return new this(o,r==n?o:e.resolve(r))}static between(e,n,r){let o=e.pos-n.pos;if((!r||o)&&(r=o>=0?1:-1),!n.parent.inlineContent){let l=nn.findFrom(n,r,!0)||nn.findFrom(n,-r,!0);if(l)n=l.$head;else return nn.near(n,r)}return e.parent.inlineContent||(o==0?e=n:(e=(nn.findFrom(e,-r,!0)||nn.findFrom(e,r,!0)).$anchor,e.pos<n.pos!=o<0&&(e=n))),new Zt(e,n)}}nn.jsonID("text",Zt);class qv{constructor(e,n){this.anchor=e,this.head=n}map(e){return new qv(e.map(this.anchor),e.map(this.head))}resolve(e){return Zt.between(e.resolve(this.anchor),e.resolve(this.head))}}class Gt extends nn{constructor(e){let n=e.nodeAfter,r=e.node(0).resolve(e.pos+n.nodeSize);super(e,r),this.node=n}map(e,n){let{deleted:r,pos:o}=n.mapResult(this.anchor),l=e.resolve(o);return r?nn.near(l):new Gt(l)}content(){return new At(tt.from(this.node),0,0)}eq(e){return e instanceof Gt&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Wx(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new Gt(e.resolve(n.anchor))}static create(e,n){return new Gt(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}Gt.prototype.visible=!1;nn.jsonID("node",Gt);class Wx{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:r}=e.mapResult(this.anchor);return n?new qv(r,r):new Wx(r)}resolve(e){let n=e.resolve(this.anchor),r=n.nodeAfter;return r&&Gt.isSelectable(r)?new Gt(n):nn.near(n)}}class si extends nn{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=At.empty){if(n==At.empty){e.delete(0,e.doc.content.size);let r=nn.atStart(e.doc);r.eq(e.selection)||e.setSelection(r)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new si(e)}map(e){return new si(e)}eq(e){return e instanceof si}getBookmark(){return bV}}nn.jsonID("all",si);const bV={map(){return this},resolve(t){return new si(t)}};function fd(t,e,n,r,o,l=!1){if(e.inlineContent)return Zt.create(t,n);for(let s=r-(o>0?0:1);o>0?s<e.childCount:s>=0;s+=o){let u=e.child(s);if(u.isAtom){if(!l&&Gt.isSelectable(u))return Gt.create(t,n-(o<0?u.nodeSize:0))}else{let d=fd(t,u,n+o,o<0?u.childCount:0,o,l);if(d)return d}n+=u.nodeSize*o}return null}function ON(t,e,n){let r=t.steps.length-1;if(r<e)return;let o=t.steps[r];if(!(o instanceof qr||o instanceof Gr))return;let l=t.mapping.maps[r],s;l.forEach((u,d,f,m)=>{s==null&&(s=m)}),t.setSelection(nn.near(t.doc.resolve(s),n))}const RN=1,TN=2,MN=4;class SV extends tP{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|RN)&-3,this.storedMarks=null,this}get selectionSet(){return(this.updated&RN)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=TN,this}ensureMarks(e){return nr.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&TN)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&-3,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let r=this.selection;return n&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||nr.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,r){let o=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(o.text(e),!0):this.deleteSelection();{if(r==null&&(r=n),r=r??n,!e)return this.deleteRange(n,r);let l=this.storedMarks;if(!l){let s=this.doc.resolve(n);l=r==n?s.marks():s.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,o.text(e,l)),this.selection.empty||this.setSelection(nn.near(this.selection.$to)),this}}setMeta(e,n){return this.meta[typeof e=="string"?e:e.key]=n,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=MN,this}get scrolledIntoView(){return(this.updated&MN)>0}}function $N(t,e){return!e||!t?t:t.bind(e)}class Eh{constructor(e,n,r){this.name=e,this.init=$N(n.init,r),this.apply=$N(n.apply,r)}}const CV=[new Eh("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new Eh("selection",{init(t,e){return t.selection||nn.atStart(e.doc)},apply(t){return t.selection}}),new Eh("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,r){return r.selection.$cursor?t.storedMarks:null}}),new Eh("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class tC{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=CV.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new Eh(r.key,r.spec.state,r))})}}class md{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,n=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=n){let o=this.config.plugins[r];if(o.spec.filterTransaction&&!o.spec.filterTransaction.call(o,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let n=[e],r=this.applyInner(e),o=null;for(;;){let l=!1;for(let s=0;s<this.config.plugins.length;s++){let u=this.config.plugins[s];if(u.spec.appendTransaction){let d=o?o[s].n:0,f=o?o[s].state:this,m=d<n.length&&u.spec.appendTransaction.call(u,d?n.slice(d):n,f,r);if(m&&r.filterTransaction(m,s)){if(m.setMeta("appendedTransaction",e),!o){o=[];for(let p=0;p<this.config.plugins.length;p++)o.push(p<s?{state:r,n:n.length}:{state:this,n:0})}n.push(m),r=r.applyInner(m),l=!0}o&&(o[s]={state:r,n:n.length})}}if(!l)return{state:r,transactions:n}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new md(this.config),r=this.config.fields;for(let o=0;o<r.length;o++){let l=r[o];n[l.name]=l.apply(e,this[l.name],this,n)}return n}get tr(){return new SV(this)}static create(e){let n=new tC(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new md(n);for(let o=0;o<n.fields.length;o++)r[n.fields[o].name]=n.fields[o].init(e,r);return r}reconfigure(e){let n=new tC(this.schema,e.plugins),r=n.fields,o=new md(n);for(let l=0;l<r.length;l++){let s=r[l].name;o[s]=this.hasOwnProperty(s)?this[s]:r[l].init(e,o)}return o}toJSON(e){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(r=>r.toJSON())),e&&typeof e=="object")for(let r in e){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let o=e[r],l=o.spec.state;l&&l.toJSON&&(n[r]=l.toJSON.call(o,this[o.key]))}return n}static fromJSON(e,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let o=new tC(e.schema,e.plugins),l=new md(o);return o.fields.forEach(s=>{if(s.name=="doc")l.doc=vs.fromJSON(e.schema,n.doc);else if(s.name=="selection")l.selection=nn.fromJSON(l.doc,n.selection);else if(s.name=="storedMarks")n.storedMarks&&(l.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let u in r){let d=r[u],f=d.spec.state;if(d.key==s.name&&f&&f.fromJSON&&Object.prototype.hasOwnProperty.call(n,u)){l[s.name]=f.fromJSON.call(d,e,n[u],l);return}}l[s.name]=s.init(e,l)}}),l}}function rP(t,e,n){for(let r in t){let o=t[r];o instanceof Function?o=o.bind(e):r=="handleDOMEvents"&&(o=rP(o,e,{})),n[r]=o}return n}class xo{constructor(e){this.spec=e,this.props={},e.props&&rP(e.props,this,this.props),this.key=e.key?e.key.key:oP("plugin")}getState(e){return e[this.key]}}const nC=Object.create(null);function oP(t){return t in nC?t+"$"+ ++nC[t]:(nC[t]=0,t+"$")}class ui{constructor(e="key"){this.key=oP(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const oo=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},Td=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let c1=null;const dl=function(t,e,n){let r=c1||(c1=document.createRange());return r.setEnd(t,n??t.nodeValue.length),r.setStart(t,e||0),r},xV=function(){c1=null},Fc=function(t,e,n,r){return n&&(NN(t,e,n,r,-1)||NN(t,e,n,r,1))},wV=/^(img|br|input|textarea|hr)$/i;function NN(t,e,n,r,o){for(;;){if(t==n&&e==r)return!0;if(e==(o<0?0:Di(t))){let l=t.parentNode;if(!l||l.nodeType!=1||am(t)||wV.test(t.nodeName)||t.contentEditable=="false")return!1;e=oo(t)+(o<0?0:1),t=l}else if(t.nodeType==1){if(t=t.childNodes[e+(o<0?-1:0)],t.contentEditable=="false")return!1;e=o<0?Di(t):0}else return!1}}function Di(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function EV(t,e){for(;;){if(t.nodeType==3&&e)return t;if(t.nodeType==1&&e>0){if(t.contentEditable=="false")return null;t=t.childNodes[e-1],e=Di(t)}else if(t.parentNode&&!am(t))e=oo(t),t=t.parentNode;else return null}}function OV(t,e){for(;;){if(t.nodeType==3&&e<t.nodeValue.length)return t;if(t.nodeType==1&&e<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[e],e=0}else if(t.parentNode&&!am(t))e=oo(t)+1,t=t.parentNode;else return null}}function RV(t,e,n){for(let r=e==0,o=e==Di(t);r||o;){if(t==n)return!0;let l=oo(t);if(t=t.parentNode,!t)return!1;r=r&&l==0,o=o&&l==Di(t)}}function am(t){let e;for(let n=t;n&&!(e=n.pmViewDesc);n=n.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const Gv=function(t){return t.focusNode&&Fc(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function Ec(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function TV(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function MV(t,e,n){if(t.caretPositionFromPoint)try{let r=t.caretPositionFromPoint(e,n);if(r)return{node:r.offsetNode,offset:Math.min(Di(r.offsetNode),r.offset)}}catch{}if(t.caretRangeFromPoint){let r=t.caretRangeFromPoint(e,n);if(r)return{node:r.startContainer,offset:Math.min(Di(r.startContainer),r.startOffset)}}}const $a=typeof navigator<"u"?navigator:null,AN=typeof document<"u"?document:null,Ms=$a&&$a.userAgent||"",u1=/Edge\/(\d+)/.exec(Ms),iP=/MSIE \d/.exec(Ms),d1=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ms),Vo=!!(iP||d1||u1),bs=iP?document.documentMode:d1?+d1[1]:u1?+u1[1]:0,Ji=!Vo&&/gecko\/(\d+)/i.test(Ms);Ji&&+(/Firefox\/(\d+)/.exec(Ms)||[0,0])[1];const f1=!Vo&&/Chrome\/(\d+)/.exec(Ms),vo=!!f1,aP=f1?+f1[1]:0,Ao=!Vo&&!!$a&&/Apple Computer/.test($a.vendor),Md=Ao&&(/Mobile\/\w+/.test(Ms)||!!$a&&$a.maxTouchPoints>2),Ai=Md||($a?/Mac/.test($a.platform):!1),$V=$a?/Win/.test($a.platform):!1,hl=/Android \d/.test(Ms),lm=!!AN&&"webkitFontSmoothing"in AN.documentElement.style,NV=lm?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function AV(t){let e=t.defaultView&&t.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function cl(t,e){return typeof t=="number"?t:t[e]}function DV(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,r=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*r}}function DN(t,e,n){let r=t.someProp("scrollThreshold")||0,o=t.someProp("scrollMargin")||5,l=t.dom.ownerDocument;for(let s=n||t.dom;s;){if(s.nodeType!=1){s=Td(s);continue}let u=s,d=u==l.body,f=d?AV(l):DV(u),m=0,p=0;if(e.top<f.top+cl(r,"top")?p=-(f.top-e.top+cl(o,"top")):e.bottom>f.bottom-cl(r,"bottom")&&(p=e.bottom-e.top>f.bottom-f.top?e.top+cl(o,"top")-f.top:e.bottom-f.bottom+cl(o,"bottom")),e.left<f.left+cl(r,"left")?m=-(f.left-e.left+cl(o,"left")):e.right>f.right-cl(r,"right")&&(m=e.right-f.right+cl(o,"right")),m||p)if(d)l.defaultView.scrollBy(m,p);else{let b=u.scrollLeft,S=u.scrollTop;p&&(u.scrollTop+=p),m&&(u.scrollLeft+=m);let x=u.scrollLeft-b,w=u.scrollTop-S;e={left:e.left-x,top:e.top-w,right:e.right-x,bottom:e.bottom-w}}let g=d?"fixed":getComputedStyle(s).position;if(/^(fixed|sticky)$/.test(g))break;s=g=="absolute"?s.offsetParent:Td(s)}}function IV(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),r,o;for(let l=(e.left+e.right)/2,s=n+1;s<Math.min(innerHeight,e.bottom);s+=5){let u=t.root.elementFromPoint(l,s);if(!u||u==t.dom||!t.dom.contains(u))continue;let d=u.getBoundingClientRect();if(d.top>=n-20){r=u,o=d.top;break}}return{refDOM:r,refTop:o,stack:lP(t.dom)}}function lP(t){let e=[],n=t.ownerDocument;for(let r=t;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),t!=n);r=Td(r));return e}function kV({refDOM:t,refTop:e,stack:n}){let r=t?t.getBoundingClientRect().top:0;sP(n,r==0?0:r-e)}function sP(t,e){for(let n=0;n<t.length;n++){let{dom:r,top:o,left:l}=t[n];r.scrollTop!=o+e&&(r.scrollTop=o+e),r.scrollLeft!=l&&(r.scrollLeft=l)}}let td=null;function PV(t){if(t.setActive)return t.setActive();if(td)return t.focus(td);let e=lP(t);t.focus(td==null?{get preventScroll(){return td={preventScroll:!0},!0}}:void 0),td||(td=!1,sP(e,0))}function cP(t,e){let n,r=2e8,o,l=0,s=e.top,u=e.top,d,f;for(let m=t.firstChild,p=0;m;m=m.nextSibling,p++){let g;if(m.nodeType==1)g=m.getClientRects();else if(m.nodeType==3)g=dl(m).getClientRects();else continue;for(let b=0;b<g.length;b++){let S=g[b];if(S.top<=s&&S.bottom>=u){s=Math.max(S.bottom,s),u=Math.min(S.top,u);let x=S.left>e.left?S.left-e.left:S.right<e.left?e.left-S.right:0;if(x<r){n=m,r=x,o=x&&n.nodeType==3?{left:S.right<e.left?S.right:S.left,top:e.top}:e,m.nodeType==1&&x&&(l=p+(e.left>=(S.left+S.right)/2?1:0));continue}}else S.top>e.top&&!d&&S.left<=e.left&&S.right>=e.left&&(d=m,f={left:Math.max(S.left,Math.min(S.right,e.left)),top:S.top});!n&&(e.left>=S.right&&e.top>=S.top||e.left>=S.left&&e.top>=S.bottom)&&(l=p+1)}}return!n&&d&&(n=d,o=f,r=0),n&&n.nodeType==3?zV(n,o):!n||r&&n.nodeType==1?{node:t,offset:l}:cP(n,o)}function zV(t,e){let n=t.nodeValue.length,r=document.createRange();for(let o=0;o<n;o++){r.setEnd(t,o+1),r.setStart(t,o);let l=rs(r,1);if(l.top!=l.bottom&&qx(e,l))return{node:t,offset:o+(e.left>=(l.left+l.right)/2?1:0)}}return{node:t,offset:0}}function qx(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function _V(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function BV(t,e,n){let{node:r,offset:o}=cP(e,n),l=-1;if(r.nodeType==1&&!r.firstChild){let s=r.getBoundingClientRect();l=s.left!=s.right&&n.left>(s.left+s.right)/2?1:-1}return t.docView.posFromDOM(r,o,l)}function HV(t,e,n,r){let o=-1;for(let l=e,s=!1;l!=t.dom;){let u=t.docView.nearestDesc(l,!0),d;if(!u)return null;if(u.dom.nodeType==1&&(u.node.isBlock&&u.parent||!u.contentDOM)&&((d=u.dom.getBoundingClientRect()).width||d.height)&&(u.node.isBlock&&u.parent&&(!s&&d.left>r.left||d.top>r.top?o=u.posBefore:(!s&&d.right<r.left||d.bottom<r.top)&&(o=u.posAfter),s=!0),!u.contentDOM&&o<0&&!u.node.isText))return(u.node.isBlock?r.top<(d.top+d.bottom)/2:r.left<(d.left+d.right)/2)?u.posBefore:u.posAfter;l=u.dom.parentNode}return o>-1?o:t.docView.posFromDOM(e,n,-1)}function uP(t,e,n){let r=t.childNodes.length;if(r&&n.top<n.bottom)for(let o=Math.max(0,Math.min(r-1,Math.floor(r*(e.top-n.top)/(n.bottom-n.top))-2)),l=o;;){let s=t.childNodes[l];if(s.nodeType==1){let u=s.getClientRects();for(let d=0;d<u.length;d++){let f=u[d];if(qx(e,f))return uP(s,e,f)}}if((l=(l+1)%r)==o)break}return t}function jV(t,e){let n=t.dom.ownerDocument,r,o=0,l=MV(n,e.left,e.top);l&&({node:r,offset:o}=l);let s=(t.root.elementFromPoint?t.root:n).elementFromPoint(e.left,e.top),u;if(!s||!t.dom.contains(s.nodeType!=1?s.parentNode:s)){let f=t.dom.getBoundingClientRect();if(!qx(e,f)||(s=uP(t.dom,e,f),!s))return null}if(Ao)for(let f=s;r&&f;f=Td(f))f.draggable&&(r=void 0);if(s=_V(s,e),r){if(Ji&&r.nodeType==1&&(o=Math.min(o,r.childNodes.length),o<r.childNodes.length)){let m=r.childNodes[o],p;m.nodeName=="IMG"&&(p=m.getBoundingClientRect()).right<=e.left&&p.bottom>e.top&&o++}let f;lm&&o&&r.nodeType==1&&(f=r.childNodes[o-1]).nodeType==1&&f.contentEditable=="false"&&f.getBoundingClientRect().top>=e.top&&o--,r==t.dom&&o==r.childNodes.length-1&&r.lastChild.nodeType==1&&e.top>r.lastChild.getBoundingClientRect().bottom?u=t.state.doc.content.size:(o==0||r.nodeType!=1||r.childNodes[o-1].nodeName!="BR")&&(u=HV(t,r,o,e))}u==null&&(u=BV(t,s,e));let d=t.docView.nearestDesc(s,!0);return{pos:u,inside:d?d.posAtStart-d.border:-1}}function IN(t){return t.top<t.bottom||t.left<t.right}function rs(t,e){let n=t.getClientRects();if(n.length){let r=n[e<0?0:n.length-1];if(IN(r))return r}return Array.prototype.find.call(n,IN)||t.getBoundingClientRect()}const LV=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function dP(t,e,n){let{node:r,offset:o,atom:l}=t.docView.domFromPos(e,n<0?-1:1),s=lm||Ji;if(r.nodeType==3)if(s&&(LV.test(r.nodeValue)||(n<0?!o:o==r.nodeValue.length))){let d=rs(dl(r,o,o),n);if(Ji&&o&&/\s/.test(r.nodeValue[o-1])&&o<r.nodeValue.length){let f=rs(dl(r,o-1,o-1),-1);if(f.top==d.top){let m=rs(dl(r,o,o+1),-1);if(m.top!=d.top)return hh(m,m.left<f.left)}}return d}else{let d=o,f=o,m=n<0?1:-1;return n<0&&!o?(f++,m=-1):n>=0&&o==r.nodeValue.length?(d--,m=1):n<0?d--:f++,hh(rs(dl(r,d,f),m),m<0)}if(!t.state.doc.resolve(e-(l||0)).parent.inlineContent){if(l==null&&o&&(n<0||o==Di(r))){let d=r.childNodes[o-1];if(d.nodeType==1)return rC(d.getBoundingClientRect(),!1)}if(l==null&&o<Di(r)){let d=r.childNodes[o];if(d.nodeType==1)return rC(d.getBoundingClientRect(),!0)}return rC(r.getBoundingClientRect(),n>=0)}if(l==null&&o&&(n<0||o==Di(r))){let d=r.childNodes[o-1],f=d.nodeType==3?dl(d,Di(d)-(s?0:1)):d.nodeType==1&&(d.nodeName!="BR"||!d.nextSibling)?d:null;if(f)return hh(rs(f,1),!1)}if(l==null&&o<Di(r)){let d=r.childNodes[o];for(;d.pmViewDesc&&d.pmViewDesc.ignoreForCoords;)d=d.nextSibling;let f=d?d.nodeType==3?dl(d,0,s?0:1):d.nodeType==1?d:null:null;if(f)return hh(rs(f,-1),!0)}return hh(rs(r.nodeType==3?dl(r):r,-n),n>=0)}function hh(t,e){if(t.width==0)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function rC(t,e){if(t.height==0)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function fP(t,e,n){let r=t.state,o=t.root.activeElement;r!=e&&t.updateState(e),o!=t.dom&&t.focus();try{return n()}finally{r!=e&&t.updateState(r),o!=t.dom&&o&&o.focus()}}function VV(t,e,n){let r=e.selection,o=n=="up"?r.$from:r.$to;return fP(t,e,()=>{let{node:l}=t.docView.domFromPos(o.pos,n=="up"?-1:1);for(;;){let u=t.docView.nearestDesc(l,!0);if(!u)break;if(u.node.isBlock){l=u.contentDOM||u.dom;break}l=u.dom.parentNode}let s=dP(t,o.pos,1);for(let u=l.firstChild;u;u=u.nextSibling){let d;if(u.nodeType==1)d=u.getClientRects();else if(u.nodeType==3)d=dl(u,0,u.nodeValue.length).getClientRects();else continue;for(let f=0;f<d.length;f++){let m=d[f];if(m.bottom>m.top+1&&(n=="up"?s.top-m.top>(m.bottom-s.top)*2:m.bottom-s.bottom>(s.bottom-m.top)*2))return!1}}return!0})}const FV=/[\u0590-\u08ac]/;function UV(t,e,n){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let o=r.parentOffset,l=!o,s=o==r.parent.content.size,u=t.domSelection();return u?!FV.test(r.parent.textContent)||!u.modify?n=="left"||n=="backward"?l:s:fP(t,e,()=>{let{focusNode:d,focusOffset:f,anchorNode:m,anchorOffset:p}=t.domSelectionRange(),g=u.caretBidiLevel;u.modify("move",n,"character");let b=r.depth?t.docView.domAfterPos(r.before()):t.dom,{focusNode:S,focusOffset:x}=t.domSelectionRange(),w=S&&!b.contains(S.nodeType==1?S:S.parentNode)||d==S&&f==x;try{u.collapse(m,p),d&&(d!=m||f!=p)&&u.extend&&u.extend(d,f)}catch{}return g!=null&&(u.caretBidiLevel=g),w}):r.pos==r.start()||r.pos==r.end()}let kN=null,PN=null,zN=!1;function WV(t,e,n){return kN==e&&PN==n?zN:(kN=e,PN=n,zN=n=="up"||n=="down"?VV(t,e,n):UV(t,e,n))}const Ii=0,_N=1,Mc=2,Na=3;class sm{constructor(e,n,r,o){this.parent=e,this.children=n,this.dom=r,this.contentDOM=o,this.dirty=Ii,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,r){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let n=0;n<this.children.length;n++)e+=this.children[n].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let n=0,r=this.posAtStart;;n++){let o=this.children[n];if(o==e)return r;r+=o.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,n,r){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(r<0){let l,s;if(e==this.contentDOM)l=e.childNodes[n-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;l=e.previousSibling}for(;l&&!((s=l.pmViewDesc)&&s.parent==this);)l=l.previousSibling;return l?this.posBeforeChild(s)+s.size:this.posAtStart}else{let l,s;if(e==this.contentDOM)l=e.childNodes[n];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;l=e.nextSibling}for(;l&&!((s=l.pmViewDesc)&&s.parent==this);)l=l.nextSibling;return l?this.posBeforeChild(s):this.posAtEnd}let o;if(e==this.dom&&this.contentDOM)o=n>oo(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))o=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let l=e;;l=l.parentNode){if(l==this.dom){o=!1;break}if(l.previousSibling)break}if(o==null&&n==e.childNodes.length)for(let l=e;;l=l.parentNode){if(l==this.dom){o=!0;break}if(l.nextSibling)break}}return o??r>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let r=!0,o=e;o;o=o.parentNode){let l=this.getDesc(o),s;if(l&&(!n||l.node))if(r&&(s=l.nodeDOM)&&!(s.nodeType==1?s.contains(e.nodeType==1?e:e.parentNode):s==e))r=!1;else return l}}getDesc(e){let n=e.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(e,n,r){for(let o=e;o;o=o.parentNode){let l=this.getDesc(o);if(l)return l.localPosFromDOM(e,n,r)}return-1}descAt(e){for(let n=0,r=0;n<this.children.length;n++){let o=this.children[n],l=r+o.size;if(r==e&&l!=r){for(;!o.border&&o.children.length;)for(let s=0;s<o.children.length;s++){let u=o.children[s];if(u.size){o=u;break}}return o}if(e<l)return o.descAt(e-r-o.border);r=l}}domFromPos(e,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let r=0,o=0;for(let l=0;r<this.children.length;r++){let s=this.children[r],u=l+s.size;if(u>e||s instanceof mP){o=e-l;break}l=u}if(o)return this.children[r].domFromPos(o-this.children[r].border,n);for(let l;r&&!(l=this.children[r-1]).size&&l instanceof hP&&l.side>=0;r--);if(n<=0){let l,s=!0;for(;l=r?this.children[r-1]:null,!(!l||l.dom.parentNode==this.contentDOM);r--,s=!1);return l&&n&&s&&!l.border&&!l.domAtom?l.domFromPos(l.size,n):{node:this.contentDOM,offset:l?oo(l.dom)+1:0}}else{let l,s=!0;for(;l=r<this.children.length?this.children[r]:null,!(!l||l.dom.parentNode==this.contentDOM);r++,s=!1);return l&&s&&!l.border&&!l.domAtom?l.domFromPos(0,n):{node:this.contentDOM,offset:l?oo(l.dom):this.contentDOM.childNodes.length}}}parseRange(e,n,r=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let o=-1,l=-1;for(let s=r,u=0;;u++){let d=this.children[u],f=s+d.size;if(o==-1&&e<=f){let m=s+d.border;if(e>=m&&n<=f-d.border&&d.node&&d.contentDOM&&this.contentDOM.contains(d.contentDOM))return d.parseRange(e,n,m);e=s;for(let p=u;p>0;p--){let g=this.children[p-1];if(g.size&&g.dom.parentNode==this.contentDOM&&!g.emptyChildAt(1)){o=oo(g.dom)+1;break}e-=g.size}o==-1&&(o=0)}if(o>-1&&(f>n||u==this.children.length-1)){n=f;for(let m=u+1;m<this.children.length;m++){let p=this.children[m];if(p.size&&p.dom.parentNode==this.contentDOM&&!p.emptyChildAt(-1)){l=oo(p.dom);break}n+=p.size}l==-1&&(l=this.contentDOM.childNodes.length);break}s=f}return{node:this.contentDOM,from:e,to:n,fromOffset:o,toOffset:l}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[e<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(e)}domAfterPos(e){let{node:n,offset:r}=this.domFromPos(e,0);if(n.nodeType!=1||r==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[r]}setSelection(e,n,r,o=!1){let l=Math.min(e,n),s=Math.max(e,n);for(let b=0,S=0;b<this.children.length;b++){let x=this.children[b],w=S+x.size;if(l>S&&s<w)return x.setSelection(e-S-x.border,n-S-x.border,r,o);S=w}let u=this.domFromPos(e,e?-1:1),d=n==e?u:this.domFromPos(n,n?-1:1),f=r.root.getSelection(),m=r.domSelectionRange(),p=!1;if((Ji||Ao)&&e==n){let{node:b,offset:S}=u;if(b.nodeType==3){if(p=!!(S&&b.nodeValue[S-1]==`
317
- `),p&&S==b.nodeValue.length)for(let x=b,w;x;x=x.parentNode){if(w=x.nextSibling){w.nodeName=="BR"&&(u=d={node:w.parentNode,offset:oo(w)+1});break}let O=x.pmViewDesc;if(O&&O.node&&O.node.isBlock)break}}else{let x=b.childNodes[S-1];p=x&&(x.nodeName=="BR"||x.contentEditable=="false")}}if(Ji&&m.focusNode&&m.focusNode!=d.node&&m.focusNode.nodeType==1){let b=m.focusNode.childNodes[m.focusOffset];b&&b.contentEditable=="false"&&(o=!0)}if(!(o||p&&Ao)&&Fc(u.node,u.offset,m.anchorNode,m.anchorOffset)&&Fc(d.node,d.offset,m.focusNode,m.focusOffset))return;let g=!1;if((f.extend||e==n)&&!p){f.collapse(u.node,u.offset);try{e!=n&&f.extend(d.node,d.offset),g=!0}catch{}}if(!g){if(e>n){let S=u;u=d,d=S}let b=document.createRange();b.setEnd(d.node,d.offset),b.setStart(u.node,u.offset),f.removeAllRanges(),f.addRange(b)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let r=0,o=0;o<this.children.length;o++){let l=this.children[o],s=r+l.size;if(r==s?e<=s&&n>=r:e<s&&n>r){let u=r+l.border,d=s-l.border;if(e>=u&&n<=d){this.dirty=e==r||n==s?Mc:_N,e==u&&n==d&&(l.contentLost||l.dom.parentNode!=this.contentDOM)?l.dirty=Na:l.markDirty(e-u,n-u);return}else l.dirty=l.dom==l.contentDOM&&l.dom.parentNode==this.contentDOM&&!l.children.length?Mc:Na}r=s}this.dirty=Mc}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let r=e==1?Mc:_N;n.dirty<r&&(n.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}isText(e){return!1}}class hP extends sm{constructor(e,n,r,o){let l,s=n.type.toDOM;if(typeof s=="function"&&(s=s(r,()=>{if(!l)return o;if(l.parent)return l.parent.posBeforeChild(l)})),!n.type.spec.raw){if(s.nodeType!=1){let u=document.createElement("span");u.appendChild(s),s=u}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(e,[],s,null),this.widget=n,this.widget=n,l=this}matchesWidget(e){return this.dirty==Ii&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class qV extends sm{constructor(e,n,r,o){super(e,[],n,null),this.textDOM=r,this.text=o}get size(){return this.text.length}localPosFromDOM(e,n){return e!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class Uc extends sm{constructor(e,n,r,o,l){super(e,[],r,o),this.mark=n,this.spec=l}static create(e,n,r,o){let l=o.nodeViews[n.type.name],s=l&&l(n,o,r);return(!s||!s.dom)&&(s=Qc.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new Uc(e,n,s.dom,s.contentDOM||s.dom,s)}parseRule(){return this.dirty&Na||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=Na&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=Ii){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=Ii}}slice(e,n,r){let o=Uc.create(this.parent,this.mark,!0,r),l=this.children,s=this.size;n<s&&(l=m1(l,n,s,r)),e>0&&(l=m1(l,0,e,r));for(let u=0;u<l.length;u++)l[u].parent=o;return o.children=l,o}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class Ss extends sm{constructor(e,n,r,o,l,s,u,d,f){super(e,[],l,s),this.node=n,this.outerDeco=r,this.innerDeco=o,this.nodeDOM=u}static create(e,n,r,o,l,s){let u=l.nodeViews[n.type.name],d,f=u&&u(n,l,()=>{if(!d)return s;if(d.parent)return d.parent.posBeforeChild(d)},r,o),m=f&&f.dom,p=f&&f.contentDOM;if(n.isText){if(!m)m=document.createTextNode(n.text);else if(m.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else m||({dom:m,contentDOM:p}=Qc.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!p&&!n.isText&&m.nodeName!="BR"&&(m.hasAttribute("contenteditable")||(m.contentEditable="false"),n.type.spec.draggable&&(m.draggable=!0));let g=m;return m=vP(m,r,n),f?d=new GV(e,n,r,o,m,p||null,g,f,l,s+1):n.isText?new Kv(e,n,r,o,m,g,l):new Ss(e,n,r,o,m,p||null,g,l,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}e.contentElement||(e.getContent=()=>tt.empty)}return e}matchesNode(e,n,r){return this.dirty==Ii&&e.eq(this.node)&&dv(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,n){let r=this.node.inlineContent,o=n,l=e.composing?this.localCompositionInfo(e,n):null,s=l&&l.pos>-1?l:null,u=l&&l.pos<0,d=new YV(this,s&&s.node,e);ZV(this.node,this.innerDeco,(f,m,p)=>{f.spec.marks?d.syncToMarks(f.spec.marks,r,e):f.type.side>=0&&!p&&d.syncToMarks(m==this.node.childCount?nr.none:this.node.child(m).marks,r,e),d.placeWidget(f,e,o)},(f,m,p,g)=>{d.syncToMarks(f.marks,r,e);let b;d.findNodeMatch(f,m,p,g)||u&&e.state.selection.from>o&&e.state.selection.to<o+f.nodeSize&&(b=d.findIndexWithChild(l.node))>-1&&d.updateNodeAt(f,m,p,b,e)||d.updateNextNode(f,m,p,e,g,o)||d.addNode(f,m,p,e,o),o+=f.nodeSize}),d.syncToMarks([],r,e),this.node.isTextblock&&d.addTextblockHacks(),d.destroyRest(),(d.changed||this.dirty==Mc)&&(s&&this.protectLocalComposition(e,s),pP(this.contentDOM,this.children,e),Md&&JV(this.dom))}localCompositionInfo(e,n){let{from:r,to:o}=e.state.selection;if(!(e.state.selection instanceof Zt)||r<n||o>n+this.node.content.size)return null;let l=e.input.compositionNode;if(!l||!this.dom.contains(l.parentNode))return null;if(this.node.inlineContent){let s=l.nodeValue,u=e6(this.node.content,s,r-n,o-n);return u<0?null:{node:l,pos:u,text:s}}else return{node:l,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:r,text:o}){if(this.getDesc(n))return;let l=n;for(;l.parentNode!=this.contentDOM;l=l.parentNode){for(;l.previousSibling;)l.parentNode.removeChild(l.previousSibling);for(;l.nextSibling;)l.parentNode.removeChild(l.nextSibling);l.pmViewDesc&&(l.pmViewDesc=void 0)}let s=new qV(this,l,n,o);e.input.compositionNodes.push(s),this.children=m1(this.children,r,r+o.length,e,s)}update(e,n,r,o){return this.dirty==Na||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,r,o),!0)}updateInner(e,n,r,o){this.updateOuterDeco(n),this.node=e,this.innerDeco=r,this.contentDOM&&this.updateChildren(o,this.posAtStart),this.dirty=Ii}updateOuterDeco(e){if(dv(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=gP(this.dom,this.nodeDOM,h1(this.outerDeco,this.node,n),h1(e,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function BN(t,e,n,r,o){vP(r,e,t);let l=new Ss(void 0,t,e,n,r,r,r,o,0);return l.contentDOM&&l.updateChildren(o,0),l}class Kv extends Ss{constructor(e,n,r,o,l,s,u){super(e,n,r,o,l,null,s,u,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,r,o){return this.dirty==Na||this.dirty!=Ii&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=Ii||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,o.trackWrites==this.nodeDOM&&(o.trackWrites=null)),this.node=e,this.dirty=Ii,!0)}inParent(){let e=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,n,r){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,r)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,r){let o=this.node.cut(e,n),l=document.createTextNode(o.text);return new Kv(this.parent,o,this.outerDeco,this.innerDeco,l,l,r)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=Na)}get domAtom(){return!1}isText(e){return this.node.text==e}}class mP extends sm{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==Ii&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class GV extends Ss{constructor(e,n,r,o,l,s,u,d,f,m){super(e,n,r,o,l,s,u,f,m),this.spec=d}update(e,n,r,o){if(this.dirty==Na)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let l=this.spec.update(e,n,r);return l&&this.updateInner(e,n,r,o),l}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,r,o)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,r,o){this.spec.setSelection?this.spec.setSelection(e,n,r.root):super.setSelection(e,n,r,o)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function pP(t,e,n){let r=t.firstChild,o=!1;for(let l=0;l<e.length;l++){let s=e[l],u=s.dom;if(u.parentNode==t){for(;u!=r;)r=HN(r),o=!0;r=r.nextSibling}else o=!0,t.insertBefore(u,r);if(s instanceof Uc){let d=r?r.previousSibling:t.lastChild;pP(s.contentDOM,s.children,n),r=d?d.nextSibling:t.firstChild}}for(;r;)r=HN(r),o=!0;o&&n.trackWrites==t&&(n.trackWrites=null)}const Nh=function(t){t&&(this.nodeName=t)};Nh.prototype=Object.create(null);const $c=[new Nh];function h1(t,e,n){if(t.length==0)return $c;let r=n?$c[0]:new Nh,o=[r];for(let l=0;l<t.length;l++){let s=t[l].type.attrs;if(s){s.nodeName&&o.push(r=new Nh(s.nodeName));for(let u in s){let d=s[u];d!=null&&(n&&o.length==1&&o.push(r=new Nh(e.isInline?"span":"div")),u=="class"?r.class=(r.class?r.class+" ":"")+d:u=="style"?r.style=(r.style?r.style+";":"")+d:u!="nodeName"&&(r[u]=d))}}}return o}function gP(t,e,n,r){if(n==$c&&r==$c)return e;let o=e;for(let l=0;l<r.length;l++){let s=r[l],u=n[l];if(l){let d;u&&u.nodeName==s.nodeName&&o!=t&&(d=o.parentNode)&&d.nodeName.toLowerCase()==s.nodeName||(d=document.createElement(s.nodeName),d.pmIsDeco=!0,d.appendChild(o),u=$c[0]),o=d}KV(o,u||$c[0],s)}return o}function KV(t,e,n){for(let r in e)r!="class"&&r!="style"&&r!="nodeName"&&!(r in n)&&t.removeAttribute(r);for(let r in n)r!="class"&&r!="style"&&r!="nodeName"&&n[r]!=e[r]&&t.setAttribute(r,n[r]);if(e.class!=n.class){let r=e.class?e.class.split(" ").filter(Boolean):[],o=n.class?n.class.split(" ").filter(Boolean):[];for(let l=0;l<r.length;l++)o.indexOf(r[l])==-1&&t.classList.remove(r[l]);for(let l=0;l<o.length;l++)r.indexOf(o[l])==-1&&t.classList.add(o[l]);t.classList.length==0&&t.removeAttribute("class")}if(e.style!=n.style){if(e.style){let r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,o;for(;o=r.exec(e.style);)t.style.removeProperty(o[1])}n.style&&(t.style.cssText+=n.style)}}function vP(t,e,n){return gP(t,t,$c,h1(e,n,t.nodeType!=1))}function dv(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].type.eq(e[n].type))return!1;return!0}function HN(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class YV{constructor(e,n,r){this.lock=n,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=XV(e.node.content,e)}destroyBetween(e,n){if(e!=n){for(let r=e;r<n;r++)this.top.children[r].destroy();this.top.children.splice(e,n-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,n,r){let o=0,l=this.stack.length>>1,s=Math.min(l,e.length);for(;o<s&&(o==l-1?this.top:this.stack[o+1<<1]).matchesMark(e[o])&&e[o].type.spec.spanning!==!1;)o++;for(;o<l;)this.destroyRest(),this.top.dirty=Ii,this.index=this.stack.pop(),this.top=this.stack.pop(),l--;for(;l<e.length;){this.stack.push(this.top,this.index+1);let u=-1;for(let d=this.index;d<Math.min(this.index+3,this.top.children.length);d++){let f=this.top.children[d];if(f.matchesMark(e[l])&&!this.isLocked(f.dom)){u=d;break}}if(u>-1)u>this.index&&(this.changed=!0,this.destroyBetween(this.index,u)),this.top=this.top.children[this.index];else{let d=Uc.create(this.top,e[l],n,r);this.top.children.splice(this.index,0,d),this.top=d,this.changed=!0}this.index=0,l++}}findNodeMatch(e,n,r,o){let l=-1,s;if(o>=this.preMatch.index&&(s=this.preMatch.matches[o-this.preMatch.index]).parent==this.top&&s.matchesNode(e,n,r))l=this.top.children.indexOf(s,this.index);else for(let u=this.index,d=Math.min(this.top.children.length,u+5);u<d;u++){let f=this.top.children[u];if(f.matchesNode(e,n,r)&&!this.preMatch.matched.has(f)){l=u;break}}return l<0?!1:(this.destroyBetween(this.index,l),this.index++,!0)}updateNodeAt(e,n,r,o,l){let s=this.top.children[o];return s.dirty==Na&&s.dom==s.contentDOM&&(s.dirty=Mc),s.update(e,n,r,l)?(this.destroyBetween(this.index,o),this.index++,!0):!1}findIndexWithChild(e){for(;;){let n=e.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let r=e.pmViewDesc;if(r){for(let o=this.index;o<this.top.children.length;o++)if(this.top.children[o]==r)return o}return-1}e=n}}updateNextNode(e,n,r,o,l,s){for(let u=this.index;u<this.top.children.length;u++){let d=this.top.children[u];if(d instanceof Ss){let f=this.preMatch.matched.get(d);if(f!=null&&f!=l)return!1;let m=d.dom,p,g=this.isLocked(m)&&!(e.isText&&d.node&&d.node.isText&&d.nodeDOM.nodeValue==e.text&&d.dirty!=Na&&dv(n,d.outerDeco));if(!g&&d.update(e,n,r,o))return this.destroyBetween(this.index,u),d.dom!=m&&(this.changed=!0),this.index++,!0;if(!g&&(p=this.recreateWrapper(d,e,n,r,o,s)))return this.destroyBetween(this.index,u),this.top.children[this.index]=p,p.contentDOM&&(p.dirty=Mc,p.updateChildren(o,s+1),p.dirty=Ii),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,n,r,o,l,s){if(e.dirty||n.isAtom||!e.children.length||!e.node.content.eq(n.content)||!dv(r,e.outerDeco)||!o.eq(e.innerDeco))return null;let u=Ss.create(this.top,n,r,o,l,s);if(u.contentDOM){u.children=e.children,e.children=[];for(let d of u.children)d.parent=u}return e.destroy(),u}addNode(e,n,r,o,l){let s=Ss.create(this.top,e,n,r,o,l);s.contentDOM&&s.updateChildren(o,l+1),this.top.children.splice(this.index++,0,s),this.changed=!0}placeWidget(e,n,r){let o=this.index<this.top.children.length?this.top.children[this.index]:null;if(o&&o.matchesWidget(e)&&(e==o.widget||!o.widget.type.toDOM.parentNode))this.index++;else{let l=new hP(this.top,e,n,r);this.top.children.splice(this.index++,0,l),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],n=this.top;for(;e instanceof Uc;)n=e,e=n.children[n.children.length-1];(!e||!(e instanceof Kv)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((Ao||vo)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(e,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(e))this.index++;else{let r=document.createElement(e);e=="IMG"&&(r.className="ProseMirror-separator",r.alt=""),e=="BR"&&(r.className="ProseMirror-trailingBreak");let o=new mP(this.top,[],r,null);n!=this.top?n.children.push(o):n.children.splice(this.index++,0,o),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function XV(t,e){let n=e,r=n.children.length,o=t.childCount,l=new Map,s=[];e:for(;o>0;){let u;for(;;)if(r){let f=n.children[r-1];if(f instanceof Uc)n=f,r=f.children.length;else{u=f,r--;break}}else{if(n==e)break e;r=n.parent.children.indexOf(n),n=n.parent}let d=u.node;if(d){if(d!=t.child(o-1))break;--o,l.set(u,o),s.push(u)}}return{index:o,matched:l,matches:s.reverse()}}function QV(t,e){return t.type.side-e.type.side}function ZV(t,e,n,r){let o=e.locals(t),l=0;if(o.length==0){for(let f=0;f<t.childCount;f++){let m=t.child(f);r(m,o,e.forChild(l,m),f),l+=m.nodeSize}return}let s=0,u=[],d=null;for(let f=0;;){let m,p;for(;s<o.length&&o[s].to==l;){let w=o[s++];w.widget&&(m?(p||(p=[m])).push(w):m=w)}if(m)if(p){p.sort(QV);for(let w=0;w<p.length;w++)n(p[w],f,!!d)}else n(m,f,!!d);let g,b;if(d)b=-1,g=d,d=null;else if(f<t.childCount)b=f,g=t.child(f++);else break;for(let w=0;w<u.length;w++)u[w].to<=l&&u.splice(w--,1);for(;s<o.length&&o[s].from<=l&&o[s].to>l;)u.push(o[s++]);let S=l+g.nodeSize;if(g.isText){let w=S;s<o.length&&o[s].from<w&&(w=o[s].from);for(let O=0;O<u.length;O++)u[O].to<w&&(w=u[O].to);w<S&&(d=g.cut(w-l),g=g.cut(0,w-l),S=w,b=-1)}else for(;s<o.length&&o[s].to<S;)s++;let x=g.isInline&&!g.isLeaf?u.filter(w=>!w.inline):u.slice();r(g,x,e.forChild(l,g),b),l=S}}function JV(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function e6(t,e,n,r){for(let o=0,l=0;o<t.childCount&&l<=r;){let s=t.child(o++),u=l;if(l+=s.nodeSize,!s.isText)continue;let d=s.text;for(;o<t.childCount;){let f=t.child(o++);if(l+=f.nodeSize,!f.isText)break;d+=f.text}if(l>=n){if(l>=r&&d.slice(r-e.length-u,r-u)==e)return r-e.length;let f=u<r?d.lastIndexOf(e,r-u-1):-1;if(f>=0&&f+e.length+u>=n)return u+f;if(n==r&&d.length>=r+e.length-u&&d.slice(r-u,r-u+e.length)==e)return r}}return-1}function m1(t,e,n,r,o){let l=[];for(let s=0,u=0;s<t.length;s++){let d=t[s],f=u,m=u+=d.size;f>=n||m<=e?l.push(d):(f<e&&l.push(d.slice(0,e-f,r)),o&&(l.push(o),o=void 0),m>n&&l.push(d.slice(n-f,d.size,r)))}return l}function Gx(t,e=null){let n=t.domSelectionRange(),r=t.state.doc;if(!n.focusNode)return null;let o=t.docView.nearestDesc(n.focusNode),l=o&&o.size==0,s=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let u=r.resolve(s),d,f;if(Gv(n)){for(d=s;o&&!o.node;)o=o.parent;let p=o.node;if(o&&p.isAtom&&Gt.isSelectable(p)&&o.parent&&!(p.isInline&&RV(n.focusNode,n.focusOffset,o.dom))){let g=o.posBefore;f=new Gt(s==g?u:r.resolve(g))}}else{if(n instanceof t.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let p=s,g=s;for(let b=0;b<n.rangeCount;b++){let S=n.getRangeAt(b);p=Math.min(p,t.docView.posFromDOM(S.startContainer,S.startOffset,1)),g=Math.max(g,t.docView.posFromDOM(S.endContainer,S.endOffset,-1))}if(p<0)return null;[d,s]=g==t.state.selection.anchor?[g,p]:[p,g],u=r.resolve(s)}else d=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(d<0)return null}let m=r.resolve(d);if(!f){let p=e=="pointer"||t.state.selection.head<u.pos&&!l?1:-1;f=Kx(t,m,u,p)}return f}function yP(t){return t.editable?t.hasFocus():SP(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function gl(t,e=!1){let n=t.state.selection;if(bP(t,n),!!yP(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&vo){let r=t.domSelectionRange(),o=t.domObserver.currentSelection;if(r.anchorNode&&o.anchorNode&&Fc(r.anchorNode,r.anchorOffset,o.anchorNode,o.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)n6(t);else{let{anchor:r,head:o}=n,l,s;jN&&!(n instanceof Zt)&&(n.$from.parent.inlineContent||(l=LN(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(s=LN(t,n.to))),t.docView.setSelection(r,o,t,e),jN&&(l&&VN(l),s&&VN(s)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&t6(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const jN=Ao||vo&&aP<63;function LN(t,e){let{node:n,offset:r}=t.docView.domFromPos(e,0),o=r<n.childNodes.length?n.childNodes[r]:null,l=r?n.childNodes[r-1]:null;if(Ao&&o&&o.contentEditable=="false")return oC(o);if((!o||o.contentEditable=="false")&&(!l||l.contentEditable=="false")){if(o)return oC(o);if(l)return oC(l)}}function oC(t){return t.contentEditable="true",Ao&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function VN(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function t6(t){let e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.input.hideSelectionGuard);let n=t.domSelectionRange(),r=n.anchorNode,o=n.anchorOffset;e.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{(n.anchorNode!=r||n.anchorOffset!=o)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!yP(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function n6(t){let e=t.domSelection(),n=document.createRange();if(!e)return;let r=t.cursorWrapper.dom,o=r.nodeName=="IMG";o?n.setStart(r.parentNode,oo(r)+1):n.setStart(r,0),n.collapse(!0),e.removeAllRanges(),e.addRange(n),!o&&!t.state.selection.visible&&Vo&&bs<=11&&(r.disabled=!0,r.disabled=!1)}function bP(t,e){if(e instanceof Gt){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(FN(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else FN(t)}function FN(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function Kx(t,e,n,r){return t.someProp("createSelectionBetween",o=>o(t,e,n))||Zt.between(e,n,r)}function UN(t){return t.editable&&!t.hasFocus()?!1:SP(t)}function SP(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function r6(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return Fc(e.node,e.offset,n.anchorNode,n.anchorOffset)}function p1(t,e){let{$anchor:n,$head:r}=t.selection,o=e>0?n.max(r):n.min(r),l=o.parent.inlineContent?o.depth?t.doc.resolve(e>0?o.after():o.before()):null:o;return l&&nn.findFrom(l,e)}function as(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function WN(t,e,n){let r=t.state.selection;if(r instanceof Zt)if(n.indexOf("s")>-1){let{$head:o}=r,l=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter;if(!l||l.isText||!l.isLeaf)return!1;let s=t.state.doc.resolve(o.pos+l.nodeSize*(e<0?-1:1));return as(t,new Zt(r.$anchor,s))}else if(r.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let o=p1(t.state,e);return o&&o instanceof Gt?as(t,o):!1}else if(!(Ai&&n.indexOf("m")>-1)){let o=r.$head,l=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter,s;if(!l||l.isText)return!1;let u=e<0?o.pos-l.nodeSize:o.pos;return l.isAtom||(s=t.docView.descAt(u))&&!s.contentDOM?Gt.isSelectable(l)?as(t,new Gt(e<0?t.state.doc.resolve(o.pos-l.nodeSize):o)):lm?as(t,new Zt(t.state.doc.resolve(e<0?u:u+l.nodeSize))):!1:!1}}else return!1;else{if(r instanceof Gt&&r.node.isInline)return as(t,new Zt(e>0?r.$to:r.$from));{let o=p1(t.state,e);return o?as(t,o):!1}}}function fv(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Ah(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function nd(t,e){return e<0?o6(t):i6(t)}function o6(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let o,l,s=!1;for(Ji&&n.nodeType==1&&r<fv(n)&&Ah(n.childNodes[r],-1)&&(s=!0);;)if(r>0){if(n.nodeType!=1)break;{let u=n.childNodes[r-1];if(Ah(u,-1))o=n,l=--r;else if(u.nodeType==3)n=u,r=n.nodeValue.length;else break}}else{if(CP(n))break;{let u=n.previousSibling;for(;u&&Ah(u,-1);)o=n.parentNode,l=oo(u),u=u.previousSibling;if(u)n=u,r=fv(n);else{if(n=n.parentNode,n==t.dom)break;r=0}}}s?g1(t,n,r):o&&g1(t,o,l)}function i6(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let o=fv(n),l,s;for(;;)if(r<o){if(n.nodeType!=1)break;let u=n.childNodes[r];if(Ah(u,1))l=n,s=++r;else break}else{if(CP(n))break;{let u=n.nextSibling;for(;u&&Ah(u,1);)l=u.parentNode,s=oo(u)+1,u=u.nextSibling;if(u)n=u,r=0,o=fv(n);else{if(n=n.parentNode,n==t.dom)break;r=o=0}}}l&&g1(t,l,s)}function CP(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function a6(t,e){for(;t&&e==t.childNodes.length&&!am(t);)e=oo(t)+1,t=t.parentNode;for(;t&&e<t.childNodes.length;){let n=t.childNodes[e];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=0}}function l6(t,e){for(;t&&!e&&!am(t);)e=oo(t),t=t.parentNode;for(;t&&e;){let n=t.childNodes[e-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=t.childNodes.length}}function g1(t,e,n){if(e.nodeType!=3){let l,s;(s=a6(e,n))?(e=s,n=0):(l=l6(e,n))&&(e=l,n=l.nodeValue.length)}let r=t.domSelection();if(!r)return;if(Gv(r)){let l=document.createRange();l.setEnd(e,n),l.setStart(e,n),r.removeAllRanges(),r.addRange(l)}else r.extend&&r.extend(e,n);t.domObserver.setCurSelection();let{state:o}=t;setTimeout(()=>{t.state==o&&gl(t)},50)}function qN(t,e){let n=t.state.doc.resolve(e);if(!(vo||$V)&&n.parent.inlineContent){let o=t.coordsAtPos(e);if(e>n.start()){let l=t.coordsAtPos(e-1),s=(l.top+l.bottom)/2;if(s>o.top&&s<o.bottom&&Math.abs(l.left-o.left)>1)return l.left<o.left?"ltr":"rtl"}if(e<n.end()){let l=t.coordsAtPos(e+1),s=(l.top+l.bottom)/2;if(s>o.top&&s<o.bottom&&Math.abs(l.left-o.left)>1)return l.left>o.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function GN(t,e,n){let r=t.state.selection;if(r instanceof Zt&&!r.empty||n.indexOf("s")>-1||Ai&&n.indexOf("m")>-1)return!1;let{$from:o,$to:l}=r;if(!o.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let s=p1(t.state,e);if(s&&s instanceof Gt)return as(t,s)}if(!o.parent.inlineContent){let s=e<0?o:l,u=r instanceof si?nn.near(s,e):nn.findFrom(s,e);return u?as(t,u):!1}return!1}function KN(t,e){if(!(t.state.selection instanceof Zt))return!0;let{$head:n,$anchor:r,empty:o}=t.state.selection;if(!n.sameParent(r))return!0;if(!o)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let l=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(l&&!l.isText){let s=t.state.tr;return e<0?s.delete(n.pos-l.nodeSize,n.pos):s.delete(n.pos,n.pos+l.nodeSize),t.dispatch(s),!0}return!1}function YN(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function s6(t){if(!Ao||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let r=e.firstChild;YN(t,r,"true"),setTimeout(()=>YN(t,r,"false"),20)}return!1}function c6(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function u6(t,e){let n=e.keyCode,r=c6(e);if(n==8||Ai&&n==72&&r=="c")return KN(t,-1)||nd(t,-1);if(n==46&&!e.shiftKey||Ai&&n==68&&r=="c")return KN(t,1)||nd(t,1);if(n==13||n==27)return!0;if(n==37||Ai&&n==66&&r=="c"){let o=n==37?qN(t,t.state.selection.from)=="ltr"?-1:1:-1;return WN(t,o,r)||nd(t,o)}else if(n==39||Ai&&n==70&&r=="c"){let o=n==39?qN(t,t.state.selection.from)=="ltr"?1:-1:1;return WN(t,o,r)||nd(t,o)}else{if(n==38||Ai&&n==80&&r=="c")return GN(t,-1,r)||nd(t,-1);if(n==40||Ai&&n==78&&r=="c")return s6(t)||GN(t,1,r)||nd(t,1);if(r==(Ai?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function Yx(t,e){t.someProp("transformCopied",b=>{e=b(e,t)});let n=[],{content:r,openStart:o,openEnd:l}=e;for(;o>1&&l>1&&r.childCount==1&&r.firstChild.childCount==1;){o--,l--;let b=r.firstChild;n.push(b.type.name,b.attrs!=b.type.defaultAttrs?b.attrs:null),r=b.content}let s=t.someProp("clipboardSerializer")||Qc.fromSchema(t.state.schema),u=TP(),d=u.createElement("div");d.appendChild(s.serializeFragment(r,{document:u}));let f=d.firstChild,m,p=0;for(;f&&f.nodeType==1&&(m=RP[f.nodeName.toLowerCase()]);){for(let b=m.length-1;b>=0;b--){let S=u.createElement(m[b]);for(;d.firstChild;)S.appendChild(d.firstChild);d.appendChild(S),p++}f=d.firstChild}f&&f.nodeType==1&&f.setAttribute("data-pm-slice",`${o} ${l}${p?` -${p}`:""} ${JSON.stringify(n)}`);let g=t.someProp("clipboardTextSerializer",b=>b(e,t))||e.content.textBetween(0,e.content.size,`
318
-
319
- `);return{dom:d,text:g,slice:e}}function xP(t,e,n,r,o){let l=o.parent.type.spec.code,s,u;if(!n&&!e)return null;let d=e&&(r||l||!n);if(d){if(t.someProp("transformPastedText",g=>{e=g(e,l||r,t)}),l)return e?new At(tt.from(t.state.schema.text(e.replace(/\r\n?/g,`
320
- `))),0,0):At.empty;let p=t.someProp("clipboardTextParser",g=>g(e,o,r,t));if(p)u=p;else{let g=o.marks(),{schema:b}=t.state,S=Qc.fromSchema(b);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(x=>{let w=s.appendChild(document.createElement("p"));x&&w.appendChild(S.serializeNode(b.text(x,g)))})}}else t.someProp("transformPastedHTML",p=>{n=p(n,t)}),s=m6(n),lm&&p6(s);let f=s&&s.querySelector("[data-pm-slice]"),m=f&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(f.getAttribute("data-pm-slice")||"");if(m&&m[3])for(let p=+m[3];p>0;p--){let g=s.firstChild;for(;g&&g.nodeType!=1;)g=g.nextSibling;if(!g)break;s=g}if(u||(u=(t.someProp("clipboardParser")||t.someProp("domParser")||ys.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(d||m),context:o,ruleFromNode(g){return g.nodeName=="BR"&&!g.nextSibling&&g.parentNode&&!d6.test(g.parentNode.nodeName)?{ignore:!0}:null}})),m)u=g6(XN(u,+m[1],+m[2]),m[4]);else if(u=At.maxOpen(f6(u.content,o),!0),u.openStart||u.openEnd){let p=0,g=0;for(let b=u.content.firstChild;p<u.openStart&&!b.type.spec.isolating;p++,b=b.firstChild);for(let b=u.content.lastChild;g<u.openEnd&&!b.type.spec.isolating;g++,b=b.lastChild);u=XN(u,p,g)}return t.someProp("transformPasted",p=>{u=p(u,t)}),u}const d6=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function f6(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let o=e.node(n).contentMatchAt(e.index(n)),l,s=[];if(t.forEach(u=>{if(!s)return;let d=o.findWrapping(u.type),f;if(!d)return s=null;if(f=s.length&&l.length&&EP(d,l,u,s[s.length-1],0))s[s.length-1]=f;else{s.length&&(s[s.length-1]=OP(s[s.length-1],l.length));let m=wP(u,d);s.push(m),o=o.matchType(m.type),l=d}}),s)return tt.from(s)}return t}function wP(t,e,n=0){for(let r=e.length-1;r>=n;r--)t=e[r].create(null,tt.from(t));return t}function EP(t,e,n,r,o){if(o<t.length&&o<e.length&&t[o]==e[o]){let l=EP(t,e,n,r.lastChild,o+1);if(l)return r.copy(r.content.replaceChild(r.childCount-1,l));if(r.contentMatchAt(r.childCount).matchType(o==t.length-1?n.type:t[o+1]))return r.copy(r.content.append(tt.from(wP(n,t,o+1))))}}function OP(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,OP(t.lastChild,e-1)),r=t.contentMatchAt(t.childCount).fillBefore(tt.empty,!0);return t.copy(n.append(r))}function v1(t,e,n,r,o,l){let s=e<0?t.firstChild:t.lastChild,u=s.content;return t.childCount>1&&(l=0),o<r-1&&(u=v1(u,e,n,r,o+1,l)),o>=n&&(u=e<0?s.contentMatchAt(0).fillBefore(u,l<=o).append(u):u.append(s.contentMatchAt(s.childCount).fillBefore(tt.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(u))}function XN(t,e,n){return e<t.openStart&&(t=new At(v1(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new At(v1(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const RP={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let QN=null;function TP(){return QN||(QN=document.implementation.createHTMLDocument("title"))}let iC=null;function h6(t){let e=window.trustedTypes;return e?(iC||(iC=e.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})),iC.createHTML(t)):t}function m6(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=TP().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(t),o;if((o=r&&RP[r[1].toLowerCase()])&&(t=o.map(l=>"<"+l+">").join("")+t+o.map(l=>"</"+l+">").reverse().join("")),n.innerHTML=h6(t),o)for(let l=0;l<o.length;l++)n=n.querySelector(o[l])||n;return n}function p6(t){let e=t.querySelectorAll(vo?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<e.length;n++){let r=e[n];r.childNodes.length==1&&r.textContent==" "&&r.parentNode&&r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),r)}}function g6(t,e){if(!t.size)return t;let n=t.content.firstChild.type.schema,r;try{r=JSON.parse(e)}catch{return t}let{content:o,openStart:l,openEnd:s}=t;for(let u=r.length-2;u>=0;u-=2){let d=n.nodes[r[u]];if(!d||d.hasRequiredAttrs())break;o=tt.from(d.create(r[u+1],o)),l++,s++}return new At(o,l,s)}const Do={},Io={},v6={touchstart:!0,touchmove:!0};class y6{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function b6(t){for(let e in Do){let n=Do[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=r=>{C6(t,r)&&!Xx(t,r)&&(t.editable||!(r.type in Io))&&n(t,r)},v6[e]?{passive:!0}:void 0)}Ao&&t.dom.addEventListener("input",()=>null),y1(t)}function hs(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function S6(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function y1(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=r=>Xx(t,r))})}function Xx(t,e){return t.someProp("handleDOMEvents",n=>{let r=n[e.type];return r?r(t,e)||e.defaultPrevented:!1})}function C6(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function x6(t,e){!Xx(t,e)&&Do[e.type]&&(t.editable||!(e.type in Io))&&Do[e.type](t,e)}Io.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!$P(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(hl&&vo&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),Md&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();t.input.lastIOSEnter=r,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==r&&(t.someProp("handleKeyDown",o=>o(t,Ec(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",r=>r(t,n))||u6(t,n)?n.preventDefault():hs(t,"key")};Io.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)};Io.keypress=(t,e)=>{let n=e;if($P(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||Ai&&n.metaKey)return;if(t.someProp("handleKeyPress",o=>o(t,n))){n.preventDefault();return}let r=t.state.selection;if(!(r instanceof Zt)||!r.$from.sameParent(r.$to)){let o=String.fromCharCode(n.charCode);!/[\r\n]/.test(o)&&!t.someProp("handleTextInput",l=>l(t,r.$from.pos,r.$to.pos,o))&&t.dispatch(t.state.tr.insertText(o).scrollIntoView()),n.preventDefault()}};function Yv(t){return{left:t.clientX,top:t.clientY}}function w6(t,e){let n=e.x-t.clientX,r=e.y-t.clientY;return n*n+r*r<100}function Qx(t,e,n,r,o){if(r==-1)return!1;let l=t.state.doc.resolve(r);for(let s=l.depth+1;s>0;s--)if(t.someProp(e,u=>s>l.depth?u(t,n,l.nodeAfter,l.before(s),o,!0):u(t,n,l.node(s),l.before(s),o,!1)))return!0;return!1}function Sd(t,e,n){if(t.focused||t.focus(),t.state.selection.eq(e))return;let r=t.state.tr.setSelection(e);r.setMeta("pointer",!0),t.dispatch(r)}function E6(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),r=n.nodeAfter;return r&&r.isAtom&&Gt.isSelectable(r)?(Sd(t,new Gt(n)),!0):!1}function O6(t,e){if(e==-1)return!1;let n=t.state.selection,r,o;n instanceof Gt&&(r=n.node);let l=t.state.doc.resolve(e);for(let s=l.depth+1;s>0;s--){let u=s>l.depth?l.nodeAfter:l.node(s);if(Gt.isSelectable(u)){r&&n.$from.depth>0&&s>=n.$from.depth&&l.before(n.$from.depth+1)==n.$from.pos?o=l.before(n.$from.depth):o=l.before(s);break}}return o!=null?(Sd(t,Gt.create(t.state.doc,o)),!0):!1}function R6(t,e,n,r,o){return Qx(t,"handleClickOn",e,n,r)||t.someProp("handleClick",l=>l(t,e,r))||(o?O6(t,n):E6(t,n))}function T6(t,e,n,r){return Qx(t,"handleDoubleClickOn",e,n,r)||t.someProp("handleDoubleClick",o=>o(t,e,r))}function M6(t,e,n,r){return Qx(t,"handleTripleClickOn",e,n,r)||t.someProp("handleTripleClick",o=>o(t,e,r))||$6(t,n,r)}function $6(t,e,n){if(n.button!=0)return!1;let r=t.state.doc;if(e==-1)return r.inlineContent?(Sd(t,Zt.create(r,0,r.content.size)),!0):!1;let o=r.resolve(e);for(let l=o.depth+1;l>0;l--){let s=l>o.depth?o.nodeAfter:o.node(l),u=o.before(l);if(s.inlineContent)Sd(t,Zt.create(r,u+1,u+1+s.content.size));else if(Gt.isSelectable(s))Sd(t,Gt.create(r,u));else continue;return!0}}function Zx(t){return hv(t)}const MP=Ai?"metaKey":"ctrlKey";Do.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let r=Zx(t),o=Date.now(),l="singleClick";o-t.input.lastClick.time<500&&w6(n,t.input.lastClick)&&!n[MP]&&(t.input.lastClick.type=="singleClick"?l="doubleClick":t.input.lastClick.type=="doubleClick"&&(l="tripleClick")),t.input.lastClick={time:o,x:n.clientX,y:n.clientY,type:l};let s=t.posAtCoords(Yv(n));s&&(l=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new N6(t,s,n,!!r)):(l=="doubleClick"?T6:M6)(t,s.pos,s.inside,n)?n.preventDefault():hs(t,"pointer"))};class N6{constructor(e,n,r,o){this.view=e,this.pos=n,this.event=r,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[MP],this.allowDefault=r.shiftKey;let l,s;if(n.inside>-1)l=e.state.doc.nodeAt(n.inside),s=n.inside;else{let m=e.state.doc.resolve(n.pos);l=m.parent,s=m.depth?m.before():0}const u=o?null:r.target,d=u?e.docView.nearestDesc(u,!0):null;this.target=d&&d.dom.nodeType==1?d.dom:null;let{selection:f}=e.state;(r.button==0&&l.type.spec.draggable&&l.type.spec.selectable!==!1||f instanceof Gt&&f.from<=s&&f.to>s)&&(this.mightDrag={node:l,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Ji&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),hs(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>gl(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(Yv(e))),this.updateAllowDefault(e),this.allowDefault||!n?hs(this.view,"pointer"):R6(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||Ao&&this.mightDrag&&!this.mightDrag.node.isAtom||vo&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(Sd(this.view,nn.near(this.view.state.doc.resolve(n.pos))),e.preventDefault()):hs(this.view,"pointer")}move(e){this.updateAllowDefault(e),hs(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}Do.touchstart=t=>{t.input.lastTouch=Date.now(),Zx(t),hs(t,"pointer")};Do.touchmove=t=>{t.input.lastTouch=Date.now(),hs(t,"pointer")};Do.contextmenu=t=>Zx(t);function $P(t,e){return t.composing?!0:Ao&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const A6=hl?5e3:-1;Io.compositionstart=Io.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$to;if(e.selection instanceof Zt&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))t.markCursor=t.state.storedMarks||n.marks(),hv(t,!0),t.markCursor=null;else if(hv(t,!e.selection.empty),Ji&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=t.domSelectionRange();for(let o=r.focusNode,l=r.focusOffset;o&&o.nodeType==1&&l!=0;){let s=l<0?o.lastChild:o.childNodes[l-1];if(!s)break;if(s.nodeType==3){let u=t.domSelection();u&&u.collapse(s,s.nodeValue.length);break}else o=s,l=-1}}t.input.composing=!0}NP(t,A6)};Io.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionNode=null,t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,NP(t,20))};function NP(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>hv(t),e))}function AP(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=I6());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function D6(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=EV(e.focusNode,e.focusOffset),r=OV(e.focusNode,e.focusOffset);if(n&&r&&n!=r){let o=r.pmViewDesc,l=t.domObserver.lastChangedTextNode;if(n==l||r==l)return l;if(!o||!o.isText(r.nodeValue))return r;if(t.input.compositionNode==r){let s=n.pmViewDesc;if(!(!s||!s.isText(n.nodeValue)))return r}}return n||r}function I6(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function hv(t,e=!1){if(!(hl&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),AP(t),e||t.docView&&t.docView.dirty){let n=Gx(t);return n&&!n.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(n)):(t.markCursor||e)&&!t.state.selection.empty?t.dispatch(t.state.tr.deleteSelection()):t.updateState(t.state),!0}return!1}}function k6(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),o=document.createRange();o.selectNodeContents(e),t.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}const Lh=Vo&&bs<15||Md&&NV<604;Do.copy=Io.cut=(t,e)=>{let n=e,r=t.state.selection,o=n.type=="cut";if(r.empty)return;let l=Lh?null:n.clipboardData,s=r.content(),{dom:u,text:d}=Yx(t,s);l?(n.preventDefault(),l.clearData(),l.setData("text/html",u.innerHTML),l.setData("text/plain",d)):k6(t,u),o&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function P6(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function z6(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,r=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let o=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),r.parentNode&&r.parentNode.removeChild(r),n?Vh(t,r.value,null,o,e):Vh(t,r.textContent,r.innerHTML,o,e)},50)}function Vh(t,e,n,r,o){let l=xP(t,e,n,r,t.state.selection.$from);if(t.someProp("handlePaste",d=>d(t,o,l||At.empty)))return!0;if(!l)return!1;let s=P6(l),u=s?t.state.tr.replaceSelectionWith(s,r):t.state.tr.replaceSelection(l);return t.dispatch(u.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function DP(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let n=t.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Io.paste=(t,e)=>{let n=e;if(t.composing&&!hl)return;let r=Lh?null:n.clipboardData,o=t.input.shiftKey&&t.input.lastKeyCode!=45;r&&Vh(t,DP(r),r.getData("text/html"),o,n)?n.preventDefault():z6(t,n)};class IP{constructor(e,n,r){this.slice=e,this.move=n,this.node=r}}const kP=Ai?"altKey":"ctrlKey";Do.dragstart=(t,e)=>{let n=e,r=t.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let o=t.state.selection,l=o.empty?null:t.posAtCoords(Yv(n)),s;if(!(l&&l.pos>=o.from&&l.pos<=(o instanceof Gt?o.to-1:o.to))){if(r&&r.mightDrag)s=Gt.create(t.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let p=t.docView.nearestDesc(n.target,!0);p&&p.node.type.spec.draggable&&p!=t.docView&&(s=Gt.create(t.state.doc,p.posBefore))}}let u=(s||t.state.selection).content(),{dom:d,text:f,slice:m}=Yx(t,u);(!n.dataTransfer.files.length||!vo||aP>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Lh?"Text":"text/html",d.innerHTML),n.dataTransfer.effectAllowed="copyMove",Lh||n.dataTransfer.setData("text/plain",f),t.dragging=new IP(m,!n[kP],s)};Do.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)};Io.dragover=Io.dragenter=(t,e)=>e.preventDefault();Io.drop=(t,e)=>{let n=e,r=t.dragging;if(t.dragging=null,!n.dataTransfer)return;let o=t.posAtCoords(Yv(n));if(!o)return;let l=t.state.doc.resolve(o.pos),s=r&&r.slice;s?t.someProp("transformPasted",S=>{s=S(s,t)}):s=xP(t,DP(n.dataTransfer),Lh?null:n.dataTransfer.getData("text/html"),!1,l);let u=!!(r&&!n[kP]);if(t.someProp("handleDrop",S=>S(t,n,s||At.empty,u))){n.preventDefault();return}if(!s)return;n.preventDefault();let d=s?Xk(t.state.doc,l.pos,s):l.pos;d==null&&(d=l.pos);let f=t.state.tr;if(u){let{node:S}=r;S?S.replace(f):f.deleteSelection()}let m=f.mapping.map(d),p=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,g=f.doc;if(p?f.replaceRangeWith(m,m,s.content.firstChild):f.replaceRange(m,m,s),f.doc.eq(g))return;let b=f.doc.resolve(m);if(p&&Gt.isSelectable(s.content.firstChild)&&b.nodeAfter&&b.nodeAfter.sameMarkup(s.content.firstChild))f.setSelection(new Gt(b));else{let S=f.mapping.map(d);f.mapping.maps[f.mapping.maps.length-1].forEach((x,w,O,E)=>S=E),f.setSelection(Kx(t,b,f.doc.resolve(S)))}t.focus(),t.dispatch(f.setMeta("uiEvent","drop"))};Do.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&gl(t)},20))};Do.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)};Do.beforeinput=(t,e)=>{if(vo&&hl&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:r}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=r||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",l=>l(t,Ec(8,"Backspace")))))return;let{$cursor:o}=t.state.selection;o&&o.pos>0&&t.dispatch(t.state.tr.delete(o.pos-1,o.pos).scrollIntoView())},50)}};for(let t in Io)Do[t]=Io[t];function Fh(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class mv{constructor(e,n){this.toDOM=e,this.spec=n||zc,this.side=this.spec.side||0}map(e,n,r,o){let{pos:l,deleted:s}=e.mapResult(n.from+o,this.side<0?-1:1);return s?null:new No(l-r,l-r,this)}valid(){return!0}eq(e){return this==e||e instanceof mv&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Fh(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Cs{constructor(e,n){this.attrs=e,this.spec=n||zc}map(e,n,r,o){let l=e.map(n.from+o,this.spec.inclusiveStart?-1:1)-r,s=e.map(n.to+o,this.spec.inclusiveEnd?1:-1)-r;return l>=s?null:new No(l,s,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof Cs&&Fh(this.attrs,e.attrs)&&Fh(this.spec,e.spec)}static is(e){return e.type instanceof Cs}destroy(){}}class Jx{constructor(e,n){this.attrs=e,this.spec=n||zc}map(e,n,r,o){let l=e.mapResult(n.from+o,1);if(l.deleted)return null;let s=e.mapResult(n.to+o,-1);return s.deleted||s.pos<=l.pos?null:new No(l.pos-r,s.pos-r,this)}valid(e,n){let{index:r,offset:o}=e.content.findIndex(n.from),l;return o==n.from&&!(l=e.child(r)).isText&&o+l.nodeSize==n.to}eq(e){return this==e||e instanceof Jx&&Fh(this.attrs,e.attrs)&&Fh(this.spec,e.spec)}destroy(){}}class No{constructor(e,n,r){this.from=e,this.to=n,this.type=r}copy(e,n){return new No(e,n,this.type)}eq(e,n=0){return this.type.eq(e.type)&&this.from+n==e.from&&this.to+n==e.to}map(e,n,r){return this.type.map(e,this,n,r)}static widget(e,n,r){return new No(e,e,new mv(n,r))}static inline(e,n,r,o){return new No(e,n,new Cs(r,o))}static node(e,n,r,o){return new No(e,n,new Jx(r,o))}get spec(){return this.type.spec}get inline(){return this.type instanceof Cs}get widget(){return this.type instanceof mv}}const hd=[],zc={};class Sr{constructor(e,n){this.local=e.length?e:hd,this.children=n.length?n:hd}static create(e,n){return n.length?pv(n,e,0,zc):po}find(e,n,r){let o=[];return this.findInner(e??0,n??1e9,o,0,r),o}findInner(e,n,r,o,l){for(let s=0;s<this.local.length;s++){let u=this.local[s];u.from<=n&&u.to>=e&&(!l||l(u.spec))&&r.push(u.copy(u.from+o,u.to+o))}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<n&&this.children[s+1]>e){let u=this.children[s]+1;this.children[s+2].findInner(e-u,n-u,r,o+u,l)}}map(e,n,r){return this==po||e.maps.length==0?this:this.mapInner(e,n,0,0,r||zc)}mapInner(e,n,r,o,l){let s;for(let u=0;u<this.local.length;u++){let d=this.local[u].map(e,r,o);d&&d.type.valid(n,d)?(s||(s=[])).push(d):l.onRemove&&l.onRemove(this.local[u].spec)}return this.children.length?_6(this.children,s||[],e,n,r,o,l):s?new Sr(s.sort(_c),hd):po}add(e,n){return n.length?this==po?Sr.create(e,n):this.addInner(e,n,0):this}addInner(e,n,r){let o,l=0;e.forEach((u,d)=>{let f=d+r,m;if(m=zP(n,u,f)){for(o||(o=this.children.slice());l<o.length&&o[l]<d;)l+=3;o[l]==d?o[l+2]=o[l+2].addInner(u,m,f+1):o.splice(l,0,d,d+u.nodeSize,pv(m,u,f+1,zc)),l+=3}});let s=PP(l?_P(n):n,-r);for(let u=0;u<s.length;u++)s[u].type.valid(e,s[u])||s.splice(u--,1);return new Sr(s.length?this.local.concat(s).sort(_c):this.local,o||this.children)}remove(e){return e.length==0||this==po?this:this.removeInner(e,0)}removeInner(e,n){let r=this.children,o=this.local;for(let l=0;l<r.length;l+=3){let s,u=r[l]+n,d=r[l+1]+n;for(let m=0,p;m<e.length;m++)(p=e[m])&&p.from>u&&p.to<d&&(e[m]=null,(s||(s=[])).push(p));if(!s)continue;r==this.children&&(r=this.children.slice());let f=r[l+2].removeInner(s,u+1);f!=po?r[l+2]=f:(r.splice(l,3),l-=3)}if(o.length){for(let l=0,s;l<e.length;l++)if(s=e[l])for(let u=0;u<o.length;u++)o[u].eq(s,n)&&(o==this.local&&(o=this.local.slice()),o.splice(u--,1))}return r==this.children&&o==this.local?this:o.length||r.length?new Sr(o,r):po}forChild(e,n){if(this==po)return this;if(n.isLeaf)return Sr.empty;let r,o;for(let u=0;u<this.children.length;u+=3)if(this.children[u]>=e){this.children[u]==e&&(r=this.children[u+2]);break}let l=e+1,s=l+n.content.size;for(let u=0;u<this.local.length;u++){let d=this.local[u];if(d.from<s&&d.to>l&&d.type instanceof Cs){let f=Math.max(l,d.from)-l,m=Math.min(s,d.to)-l;f<m&&(o||(o=[])).push(d.copy(f,m))}}if(o){let u=new Sr(o.sort(_c),hd);return r?new ss([u,r]):u}return r||po}eq(e){if(this==e)return!0;if(!(e instanceof Sr)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(e.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=e.children[n]||this.children[n+1]!=e.children[n+1]||!this.children[n+2].eq(e.children[n+2]))return!1;return!0}locals(e){return ew(this.localsInner(e))}localsInner(e){if(this==po)return hd;if(e.inlineContent||!this.local.some(Cs.is))return this.local;let n=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof Cs||n.push(this.local[r]);return n}forEachSet(e){e(this)}}Sr.empty=new Sr([],[]);Sr.removeOverlap=ew;const po=Sr.empty;class ss{constructor(e){this.members=e}map(e,n){const r=this.members.map(o=>o.map(e,n,zc));return ss.from(r)}forChild(e,n){if(n.isLeaf)return Sr.empty;let r=[];for(let o=0;o<this.members.length;o++){let l=this.members[o].forChild(e,n);l!=po&&(l instanceof ss?r=r.concat(l.members):r.push(l))}return ss.from(r)}eq(e){if(!(e instanceof ss)||e.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(e.members[n]))return!1;return!0}locals(e){let n,r=!0;for(let o=0;o<this.members.length;o++){let l=this.members[o].localsInner(e);if(l.length)if(!n)n=l;else{r&&(n=n.slice(),r=!1);for(let s=0;s<l.length;s++)n.push(l[s])}}return n?ew(r?n:n.sort(_c)):hd}static from(e){switch(e.length){case 0:return po;case 1:return e[0];default:return new ss(e.every(n=>n instanceof Sr)?e:e.reduce((n,r)=>n.concat(r instanceof Sr?r:r.members),[]))}}forEachSet(e){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(e)}}function _6(t,e,n,r,o,l,s){let u=t.slice();for(let f=0,m=l;f<n.maps.length;f++){let p=0;n.maps[f].forEach((g,b,S,x)=>{let w=x-S-(b-g);for(let O=0;O<u.length;O+=3){let E=u[O+1];if(E<0||g>E+m-p)continue;let M=u[O]+m-p;b>=M?u[O+1]=g<=M?-2:-1:g>=m&&w&&(u[O]+=w,u[O+1]+=w)}p+=w}),m=n.maps[f].map(m,-1)}let d=!1;for(let f=0;f<u.length;f+=3)if(u[f+1]<0){if(u[f+1]==-2){d=!0,u[f+1]=-1;continue}let m=n.map(t[f]+l),p=m-o;if(p<0||p>=r.content.size){d=!0;continue}let g=n.map(t[f+1]+l,-1),b=g-o,{index:S,offset:x}=r.content.findIndex(p),w=r.maybeChild(S);if(w&&x==p&&x+w.nodeSize==b){let O=u[f+2].mapInner(n,w,m+1,t[f]+l+1,s);O!=po?(u[f]=p,u[f+1]=b,u[f+2]=O):(u[f+1]=-2,d=!0)}else d=!0}if(d){let f=B6(u,t,e,n,o,l,s),m=pv(f,r,0,s);e=m.local;for(let p=0;p<u.length;p+=3)u[p+1]<0&&(u.splice(p,3),p-=3);for(let p=0,g=0;p<m.children.length;p+=3){let b=m.children[p];for(;g<u.length&&u[g]<b;)g+=3;u.splice(g,0,m.children[p],m.children[p+1],m.children[p+2])}}return new Sr(e.sort(_c),u)}function PP(t,e){if(!e||!t.length)return t;let n=[];for(let r=0;r<t.length;r++){let o=t[r];n.push(new No(o.from+e,o.to+e,o.type))}return n}function B6(t,e,n,r,o,l,s){function u(d,f){for(let m=0;m<d.local.length;m++){let p=d.local[m].map(r,o,f);p?n.push(p):s.onRemove&&s.onRemove(d.local[m].spec)}for(let m=0;m<d.children.length;m+=3)u(d.children[m+2],d.children[m]+f+1)}for(let d=0;d<t.length;d+=3)t[d+1]==-1&&u(t[d+2],e[d]+l+1);return n}function zP(t,e,n){if(e.isLeaf)return null;let r=n+e.nodeSize,o=null;for(let l=0,s;l<t.length;l++)(s=t[l])&&s.from>n&&s.to<r&&((o||(o=[])).push(s),t[l]=null);return o}function _P(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function pv(t,e,n,r){let o=[],l=!1;e.forEach((u,d)=>{let f=zP(t,u,d+n);if(f){l=!0;let m=pv(f,u,n+d+1,r);m!=po&&o.push(d,d+u.nodeSize,m)}});let s=PP(l?_P(t):t,-n).sort(_c);for(let u=0;u<s.length;u++)s[u].type.valid(e,s[u])||(r.onRemove&&r.onRemove(s[u].spec),s.splice(u--,1));return s.length||o.length?new Sr(s,o):po}function _c(t,e){return t.from-e.from||t.to-e.to}function ew(t){let e=t;for(let n=0;n<e.length-1;n++){let r=e[n];if(r.from!=r.to)for(let o=n+1;o<e.length;o++){let l=e[o];if(l.from==r.from){l.to!=r.to&&(e==t&&(e=t.slice()),e[o]=l.copy(l.from,r.to),ZN(e,o+1,l.copy(r.to,l.to)));continue}else{l.from<r.to&&(e==t&&(e=t.slice()),e[n]=r.copy(r.from,l.from),ZN(e,o,r.copy(l.from,r.to)));break}}}return e}function ZN(t,e,n){for(;e<t.length&&_c(n,t[e])>0;)e++;t.splice(e,0,n)}function aC(t){let e=[];return t.someProp("decorations",n=>{let r=n(t.state);r&&r!=po&&e.push(r)}),t.cursorWrapper&&e.push(Sr.create(t.state.doc,[t.cursorWrapper.deco])),ss.from(e)}const H6={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},j6=Vo&&bs<=11;class L6{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class V6{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new L6,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let o=0;o<r.length;o++)this.queue.push(r[o]);Vo&&bs<=11&&r.some(o=>o.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():this.flush()}),j6&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,H6)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let n=0;n<e.length;n++)this.queue.push(e[n]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(UN(this.view)){if(this.suppressingSelectionUpdates)return gl(this.view);if(Vo&&bs<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&Fc(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let n=new Set,r;for(let l=e.focusNode;l;l=Td(l))n.add(l);for(let l=e.anchorNode;l;l=Td(l))if(n.has(l)){r=l;break}let o=r&&this.view.docView.nearestDesc(r);if(o&&o.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=e.domSelectionRange(),o=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&UN(e)&&!this.ignoreSelectionChange(r),l=-1,s=-1,u=!1,d=[];if(e.editable)for(let m=0;m<n.length;m++){let p=this.registerMutation(n[m],d);p&&(l=l<0?p.from:Math.min(p.from,l),s=s<0?p.to:Math.max(p.to,s),p.typeOver&&(u=!0))}if(Ji&&d.length){let m=d.filter(p=>p.nodeName=="BR");if(m.length==2){let[p,g]=m;p.parentNode&&p.parentNode.parentNode==g.parentNode?g.remove():p.remove()}else{let{focusNode:p}=this.currentSelection;for(let g of m){let b=g.parentNode;b&&b.nodeName=="LI"&&(!p||W6(e,p)!=b)&&g.remove()}}}let f=null;l<0&&o&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&Gv(r)&&(f=Gx(e))&&f.eq(nn.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,gl(e),this.currentSelection.set(r),e.scrollToSelection()):(l>-1||o)&&(l>-1&&(e.docView.markDirty(l,s),F6(e)),this.handleDOMChange(l,s,u,d),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||gl(e),this.currentSelection.set(r))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(r==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!r||r.ignoreMutation(e))return null;if(e.type=="childList"){for(let m=0;m<e.addedNodes.length;m++){let p=e.addedNodes[m];n.push(p),p.nodeType==3&&(this.lastChangedTextNode=p)}if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(e.target))return{from:r.posBefore,to:r.posAfter};let o=e.previousSibling,l=e.nextSibling;if(Vo&&bs<=11&&e.addedNodes.length)for(let m=0;m<e.addedNodes.length;m++){let{previousSibling:p,nextSibling:g}=e.addedNodes[m];(!p||Array.prototype.indexOf.call(e.addedNodes,p)<0)&&(o=p),(!g||Array.prototype.indexOf.call(e.addedNodes,g)<0)&&(l=g)}let s=o&&o.parentNode==e.target?oo(o)+1:0,u=r.localPosFromDOM(e.target,s,-1),d=l&&l.parentNode==e.target?oo(l):e.target.childNodes.length,f=r.localPosFromDOM(e.target,d,1);return{from:u,to:f}}else return e.type=="attributes"?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:(this.lastChangedTextNode=e.target,{from:r.posAtStart,to:r.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let JN=new WeakMap,eA=!1;function F6(t){if(!JN.has(t)&&(JN.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=Ji,eA)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),eA=!0}}function tA(t,e){let n=e.startContainer,r=e.startOffset,o=e.endContainer,l=e.endOffset,s=t.domAtPos(t.state.selection.anchor);return Fc(s.node,s.offset,o,l)&&([n,r,o,l]=[o,l,n,r]),{anchorNode:n,anchorOffset:r,focusNode:o,focusOffset:l}}function U6(t,e){if(e.getComposedRanges){let o=e.getComposedRanges(t.root)[0];if(o)return tA(t,o)}let n;function r(o){o.preventDefault(),o.stopImmediatePropagation(),n=o.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",r,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",r,!0),n?tA(t,n):null}function W6(t,e){for(let n=e.parentNode;n&&n!=t.dom;n=n.parentNode){let r=t.docView.nearestDesc(n,!0);if(r&&r.node.isBlock)return n}return null}function q6(t,e,n){let{node:r,fromOffset:o,toOffset:l,from:s,to:u}=t.docView.parseRange(e,n),d=t.domSelectionRange(),f,m=d.anchorNode;if(m&&t.dom.contains(m.nodeType==1?m:m.parentNode)&&(f=[{node:m,offset:d.anchorOffset}],Gv(d)||f.push({node:d.focusNode,offset:d.focusOffset})),vo&&t.input.lastKeyCode===8)for(let w=l;w>o;w--){let O=r.childNodes[w-1],E=O.pmViewDesc;if(O.nodeName=="BR"&&!E){l=w;break}if(!E||E.size)break}let p=t.state.doc,g=t.someProp("domParser")||ys.fromSchema(t.state.schema),b=p.resolve(s),S=null,x=g.parse(r,{topNode:b.parent,topMatch:b.parent.contentMatchAt(b.index()),topOpen:!0,from:o,to:l,preserveWhitespace:b.parent.type.whitespace=="pre"?"full":!0,findPositions:f,ruleFromNode:G6,context:b});if(f&&f[0].pos!=null){let w=f[0].pos,O=f[1]&&f[1].pos;O==null&&(O=w),S={anchor:w+s,head:O+s}}return{doc:x,sel:S,from:s,to:u}}function G6(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(Ao&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(t.parentNode.lastChild==t||Ao&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const K6=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function Y6(t,e,n,r,o){let l=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let P=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,B=Gx(t,P);if(B&&!t.state.selection.eq(B)){if(vo&&hl&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",W=>W(t,Ec(13,"Enter"))))return;let L=t.state.tr.setSelection(B);P=="pointer"?L.setMeta("pointer",!0):P=="key"&&L.scrollIntoView(),l&&L.setMeta("composition",l),t.dispatch(L)}return}let s=t.state.doc.resolve(e),u=s.sharedDepth(n);e=s.before(u+1),n=t.state.doc.resolve(n).after(u+1);let d=t.state.selection,f=q6(t,e,n),m=t.state.doc,p=m.slice(f.from,f.to),g,b;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(g=t.state.selection.to,b="end"):(g=t.state.selection.from,b="start"),t.input.lastKeyCode=null;let S=Z6(p.content,f.doc.content,f.from,g,b);if(S&&t.input.domChangeCount++,(Md&&t.input.lastIOSEnter>Date.now()-225||hl)&&o.some(P=>P.nodeType==1&&!K6.test(P.nodeName))&&(!S||S.endA>=S.endB)&&t.someProp("handleKeyDown",P=>P(t,Ec(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!S)if(r&&d instanceof Zt&&!d.empty&&d.$head.sameParent(d.$anchor)&&!t.composing&&!(f.sel&&f.sel.anchor!=f.sel.head))S={start:d.from,endA:d.to,endB:d.to};else{if(f.sel){let P=nA(t,t.state.doc,f.sel);if(P&&!P.eq(t.state.selection)){let B=t.state.tr.setSelection(P);l&&B.setMeta("composition",l),t.dispatch(B)}}return}t.state.selection.from<t.state.selection.to&&S.start==S.endB&&t.state.selection instanceof Zt&&(S.start>t.state.selection.from&&S.start<=t.state.selection.from+2&&t.state.selection.from>=f.from?S.start=t.state.selection.from:S.endA<t.state.selection.to&&S.endA>=t.state.selection.to-2&&t.state.selection.to<=f.to&&(S.endB+=t.state.selection.to-S.endA,S.endA=t.state.selection.to)),Vo&&bs<=11&&S.endB==S.start+1&&S.endA==S.start&&S.start>f.from&&f.doc.textBetween(S.start-f.from-1,S.start-f.from+1)=="  "&&(S.start--,S.endA--,S.endB--);let x=f.doc.resolveNoCache(S.start-f.from),w=f.doc.resolveNoCache(S.endB-f.from),O=m.resolve(S.start),E=x.sameParent(w)&&x.parent.inlineContent&&O.end()>=S.endA,M;if((Md&&t.input.lastIOSEnter>Date.now()-225&&(!E||o.some(P=>P.nodeName=="DIV"||P.nodeName=="P"))||!E&&x.pos<f.doc.content.size&&!x.sameParent(w)&&(M=nn.findFrom(f.doc.resolve(x.pos+1),1,!0))&&M.head==w.pos)&&t.someProp("handleKeyDown",P=>P(t,Ec(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>S.start&&Q6(m,S.start,S.endA,x,w)&&t.someProp("handleKeyDown",P=>P(t,Ec(8,"Backspace")))){hl&&vo&&t.domObserver.suppressSelectionUpdates();return}vo&&S.endB==S.start&&(t.input.lastChromeDelete=Date.now()),hl&&!E&&x.start()!=w.start()&&w.parentOffset==0&&x.depth==w.depth&&f.sel&&f.sel.anchor==f.sel.head&&f.sel.head==S.endA&&(S.endB-=2,w=f.doc.resolveNoCache(S.endB-f.from),setTimeout(()=>{t.someProp("handleKeyDown",function(P){return P(t,Ec(13,"Enter"))})},20));let T=S.start,$=S.endA,N,A,z;if(E){if(x.pos==w.pos)Vo&&bs<=11&&x.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>gl(t),20)),N=t.state.tr.delete(T,$),A=m.resolve(S.start).marksAcross(m.resolve(S.endA));else if(S.endA==S.endB&&(z=X6(x.parent.content.cut(x.parentOffset,w.parentOffset),O.parent.content.cut(O.parentOffset,S.endA-O.start()))))N=t.state.tr,z.type=="add"?N.addMark(T,$,z.mark):N.removeMark(T,$,z.mark);else if(x.parent.child(x.index()).isText&&x.index()==w.index()-(w.textOffset?0:1)){let P=x.parent.textBetween(x.parentOffset,w.parentOffset);if(t.someProp("handleTextInput",B=>B(t,T,$,P)))return;N=t.state.tr.insertText(P,T,$)}}if(N||(N=t.state.tr.replace(T,$,f.doc.slice(S.start-f.from,S.endB-f.from))),f.sel){let P=nA(t,N.doc,f.sel);P&&!(vo&&t.composing&&P.empty&&(S.start!=S.endB||t.input.lastChromeDelete<Date.now()-100)&&(P.head==T||P.head==N.mapping.map($)-1)||Vo&&P.empty&&P.head==T)&&N.setSelection(P)}A&&N.ensureMarks(A),l&&N.setMeta("composition",l),t.dispatch(N.scrollIntoView())}function nA(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:Kx(t,e.resolve(n.anchor),e.resolve(n.head))}function X6(t,e){let n=t.firstChild.marks,r=e.firstChild.marks,o=n,l=r,s,u,d;for(let m=0;m<r.length;m++)o=r[m].removeFromSet(o);for(let m=0;m<n.length;m++)l=n[m].removeFromSet(l);if(o.length==1&&l.length==0)u=o[0],s="add",d=m=>m.mark(u.addToSet(m.marks));else if(o.length==0&&l.length==1)u=l[0],s="remove",d=m=>m.mark(u.removeFromSet(m.marks));else return null;let f=[];for(let m=0;m<e.childCount;m++)f.push(d(e.child(m)));if(tt.from(f).eq(t))return{mark:u,type:s}}function Q6(t,e,n,r,o){if(n-e<=o.pos-r.pos||lC(r,!0,!1)<o.pos)return!1;let l=t.resolve(e);if(!r.parent.isTextblock){let u=l.nodeAfter;return u!=null&&n==e+u.nodeSize}if(l.parentOffset<l.parent.content.size||!l.parent.isTextblock)return!1;let s=t.resolve(lC(l,!0,!0));return!s.parent.isTextblock||s.pos>n||lC(s,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(s.parent.content)}function lC(t,e,n){let r=t.depth,o=e?t.end():t.pos;for(;r>0&&(e||t.indexAfter(r)==t.node(r).childCount);)r--,o++,e=!1;if(n){let l=t.node(r).maybeChild(t.indexAfter(r));for(;l&&!l.isLeaf;)l=l.firstChild,o++}return o}function Z6(t,e,n,r,o){let l=t.findDiffStart(e,n);if(l==null)return null;let{a:s,b:u}=t.findDiffEnd(e,n+t.size,n+e.size);if(o=="end"){let d=Math.max(0,l-Math.min(s,u));r-=s+d-l}if(s<l&&t.size<e.size){let d=r<=l&&r>=s?l-r:0;l-=d,l&&l<e.size&&rA(e.textBetween(l-1,l+1))&&(l+=d?1:-1),u=l+(u-s),s=l}else if(u<l){let d=r<=l&&r>=u?l-r:0;l-=d,l&&l<t.size&&rA(t.textBetween(l-1,l+1))&&(l+=d?1:-1),s=l+(s-u),u=l}return{start:l,endA:s,endB:u}}function rA(t){if(t.length!=2)return!1;let e=t.charCodeAt(0),n=t.charCodeAt(1);return e>=56320&&e<=57343&&n>=55296&&n<=56319}class J6{constructor(e,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new y6,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(sA),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=aA(this),iA(this),this.nodeViews=lA(this),this.docView=BN(this.state.doc,oA(this),aC(this),this.dom,this),this.domObserver=new V6(this,(r,o,l,s)=>Y6(this,r,o,l,s)),this.domObserver.start(),b6(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let n in e)this._props[n]=e[n];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&y1(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(sA),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in e)n[r]=e[r];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){var r;let o=this.state,l=!1,s=!1;e.storedMarks&&this.composing&&(AP(this),s=!0),this.state=e;let u=o.plugins!=e.plugins||this._props.plugins!=n.plugins;if(u||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let b=lA(this);tF(b,this.nodeViews)&&(this.nodeViews=b,l=!0)}(u||n.handleDOMEvents!=this._props.handleDOMEvents)&&y1(this),this.editable=aA(this),iA(this);let d=aC(this),f=oA(this),m=o.plugins!=e.plugins&&!o.doc.eq(e.doc)?"reset":e.scrollToSelection>o.scrollToSelection?"to selection":"preserve",p=l||!this.docView.matchesNode(e.doc,f,d);(p||!e.selection.eq(o.selection))&&(s=!0);let g=m=="preserve"&&s&&this.dom.style.overflowAnchor==null&&IV(this);if(s){this.domObserver.stop();let b=p&&(Vo||vo)&&!this.composing&&!o.selection.empty&&!e.selection.empty&&eF(o.selection,e.selection);if(p){let S=vo?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=D6(this)),(l||!this.docView.update(e.doc,f,d,this))&&(this.docView.updateOuterDeco(f),this.docView.destroy(),this.docView=BN(e.doc,f,d,this.dom,this)),S&&!this.trackWrites&&(b=!0)}b||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&r6(this))?gl(this,b):(bP(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(o),!((r=this.dragging)===null||r===void 0)&&r.node&&!o.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,o),m=="reset"?this.dom.scrollTop=0:m=="to selection"?this.scrollToSelection():g&&kV(g)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))){if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof Gt){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&DN(this,n.getBoundingClientRect(),e)}else DN(this,this.coordsAtPos(this.state.selection.head,1),e)}}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let r=this.directPlugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let r=this.state.plugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let r=this.pluginViews[n];r.update&&r.update(this,e)}}updateDraggedNode(e,n){let r=e.node,o=-1;if(this.state.doc.nodeAt(r.from)==r.node)o=r.from;else{let l=r.from+(this.state.doc.content.size-n.doc.content.size);(l>0&&this.state.doc.nodeAt(l))==r.node&&(o=l)}this.dragging=new IP(e.slice,e.move,o<0?void 0:Gt.create(this.state.doc,o))}someProp(e,n){let r=this._props&&this._props[e],o;if(r!=null&&(o=n?n(r):r))return o;for(let s=0;s<this.directPlugins.length;s++){let u=this.directPlugins[s].props[e];if(u!=null&&(o=n?n(u):u))return o}let l=this.state.plugins;if(l)for(let s=0;s<l.length;s++){let u=l[s].props[e];if(u!=null&&(o=n?n(u):u))return o}}hasFocus(){if(Vo){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&PV(this.dom),gl(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let n=this.dom.parentNode;n;n=n.parentNode)if(n.nodeType==9||n.nodeType==11&&n.host)return n.getSelection||(Object.getPrototypeOf(n).getSelection=()=>n.ownerDocument.getSelection()),this._root=n}return e||document}updateRoot(){this._root=null}posAtCoords(e){return jV(this,e)}coordsAtPos(e,n=1){return dP(this,e,n)}domAtPos(e,n=0){return this.docView.domFromPos(e,n)}nodeDOM(e){let n=this.docView.descAt(e);return n?n.nodeDOM:null}posAtDOM(e,n,r=-1){let o=this.docView.posFromDOM(e,n,r);if(o==null)throw new RangeError("DOM position not inside the editor");return o}endOfTextblock(e,n){return WV(this,n||this.state,e)}pasteHTML(e,n){return Vh(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return Vh(this,e,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(e){return Yx(this,e)}destroy(){this.docView&&(S6(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],aC(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,xV())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return x6(this,e)}dispatch(e){let n=this._props.dispatchTransaction;n?n.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){let e=this.domSelection();return e?Ao&&this.root.nodeType===11&&TV(this.dom.ownerDocument)==this.dom&&U6(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function oA(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(t.state)),n)for(let r in n)r=="class"?e.class+=" "+n[r]:r=="style"?e.style=(e.style?e.style+";":"")+n[r]:!e[r]&&r!="contenteditable"&&r!="nodeName"&&(e[r]=String(n[r]))}),e.translate||(e.translate="no"),[No.node(0,t.state.doc.content.size,e)]}function iA(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:No.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function aA(t){return!t.someProp("editable",e=>e(t.state)===!1)}function eF(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}function lA(t){let e=Object.create(null);function n(r){for(let o in r)Object.prototype.hasOwnProperty.call(e,o)||(e[o]=r[o])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function tF(t,e){let n=0,r=0;for(let o in t){if(t[o]!=e[o])return!0;n++}for(let o in e)r++;return n!=r}function sA(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var xs={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},gv={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},nF=typeof navigator<"u"&&/Mac/.test(navigator.platform),rF=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var io=0;io<10;io++)xs[48+io]=xs[96+io]=String(io);for(var io=1;io<=24;io++)xs[io+111]="F"+io;for(var io=65;io<=90;io++)xs[io]=String.fromCharCode(io+32),gv[io]=String.fromCharCode(io);for(var sC in xs)gv.hasOwnProperty(sC)||(gv[sC]=xs[sC]);function oF(t){var e=nF&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||rF&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?gv:xs)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const iF=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function aF(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let r,o,l,s;for(let u=0;u<e.length-1;u++){let d=e[u];if(/^(cmd|meta|m)$/i.test(d))s=!0;else if(/^a(lt)?$/i.test(d))r=!0;else if(/^(c|ctrl|control)$/i.test(d))o=!0;else if(/^s(hift)?$/i.test(d))l=!0;else if(/^mod$/i.test(d))iF?s=!0:o=!0;else throw new Error("Unrecognized modifier name: "+d)}return r&&(n="Alt-"+n),o&&(n="Ctrl-"+n),s&&(n="Meta-"+n),l&&(n="Shift-"+n),n}function lF(t){let e=Object.create(null);for(let n in t)e[aF(n)]=t[n];return e}function cC(t,e,n=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n&&e.shiftKey&&(t="Shift-"+t),t}function sF(t){return new xo({props:{handleKeyDown:tw(t)}})}function tw(t){let e=lF(t);return function(n,r){let o=oF(r),l,s=e[cC(o,r)];if(s&&s(n.state,n.dispatch,n))return!0;if(o.length==1&&o!=" "){if(r.shiftKey){let u=e[cC(o,r,!1)];if(u&&u(n.state,n.dispatch,n))return!0}if((r.shiftKey||r.altKey||r.metaKey||o.charCodeAt(0)>127)&&(l=xs[r.keyCode])&&l!=o){let u=e[cC(l,r)];if(u&&u(n.state,n.dispatch,n))return!0}}return!1}}const nw=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function BP(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const HP=(t,e,n)=>{let r=BP(t,n);if(!r)return!1;let o=rw(r);if(!o){let s=r.blockRange(),u=s&&Ld(s);return u==null?!1:(e&&e(t.tr.lift(s,u).scrollIntoView()),!0)}let l=o.nodeBefore;if(KP(t,o,e,-1))return!0;if(r.parent.content.size==0&&($d(l,"end")||Gt.isSelectable(l)))for(let s=r.depth;;s--){let u=Wv(t.doc,r.before(s),r.after(s),At.empty);if(u&&u.slice.size<u.to-u.from){if(e){let d=t.tr.step(u);d.setSelection($d(l,"end")?nn.findFrom(d.doc.resolve(d.mapping.map(o.pos,-1)),-1):Gt.create(d.doc,o.pos-l.nodeSize)),e(d.scrollIntoView())}return!0}if(s==1||r.node(s-1).childCount>1)break}return l.isAtom&&o.depth==r.depth-1?(e&&e(t.tr.delete(o.pos-l.nodeSize,o.pos).scrollIntoView()),!0):!1},cF=(t,e,n)=>{let r=BP(t,n);if(!r)return!1;let o=rw(r);return o?jP(t,o,e):!1},uF=(t,e,n)=>{let r=VP(t,n);if(!r)return!1;let o=ow(r);return o?jP(t,o,e):!1};function jP(t,e,n){let r=e.nodeBefore,o=r,l=e.pos-1;for(;!o.isTextblock;l--){if(o.type.spec.isolating)return!1;let m=o.lastChild;if(!m)return!1;o=m}let s=e.nodeAfter,u=s,d=e.pos+1;for(;!u.isTextblock;d++){if(u.type.spec.isolating)return!1;let m=u.firstChild;if(!m)return!1;u=m}let f=Wv(t.doc,l,d,At.empty);if(!f||f.from!=l||f instanceof qr&&f.slice.size>=d-l)return!1;if(n){let m=t.tr.step(f);m.setSelection(Zt.create(m.doc,l)),n(m.scrollIntoView())}return!0}function $d(t,e,n=!1){for(let r=t;r;r=e=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}const LP=(t,e,n)=>{let{$head:r,empty:o}=t.selection,l=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):r.parentOffset>0)return!1;l=rw(r)}let s=l&&l.nodeBefore;return!s||!Gt.isSelectable(s)?!1:(e&&e(t.tr.setSelection(Gt.create(t.doc,l.pos-s.nodeSize)).scrollIntoView()),!0)};function rw(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function VP(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const FP=(t,e,n)=>{let r=VP(t,n);if(!r)return!1;let o=ow(r);if(!o)return!1;let l=o.nodeAfter;if(KP(t,o,e,1))return!0;if(r.parent.content.size==0&&($d(l,"start")||Gt.isSelectable(l))){let s=Wv(t.doc,r.before(),r.after(),At.empty);if(s&&s.slice.size<s.to-s.from){if(e){let u=t.tr.step(s);u.setSelection($d(l,"start")?nn.findFrom(u.doc.resolve(u.mapping.map(o.pos)),1):Gt.create(u.doc,u.mapping.map(o.pos))),e(u.scrollIntoView())}return!0}}return l.isAtom&&o.depth==r.depth-1?(e&&e(t.tr.delete(o.pos,o.pos+l.nodeSize).scrollIntoView()),!0):!1},UP=(t,e,n)=>{let{$head:r,empty:o}=t.selection,l=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):r.parentOffset<r.parent.content.size)return!1;l=ow(r)}let s=l&&l.nodeAfter;return!s||!Gt.isSelectable(s)?!1:(e&&e(t.tr.setSelection(Gt.create(t.doc,l.pos)).scrollIntoView()),!0)};function ow(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){let n=t.node(e);if(t.index(e)+1<n.childCount)return t.doc.resolve(t.after(e+1));if(n.type.spec.isolating)break}return null}const dF=(t,e)=>{let n=t.selection,r=n instanceof Gt,o;if(r){if(n.node.isTextblock||!Ts(t.doc,n.from))return!1;o=n.from}else if(o=Uv(t.doc,n.from,-1),o==null)return!1;if(e){let l=t.tr.join(o);r&&l.setSelection(Gt.create(l.doc,o-t.doc.resolve(o).nodeBefore.nodeSize)),e(l.scrollIntoView())}return!0},fF=(t,e)=>{let n=t.selection,r;if(n instanceof Gt){if(n.node.isTextblock||!Ts(t.doc,n.to))return!1;r=n.to}else if(r=Uv(t.doc,n.to,1),r==null)return!1;return e&&e(t.tr.join(r).scrollIntoView()),!0},hF=(t,e)=>{let{$from:n,$to:r}=t.selection,o=n.blockRange(r),l=o&&Ld(o);return l==null?!1:(e&&e(t.tr.lift(o,l).scrollIntoView()),!0)},WP=(t,e)=>{let{$head:n,$anchor:r}=t.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(e&&e(t.tr.insertText(`
321
- `).scrollIntoView()),!0)};function iw(t){for(let e=0;e<t.edgeCount;e++){let{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const mF=(t,e)=>{let{$head:n,$anchor:r}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let o=n.node(-1),l=n.indexAfter(-1),s=iw(o.contentMatchAt(l));if(!s||!o.canReplaceWith(l,l,s))return!1;if(e){let u=n.after(),d=t.tr.replaceWith(u,u,s.createAndFill());d.setSelection(nn.near(d.doc.resolve(u),1)),e(d.scrollIntoView())}return!0},qP=(t,e)=>{let n=t.selection,{$from:r,$to:o}=n;if(n instanceof si||r.parent.inlineContent||o.parent.inlineContent)return!1;let l=iw(o.parent.contentMatchAt(o.indexAfter()));if(!l||!l.isTextblock)return!1;if(e){let s=(!r.parentOffset&&o.index()<o.parent.childCount?r:o).pos,u=t.tr.insert(s,l.createAndFill());u.setSelection(Zt.create(u.doc,s+1)),e(u.scrollIntoView())}return!0},GP=(t,e)=>{let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let l=n.before();if(pl(t.doc,l))return e&&e(t.tr.split(l).scrollIntoView()),!0}let r=n.blockRange(),o=r&&Ld(r);return o==null?!1:(e&&e(t.tr.lift(r,o).scrollIntoView()),!0)};function pF(t){return(e,n)=>{let{$from:r,$to:o}=e.selection;if(e.selection instanceof Gt&&e.selection.node.isBlock)return!r.parentOffset||!pl(e.doc,r.pos)?!1:(n&&n(e.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let l=[],s,u,d=!1,f=!1;for(let b=r.depth;;b--)if(r.node(b).isBlock){d=r.end(b)==r.pos+(r.depth-b),f=r.start(b)==r.pos-(r.depth-b),u=iw(r.node(b-1).contentMatchAt(r.indexAfter(b-1))),l.unshift(d&&u?{type:u}:null),s=b;break}else{if(b==1)return!1;l.unshift(null)}let m=e.tr;(e.selection instanceof Zt||e.selection instanceof si)&&m.deleteSelection();let p=m.mapping.map(r.pos),g=pl(m.doc,p,l.length,l);if(g||(l[0]=u?{type:u}:null,g=pl(m.doc,p,l.length,l)),m.split(p,l.length,l),!d&&f&&r.node(s).type!=u){let b=m.mapping.map(r.before(s)),S=m.doc.resolve(b);u&&r.node(s-1).canReplaceWith(S.index(),S.index()+1,u)&&m.setNodeMarkup(m.mapping.map(r.before(s)),u)}return n&&n(m.scrollIntoView()),!0}}const gF=pF(),vF=(t,e)=>{let{$from:n,to:r}=t.selection,o,l=n.sharedDepth(r);return l==0?!1:(o=n.before(l),e&&e(t.tr.setSelection(Gt.create(t.doc,o))),!0)};function yF(t,e,n){let r=e.nodeBefore,o=e.nodeAfter,l=e.index();return!r||!o||!r.type.compatibleContent(o.type)?!1:!r.content.size&&e.parent.canReplace(l-1,l)?(n&&n(t.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(l,l+1)||!(o.isTextblock||Ts(t.doc,e.pos))?!1:(n&&n(t.tr.join(e.pos).scrollIntoView()),!0)}function KP(t,e,n,r){let o=e.nodeBefore,l=e.nodeAfter,s,u,d=o.type.spec.isolating||l.type.spec.isolating;if(!d&&yF(t,e,n))return!0;let f=!d&&e.parent.canReplace(e.index(),e.index()+1);if(f&&(s=(u=o.contentMatchAt(o.childCount)).findWrapping(l.type))&&u.matchType(s[0]||l.type).validEnd){if(n){let b=e.pos+l.nodeSize,S=tt.empty;for(let O=s.length-1;O>=0;O--)S=tt.from(s[O].create(null,S));S=tt.from(o.copy(S));let x=t.tr.step(new Gr(e.pos-1,b,e.pos,b,new At(S,1,0),s.length,!0)),w=x.doc.resolve(b+2*s.length);w.nodeAfter&&w.nodeAfter.type==o.type&&Ts(x.doc,w.pos)&&x.join(w.pos),n(x.scrollIntoView())}return!0}let m=l.type.spec.isolating||r>0&&d?null:nn.findFrom(e,1),p=m&&m.$from.blockRange(m.$to),g=p&&Ld(p);if(g!=null&&g>=e.depth)return n&&n(t.tr.lift(p,g).scrollIntoView()),!0;if(f&&$d(l,"start",!0)&&$d(o,"end")){let b=o,S=[];for(;S.push(b),!b.isTextblock;)b=b.lastChild;let x=l,w=1;for(;!x.isTextblock;x=x.firstChild)w++;if(b.canReplace(b.childCount,b.childCount,x.content)){if(n){let O=tt.empty;for(let M=S.length-1;M>=0;M--)O=tt.from(S[M].copy(O));let E=t.tr.step(new Gr(e.pos-S.length,e.pos+l.nodeSize,e.pos+w,e.pos+l.nodeSize-w,new At(O,S.length,0),0,!0));n(E.scrollIntoView())}return!0}}return!1}function YP(t){return function(e,n){let r=e.selection,o=t<0?r.$from:r.$to,l=o.depth;for(;o.node(l).isInline;){if(!l)return!1;l--}return o.node(l).isTextblock?(n&&n(e.tr.setSelection(Zt.create(e.doc,t<0?o.start(l):o.end(l)))),!0):!1}}const bF=YP(-1),SF=YP(1);function CF(t,e=null){return function(n,r){let{$from:o,$to:l}=n.selection,s=o.blockRange(l),u=s&&Ux(s,t,e);return u?(r&&r(n.tr.wrap(s,u).scrollIntoView()),!0):!1}}function cA(t,e=null){return function(n,r){let o=!1;for(let l=0;l<n.selection.ranges.length&&!o;l++){let{$from:{pos:s},$to:{pos:u}}=n.selection.ranges[l];n.doc.nodesBetween(s,u,(d,f)=>{if(o)return!1;if(!(!d.isTextblock||d.hasMarkup(t,e)))if(d.type==t)o=!0;else{let m=n.doc.resolve(f),p=m.index();o=m.parent.canReplaceWith(p,p+1,t)}})}if(!o)return!1;if(r){let l=n.tr;for(let s=0;s<n.selection.ranges.length;s++){let{$from:{pos:u},$to:{pos:d}}=n.selection.ranges[s];l.setBlockType(u,d,t,e)}r(l.scrollIntoView())}return!0}}function aw(...t){return function(e,n,r){for(let o=0;o<t.length;o++)if(t[o](e,n,r))return!0;return!1}}aw(nw,HP,LP);aw(nw,FP,UP);aw(WP,qP,GP,gF);typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function xF(t,e=null){return function(n,r){let{$from:o,$to:l}=n.selection,s=o.blockRange(l);if(!s)return!1;let u=r?n.tr:null;return wF(u,s,t,e)?(r&&r(u.scrollIntoView()),!0):!1}}function wF(t,e,n,r=null){let o=!1,l=e,s=e.$from.doc;if(e.depth>=2&&e.$from.node(e.depth-1).type.compatibleContent(n)&&e.startIndex==0){if(e.$from.index(e.depth-1)==0)return!1;let d=s.resolve(e.start-2);l=new cv(d,d,e.depth),e.endIndex<e.parent.childCount&&(e=new cv(e.$from,s.resolve(e.$to.end(e.depth)),e.depth)),o=!0}let u=Ux(l,n,r,e);return u?(t&&EF(t,e,u,o,n),!0):!1}function EF(t,e,n,r,o){let l=tt.empty;for(let m=n.length-1;m>=0;m--)l=tt.from(n[m].type.create(n[m].attrs,l));t.step(new Gr(e.start-(r?2:0),e.end,e.start,e.end,new At(l,0,0),n.length,!0));let s=0;for(let m=0;m<n.length;m++)n[m].type==o&&(s=m+1);let u=n.length-s,d=e.start+n.length-(r?2:0),f=e.parent;for(let m=e.startIndex,p=e.endIndex,g=!0;m<p;m++,g=!1)!g&&pl(t.doc,d,u)&&(t.split(d,u),d+=2*u),d+=f.child(m).nodeSize;return t}function OF(t){return function(e,n){let{$from:r,$to:o}=e.selection,l=r.blockRange(o,s=>s.childCount>0&&s.firstChild.type==t);return l?n?r.node(l.depth-1).type==t?RF(e,n,t,l):TF(e,n,l):!0:!1}}function RF(t,e,n,r){let o=t.tr,l=r.end,s=r.$to.end(r.depth);l<s&&(o.step(new Gr(l-1,s,l,s,new At(tt.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new cv(o.doc.resolve(r.$from.pos),o.doc.resolve(s),r.depth));const u=Ld(r);if(u==null)return!1;o.lift(r,u);let d=o.doc.resolve(o.mapping.map(l,-1)-1);return Ts(o.doc,d.pos)&&d.nodeBefore.type==d.nodeAfter.type&&o.join(d.pos),e(o.scrollIntoView()),!0}function TF(t,e,n){let r=t.tr,o=n.parent;for(let b=n.end,S=n.endIndex-1,x=n.startIndex;S>x;S--)b-=o.child(S).nodeSize,r.delete(b-1,b+1);let l=r.doc.resolve(n.start),s=l.nodeAfter;if(r.mapping.map(n.end)!=n.start+l.nodeAfter.nodeSize)return!1;let u=n.startIndex==0,d=n.endIndex==o.childCount,f=l.node(-1),m=l.index(-1);if(!f.canReplace(m+(u?0:1),m+1,s.content.append(d?tt.empty:tt.from(o))))return!1;let p=l.pos,g=p+s.nodeSize;return r.step(new Gr(p-(u?1:0),g+(d?1:0),p+1,g-1,new At((u?tt.empty:tt.from(o.copy(tt.empty))).append(d?tt.empty:tt.from(o.copy(tt.empty))),u?0:1,d?0:1),u?0:1)),e(r.scrollIntoView()),!0}function MF(t){return function(e,n){let{$from:r,$to:o}=e.selection,l=r.blockRange(o,f=>f.childCount>0&&f.firstChild.type==t);if(!l)return!1;let s=l.startIndex;if(s==0)return!1;let u=l.parent,d=u.child(s-1);if(d.type!=t)return!1;if(n){let f=d.lastChild&&d.lastChild.type==u.type,m=tt.from(f?t.create():null),p=new At(tt.from(t.create(null,tt.from(u.type.create(null,m)))),f?3:1,0),g=l.start,b=l.end;n(e.tr.step(new Gr(g-(f?3:1),b,g,b,p,1,!0)).scrollIntoView())}return!0}}function Xv(t){const{state:e,transaction:n}=t;let{selection:r}=n,{doc:o}=n,{storedMarks:l}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return l},get selection(){return r},get doc(){return o},get tr(){return r=n.selection,o=n.doc,l=n.storedMarks,n}}}class Qv{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:n,state:r}=this,{view:o}=n,{tr:l}=r,s=this.buildProps(l);return Object.fromEntries(Object.entries(e).map(([u,d])=>[u,(...m)=>{const p=d(...m)(s);return!l.getMeta("preventDispatch")&&!this.hasCustomState&&o.dispatch(l),p}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,n=!0){const{rawCommands:r,editor:o,state:l}=this,{view:s}=o,u=[],d=!!e,f=e||l.tr,m=()=>(!d&&n&&!f.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(f),u.every(g=>g===!0)),p={...Object.fromEntries(Object.entries(r).map(([g,b])=>[g,(...x)=>{const w=this.buildProps(f,n),O=b(...x)(w);return u.push(O),p}])),run:m};return p}createCan(e){const{rawCommands:n,state:r}=this,o=!1,l=e||r.tr,s=this.buildProps(l,o);return{...Object.fromEntries(Object.entries(n).map(([d,f])=>[d,(...m)=>f(...m)({...s,dispatch:void 0})])),chain:()=>this.createChain(l,o)}}buildProps(e,n=!0){const{rawCommands:r,editor:o,state:l}=this,{view:s}=o,u={tr:e,editor:o,view:s,state:Xv({state:l,transaction:e}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(e,n),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(r).map(([d,f])=>[d,(...m)=>f(...m)(u)]))}};return u}}class $F{constructor(){this.callbacks={}}on(e,n){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(n),this}emit(e,...n){const r=this.callbacks[e];return r&&r.forEach(o=>o.apply(this,n)),this}off(e,n){const r=this.callbacks[e];return r&&(n?this.callbacks[e]=r.filter(o=>o!==n):delete this.callbacks[e]),this}once(e,n){const r=(...o)=>{this.off(e,r),n.apply(this,o)};return this.on(e,r)}removeAllListeners(){this.callbacks={}}}function Vt(t,e,n){return t.config[e]===void 0&&t.parent?Vt(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?Vt(t.parent,e,n):null}):t.config[e]}function Zv(t){const e=t.filter(o=>o.type==="extension"),n=t.filter(o=>o.type==="node"),r=t.filter(o=>o.type==="mark");return{baseExtensions:e,nodeExtensions:n,markExtensions:r}}function XP(t){const e=[],{nodeExtensions:n,markExtensions:r}=Zv(t),o=[...n,...r],l={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return t.forEach(s=>{const u={name:s.name,options:s.options,storage:s.storage,extensions:o},d=Vt(s,"addGlobalAttributes",u);if(!d)return;d().forEach(m=>{m.types.forEach(p=>{Object.entries(m.attributes).forEach(([g,b])=>{e.push({type:p,name:g,attribute:{...l,...b}})})})})}),o.forEach(s=>{const u={name:s.name,options:s.options,storage:s.storage},d=Vt(s,"addAttributes",u);if(!d)return;const f=d();Object.entries(f).forEach(([m,p])=>{const g={...l,...p};typeof(g==null?void 0:g.default)=="function"&&(g.default=g.default()),g!=null&&g.isRequired&&(g==null?void 0:g.default)===void 0&&delete g.default,e.push({type:s.name,name:m,attribute:g})})}),e}function Yr(t,e){if(typeof t=="string"){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}function Zn(...t){return t.filter(e=>!!e).reduce((e,n)=>{const r={...e};return Object.entries(n).forEach(([o,l])=>{if(!r[o]){r[o]=l;return}if(o==="class"){const u=l?String(l).split(" "):[],d=r[o]?r[o].split(" "):[],f=u.filter(m=>!d.includes(m));r[o]=[...d,...f].join(" ")}else if(o==="style"){const u=l?l.split(";").map(m=>m.trim()).filter(Boolean):[],d=r[o]?r[o].split(";").map(m=>m.trim()).filter(Boolean):[],f=new Map;d.forEach(m=>{const[p,g]=m.split(":").map(b=>b.trim());f.set(p,g)}),u.forEach(m=>{const[p,g]=m.split(":").map(b=>b.trim());f.set(p,g)}),r[o]=Array.from(f.entries()).map(([m,p])=>`${m}: ${p}`).join("; ")}else r[o]=l}),r},{})}function vv(t,e){return e.filter(n=>n.type===t.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(t.attrs)||{}:{[n.name]:t.attrs[n.name]}).reduce((n,r)=>Zn(n,r),{})}function QP(t){return typeof t=="function"}function Cn(t,e=void 0,...n){return QP(t)?e?t.bind(e)(...n):t(...n):t}function NF(t={}){return Object.keys(t).length===0&&t.constructor===Object}function AF(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function uA(t,e){return"style"in t?t:{...t,getAttrs:n=>{const r=t.getAttrs?t.getAttrs(n):t.attrs;if(r===!1)return!1;const o=e.reduce((l,s)=>{const u=s.attribute.parseHTML?s.attribute.parseHTML(n):AF(n.getAttribute(s.name));return u==null?l:{...l,[s.name]:u}},{});return{...r,...o}}}}function dA(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&NF(n)?!1:n!=null))}function DF(t,e){var n;const r=XP(t),{nodeExtensions:o,markExtensions:l}=Zv(t),s=(n=o.find(f=>Vt(f,"topNode")))===null||n===void 0?void 0:n.name,u=Object.fromEntries(o.map(f=>{const m=r.filter(O=>O.type===f.name),p={name:f.name,options:f.options,storage:f.storage,editor:e},g=t.reduce((O,E)=>{const M=Vt(E,"extendNodeSchema",p);return{...O,...M?M(f):{}}},{}),b=dA({...g,content:Cn(Vt(f,"content",p)),marks:Cn(Vt(f,"marks",p)),group:Cn(Vt(f,"group",p)),inline:Cn(Vt(f,"inline",p)),atom:Cn(Vt(f,"atom",p)),selectable:Cn(Vt(f,"selectable",p)),draggable:Cn(Vt(f,"draggable",p)),code:Cn(Vt(f,"code",p)),whitespace:Cn(Vt(f,"whitespace",p)),linebreakReplacement:Cn(Vt(f,"linebreakReplacement",p)),defining:Cn(Vt(f,"defining",p)),isolating:Cn(Vt(f,"isolating",p)),attrs:Object.fromEntries(m.map(O=>{var E;return[O.name,{default:(E=O==null?void 0:O.attribute)===null||E===void 0?void 0:E.default}]}))}),S=Cn(Vt(f,"parseHTML",p));S&&(b.parseDOM=S.map(O=>uA(O,m)));const x=Vt(f,"renderHTML",p);x&&(b.toDOM=O=>x({node:O,HTMLAttributes:vv(O,m)}));const w=Vt(f,"renderText",p);return w&&(b.toText=w),[f.name,b]})),d=Object.fromEntries(l.map(f=>{const m=r.filter(w=>w.type===f.name),p={name:f.name,options:f.options,storage:f.storage,editor:e},g=t.reduce((w,O)=>{const E=Vt(O,"extendMarkSchema",p);return{...w,...E?E(f):{}}},{}),b=dA({...g,inclusive:Cn(Vt(f,"inclusive",p)),excludes:Cn(Vt(f,"excludes",p)),group:Cn(Vt(f,"group",p)),spanning:Cn(Vt(f,"spanning",p)),code:Cn(Vt(f,"code",p)),attrs:Object.fromEntries(m.map(w=>{var O;return[w.name,{default:(O=w==null?void 0:w.attribute)===null||O===void 0?void 0:O.default}]}))}),S=Cn(Vt(f,"parseHTML",p));S&&(b.parseDOM=S.map(w=>uA(w,m)));const x=Vt(f,"renderHTML",p);return x&&(b.toDOM=w=>x({mark:w,HTMLAttributes:vv(w,m)})),[f.name,b]}));return new Hk({topNode:s,nodes:u,marks:d})}function uC(t,e){return e.nodes[t]||e.marks[t]||null}function fA(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}function lw(t,e){const n=Qc.fromSchema(e).serializeFragment(t),o=document.implementation.createHTMLDocument().createElement("div");return o.appendChild(n),o.innerHTML}const IF=(t,e=500)=>{let n="";const r=t.parentOffset;return t.parent.nodesBetween(Math.max(0,r-e),r,(o,l,s,u)=>{var d,f;const m=((f=(d=o.type.spec).toText)===null||f===void 0?void 0:f.call(d,{node:o,pos:l,parent:s,index:u}))||o.textContent||"%leaf%";n+=o.isAtom&&!o.isText?m:m.slice(0,Math.max(0,r-l))}),n};function sw(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class Jv{constructor(e){this.find=e.find,this.handler=e.handler}}const kF=(t,e)=>{if(sw(e))return e.exec(t);const n=e(t);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=t,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r};function vg(t){var e;const{editor:n,from:r,to:o,text:l,rules:s,plugin:u}=t,{view:d}=n;if(d.composing)return!1;const f=d.state.doc.resolve(r);if(f.parent.type.spec.code||!((e=f.nodeBefore||f.nodeAfter)===null||e===void 0)&&e.marks.find(g=>g.type.spec.code))return!1;let m=!1;const p=IF(f)+l;return s.forEach(g=>{if(m)return;const b=kF(p,g.find);if(!b)return;const S=d.state.tr,x=Xv({state:d.state,transaction:S}),w={from:r-(b[0].length-l.length),to:o},{commands:O,chain:E,can:M}=new Qv({editor:n,state:x});g.handler({state:x,range:w,match:b,commands:O,chain:E,can:M})===null||!S.steps.length||(S.setMeta(u,{transform:S,from:r,to:o,text:l}),d.dispatch(S),m=!0)}),m}function PF(t){const{editor:e,rules:n}=t,r=new xo({state:{init(){return null},apply(o,l,s){const u=o.getMeta(r);if(u)return u;const d=o.getMeta("applyInputRules");return!!d&&setTimeout(()=>{let{text:m}=d;typeof m=="string"?m=m:m=lw(tt.from(m),s.schema);const{from:p}=d,g=p+m.length;vg({editor:e,from:p,to:g,text:m,rules:n,plugin:r})}),o.selectionSet||o.docChanged?null:l}},props:{handleTextInput(o,l,s,u){return vg({editor:e,from:l,to:s,text:u,rules:n,plugin:r})},handleDOMEvents:{compositionend:o=>(setTimeout(()=>{const{$cursor:l}=o.state.selection;l&&vg({editor:e,from:l.pos,to:l.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(o,l){if(l.key!=="Enter")return!1;const{$cursor:s}=o.state.selection;return s?vg({editor:e,from:s.pos,to:s.pos,text:`
322
- `,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function zF(t){return Object.prototype.toString.call(t).slice(8,-1)}function yg(t){return zF(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function ey(t,e){const n={...t};return yg(t)&&yg(e)&&Object.keys(e).forEach(r=>{yg(e[r])&&yg(t[r])?n[r]=ey(t[r],e[r]):n[r]=e[r]}),n}let ka=class b1{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Cn(Vt(this,"addOptions",{name:this.name}))),this.storage=Cn(Vt(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new b1(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>ey(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new b1(e);return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=Cn(Vt(n,"addOptions",{name:n.name})),n.storage=Cn(Vt(n,"addStorage",{name:n.name,options:n.options})),n}static handleExit({editor:e,mark:n}){const{tr:r}=e.state,o=e.state.selection.$from;if(o.pos===o.end()){const s=o.marks();if(!!!s.find(f=>(f==null?void 0:f.type.name)===n.name))return!1;const d=s.find(f=>(f==null?void 0:f.type.name)===n.name);return d&&r.removeStoredMark(d),r.insertText(" ",o.pos),e.view.dispatch(r),!0}return!1}};function _F(t){return typeof t=="number"}class BF{constructor(e){this.find=e.find,this.handler=e.handler}}const HF=(t,e,n)=>{if(sw(e))return[...t.matchAll(e)];const r=e(t,n);return r?r.map(o=>{const l=[o.text];return l.index=o.index,l.input=t,l.data=o.data,o.replaceWith&&(o.text.includes(o.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),l.push(o.replaceWith)),l}):[]};function jF(t){const{editor:e,state:n,from:r,to:o,rule:l,pasteEvent:s,dropEvent:u}=t,{commands:d,chain:f,can:m}=new Qv({editor:e,state:n}),p=[];return n.doc.nodesBetween(r,o,(b,S)=>{if(!b.isTextblock||b.type.spec.code)return;const x=Math.max(r,S),w=Math.min(o,S+b.content.size),O=b.textBetween(x-S,w-S,void 0,"");HF(O,l.find,s).forEach(M=>{if(M.index===void 0)return;const T=x+M.index+1,$=T+M[0].length,N={from:n.tr.mapping.map(T),to:n.tr.mapping.map($)},A=l.handler({state:n,range:N,match:M,commands:d,chain:f,can:m,pasteEvent:s,dropEvent:u});p.push(A)})}),p.every(b=>b!==null)}let bg=null;const LF=t=>{var e;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=n.clipboardData)===null||e===void 0||e.setData("text/html",t),n};function VF(t){const{editor:e,rules:n}=t;let r=null,o=!1,l=!1,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,u;try{u=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{u=null}const d=({state:m,from:p,to:g,rule:b,pasteEvt:S})=>{const x=m.tr,w=Xv({state:m,transaction:x});if(!(!jF({editor:e,state:w,from:Math.max(p-1,0),to:g.b-1,rule:b,pasteEvent:S,dropEvent:u})||!x.steps.length)){try{u=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{u=null}return s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,x}};return n.map(m=>new xo({view(p){const g=S=>{var x;r=!((x=p.dom.parentElement)===null||x===void 0)&&x.contains(S.target)?p.dom.parentElement:null,r&&(bg=e)},b=()=>{bg&&(bg=null)};return window.addEventListener("dragstart",g),window.addEventListener("dragend",b),{destroy(){window.removeEventListener("dragstart",g),window.removeEventListener("dragend",b)}}},props:{handleDOMEvents:{drop:(p,g)=>{if(l=r===p.dom.parentElement,u=g,!l){const b=bg;b&&setTimeout(()=>{const S=b.state.selection;S&&b.commands.deleteRange({from:S.from,to:S.to})},10)}return!1},paste:(p,g)=>{var b;const S=(b=g.clipboardData)===null||b===void 0?void 0:b.getData("text/html");return s=g,o=!!(S!=null&&S.includes("data-pm-slice")),!1}}},appendTransaction:(p,g,b)=>{const S=p[0],x=S.getMeta("uiEvent")==="paste"&&!o,w=S.getMeta("uiEvent")==="drop"&&!l,O=S.getMeta("applyPasteRules"),E=!!O;if(!x&&!w&&!E)return;if(E){let{text:$}=O;typeof $=="string"?$=$:$=lw(tt.from($),b.schema);const{from:N}=O,A=N+$.length,z=LF($);return d({rule:m,state:b,from:N,to:{b:A},pasteEvt:z})}const M=g.doc.content.findDiffStart(b.doc.content),T=g.doc.content.findDiffEnd(b.doc.content);if(!(!_F(M)||!T||M===T.b))return d({rule:m,state:b,from:M,to:T,pasteEvt:s})}}))}function FF(t){const e=t.filter((n,r)=>t.indexOf(n)!==r);return Array.from(new Set(e))}class pd{constructor(e,n){this.splittableMarks=[],this.editor=n,this.extensions=pd.resolve(e),this.schema=DF(this.extensions,n),this.setupExtensions()}static resolve(e){const n=pd.sort(pd.flatten(e)),r=FF(n.map(o=>o.name));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(o=>`'${o}'`).join(", ")}]. This can lead to issues.`),n}static flatten(e){return e.map(n=>{const r={name:n.name,options:n.options,storage:n.storage},o=Vt(n,"addExtensions",r);return o?[n,...this.flatten(o())]:n}).flat(10)}static sort(e){return e.sort((r,o)=>{const l=Vt(r,"priority")||100,s=Vt(o,"priority")||100;return l>s?-1:l<s?1:0})}get commands(){return this.extensions.reduce((e,n)=>{const r={name:n.name,options:n.options,storage:n.storage,editor:this.editor,type:uC(n.name,this.schema)},o=Vt(n,"addCommands",r);return o?{...e,...o()}:e},{})}get plugins(){const{editor:e}=this,n=pd.sort([...this.extensions].reverse()),r=[],o=[],l=n.map(s=>{const u={name:s.name,options:s.options,storage:s.storage,editor:e,type:uC(s.name,this.schema)},d=[],f=Vt(s,"addKeyboardShortcuts",u);let m={};if(s.type==="mark"&&Vt(s,"exitable",u)&&(m.ArrowRight=()=>ka.handleExit({editor:e,mark:s})),f){const x=Object.fromEntries(Object.entries(f()).map(([w,O])=>[w,()=>O({editor:e})]));m={...m,...x}}const p=sF(m);d.push(p);const g=Vt(s,"addInputRules",u);fA(s,e.options.enableInputRules)&&g&&r.push(...g());const b=Vt(s,"addPasteRules",u);fA(s,e.options.enablePasteRules)&&b&&o.push(...b());const S=Vt(s,"addProseMirrorPlugins",u);if(S){const x=S();d.push(...x)}return d}).flat();return[PF({editor:e,rules:r}),...VF({editor:e,rules:o}),...l]}get attributes(){return XP(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:n}=Zv(this.extensions);return Object.fromEntries(n.filter(r=>!!Vt(r,"addNodeView")).map(r=>{const o=this.attributes.filter(d=>d.type===r.name),l={name:r.name,options:r.options,storage:r.storage,editor:e,type:Yr(r.name,this.schema)},s=Vt(r,"addNodeView",l);if(!s)return[];const u=(d,f,m,p,g)=>{const b=vv(d,o);return s()({node:d,view:f,getPos:m,decorations:p,innerDecorations:g,editor:e,extension:r,HTMLAttributes:b})};return[r.name,u]}))}setupExtensions(){this.extensions.forEach(e=>{var n;this.editor.extensionStorage[e.name]=e.storage;const r={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:uC(e.name,this.schema)};e.type==="mark"&&(!((n=Cn(Vt(e,"keepOnSplit",r)))!==null&&n!==void 0)||n)&&this.splittableMarks.push(e.name);const o=Vt(e,"onBeforeCreate",r),l=Vt(e,"onCreate",r),s=Vt(e,"onUpdate",r),u=Vt(e,"onSelectionUpdate",r),d=Vt(e,"onTransaction",r),f=Vt(e,"onFocus",r),m=Vt(e,"onBlur",r),p=Vt(e,"onDestroy",r);o&&this.editor.on("beforeCreate",o),l&&this.editor.on("create",l),s&&this.editor.on("update",s),u&&this.editor.on("selectionUpdate",u),d&&this.editor.on("transaction",d),f&&this.editor.on("focus",f),m&&this.editor.on("blur",m),p&&this.editor.on("destroy",p)})}}class lo{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Cn(Vt(this,"addOptions",{name:this.name}))),this.storage=Cn(Vt(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new lo(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>ey(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new lo({...this.config,...e});return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=Cn(Vt(n,"addOptions",{name:n.name})),n.storage=Cn(Vt(n,"addStorage",{name:n.name,options:n.options})),n}}function ZP(t,e,n){const{from:r,to:o}=e,{blockSeparator:l=`
323
-
324
- `,textSerializers:s={}}=n||{};let u="";return t.nodesBetween(r,o,(d,f,m,p)=>{var g;d.isBlock&&f>r&&(u+=l);const b=s==null?void 0:s[d.type.name];if(b)return m&&(u+=b({node:d,pos:f,parent:m,index:p,range:e})),!1;d.isText&&(u+=(g=d==null?void 0:d.text)===null||g===void 0?void 0:g.slice(Math.max(r,f)-f,o-f))}),u}function JP(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}const UF=lo.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new xo({key:new ui("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:r,selection:o}=e,{ranges:l}=o,s=Math.min(...l.map(m=>m.$from.pos)),u=Math.max(...l.map(m=>m.$to.pos)),d=JP(n);return ZP(r,{from:s,to:u},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:d})}}})]}}),WF=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var n;t.isDestroyed||(e.dom.blur(),(n=window==null?void 0:window.getSelection())===null||n===void 0||n.removeAllRanges())}),!0),qF=(t=!1)=>({commands:e})=>e.setContent("",t),GF=()=>({state:t,tr:e,dispatch:n})=>{const{selection:r}=e,{ranges:o}=r;return n&&o.forEach(({$from:l,$to:s})=>{t.doc.nodesBetween(l.pos,s.pos,(u,d)=>{if(u.type.isText)return;const{doc:f,mapping:m}=e,p=f.resolve(m.map(d)),g=f.resolve(m.map(d+u.nodeSize)),b=p.blockRange(g);if(!b)return;const S=Ld(b);if(u.type.isTextblock){const{defaultType:x}=p.parent.contentMatchAt(p.index());e.setNodeMarkup(b.start,x)}(S||S===0)&&e.lift(b,S)})}),!0},KF=t=>e=>t(e),YF=()=>({state:t,dispatch:e})=>qP(t,e),XF=(t,e)=>({editor:n,tr:r})=>{const{state:o}=n,l=o.doc.slice(t.from,t.to);r.deleteRange(t.from,t.to);const s=r.mapping.map(e);return r.insert(s,l.content),r.setSelection(new Zt(r.doc.resolve(s-1))),!0},QF=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,r=n.$anchor.node();if(r.content.size>0)return!1;const o=t.selection.$anchor;for(let l=o.depth;l>0;l-=1)if(o.node(l).type===r.type){if(e){const u=o.before(l),d=o.after(l);t.delete(u,d).scrollIntoView()}return!0}return!1},ZF=t=>({tr:e,state:n,dispatch:r})=>{const o=Yr(t,n.schema),l=e.selection.$anchor;for(let s=l.depth;s>0;s-=1)if(l.node(s).type===o){if(r){const d=l.before(s),f=l.after(s);e.delete(d,f).scrollIntoView()}return!0}return!1},JF=t=>({tr:e,dispatch:n})=>{const{from:r,to:o}=t;return n&&e.delete(r,o),!0},e8=()=>({state:t,dispatch:e})=>nw(t,e),t8=()=>({commands:t})=>t.keyboardShortcut("Enter"),n8=()=>({state:t,dispatch:e})=>mF(t,e);function yv(t,e,n={strict:!0}){const r=Object.keys(e);return r.length?r.every(o=>n.strict?e[o]===t[o]:sw(e[o])?e[o].test(t[o]):e[o]===t[o]):!0}function ez(t,e,n={}){return t.find(r=>r.type===e&&yv(Object.fromEntries(Object.keys(n).map(o=>[o,r.attrs[o]])),n))}function hA(t,e,n={}){return!!ez(t,e,n)}function cw(t,e,n){var r;if(!t||!e)return;let o=t.parent.childAfter(t.parentOffset);if((!o.node||!o.node.marks.some(m=>m.type===e))&&(o=t.parent.childBefore(t.parentOffset)),!o.node||!o.node.marks.some(m=>m.type===e)||(n=n||((r=o.node.marks[0])===null||r===void 0?void 0:r.attrs),!ez([...o.node.marks],e,n)))return;let s=o.index,u=t.start()+o.offset,d=s+1,f=u+o.node.nodeSize;for(;s>0&&hA([...t.parent.child(s-1).marks],e,n);)s-=1,u-=t.parent.child(s).nodeSize;for(;d<t.parent.childCount&&hA([...t.parent.child(d).marks],e,n);)f+=t.parent.child(d).nodeSize,d+=1;return{from:u,to:f}}function $s(t,e){if(typeof t=="string"){if(!e.marks[t])throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`);return e.marks[t]}return t}const r8=(t,e={})=>({tr:n,state:r,dispatch:o})=>{const l=$s(t,r.schema),{doc:s,selection:u}=n,{$from:d,from:f,to:m}=u;if(o){const p=cw(d,l,e);if(p&&p.from<=f&&p.to>=m){const g=Zt.create(s,p.from,p.to);n.setSelection(g)}}return!0},o8=t=>e=>{const n=typeof t=="function"?t(e):t;for(let r=0;r<n.length;r+=1)if(n[r](e))return!0;return!1};function tz(t){return t instanceof Zt}function Nc(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function nz(t,e=null){if(!e)return null;const n=nn.atStart(t),r=nn.atEnd(t);if(e==="start"||e===!0)return n;if(e==="end")return r;const o=n.from,l=r.to;return e==="all"?Zt.create(t,Nc(0,o,l),Nc(t.content.size,o,l)):Zt.create(t,Nc(e,o,l),Nc(e,o,l))}function rz(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}function ty(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const i8=(t=null,e={})=>({editor:n,view:r,tr:o,dispatch:l})=>{e={scrollIntoView:!0,...e};const s=()=>{(ty()||rz())&&r.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),e!=null&&e.scrollIntoView&&n.commands.scrollIntoView())})};if(r.hasFocus()&&t===null||t===!1)return!0;if(l&&t===null&&!tz(n.state.selection))return s(),!0;const u=nz(o.doc,t)||n.state.selection,d=n.state.selection.eq(u);return l&&(d||o.setSelection(u),d&&o.storedMarks&&o.setStoredMarks(o.storedMarks),s()),!0},a8=(t,e)=>n=>t.every((r,o)=>e(r,{...n,index:o})),l8=(t,e)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),oz=t=>{const e=t.childNodes;for(let n=e.length-1;n>=0;n-=1){const r=e[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?t.removeChild(r):r.nodeType===1&&oz(r)}return t};function Sg(t){const e=`<body>${t}</body>`,n=new window.DOMParser().parseFromString(e,"text/html").body;return oz(n)}function bv(t,e,n){if(t instanceof vs||t instanceof tt)return t;n={slice:!0,parseOptions:{},...n};const r=typeof t=="object"&&t!==null,o=typeof t=="string";if(r)try{if(Array.isArray(t)&&t.length>0)return tt.fromArray(t.map(u=>e.nodeFromJSON(u)));const s=e.nodeFromJSON(t);return n.errorOnInvalidContent&&s.check(),s}catch(l){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:l});return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",l),bv("",e,n)}if(o){if(n.errorOnInvalidContent){let s=!1,u="";const d=new Hk({topNode:e.spec.topNode,marks:e.spec.marks,nodes:e.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:f=>(s=!0,u=typeof f=="string"?f:f.outerHTML,null)}]}})});if(n.slice?ys.fromSchema(d).parseSlice(Sg(t),n.parseOptions):ys.fromSchema(d).parse(Sg(t),n.parseOptions),n.errorOnInvalidContent&&s)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${u}`)})}const l=ys.fromSchema(e);return n.slice?l.parseSlice(Sg(t),n.parseOptions).content:l.parse(Sg(t),n.parseOptions)}return bv("",e,n)}function s8(t,e,n){const r=t.steps.length-1;if(r<e)return;const o=t.steps[r];if(!(o instanceof qr||o instanceof Gr))return;const l=t.mapping.maps[r];let s=0;l.forEach((u,d,f,m)=>{s===0&&(s=m)}),t.setSelection(nn.near(t.doc.resolve(s),n))}const c8=t=>!("type"in t),u8=(t,e,n)=>({tr:r,dispatch:o,editor:l})=>{var s;if(o){n={parseOptions:l.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let u;try{u=bv(e,l.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions},errorOnInvalidContent:(s=n.errorOnInvalidContent)!==null&&s!==void 0?s:l.options.enableContentCheck})}catch(S){return l.emit("contentError",{editor:l,error:S,disableCollaboration:()=>{l.storage.collaboration&&(l.storage.collaboration.isDisabled=!0)}}),!1}let{from:d,to:f}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},m=!0,p=!0;if((c8(u)?u:[u]).forEach(S=>{S.check(),m=m?S.isText&&S.marks.length===0:!1,p=p?S.isBlock:!1}),d===f&&p){const{parent:S}=r.doc.resolve(d);S.isTextblock&&!S.type.spec.code&&!S.childCount&&(d-=1,f+=1)}let b;if(m){if(Array.isArray(e))b=e.map(S=>S.text||"").join("");else if(e instanceof tt){let S="";e.forEach(x=>{x.text&&(S+=x.text)}),b=S}else typeof e=="object"&&e&&e.text?b=e.text:b=e;r.insertText(b,d,f)}else b=u,r.replaceWith(d,f,b);n.updateSelection&&s8(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta("applyInputRules",{from:d,text:b}),n.applyPasteRules&&r.setMeta("applyPasteRules",{from:d,text:b})}return!0},d8=()=>({state:t,dispatch:e})=>dF(t,e),f8=()=>({state:t,dispatch:e})=>fF(t,e),h8=()=>({state:t,dispatch:e})=>HP(t,e),m8=()=>({state:t,dispatch:e})=>FP(t,e),p8=()=>({state:t,dispatch:e,tr:n})=>{try{const r=Uv(t.doc,t.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),e&&e(n),!0)}catch{return!1}},g8=()=>({state:t,dispatch:e,tr:n})=>{try{const r=Uv(t.doc,t.selection.$from.pos,1);return r==null?!1:(n.join(r,2),e&&e(n),!0)}catch{return!1}},v8=()=>({state:t,dispatch:e})=>cF(t,e),y8=()=>({state:t,dispatch:e})=>uF(t,e);function iz(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function b8(t){const e=t.split(/-(?!$)/);let n=e[e.length-1];n==="Space"&&(n=" ");let r,o,l,s;for(let u=0;u<e.length-1;u+=1){const d=e[u];if(/^(cmd|meta|m)$/i.test(d))s=!0;else if(/^a(lt)?$/i.test(d))r=!0;else if(/^(c|ctrl|control)$/i.test(d))o=!0;else if(/^s(hift)?$/i.test(d))l=!0;else if(/^mod$/i.test(d))ty()||iz()?s=!0:o=!0;else throw new Error(`Unrecognized modifier name: ${d}`)}return r&&(n=`Alt-${n}`),o&&(n=`Ctrl-${n}`),s&&(n=`Meta-${n}`),l&&(n=`Shift-${n}`),n}const S8=t=>({editor:e,view:n,tr:r,dispatch:o})=>{const l=b8(t).split(/-(?!$)/),s=l.find(f=>!["Alt","Ctrl","Meta","Shift"].includes(f)),u=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:l.includes("Alt"),ctrlKey:l.includes("Ctrl"),metaKey:l.includes("Meta"),shiftKey:l.includes("Shift"),bubbles:!0,cancelable:!0}),d=e.captureTransaction(()=>{n.someProp("handleKeyDown",f=>f(n,u))});return d==null||d.steps.forEach(f=>{const m=f.map(r.mapping);m&&o&&r.maybeStep(m)}),!0};function Uh(t,e,n={}){const{from:r,to:o,empty:l}=t.selection,s=e?Yr(e,t.schema):null,u=[];t.doc.nodesBetween(r,o,(p,g)=>{if(p.isText)return;const b=Math.max(r,g),S=Math.min(o,g+p.nodeSize);u.push({node:p,from:b,to:S})});const d=o-r,f=u.filter(p=>s?s.name===p.node.type.name:!0).filter(p=>yv(p.node.attrs,n,{strict:!1}));return l?!!f.length:f.reduce((p,g)=>p+g.to-g.from,0)>=d}const C8=(t,e={})=>({state:n,dispatch:r})=>{const o=Yr(t,n.schema);return Uh(n,o,e)?hF(n,r):!1},x8=()=>({state:t,dispatch:e})=>GP(t,e),w8=t=>({state:e,dispatch:n})=>{const r=Yr(t,e.schema);return OF(r)(e,n)},E8=()=>({state:t,dispatch:e})=>WP(t,e);function ny(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function mA(t,e){const n=typeof e=="string"?[e]:e;return Object.keys(t).reduce((r,o)=>(n.includes(o)||(r[o]=t[o]),r),{})}const O8=(t,e)=>({tr:n,state:r,dispatch:o})=>{let l=null,s=null;const u=ny(typeof t=="string"?t:t.name,r.schema);return u?(u==="node"&&(l=Yr(t,r.schema)),u==="mark"&&(s=$s(t,r.schema)),o&&n.selection.ranges.forEach(d=>{r.doc.nodesBetween(d.$from.pos,d.$to.pos,(f,m)=>{l&&l===f.type&&n.setNodeMarkup(m,void 0,mA(f.attrs,e)),s&&f.marks.length&&f.marks.forEach(p=>{s===p.type&&n.addMark(m,m+f.nodeSize,s.create(mA(p.attrs,e)))})})}),!0):!1},R8=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),T8=()=>({tr:t,dispatch:e})=>{if(e){const n=new si(t.doc);t.setSelection(n)}return!0},M8=()=>({state:t,dispatch:e})=>LP(t,e),$8=()=>({state:t,dispatch:e})=>UP(t,e),N8=()=>({state:t,dispatch:e})=>vF(t,e),A8=()=>({state:t,dispatch:e})=>SF(t,e),D8=()=>({state:t,dispatch:e})=>bF(t,e);function S1(t,e,n={},r={}){return bv(t,e,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}const I8=(t,e=!1,n={},r={})=>({editor:o,tr:l,dispatch:s,commands:u})=>{var d,f;const{doc:m}=l;if(n.preserveWhitespace!=="full"){const p=S1(t,o.schema,n,{errorOnInvalidContent:(d=r.errorOnInvalidContent)!==null&&d!==void 0?d:o.options.enableContentCheck});return s&&l.replaceWith(0,m.content.size,p).setMeta("preventUpdate",!e),!0}return s&&l.setMeta("preventUpdate",!e),u.insertContentAt({from:0,to:m.content.size},t,{parseOptions:n,errorOnInvalidContent:(f=r.errorOnInvalidContent)!==null&&f!==void 0?f:o.options.enableContentCheck})};function az(t,e){const n=$s(e,t.schema),{from:r,to:o,empty:l}=t.selection,s=[];l?(t.storedMarks&&s.push(...t.storedMarks),s.push(...t.selection.$head.marks())):t.doc.nodesBetween(r,o,d=>{s.push(...d.marks)});const u=s.find(d=>d.type.name===n.name);return u?{...u.attrs}:{}}function k8(t){for(let e=0;e<t.edgeCount;e+=1){const{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function lz(t,e){for(let n=t.depth;n>0;n-=1){const r=t.node(n);if(e(r))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:r}}}function uw(t){return e=>lz(e.$from,t)}function P8(t,e){const n={from:0,to:t.content.size};return ZP(t,n,e)}function z8(t,e){const n=Yr(e,t.schema),{from:r,to:o}=t.selection,l=[];t.doc.nodesBetween(r,o,u=>{l.push(u)});const s=l.reverse().find(u=>u.type.name===n.name);return s?{...s.attrs}:{}}function _8(t,e){const n=ny(typeof e=="string"?e:e.name,t.schema);return n==="node"?z8(t,e):n==="mark"?az(t,e):{}}function sz(t,e,n){const r=[];return t===e?n.resolve(t).marks().forEach(o=>{const l=n.resolve(t),s=cw(l,o.type);s&&r.push({mark:o,...s})}):n.nodesBetween(t,e,(o,l)=>{!o||(o==null?void 0:o.nodeSize)===void 0||r.push(...o.marks.map(s=>({from:l,to:l+o.nodeSize,mark:s})))}),r}function jg(t,e,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{const o=t.find(l=>l.type===e&&l.name===r);return o?o.attribute.keepOnSplit:!1}))}function C1(t,e,n={}){const{empty:r,ranges:o}=t.selection,l=e?$s(e,t.schema):null;if(r)return!!(t.storedMarks||t.selection.$from.marks()).filter(p=>l?l.name===p.type.name:!0).find(p=>yv(p.attrs,n,{strict:!1}));let s=0;const u=[];if(o.forEach(({$from:p,$to:g})=>{const b=p.pos,S=g.pos;t.doc.nodesBetween(b,S,(x,w)=>{if(!x.isText&&!x.marks.length)return;const O=Math.max(b,w),E=Math.min(S,w+x.nodeSize),M=E-O;s+=M,u.push(...x.marks.map(T=>({mark:T,from:O,to:E})))})}),s===0)return!1;const d=u.filter(p=>l?l.name===p.mark.type.name:!0).filter(p=>yv(p.mark.attrs,n,{strict:!1})).reduce((p,g)=>p+g.to-g.from,0),f=u.filter(p=>l?p.mark.type!==l&&p.mark.type.excludes(l):!0).reduce((p,g)=>p+g.to-g.from,0);return(d>0?d+f:d)>=s}function B8(t,e,n={}){if(!e)return Uh(t,null,n)||C1(t,null,n);const r=ny(e,t.schema);return r==="node"?Uh(t,e,n):r==="mark"?C1(t,e,n):!1}function pA(t,e){const{nodeExtensions:n}=Zv(e),r=n.find(s=>s.name===t);if(!r)return!1;const o={name:r.name,options:r.options,storage:r.storage},l=Cn(Vt(r,"group",o));return typeof l!="string"?!1:l.split(" ").includes("list")}function dw(t,{checkChildren:e=!0,ignoreWhitespace:n=!1}={}){var r;if(n){if(t.type.name==="hardBreak")return!0;if(t.isText)return/^\s*$/m.test((r=t.text)!==null&&r!==void 0?r:"")}if(t.isText)return!t.text;if(t.isAtom||t.isLeaf)return!1;if(t.content.childCount===0)return!0;if(e){let o=!0;return t.content.forEach(l=>{o!==!1&&(dw(l,{ignoreWhitespace:n,checkChildren:e})||(o=!1))}),o}return!1}function H8(t){return t instanceof Gt}function j8(t,e,n){var r;const{selection:o}=e;let l=null;if(tz(o)&&(l=o.$cursor),l){const u=(r=t.storedMarks)!==null&&r!==void 0?r:l.marks();return!!n.isInSet(u)||!u.some(d=>d.type.excludes(n))}const{ranges:s}=o;return s.some(({$from:u,$to:d})=>{let f=u.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(u.pos,d.pos,(m,p,g)=>{if(f)return!1;if(m.isInline){const b=!g||g.type.allowsMarkType(n),S=!!n.isInSet(m.marks)||!m.marks.some(x=>x.type.excludes(n));f=b&&S}return!f}),f})}const L8=(t,e={})=>({tr:n,state:r,dispatch:o})=>{const{selection:l}=n,{empty:s,ranges:u}=l,d=$s(t,r.schema);if(o)if(s){const f=az(r,d);n.addStoredMark(d.create({...f,...e}))}else u.forEach(f=>{const m=f.$from.pos,p=f.$to.pos;r.doc.nodesBetween(m,p,(g,b)=>{const S=Math.max(b,m),x=Math.min(b+g.nodeSize,p);g.marks.find(O=>O.type===d)?g.marks.forEach(O=>{d===O.type&&n.addMark(S,x,d.create({...O.attrs,...e}))}):n.addMark(S,x,d.create(e))})});return j8(r,n,d)},V8=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),F8=(t,e={})=>({state:n,dispatch:r,chain:o})=>{const l=Yr(t,n.schema);let s;return n.selection.$anchor.sameParent(n.selection.$head)&&(s=n.selection.$anchor.parent.attrs),l.isTextblock?o().command(({commands:u})=>cA(l,{...s,...e})(n)?!0:u.clearNodes()).command(({state:u})=>cA(l,{...s,...e})(u,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},U8=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,o=Nc(t,0,r.content.size),l=Gt.create(r,o);e.setSelection(l)}return!0},W8=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,{from:o,to:l}=typeof t=="number"?{from:t,to:t}:t,s=Zt.atStart(r).from,u=Zt.atEnd(r).to,d=Nc(o,s,u),f=Nc(l,s,u),m=Zt.create(r,d,f);e.setSelection(m)}return!0},q8=t=>({state:e,dispatch:n})=>{const r=Yr(t,e.schema);return MF(r)(e,n)};function gA(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const r=n.filter(o=>e==null?void 0:e.includes(o.type.name));t.tr.ensureMarks(r)}}const G8=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:r,editor:o})=>{const{selection:l,doc:s}=e,{$from:u,$to:d}=l,f=o.extensionManager.attributes,m=jg(f,u.node().type.name,u.node().attrs);if(l instanceof Gt&&l.node.isBlock)return!u.parentOffset||!pl(s,u.pos)?!1:(r&&(t&&gA(n,o.extensionManager.splittableMarks),e.split(u.pos).scrollIntoView()),!0);if(!u.parent.isBlock)return!1;const p=d.parentOffset===d.parent.content.size,g=u.depth===0?void 0:k8(u.node(-1).contentMatchAt(u.indexAfter(-1)));let b=p&&g?[{type:g,attrs:m}]:void 0,S=pl(e.doc,e.mapping.map(u.pos),1,b);if(!b&&!S&&pl(e.doc,e.mapping.map(u.pos),1,g?[{type:g}]:void 0)&&(S=!0,b=g?[{type:g,attrs:m}]:void 0),r){if(S&&(l instanceof Zt&&e.deleteSelection(),e.split(e.mapping.map(u.pos),1,b),g&&!p&&!u.parentOffset&&u.parent.type!==g)){const x=e.mapping.map(u.before()),w=e.doc.resolve(x);u.node(-1).canReplaceWith(w.index(),w.index()+1,g)&&e.setNodeMarkup(e.mapping.map(u.before()),g)}t&&gA(n,o.extensionManager.splittableMarks),e.scrollIntoView()}return S},K8=(t,e={})=>({tr:n,state:r,dispatch:o,editor:l})=>{var s;const u=Yr(t,r.schema),{$from:d,$to:f}=r.selection,m=r.selection.node;if(m&&m.isBlock||d.depth<2||!d.sameParent(f))return!1;const p=d.node(-1);if(p.type!==u)return!1;const g=l.extensionManager.attributes;if(d.parent.content.size===0&&d.node(-1).childCount===d.indexAfter(-1)){if(d.depth===2||d.node(-3).type!==u||d.index(-2)!==d.node(-2).childCount-1)return!1;if(o){let O=tt.empty;const E=d.index(-1)?1:d.index(-2)?2:3;for(let z=d.depth-E;z>=d.depth-3;z-=1)O=tt.from(d.node(z).copy(O));const M=d.indexAfter(-1)<d.node(-2).childCount?1:d.indexAfter(-2)<d.node(-3).childCount?2:3,T={...jg(g,d.node().type.name,d.node().attrs),...e},$=((s=u.contentMatch.defaultType)===null||s===void 0?void 0:s.createAndFill(T))||void 0;O=O.append(tt.from(u.createAndFill(null,$)||void 0));const N=d.before(d.depth-(E-1));n.replace(N,d.after(-M),new At(O,4-E,0));let A=-1;n.doc.nodesBetween(N,n.doc.content.size,(z,P)=>{if(A>-1)return!1;z.isTextblock&&z.content.size===0&&(A=P+1)}),A>-1&&n.setSelection(Zt.near(n.doc.resolve(A))),n.scrollIntoView()}return!0}const b=f.pos===d.end()?p.contentMatchAt(0).defaultType:null,S={...jg(g,p.type.name,p.attrs),...e},x={...jg(g,d.node().type.name,d.node().attrs),...e};n.delete(d.pos,f.pos);const w=b?[{type:u,attrs:S},{type:b,attrs:x}]:[{type:u,attrs:S}];if(!pl(n.doc,d.pos,2))return!1;if(o){const{selection:O,storedMarks:E}=r,{splittableMarks:M}=l.extensionManager,T=E||O.$to.parentOffset&&O.$from.marks();if(n.split(d.pos,2,w).scrollIntoView(),!T||!o)return!0;const $=T.filter(N=>M.includes(N.type.name));n.ensureMarks($)}return!0},dC=(t,e)=>{const n=uw(s=>s.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;const o=t.doc.nodeAt(r);return n.node.type===(o==null?void 0:o.type)&&Ts(t.doc,n.pos)&&t.join(n.pos),!0},fC=(t,e)=>{const n=uw(s=>s.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;const o=t.doc.nodeAt(r);return n.node.type===(o==null?void 0:o.type)&&Ts(t.doc,r)&&t.join(r),!0},Y8=(t,e,n,r={})=>({editor:o,tr:l,state:s,dispatch:u,chain:d,commands:f,can:m})=>{const{extensions:p,splittableMarks:g}=o.extensionManager,b=Yr(t,s.schema),S=Yr(e,s.schema),{selection:x,storedMarks:w}=s,{$from:O,$to:E}=x,M=O.blockRange(E),T=w||x.$to.parentOffset&&x.$from.marks();if(!M)return!1;const $=uw(N=>pA(N.type.name,p))(x);if(M.depth>=1&&$&&M.depth-$.depth<=1){if($.node.type===b)return f.liftListItem(S);if(pA($.node.type.name,p)&&b.validContent($.node.content)&&u)return d().command(()=>(l.setNodeMarkup($.pos,b),!0)).command(()=>dC(l,b)).command(()=>fC(l,b)).run()}return!n||!T||!u?d().command(()=>m().wrapInList(b,r)?!0:f.clearNodes()).wrapInList(b,r).command(()=>dC(l,b)).command(()=>fC(l,b)).run():d().command(()=>{const N=m().wrapInList(b,r),A=T.filter(z=>g.includes(z.type.name));return l.ensureMarks(A),N?!0:f.clearNodes()}).wrapInList(b,r).command(()=>dC(l,b)).command(()=>fC(l,b)).run()},X8=(t,e={},n={})=>({state:r,commands:o})=>{const{extendEmptyMarkRange:l=!1}=n,s=$s(t,r.schema);return C1(r,s,e)?o.unsetMark(s,{extendEmptyMarkRange:l}):o.setMark(s,e)},Q8=(t,e,n={})=>({state:r,commands:o})=>{const l=Yr(t,r.schema),s=Yr(e,r.schema),u=Uh(r,l,n);let d;return r.selection.$anchor.sameParent(r.selection.$head)&&(d=r.selection.$anchor.parent.attrs),u?o.setNode(s,d):o.setNode(l,{...d,...n})},Z8=(t,e={})=>({state:n,commands:r})=>{const o=Yr(t,n.schema);return Uh(n,o,e)?r.lift(o):r.wrapIn(o,e)},J8=()=>({state:t,dispatch:e})=>{const n=t.plugins;for(let r=0;r<n.length;r+=1){const o=n[r];let l;if(o.spec.isInputRules&&(l=o.getState(t))){if(e){const s=t.tr,u=l.transform;for(let d=u.steps.length-1;d>=0;d-=1)s.step(u.steps[d].invert(u.docs[d]));if(l.text){const d=s.doc.resolve(l.from).marks();s.replaceWith(l.from,l.to,t.schema.text(l.text,d))}else s.delete(l.from,l.to)}return!0}}return!1},e7=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,{empty:r,ranges:o}=n;return r||e&&o.forEach(l=>{t.removeMark(l.$from.pos,l.$to.pos)}),!0},t7=(t,e={})=>({tr:n,state:r,dispatch:o})=>{var l;const{extendEmptyMarkRange:s=!1}=e,{selection:u}=n,d=$s(t,r.schema),{$from:f,empty:m,ranges:p}=u;if(!o)return!0;if(m&&s){let{from:g,to:b}=u;const S=(l=f.marks().find(w=>w.type===d))===null||l===void 0?void 0:l.attrs,x=cw(f,d,S);x&&(g=x.from,b=x.to),n.removeMark(g,b,d)}else p.forEach(g=>{n.removeMark(g.$from.pos,g.$to.pos,d)});return n.removeStoredMark(d),!0},n7=(t,e={})=>({tr:n,state:r,dispatch:o})=>{let l=null,s=null;const u=ny(typeof t=="string"?t:t.name,r.schema);return u?(u==="node"&&(l=Yr(t,r.schema)),u==="mark"&&(s=$s(t,r.schema)),o&&n.selection.ranges.forEach(d=>{const f=d.$from.pos,m=d.$to.pos;let p,g,b,S;n.selection.empty?r.doc.nodesBetween(f,m,(x,w)=>{l&&l===x.type&&(b=Math.max(w,f),S=Math.min(w+x.nodeSize,m),p=w,g=x)}):r.doc.nodesBetween(f,m,(x,w)=>{w<f&&l&&l===x.type&&(b=Math.max(w,f),S=Math.min(w+x.nodeSize,m),p=w,g=x),w>=f&&w<=m&&(l&&l===x.type&&n.setNodeMarkup(w,void 0,{...x.attrs,...e}),s&&x.marks.length&&x.marks.forEach(O=>{if(s===O.type){const E=Math.max(w,f),M=Math.min(w+x.nodeSize,m);n.addMark(E,M,s.create({...O.attrs,...e}))}}))}),g&&(p!==void 0&&n.setNodeMarkup(p,void 0,{...g.attrs,...e}),s&&g.marks.length&&g.marks.forEach(x=>{s===x.type&&n.addMark(b,S,s.create({...x.attrs,...e}))}))}),!0):!1},r7=(t,e={})=>({state:n,dispatch:r})=>{const o=Yr(t,n.schema);return CF(o,e)(n,r)},o7=(t,e={})=>({state:n,dispatch:r})=>{const o=Yr(t,n.schema);return xF(o,e)(n,r)};var i7=Object.freeze({__proto__:null,blur:WF,clearContent:qF,clearNodes:GF,command:KF,createParagraphNear:YF,cut:XF,deleteCurrentNode:QF,deleteNode:ZF,deleteRange:JF,deleteSelection:e8,enter:t8,exitCode:n8,extendMarkRange:r8,first:o8,focus:i8,forEach:a8,insertContent:l8,insertContentAt:u8,joinBackward:h8,joinDown:f8,joinForward:m8,joinItemBackward:p8,joinItemForward:g8,joinTextblockBackward:v8,joinTextblockForward:y8,joinUp:d8,keyboardShortcut:S8,lift:C8,liftEmptyBlock:x8,liftListItem:w8,newlineInCode:E8,resetAttributes:O8,scrollIntoView:R8,selectAll:T8,selectNodeBackward:M8,selectNodeForward:$8,selectParentNode:N8,selectTextblockEnd:A8,selectTextblockStart:D8,setContent:I8,setMark:L8,setMeta:V8,setNode:F8,setNodeSelection:U8,setTextSelection:W8,sinkListItem:q8,splitBlock:G8,splitListItem:K8,toggleList:Y8,toggleMark:X8,toggleNode:Q8,toggleWrap:Z8,undoInputRule:J8,unsetAllMarks:e7,unsetMark:t7,updateAttributes:n7,wrapIn:r7,wrapInList:o7});const a7=lo.create({name:"commands",addCommands(){return{...i7}}}),l7=lo.create({name:"drop",addProseMirrorPlugins(){return[new xo({key:new ui("tiptapDrop"),props:{handleDrop:(t,e,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:n,moved:r})}}})]}}),s7=lo.create({name:"editable",addProseMirrorPlugins(){return[new xo({key:new ui("editable"),props:{editable:()=>this.editor.options.editable}})]}}),c7=lo.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new xo({key:new ui("focusEvents"),props:{handleDOMEvents:{focus:(e,n)=>{t.isFocused=!0;const r=t.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1},blur:(e,n)=>{t.isFocused=!1;const r=t.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1}}}})]}}),u7=lo.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:u})=>{const{selection:d,doc:f}=u,{empty:m,$anchor:p}=d,{pos:g,parent:b}=p,S=p.parent.isTextblock&&g>0?u.doc.resolve(g-1):p,x=S.parent.type.spec.isolating,w=p.pos-p.parentOffset,O=x&&S.parent.childCount===1?w===p.pos:nn.atStart(f).from===g;return!m||!b.type.isTextblock||b.textContent.length||!O||O&&p.parent.type.name==="paragraph"?!1:s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},o={...r},l={...r,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return ty()||iz()?l:o},addProseMirrorPlugins(){return[new xo({key:new ui("clearDocument"),appendTransaction:(t,e,n)=>{if(t.some(x=>x.getMeta("composition")))return;const r=t.some(x=>x.docChanged)&&!e.doc.eq(n.doc),o=t.some(x=>x.getMeta("preventClearDocument"));if(!r||o)return;const{empty:l,from:s,to:u}=e.selection,d=nn.atStart(e.doc).from,f=nn.atEnd(e.doc).to;if(l||!(s===d&&u===f)||!dw(n.doc))return;const g=n.tr,b=Xv({state:n,transaction:g}),{commands:S}=new Qv({editor:this.editor,state:b});if(S.clearNodes(),!!g.steps.length)return g}})]}}),d7=lo.create({name:"paste",addProseMirrorPlugins(){return[new xo({key:new ui("tiptapPaste"),props:{handlePaste:(t,e,n)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:n})}}})]}}),f7=lo.create({name:"tabindex",addProseMirrorPlugins(){return[new xo({key:new ui("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class Oc{get name(){return this.node.type.name}constructor(e,n,r=!1,o=null){this.currentNode=null,this.actualDepth=null,this.isBlock=r,this.resolvedPos=e,this.editor=n,this.currentNode=o}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!==null&&e!==void 0?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let n=this.from,r=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,r=this.to-1}this.editor.commands.insertContentAt({from:n,to:r},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(e);return new Oc(n,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new Oc(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new Oc(e,this.editor)}get children(){const e=[];return this.node.content.forEach((n,r)=>{const o=n.isBlock&&!n.isTextblock,l=n.isAtom&&!n.isText,s=this.pos+r+(l?0:1),u=this.resolvedPos.doc.resolve(s);if(!o&&u.depth<=this.depth)return;const d=new Oc(u,this.editor,o,o?n:null);o&&(d.actualDepth=this.depth+1),e.push(new Oc(u,this.editor,o,o?n:null))}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,n={}){let r=null,o=this.parent;for(;o&&!r;){if(o.node.type.name===e)if(Object.keys(n).length>0){const l=o.node.attrs,s=Object.keys(n);for(let u=0;u<s.length;u+=1){const d=s[u];if(l[d]!==n[d])break}}else r=o;o=o.parent}return r}querySelector(e,n={}){return this.querySelectorAll(e,n,!0)[0]||null}querySelectorAll(e,n={},r=!1){let o=[];if(!this.children||this.children.length===0)return o;const l=Object.keys(n);return this.children.forEach(s=>{r&&o.length>0||(s.node.type.name===e&&l.every(d=>n[d]===s.node.attrs[d])&&o.push(s),!(r&&o.length>0)&&(o=o.concat(s.querySelectorAll(e,n,r))))}),o}setAttribute(e){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(n)}}const h7=`.ProseMirror {
325
- position: relative;
326
- }
327
-
328
- .ProseMirror {
329
- word-wrap: break-word;
330
- white-space: pre-wrap;
331
- white-space: break-spaces;
332
- -webkit-font-variant-ligatures: none;
333
- font-variant-ligatures: none;
334
- font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */
335
- }
336
-
337
- .ProseMirror [contenteditable="false"] {
338
- white-space: normal;
339
- }
340
-
341
- .ProseMirror [contenteditable="false"] [contenteditable="true"] {
342
- white-space: pre-wrap;
343
- }
344
-
345
- .ProseMirror pre {
346
- white-space: pre-wrap;
347
- }
348
-
349
- img.ProseMirror-separator {
350
- display: inline !important;
351
- border: none !important;
352
- margin: 0 !important;
353
- width: 0 !important;
354
- height: 0 !important;
355
- }
356
-
357
- .ProseMirror-gapcursor {
358
- display: none;
359
- pointer-events: none;
360
- position: absolute;
361
- margin: 0;
362
- }
363
-
364
- .ProseMirror-gapcursor:after {
365
- content: "";
366
- display: block;
367
- position: absolute;
368
- top: -2px;
369
- width: 20px;
370
- border-top: 1px solid black;
371
- animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
372
- }
373
-
374
- @keyframes ProseMirror-cursor-blink {
375
- to {
376
- visibility: hidden;
377
- }
378
- }
379
-
380
- .ProseMirror-hideselection *::selection {
381
- background: transparent;
382
- }
383
-
384
- .ProseMirror-hideselection *::-moz-selection {
385
- background: transparent;
386
- }
387
-
388
- .ProseMirror-hideselection * {
389
- caret-color: transparent;
390
- }
391
-
392
- .ProseMirror-focused .ProseMirror-gapcursor {
393
- display: block;
394
- }
395
-
396
- .tippy-box[data-animation=fade][data-state=hidden] {
397
- opacity: 0
398
- }`;function m7(t,e,n){const r=document.querySelector("style[data-tiptap-style]");if(r!==null)return r;const o=document.createElement("style");return e&&o.setAttribute("nonce",e),o.setAttribute("data-tiptap-style",""),o.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(o),o}class p7 extends $F{constructor(e={}){super(),this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:n})=>{throw n},onPaste:()=>null,onDrop:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("contentError",this.options.onContentError),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:n,slice:r,moved:o})=>this.options.onDrop(n,r,o)),this.on("paste",({event:n,slice:r})=>this.options.onPaste(n,r)),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=m7(h7,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,n=!0){this.setOptions({editable:e}),n&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,n){const r=QP(n)?n(e,[...this.state.plugins]):[...this.state.plugins,e],o=this.state.reconfigure({plugins:r});return this.view.updateState(o),o}unregisterPlugin(e){if(this.isDestroyed)return;const n=this.state.plugins;let r=n;if([].concat(e).forEach(l=>{const s=typeof l=="string"?`${l}$`:l.key;r=n.filter(u=>!u.key.startsWith(s))}),n.length===r.length)return;const o=this.state.reconfigure({plugins:r});return this.view.updateState(o),o}createExtensionManager(){var e,n;const o=[...this.options.enableCoreExtensions?[s7,UF.configure({blockSeparator:(n=(e=this.options.coreExtensionOptions)===null||e===void 0?void 0:e.clipboardTextSerializer)===null||n===void 0?void 0:n.blockSeparator}),a7,c7,u7,f7,l7,d7].filter(l=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[l.name]!==!1:!0):[],...this.options.extensions].filter(l=>["extension","node","mark"].includes(l==null?void 0:l.type));this.extensionManager=new pd(o,this)}createCommandManager(){this.commandManager=new Qv({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){var e;let n;try{n=S1(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(s){if(!(s instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(s.message))throw s;this.emit("contentError",{editor:this,error:s,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(u=>u.name!=="collaboration"),this.createExtensionManager()}}),n=S1(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const r=nz(n,this.options.autofocus);this.view=new J6(this.options.element,{...this.options.editorProps,attributes:{role:"textbox",...(e=this.options.editorProps)===null||e===void 0?void 0:e.attributes},dispatchTransaction:this.dispatchTransaction.bind(this),state:md.create({doc:n,selection:r||void 0})});const o=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(o),this.createNodeViews(),this.prependClass();const l=this.view.dom;l.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const n=this.capturedTransaction;return this.capturedTransaction=null,n}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(s=>{var u;return(u=this.capturedTransaction)===null||u===void 0?void 0:u.step(s)});return}const n=this.state.apply(e),r=!this.state.selection.eq(n.selection);this.emit("beforeTransaction",{editor:this,transaction:e,nextState:n}),this.view.updateState(n),this.emit("transaction",{editor:this,transaction:e}),r&&this.emit("selectionUpdate",{editor:this,transaction:e});const o=e.getMeta("focus"),l=e.getMeta("blur");o&&this.emit("focus",{editor:this,event:o.event,transaction:e}),l&&this.emit("blur",{editor:this,event:l.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return _8(this.state,e)}isActive(e,n){const r=typeof e=="string"?e:null,o=typeof e=="string"?n:e;return B8(this.state,r,o)}getJSON(){return this.state.doc.toJSON()}getHTML(){return lw(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:n=`
399
-
400
- `,textSerializers:r={}}=e||{};return P8(this.state.doc,{blockSeparator:n,textSerializers:{...JP(this.schema),...r}})}get isEmpty(){return dw(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){if(this.emit("destroy"),this.view){const e=this.view.dom;e&&e.editor&&delete e.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}$node(e,n){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelector(e,n))||null}$nodes(e,n){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelectorAll(e,n))||null}$pos(e){const n=this.state.doc.resolve(e);return new Oc(n,this)}get $doc(){return this.$pos(0)}}function Wc(t){return new Jv({find:t.find,handler:({state:e,range:n,match:r})=>{const o=Cn(t.getAttributes,void 0,r);if(o===!1||o===null)return null;const{tr:l}=e,s=r[r.length-1],u=r[0];if(s){const d=u.search(/\S/),f=n.from+u.indexOf(s),m=f+s.length;if(sz(n.from,n.to,e.doc).filter(b=>b.mark.type.excluded.find(x=>x===t.type&&x!==b.mark.type)).filter(b=>b.to>f).length)return null;m<n.to&&l.delete(m,n.to),f>n.from&&l.delete(n.from+d,f);const g=n.from+d+s.length;l.addMark(n.from+d,g,t.type.create(o||{})),l.removeStoredMark(t.type)}}})}function g7(t){return new Jv({find:t.find,handler:({state:e,range:n,match:r})=>{const o=Cn(t.getAttributes,void 0,r)||{},{tr:l}=e,s=n.from;let u=n.to;const d=t.type.create(o);if(r[1]){const f=r[0].lastIndexOf(r[1]);let m=s+f;m>u?m=u:u=m+r[1].length;const p=r[0][r[0].length-1];l.insertText(p,s+r[0].length-1),l.replaceWith(m,u,d)}else if(r[0]){const f=t.type.isInline?s:s-1;l.insert(f,t.type.create(o)).delete(l.mapping.map(s),l.mapping.map(u))}l.scrollIntoView()}})}function x1(t){return new Jv({find:t.find,handler:({state:e,range:n,match:r})=>{const o=e.doc.resolve(n.from),l=Cn(t.getAttributes,void 0,r)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),t.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,t.type,l)}})}function Nd(t){return new Jv({find:t.find,handler:({state:e,range:n,match:r,chain:o})=>{const l=Cn(t.getAttributes,void 0,r)||{},s=e.tr.delete(n.from,n.to),d=s.doc.resolve(n.from).blockRange(),f=d&&Ux(d,t.type,l);if(!f)return null;if(s.wrap(d,f),t.keepMarks&&t.editor){const{selection:p,storedMarks:g}=e,{splittableMarks:b}=t.editor.extensionManager,S=g||p.$to.parentOffset&&p.$from.marks();if(S){const x=S.filter(w=>b.includes(w.type.name));s.ensureMarks(x)}}if(t.keepAttributes){const p=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";o().updateAttributes(p,l).run()}const m=s.doc.resolve(n.from-1).nodeBefore;m&&m.type===t.type&&Ts(s.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(r,m))&&s.join(n.from-1)}})}class wr{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Cn(Vt(this,"addOptions",{name:this.name}))),this.storage=Cn(Vt(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new wr(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>ey(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new wr(e);return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=Cn(Vt(n,"addOptions",{name:n.name})),n.storage=Cn(Vt(n,"addStorage",{name:n.name,options:n.options})),n}}class v7{constructor(e,n,r){this.isDragging=!1,this.component=e,this.editor=n.editor,this.options={stopEvent:null,ignoreMutation:null,...r},this.extension=n.extension,this.node=n.node,this.decorations=n.decorations,this.innerDecorations=n.innerDecorations,this.view=n.view,this.HTMLAttributes=n.HTMLAttributes,this.getPos=n.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(e){var n,r,o,l,s,u,d;const{view:f}=this.editor,m=e.target,p=m.nodeType===3?(n=m.parentElement)===null||n===void 0?void 0:n.closest("[data-drag-handle]"):m.closest("[data-drag-handle]");if(!this.dom||!((r=this.contentDOM)===null||r===void 0)&&r.contains(m)||!p)return;let g=0,b=0;if(this.dom!==p){const O=this.dom.getBoundingClientRect(),E=p.getBoundingClientRect(),M=(o=e.offsetX)!==null&&o!==void 0?o:(l=e.nativeEvent)===null||l===void 0?void 0:l.offsetX,T=(s=e.offsetY)!==null&&s!==void 0?s:(u=e.nativeEvent)===null||u===void 0?void 0:u.offsetY;g=E.x-O.x+M,b=E.y-O.y+T}(d=e.dataTransfer)===null||d===void 0||d.setDragImage(this.dom,g,b);const S=this.getPos();if(typeof S!="number")return;const x=Gt.create(f.state.doc,S),w=f.state.tr.setSelection(x);f.dispatch(w)}stopEvent(e){var n;if(!this.dom)return!1;if(typeof this.options.stopEvent=="function")return this.options.stopEvent({event:e});const r=e.target;if(!(this.dom.contains(r)&&!(!((n=this.contentDOM)===null||n===void 0)&&n.contains(r))))return!1;const l=e.type.startsWith("drag"),s=e.type==="drop";if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(r.tagName)||r.isContentEditable)&&!s&&!l)return!0;const{isEditable:d}=this.editor,{isDragging:f}=this,m=!!this.node.type.spec.draggable,p=Gt.isSelectable(this.node),g=e.type==="copy",b=e.type==="paste",S=e.type==="cut",x=e.type==="mousedown";if(!m&&p&&l&&e.target===this.dom&&e.preventDefault(),m&&l&&!f&&e.target===this.dom)return e.preventDefault(),!1;if(m&&d&&!f&&x){const w=r.closest("[data-drag-handle]");w&&(this.dom===w||this.dom.contains(w))&&(this.isDragging=!0,document.addEventListener("dragend",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("drop",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("mouseup",()=>{this.isDragging=!1},{once:!0}))}return!(f||s||g||b||S||x&&p)}ignoreMutation(e){return!this.dom||!this.contentDOM?!0:typeof this.options.ignoreMutation=="function"?this.options.ignoreMutation({mutation:e}):this.node.isLeaf||this.node.isAtom?!0:e.type==="selection"||this.dom.contains(e.target)&&e.type==="childList"&&(ty()||rz())&&this.editor.isFocused&&[...Array.from(e.addedNodes),...Array.from(e.removedNodes)].every(r=>r.isContentEditable)?!1:this.contentDOM===e.target&&e.type==="attributes"?!0:!this.contentDOM.contains(e.target)}updateAttributes(e){this.editor.commands.command(({tr:n})=>{const r=this.getPos();return typeof r!="number"?!1:(n.setNodeMarkup(r,void 0,{...this.node.attrs,...e}),!0)})}deleteNode(){const e=this.getPos();if(typeof e!="number")return;const n=e+this.node.nodeSize;this.editor.commands.deleteRange({from:e,to:n})}}function qc(t){return new BF({find:t.find,handler:({state:e,range:n,match:r,pasteEvent:o})=>{const l=Cn(t.getAttributes,void 0,r,o);if(l===!1||l===null)return null;const{tr:s}=e,u=r[r.length-1],d=r[0];let f=n.to;if(u){const m=d.search(/\S/),p=n.from+d.indexOf(u),g=p+u.length;if(sz(n.from,n.to,e.doc).filter(S=>S.mark.type.excluded.find(w=>w===t.type&&w!==S.mark.type)).filter(S=>S.to>p).length)return null;g<n.to&&s.delete(g,n.to),p>n.from&&s.delete(n.from+m,p),f=n.from+m+u.length,s.addMark(n.from+m,f,t.type.create(l||{})),s.removeStoredMark(t.type)}}})}var yl=wk();const Sv=Lv(yl),cz=xk({__proto__:null,default:Sv},[yl]);function y7(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var uz={exports:{}},hC={};/**
401
- * @license React
402
- * use-sync-external-store-shim.development.js
403
- *
404
- * Copyright (c) Facebook, Inc. and its affiliates.
405
- *
406
- * This source code is licensed under the MIT license found in the
407
- * LICENSE file in the root directory of this source tree.
408
- */var vA;function b7(){return vA||(vA=1,function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=ee,e=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(M){{for(var T=arguments.length,$=new Array(T>1?T-1:0),N=1;N<T;N++)$[N-1]=arguments[N];r("error",M,$)}}function r(M,T,$){{var N=e.ReactDebugCurrentFrame,A=N.getStackAddendum();A!==""&&(T+="%s",$=$.concat([A]));var z=$.map(function(P){return String(P)});z.unshift("Warning: "+T),Function.prototype.apply.call(console[M],console,z)}}function o(M,T){return M===T&&(M!==0||1/M===1/T)||M!==M&&T!==T}var l=typeof Object.is=="function"?Object.is:o,s=t.useState,u=t.useEffect,d=t.useLayoutEffect,f=t.useDebugValue,m=!1,p=!1;function g(M,T,$){m||t.startTransition!==void 0&&(m=!0,n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var N=T();if(!p){var A=T();l(N,A)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}var z=s({inst:{value:N,getSnapshot:T}}),P=z[0].inst,B=z[1];return d(function(){P.value=N,P.getSnapshot=T,b(P)&&B({inst:P})},[M,N,T]),u(function(){b(P)&&B({inst:P});var L=function(){b(P)&&B({inst:P})};return M(L)},[M]),f(N),N}function b(M){var T=M.getSnapshot,$=M.value;try{var N=T();return!l($,N)}catch{return!0}}function S(M,T,$){return T()}var x=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",w=!x,O=w?S:g,E=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:O;hC.useSyncExternalStore=E,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),hC}uz.exports=b7();var fw=uz.exports;const S7=(...t)=>e=>{t.forEach(n=>{typeof n=="function"?n(e):n&&(n.current=e)})},C7=({contentComponent:t})=>{const e=fw.useSyncExternalStore(t.subscribe,t.getSnapshot,t.getServerSnapshot);return ee.createElement(ee.Fragment,null,Object.values(e))};function x7(){const t=new Set;let e={};return{subscribe(n){return t.add(n),()=>{t.delete(n)}},getSnapshot(){return e},getServerSnapshot(){return e},setRenderer(n,r){e={...e,[n]:Sv.createPortal(r.reactElement,r.element,n)},t.forEach(o=>o())},removeRenderer(n){const r={...e};delete r[n],e=r,t.forEach(o=>o())}}}class w7 extends ee.Component{constructor(e){var n;super(e),this.editorContentRef=ee.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:!!(!((n=e.editor)===null||n===void 0)&&n.contentComponent)}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){const e=this.props.editor;if(e&&!e.isDestroyed&&e.options.element){if(e.contentComponent)return;const n=this.editorContentRef.current;n.append(...e.options.element.childNodes),e.setOptions({element:n}),e.contentComponent=x7(),this.state.hasContentComponentInitialized||(this.unsubscribeToContentComponent=e.contentComponent.subscribe(()=>{this.setState(r=>r.hasContentComponentInitialized?r:{hasContentComponentInitialized:!0}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent()})),e.createNodeViews(),this.initialized=!0}}componentWillUnmount(){const e=this.props.editor;if(!e||(this.initialized=!1,e.isDestroyed||e.view.setProps({nodeViews:{}}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent(),e.contentComponent=null,!e.options.element.firstChild))return;const n=document.createElement("div");n.append(...e.options.element.childNodes),e.setOptions({element:n})}render(){const{editor:e,innerRef:n,...r}=this.props;return ee.createElement(ee.Fragment,null,ee.createElement("div",{ref:S7(n,this.editorContentRef),...r}),(e==null?void 0:e.contentComponent)&&ee.createElement(C7,{contentComponent:e.contentComponent}))}}const E7=y.forwardRef((t,e)=>{const n=ee.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[t.editor]);return ee.createElement(w7,{key:n,innerRef:e,...t})}),O7=ee.memo(E7);var R7=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,o,l;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!t(e[o],n[o]))return!1;return!0}if(e instanceof Map&&n instanceof Map){if(e.size!==n.size)return!1;for(o of e.entries())if(!n.has(o[0]))return!1;for(o of e.entries())if(!t(o[1],n.get(o[0])))return!1;return!0}if(e instanceof Set&&n instanceof Set){if(e.size!==n.size)return!1;for(o of e.entries())if(!n.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(n)){if(r=e.length,r!=n.length)return!1;for(o=r;o--!==0;)if(e[o]!==n[o])return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(l=Object.keys(e),r=l.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,l[o]))return!1;for(o=r;o--!==0;){var s=l[o];if(!(s==="_owner"&&e.$$typeof)&&!t(e[s],n[s]))return!1}return!0}return e!==e&&n!==n},T7=y7(R7),dz={exports:{}},mC={};/**
409
- * @license React
410
- * use-sync-external-store-shim/with-selector.development.js
411
- *
412
- * Copyright (c) Facebook, Inc. and its affiliates.
413
- *
414
- * This source code is licensed under the MIT license found in the
415
- * LICENSE file in the root directory of this source tree.
416
- */var yA;function M7(){return yA||(yA=1,function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=ee,e=fw;function n(m,p){return m===p&&(m!==0||1/m===1/p)||m!==m&&p!==p}var r=typeof Object.is=="function"?Object.is:n,o=e.useSyncExternalStore,l=t.useRef,s=t.useEffect,u=t.useMemo,d=t.useDebugValue;function f(m,p,g,b,S){var x=l(null),w;x.current===null?(w={hasValue:!1,value:null},x.current=w):w=x.current;var O=u(function(){var $=!1,N,A,z=function(W){if(!$){$=!0,N=W;var q=b(W);if(S!==void 0&&w.hasValue){var H=w.value;if(S(H,q))return A=H,H}return A=q,q}var J=N,_=A;if(r(J,W))return _;var j=b(W);return S!==void 0&&S(_,j)?_:(N=W,A=j,j)},P=g===void 0?null:g,B=function(){return z(p())},L=P===null?void 0:function(){return z(P())};return[B,L]},[p,g,b,S]),E=O[0],M=O[1],T=o(m,E,M);return s(function(){w.hasValue=!0,w.value=T},[T]),d(T),T}mC.useSyncExternalStoreWithSelector=f,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),mC}dz.exports=M7();var $7=dz.exports;const N7=typeof window<"u"?y.useLayoutEffect:y.useEffect;class A7{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber?this.lastSnapshot:(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber},this.lastSnapshot)}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){const n=()=>{this.transactionNumber+=1,this.subscribers.forEach(o=>o())},r=this.editor;return r.on("transaction",n),()=>{r.off("transaction",n)}}}}function D7(t){var e;const[n]=y.useState(()=>new A7(t.editor)),r=$7.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getServerSnapshot,t.selector,(e=t.equalityFn)!==null&&e!==void 0?e:T7);return N7(()=>n.watch(t.editor),[t.editor,n]),y.useDebugValue(r),r}const I7=!0,w1=typeof window>"u",k7=w1||!!(typeof window<"u"&&window.next);class hw{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(n=>n())}getInitialEditor(){if(this.options.current.immediatelyRender===void 0)return w1||k7?(console.warn("Tiptap Error: SSR has been detected, please set `immediatelyRender` explicitly to `false` to avoid hydration mismatches."),null):this.createEditor();if(this.options.current.immediatelyRender&&w1&&I7)throw new Error("Tiptap Error: SSR has been detected, and `immediatelyRender` has been set to `true` this is an unsupported configuration that may result in errors, explicitly set `immediatelyRender` to `false` to avoid hydration mismatches.");return this.options.current.immediatelyRender?this.createEditor():null}createEditor(){const e={...this.options.current,onBeforeCreate:(...r)=>{var o,l;return(l=(o=this.options.current).onBeforeCreate)===null||l===void 0?void 0:l.call(o,...r)},onBlur:(...r)=>{var o,l;return(l=(o=this.options.current).onBlur)===null||l===void 0?void 0:l.call(o,...r)},onCreate:(...r)=>{var o,l;return(l=(o=this.options.current).onCreate)===null||l===void 0?void 0:l.call(o,...r)},onDestroy:(...r)=>{var o,l;return(l=(o=this.options.current).onDestroy)===null||l===void 0?void 0:l.call(o,...r)},onFocus:(...r)=>{var o,l;return(l=(o=this.options.current).onFocus)===null||l===void 0?void 0:l.call(o,...r)},onSelectionUpdate:(...r)=>{var o,l;return(l=(o=this.options.current).onSelectionUpdate)===null||l===void 0?void 0:l.call(o,...r)},onTransaction:(...r)=>{var o,l;return(l=(o=this.options.current).onTransaction)===null||l===void 0?void 0:l.call(o,...r)},onUpdate:(...r)=>{var o,l;return(l=(o=this.options.current).onUpdate)===null||l===void 0?void 0:l.call(o,...r)},onContentError:(...r)=>{var o,l;return(l=(o=this.options.current).onContentError)===null||l===void 0?void 0:l.call(o,...r)},onDrop:(...r)=>{var o,l;return(l=(o=this.options.current).onDrop)===null||l===void 0?void 0:l.call(o,...r)},onPaste:(...r)=>{var o,l;return(l=(o=this.options.current).onPaste)===null||l===void 0?void 0:l.call(o,...r)}};return new p7(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,n){return Object.keys(e).every(r=>["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(r)?!0:r==="extensions"&&e.extensions&&n.extensions?e.extensions.length!==n.extensions.length?!1:e.extensions.every((o,l)=>{var s;return o===((s=n.extensions)===null||s===void 0?void 0:s[l])}):e[r]===n[r])}onRender(e){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&e.length===0?hw.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(e),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(this.previousDeps===null){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((r,o)=>r===e[o]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){const e=this.instanceId,n=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){n&&n.setOptions(this.options.current);return}n&&!n.isDestroyed&&(n.destroy(),this.instanceId===e&&this.setEditor(null))},1)}}function P7(t={},e=[]){const n=y.useRef(t);n.current=t;const[r]=y.useState(()=>new hw(n)),o=fw.useSyncExternalStore(r.subscribe,r.getEditor,r.getServerSnapshot);return y.useDebugValue(o),y.useEffect(r.onRender(e)),D7({editor:o,selector:({transactionNumber:l})=>t.shouldRerenderOnTransaction===!1?null:t.immediatelyRender&&l===0?0:l+1}),o}const z7=y.createContext({editor:null});z7.Consumer;const fz=y.createContext({onDragStart:void 0}),hz=()=>y.useContext(fz),_7=t=>{const e=t.as||"div",{nodeViewContentRef:n}=hz();return ee.createElement(e,{...t,ref:n,"data-node-view-content":"",style:{whiteSpace:"pre-wrap",...t.style}})},mz=ee.forwardRef((t,e)=>{const{onDragStart:n}=hz(),r=t.as||"div";return ee.createElement(r,{...t,ref:e,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...t.style}})});function B7(t){return!!(typeof t=="function"&&t.prototype&&t.prototype.isReactComponent)}function H7(t){var e;return typeof t=="object"&&((e=t.$$typeof)===null||e===void 0?void 0:e.toString())==="Symbol(react.forward_ref)"}class j7{constructor(e,{editor:n,props:r={},as:o="div",className:l=""}){this.ref=null,this.id=Math.floor(Math.random()*4294967295).toString(),this.component=e,this.editor=n,this.props=r,this.element=document.createElement(o),this.element.classList.add("react-renderer"),l&&this.element.classList.add(...l.split(" ")),this.editor.isInitialized?yl.flushSync(()=>{this.render()}):this.render()}render(){var e;const n=this.component,r=this.props,o=this.editor;(B7(n)||H7(n))&&(r.ref=l=>{this.ref=l}),this.reactElement=ee.createElement(n,{...r}),(e=o==null?void 0:o.contentComponent)===null||e===void 0||e.setRenderer(this.id,this)}updateProps(e={}){this.props={...this.props,...e},this.render()}destroy(){var e;const n=this.editor;(e=n==null?void 0:n.contentComponent)===null||e===void 0||e.removeRenderer(this.id)}updateAttributes(e){Object.keys(e).forEach(n=>{this.element.setAttribute(n,e[n])})}}class L7 extends v7{mount(){const e={editor:this.editor,node:this.node,decorations:this.decorations,innerDecorations:this.innerDecorations,view:this.view,selected:!1,extension:this.extension,HTMLAttributes:this.HTMLAttributes,getPos:()=>this.getPos(),updateAttributes:(f={})=>this.updateAttributes(f),deleteNode:()=>this.deleteNode()};if(!this.component.displayName){const f=m=>m.charAt(0).toUpperCase()+m.substring(1);this.component.displayName=f(this.extension.name)}const o={onDragStart:this.onDragStart.bind(this),nodeViewContentRef:f=>{f&&this.contentDOMElement&&f.firstChild!==this.contentDOMElement&&f.appendChild(this.contentDOMElement)}},l=this.component,s=ee.memo(f=>ee.createElement(fz.Provider,{value:o},ee.createElement(l,f)));s.displayName="ReactNodeView",this.node.isLeaf?this.contentDOMElement=null:this.options.contentDOMElementTag?this.contentDOMElement=document.createElement(this.options.contentDOMElementTag):this.contentDOMElement=document.createElement(this.node.isInline?"span":"div"),this.contentDOMElement&&(this.contentDOMElement.dataset.nodeViewContentReact="",this.contentDOMElement.style.whiteSpace="inherit");let u=this.node.isInline?"span":"div";this.options.as&&(u=this.options.as);const{className:d=""}=this.options;this.handleSelectionUpdate=this.handleSelectionUpdate.bind(this),this.renderer=new j7(s,{editor:this.editor,props:e,as:u,className:`node-${this.node.type.name} ${d}`.trim()}),this.editor.on("selectionUpdate",this.handleSelectionUpdate),this.updateElementAttributes()}get dom(){var e;if(this.renderer.element.firstElementChild&&!(!((e=this.renderer.element.firstElementChild)===null||e===void 0)&&e.hasAttribute("data-node-view-wrapper")))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.contentDOMElement}handleSelectionUpdate(){const{from:e,to:n}=this.editor.state.selection,r=this.getPos();if(typeof r=="number")if(e<=r&&n>=r+this.node.nodeSize){if(this.renderer.props.selected)return;this.selectNode()}else{if(!this.renderer.props.selected)return;this.deselectNode()}}update(e,n,r){const o=l=>{this.renderer.updateProps(l),typeof this.options.attrs=="function"&&this.updateElementAttributes()};if(e.type!==this.node.type)return!1;if(typeof this.options.update=="function"){const l=this.node,s=this.decorations,u=this.innerDecorations;return this.node=e,this.decorations=n,this.innerDecorations=r,this.options.update({oldNode:l,oldDecorations:s,newNode:e,newDecorations:n,oldInnerDecorations:u,innerDecorations:r,updateProps:()=>o({node:e,decorations:n,innerDecorations:r})})}return e===this.node&&this.decorations===n&&this.innerDecorations===r||(this.node=e,this.decorations=n,this.innerDecorations=r,o({node:e,decorations:n,innerDecorations:r})),!0}selectNode(){this.renderer.updateProps({selected:!0}),this.renderer.element.classList.add("ProseMirror-selectednode")}deselectNode(){this.renderer.updateProps({selected:!1}),this.renderer.element.classList.remove("ProseMirror-selectednode")}destroy(){this.renderer.destroy(),this.editor.off("selectionUpdate",this.handleSelectionUpdate),this.contentDOMElement=null}updateElementAttributes(){if(this.options.attrs){let e={};if(typeof this.options.attrs=="function"){const n=this.editor.extensionManager.attributes,r=vv(this.node,n);e=this.options.attrs({node:this.node,HTMLAttributes:r})}else e=this.options.attrs;this.renderer.updateAttributes(e)}}}function pz(t,e){return n=>n.editor.contentComponent?new L7(t,n,e):{}}function yt(){return yt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},yt.apply(null,arguments)}function Ht(t){"@babel/helpers - typeof";return Ht=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ht(t)}var V7=Symbol.for("react.element"),F7=Symbol.for("react.transitional.element"),U7=Symbol.for("react.fragment");function gz(t){return t&&Ht(t)==="object"&&(t.$$typeof===V7||t.$$typeof===F7)&&t.type===U7}function ci(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return ee.Children.forEach(t,function(r){r==null&&!e.keepEmpty||(Array.isArray(r)?n=n.concat(ci(r)):gz(r)&&r.props?n=n.concat(ci(r.props.children,e)):n.push(r))}),n}var E1={},mw=[],W7=function(e){mw.push(e)};function Aa(t,e){if(!t&&console!==void 0){var n=mw.reduce(function(r,o){return o(r??"","warning")},e);n&&console.error("Warning: ".concat(n))}}function q7(t,e){if(!t&&console!==void 0){var n=mw.reduce(function(r,o){return o(r??"","note")},e);n&&console.warn("Note: ".concat(n))}}function G7(){E1={}}function vz(t,e,n){!e&&!E1[n]&&(t(!1,n),E1[n]=!0)}function rn(t,e){vz(Aa,t,e)}function O1(t,e){vz(q7,t,e)}rn.preMessage=W7;rn.resetWarned=G7;rn.noteOnce=O1;function K7(t,e){if(Ht(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ht(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function yz(t){var e=K7(t,"string");return Ht(e)=="symbol"?e:e+""}function te(t,e,n){return(e=yz(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function bA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function re(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?bA(Object(n),!0).forEach(function(r){te(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Wh(t){return t instanceof HTMLElement||t instanceof SVGElement}function Y7(t){return t&&Ht(t)==="object"&&Wh(t.nativeElement)?t.nativeElement:Wh(t)?t:null}function Lg(t){var e=Y7(t);if(e)return e;if(t instanceof ee.Component){var n;return(n=Sv.findDOMNode)===null||n===void 0?void 0:n.call(Sv,t)}return null}var pC={exports:{}},Vn={},SA;function X7(){if(SA)return Vn;SA=1;/**
417
- * @license React
418
- * react-is.development.js
419
- *
420
- * Copyright (c) Facebook, Inc. and its affiliates.
421
- *
422
- * This source code is licensed under the MIT license found in the
423
- * LICENSE file in the root directory of this source tree.
424
- */return function(){var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),S=!1,x=!1,w=!1,O=!1,E=!1,M;M=Symbol.for("react.module.reference");function T(pe){return!!(typeof pe=="string"||typeof pe=="function"||pe===n||pe===o||E||pe===r||pe===f||pe===m||O||pe===b||S||x||w||typeof pe=="object"&&pe!==null&&(pe.$$typeof===g||pe.$$typeof===p||pe.$$typeof===l||pe.$$typeof===s||pe.$$typeof===d||pe.$$typeof===M||pe.getModuleId!==void 0))}function $(pe){if(typeof pe=="object"&&pe!==null){var we=pe.$$typeof;switch(we){case t:var $e=pe.type;switch($e){case n:case o:case r:case f:case m:return $e;default:var Pe=$e&&$e.$$typeof;switch(Pe){case u:case s:case d:case g:case p:case l:return Pe;default:return we}}case e:return we}}}var N=s,A=l,z=t,P=d,B=n,L=g,W=p,q=e,H=o,J=r,_=f,j=m,V=!1,G=!1;function K(pe){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Y(pe){return G||(G=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ne(pe){return $(pe)===s}function ae(pe){return $(pe)===l}function Q(pe){return typeof pe=="object"&&pe!==null&&pe.$$typeof===t}function se(pe){return $(pe)===d}function de(pe){return $(pe)===n}function xe(pe){return $(pe)===g}function fe(pe){return $(pe)===p}function Me(pe){return $(pe)===e}function ze(pe){return $(pe)===o}function Oe(pe){return $(pe)===r}function he(pe){return $(pe)===f}function De(pe){return $(pe)===m}Vn.ContextConsumer=N,Vn.ContextProvider=A,Vn.Element=z,Vn.ForwardRef=P,Vn.Fragment=B,Vn.Lazy=L,Vn.Memo=W,Vn.Portal=q,Vn.Profiler=H,Vn.StrictMode=J,Vn.Suspense=_,Vn.SuspenseList=j,Vn.isAsyncMode=K,Vn.isConcurrentMode=Y,Vn.isContextConsumer=ne,Vn.isContextProvider=ae,Vn.isElement=Q,Vn.isForwardRef=se,Vn.isFragment=de,Vn.isLazy=xe,Vn.isMemo=fe,Vn.isPortal=Me,Vn.isProfiler=ze,Vn.isStrictMode=Oe,Vn.isSuspense=he,Vn.isSuspenseList=De,Vn.isValidElementType=T,Vn.typeOf=$}(),Vn}var CA;function Q7(){return CA||(CA=1,pC.exports=X7()),pC.exports}var gC=Q7();function cm(t,e,n){var r=y.useRef({});return(!("value"in r.current)||n(r.current.condition,e))&&(r.current.value=t(),r.current.condition=e),r.current.value}var Z7=Number(y.version.split(".")[0]),pw=function(e,n){typeof e=="function"?e(n):Ht(e)==="object"&&e&&"current"in e&&(e.current=n)},Fo=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=n.filter(Boolean);return o.length<=1?o[0]:function(l){n.forEach(function(s){pw(s,l)})}},Ns=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return cm(function(){return Fo.apply(void 0,n)},n,function(o,l){return o.length!==l.length||o.every(function(s,u){return s!==l[u]})})},As=function(e){var n,r;if(!e)return!1;if(gw(e)&&Z7>=19)return!0;var o=gC.isMemo(e)?e.type.type:e.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==gC.ForwardRef||typeof e=="function"&&!((r=e.prototype)!==null&&r!==void 0&&r.render)&&e.$$typeof!==gC.ForwardRef)};function gw(t){return y.isValidElement(t)&&!gz(t)}var J7=function(e){return gw(e)&&As(e)},Zc=function(e){if(e&&gw(e)){var n=e;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},R1=y.createContext(null);function e2(t){var e=t.children,n=t.onBatchResize,r=y.useRef(0),o=y.useRef([]),l=y.useContext(R1),s=y.useCallback(function(u,d,f){r.current+=1;var m=r.current;o.current.push({size:u,element:d,data:f}),Promise.resolve().then(function(){m===r.current&&(n==null||n(o.current),o.current=[])}),l==null||l(u,d,f)},[n,l]);return y.createElement(R1.Provider,{value:s},e)}var bz=function(){if(typeof Map<"u")return Map;function t(e,n){var r=-1;return e.some(function(o,l){return o[0]===n?(r=l,!0):!1}),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(n){var r=t(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},e.prototype.set=function(n,r){var o=t(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},e.prototype.delete=function(n){var r=this.__entries__,o=t(r,n);~o&&r.splice(o,1)},e.prototype.has=function(n){return!!~t(this.__entries__,n)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,l=this.__entries__;o<l.length;o++){var s=l[o];n.call(r,s[1],s[0])}},e}()}(),T1=typeof window<"u"&&typeof document<"u"&&window.document===document,Cv=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),t2=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Cv):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}}(),n2=2;function r2(t,e){var n=!1,r=!1,o=0;function l(){n&&(n=!1,t()),r&&u()}function s(){t2(l)}function u(){var d=Date.now();if(n){if(d-o<n2)return;r=!0}else n=!0,r=!1,setTimeout(s,e);o=d}return u}var o2=20,i2=["top","right","bottom","left","width","height","size","weight"],a2=typeof MutationObserver<"u",l2=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=r2(this.refresh.bind(this),o2)}return t.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},t.prototype.removeObserver=function(e){var n=this.observers_,r=n.indexOf(e);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},t.prototype.updateObservers_=function(){var e=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return e.forEach(function(n){return n.broadcastActive()}),e.length>0},t.prototype.connect_=function(){!T1||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),a2?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!T1||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(e){var n=e.propertyName,r=n===void 0?"":n,o=i2.some(function(l){return!!~r.indexOf(l)});o&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),Sz=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];Object.defineProperty(t,o,{value:e[o],enumerable:!1,writable:!1,configurable:!0})}return t},Ad=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||Cv},Cz=ry(0,0,0,0);function xv(t){return parseFloat(t)||0}function xA(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(r,o){var l=t["border-"+o+"-width"];return r+xv(l)},0)}function s2(t){for(var e=["top","right","bottom","left"],n={},r=0,o=e;r<o.length;r++){var l=o[r],s=t["padding-"+l];n[l]=xv(s)}return n}function c2(t){var e=t.getBBox();return ry(0,0,e.width,e.height)}function u2(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return Cz;var r=Ad(t).getComputedStyle(t),o=s2(r),l=o.left+o.right,s=o.top+o.bottom,u=xv(r.width),d=xv(r.height);if(r.boxSizing==="border-box"&&(Math.round(u+l)!==e&&(u-=xA(r,"left","right")+l),Math.round(d+s)!==n&&(d-=xA(r,"top","bottom")+s)),!f2(t)){var f=Math.round(u+l)-e,m=Math.round(d+s)-n;Math.abs(f)!==1&&(u-=f),Math.abs(m)!==1&&(d-=m)}return ry(o.left,o.top,u,d)}var d2=function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof Ad(t).SVGGraphicsElement}:function(t){return t instanceof Ad(t).SVGElement&&typeof t.getBBox=="function"}}();function f2(t){return t===Ad(t).document.documentElement}function h2(t){return T1?d2(t)?c2(t):u2(t):Cz}function m2(t){var e=t.x,n=t.y,r=t.width,o=t.height,l=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(l.prototype);return Sz(s,{x:e,y:n,width:r,height:o,top:n,right:e+r,bottom:o+n,left:e}),s}function ry(t,e,n,r){return{x:t,y:e,width:n,height:r}}var p2=function(){function t(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ry(0,0,0,0),this.target=e}return t.prototype.isActive=function(){var e=h2(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},t}(),g2=function(){function t(e,n){var r=m2(n);Sz(this,{target:e,contentRect:r})}return t}(),v2=function(){function t(e,n,r){if(this.activeObservations_=[],this.observations_=new bz,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=n,this.callbackCtx_=r}return t.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof Ad(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)||(n.set(e,new p2(e)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof Ad(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)&&(n.delete(e),n.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&e.activeObservations_.push(n)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new g2(r.target,r.broadcastRect())});this.callback_.call(e,n,e),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),xz=typeof WeakMap<"u"?new WeakMap:new bz,wz=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=l2.getInstance(),r=new v2(e,n,this);xz.set(this,r)}return t}();["observe","unobserve","disconnect"].forEach(function(t){wz.prototype[t]=function(){var e;return(e=xz.get(this))[t].apply(e,arguments)}});var y2=function(){return typeof Cv.ResizeObserver<"u"?Cv.ResizeObserver:wz}(),ms=new Map;function b2(t){t.forEach(function(e){var n,r=e.target;(n=ms.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var Ez=new y2(b2);function S2(t,e){ms.has(t)||(ms.set(t,new Set),Ez.observe(t)),ms.get(t).add(e)}function C2(t,e){ms.has(t)&&(ms.get(t).delete(e),ms.get(t).size||(Ez.unobserve(t),ms.delete(t)))}function Er(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wA(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,yz(r.key),r)}}function Or(t,e,n){return e&&wA(t.prototype,e),n&&wA(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function qh(t,e){return qh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},qh(t,e)}function Sl(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&qh(t,e)}function Gh(t){return Gh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gh(t)}function vw(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vw=function(){return!!t})()}function En(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function x2(t,e){if(e&&(Ht(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return En(t)}function Cl(t){var e=vw();return function(){var n,r=Gh(t);if(e){var o=Gh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return x2(this,n)}}var w2=function(t){Sl(n,t);var e=Cl(n);function n(){return Er(this,n),e.apply(this,arguments)}return Or(n,[{key:"render",value:function(){return this.props.children}}]),n}(y.Component);function E2(t,e){var n=t.children,r=t.disabled,o=y.useRef(null),l=y.useRef(null),s=y.useContext(R1),u=typeof n=="function",d=u?n(o):n,f=y.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),m=!u&&y.isValidElement(d)&&As(d),p=m?Zc(d):null,g=Ns(p,o),b=function(){var O;return Lg(o.current)||(o.current&&Ht(o.current)==="object"?Lg((O=o.current)===null||O===void 0?void 0:O.nativeElement):null)||Lg(l.current)};y.useImperativeHandle(e,function(){return b()});var S=y.useRef(t);S.current=t;var x=y.useCallback(function(w){var O=S.current,E=O.onResize,M=O.data,T=w.getBoundingClientRect(),$=T.width,N=T.height,A=w.offsetWidth,z=w.offsetHeight,P=Math.floor($),B=Math.floor(N);if(f.current.width!==P||f.current.height!==B||f.current.offsetWidth!==A||f.current.offsetHeight!==z){var L={width:P,height:B,offsetWidth:A,offsetHeight:z};f.current=L;var W=A===Math.round($)?$:A,q=z===Math.round(N)?N:z,H=re(re({},L),{},{offsetWidth:W,offsetHeight:q});s==null||s(H,w,M),E&&Promise.resolve().then(function(){E(H,w)})}},[]);return y.useEffect(function(){var w=b();return w&&!r&&S2(w,x),function(){return C2(w,x)}},[o.current,r]),y.createElement(w2,{ref:l},m?y.cloneElement(d,{ref:g}):d)}var Oz=y.forwardRef(E2);Oz.displayName="SingleObserver";var O2="rc-observer-key";function R2(t,e){var n=t.children,r=typeof n=="function"?[n]:ci(n);return r.length>1?Aa(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):r.length===0&&Aa(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),r.map(function(o,l){var s=(o==null?void 0:o.key)||"".concat(O2,"-").concat(l);return y.createElement(Oz,yt({},t,{key:s,ref:l===0?e:void 0}),o)})}var xl=y.forwardRef(R2);xl.displayName="ResizeObserver";xl.Collection=e2;function M1(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function T2(t){if(Array.isArray(t))return M1(t)}function Rz(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function yw(t,e){if(t){if(typeof t=="string")return M1(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M1(t,e):void 0}}function M2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
425
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ht(t){return T2(t)||Rz(t)||yw(t)||M2()}var Tz=function(e){return+setTimeout(e,16)},Mz=function(e){return clearTimeout(e)};typeof window<"u"&&"requestAnimationFrame"in window&&(Tz=function(e){return window.requestAnimationFrame(e)},Mz=function(e){return window.cancelAnimationFrame(e)});var EA=0,oy=new Map;function $z(t){oy.delete(t)}var Mn=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;EA+=1;var r=EA;function o(l){if(l===0)$z(r),e();else{var s=Tz(function(){o(l-1)});oy.set(r,s)}}return o(n),r};Mn.cancel=function(t){var e=oy.get(t);return $z(t),Mz(e)};Mn.ids=function(){return oy};function Nz(t){if(Array.isArray(t))return t}function $2(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,l,s,u=[],d=!0,f=!1;try{if(l=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(r=l.call(n)).done)&&(u.push(r.value),u.length!==e);d=!0);}catch(m){f=!0,o=m}finally{try{if(!d&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw o}}return u}}function Az(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
426
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Re(t,e){return Nz(t)||$2(t,e)||yw(t,e)||Az()}function Kh(t){for(var e=0,n,r=0,o=t.length;o>=4;++r,o-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}function yo(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function $1(t,e){if(!t)return!1;if(t.contains)return t.contains(e);for(var n=e;n;){if(n===t)return!0;n=n.parentNode}return!1}var OA="data-rc-order",RA="data-rc-priority",N2="rc-util-key",N1=new Map;function Dz(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.mark;return e?e.startsWith("data-")?e:"data-".concat(e):N2}function iy(t){if(t.attachTo)return t.attachTo;var e=document.querySelector("head");return e||document.body}function A2(t){return t==="queue"?"prependQueue":t?"prepend":"append"}function bw(t){return Array.from((N1.get(t)||t).children).filter(function(e){return e.tagName==="STYLE"})}function Iz(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!yo())return null;var n=e.csp,r=e.prepend,o=e.priority,l=o===void 0?0:o,s=A2(r),u=s==="prependQueue",d=document.createElement("style");d.setAttribute(OA,s),u&&l&&d.setAttribute(RA,"".concat(l)),n!=null&&n.nonce&&(d.nonce=n==null?void 0:n.nonce),d.innerHTML=t;var f=iy(e),m=f.firstChild;if(r){if(u){var p=(e.styles||bw(f)).filter(function(g){if(!["prepend","prependQueue"].includes(g.getAttribute(OA)))return!1;var b=Number(g.getAttribute(RA)||0);return l>=b});if(p.length)return f.insertBefore(d,p[p.length-1].nextSibling),d}f.insertBefore(d,m)}else f.appendChild(d);return d}function kz(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=iy(e);return(e.styles||bw(n)).find(function(r){return r.getAttribute(Dz(e))===t})}function Yh(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=kz(t,e);if(n){var r=iy(e);r.removeChild(n)}}function D2(t,e){var n=N1.get(t);if(!n||!$1(document,n)){var r=Iz("",e),o=r.parentNode;N1.set(t,o),t.removeChild(r)}}function vl(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=iy(n),o=bw(r),l=re(re({},n),{},{styles:o});D2(r,l);var s=kz(e,l);if(s){var u,d;if((u=l.csp)!==null&&u!==void 0&&u.nonce&&s.nonce!==((d=l.csp)===null||d===void 0?void 0:d.nonce)){var f;s.nonce=(f=l.csp)===null||f===void 0?void 0:f.nonce}return s.innerHTML!==t&&(s.innerHTML=t),s}var m=Iz(t,l);return m.setAttribute(Dz(l),e),m}function I2(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function an(t,e){if(t==null)return{};var n,r,o=I2(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(r=0;r<l.length;r++)n=l[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function Dd(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(l,s){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,d=r.has(l);if(rn(!d,"Warning: There may be circular references"),d)return!1;if(l===s)return!0;if(n&&u>1)return!1;r.add(l);var f=u+1;if(Array.isArray(l)){if(!Array.isArray(s)||l.length!==s.length)return!1;for(var m=0;m<l.length;m++)if(!o(l[m],s[m],f))return!1;return!0}if(l&&s&&Ht(l)==="object"&&Ht(s)==="object"){var p=Object.keys(l);return p.length!==Object.keys(s).length?!1:p.every(function(g){return o(l[g],s[g],f)})}return!1}return o(t,e)}var k2="%";function A1(t){return t.join(k2)}var P2=function(){function t(e){Er(this,t),te(this,"instanceId",void 0),te(this,"cache",new Map),this.instanceId=e}return Or(t,[{key:"get",value:function(n){return this.opGet(A1(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(A1(n),r)}},{key:"opUpdate",value:function(n,r){var o=this.cache.get(n),l=r(o);l===null?this.cache.delete(n):this.cache.set(n,l)}}]),t}(),Id="data-token-hash",Qi="data-css-hash",z2="data-cache-path",ps="__cssinjs_instance__";function _2(){var t=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var e=document.body.querySelectorAll("style[".concat(Qi,"]"))||[],n=document.head.firstChild;Array.from(e).forEach(function(o){o[ps]=o[ps]||t,o[ps]===t&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Qi,"]"))).forEach(function(o){var l=o.getAttribute(Qi);if(r[l]){if(o[ps]===t){var s;(s=o.parentNode)===null||s===void 0||s.removeChild(o)}}else r[l]=!0})}return new P2(t)}var um=y.createContext({hashPriority:"low",cache:_2(),defaultCache:!0});function B2(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}var Sw=function(){function t(){Er(this,t),te(this,"cache",void 0),te(this,"keys",void 0),te(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Or(t,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s={map:this.cache};return n.forEach(function(u){if(!s)s=void 0;else{var d;s=(d=s)===null||d===void 0||(d=d.map)===null||d===void 0?void 0:d.get(u)}}),(r=s)!==null&&r!==void 0&&r.value&&l&&(s.value[1]=this.cacheCallTimes++),(o=s)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>t.MAX_CACHE_SIZE+t.MAX_CACHE_OFFSET){var l=this.keys.reduce(function(f,m){var p=Re(f,2),g=p[1];return o.internalGet(m)[1]<g?[m,o.internalGet(m)[1]]:f},[this.keys[0],this.cacheCallTimes]),s=Re(l,1),u=s[0];this.delete(u)}this.keys.push(n)}var d=this.cache;n.forEach(function(f,m){if(m===n.length-1)d.set(f,{value:[r,o.cacheCallTimes++]});else{var p=d.get(f);p?p.map||(p.map=new Map):d.set(f,{map:new Map}),d=d.get(f).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var l;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(l=o.value)===null||l===void 0?void 0:l[0]}var s=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),s}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!B2(r,n)}),this.deleteByPath(this.cache,n)}}]),t}();te(Sw,"MAX_CACHE_SIZE",20);te(Sw,"MAX_CACHE_OFFSET",5);var TA=0,Pz=function(){function t(e){Er(this,t),te(this,"derivatives",void 0),te(this,"id",void 0),this.derivatives=Array.isArray(e)?e:[e],this.id=TA,e.length===0&&Aa(e.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),TA+=1}return Or(t,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),t}(),vC=new Sw;function D1(t){var e=Array.isArray(t)?t:[t];return vC.has(e)||vC.set(e,new Pz(e)),vC.get(e)}var H2=new WeakMap,yC={};function j2(t,e){for(var n=H2,r=0;r<e.length;r+=1){var o=e[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(yC)||n.set(yC,t()),n.get(yC)}var MA=new WeakMap;function Dh(t){var e=MA.get(t)||"";return e||(Object.keys(t).forEach(function(n){var r=t[n];e+=n,r instanceof Pz?e+=r.id:r&&Ht(r)==="object"?e+=Dh(r):e+=r}),e=Kh(e),MA.set(t,e)),e}function $A(t,e){return Kh("".concat(e,"_").concat(Dh(t)))}var I1=yo();function Ee(t){return typeof t=="number"?"".concat(t,"px"):t}function wv(t,e,n){var r,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(l)return t;var s=re(re({},o),{},(r={},te(r,Id,e),te(r,Qi,n),r)),u=Object.keys(s).map(function(d){var f=s[d];return f?"".concat(d,'="').concat(f,'"'):null}).filter(function(d){return d}).join(" ");return"<style ".concat(u,">").concat(t,"</style>")}var Vg=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},L2=function(e,n,r){return Object.keys(e).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(e).map(function(o){var l=Re(o,2),s=l[0],u=l[1];return"".concat(s,":").concat(u,";")}).join(""),"}"):""},zz=function(e,n,r){var o={},l={};return Object.entries(e).forEach(function(s){var u,d,f=Re(s,2),m=f[0],p=f[1];if(r!=null&&(u=r.preserve)!==null&&u!==void 0&&u[m])l[m]=p;else if((typeof p=="string"||typeof p=="number")&&!(r!=null&&(d=r.ignore)!==null&&d!==void 0&&d[m])){var g,b=Vg(m,r==null?void 0:r.prefix);o[b]=typeof p=="number"&&!(r!=null&&(g=r.unitless)!==null&&g!==void 0&&g[m])?"".concat(p,"px"):String(p),l[m]="var(".concat(b,")")}}),[l,L2(o,n,{scope:r==null?void 0:r.scope})]},NA=yo()?y.useLayoutEffect:y.useEffect,Gn=function(e,n){var r=y.useRef(!0);NA(function(){return e(r.current)},n),NA(function(){return r.current=!1,function(){r.current=!0}},[])},Ih=function(e,n){Gn(function(r){if(!r)return e()},n)},V2=re({},Vv),AA=V2.useInsertionEffect,F2=function(e,n,r){y.useMemo(e,r),Gn(function(){return n(!0)},r)},U2=AA?function(t,e,n){return AA(function(){return t(),e()},n)}:F2,W2=re({},Vv),q2=W2.useInsertionEffect,G2=function(e){var n=[],r=!1;function o(l){if(r){Aa(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}n.push(l)}return y.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(l){return l()})}},e),o},K2=function(){return function(e){e()}},Y2=typeof q2<"u"?G2:K2,k1=!1;function X2(){return k1}const Q2=X2;if(typeof iv<"u"&&iv&&iv.hot&&typeof window<"u"){var Cg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(Cg&&typeof Cg.webpackHotUpdate=="function"){var Z2=Cg.webpackHotUpdate;Cg.webpackHotUpdate=function(){return k1=!0,setTimeout(function(){k1=!1},0),Z2.apply(void 0,arguments)}}}function Cw(t,e,n,r,o){var l=y.useContext(um),s=l.cache,u=[t].concat(ht(e)),d=A1(u),f=Y2([d]),m=Q2(),p=function(x){s.opUpdate(d,function(w){var O=w||[void 0,void 0],E=Re(O,2),M=E[0],T=M===void 0?0:M,$=E[1],N=$;$&&m&&(r==null||r(N,m),N=null);var A=N||n(),z=[T,A];return x?x(z):z})};y.useMemo(function(){p()},[d]);var g=s.opGet(d);g||(p(),g=s.opGet(d));var b=g[1];return U2(function(){o==null||o(b)},function(S){return p(function(x){var w=Re(x,2),O=w[0],E=w[1];return S&&O===0&&(o==null||o(b)),[O+1,E]}),function(){s.opUpdate(d,function(x){var w=x||[],O=Re(w,2),E=O[0],M=E===void 0?0:E,T=O[1],$=M-1;return $===0?(f(function(){(S||!s.opGet(d))&&(r==null||r(T,!1))}),null):[M-1,T]})}},[d]),b}var J2={},e9="css-dev-only-do-not-override",Rc=new Map;function t9(t){Rc.set(t,(Rc.get(t)||0)+1)}function n9(t,e){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Id,'="').concat(t,'"]'));n.forEach(function(r){if(r[ps]===e){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var r9=0;function o9(t,e){Rc.set(t,(Rc.get(t)||0)-1);var n=Array.from(Rc.keys()),r=n.filter(function(o){var l=Rc.get(o)||0;return l<=0});n.length-r.length>r9&&r.forEach(function(o){n9(o,e),Rc.delete(o)})}var i9=function(e,n,r,o){var l=r.getDerivativeToken(e),s=re(re({},l),n);return o&&(s=o(s)),s},_z="token";function a9(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=y.useContext(um),o=r.cache.instanceId,l=r.container,s=n.salt,u=s===void 0?"":s,d=n.override,f=d===void 0?J2:d,m=n.formatToken,p=n.getComputedToken,g=n.cssVar,b=j2(function(){return Object.assign.apply(Object,[{}].concat(ht(e)))},e),S=Dh(b),x=Dh(f),w=g?Dh(g):"",O=Cw(_z,[u,t.id,S,x,w],function(){var E,M=p?p(b,f,t):i9(b,f,t,m),T=re({},M),$="";if(g){var N=zz(M,g.key,{prefix:g.prefix,ignore:g.ignore,unitless:g.unitless,preserve:g.preserve}),A=Re(N,2);M=A[0],$=A[1]}var z=$A(M,u);M._tokenKey=z,T._tokenKey=$A(T,u);var P=(E=g==null?void 0:g.key)!==null&&E!==void 0?E:z;M._themeKey=P,t9(P);var B="".concat(e9,"-").concat(Kh(z));return M._hashId=B,[M,B,T,$,(g==null?void 0:g.key)||""]},function(E){o9(E[0]._themeKey,o)},function(E){var M=Re(E,4),T=M[0],$=M[3];if(g&&$){var N=vl($,Kh("css-variables-".concat(T._themeKey)),{mark:Qi,prepend:"queue",attachTo:l,priority:-999});N[ps]=o,N.setAttribute(Id,T._themeKey)}});return O}var l9=function(e,n,r){var o=Re(e,5),l=o[2],s=o[3],u=o[4],d=r||{},f=d.plain;if(!s)return null;var m=l._tokenKey,p=-999,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(p)},b=wv(s,u,m,g,f);return[p,m,b]},s9={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Bz="comm",Hz="rule",jz="decl",c9="@import",u9="@namespace",d9="@keyframes",f9="@layer",Lz=Math.abs,xw=String.fromCharCode;function Vz(t){return t.trim()}function Fg(t,e,n){return t.replace(e,n)}function h9(t,e,n){return t.indexOf(e,n)}function Cd(t,e){return t.charCodeAt(e)|0}function kd(t,e,n){return t.slice(e,n)}function Oa(t){return t.length}function m9(t){return t.length}function xg(t,e){return e.push(t),t}var ay=1,Pd=1,Fz=0,ki=0,Ir=0,Vd="";function ww(t,e,n,r,o,l,s,u){return{value:t,root:e,parent:n,type:r,props:o,children:l,line:ay,column:Pd,length:s,return:"",siblings:u}}function p9(){return Ir}function g9(){return Ir=ki>0?Cd(Vd,--ki):0,Pd--,Ir===10&&(Pd=1,ay--),Ir}function Zi(){return Ir=ki<Fz?Cd(Vd,ki++):0,Pd++,Ir===10&&(Pd=1,ay++),Ir}function gs(){return Cd(Vd,ki)}function Ug(){return ki}function ly(t,e){return kd(Vd,t,e)}function Xh(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function v9(t){return ay=Pd=1,Fz=Oa(Vd=t),ki=0,[]}function y9(t){return Vd="",t}function bC(t){return Vz(ly(ki-1,P1(t===91?t+2:t===40?t+1:t)))}function b9(t){for(;(Ir=gs())&&Ir<33;)Zi();return Xh(t)>2||Xh(Ir)>3?"":" "}function S9(t,e){for(;--e&&Zi()&&!(Ir<48||Ir>102||Ir>57&&Ir<65||Ir>70&&Ir<97););return ly(t,Ug()+(e<6&&gs()==32&&Zi()==32))}function P1(t){for(;Zi();)switch(Ir){case t:return ki;case 34:case 39:t!==34&&t!==39&&P1(Ir);break;case 40:t===41&&P1(t);break;case 92:Zi();break}return ki}function C9(t,e){for(;Zi()&&t+Ir!==57;)if(t+Ir===84&&gs()===47)break;return"/*"+ly(e,ki-1)+"*"+xw(t===47?t:Zi())}function x9(t){for(;!Xh(gs());)Zi();return ly(t,ki)}function w9(t){return y9(Wg("",null,null,null,[""],t=v9(t),0,[0],t))}function Wg(t,e,n,r,o,l,s,u,d){for(var f=0,m=0,p=s,g=0,b=0,S=0,x=1,w=1,O=1,E=0,M="",T=o,$=l,N=r,A=M;w;)switch(S=E,E=Zi()){case 40:if(S!=108&&Cd(A,p-1)==58){h9(A+=Fg(bC(E),"&","&\f"),"&\f",Lz(f?u[f-1]:0))!=-1&&(O=-1);break}case 34:case 39:case 91:A+=bC(E);break;case 9:case 10:case 13:case 32:A+=b9(S);break;case 92:A+=S9(Ug()-1,7);continue;case 47:switch(gs()){case 42:case 47:xg(E9(C9(Zi(),Ug()),e,n,d),d),(Xh(S||1)==5||Xh(gs()||1)==5)&&Oa(A)&&kd(A,-1,void 0)!==" "&&(A+=" ");break;default:A+="/"}break;case 123*x:u[f++]=Oa(A)*O;case 125*x:case 59:case 0:switch(E){case 0:case 125:w=0;case 59+m:O==-1&&(A=Fg(A,/\f/g,"")),b>0&&(Oa(A)-p||x===0&&S===47)&&xg(b>32?IA(A+";",r,n,p-1,d):IA(Fg(A," ","")+";",r,n,p-2,d),d);break;case 59:A+=";";default:if(xg(N=DA(A,e,n,f,m,o,u,M,T=[],$=[],p,l),l),E===123)if(m===0)Wg(A,e,N,N,T,l,p,u,$);else{switch(g){case 99:if(Cd(A,3)===110)break;case 108:if(Cd(A,2)===97)break;default:m=0;case 100:case 109:case 115:}m?Wg(t,N,N,r&&xg(DA(t,N,N,0,0,o,u,M,o,T=[],p,$),$),o,$,p,u,r?T:$):Wg(A,N,N,N,[""],$,0,u,$)}}f=m=b=0,x=O=1,M=A="",p=s;break;case 58:p=1+Oa(A),b=S;default:if(x<1){if(E==123)--x;else if(E==125&&x++==0&&g9()==125)continue}switch(A+=xw(E),E*x){case 38:O=m>0?1:(A+="\f",-1);break;case 44:u[f++]=(Oa(A)-1)*O,O=1;break;case 64:gs()===45&&(A+=bC(Zi())),g=gs(),m=p=Oa(M=A+=x9(Ug())),E++;break;case 45:S===45&&Oa(A)==2&&(x=0)}}return l}function DA(t,e,n,r,o,l,s,u,d,f,m,p){for(var g=o-1,b=o===0?l:[""],S=m9(b),x=0,w=0,O=0;x<r;++x)for(var E=0,M=kd(t,g+1,g=Lz(w=s[x])),T=t;E<S;++E)(T=Vz(w>0?b[E]+" "+M:Fg(M,/&\f/g,b[E])))&&(d[O++]=T);return ww(t,e,n,o===0?Hz:u,d,f,m,p)}function E9(t,e,n,r){return ww(t,e,n,Bz,xw(p9()),kd(t,2,-2),0,r)}function IA(t,e,n,r,o){return ww(t,e,n,jz,kd(t,0,r),kd(t,r+1,-1),r,o)}function z1(t,e){for(var n="",r=0;r<t.length;r++)n+=e(t[r],r,t,e)||"";return n}function O9(t,e,n,r){switch(t.type){case f9:if(t.children.length)break;case c9:case u9:case jz:return t.return=t.return||t.value;case Bz:return"";case d9:return t.return=t.value+"{"+z1(t.children,r)+"}";case Hz:if(!Oa(t.value=t.props.join(",")))return""}return Oa(n=z1(t.children,r))?t.return=t.value+"{"+n+"}":""}function Uz(t,e){var n=e.path,r=e.parentSelectors;rn(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(t).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var R9=function(e,n,r){if(e==="content"){var o=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,l=["normal","none","initial","inherit","unset"];(typeof n!="string"||l.indexOf(n)===-1&&!o.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'"))&&Uz("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(n,"\"'`."),r)}},T9=function(e,n,r){e==="animation"&&r.hashId&&n!=="none"&&Uz("You seem to be using hashed animation '".concat(n,"', in which case 'animationName' with Keyframe as value is recommended."),r)},kA="data-ant-cssinjs-cache-path",Wz="_FILE_STYLE__",Bc,qz=!0;function M9(){if(!Bc&&(Bc={},yo())){var t=document.createElement("div");t.className=kA,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var e=getComputedStyle(t).content||"";e=e.replace(/^"/,"").replace(/"$/,""),e.split(";").forEach(function(o){var l=o.split(":"),s=Re(l,2),u=s[0],d=s[1];Bc[u]=d});var n=document.querySelector("style[".concat(kA,"]"));if(n){var r;qz=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(t)}}function $9(t){return M9(),!!Bc[t]}function N9(t){var e=Bc[t],n=null;if(e&&yo())if(qz)n=Wz;else{var r=document.querySelector("style[".concat(Qi,'="').concat(Bc[t],'"]'));r?n=r.innerHTML:delete Bc[t]}return[n,e]}var Gz="_skip_check_",Kz="_multi_value_";function qg(t){var e=z1(w9(t),O9);return e.replace(/\{%%%\:[^;];}/g,";")}function A9(t){return Ht(t)==="object"&&t&&(Gz in t||Kz in t)}function PA(t,e,n){if(!e)return t;var r=".".concat(e),o=n==="low"?":where(".concat(r,")"):r,l=t.split(",").map(function(s){var u,d=s.trim().split(/\s+/),f=d[0]||"",m=((u=f.match(/^\w+/))===null||u===void 0?void 0:u[0])||"";return f="".concat(m).concat(o).concat(f.slice(m.length)),[f].concat(ht(d.slice(1))).join(" ")});return l.join(",")}var D9=function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,l=r.injectHash,s=r.parentSelectors,u=n.hashId,d=n.layer,f=n.path,m=n.hashPriority,p=n.transformers,g=p===void 0?[]:p,b=n.linters,S=b===void 0?[]:b,x="",w={};function O(T){var $=T.getName(u);if(!w[$]){var N=t(T.style,n,{root:!1,parentSelectors:s}),A=Re(N,1),z=A[0];w[$]="@keyframes ".concat(T.getName(u)).concat(z)}}function E(T){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return T.forEach(function(N){Array.isArray(N)?E(N,$):N&&$.push(N)}),$}var M=E(Array.isArray(e)?e:[e]);return M.forEach(function(T){var $=typeof T=="string"&&!o?{}:T;if(typeof $=="string")x+="".concat($,`
427
- `);else if($._keyframe)O($);else{var N=g.reduce(function(A,z){var P;return(z==null||(P=z.visit)===null||P===void 0?void 0:P.call(z,A))||A},$);Object.keys(N).forEach(function(A){var z=N[A];if(Ht(z)==="object"&&z&&(A!=="animationName"||!z._keyframe)&&!A9(z)){var P=!1,B=A.trim(),L=!1;(o||l)&&u?B.startsWith("@")?P=!0:B==="&"?B=PA("",u,m):B=PA(A,u,m):o&&!u&&(B==="&"||B==="")&&(B="",L=!0);var W=t(z,n,{root:L,injectHash:P,parentSelectors:[].concat(ht(s),[B])}),q=Re(W,2),H=q[0],J=q[1];w=re(re({},w),J),x+="".concat(B).concat(H)}else{let V=function(G,K){(Ht(z)!=="object"||!(z!=null&&z[Gz]))&&[R9,T9].concat(ht(S)).forEach(function(ae){return ae(G,K,{path:f,hashId:u,parentSelectors:s})});var Y=G.replace(/[A-Z]/g,function(ae){return"-".concat(ae.toLowerCase())}),ne=K;!s9[G]&&typeof ne=="number"&&ne!==0&&(ne="".concat(ne,"px")),G==="animationName"&&K!==null&&K!==void 0&&K._keyframe&&(O(K),ne=K.getName(u)),x+="".concat(Y,":").concat(ne,";")};var _,j=(_=z==null?void 0:z.value)!==null&&_!==void 0?_:z;Ht(z)==="object"&&z!==null&&z!==void 0&&z[Kz]&&Array.isArray(j)?j.forEach(function(G){V(A,G)}):V(A,j)}})}}),o?d&&(x&&(x="@layer ".concat(d.name," {").concat(x,"}")),d.dependencies&&(w["@layer ".concat(d.name)]=d.dependencies.map(function(T){return"@layer ".concat(T,", ").concat(d.name,";")}).join(`
428
- `))):x="{".concat(x,"}"),[x,w]};function Yz(t,e){return Kh("".concat(t.join("%")).concat(e))}function I9(){return null}var Xz="style";function _1(t,e){var n=t.token,r=t.path,o=t.hashId,l=t.layer,s=t.nonce,u=t.clientOnly,d=t.order,f=d===void 0?0:d,m=y.useContext(um),p=m.autoClear,g=m.mock,b=m.defaultCache,S=m.hashPriority,x=m.container,w=m.ssrInline,O=m.transformers,E=m.linters,M=m.cache,T=m.layer,$=n._tokenKey,N=[$];T&&N.push("layer"),N.push.apply(N,ht(r));var A=I1;g!==void 0&&(A=g==="client");var z=Cw(Xz,N,function(){var q=N.join("|");if($9(q)){var H=N9(q),J=Re(H,2),_=J[0],j=J[1];if(_)return[_,$,j,{},u,f]}var V=e(),G=D9(V,{hashId:o,hashPriority:S,layer:T?l:void 0,path:r.join("-"),transformers:O,linters:E}),K=Re(G,2),Y=K[0],ne=K[1],ae=qg(Y),Q=Yz(N,ae);return[ae,$,Q,ne,u,f]},function(q,H){var J=Re(q,3),_=J[2];(H||p)&&I1&&Yh(_,{mark:Qi})},function(q){var H=Re(q,4),J=H[0];H[1];var _=H[2],j=H[3];if(A&&J!==Wz){var V={mark:Qi,prepend:T?!1:"queue",attachTo:x,priority:f},G=typeof s=="function"?s():s;G&&(V.csp={nonce:G});var K=[],Y=[];Object.keys(j).forEach(function(ae){ae.startsWith("@layer")?K.push(ae):Y.push(ae)}),K.forEach(function(ae){vl(qg(j[ae]),"_layer-".concat(ae),re(re({},V),{},{prepend:!0}))});var ne=vl(J,_,V);ne[ps]=M.instanceId,ne.setAttribute(Id,$),ne.setAttribute(z2,N.join("|")),Y.forEach(function(ae){vl(qg(j[ae]),"_effect-".concat(ae),V)})}}),P=Re(z,3),B=P[0],L=P[1],W=P[2];return function(q){var H;if(!w||A||!b)H=y.createElement(I9,null);else{var J;H=y.createElement("style",yt({},(J={},te(J,Id,L),te(J,Qi,W),J),{dangerouslySetInnerHTML:{__html:B}}))}return y.createElement(y.Fragment,null,H,q)}}var k9=function(e,n,r){var o=Re(e,6),l=o[0],s=o[1],u=o[2],d=o[3],f=o[4],m=o[5],p=r||{},g=p.plain;if(f)return null;var b=l,S={"data-rc-order":"prependQueue","data-rc-priority":"".concat(m)};return b=wv(l,s,u,S,g),d&&Object.keys(d).forEach(function(x){if(!n[x]){n[x]=!0;var w=qg(d[x]),O=wv(w,s,"_effect-".concat(x),S,g);x.startsWith("@layer")?b=O+b:b+=O}}),[m,u,b]},Qz="cssVar",P9=function(e,n){var r=e.key,o=e.prefix,l=e.unitless,s=e.ignore,u=e.token,d=e.scope,f=d===void 0?"":d,m=y.useContext(um),p=m.cache.instanceId,g=m.container,b=u._tokenKey,S=[].concat(ht(e.path),[r,f,b]),x=Cw(Qz,S,function(){var w=n(),O=zz(w,r,{prefix:o,unitless:l,ignore:s,scope:f}),E=Re(O,2),M=E[0],T=E[1],$=Yz(S,T);return[M,T,$,r]},function(w){var O=Re(w,3),E=O[2];I1&&Yh(E,{mark:Qi})},function(w){var O=Re(w,3),E=O[1],M=O[2];if(E){var T=vl(E,M,{mark:Qi,prepend:"queue",attachTo:g,priority:-999});T[ps]=p,T.setAttribute(Id,r)}});return x},z9=function(e,n,r){var o=Re(e,4),l=o[1],s=o[2],u=o[3],d=r||{},f=d.plain;if(!l)return null;var m=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(m)},g=wv(l,u,s,p,f);return[m,s,g]},mh;mh={},te(mh,Xz,k9),te(mh,_z,l9),te(mh,Qz,z9);var jn=function(){function t(e,n){Er(this,t),te(this,"name",void 0),te(this,"style",void 0),te(this,"_keyframe",!0),this.name=e,this.style=n}return Or(t,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),t}();function rd(t){return t.notSplit=!0,t}rd(["borderTop","borderBottom"]),rd(["borderTop"]),rd(["borderBottom"]),rd(["borderLeft","borderRight"]),rd(["borderLeft"]),rd(["borderRight"]);var Ew=y.createContext({});function Zz(t){return Nz(t)||Rz(t)||yw(t)||Az()}function Ta(t,e){for(var n=t,r=0;r<e.length;r+=1){if(n==null)return;n=n[e[r]]}return n}function Jz(t,e,n,r){if(!e.length)return n;var o=Zz(e),l=o[0],s=o.slice(1),u;return!t&&typeof l=="number"?u=[]:Array.isArray(t)?u=ht(t):u=re({},t),r&&n===void 0&&s.length===1?delete u[l][s[0]]:u[l]=Jz(u[l],s,n,r),u}function Ki(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return e.length&&r&&n===void 0&&!Ta(t,e.slice(0,-1))?t:Jz(t,e,n,r)}function _9(t){return Ht(t)==="object"&&t!==null&&Object.getPrototypeOf(t)===Object.prototype}function zA(t){return Array.isArray(t)?[]:{}}var B9=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function gd(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=zA(e[0]);return e.forEach(function(o){function l(s,u){var d=new Set(u),f=Ta(o,s),m=Array.isArray(f);if(m||_9(f)){if(!d.has(f)){d.add(f);var p=Ta(r,s);m?r=Ki(r,s,[]):(!p||Ht(p)!=="object")&&(r=Ki(r,s,zA(f))),B9(f).forEach(function(g){l([].concat(ht(s),[g]),d)})}}else r=Ki(r,s,f)}l([])}),r}function H9(){}let ts=null,Ow=H9;Ow=(t,e,n)=>{rn(t,`[antd: ${e}] ${n}`)};const e_=y.createContext({}),rr=t=>{const{strict:e}=y.useContext(e_),n=(r,o,l)=>{if(!r)if(e===!1&&o==="deprecated"){const s=ts;ts||(ts={}),ts[t]=ts[t]||[],ts[t].includes(l||"")||ts[t].push(l||""),s||console.warn("[antd] There exists deprecated usage in your code:",ts)}else Ow(r,t,l)};return n.deprecated=(r,o,l,s)=>{n(r,"deprecated",`\`${o}\` is deprecated. Please use \`${l}\` instead.${s?` ${s}`:""}`)},n},Jc=Ow,j9=y.createContext(void 0);var L9={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},V9={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},F9=re(re({},V9),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const t_={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},_A={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},F9),timePickerLocale:Object.assign({},t_)},ei="${label} is not a valid ${type}",Gc={locale:"en",Pagination:L9,DatePicker:_A,TimePicker:t_,Calendar:_A,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:ei,method:ei,array:ei,object:ei,number:ei,date:ei,boolean:ei,integer:ei,float:ei,regexp:ei,email:ei,url:ei,hex:ei},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let Gg=Object.assign({},Gc.Modal),Kg=[];const BA=()=>Kg.reduce((t,e)=>Object.assign(Object.assign({},t),e),Gc.Modal);function U9(t){if(t){const e=Object.assign({},t);return Kg.push(e),Gg=BA(),()=>{Kg=Kg.filter(n=>n!==e),Gg=BA()}}Gg=Object.assign({},Gc.Modal)}function n_(){return Gg}const Rw=y.createContext(void 0),wl=(t,e)=>{const n=y.useContext(Rw),r=y.useMemo(()=>{var l;const s=e||Gc[t],u=(l=n==null?void 0:n[t])!==null&&l!==void 0?l:{};return Object.assign(Object.assign({},typeof s=="function"?s():s),u||{})},[t,e,n]),o=y.useMemo(()=>{const l=n==null?void 0:n.locale;return n!=null&&n.exist&&!l?Gc.locale:l},[n]);return[r,o]},r_="internalMark",o_=t=>{const{locale:e={},children:n,_ANT_MARK__:r}=t;rr("LocaleProvider")(r===r_,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"),y.useEffect(()=>U9(e==null?void 0:e.Modal),[e]);const o=y.useMemo(()=>Object.assign(Object.assign({},e),{exist:!0}),[e]);return y.createElement(Rw.Provider,{value:o},n)};o_.displayName="LocaleProvider";const i_={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Qh=Object.assign(Object.assign({},i_),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
429
- 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
430
- 'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),Wr=Math.round;function SC(t,e){const n=t.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)r[o]=e(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const HA=(t,e,n)=>n===0?t:t/100;function ph(t,e){const n=e||255;return t>n?n:t<0?0:t}class zn{constructor(e){te(this,"isValid",!0),te(this,"r",0),te(this,"g",0),te(this,"b",0),te(this,"a",1),te(this,"_h",void 0),te(this,"_s",void 0),te(this,"_l",void 0),te(this,"_v",void 0),te(this,"_max",void 0),te(this,"_min",void 0),te(this,"_brightness",void 0);function n(o){return o[0]in e&&o[1]in e&&o[2]in e}if(e)if(typeof e=="string"){let l=function(s){return o.startsWith(s)};var r=l;const o=e.trim();/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):l("rgb")?this.fromRgbString(o):l("hsl")?this.fromHslString(o):(l("hsv")||l("hsb"))&&this.fromHsvString(o)}else if(e instanceof zn)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(n("rgb"))this.r=ph(e.r),this.g=ph(e.g),this.b=ph(e.b),this.a=typeof e.a=="number"?ph(e.a,1):1;else if(n("hsl"))this.fromHsl(e);else if(n("hsv"))this.fromHsv(e);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const n=this.toHsv();return n.h=e,this._c(n)}getLuminance(){function e(l){const s=l/255;return s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4)}const n=e(this.r),r=e(this.g),o=e(this.b);return .2126*n+.7152*r+.0722*o}getHue(){if(typeof this._h>"u"){const e=this.getMax()-this.getMin();e===0?this._h=0:this._h=Wr(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const e=this.getMax()-this.getMin();e===0?this._s=0:this._s=e/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(e=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()-e/100;return o<0&&(o=0),this._c({h:n,s:r,l:o,a:this.a})}lighten(e=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()+e/100;return o>1&&(o=1),this._c({h:n,s:r,l:o,a:this.a})}mix(e,n=50){const r=this._c(e),o=n/100,l=u=>(r[u]-this[u])*o+this[u],s={r:Wr(l("r")),g:Wr(l("g")),b:Wr(l("b")),a:Wr(l("a")*100)/100};return this._c(s)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const n=this._c(e),r=this.a+n.a*(1-this.a),o=l=>Wr((this[l]*this.a+n[l]*n.a*(1-this.a))/r);return this._c({r:o("r"),g:o("g"),b:o("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const n=(this.r||0).toString(16);e+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);e+=r.length===2?r:"0"+r;const o=(this.b||0).toString(16);if(e+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const l=Wr(this.a*255).toString(16);e+=l.length===2?l:"0"+l}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),n=Wr(this.getSaturation()*100),r=Wr(this.getLightness()*100);return this.a!==1?`hsla(${e},${n}%,${r}%,${this.a})`:`hsl(${e},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,n,r){const o=this.clone();return o[e]=ph(n,r),o}_c(e){return new this.constructor(e)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const n=e.replace("#","");function r(o,l){return parseInt(n[o]+n[l||o],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:e,s:n,l:r,a:o}){if(this._h=e%360,this._s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const g=Wr(r*255);this.r=g,this.g=g,this.b=g}let l=0,s=0,u=0;const d=e/60,f=(1-Math.abs(2*r-1))*n,m=f*(1-Math.abs(d%2-1));d>=0&&d<1?(l=f,s=m):d>=1&&d<2?(l=m,s=f):d>=2&&d<3?(s=f,u=m):d>=3&&d<4?(s=m,u=f):d>=4&&d<5?(l=m,u=f):d>=5&&d<6&&(l=f,u=m);const p=r-f/2;this.r=Wr((l+p)*255),this.g=Wr((s+p)*255),this.b=Wr((u+p)*255)}fromHsv({h:e,s:n,v:r,a:o}){this._h=e%360,this._s=n,this._v=r,this.a=typeof o=="number"?o:1;const l=Wr(r*255);if(this.r=l,this.g=l,this.b=l,n<=0)return;const s=e/60,u=Math.floor(s),d=s-u,f=Wr(r*(1-n)*255),m=Wr(r*(1-n*d)*255),p=Wr(r*(1-n*(1-d))*255);switch(u){case 0:this.g=p,this.b=f;break;case 1:this.r=m,this.b=f;break;case 2:this.r=f,this.b=p;break;case 3:this.r=f,this.g=m;break;case 4:this.r=p,this.g=f;break;case 5:default:this.g=f,this.b=m;break}}fromHsvString(e){const n=SC(e,HA);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(e){const n=SC(e,HA);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(e){const n=SC(e,(r,o)=>o.includes("%")?Wr(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var wg=2,jA=.16,W9=.05,q9=.05,G9=.15,a_=5,l_=4,K9=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function LA(t,e,n){var r;return Math.round(t.h)>=60&&Math.round(t.h)<=240?r=n?Math.round(t.h)-wg*e:Math.round(t.h)+wg*e:r=n?Math.round(t.h)+wg*e:Math.round(t.h)-wg*e,r<0?r+=360:r>=360&&(r-=360),r}function VA(t,e,n){if(t.h===0&&t.s===0)return t.s;var r;return n?r=t.s-jA*e:e===l_?r=t.s+jA:r=t.s+W9*e,r>1&&(r=1),n&&e===a_&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function FA(t,e,n){var r;return n?r=t.v+q9*e:r=t.v-G9*e,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Zh(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new zn(t),o=r.toHsv(),l=a_;l>0;l-=1){var s=new zn({h:LA(o,l,!0),s:VA(o,l,!0),v:FA(o,l,!0)});n.push(s)}n.push(r);for(var u=1;u<=l_;u+=1){var d=new zn({h:LA(o,u),s:VA(o,u),v:FA(o,u)});n.push(d)}return e.theme==="dark"?K9.map(function(f){var m=f.index,p=f.amount;return new zn(e.backgroundColor||"#141414").mix(n[m],p).toHexString()}):n.map(function(f){return f.toHexString()})}var CC={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},B1=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];B1.primary=B1[5];var H1=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];H1.primary=H1[5];var j1=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];j1.primary=j1[5];var L1=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];L1.primary=L1[5];var V1=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];V1.primary=V1[5];var F1=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];F1.primary=F1[5];var U1=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];U1.primary=U1[5];var W1=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];W1.primary=W1[5];var Ev=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ev.primary=Ev[5];var q1=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];q1.primary=q1[5];var G1=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];G1.primary=G1[5];var K1=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];K1.primary=K1[5];var Y1=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Y1.primary=Y1[5];var xC={red:B1,volcano:H1,orange:j1,gold:L1,yellow:V1,lime:F1,green:U1,cyan:W1,blue:Ev,geekblue:q1,purple:G1,magenta:K1,grey:Y1};function Y9(t,e){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=e;const{colorSuccess:o,colorWarning:l,colorError:s,colorInfo:u,colorPrimary:d,colorBgBase:f,colorTextBase:m}=t,p=n(d),g=n(o),b=n(l),S=n(s),x=n(u),w=r(f,m),O=t.colorLink||t.colorInfo,E=n(O),M=new zn(S[1]).mix(new zn(S[3]),50).toHexString();return Object.assign(Object.assign({},w),{colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[10],colorSuccessBg:g[1],colorSuccessBgHover:g[2],colorSuccessBorder:g[3],colorSuccessBorderHover:g[4],colorSuccessHover:g[4],colorSuccess:g[6],colorSuccessActive:g[7],colorSuccessTextHover:g[8],colorSuccessText:g[9],colorSuccessTextActive:g[10],colorErrorBg:S[1],colorErrorBgHover:S[2],colorErrorBgFilledHover:M,colorErrorBgActive:S[3],colorErrorBorder:S[3],colorErrorBorderHover:S[4],colorErrorHover:S[5],colorError:S[6],colorErrorActive:S[7],colorErrorTextHover:S[8],colorErrorText:S[9],colorErrorTextActive:S[10],colorWarningBg:b[1],colorWarningBgHover:b[2],colorWarningBorder:b[3],colorWarningBorderHover:b[4],colorWarningHover:b[4],colorWarning:b[6],colorWarningActive:b[7],colorWarningTextHover:b[8],colorWarningText:b[9],colorWarningTextActive:b[10],colorInfoBg:x[1],colorInfoBgHover:x[2],colorInfoBorder:x[3],colorInfoBorderHover:x[4],colorInfoHover:x[4],colorInfo:x[6],colorInfoActive:x[7],colorInfoTextHover:x[8],colorInfoText:x[9],colorInfoTextActive:x[10],colorLinkHover:E[4],colorLink:E[6],colorLinkActive:E[7],colorBgMask:new zn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const X9=t=>{let e=t,n=t,r=t,o=t;return t<6&&t>=5?e=t+1:t<16&&t>=6?e=t+2:t>=16&&(e=16),t<7&&t>=5?n=4:t<8&&t>=7?n=5:t<14&&t>=8?n=6:t<16&&t>=14?n=7:t>=16&&(n=8),t<6&&t>=2?r=1:t>=6&&(r=2),t>4&&t<8?o=4:t>=8&&(o=6),{borderRadius:t,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:e,borderRadiusOuter:o}};function Q9(t){const{motionUnit:e,motionBase:n,borderRadius:r,lineWidth:o}=t;return Object.assign({motionDurationFast:`${(n+e).toFixed(1)}s`,motionDurationMid:`${(n+e*2).toFixed(1)}s`,motionDurationSlow:`${(n+e*3).toFixed(1)}s`,lineWidthBold:o+1},X9(r))}const Z9=t=>{const{controlHeight:e}=t;return{controlHeightSM:e*.75,controlHeightXS:e*.5,controlHeightLG:e*1.25}};function Yg(t){return(t+8)/t}function J9(t){const e=Array.from({length:10}).map((n,r)=>{const o=r-1,l=t*Math.pow(Math.E,o/5),s=r>1?Math.floor(l):Math.ceil(l);return Math.floor(s/2)*2});return e[1]=t,e.map(n=>({size:n,lineHeight:Yg(n)}))}const eU=t=>{const e=J9(t),n=e.map(m=>m.size),r=e.map(m=>m.lineHeight),o=n[1],l=n[0],s=n[2],u=r[1],d=r[0],f=r[2];return{fontSizeSM:l,fontSize:o,fontSizeLG:s,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:u,lineHeightLG:f,lineHeightSM:d,fontHeight:Math.round(u*o),fontHeightLG:Math.round(f*s),fontHeightSM:Math.round(d*l),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function tU(t){const{sizeUnit:e,sizeStep:n}=t;return{sizeXXL:e*(n+8),sizeXL:e*(n+4),sizeLG:e*(n+2),sizeMD:e*(n+1),sizeMS:e*n,size:e*n,sizeSM:e*(n-1),sizeXS:e*(n-2),sizeXXS:e*(n-3)}}const Mi=(t,e)=>new zn(t).setA(e).toRgbString(),gh=(t,e)=>new zn(t).darken(e).toHexString(),nU=t=>{const e=Zh(t);return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[4],6:e[5],7:e[6],8:e[4],9:e[5],10:e[6]}},rU=(t,e)=>{const n=t||"#fff",r=e||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Mi(r,.88),colorTextSecondary:Mi(r,.65),colorTextTertiary:Mi(r,.45),colorTextQuaternary:Mi(r,.25),colorFill:Mi(r,.15),colorFillSecondary:Mi(r,.06),colorFillTertiary:Mi(r,.04),colorFillQuaternary:Mi(r,.02),colorBgSolid:Mi(r,1),colorBgSolidHover:Mi(r,.75),colorBgSolidActive:Mi(r,.95),colorBgLayout:gh(n,4),colorBgContainer:gh(n,0),colorBgElevated:gh(n,0),colorBgSpotlight:Mi(r,.85),colorBgBlur:"transparent",colorBorder:gh(n,15),colorBorderSecondary:gh(n,6)}};function oU(t){CC.pink=CC.magenta,xC.pink=xC.magenta;const e=Object.keys(i_).map(n=>{const r=t[n]===CC[n]?xC[n]:Zh(t[n]);return Array.from({length:10},()=>1).reduce((o,l,s)=>(o[`${n}-${s+1}`]=r[s],o[`${n}${s+1}`]=r[s],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t),e),Y9(t,{generateColorPalettes:nU,generateNeutralColorPalettes:rU})),eU(t.fontSize)),tU(t)),Z9(t)),Q9(t))}const s_=D1(oU),X1={token:Qh,override:{override:Qh},hashed:!0},c_=ee.createContext(X1),Jh="ant",sy="anticon",iU=["outlined","borderless","filled","underlined"],aU=(t,e)=>e||(t?`${Jh}-${t}`:Jh),Tn=y.createContext({getPrefixCls:aU,iconPrefixCls:sy}),{Consumer:Cae}=Tn,UA={};function di(t){const e=y.useContext(Tn),{getPrefixCls:n,direction:r,getPopupContainer:o}=e,l=e[t];return Object.assign(Object.assign({classNames:UA,styles:UA},l),{getPrefixCls:n,direction:r,getPopupContainer:o})}const lU=`-ant-${Date.now()}-${Math.random()}`;function sU(t,e){const n={},r=(s,u)=>{let d=s.clone();return d=(u==null?void 0:u(d))||d,d.toRgbString()},o=(s,u)=>{const d=new zn(s),f=Zh(d.toRgbString());n[`${u}-color`]=r(d),n[`${u}-color-disabled`]=f[1],n[`${u}-color-hover`]=f[4],n[`${u}-color-active`]=f[6],n[`${u}-color-outline`]=d.clone().setA(.2).toRgbString(),n[`${u}-color-deprecated-bg`]=f[0],n[`${u}-color-deprecated-border`]=f[2]};if(e.primaryColor){o(e.primaryColor,"primary");const s=new zn(e.primaryColor),u=Zh(s.toRgbString());u.forEach((f,m)=>{n[`primary-${m+1}`]=f}),n["primary-color-deprecated-l-35"]=r(s,f=>f.lighten(35)),n["primary-color-deprecated-l-20"]=r(s,f=>f.lighten(20)),n["primary-color-deprecated-t-20"]=r(s,f=>f.tint(20)),n["primary-color-deprecated-t-50"]=r(s,f=>f.tint(50)),n["primary-color-deprecated-f-12"]=r(s,f=>f.setA(f.a*.12));const d=new zn(u[0]);n["primary-color-active-deprecated-f-30"]=r(d,f=>f.setA(f.a*.3)),n["primary-color-active-deprecated-d-02"]=r(d,f=>f.darken(2))}return e.successColor&&o(e.successColor,"success"),e.warningColor&&o(e.warningColor,"warning"),e.errorColor&&o(e.errorColor,"error"),e.infoColor&&o(e.infoColor,"info"),`
431
- :root {
432
- ${Object.keys(n).map(s=>`--${t}-${s}: ${n[s]};`).join(`
433
- `)}
434
- }
435
- `.trim()}function cU(t,e){const n=sU(t,e);yo()?vl(n,`${lU}-dynamic-theme`):Jc(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const ea=y.createContext(!1),u_=t=>{let{children:e,disabled:n}=t;const r=y.useContext(ea);return y.createElement(ea.Provider,{value:n??r},e)},zd=y.createContext(void 0),uU=t=>{let{children:e,size:n}=t;const r=y.useContext(zd);return y.createElement(zd.Provider,{value:n||r},e)};function dU(){const t=y.useContext(ea),e=y.useContext(zd);return{componentDisabled:t,componentSize:e}}var d_=Or(function t(){Er(this,t)}),f_="CALC_UNIT",fU=new RegExp(f_,"g");function wC(t){return typeof t=="number"?"".concat(t).concat(f_):t}var hU=function(t){Sl(n,t);var e=Cl(n);function n(r,o){var l;Er(this,n),l=e.call(this),te(En(l),"result",""),te(En(l),"unitlessCssVar",void 0),te(En(l),"lowPriority",void 0);var s=Ht(r);return l.unitlessCssVar=o,r instanceof n?l.result="(".concat(r.result,")"):s==="number"?l.result=wC(r):s==="string"&&(l.result=r),l}return Or(n,[{key:"add",value:function(o){return o instanceof n?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(wC(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof n?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(wC(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var l=this,s=o||{},u=s.unit,d=!0;return typeof u=="boolean"?d=u:Array.from(this.unitlessCssVar).some(function(f){return l.result.includes(f)})&&(d=!1),this.result=this.result.replace(fU,d?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(d_),mU=function(t){Sl(n,t);var e=Cl(n);function n(r){var o;return Er(this,n),o=e.call(this),te(En(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return Or(n,[{key:"add",value:function(o){return o instanceof n?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof n?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof n?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof n?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),n}(d_),pU=function(e,n){var r=e==="css"?hU:mU;return function(o){return new r(o,n)}},WA=function(e,n){return"".concat([n,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Hn(t){var e=y.useRef();e.current=t;var n=y.useCallback(function(){for(var r,o=arguments.length,l=new Array(o),s=0;s<o;s++)l[s]=arguments[s];return(r=e.current)===null||r===void 0?void 0:r.call.apply(r,[e].concat(l))},[]);return n}function _d(t){var e=y.useRef(!1),n=y.useState(t),r=Re(n,2),o=r[0],l=r[1];y.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]);function s(u,d){d&&e.current||l(u)}return[o,s]}function EC(t){return t!==void 0}function vr(t,e){var n=e||{},r=n.defaultValue,o=n.value,l=n.onChange,s=n.postState,u=_d(function(){return EC(o)?o:EC(r)?typeof r=="function"?r():r:typeof t=="function"?t():t}),d=Re(u,2),f=d[0],m=d[1],p=o!==void 0?o:f,g=s?s(p):p,b=Hn(l),S=_d([p]),x=Re(S,2),w=x[0],O=x[1];Ih(function(){var M=w[0];f!==M&&b(f,M)},[w]),Ih(function(){EC(o)||m(o)},[o]);var E=Hn(function(M,T){m(M,T),O([p],T)});return[g,E]}function qA(t,e,n,r){var o=re({},e[t]);if(r!=null&&r.deprecatedTokens){var l=r.deprecatedTokens;l.forEach(function(u){var d=Re(u,2),f=d[0],m=d[1];if(rn(!(o!=null&&o[f]),"Component Token `".concat(String(f),"` of ").concat(String(t)," is deprecated. Please use `").concat(String(m),"` instead.")),o!=null&&o[f]||o!=null&&o[m]){var p;(p=o[m])!==null&&p!==void 0||(o[m]=o==null?void 0:o[f])}})}var s=re(re({},n),o);return Object.keys(s).forEach(function(u){s[u]===e[u]&&delete s[u]}),s}var Q1=!0;function In(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];Q1=!1;var r={};return e.forEach(function(o){if(Ht(o)==="object"){var l=Object.keys(o);l.forEach(function(s){Object.defineProperty(r,s,{configurable:!0,enumerable:!0,get:function(){return o[s]}})})}}),Q1=!0,r}var GA={};function gU(){}var vU=function(e){var n,r=e,o=gU;return typeof Proxy<"u"&&(n=new Set,r=new Proxy(e,{get:function(s,u){if(Q1){var d;(d=n)===null||d===void 0||d.add(u)}return s[u]}}),o=function(s,u){var d;GA[s]={global:Array.from(n),component:re(re({},(d=GA[s])===null||d===void 0?void 0:d.component),u)}}),{token:r,keys:n,flush:o}};function KA(t,e,n){if(typeof n=="function"){var r;return n(In(e,(r=e[t])!==null&&r!==void 0?r:{}))}return n??{}}function yU(t){return t==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"max(".concat(r.map(function(l){return Ee(l)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"min(".concat(r.map(function(l){return Ee(l)}).join(","),")")}}}var bU=1e3*60*10,SU=function(){function t(){Er(this,t),te(this,"map",new Map),te(this,"objectIDMap",new WeakMap),te(this,"nextID",0),te(this,"lastAccessBeat",new Map),te(this,"accessBeat",0)}return Or(t,[{key:"set",value:function(n,r){this.clear();var o=this.getCompositeKey(n);this.map.set(o,r),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),o=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(n){var r=this,o=n.map(function(l){return l&&Ht(l)==="object"?"obj_".concat(r.getObjectID(l)):"".concat(Ht(l),"_").concat(l)});return o.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(o,l){r-o>bU&&(n.map.delete(l),n.lastAccessBeat.delete(l))}),this.accessBeat=0}}}]),t}(),YA=new SU;function CU(t,e){return ee.useMemo(function(){var n=YA.get(e);if(n)return n;var r=t();return YA.set(e,r),r},e)}var xU=function(){return{}};function wU(t){var e=t.useCSP,n=e===void 0?xU:e,r=t.useToken,o=t.usePrefix,l=t.getResetStyles,s=t.getCommonStyle,u=t.getCompUnitless;function d(g,b,S,x){var w=Array.isArray(g)?g[0]:g;function O(z){return"".concat(String(w)).concat(z.slice(0,1).toUpperCase()).concat(z.slice(1))}var E=(x==null?void 0:x.unitless)||{},M=typeof u=="function"?u(g):{},T=re(re({},M),{},te({},O("zIndexPopup"),!0));Object.keys(E).forEach(function(z){T[O(z)]=E[z]});var $=re(re({},x),{},{unitless:T,prefixToken:O}),N=m(g,b,S,$),A=f(w,S,$);return function(z){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:z,B=N(z,P),L=Re(B,2),W=L[1],q=A(P),H=Re(q,2),J=H[0],_=H[1];return[J,W,_]}}function f(g,b,S){var x=S.unitless,w=S.injectStyle,O=w===void 0?!0:w,E=S.prefixToken,M=S.ignore,T=function(A){var z=A.rootCls,P=A.cssVar,B=P===void 0?{}:P,L=r(),W=L.realToken;return P9({path:[g],prefix:B.prefix,key:B.key,unitless:x,ignore:M,token:W,scope:z},function(){var q=KA(g,W,b),H=qA(g,W,q,{deprecatedTokens:S==null?void 0:S.deprecatedTokens});return Object.keys(q).forEach(function(J){H[E(J)]=H[J],delete H[J]}),H}),null},$=function(A){var z=r(),P=z.cssVar;return[function(B){return O&&P?ee.createElement(ee.Fragment,null,ee.createElement(T,{rootCls:A,cssVar:P,component:g}),B):B},P==null?void 0:P.key]};return $}function m(g,b,S){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},w=Array.isArray(g)?g:[g,g],O=Re(w,1),E=O[0],M=w.join("-"),T=t.layer||{name:"antd"};return function($){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,A=r(),z=A.theme,P=A.realToken,B=A.hashId,L=A.token,W=A.cssVar,q=o(),H=q.rootPrefixCls,J=q.iconPrefixCls,_=n(),j=W?"css":"js",V=CU(function(){var Q=new Set;return W&&Object.keys(x.unitless||{}).forEach(function(se){Q.add(Vg(se,W.prefix)),Q.add(Vg(se,WA(E,W.prefix)))}),pU(j,Q)},[j,E,W==null?void 0:W.prefix]),G=yU(j),K=G.max,Y=G.min,ne={theme:z,token:L,hashId:B,nonce:function(){return _.nonce},clientOnly:x.clientOnly,layer:T,order:x.order||-999};typeof l=="function"&&_1(re(re({},ne),{},{clientOnly:!1,path:["Shared",H]}),function(){return l(L,{prefix:{rootPrefixCls:H,iconPrefixCls:J},csp:_})});var ae=_1(re(re({},ne),{},{path:[M,$,J]}),function(){if(x.injectStyle===!1)return[];var Q=vU(L),se=Q.token,de=Q.flush,xe=KA(E,P,S),fe=".".concat($),Me=qA(E,P,xe,{deprecatedTokens:x.deprecatedTokens});W&&xe&&Ht(xe)==="object"&&Object.keys(xe).forEach(function(De){xe[De]="var(".concat(Vg(De,WA(E,W.prefix)),")")});var ze=In(se,{componentCls:fe,prefixCls:$,iconCls:".".concat(J),antCls:".".concat(H),calc:V,max:K,min:Y},W?xe:Me),Oe=b(ze,{hashId:B,prefixCls:$,rootPrefixCls:H,iconPrefixCls:J});de(E,Me);var he=typeof s=="function"?s(ze,$,N,x.resetFont):null;return[x.resetStyle===!1?null:he,Oe]});return[ae,B]}}function p(g,b,S){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},w=m(g,b,S,re({resetStyle:!1,order:-998},x)),O=function(M){var T=M.prefixCls,$=M.rootCls,N=$===void 0?T:$;return w(T,N),null};return O.displayName="SubStyle_".concat(String(Array.isArray(g)?g.join("."):g)),O}return{genStyleHooks:d,genSubStyleComponent:p,genComponentStyleHook:m}}const ws=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],EU="5.24.5";function OC(t){return t>=0&&t<=255}function Oh(t,e){const{r:n,g:r,b:o,a:l}=new zn(t).toRgb();if(l<1)return t;const{r:s,g:u,b:d}=new zn(e).toRgb();for(let f=.01;f<=1;f+=.01){const m=Math.round((n-s*(1-f))/f),p=Math.round((r-u*(1-f))/f),g=Math.round((o-d*(1-f))/f);if(OC(m)&&OC(p)&&OC(g))return new zn({r:m,g:p,b:g,a:Math.round(f*100)/100}).toRgbString()}return new zn({r:n,g:r,b:o,a:1}).toRgbString()}var OU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};function h_(t){const{override:e}=t,n=OU(t,["override"]),r=Object.assign({},e);Object.keys(Qh).forEach(g=>{delete r[g]});const o=Object.assign(Object.assign({},n),r),l=480,s=576,u=768,d=992,f=1200,m=1600;if(o.motion===!1){const g="0s";o.motionDurationFast=g,o.motionDurationMid=g,o.motionDurationSlow=g}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Oh(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Oh(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Oh(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Oh(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
436
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
437
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
438
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
439
- `,boxShadowSecondary:`
440
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
441
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
442
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
443
- `,boxShadowTertiary:`
444
- 0 1px 2px 0 rgba(0, 0, 0, 0.03),
445
- 0 1px 6px -1px rgba(0, 0, 0, 0.02),
446
- 0 2px 4px 0 rgba(0, 0, 0, 0.02)
447
- `,screenXS:l,screenXSMin:l,screenXSMax:s-1,screenSM:s,screenSMMin:s,screenSMMax:u-1,screenMD:u,screenMDMin:u,screenMDMax:d-1,screenLG:d,screenLGMin:d,screenLGMax:f-1,screenXL:f,screenXLMin:f,screenXLMax:m-1,screenXXL:m,screenXXLMin:m,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
448
- 0 1px 2px -2px ${new zn("rgba(0, 0, 0, 0.16)").toRgbString()},
449
- 0 3px 6px 0 ${new zn("rgba(0, 0, 0, 0.12)").toRgbString()},
450
- 0 5px 12px 4px ${new zn("rgba(0, 0, 0, 0.09)").toRgbString()}
451
- `,boxShadowDrawerRight:`
452
- -6px 0 16px 0 rgba(0, 0, 0, 0.08),
453
- -3px 0 6px -4px rgba(0, 0, 0, 0.12),
454
- -9px 0 28px 8px rgba(0, 0, 0, 0.05)
455
- `,boxShadowDrawerLeft:`
456
- 6px 0 16px 0 rgba(0, 0, 0, 0.08),
457
- 3px 0 6px -4px rgba(0, 0, 0, 0.12),
458
- 9px 0 28px 8px rgba(0, 0, 0, 0.05)
459
- `,boxShadowDrawerUp:`
460
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
461
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
462
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
463
- `,boxShadowDrawerDown:`
464
- 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
465
- 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
466
- 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
467
- `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var XA=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};const m_={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},RU={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},TU={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},p_=(t,e,n)=>{const r=n.getDerivativeToken(t),{override:o}=e,l=XA(e,["override"]);let s=Object.assign(Object.assign({},r),{override:o});return s=h_(s),l&&Object.entries(l).forEach(u=>{let[d,f]=u;const{theme:m}=f,p=XA(f,["theme"]);let g=p;m&&(g=p_(Object.assign(Object.assign({},s),p),{override:p},m)),s[d]=g}),s};function Uo(){const{token:t,hashed:e,theme:n,override:r,cssVar:o}=ee.useContext(c_),l=`${EU}-${e||""}`,s=n||s_,[u,d,f]=a9(s,[Qh,t],{salt:l,override:r,getComputedToken:p_,formatToken:h_,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:m_,ignore:RU,preserve:TU}});return[s,f,e?d:"",u,o]}const em={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},ao=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none",fontFamily:e?"inherit":t.fontFamily}},eu=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),Ov=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),MU=t=>({a:{color:t.colorLink,textDecoration:t.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${t.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:t.colorLinkHover},"&:active":{color:t.colorLinkActive},"&:active, &:hover":{textDecoration:t.linkHoverDecoration,outline:0},"&:focus":{textDecoration:t.linkFocusDecoration,outline:0},"&[disabled]":{color:t.colorTextDisabled,cursor:"not-allowed"}}}),$U=(t,e,n,r)=>{const o=`[class^="${e}"], [class*=" ${e}"]`,l=n?`.${n}`:o,s={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let u={};return r!==!1&&(u={fontFamily:t.fontFamily,fontSize:t.fontSize}),{[l]:Object.assign(Object.assign(Object.assign({},u),s),{[o]:s})}},Tw=(t,e)=>({outline:`${Ee(t.lineWidthFocus)} solid ${t.colorPrimaryBorder}`,outlineOffset:e??1,transition:"outline-offset 0s, outline 0s"}),Bd=(t,e)=>({"&:focus-visible":Object.assign({},Tw(t,e))}),g_=t=>({[`.${t}`]:Object.assign(Object.assign({},eu()),{[`.${t} .${t}-icon`]:{display:"block"}})}),{genStyleHooks:pr,genComponentStyleHook:NU,genSubStyleComponent:v_}=wU({usePrefix:()=>{const{getPrefixCls:t,iconPrefixCls:e}=y.useContext(Tn);return{rootPrefixCls:t(),iconPrefixCls:e}},useToken:()=>{const[t,e,n,r,o]=Uo();return{theme:t,realToken:e,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:t}=y.useContext(Tn);return t??{}},getResetStyles:(t,e)=>{var n;const r=MU(t);return[r,{"&":r},g_((n=e==null?void 0:e.prefix.iconPrefixCls)!==null&&n!==void 0?n:sy)]},getCommonStyle:$U,getCompUnitless:()=>m_});function AU(t,e){return ws.reduce((n,r)=>{const o=t[`${r}1`],l=t[`${r}3`],s=t[`${r}6`],u=t[`${r}7`];return Object.assign(Object.assign({},n),e(r,{lightColor:o,lightBorderColor:l,darkColor:s,textColor:u}))},{})}const DU=(t,e)=>{const[n,r]=Uo();return _1({token:r,hashId:"",path:["ant-design-icons",t],nonce:()=>e==null?void 0:e.nonce,layer:{name:"antd"}},()=>[g_(t)])},IU=Object.assign({},Vv),{useId:QA}=IU,kU=()=>"",PU=typeof QA>"u"?kU:QA;function zU(t,e,n){var r,o;const l=rr("ConfigProvider"),s=t||{},u=s.inherit===!1||!e?Object.assign(Object.assign({},X1),{hashed:(r=e==null?void 0:e.hashed)!==null&&r!==void 0?r:X1.hashed,cssVar:e==null?void 0:e.cssVar}):e,d=PU();{const f=s.cssVar||u.cssVar,m=!!(typeof s.cssVar=="object"&&(!((o=s.cssVar)===null||o===void 0)&&o.key)||d);l(!f||m,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return cm(()=>{var f,m;if(!t)return e;const p=Object.assign({},u.components);Object.keys(t.components||{}).forEach(S=>{p[S]=Object.assign(Object.assign({},p[S]),t.components[S])});const g=`css-var-${d.replace(/:/g,"")}`,b=((f=s.cssVar)!==null&&f!==void 0?f:u.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof u.cssVar=="object"?u.cssVar:{}),typeof s.cssVar=="object"?s.cssVar:{}),{key:typeof s.cssVar=="object"&&((m=s.cssVar)===null||m===void 0?void 0:m.key)||g});return Object.assign(Object.assign(Object.assign({},u),s),{token:Object.assign(Object.assign({},u.token),s.token),components:p,cssVar:b})},[s,u],(f,m)=>f.some((p,g)=>{const b=m[g];return!Dd(p,b,!0)}))}var _U=["children"],y_=y.createContext({});function BU(t){var e=t.children,n=an(t,_U);return y.createElement(y_.Provider,{value:n},e)}var HU=function(t){Sl(n,t);var e=Cl(n);function n(){return Er(this,n),e.apply(this,arguments)}return Or(n,[{key:"render",value:function(){return this.props.children}}]),n}(y.Component);function jU(t){var e=y.useReducer(function(u){return u+1},0),n=Re(e,2),r=n[1],o=y.useRef(t),l=Hn(function(){return o.current}),s=Hn(function(u){o.current=typeof u=="function"?u(o.current):u,r()});return[l,s]}var is="none",Eg="appear",Og="enter",Rg="leave",ZA="none",Yi="prepare",vd="start",yd="active",Mw="end",b_="prepared";function JA(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit".concat(t)]="webkit".concat(e),n["Moz".concat(t)]="moz".concat(e),n["ms".concat(t)]="MS".concat(e),n["O".concat(t)]="o".concat(e.toLowerCase()),n}function LU(t,e){var n={animationend:JA("Animation","AnimationEnd"),transitionend:JA("Transition","TransitionEnd")};return t&&("AnimationEvent"in e||delete n.animationend.animation,"TransitionEvent"in e||delete n.transitionend.transition),n}var VU=LU(yo(),typeof window<"u"?window:{}),S_={};if(yo()){var FU=document.createElement("div");S_=FU.style}var Tg={};function C_(t){if(Tg[t])return Tg[t];var e=VU[t];if(e)for(var n=Object.keys(e),r=n.length,o=0;o<r;o+=1){var l=n[o];if(Object.prototype.hasOwnProperty.call(e,l)&&l in S_)return Tg[t]=e[l],Tg[t]}return""}var x_=C_("animationend"),w_=C_("transitionend"),E_=!!(x_&&w_),eD=x_||"animationend",tD=w_||"transitionend";function nD(t,e){if(!t)return null;if(Ht(t)==="object"){var n=e.replace(/-\w/g,function(r){return r[1].toUpperCase()});return t[n]}return"".concat(t,"-").concat(e)}const UU=function(t){var e=y.useRef();function n(o){o&&(o.removeEventListener(tD,t),o.removeEventListener(eD,t))}function r(o){e.current&&e.current!==o&&n(e.current),o&&o!==e.current&&(o.addEventListener(tD,t),o.addEventListener(eD,t),e.current=o)}return y.useEffect(function(){return function(){n(e.current)}},[]),[r,n]};var O_=yo()?y.useLayoutEffect:y.useEffect;const WU=function(){var t=y.useRef(null);function e(){Mn.cancel(t.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;e();var l=Mn(function(){o<=1?r({isCanceled:function(){return l!==t.current}}):n(r,o-1)});t.current=l}return y.useEffect(function(){return function(){e()}},[]),[n,e]};var qU=[Yi,vd,yd,Mw],GU=[Yi,b_],R_=!1,KU=!0;function T_(t){return t===yd||t===Mw}const YU=function(t,e,n){var r=_d(ZA),o=Re(r,2),l=o[0],s=o[1],u=WU(),d=Re(u,2),f=d[0],m=d[1];function p(){s(Yi,!0)}var g=e?GU:qU;return O_(function(){if(l!==ZA&&l!==Mw){var b=g.indexOf(l),S=g[b+1],x=n(l);x===R_?s(S,!0):S&&f(function(w){function O(){w.isCanceled()||s(S,!0)}x===!0?O():Promise.resolve(x).then(O)})}},[t,l]),y.useEffect(function(){return function(){m()}},[]),[p,l]};function XU(t,e,n,r){var o=r.motionEnter,l=o===void 0?!0:o,s=r.motionAppear,u=s===void 0?!0:s,d=r.motionLeave,f=d===void 0?!0:d,m=r.motionDeadline,p=r.motionLeaveImmediately,g=r.onAppearPrepare,b=r.onEnterPrepare,S=r.onLeavePrepare,x=r.onAppearStart,w=r.onEnterStart,O=r.onLeaveStart,E=r.onAppearActive,M=r.onEnterActive,T=r.onLeaveActive,$=r.onAppearEnd,N=r.onEnterEnd,A=r.onLeaveEnd,z=r.onVisibleChanged,P=_d(),B=Re(P,2),L=B[0],W=B[1],q=jU(is),H=Re(q,2),J=H[0],_=H[1],j=_d(null),V=Re(j,2),G=V[0],K=V[1],Y=J(),ne=y.useRef(!1),ae=y.useRef(null);function Q(){return n()}var se=y.useRef(!1);function de(){_(is),K(null,!0)}var xe=Hn(function(I){var me=J();if(me!==is){var oe=Q();if(!(I&&!I.deadline&&I.target!==oe)){var ge=se.current,Ue;me===Eg&&ge?Ue=$==null?void 0:$(oe,I):me===Og&&ge?Ue=N==null?void 0:N(oe,I):me===Rg&&ge&&(Ue=A==null?void 0:A(oe,I)),ge&&Ue!==!1&&de()}}}),fe=UU(xe),Me=Re(fe,1),ze=Me[0],Oe=function(me){switch(me){case Eg:return te(te(te({},Yi,g),vd,x),yd,E);case Og:return te(te(te({},Yi,b),vd,w),yd,M);case Rg:return te(te(te({},Yi,S),vd,O),yd,T);default:return{}}},he=y.useMemo(function(){return Oe(Y)},[Y]),De=YU(Y,!t,function(I){if(I===Yi){var me=he[Yi];return me?me(Q()):R_}if($e in he){var oe;K(((oe=he[$e])===null||oe===void 0?void 0:oe.call(he,Q(),null))||null)}return $e===yd&&Y!==is&&(ze(Q()),m>0&&(clearTimeout(ae.current),ae.current=setTimeout(function(){xe({deadline:!0})},m))),$e===b_&&de(),KU}),pe=Re(De,2),we=pe[0],$e=pe[1],Pe=T_($e);se.current=Pe;var Ze=y.useRef(null);O_(function(){if(!(ne.current&&Ze.current===e)){W(e);var I=ne.current;ne.current=!0;var me;!I&&e&&u&&(me=Eg),I&&e&&l&&(me=Og),(I&&!e&&f||!I&&p&&!e&&f)&&(me=Rg);var oe=Oe(me);me&&(t||oe[Yi])?(_(me),we()):_(is),Ze.current=e}},[e]),y.useEffect(function(){(Y===Eg&&!u||Y===Og&&!l||Y===Rg&&!f)&&_(is)},[u,l,f]),y.useEffect(function(){return function(){ne.current=!1,clearTimeout(ae.current)}},[]);var We=y.useRef(!1);y.useEffect(function(){L&&(We.current=!0),L!==void 0&&Y===is&&((We.current||L)&&(z==null||z(L)),We.current=!0)},[L,Y]);var ut=G;return he[Yi]&&$e===vd&&(ut=re({transition:"none"},ut)),[Y,$e,ut,L??e]}function QU(t){var e=t;Ht(t)==="object"&&(e=t.transitionSupport);function n(o,l){return!!(o.motionName&&e&&l!==!1)}var r=y.forwardRef(function(o,l){var s=o.visible,u=s===void 0?!0:s,d=o.removeOnLeave,f=d===void 0?!0:d,m=o.forceRender,p=o.children,g=o.motionName,b=o.leavedClassName,S=o.eventProps,x=y.useContext(y_),w=x.motion,O=n(o,w),E=y.useRef(),M=y.useRef();function T(){try{return E.current instanceof HTMLElement?E.current:Lg(M.current)}catch{return null}}var $=XU(O,u,T,o),N=Re($,4),A=N[0],z=N[1],P=N[2],B=N[3],L=y.useRef(B);B&&(L.current=!0);var W=y.useCallback(function(V){E.current=V,pw(l,V)},[l]),q,H=re(re({},S),{},{visible:u});if(!p)q=null;else if(A===is)B?q=p(re({},H),W):!f&&L.current&&b?q=p(re(re({},H),{},{className:b}),W):m||!f&&!b?q=p(re(re({},H),{},{style:{display:"none"}}),W):q=null;else{var J;z===Yi?J="prepare":T_(z)?J="active":z===vd&&(J="start");var _=nD(g,"".concat(A,"-").concat(J));q=p(re(re({},H),{},{className:Se(nD(g,A),te(te({},_,_&&J),g,typeof g=="string")),style:P}),W)}if(y.isValidElement(q)&&As(q)){var j=Zc(q);j||(q=y.cloneElement(q,{ref:W}))}return y.createElement(HU,{ref:M},q)});return r.displayName="CSSMotion",r}const Pa=QU(E_);var Z1="add",J1="keep",ex="remove",RC="removed";function ZU(t){var e;return t&&Ht(t)==="object"&&"key"in t?e=t:e={key:t},re(re({},e),{},{key:String(e.key)})}function tx(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.map(ZU)}function JU(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=e.length,l=tx(t),s=tx(e);l.forEach(function(f){for(var m=!1,p=r;p<o;p+=1){var g=s[p];if(g.key===f.key){r<p&&(n=n.concat(s.slice(r,p).map(function(b){return re(re({},b),{},{status:Z1})})),r=p),n.push(re(re({},g),{},{status:J1})),r+=1,m=!0;break}}m||n.push(re(re({},f),{},{status:ex}))}),r<o&&(n=n.concat(s.slice(r).map(function(f){return re(re({},f),{},{status:Z1})})));var u={};n.forEach(function(f){var m=f.key;u[m]=(u[m]||0)+1});var d=Object.keys(u).filter(function(f){return u[f]>1});return d.forEach(function(f){n=n.filter(function(m){var p=m.key,g=m.status;return p!==f||g!==ex}),n.forEach(function(m){m.key===f&&(m.status=J1)})}),n}var eW=["component","children","onVisibleChanged","onAllRemoved"],tW=["status"],nW=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function rW(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pa,n=function(r){Sl(l,r);var o=Cl(l);function l(){var s;Er(this,l);for(var u=arguments.length,d=new Array(u),f=0;f<u;f++)d[f]=arguments[f];return s=o.call.apply(o,[this].concat(d)),te(En(s),"state",{keyEntities:[]}),te(En(s),"removeKey",function(m){s.setState(function(p){var g=p.keyEntities.map(function(b){return b.key!==m?b:re(re({},b),{},{status:RC})});return{keyEntities:g}},function(){var p=s.state.keyEntities,g=p.filter(function(b){var S=b.status;return S!==RC}).length;g===0&&s.props.onAllRemoved&&s.props.onAllRemoved()})}),s}return Or(l,[{key:"render",value:function(){var u=this,d=this.state.keyEntities,f=this.props,m=f.component,p=f.children,g=f.onVisibleChanged;f.onAllRemoved;var b=an(f,eW),S=m||y.Fragment,x={};return nW.forEach(function(w){x[w]=b[w],delete b[w]}),delete b.keys,y.createElement(S,b,d.map(function(w,O){var E=w.status,M=an(w,tW),T=E===Z1||E===J1;return y.createElement(e,yt({},x,{key:M.key,visible:T,eventProps:M,onVisibleChanged:function(N){g==null||g(N,{key:M.key}),N||u.removeKey(M.key)}}),function($,N){return p(re(re({},$),{},{index:O}),N)})}))}}],[{key:"getDerivedStateFromProps",value:function(u,d){var f=u.keys,m=d.keyEntities,p=tx(f),g=JU(m,p);return{keyEntities:g.filter(function(b){var S=m.find(function(x){var w=x.key;return b.key===w});return!(S&&S.status===RC&&b.status===ex)})}}}]),l}(y.Component);return te(n,"defaultProps",{component:"div"}),n}rW(E_);function oW(t){const{children:e}=t,[,n]=Uo(),{motion:r}=n,o=y.useRef(!1);return o.current=o.current||r===!1,o.current?y.createElement(BU,{motion:r},e):e}const M_=y.memo(t=>{let{dropdownMatchSelectWidth:e}=t;return rr("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});M_.displayName="PropWarning";const iW=M_;var aW=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};let nx=!1;const lW=t=>{Jc(!nx,t,"Static function can not consume context like dynamic theme. Please use 'App' component instead.")},sW=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Rv,$_,N_,A_;function Xg(){return Rv||Jh}function cW(){return $_||sy}function uW(t){return Object.keys(t).some(e=>e.endsWith("Color"))}const dW=t=>{const{prefixCls:e,iconPrefixCls:n,theme:r,holderRender:o}=t;e!==void 0&&(Rv=e),n!==void 0&&($_=n),"holderRender"in t&&(A_=o),r&&(uW(r)?(Jc(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),cU(Xg(),r)):N_=r)},fW=()=>({getPrefixCls:(t,e)=>e||(t?`${Xg()}-${t}`:Xg()),getIconPrefixCls:cW,getRootPrefixCls:()=>Rv||Xg(),getTheme:()=>N_,holderRender:A_}),hW=t=>{const{children:e,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:l,form:s,locale:u,componentSize:d,direction:f,space:m,splitter:p,virtual:g,dropdownMatchSelectWidth:b,popupMatchSelectWidth:S,popupOverflow:x,legacyLocale:w,parentContext:O,iconPrefixCls:E,theme:M,componentDisabled:T,segmented:$,statistic:N,spin:A,calendar:z,carousel:P,cascader:B,collapse:L,typography:W,checkbox:q,descriptions:H,divider:J,drawer:_,skeleton:j,steps:V,image:G,layout:K,list:Y,mentions:ne,modal:ae,progress:Q,result:se,slider:de,breadcrumb:xe,menu:fe,pagination:Me,input:ze,textArea:Oe,empty:he,badge:De,radio:pe,rate:we,switch:$e,transfer:Pe,avatar:Ze,message:We,tag:ut,table:I,card:me,tabs:oe,timeline:ge,timePicker:Ue,upload:Fe,notification:Te,tree:_e,colorPicker:it,datePicker:Xe,rangePicker:dt,flex:vt,wave:et,dropdown:st,warning:at,tour:Ct,tooltip:$t,popover:Ut,popconfirm:sn,floatButtonGroup:un,variant:kn,inputNumber:Rt,treeSelect:bt}=t,kt=y.useCallback((Et,D)=>{const{prefixCls:ce}=t;if(D)return D;const ke=ce||O.getPrefixCls("");return Et?`${ke}-${Et}`:ke},[O.getPrefixCls,t.prefixCls]),Dt=E||O.iconPrefixCls||sy,jt=n||O.csp;DU(Dt,jt);const wt=zU(M,O.theme,{prefixCls:kt("")});nx=nx||!!wt;const lt={csp:jt,autoInsertSpaceInButton:r,alert:o,anchor:l,locale:u||w,direction:f,space:m,splitter:p,virtual:g,popupMatchSelectWidth:S??b,popupOverflow:x,getPrefixCls:kt,iconPrefixCls:Dt,theme:wt,segmented:$,statistic:N,spin:A,calendar:z,carousel:P,cascader:B,collapse:L,typography:W,checkbox:q,descriptions:H,divider:J,drawer:_,skeleton:j,steps:V,image:G,input:ze,textArea:Oe,layout:K,list:Y,mentions:ne,modal:ae,progress:Q,result:se,slider:de,breadcrumb:xe,menu:fe,pagination:Me,empty:he,badge:De,radio:pe,rate:we,switch:$e,transfer:Pe,avatar:Ze,message:We,tag:ut,table:I,card:me,tabs:oe,timeline:ge,timePicker:Ue,upload:Fe,notification:Te,tree:_e,colorPicker:it,datePicker:Xe,rangePicker:dt,flex:vt,wave:et,dropdown:st,warning:at,tour:Ct,tooltip:$t,popover:Ut,popconfirm:sn,floatButtonGroup:un,variant:kn,inputNumber:Rt,treeSelect:bt};rr("ConfigProvider")(!("autoInsertSpaceInButton"in t),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const St=Object.assign({},O);Object.keys(lt).forEach(Et=>{lt[Et]!==void 0&&(St[Et]=lt[Et])}),sW.forEach(Et=>{const D=t[Et];D&&(St[Et]=D)}),typeof r<"u"&&(St.button=Object.assign({autoInsertSpace:r},St.button));const Kt=cm(()=>St,St,(Et,D)=>{const ce=Object.keys(Et),ke=Object.keys(D);return ce.length!==ke.length||ce.some(Qe=>Et[Qe]!==D[Qe])}),{layer:tn}=y.useContext(um),Tt=y.useMemo(()=>({prefixCls:Dt,csp:jt,layer:tn?"antd":void 0}),[Dt,jt,tn]);let gt=y.createElement(y.Fragment,null,y.createElement(iW,{dropdownMatchSelectWidth:b}),e);const Nt=y.useMemo(()=>{var Et,D,ce,ke;return gd(((Et=Gc.Form)===null||Et===void 0?void 0:Et.defaultValidateMessages)||{},((ce=(D=Kt.locale)===null||D===void 0?void 0:D.Form)===null||ce===void 0?void 0:ce.defaultValidateMessages)||{},((ke=Kt.form)===null||ke===void 0?void 0:ke.validateMessages)||{},(s==null?void 0:s.validateMessages)||{})},[Kt,s==null?void 0:s.validateMessages]);Object.keys(Nt).length>0&&(gt=y.createElement(j9.Provider,{value:Nt},gt)),u&&(gt=y.createElement(o_,{locale:u,_ANT_MARK__:r_},gt)),gt=y.createElement(Ew.Provider,{value:Tt},gt),d&&(gt=y.createElement(uU,{size:d},gt)),gt=y.createElement(oW,null,gt);const zt=y.useMemo(()=>{const Et=wt||{},{algorithm:D,token:ce,components:ke,cssVar:Qe}=Et,ot=aW(Et,["algorithm","token","components","cssVar"]),mt=D&&(!Array.isArray(D)||D.length>0)?D1(D):s_,rt={};Object.entries(ke||{}).forEach(Yt=>{let[Xt,cn]=Yt;const ct=Object.assign({},cn);"algorithm"in ct&&(ct.algorithm===!0?ct.theme=mt:(Array.isArray(ct.algorithm)||typeof ct.algorithm=="function")&&(ct.theme=D1(ct.algorithm)),delete ct.algorithm),rt[Xt]=ct});const Wt=Object.assign(Object.assign({},Qh),ce);return Object.assign(Object.assign({},ot),{theme:mt,token:Wt,components:rt,override:Object.assign({override:Wt},rt),cssVar:Qe})},[wt]);return M&&(gt=y.createElement(c_.Provider,{value:zt},gt)),Kt.warning&&(gt=y.createElement(e_.Provider,{value:Kt.warning},gt)),T!==void 0&&(gt=y.createElement(u_,{disabled:T},gt)),y.createElement(Tn.Provider,{value:Kt},gt)},za=t=>{const e=y.useContext(Tn),n=y.useContext(Rw);return y.createElement(hW,Object.assign({parentContext:e,legacyLocale:n},t))};za.ConfigContext=Tn;za.SizeContext=zd;za.config=dW;za.useConfig=dU;Object.defineProperty(za,"SizeContext",{get:()=>(Jc(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),zd)});za.displayName="ConfigProvider";var mW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function D_(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}function pW(t){return D_(t)instanceof ShadowRoot}function Tv(t){return pW(t)?D_(t):null}function gW(t){return t.replace(/-(.)/g,function(e,n){return n.toUpperCase()})}function vW(t,e){rn(t,"[@ant-design/icons] ".concat(e))}function rD(t){return Ht(t)==="object"&&typeof t.name=="string"&&typeof t.theme=="string"&&(Ht(t.icon)==="object"||typeof t.icon=="function")}function oD(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(t).reduce(function(e,n){var r=t[n];switch(n){case"class":e.className=r,delete e.class;break;default:delete e[n],e[gW(n)]=r}return e},{})}function rx(t,e,n){return n?ee.createElement(t.tag,re(re({key:e},oD(t.attrs)),n),(t.children||[]).map(function(r,o){return rx(r,"".concat(e,"-").concat(t.tag,"-").concat(o))})):ee.createElement(t.tag,re({key:e},oD(t.attrs)),(t.children||[]).map(function(r,o){return rx(r,"".concat(e,"-").concat(t.tag,"-").concat(o))}))}function I_(t){return Zh(t)[0]}function k_(t){return t?Array.isArray(t)?t:[t]:[]}var yW=`
468
- .anticon {
469
- display: inline-flex;
470
- align-items: center;
471
- color: inherit;
472
- font-style: normal;
473
- line-height: 0;
474
- text-align: center;
475
- text-transform: none;
476
- vertical-align: -0.125em;
477
- text-rendering: optimizeLegibility;
478
- -webkit-font-smoothing: antialiased;
479
- -moz-osx-font-smoothing: grayscale;
480
- }
481
-
482
- .anticon > * {
483
- line-height: 1;
484
- }
485
-
486
- .anticon svg {
487
- display: inline-block;
488
- }
489
-
490
- .anticon::before {
491
- display: none;
492
- }
493
-
494
- .anticon .anticon-icon {
495
- display: block;
496
- }
497
-
498
- .anticon[tabindex] {
499
- cursor: pointer;
500
- }
501
-
502
- .anticon-spin::before,
503
- .anticon-spin {
504
- display: inline-block;
505
- -webkit-animation: loadingCircle 1s infinite linear;
506
- animation: loadingCircle 1s infinite linear;
507
- }
508
-
509
- @-webkit-keyframes loadingCircle {
510
- 100% {
511
- -webkit-transform: rotate(360deg);
512
- transform: rotate(360deg);
513
- }
514
- }
515
-
516
- @keyframes loadingCircle {
517
- 100% {
518
- -webkit-transform: rotate(360deg);
519
- transform: rotate(360deg);
520
- }
521
- }
522
- `,bW=function(e){var n=y.useContext(Ew),r=n.csp,o=n.prefixCls,l=n.layer,s=yW;o&&(s=s.replace(/anticon/g,o)),l&&(s="@layer ".concat(l,` {
523
- `).concat(s,`
524
- }`)),y.useEffect(function(){var u=e.current,d=Tv(u);vl(s,"@ant-design-icons",{prepend:!l,csp:r,attachTo:d})},[])},SW=["icon","className","onClick","style","primaryColor","secondaryColor"],kh={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function CW(t){var e=t.primaryColor,n=t.secondaryColor;kh.primaryColor=e,kh.secondaryColor=n||I_(e),kh.calculated=!!n}function xW(){return re({},kh)}var Fd=function(e){var n=e.icon,r=e.className,o=e.onClick,l=e.style,s=e.primaryColor,u=e.secondaryColor,d=an(e,SW),f=y.useRef(),m=kh;if(s&&(m={primaryColor:s,secondaryColor:u||I_(s)}),bW(f),vW(rD(n),"icon should be icon definiton, but got ".concat(n)),!rD(n))return null;var p=n;return p&&typeof p.icon=="function"&&(p=re(re({},p),{},{icon:p.icon(m.primaryColor,m.secondaryColor)})),rx(p.icon,"svg-".concat(p.name),re(re({className:r,onClick:o,style:l,"data-icon":p.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d),{},{ref:f}))};Fd.displayName="IconReact";Fd.getTwoToneColors=xW;Fd.setTwoToneColors=CW;function P_(t){var e=k_(t),n=Re(e,2),r=n[0],o=n[1];return Fd.setTwoToneColors({primaryColor:r,secondaryColor:o})}function wW(){var t=Fd.getTwoToneColors();return t.calculated?[t.primaryColor,t.secondaryColor]:t.primaryColor}var EW=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];P_(Ev.primary);var Lr=y.forwardRef(function(t,e){var n=t.className,r=t.icon,o=t.spin,l=t.rotate,s=t.tabIndex,u=t.onClick,d=t.twoToneColor,f=an(t,EW),m=y.useContext(Ew),p=m.prefixCls,g=p===void 0?"anticon":p,b=m.rootClassName,S=Se(b,g,te(te({},"".concat(g,"-").concat(r.name),!!r.name),"".concat(g,"-spin"),!!o||r.name==="loading"),n),x=s;x===void 0&&u&&(x=-1);var w=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,O=k_(d),E=Re(O,2),M=E[0],T=E[1];return y.createElement("span",yt({role:"img","aria-label":r.name},f,{ref:e,tabIndex:x,onClick:u,className:S}),y.createElement(Fd,{icon:r,primaryColor:M,secondaryColor:T,style:w}))});Lr.displayName="AntdIcon";Lr.getTwoToneColor=wW;Lr.setTwoToneColor=P_;var OW=function(e,n){return y.createElement(Lr,yt({},e,{ref:n,icon:mW}))},z_=y.forwardRef(OW);z_.displayName="CheckCircleFilled";var RW={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},TW=function(e,n){return y.createElement(Lr,yt({},e,{ref:n,icon:RW}))},cy=y.forwardRef(TW);cy.displayName="CloseCircleFilled";var MW={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},$W=function(e,n){return y.createElement(Lr,yt({},e,{ref:n,icon:MW}))},dm=y.forwardRef($W);dm.displayName="CloseOutlined";var NW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},AW=function(e,n){return y.createElement(Lr,yt({},e,{ref:n,icon:NW}))},__=y.forwardRef(AW);__.displayName="ExclamationCircleFilled";var DW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},IW=function(e,n){return y.createElement(Lr,yt({},e,{ref:n,icon:DW}))},B_=y.forwardRef(IW);B_.displayName="InfoCircleFilled";var kW=`accept acceptCharset accessKey action allowFullScreen allowTransparency
525
- alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
526
- charSet checked classID className colSpan cols content contentEditable contextMenu
527
- controls coords crossOrigin data dateTime default defer dir disabled download draggable
528
- encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
529
- headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
530
- is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
531
- mediaGroup method min minLength multiple muted name noValidate nonce open
532
- optimum pattern placeholder poster preload radioGroup readOnly rel required
533
- reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
534
- shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
535
- summary tabIndex target title type useMap value width wmode wrap`,PW=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
536
- onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
537
- onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
538
- onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
539
- onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
540
- onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
541
- onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,zW="".concat(kW," ").concat(PW).split(/[\s\n]+/),_W="aria-",BW="data-";function iD(t,e){return t.indexOf(e)===0}function Da(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;e===!1?n={aria:!0,data:!0,attr:!0}:e===!0?n={aria:!0}:n=re({},e);var r={};return Object.keys(t).forEach(function(o){(n.aria&&(o==="role"||iD(o,_W))||n.data&&iD(o,BW)||n.attr&&zW.includes(o))&&(r[o]=t[o])}),r}function H_(t){return t&&ee.isValidElement(t)&&t.type===ee.Fragment}const HW=(t,e,n)=>ee.isValidElement(t)?ee.cloneElement(t,typeof n=="function"?n(t.props||{}):n):e;function Pi(t,e){return HW(t,t,e)}const El=t=>{const[,,,,e]=Uo();return e?`${t}-css-var`:""};var It={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},jW={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},LW=function(e,n){return y.createElement(Lr,yt({},e,{ref:n,icon:jW}))},$w=y.forwardRef(LW);$w.displayName="LoadingOutlined";const fm=ee.createContext(void 0);fm.displayName="zIndexContext";const fl=100,VW=10,j_=fl*VW,FW=j_+fl,L_={Modal:fl,Drawer:fl,Popover:fl,Popconfirm:fl,Tooltip:fl,Tour:fl,FloatButton:fl},UW={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function WW(t){return t in L_}const hm=(t,e)=>{const[,n]=Uo(),r=ee.useContext(fm),o=WW(t);let l;if(e!==void 0)l=[e,e];else{let s=r??0;o?s+=(r?0:n.zIndexPopupBase)+L_[t]:s+=UW[t],l=[r===void 0?e:s,s]}{const s=rr(t),u=n.zIndexPopupBase+FW,d=l[0]||0;s(e!==void 0||d<=u,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return l};function qW(){const[t,e]=y.useState([]),n=y.useCallback(r=>(e(o=>[].concat(ht(o),[r])),()=>{e(o=>o.filter(l=>l!==r))}),[]);return[t,n]}function ko(){ko=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(_,j,V){_[j]=V.value},l=typeof Symbol=="function"?Symbol:{},s=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function f(_,j,V){return Object.defineProperty(_,j,{value:V,enumerable:!0,configurable:!0,writable:!0}),_[j]}try{f({},"")}catch{f=function(V,G,K){return V[G]=K}}function m(_,j,V,G){var K=j&&j.prototype instanceof O?j:O,Y=Object.create(K.prototype),ne=new H(G||[]);return o(Y,"_invoke",{value:B(_,V,ne)}),Y}function p(_,j,V){try{return{type:"normal",arg:_.call(j,V)}}catch(G){return{type:"throw",arg:G}}}e.wrap=m;var g="suspendedStart",b="suspendedYield",S="executing",x="completed",w={};function O(){}function E(){}function M(){}var T={};f(T,s,function(){return this});var $=Object.getPrototypeOf,N=$&&$($(J([])));N&&N!==n&&r.call(N,s)&&(T=N);var A=M.prototype=O.prototype=Object.create(T);function z(_){["next","throw","return"].forEach(function(j){f(_,j,function(V){return this._invoke(j,V)})})}function P(_,j){function V(K,Y,ne,ae){var Q=p(_[K],_,Y);if(Q.type!=="throw"){var se=Q.arg,de=se.value;return de&&Ht(de)=="object"&&r.call(de,"__await")?j.resolve(de.__await).then(function(xe){V("next",xe,ne,ae)},function(xe){V("throw",xe,ne,ae)}):j.resolve(de).then(function(xe){se.value=xe,ne(se)},function(xe){return V("throw",xe,ne,ae)})}ae(Q.arg)}var G;o(this,"_invoke",{value:function(Y,ne){function ae(){return new j(function(Q,se){V(Y,ne,Q,se)})}return G=G?G.then(ae,ae):ae()}})}function B(_,j,V){var G=g;return function(K,Y){if(G===S)throw Error("Generator is already running");if(G===x){if(K==="throw")throw Y;return{value:t,done:!0}}for(V.method=K,V.arg=Y;;){var ne=V.delegate;if(ne){var ae=L(ne,V);if(ae){if(ae===w)continue;return ae}}if(V.method==="next")V.sent=V._sent=V.arg;else if(V.method==="throw"){if(G===g)throw G=x,V.arg;V.dispatchException(V.arg)}else V.method==="return"&&V.abrupt("return",V.arg);G=S;var Q=p(_,j,V);if(Q.type==="normal"){if(G=V.done?x:b,Q.arg===w)continue;return{value:Q.arg,done:V.done}}Q.type==="throw"&&(G=x,V.method="throw",V.arg=Q.arg)}}}function L(_,j){var V=j.method,G=_.iterator[V];if(G===t)return j.delegate=null,V==="throw"&&_.iterator.return&&(j.method="return",j.arg=t,L(_,j),j.method==="throw")||V!=="return"&&(j.method="throw",j.arg=new TypeError("The iterator does not provide a '"+V+"' method")),w;var K=p(G,_.iterator,j.arg);if(K.type==="throw")return j.method="throw",j.arg=K.arg,j.delegate=null,w;var Y=K.arg;return Y?Y.done?(j[_.resultName]=Y.value,j.next=_.nextLoc,j.method!=="return"&&(j.method="next",j.arg=t),j.delegate=null,w):Y:(j.method="throw",j.arg=new TypeError("iterator result is not an object"),j.delegate=null,w)}function W(_){var j={tryLoc:_[0]};1 in _&&(j.catchLoc=_[1]),2 in _&&(j.finallyLoc=_[2],j.afterLoc=_[3]),this.tryEntries.push(j)}function q(_){var j=_.completion||{};j.type="normal",delete j.arg,_.completion=j}function H(_){this.tryEntries=[{tryLoc:"root"}],_.forEach(W,this),this.reset(!0)}function J(_){if(_||_===""){var j=_[s];if(j)return j.call(_);if(typeof _.next=="function")return _;if(!isNaN(_.length)){var V=-1,G=function K(){for(;++V<_.length;)if(r.call(_,V))return K.value=_[V],K.done=!1,K;return K.value=t,K.done=!0,K};return G.next=G}}throw new TypeError(Ht(_)+" is not iterable")}return E.prototype=M,o(A,"constructor",{value:M,configurable:!0}),o(M,"constructor",{value:E,configurable:!0}),E.displayName=f(M,d,"GeneratorFunction"),e.isGeneratorFunction=function(_){var j=typeof _=="function"&&_.constructor;return!!j&&(j===E||(j.displayName||j.name)==="GeneratorFunction")},e.mark=function(_){return Object.setPrototypeOf?Object.setPrototypeOf(_,M):(_.__proto__=M,f(_,d,"GeneratorFunction")),_.prototype=Object.create(A),_},e.awrap=function(_){return{__await:_}},z(P.prototype),f(P.prototype,u,function(){return this}),e.AsyncIterator=P,e.async=function(_,j,V,G,K){K===void 0&&(K=Promise);var Y=new P(m(_,j,V,G),K);return e.isGeneratorFunction(j)?Y:Y.next().then(function(ne){return ne.done?ne.value:Y.next()})},z(A),f(A,d,"Generator"),f(A,s,function(){return this}),f(A,"toString",function(){return"[object Generator]"}),e.keys=function(_){var j=Object(_),V=[];for(var G in j)V.push(G);return V.reverse(),function K(){for(;V.length;){var Y=V.pop();if(Y in j)return K.value=Y,K.done=!1,K}return K.done=!0,K}},e.values=J,H.prototype={constructor:H,reset:function(j){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(q),!j)for(var V in this)V.charAt(0)==="t"&&r.call(this,V)&&!isNaN(+V.slice(1))&&(this[V]=t)},stop:function(){this.done=!0;var j=this.tryEntries[0].completion;if(j.type==="throw")throw j.arg;return this.rval},dispatchException:function(j){if(this.done)throw j;var V=this;function G(se,de){return ne.type="throw",ne.arg=j,V.next=se,de&&(V.method="next",V.arg=t),!!de}for(var K=this.tryEntries.length-1;K>=0;--K){var Y=this.tryEntries[K],ne=Y.completion;if(Y.tryLoc==="root")return G("end");if(Y.tryLoc<=this.prev){var ae=r.call(Y,"catchLoc"),Q=r.call(Y,"finallyLoc");if(ae&&Q){if(this.prev<Y.catchLoc)return G(Y.catchLoc,!0);if(this.prev<Y.finallyLoc)return G(Y.finallyLoc)}else if(ae){if(this.prev<Y.catchLoc)return G(Y.catchLoc,!0)}else{if(!Q)throw Error("try statement without catch or finally");if(this.prev<Y.finallyLoc)return G(Y.finallyLoc)}}}},abrupt:function(j,V){for(var G=this.tryEntries.length-1;G>=0;--G){var K=this.tryEntries[G];if(K.tryLoc<=this.prev&&r.call(K,"finallyLoc")&&this.prev<K.finallyLoc){var Y=K;break}}Y&&(j==="break"||j==="continue")&&Y.tryLoc<=V&&V<=Y.finallyLoc&&(Y=null);var ne=Y?Y.completion:{};return ne.type=j,ne.arg=V,Y?(this.method="next",this.next=Y.finallyLoc,w):this.complete(ne)},complete:function(j,V){if(j.type==="throw")throw j.arg;return j.type==="break"||j.type==="continue"?this.next=j.arg:j.type==="return"?(this.rval=this.arg=j.arg,this.method="return",this.next="end"):j.type==="normal"&&V&&(this.next=V),w},finish:function(j){for(var V=this.tryEntries.length-1;V>=0;--V){var G=this.tryEntries[V];if(G.finallyLoc===j)return this.complete(G.completion,G.afterLoc),q(G),w}},catch:function(j){for(var V=this.tryEntries.length-1;V>=0;--V){var G=this.tryEntries[V];if(G.tryLoc===j){var K=G.completion;if(K.type==="throw"){var Y=K.arg;q(G)}return Y}}throw Error("illegal catch attempt")},delegateYield:function(j,V,G){return this.delegate={iterator:J(j),resultName:V,nextLoc:G},this.method==="next"&&(this.arg=t),w}},e}function aD(t,e,n,r,o,l,s){try{var u=t[l](s),d=u.value}catch(f){return void n(f)}u.done?e(d):Promise.resolve(d).then(r,o)}function tu(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var l=t.apply(e,n);function s(d){aD(l,r,o,s,u,"next",d)}function u(d){aD(l,r,o,s,u,"throw",d)}s(void 0)})}}var mm=re({},cz),GW=mm.version,TC=mm.render,KW=mm.unmountComponentAtNode,uy;try{var YW=Number((GW||"").split(".")[0]);YW>=18&&(uy=mm.createRoot)}catch{}function lD(t){var e=mm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;e&&Ht(e)==="object"&&(e.usingClientEntryPoint=t)}var Mv="__rc_react_root__";function XW(t,e){lD(!0);var n=e[Mv]||uy(e);lD(!1),n.render(t),e[Mv]=n}function QW(t,e){TC==null||TC(t,e)}function ZW(t,e){if(uy){XW(t,e);return}QW(t,e)}function JW(t){return ox.apply(this,arguments)}function ox(){return ox=tu(ko().mark(function t(e){return ko().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=e[Mv])===null||o===void 0||o.unmount(),delete e[Mv]}));case 1:case"end":return r.stop()}},t)})),ox.apply(this,arguments)}function eq(t){KW(t)}function tq(t){return ix.apply(this,arguments)}function ix(){return ix=tu(ko().mark(function t(e){return ko().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(uy===void 0){r.next=2;break}return r.abrupt("return",JW(e));case 2:eq(e);case 3:case"end":return r.stop()}},t)})),ix.apply(this,arguments)}const nq=(t,e)=>{{const n=parseInt(y.version.split(".")[0],10),r=Object.keys(cz);Jc(n<19||r.includes("createRoot"),"compatible","antd v5 support React is 16 ~ 18. see https://u.ant.design/v5-for-19 for compatible.")}return ZW(t,e),()=>tq(e)};let rq=nq;function V_(){return rq}const MC=()=>({height:0,opacity:0}),sD=t=>{const{scrollHeight:e}=t;return{height:e,opacity:1}},oq=t=>({height:t?t.offsetHeight:0}),$C=(t,e)=>(e==null?void 0:e.deadline)===!0||e.propertyName==="height",F_=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jh}-motion-collapse`,onAppearStart:MC,onEnterStart:MC,onAppearActive:sD,onEnterActive:sD,onLeaveStart:oq,onLeaveActive:MC,onAppearEnd:$C,onEnterEnd:$C,onLeaveEnd:$C,motionDeadline:500}},Kc=(t,e,n)=>n!==void 0?n:`${t}-${e}`;function Hr(t,e){var n=Object.assign({},t);return Array.isArray(e)&&e.forEach(function(r){delete n[r]}),n}const Nw=function(t){if(!t)return!1;if(t instanceof Element){if(t.offsetParent)return!0;if(t.getBBox){var e=t.getBBox(),n=e.width,r=e.height;if(n||r)return!0}if(t.getBoundingClientRect){var o=t.getBoundingClientRect(),l=o.width,s=o.height;if(l||s)return!0}}return!1},iq=t=>{const{componentCls:e,colorPrimary:n}=t;return{[e]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${t.motionEaseOutCirc}`,`opacity 2s ${t.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${t.motionDurationSlow} ${t.motionEaseInOut}`,`opacity ${t.motionDurationSlow} ${t.motionEaseInOut}`].join(",")}}}}},aq=NU("Wave",t=>[iq(t)]),U_=`${Jh}-wave-target`;function NC(t){return t&&t!=="#fff"&&t!=="#ffffff"&&t!=="rgb(255, 255, 255)"&&t!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(t)&&t!=="transparent"}function lq(t){const{borderTopColor:e,borderColor:n,backgroundColor:r}=getComputedStyle(t);return NC(e)?e:NC(n)?n:NC(r)?r:null}function AC(t){return Number.isNaN(t)?0:t}const sq=t=>{const{className:e,target:n,component:r,registerUnmount:o}=t,l=y.useRef(null),s=y.useRef(null);y.useEffect(()=>{s.current=o()},[]);const[u,d]=y.useState(null),[f,m]=y.useState([]),[p,g]=y.useState(0),[b,S]=y.useState(0),[x,w]=y.useState(0),[O,E]=y.useState(0),[M,T]=y.useState(!1),$={left:p,top:b,width:x,height:O,borderRadius:f.map(z=>`${z}px`).join(" ")};u&&($["--wave-color"]=u);function N(){const z=getComputedStyle(n);d(lq(n));const P=z.position==="static",{borderLeftWidth:B,borderTopWidth:L}=z;g(P?n.offsetLeft:AC(-parseFloat(B))),S(P?n.offsetTop:AC(-parseFloat(L))),w(n.offsetWidth),E(n.offsetHeight);const{borderTopLeftRadius:W,borderTopRightRadius:q,borderBottomLeftRadius:H,borderBottomRightRadius:J}=z;m([W,q,J,H].map(_=>AC(parseFloat(_))))}if(y.useEffect(()=>{if(n){const z=Mn(()=>{N(),T(!0)});let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(N),P.observe(n)),()=>{Mn.cancel(z),P==null||P.disconnect()}}},[]),!M)return null;const A=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(U_));return y.createElement(Pa,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(z,P)=>{var B,L;if(P.deadline||P.propertyName==="opacity"){const W=(B=l.current)===null||B===void 0?void 0:B.parentElement;(L=s.current)===null||L===void 0||L.call(s).then(()=>{W==null||W.remove()})}return!1}},(z,P)=>{let{className:B}=z;return y.createElement("div",{ref:Fo(l,P),className:Se(e,B,{"wave-quick":A}),style:$})})},cq=(t,e)=>{var n;const{component:r}=e;if(r==="Checkbox"&&!(!((n=t.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",t==null||t.insertBefore(o,t==null?void 0:t.firstChild);const l=V_();let s=null;function u(){return s}s=l(y.createElement(sq,Object.assign({},e,{target:t,registerUnmount:u})),o)},uq=(t,e,n)=>{const{wave:r}=y.useContext(Tn),[,o,l]=Uo(),s=Hn(f=>{const m=t.current;if(r!=null&&r.disabled||!m)return;const p=m.querySelector(`.${U_}`)||m,{showEffect:g}=r||{};(g||cq)(p,{className:e,token:o,component:n,event:f,hashId:l})}),u=y.useRef(null);return f=>{Mn.cancel(u.current),u.current=Mn(()=>{s(f)})}},W_=t=>{const{children:e,disabled:n,component:r}=t,{getPrefixCls:o}=y.useContext(Tn),l=y.useRef(null),s=o("wave"),[,u]=aq(s),d=uq(l,Se(s,u),r);if(ee.useEffect(()=>{const m=l.current;if(!m||m.nodeType!==1||n)return;const p=g=>{!Nw(g.target)||!m.getAttribute||m.getAttribute("disabled")||m.disabled||m.className.includes("disabled")||m.className.includes("-leave")||d(g)};return m.addEventListener("click",p,!0),()=>{m.removeEventListener("click",p,!0)}},[n]),!ee.isValidElement(e))return e??null;const f=As(e)?Fo(Zc(e),l):l;return Pi(e,{ref:f})};W_.displayName="Wave";const ra=t=>{const e=ee.useContext(zd);return ee.useMemo(()=>t?typeof t=="string"?t??e:typeof t=="function"?t(e):e:e,[t,e])},dq=t=>{const{componentCls:e}=t;return{[e]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},fq=t=>{const{componentCls:e,antCls:n}=t;return{[e]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${e}-item:empty`]:{display:"none"},[`${e}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},hq=t=>{const{componentCls:e}=t;return{[e]:{"&-gap-row-small":{rowGap:t.spaceGapSmallSize},"&-gap-row-middle":{rowGap:t.spaceGapMiddleSize},"&-gap-row-large":{rowGap:t.spaceGapLargeSize},"&-gap-col-small":{columnGap:t.spaceGapSmallSize},"&-gap-col-middle":{columnGap:t.spaceGapMiddleSize},"&-gap-col-large":{columnGap:t.spaceGapLargeSize}}}},q_=pr("Space",t=>{const e=In(t,{spaceGapSmallSize:t.paddingXS,spaceGapMiddleSize:t.padding,spaceGapLargeSize:t.paddingLG});return[fq(e),hq(e),dq(e)]},()=>({}),{resetStyle:!1});var G_=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};const dy=y.createContext(null),Ds=(t,e)=>{const n=y.useContext(dy),r=y.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:l,isLastItem:s}=n,u=o==="vertical"?"-vertical-":"-";return Se(`${t}-compact${u}item`,{[`${t}-compact${u}first-item`]:l,[`${t}-compact${u}last-item`]:s,[`${t}-compact${u}item-rtl`]:e==="rtl"})},[t,e,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},mq=t=>{const{children:e}=t;return y.createElement(dy.Provider,{value:null},e)},pq=t=>{const{children:e}=t,n=G_(t,["children"]);return y.createElement(dy.Provider,{value:y.useMemo(()=>n,[n])},e)},gq=t=>{const{getPrefixCls:e,direction:n}=y.useContext(Tn),{size:r,direction:o,block:l,prefixCls:s,className:u,rootClassName:d,children:f}=t,m=G_(t,["size","direction","block","prefixCls","className","rootClassName","children"]),p=ra(M=>r??M),g=e("space-compact",s),[b,S]=q_(g),x=Se(g,S,{[`${g}-rtl`]:n==="rtl",[`${g}-block`]:l,[`${g}-vertical`]:o==="vertical"},u,d),w=y.useContext(dy),O=ci(f),E=y.useMemo(()=>O.map((M,T)=>{const $=(M==null?void 0:M.key)||`${g}-item-${T}`;return y.createElement(pq,{key:$,compactSize:p,compactDirection:o,isFirstItem:T===0&&(!w||(w==null?void 0:w.isFirstItem)),isLastItem:T===O.length-1&&(!w||(w==null?void 0:w.isLastItem))},M)}),[r,O,w]);return O.length===0?null:b(y.createElement("div",Object.assign({className:x},m),E))};var vq=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};const K_=y.createContext(void 0),yq=t=>{const{getPrefixCls:e,direction:n}=y.useContext(Tn),{prefixCls:r,size:o,className:l}=t,s=vq(t,["prefixCls","size","className"]),u=e("btn-group",r),[,,d]=Uo(),f=y.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]);{const p=rr("Button.Group");p.deprecated(!1,"Button.Group","Space.Compact"),p(!o||["large","small","middle"].includes(o),"usage","Invalid prop `size`.")}const m=Se(u,{[`${u}-${f}`]:f,[`${u}-rtl`]:n==="rtl"},l,d);return y.createElement(K_.Provider,{value:o},y.createElement("div",Object.assign({},s,{className:m})))},cD=/^[\u4E00-\u9FA5]{2}$/,ax=cD.test.bind(cD);function Y_(t){return t==="danger"?{danger:!0}:{type:t}}function uD(t){return typeof t=="string"}function Mg(t){return t==="text"||t==="link"}function bq(t,e){if(t==null)return;const n=e?" ":"";return typeof t!="string"&&typeof t!="number"&&uD(t.type)&&ax(t.props.children)?Pi(t,{children:t.props.children.split("").join(n)}):uD(t)?ax(t)?ee.createElement("span",null,t.split("").join(n)):ee.createElement("span",null,t):H_(t)?ee.createElement("span",null,t):t}function Sq(t,e){let n=!1;const r=[];return ee.Children.forEach(t,o=>{const l=typeof o,s=l==="string"||l==="number";if(n&&s){const u=r.length-1,d=r[u];r[u]=`${d}${o}`}else r.push(o);n=s}),ee.Children.map(r,o=>bq(o,e))}["default","primary","danger"].concat(ht(ws));const lx=y.forwardRef((t,e)=>{const{className:n,style:r,children:o,prefixCls:l}=t,s=Se(`${l}-icon`,n);return ee.createElement("span",{ref:e,className:s,style:r},o)}),dD=y.forwardRef((t,e)=>{const{prefixCls:n,className:r,style:o,iconClassName:l}=t,s=Se(`${n}-loading-icon`,r);return ee.createElement(lx,{prefixCls:n,className:s,style:o,ref:e},ee.createElement($w,{className:l}))}),DC=()=>({width:0,opacity:0,transform:"scale(0)"}),IC=t=>({width:t.scrollWidth,opacity:1,transform:"scale(1)"}),Cq=t=>{const{prefixCls:e,loading:n,existIcon:r,className:o,style:l,mount:s}=t,u=!!n;return r?ee.createElement(dD,{prefixCls:e,className:o,style:l}):ee.createElement(Pa,{visible:u,motionName:`${e}-loading-icon-motion`,motionAppear:!s,motionEnter:!s,motionLeave:!s,removeOnLeave:!0,onAppearStart:DC,onAppearActive:IC,onEnterStart:DC,onEnterActive:IC,onLeaveStart:IC,onLeaveActive:DC},(d,f)=>{let{className:m,style:p}=d;const g=Object.assign(Object.assign({},l),p);return ee.createElement(dD,{prefixCls:e,className:Se(o,m),style:g,ref:f})})},fD=(t,e)=>({[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{"&:not(:disabled)":{borderInlineEndColor:e}}},"&:not(:first-child)":{[`&, & > ${t}`]:{"&:not(:disabled)":{borderInlineStartColor:e}}}}}),xq=t=>{const{componentCls:e,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:l}=t;return{[`${e}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:t.calc(r).mul(-1).equal(),[`&, & > ${e}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[e]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${e}-icon-only`]:{fontSize:n}},fD(`${e}-primary`,o),fD(`${e}-danger`,l)]}};var wq=["b"],Eq=["v"],kC=function(e){return Math.round(Number(e||0))},Oq=function(e){if(e instanceof zn)return e;if(e&&Ht(e)==="object"&&"h"in e&&"b"in e){var n=e,r=n.b,o=an(n,wq);return re(re({},o),{},{v:r})}return typeof e=="string"&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e},ta=function(t){Sl(n,t);var e=Cl(n);function n(r){return Er(this,n),e.call(this,Oq(r))}return Or(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),l=kC(o.s*100),s=kC(o.b*100),u=kC(o.h),d=o.a,f="hsb(".concat(u,", ").concat(l,"%, ").concat(s,"%)"),m="hsba(".concat(u,", ").concat(l,"%, ").concat(s,"%, ").concat(d.toFixed(d===0?0:2),")");return d===1?f:m}},{key:"toHsb",value:function(){var o=this.toHsv(),l=o.v,s=an(o,Eq);return re(re({},s),{},{b:l,a:this.a})}}]),n}(zn),Rq="rc-color-picker",xd=function(e){return e instanceof ta?e:new ta(e)},Tq=xd("#1677ff"),X_=function(e){var n=e.offset,r=e.targetRef,o=e.containerRef,l=e.color,s=e.type,u=o.current.getBoundingClientRect(),d=u.width,f=u.height,m=r.current.getBoundingClientRect(),p=m.width,g=m.height,b=p/2,S=g/2,x=(n.x+b)/d,w=1-(n.y+S)/f,O=l.toHsb(),E=x,M=(n.x+b)/d*360;if(s)switch(s){case"hue":return xd(re(re({},O),{},{h:M<=0?0:M}));case"alpha":return xd(re(re({},O),{},{a:E<=0?0:E}))}return xd({h:O.h,s:x<=0?0:x,b:w>=1?1:w,a:O.a})},Q_=function(e,n){var r=e.toHsb();switch(n){case"hue":return{x:r.h/360*100,y:50};case"alpha":return{x:e.a*100,y:50};default:return{x:r.s*100,y:(1-r.b)*100}}},Aw=function(e){var n=e.color,r=e.prefixCls,o=e.className,l=e.style,s=e.onClick,u="".concat(r,"-color-block");return ee.createElement("div",{className:Se(u,o),style:l,onClick:s},ee.createElement("div",{className:"".concat(u,"-inner"),style:{background:n}}))};function Mq(t){var e="touches"in t?t.touches[0]:t,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:e.pageX-n,pageY:e.pageY-r}}function Z_(t){var e=t.targetRef,n=t.containerRef,r=t.direction,o=t.onDragChange,l=t.onDragChangeComplete,s=t.calculate,u=t.color,d=t.disabledDrag,f=y.useState({x:0,y:0}),m=Re(f,2),p=m[0],g=m[1],b=y.useRef(null),S=y.useRef(null);y.useEffect(function(){g(s())},[u]),y.useEffect(function(){return function(){document.removeEventListener("mousemove",b.current),document.removeEventListener("mouseup",S.current),document.removeEventListener("touchmove",b.current),document.removeEventListener("touchend",S.current),b.current=null,S.current=null}},[]);var x=function(T){var $=Mq(T),N=$.pageX,A=$.pageY,z=n.current.getBoundingClientRect(),P=z.x,B=z.y,L=z.width,W=z.height,q=e.current.getBoundingClientRect(),H=q.width,J=q.height,_=H/2,j=J/2,V=Math.max(0,Math.min(N-P,L))-_,G=Math.max(0,Math.min(A-B,W))-j,K={x:V,y:r==="x"?p.y:G};if(H===0&&J===0||H!==J)return!1;o==null||o(K)},w=function(T){T.preventDefault(),x(T)},O=function(T){T.preventDefault(),document.removeEventListener("mousemove",b.current),document.removeEventListener("mouseup",S.current),document.removeEventListener("touchmove",b.current),document.removeEventListener("touchend",S.current),b.current=null,S.current=null,l==null||l()},E=function(T){document.removeEventListener("mousemove",b.current),document.removeEventListener("mouseup",S.current),!d&&(x(T),document.addEventListener("mousemove",w),document.addEventListener("mouseup",O),document.addEventListener("touchmove",w),document.addEventListener("touchend",O),b.current=w,S.current=O)};return[p,E]}var J_=function(e){var n=e.size,r=n===void 0?"default":n,o=e.color,l=e.prefixCls;return ee.createElement("div",{className:Se("".concat(l,"-handler"),te({},"".concat(l,"-handler-sm"),r==="small")),style:{backgroundColor:o}})},eB=function(e){var n=e.children,r=e.style,o=e.prefixCls;return ee.createElement("div",{className:"".concat(o,"-palette"),style:re({position:"relative"},r)},n)},tB=y.forwardRef(function(t,e){var n=t.children,r=t.x,o=t.y;return ee.createElement("div",{ref:e,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(o,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)}),$q=function(e){var n=e.color,r=e.onChange,o=e.prefixCls,l=e.onChangeComplete,s=e.disabled,u=y.useRef(),d=y.useRef(),f=y.useRef(n),m=Hn(function(x){var w=X_({offset:x,targetRef:d,containerRef:u,color:n});f.current=w,r(w)}),p=Z_({color:n,containerRef:u,targetRef:d,calculate:function(){return Q_(n)},onDragChange:m,onDragChangeComplete:function(){return l==null?void 0:l(f.current)},disabledDrag:s}),g=Re(p,2),b=g[0],S=g[1];return ee.createElement("div",{ref:u,className:"".concat(o,"-select"),onMouseDown:S,onTouchStart:S},ee.createElement(eB,{prefixCls:o},ee.createElement(tB,{x:b.x,y:b.y,ref:d},ee.createElement(J_,{color:n.toRgbString(),prefixCls:o})),ee.createElement("div",{className:"".concat(o,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},Nq=function(e,n){var r=vr(e,{value:n}),o=Re(r,2),l=o[0],s=o[1],u=y.useMemo(function(){return xd(l)},[l]);return[u,s]},Aq=function(e){var n=e.colors,r=e.children,o=e.direction,l=o===void 0?"to right":o,s=e.type,u=e.prefixCls,d=y.useMemo(function(){return n.map(function(f,m){var p=xd(f);return s==="alpha"&&m===n.length-1&&(p=new ta(p.setA(1))),p.toRgbString()}).join(",")},[n,s]);return ee.createElement("div",{className:"".concat(u,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(l,", ").concat(d,")")}},r)},Dq=function(e){var n=e.prefixCls,r=e.colors,o=e.disabled,l=e.onChange,s=e.onChangeComplete,u=e.color,d=e.type,f=y.useRef(),m=y.useRef(),p=y.useRef(u),g=function($){return d==="hue"?$.getHue():$.a*100},b=Hn(function(T){var $=X_({offset:T,targetRef:m,containerRef:f,color:u,type:d});p.current=$,l(g($))}),S=Z_({color:u,targetRef:m,containerRef:f,calculate:function(){return Q_(u,d)},onDragChange:b,onDragChangeComplete:function(){s(g(p.current))},direction:"x",disabledDrag:o}),x=Re(S,2),w=x[0],O=x[1],E=ee.useMemo(function(){if(d==="hue"){var T=u.toHsb();T.s=1,T.b=1,T.a=1;var $=new ta(T);return $}return u},[u,d]),M=ee.useMemo(function(){return r.map(function(T){return"".concat(T.color," ").concat(T.percent,"%")})},[r]);return ee.createElement("div",{ref:f,className:Se("".concat(n,"-slider"),"".concat(n,"-slider-").concat(d)),onMouseDown:O,onTouchStart:O},ee.createElement(eB,{prefixCls:n},ee.createElement(tB,{x:w.x,y:w.y,ref:m},ee.createElement(J_,{size:"small",color:E.toHexString(),prefixCls:n})),ee.createElement(Aq,{colors:M,type:d,prefixCls:n})))};function Iq(t){return y.useMemo(function(){var e=t||{},n=e.slider;return[n||Dq]},[t])}var kq=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],nB=y.forwardRef(function(t,e){var n=t.value,r=t.defaultValue,o=t.prefixCls,l=o===void 0?Rq:o,s=t.onChange,u=t.onChangeComplete,d=t.className,f=t.style,m=t.panelRender,p=t.disabledAlpha,g=p===void 0?!1:p,b=t.disabled,S=b===void 0?!1:b,x=t.components,w=Iq(x),O=Re(w,1),E=O[0],M=Nq(r||Tq,n),T=Re(M,2),$=T[0],N=T[1],A=y.useMemo(function(){return $.setA(1).toRgbString()},[$]),z=function(G,K){n||N(G),s==null||s(G,K)},P=function(G){return new ta($.setHue(G))},B=function(G){return new ta($.setA(G/100))},L=function(G){z(P(G),{type:"hue",value:G})},W=function(G){z(B(G),{type:"alpha",value:G})},q=function(G){u&&u(P(G))},H=function(G){u&&u(B(G))},J=Se("".concat(l,"-panel"),d,te({},"".concat(l,"-panel-disabled"),S)),_={prefixCls:l,disabled:S,color:$},j=ee.createElement(ee.Fragment,null,ee.createElement($q,yt({onChange:z},_,{onChangeComplete:u})),ee.createElement("div",{className:"".concat(l,"-slider-container")},ee.createElement("div",{className:Se("".concat(l,"-slider-group"),te({},"".concat(l,"-slider-group-disabled-alpha"),g))},ee.createElement(E,yt({},_,{type:"hue",colors:kq,min:0,max:359,value:$.getHue(),onChange:L,onChangeComplete:q})),!g&&ee.createElement(E,yt({},_,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:A}],min:0,max:100,value:$.a*100,onChange:W,onChangeComplete:H}))),ee.createElement(Aw,{color:$.toRgbString(),prefixCls:l})));return ee.createElement("div",{className:J,style:f,ref:e},typeof m=="function"?m(j):j)});nB.displayName="ColorPicker";const Rh=(t,e)=>(t==null?void 0:t.replace(/[^\w/]/g,"").slice(0,e?8:6))||"",Pq=(t,e)=>t?Rh(t,e):"";let ai=function(){function t(e){Er(this,t);var n;if(this.cleared=!1,e instanceof t){this.metaColor=e.metaColor.clone(),this.colors=(n=e.colors)===null||n===void 0?void 0:n.map(o=>({color:new t(o.color),percent:o.percent})),this.cleared=e.cleared;return}const r=Array.isArray(e);r&&e.length?(this.colors=e.map(o=>{let{color:l,percent:s}=o;return{color:new t(l),percent:s}}),this.metaColor=new ta(this.colors[0].color.metaColor)):this.metaColor=new ta(r?"":e),(!e||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Or(t,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return Pq(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,o)=>{const l=n.colors[o];return r.percent===l.percent&&r.color.equals(l.color)}):this.toHexString()===n.toHexString()}}])}();var zq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},_q=function(e,n){return y.createElement(Lr,yt({},e,{ref:n,icon:zq}))},tm=y.forwardRef(_q);tm.displayName="RightOutlined";var rB=ee.forwardRef(function(t,e){var n=t.prefixCls,r=t.forceRender,o=t.className,l=t.style,s=t.children,u=t.isActive,d=t.role,f=t.classNames,m=t.styles,p=ee.useState(u||r),g=Re(p,2),b=g[0],S=g[1];return ee.useEffect(function(){(r||u)&&S(!0)},[r,u]),b?ee.createElement("div",{ref:e,className:Se("".concat(n,"-content"),te(te({},"".concat(n,"-content-active"),u),"".concat(n,"-content-inactive"),!u),o),style:l,role:d},ee.createElement("div",{className:Se("".concat(n,"-content-box"),f==null?void 0:f.body),style:m==null?void 0:m.body},s)):null});rB.displayName="PanelContent";var Bq=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],oB=ee.forwardRef(function(t,e){var n=t.showArrow,r=n===void 0?!0:n,o=t.headerClass,l=t.isActive,s=t.onItemClick,u=t.forceRender,d=t.className,f=t.classNames,m=f===void 0?{}:f,p=t.styles,g=p===void 0?{}:p,b=t.prefixCls,S=t.collapsible,x=t.accordion,w=t.panelKey,O=t.extra,E=t.header,M=t.expandIcon,T=t.openMotion,$=t.destroyInactivePanel,N=t.children,A=an(t,Bq),z=S==="disabled",P=O!=null&&typeof O!="boolean",B=te(te(te({onClick:function(){s==null||s(w)},onKeyDown:function(j){(j.key==="Enter"||j.keyCode===It.ENTER||j.which===It.ENTER)&&(s==null||s(w))},role:x?"tab":"button"},"aria-expanded",l),"aria-disabled",z),"tabIndex",z?-1:0),L=typeof M=="function"?M(t):ee.createElement("i",{className:"arrow"}),W=L&&ee.createElement("div",yt({className:"".concat(b,"-expand-icon")},["header","icon"].includes(S)?B:{}),L),q=Se("".concat(b,"-item"),te(te({},"".concat(b,"-item-active"),l),"".concat(b,"-item-disabled"),z),d),H=Se(o,"".concat(b,"-header"),te({},"".concat(b,"-collapsible-").concat(S),!!S),m.header),J=re({className:H,style:g.header},["header","icon"].includes(S)?{}:B);return ee.createElement("div",yt({},A,{ref:e,className:q}),ee.createElement("div",J,r&&W,ee.createElement("span",yt({className:"".concat(b,"-header-text")},S==="header"?B:{}),E),P&&ee.createElement("div",{className:"".concat(b,"-extra")},O)),ee.createElement(Pa,yt({visible:l,leavedClassName:"".concat(b,"-content-hidden")},T,{forceRender:u,removeOnLeave:$}),function(_,j){var V=_.className,G=_.style;return ee.createElement(rB,{ref:j,prefixCls:b,className:V,classNames:m,style:G,styles:g,isActive:l,forceRender:u,role:x?"tabpanel":void 0},N)}))}),Hq=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],jq=function(e,n){var r=n.prefixCls,o=n.accordion,l=n.collapsible,s=n.destroyInactivePanel,u=n.onItemClick,d=n.activeKey,f=n.openMotion,m=n.expandIcon;return e.map(function(p,g){var b=p.children,S=p.label,x=p.key,w=p.collapsible,O=p.onItemClick,E=p.destroyInactivePanel,M=an(p,Hq),T=String(x??g),$=w??l,N=E??s,A=function(B){$!=="disabled"&&(u(B),O==null||O(B))},z=!1;return o?z=d[0]===T:z=d.indexOf(T)>-1,ee.createElement(oB,yt({},M,{prefixCls:r,key:T,panelKey:T,isActive:z,accordion:o,openMotion:f,expandIcon:m,header:S,collapsible:$,onItemClick:A,destroyInactivePanel:N}),b)})},Lq=function(e,n,r){if(!e)return null;var o=r.prefixCls,l=r.accordion,s=r.collapsible,u=r.destroyInactivePanel,d=r.onItemClick,f=r.activeKey,m=r.openMotion,p=r.expandIcon,g=e.key||String(n),b=e.props,S=b.header,x=b.headerClass,w=b.destroyInactivePanel,O=b.collapsible,E=b.onItemClick,M=!1;l?M=f[0]===g:M=f.indexOf(g)>-1;var T=O??s,$=function(z){T!=="disabled"&&(d(z),E==null||E(z))},N={key:g,panelKey:g,header:S,headerClass:x,isActive:M,prefixCls:o,destroyInactivePanel:w??u,openMotion:m,accordion:l,children:e.props.children,onItemClick:$,expandIcon:p,collapsible:T};return typeof e.type=="string"?e:(Object.keys(N).forEach(function(A){typeof N[A]>"u"&&delete N[A]}),ee.cloneElement(e,N))};function Vq(t,e,n){return Array.isArray(t)?jq(t,n):ci(e).map(function(r,o){return Lq(r,o,n)})}function Fq(t){var e=t;if(!Array.isArray(e)){var n=Ht(e);e=n==="number"||n==="string"?[e]:[]}return e.map(function(r){return String(r)})}var Uq=ee.forwardRef(function(t,e){var n=t.prefixCls,r=n===void 0?"rc-collapse":n,o=t.destroyInactivePanel,l=o===void 0?!1:o,s=t.style,u=t.accordion,d=t.className,f=t.children,m=t.collapsible,p=t.openMotion,g=t.expandIcon,b=t.activeKey,S=t.defaultActiveKey,x=t.onChange,w=t.items,O=Se(r,d),E=vr([],{value:b,onChange:function(P){return x==null?void 0:x(P)},defaultValue:S,postState:Fq}),M=Re(E,2),T=M[0],$=M[1],N=function(P){return $(function(){if(u)return T[0]===P?[]:[P];var B=T.indexOf(P),L=B>-1;return L?T.filter(function(W){return W!==P}):[].concat(ht(T),[P])})};rn(!f,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var A=Vq(w,f,{prefixCls:r,accordion:u,openMotion:p,expandIcon:g,collapsible:m,destroyInactivePanel:l,onItemClick:N,activeKey:T});return ee.createElement("div",yt({ref:e,className:O,style:s,role:u?"tablist":void 0},Da(t,{aria:!0,data:!0})),A)});const Dw=Object.assign(Uq,{Panel:oB});Dw.Panel;const Wq=y.forwardRef((t,e)=>{rr("Collapse.Panel").deprecated(!("disabled"in t),"disabled",'collapsible="disabled"');const{getPrefixCls:n}=y.useContext(Tn),{prefixCls:r,className:o,showArrow:l=!0}=t,s=n("collapse",r),u=Se({[`${s}-no-arrow`]:!l},o);return y.createElement(Dw.Panel,Object.assign({ref:e},t,{prefixCls:s,className:u}))}),iB=t=>({[t.componentCls]:{[`${t.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${t.motionDurationMid} ${t.motionEaseInOut},
542
- opacity ${t.motionDurationMid} ${t.motionEaseInOut} !important`}},[`${t.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${t.motionDurationMid} ${t.motionEaseInOut},
543
- opacity ${t.motionDurationMid} ${t.motionEaseInOut} !important`}}}),qq=t=>({animationDuration:t,animationFillMode:"both"}),Gq=t=>({animationDuration:t,animationFillMode:"both"}),fy=function(t,e,n,r){const l=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
544
- ${l}${t}-enter,
545
- ${l}${t}-appear
546
- `]:Object.assign(Object.assign({},qq(r)),{animationPlayState:"paused"}),[`${l}${t}-leave`]:Object.assign(Object.assign({},Gq(r)),{animationPlayState:"paused"}),[`
547
- ${l}${t}-enter${t}-enter-active,
548
- ${l}${t}-appear${t}-appear-active
549
- `]:{animationName:e,animationPlayState:"running"},[`${l}${t}-leave${t}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Kq=new jn("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Yq=new jn("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Xq=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=t,r=`${n}-fade`,o=e?"&":"";return[fy(r,Kq,Yq,t.motionDurationMid,e),{[`
550
- ${o}${r}-enter,
551
- ${o}${r}-appear
552
- `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},Qq=new jn("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Zq=new jn("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Jq=new jn("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),eG=new jn("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),tG=new jn("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),nG=new jn("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),rG=new jn("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),oG=new jn("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),iG={"move-up":{inKeyframes:rG,outKeyframes:oG},"move-down":{inKeyframes:Qq,outKeyframes:Zq},"move-left":{inKeyframes:Jq,outKeyframes:eG},"move-right":{inKeyframes:tG,outKeyframes:nG}},$v=(t,e)=>{const{antCls:n}=t,r=`${n}-${e}`,{inKeyframes:o,outKeyframes:l}=iG[e];return[fy(r,o,l,t.motionDurationMid),{[`
553
- ${r}-enter,
554
- ${r}-appear
555
- `]:{opacity:0,animationTimingFunction:t.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:t.motionEaseInOutCirc}}]},Iw=new jn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),kw=new jn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Pw=new jn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),zw=new jn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),aG=new jn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),lG=new jn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),sG=new jn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),cG=new jn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),uG={"slide-up":{inKeyframes:Iw,outKeyframes:kw},"slide-down":{inKeyframes:Pw,outKeyframes:zw},"slide-left":{inKeyframes:aG,outKeyframes:lG},"slide-right":{inKeyframes:sG,outKeyframes:cG}},Hd=(t,e)=>{const{antCls:n}=t,r=`${n}-${e}`,{inKeyframes:o,outKeyframes:l}=uG[e];return[fy(r,o,l,t.motionDurationMid),{[`
556
- ${r}-enter,
557
- ${r}-appear
558
- `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:t.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:t.motionEaseInQuint}}]},dG=new jn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),fG=new jn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),hD=new jn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),mD=new jn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),hG=new jn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),mG=new jn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),pG=new jn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),gG=new jn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),vG=new jn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),yG=new jn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),bG=new jn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),SG=new jn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),CG={zoom:{inKeyframes:dG,outKeyframes:fG},"zoom-big":{inKeyframes:hD,outKeyframes:mD},"zoom-big-fast":{inKeyframes:hD,outKeyframes:mD},"zoom-left":{inKeyframes:pG,outKeyframes:gG},"zoom-right":{inKeyframes:vG,outKeyframes:yG},"zoom-up":{inKeyframes:hG,outKeyframes:mG},"zoom-down":{inKeyframes:bG,outKeyframes:SG}},pm=(t,e)=>{const{antCls:n}=t,r=`${n}-${e}`,{inKeyframes:o,outKeyframes:l}=CG[e];return[fy(r,o,l,e==="zoom-big-fast"?t.motionDurationFast:t.motionDurationMid),{[`
559
- ${r}-enter,
560
- ${r}-appear
561
- `]:{transform:"scale(0)",opacity:0,animationTimingFunction:t.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:t.motionEaseInOutCirc}}]},xG=t=>{const{componentCls:e,contentBg:n,padding:r,headerBg:o,headerPadding:l,collapseHeaderPaddingSM:s,collapseHeaderPaddingLG:u,collapsePanelBorderRadius:d,lineWidth:f,lineType:m,colorBorder:p,colorText:g,colorTextHeading:b,colorTextDisabled:S,fontSizeLG:x,lineHeight:w,lineHeightLG:O,marginSM:E,paddingSM:M,paddingLG:T,paddingXS:$,motionDurationSlow:N,fontSizeIcon:A,contentPadding:z,fontHeight:P,fontHeightLG:B}=t,L=`${Ee(f)} ${m} ${p}`;return{[e]:Object.assign(Object.assign({},ao(t)),{backgroundColor:o,border:L,borderRadius:d,"&-rtl":{direction:"rtl"},[`& > ${e}-item`]:{borderBottom:L,"&:first-child":{[`
562
- &,
563
- & > ${e}-header`]:{borderRadius:`${Ee(d)} ${Ee(d)} 0 0`}},"&:last-child":{[`
564
- &,
565
- & > ${e}-header`]:{borderRadius:`0 0 ${Ee(d)} ${Ee(d)}`}},[`> ${e}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:l,color:b,lineHeight:w,cursor:"pointer",transition:`all ${N}, visibility 0s`},Bd(t)),{[`> ${e}-header-text`]:{flex:"auto"},[`${e}-expand-icon`]:{height:P,display:"flex",alignItems:"center",paddingInlineEnd:E},[`${e}-arrow`]:Object.assign(Object.assign({},eu()),{fontSize:A,transition:`transform ${N}`,svg:{transition:`transform ${N}`}}),[`${e}-header-text`]:{marginInlineEnd:"auto"}}),[`${e}-collapsible-header`]:{cursor:"default",[`${e}-header-text`]:{flex:"none",cursor:"pointer"}},[`${e}-collapsible-icon`]:{cursor:"unset",[`${e}-expand-icon`]:{cursor:"pointer"}}},[`${e}-content`]:{color:g,backgroundColor:n,borderTop:L,[`& > ${e}-content-box`]:{padding:z},"&-hidden":{display:"none"}},"&-small":{[`> ${e}-item`]:{[`> ${e}-header`]:{padding:s,paddingInlineStart:$,[`> ${e}-expand-icon`]:{marginInlineStart:t.calc(M).sub($).equal()}},[`> ${e}-content > ${e}-content-box`]:{padding:M}}},"&-large":{[`> ${e}-item`]:{fontSize:x,lineHeight:O,[`> ${e}-header`]:{padding:u,paddingInlineStart:r,[`> ${e}-expand-icon`]:{height:B,marginInlineStart:t.calc(T).sub(r).equal()}},[`> ${e}-content > ${e}-content-box`]:{padding:T}}},[`${e}-item:last-child`]:{borderBottom:0,[`> ${e}-content`]:{borderRadius:`0 0 ${Ee(d)} ${Ee(d)}`}},[`& ${e}-item-disabled > ${e}-header`]:{"\n &,\n & > .arrow\n ":{color:S,cursor:"not-allowed"}},[`&${e}-icon-position-end`]:{[`& > ${e}-item`]:{[`> ${e}-header`]:{[`${e}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:E}}}}})}},wG=t=>{const{componentCls:e}=t,n=`> ${e}-item > ${e}-header ${e}-arrow`;return{[`${e}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},EG=t=>{const{componentCls:e,headerBg:n,paddingXXS:r,colorBorder:o}=t;return{[`${e}-borderless`]:{backgroundColor:n,border:0,[`> ${e}-item`]:{borderBottom:`1px solid ${o}`},[`
566
- > ${e}-item:last-child,
567
- > ${e}-item:last-child ${e}-header
568
- `]:{borderRadius:0},[`> ${e}-item:last-child`]:{borderBottom:0},[`> ${e}-item > ${e}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${e}-item > ${e}-content > ${e}-content-box`]:{paddingTop:r}}}},OG=t=>{const{componentCls:e,paddingSM:n}=t;return{[`${e}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${e}-item`]:{borderBottom:0,[`> ${e}-content`]:{backgroundColor:"transparent",border:0,[`> ${e}-content-box`]:{paddingBlock:n}}}}}},RG=t=>({headerPadding:`${t.paddingSM}px ${t.padding}px`,headerBg:t.colorFillAlter,contentPadding:`${t.padding}px 16px`,contentBg:t.colorBgContainer}),TG=pr("Collapse",t=>{const e=In(t,{collapseHeaderPaddingSM:`${Ee(t.paddingXS)} ${Ee(t.paddingSM)}`,collapseHeaderPaddingLG:`${Ee(t.padding)} ${Ee(t.paddingLG)}`,collapsePanelBorderRadius:t.borderRadiusLG});return[xG(e),EG(e),OG(e),wG(e),iB(e)]},RG),aB=y.forwardRef((t,e)=>{const{getPrefixCls:n,direction:r,expandIcon:o,className:l,style:s}=di("collapse"),{prefixCls:u,className:d,rootClassName:f,style:m,bordered:p=!0,ghost:g,size:b,expandIconPosition:S="start",children:x,expandIcon:w}=t,O=ra(q=>{var H;return(H=b??q)!==null&&H!==void 0?H:"middle"}),E=n("collapse",u),M=n(),[T,$,N]=TG(E);rr("Collapse")(S!=="left"&&S!=="right","deprecated","`expandIconPosition` with `left` or `right` is deprecated. Please use `start` or `end` instead.");const A=y.useMemo(()=>S==="left"?"start":S==="right"?"end":S,[S]),z=w??o,P=y.useCallback(function(){let q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const H=typeof z=="function"?z(q):y.createElement(tm,{rotate:q.isActive?r==="rtl"?-90:90:void 0,"aria-label":q.isActive?"expanded":"collapsed"});return Pi(H,()=>{var J;return{className:Se((J=H==null?void 0:H.props)===null||J===void 0?void 0:J.className,`${E}-arrow`)}})},[z,E]),B=Se(`${E}-icon-position-${A}`,{[`${E}-borderless`]:!p,[`${E}-rtl`]:r==="rtl",[`${E}-ghost`]:!!g,[`${E}-${O}`]:O!=="middle"},l,d,f,$,N),L=Object.assign(Object.assign({},F_(M)),{motionAppear:!1,leavedClassName:`${E}-content-hidden`}),W=y.useMemo(()=>x?ci(x).map((q,H)=>{var J,_;const j=q.props;if(j!=null&&j.disabled){const V=(J=q.key)!==null&&J!==void 0?J:String(H),G=Object.assign(Object.assign({},Hr(q.props,["disabled"])),{key:V,collapsible:(_=j.collapsible)!==null&&_!==void 0?_:"disabled"});return Pi(q,G)}return q}):null,[x]);return T(y.createElement(Dw,Object.assign({ref:e,openMotion:L},Hr(t,["rootClassName"]),{expandIcon:P,prefixCls:E,className:B,style:Object.assign(Object.assign({},s),m)}),W))});aB.displayName="Collapse";const MG=Object.assign(aB,{Panel:Wq}),bo=t=>t instanceof ai?t:new ai(t),Qg=t=>Math.round(Number(t||0)),_w=t=>Qg(t.toHsb().a*100),Zg=(t,e)=>{const n=t.toRgb();if(!n.r&&!n.g&&!n.b){const r=t.toHsb();return r.a=1,bo(r)}return n.a=1,bo(n)},lB=(t,e)=>{const n=[{percent:0,color:t[0].color}].concat(ht(t),[{percent:100,color:t[t.length-1].color}]);for(let r=0;r<n.length-1;r+=1){const o=n[r].percent,l=n[r+1].percent,s=n[r].color,u=n[r+1].color;if(o<=e&&e<=l){const d=l-o;if(d===0)return s;const f=(e-o)/d*100,m=new ta(s),p=new ta(u);return m.mix(p,f).toRgbString()}}return""},PC=t=>t.map(e=>(e.colors=e.colors.map(bo),e)),sB=(t,e)=>{const{r:n,g:r,b:o,a:l}=t.toRgb(),s=new ta(t.toRgbString()).onBackground(e).toHsv();return l<=.5?s.v>.5:n*.299+r*.587+o*.114>192},pD=(t,e)=>{var n;return`panel-${(n=t.key)!==null&&n!==void 0?n:e}`},$G=t=>{let{prefixCls:e,presets:n,value:r,onChange:o}=t;const[l]=wl("ColorPicker"),[,s]=Uo(),[u]=vr(PC(n),{value:PC(n),postState:PC}),d=`${e}-presets`,f=y.useMemo(()=>u.reduce((g,b,S)=>{const{defaultOpen:x=!0}=b;return x&&g.push(pD(b,S)),g},[]),[u]),m=g=>{o==null||o(g)},p=u.map((g,b)=>{var S;return{key:pD(g,b),label:ee.createElement("div",{className:`${d}-label`},g==null?void 0:g.label),children:ee.createElement("div",{className:`${d}-items`},Array.isArray(g==null?void 0:g.colors)&&((S=g.colors)===null||S===void 0?void 0:S.length)>0?g.colors.map((x,w)=>ee.createElement(Aw,{key:`preset-${w}-${x.toHexString()}`,color:bo(x).toRgbString(),prefixCls:e,className:Se(`${d}-color`,{[`${d}-color-checked`]:x.toHexString()===(r==null?void 0:r.toHexString()),[`${d}-color-bright`]:sB(x,s.colorBgElevated)}),onClick:()=>m(x)})):ee.createElement("span",{className:`${d}-empty`},l.presetEmpty))}});return ee.createElement("div",{className:d},ee.createElement(MG,{defaultActiveKey:f,ghost:!0,items:p}))},cB=t=>{const{paddingInline:e,onlyIconSize:n}=t;return In(t,{buttonPaddingHorizontal:e,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},uB=t=>{var e,n,r,o,l,s;const u=(e=t.contentFontSize)!==null&&e!==void 0?e:t.fontSize,d=(n=t.contentFontSizeSM)!==null&&n!==void 0?n:t.fontSize,f=(r=t.contentFontSizeLG)!==null&&r!==void 0?r:t.fontSizeLG,m=(o=t.contentLineHeight)!==null&&o!==void 0?o:Yg(u),p=(l=t.contentLineHeightSM)!==null&&l!==void 0?l:Yg(d),g=(s=t.contentLineHeightLG)!==null&&s!==void 0?s:Yg(f),b=sB(new ai(t.colorBgSolid),"#fff")?"#000":"#fff",S=ws.reduce((x,w)=>Object.assign(Object.assign({},x),{[`${w}ShadowColor`]:`0 ${Ee(t.controlOutlineWidth)} 0 ${Oh(t[`${w}1`],t.colorBgContainer)}`}),{});return Object.assign(Object.assign({},S),{fontWeight:400,defaultShadow:`0 ${t.controlOutlineWidth}px 0 ${t.controlTmpOutline}`,primaryShadow:`0 ${t.controlOutlineWidth}px 0 ${t.controlOutline}`,dangerShadow:`0 ${t.controlOutlineWidth}px 0 ${t.colorErrorOutline}`,primaryColor:t.colorTextLightSolid,dangerColor:t.colorTextLightSolid,borderColorDisabled:t.colorBorder,defaultGhostColor:t.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:t.colorBgContainer,paddingInline:t.paddingContentHorizontal-t.lineWidth,paddingInlineLG:t.paddingContentHorizontal-t.lineWidth,paddingInlineSM:8-t.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:t.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:t.colorText,textTextHoverColor:t.colorText,textTextActiveColor:t.colorText,textHoverBg:t.colorFillTertiary,defaultColor:t.colorText,defaultBg:t.colorBgContainer,defaultBorderColor:t.colorBorder,defaultBorderColorDisabled:t.colorBorder,defaultHoverBg:t.colorBgContainer,defaultHoverColor:t.colorPrimaryHover,defaultHoverBorderColor:t.colorPrimaryHover,defaultActiveBg:t.colorBgContainer,defaultActiveColor:t.colorPrimaryActive,defaultActiveBorderColor:t.colorPrimaryActive,solidTextColor:b,contentFontSize:u,contentFontSizeSM:d,contentFontSizeLG:f,contentLineHeight:m,contentLineHeightSM:p,contentLineHeightLG:g,paddingBlock:Math.max((t.controlHeight-u*m)/2-t.lineWidth,0),paddingBlockSM:Math.max((t.controlHeightSM-d*p)/2-t.lineWidth,0),paddingBlockLG:Math.max((t.controlHeightLG-f*g)/2-t.lineWidth,0)})},NG=t=>{const{componentCls:e,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:l,motionEaseInOut:s,marginXS:u,calc:d}=t;return{[e]:{outline:"none",position:"relative",display:"inline-flex",gap:t.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Ee(t.lineWidth)} ${t.lineType} transparent`,cursor:"pointer",transition:`all ${t.motionDurationMid} ${t.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:t.colorText,"&:disabled > *":{pointerEvents:"none"},[`${e}-icon > svg`]:eu(),"> a":{color:"currentColor"},"&:not(:disabled)":Bd(t),[`&${e}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${e}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${e}-icon-only`]:{paddingInline:0,[`&${e}-compact-item`]:{flex:"none"},[`&${e}-round`]:{width:"auto"}},[`&${e}-loading`]:{opacity:o,cursor:"default"},[`${e}-loading-icon`]:{transition:["width","opacity","margin"].map(f=>`${f} ${l} ${s}`).join(",")},[`&:not(${e}-icon-end)`]:{[`${e}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:d(u).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:d(u).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${e}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:d(u).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:d(u).mul(-1).equal()}}}}}},dB=(t,e,n)=>({[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":e,"&:active":n}}),AG=t=>({minWidth:t.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),DG=t=>({borderRadius:t.controlHeight,paddingInlineStart:t.calc(t.controlHeight).div(2).equal(),paddingInlineEnd:t.calc(t.controlHeight).div(2).equal()}),IG=t=>({cursor:"not-allowed",borderColor:t.borderColorDisabled,color:t.colorTextDisabled,background:t.colorBgContainerDisabled,boxShadow:"none"}),hy=(t,e,n,r,o,l,s,u)=>({[`&${t}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:e,borderColor:r||void 0,boxShadow:"none"},dB(t,Object.assign({background:e},s),Object.assign({background:e},u))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:l||void 0}})}),kG=t=>({[`&:disabled, &${t.componentCls}-disabled`]:Object.assign({},IG(t))}),PG=t=>({[`&:disabled, &${t.componentCls}-disabled`]:{cursor:"not-allowed",color:t.colorTextDisabled}}),my=(t,e,n,r)=>{const l=r&&["link","text"].includes(r)?PG:kG;return Object.assign(Object.assign({},l(t)),dB(t.componentCls,e,n))},py=(t,e,n,r,o)=>({[`&${t.componentCls}-variant-solid`]:Object.assign({color:e,background:n},my(t,r,o))}),gy=(t,e,n,r,o)=>({[`&${t.componentCls}-variant-outlined, &${t.componentCls}-variant-dashed`]:Object.assign({borderColor:e,background:n},my(t,r,o))}),vy=t=>({[`&${t.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),yy=(t,e,n,r)=>({[`&${t.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:e},my(t,n,r))}),Ia=(t,e,n,r,o)=>({[`&${t.componentCls}-variant-${n}`]:Object.assign({color:e,boxShadow:"none"},my(t,r,o,n))}),zG=t=>{const{componentCls:e}=t;return ws.reduce((n,r)=>{const o=t[`${r}6`],l=t[`${r}1`],s=t[`${r}5`],u=t[`${r}2`],d=t[`${r}3`],f=t[`${r}7`];return Object.assign(Object.assign({},n),{[`&${e}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:t[`${r}ShadowColor`]},py(t,t.colorTextLightSolid,o,{background:s},{background:f})),gy(t,o,t.colorBgContainer,{color:s,borderColor:s,background:t.colorBgContainer},{color:f,borderColor:f,background:t.colorBgContainer})),vy(t)),yy(t,l,{background:u},{background:d})),Ia(t,o,"link",{color:s},{color:f})),Ia(t,o,"text",{color:s,background:l},{color:f,background:d}))})},{})},_G=t=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:t.defaultColor,boxShadow:t.defaultShadow},py(t,t.solidTextColor,t.colorBgSolid,{color:t.solidTextColor,background:t.colorBgSolidHover},{color:t.solidTextColor,background:t.colorBgSolidActive})),vy(t)),yy(t,t.colorFillTertiary,{background:t.colorFillSecondary},{background:t.colorFill})),hy(t.componentCls,t.ghostBg,t.defaultGhostColor,t.defaultGhostBorderColor,t.colorTextDisabled,t.colorBorder)),Ia(t,t.textTextColor,"link",{color:t.colorLinkHover,background:t.linkHoverBg},{color:t.colorLinkActive})),BG=t=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:t.colorPrimary,boxShadow:t.primaryShadow},gy(t,t.colorPrimary,t.colorBgContainer,{color:t.colorPrimaryTextHover,borderColor:t.colorPrimaryHover,background:t.colorBgContainer},{color:t.colorPrimaryTextActive,borderColor:t.colorPrimaryActive,background:t.colorBgContainer})),vy(t)),yy(t,t.colorPrimaryBg,{background:t.colorPrimaryBgHover},{background:t.colorPrimaryBorder})),Ia(t,t.colorPrimaryText,"text",{color:t.colorPrimaryTextHover,background:t.colorPrimaryBg},{color:t.colorPrimaryTextActive,background:t.colorPrimaryBorder})),Ia(t,t.colorPrimaryText,"link",{color:t.colorPrimaryTextHover,background:t.linkHoverBg},{color:t.colorPrimaryTextActive})),hy(t.componentCls,t.ghostBg,t.colorPrimary,t.colorPrimary,t.colorTextDisabled,t.colorBorder,{color:t.colorPrimaryHover,borderColor:t.colorPrimaryHover},{color:t.colorPrimaryActive,borderColor:t.colorPrimaryActive})),HG=t=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:t.colorError,boxShadow:t.dangerShadow},py(t,t.dangerColor,t.colorError,{background:t.colorErrorHover},{background:t.colorErrorActive})),gy(t,t.colorError,t.colorBgContainer,{color:t.colorErrorHover,borderColor:t.colorErrorBorderHover},{color:t.colorErrorActive,borderColor:t.colorErrorActive})),vy(t)),yy(t,t.colorErrorBg,{background:t.colorErrorBgFilledHover},{background:t.colorErrorBgActive})),Ia(t,t.colorError,"text",{color:t.colorErrorHover,background:t.colorErrorBg},{color:t.colorErrorHover,background:t.colorErrorBgActive})),Ia(t,t.colorError,"link",{color:t.colorErrorHover},{color:t.colorErrorActive})),hy(t.componentCls,t.ghostBg,t.colorError,t.colorError,t.colorTextDisabled,t.colorBorder,{color:t.colorErrorHover,borderColor:t.colorErrorHover},{color:t.colorErrorActive,borderColor:t.colorErrorActive})),jG=t=>Object.assign(Object.assign({},Ia(t,t.colorLink,"link",{color:t.colorLinkHover},{color:t.colorLinkActive})),hy(t.componentCls,t.ghostBg,t.colorInfo,t.colorInfo,t.colorTextDisabled,t.colorBorder,{color:t.colorInfoHover,borderColor:t.colorInfoHover},{color:t.colorInfoActive,borderColor:t.colorInfoActive})),LG=t=>{const{componentCls:e}=t;return Object.assign({[`${e}-color-default`]:_G(t),[`${e}-color-primary`]:BG(t),[`${e}-color-dangerous`]:HG(t),[`${e}-color-link`]:jG(t)},zG(t))},VG=t=>Object.assign(Object.assign(Object.assign(Object.assign({},gy(t,t.defaultBorderColor,t.defaultBg,{color:t.defaultHoverColor,borderColor:t.defaultHoverBorderColor,background:t.defaultHoverBg},{color:t.defaultActiveColor,borderColor:t.defaultActiveBorderColor,background:t.defaultActiveBg})),Ia(t,t.textTextColor,"text",{color:t.textTextHoverColor,background:t.textHoverBg},{color:t.textTextActiveColor,background:t.colorBgTextActive})),py(t,t.primaryColor,t.colorPrimary,{background:t.colorPrimaryHover,color:t.primaryColor},{background:t.colorPrimaryActive,color:t.primaryColor})),Ia(t,t.colorLink,"link",{color:t.colorLinkHover,background:t.linkHoverBg},{color:t.colorLinkActive})),Bw=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:l,buttonPaddingHorizontal:s,iconCls:u,buttonPaddingVertical:d,buttonIconOnlyFontSize:f}=t;return[{[e]:{fontSize:o,height:r,padding:`${Ee(d)} ${Ee(s)}`,borderRadius:l,[`&${n}-icon-only`]:{width:r,[u]:{fontSize:f}}}},{[`${n}${n}-circle${e}`]:AG(t)},{[`${n}${n}-round${e}`]:DG(t)}]},FG=t=>{const e=In(t,{fontSize:t.contentFontSize});return Bw(e,t.componentCls)},UG=t=>{const e=In(t,{controlHeight:t.controlHeightSM,fontSize:t.contentFontSizeSM,padding:t.paddingXS,buttonPaddingHorizontal:t.paddingInlineSM,buttonPaddingVertical:0,borderRadius:t.borderRadiusSM,buttonIconOnlyFontSize:t.onlyIconSizeSM});return Bw(e,`${t.componentCls}-sm`)},WG=t=>{const e=In(t,{controlHeight:t.controlHeightLG,fontSize:t.contentFontSizeLG,buttonPaddingHorizontal:t.paddingInlineLG,buttonPaddingVertical:0,borderRadius:t.borderRadiusLG,buttonIconOnlyFontSize:t.onlyIconSizeLG});return Bw(e,`${t.componentCls}-lg`)},qG=t=>{const{componentCls:e}=t;return{[e]:{[`&${e}-block`]:{width:"100%"}}}},GG=pr("Button",t=>{const e=cB(t);return[NG(e),FG(e),UG(e),WG(e),qG(e),LG(e),VG(e),xq(e)]},uB,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function KG(t,e,n){const{focusElCls:r,focus:o,borderElCls:l}=n,s=l?"> *":"",u=["hover",o?"focus":null,"active"].filter(Boolean).map(d=>`&:${d} ${s}`).join(",");return{[`&-item:not(${e}-last-item)`]:{marginInlineEnd:t.calc(t.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[u]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function YG(t,e,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${e}-first-item):not(${e}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${e}-last-item)${e}-first-item`]:{[`& ${o}, &${t}-sm ${o}, &${t}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${e}-first-item)${e}-last-item`]:{[`& ${o}, &${t}-sm ${o}, &${t}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function gm(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=t,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},KG(t,r,e)),YG(n,r,e))}}function XG(t,e){return{[`&-item:not(${e}-last-item)`]:{marginBottom:t.calc(t.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function QG(t,e){return{[`&-item:not(${e}-first-item):not(${e}-last-item)`]:{borderRadius:0},[`&-item${e}-first-item:not(${e}-last-item)`]:{[`&, &${t}-sm, &${t}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${e}-last-item:not(${e}-first-item)`]:{[`&, &${t}-sm, &${t}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function ZG(t){const e=`${t.componentCls}-compact-vertical`;return{[e]:Object.assign(Object.assign({},XG(t,e)),QG(t.componentCls,e))}}const JG=t=>{const{componentCls:e,colorPrimaryHover:n,lineWidth:r,calc:o}=t,l=o(r).mul(-1).equal(),s=u=>{const d=`${e}-compact${u?"-vertical":""}-item${e}-primary:not([disabled])`;return{[`${d} + ${d}::before`]:{position:"absolute",top:u?l:0,insetInlineStart:u?0:l,backgroundColor:n,content:'""',width:u?"100%":r,height:u?r:"100%"}}};return Object.assign(Object.assign({},s()),s(!0))},eK=v_(["Button","compact"],t=>{const e=cB(t);return[gm(e),ZG(e),JG(e)]},uB);var tK=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};function nK(t){if(typeof t=="object"&&t){let e=t==null?void 0:t.delay;return e=!Number.isNaN(e)&&typeof e=="number"?e:0,{loading:e<=0,delay:e}}return{loading:!!t,delay:0}}const rK={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},oK=ee.forwardRef((t,e)=>{var n,r;const{loading:o=!1,prefixCls:l,color:s,variant:u,type:d,danger:f=!1,shape:m="default",size:p,styles:g,disabled:b,className:S,rootClassName:x,children:w,icon:O,iconPosition:E="start",ghost:M=!1,block:T=!1,htmlType:$="button",classNames:N,style:A={},autoInsertSpace:z,autoFocus:P}=t,B=tK(t,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),L=d||"default",[W,q]=y.useMemo(()=>{if(s&&u)return[s,u];const at=rK[L]||[];return f?["danger",at[1]]:at},[d,s,u,f]),J=W==="danger"?"dangerous":W,{getPrefixCls:_,direction:j,autoInsertSpace:V,className:G,style:K,classNames:Y,styles:ne}=di("button"),ae=(n=z??V)!==null&&n!==void 0?n:!0,Q=_("btn",l),[se,de,xe]=GG(Q),fe=y.useContext(ea),Me=b??fe,ze=y.useContext(K_),Oe=y.useMemo(()=>nK(o),[o]),[he,De]=y.useState(Oe.loading),[pe,we]=y.useState(!1),$e=y.useRef(null),Pe=Ns(e,$e),Ze=y.Children.count(w)===1&&!O&&!Mg(q),We=y.useRef(!0);ee.useEffect(()=>(We.current=!1,()=>{We.current=!0}),[]),y.useEffect(()=>{let at=null;Oe.delay>0?at=setTimeout(()=>{at=null,De(!0)},Oe.delay):De(Oe.loading);function Ct(){at&&(clearTimeout(at),at=null)}return Ct},[Oe]),y.useEffect(()=>{if(!$e.current||!ae)return;const at=$e.current.textContent||"";Ze&&ax(at)?pe||we(!0):pe&&we(!1)}),y.useEffect(()=>{P&&$e.current&&$e.current.focus()},[]);const ut=ee.useCallback(at=>{var Ct;if(he||Me){at.preventDefault();return}(Ct=t.onClick)===null||Ct===void 0||Ct.call(t,("href"in t,at))},[t.onClick,he,Me]);{const at=rr("Button");at(!(typeof O=="string"&&O.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${O}\` at https://ant.design/components/icon`),at(!(M&&Mg(q)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:I,compactItemClassnames:me}=Ds(Q,j),oe={large:"lg",small:"sm",middle:void 0},ge=ra(at=>{var Ct,$t;return($t=(Ct=p??I)!==null&&Ct!==void 0?Ct:ze)!==null&&$t!==void 0?$t:at}),Ue=ge&&(r=oe[ge])!==null&&r!==void 0?r:"",Fe=he?"loading":O,Te=Hr(B,["navigate"]),_e=Se(Q,de,xe,{[`${Q}-${m}`]:m!=="default"&&m,[`${Q}-${L}`]:L,[`${Q}-dangerous`]:f,[`${Q}-color-${J}`]:J,[`${Q}-variant-${q}`]:q,[`${Q}-${Ue}`]:Ue,[`${Q}-icon-only`]:!w&&w!==0&&!!Fe,[`${Q}-background-ghost`]:M&&!Mg(q),[`${Q}-loading`]:he,[`${Q}-two-chinese-chars`]:pe&&ae&&!he,[`${Q}-block`]:T,[`${Q}-rtl`]:j==="rtl",[`${Q}-icon-end`]:E==="end"},me,S,x,G),it=Object.assign(Object.assign({},K),A),Xe=Se(N==null?void 0:N.icon,Y.icon),dt=Object.assign(Object.assign({},(g==null?void 0:g.icon)||{}),ne.icon||{}),vt=O&&!he?ee.createElement(lx,{prefixCls:Q,className:Xe,style:dt},O):o&&typeof o=="object"&&o.icon?ee.createElement(lx,{prefixCls:Q,className:Xe,style:dt},o.icon):ee.createElement(Cq,{existIcon:!!O,prefixCls:Q,loading:he,mount:We.current}),et=w||w===0?Sq(w,Ze&&ae):null;if(Te.href!==void 0)return se(ee.createElement("a",Object.assign({},Te,{className:Se(_e,{[`${Q}-disabled`]:Me}),href:Me?void 0:Te.href,style:it,onClick:ut,ref:Pe,tabIndex:Me?-1:0}),vt,et));let st=ee.createElement("button",Object.assign({},B,{type:$,className:_e,style:it,onClick:ut,disabled:Me,ref:Pe}),vt,et,me&&ee.createElement(eK,{prefixCls:Q}));return Mg(q)||(st=ee.createElement(W_,{component:"Button",disabled:he},st)),se(st)}),bl=oK;bl.Group=yq;bl.__ANT_BUTTON=!0;bl.displayName="Button";function zC(t){return!!(t!=null&&t.then)}const fB=t=>{const{type:e,children:n,prefixCls:r,buttonProps:o,close:l,autoFocus:s,emitEvent:u,isSilent:d,quitOnNullishReturnValue:f,actionFn:m}=t,p=y.useRef(!1),g=y.useRef(null),[b,S]=_d(!1),x=function(){l==null||l.apply(void 0,arguments)};y.useEffect(()=>{let E=null;return s&&(E=setTimeout(()=>{var M;(M=g.current)===null||M===void 0||M.focus({preventScroll:!0})})),()=>{E&&clearTimeout(E)}},[]);const w=E=>{zC(E)&&(S(!0),E.then(function(){S(!1,!0),x.apply(void 0,arguments),p.current=!1},M=>{if(S(!1,!0),p.current=!1,!(d!=null&&d()))return Promise.reject(M)}))},O=E=>{if(p.current)return;if(p.current=!0,!m){x();return}let M;if(u){if(M=m(E),f&&!zC(M)){p.current=!1,x(E);return}}else if(m.length)M=m(l),p.current=!1;else if(M=m(),!zC(M)){x();return}w(M)};return y.createElement(bl,Object.assign({},Y_(e),{onClick:O,loading:b,prefixCls:r},o,{ref:g}),n)},vm=ee.createContext({}),{Provider:hB}=vm,gD=()=>{const{autoFocusButton:t,cancelButtonProps:e,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:l,close:s,onCancel:u,onConfirm:d}=y.useContext(vm);return o?ee.createElement(fB,{isSilent:r,actionFn:u,close:function(){s==null||s.apply(void 0,arguments),d==null||d(!1)},autoFocus:t==="cancel",buttonProps:e,prefixCls:`${l}-btn`},n):null},vD=()=>{const{autoFocusButton:t,close:e,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:l,okType:s,onConfirm:u,onOk:d}=y.useContext(vm);return ee.createElement(fB,{isSilent:n,type:s||"primary",actionFn:d,close:function(){e==null||e.apply(void 0,arguments),u==null||u(!0)},autoFocus:t==="ok",buttonProps:r,prefixCls:`${o}-btn`},l)};var mB=y.createContext(null),yD=[];function iK(t,e){var n=y.useState(function(){if(!yo())return null;var S=document.createElement("div");return e&&S.setAttribute("data-debug",e),S}),r=Re(n,1),o=r[0],l=y.useRef(!1),s=y.useContext(mB),u=y.useState(yD),d=Re(u,2),f=d[0],m=d[1],p=s||(l.current?void 0:function(S){m(function(x){var w=[S].concat(ht(x));return w})});function g(){o.parentElement||document.body.appendChild(o),l.current=!0}function b(){var S;(S=o.parentElement)===null||S===void 0||S.removeChild(o),l.current=!1}return Gn(function(){return t?s?s(g):g():b(),b},[t]),Gn(function(){f.length&&(f.forEach(function(S){return S()}),m(yD))},[f]),[o,p]}function aK(t){var e="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=e;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var o,l;if(t){var s=getComputedStyle(t);r.scrollbarColor=s.scrollbarColor,r.scrollbarWidth=s.scrollbarWidth;var u=getComputedStyle(t,"::-webkit-scrollbar"),d=parseInt(u.width,10),f=parseInt(u.height,10);try{var m=d?"width: ".concat(u.width,";"):"",p=f?"height: ".concat(u.height,";"):"";vl(`
569
- #`.concat(e,`::-webkit-scrollbar {
570
- `).concat(m,`
571
- `).concat(p,`
572
- }`),e)}catch(S){console.error(S),o=d,l=f}}document.body.appendChild(n);var g=t&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,b=t&&l&&!isNaN(l)?l:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Yh(e),{width:g,height:b}}function lK(t){return typeof document>"u"||!t||!(t instanceof Element)?{width:0,height:0}:aK(t)}function sK(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var cK="rc-util-locker-".concat(Date.now()),bD=0;function uK(t){var e=!!t,n=y.useState(function(){return bD+=1,"".concat(cK,"_").concat(bD)}),r=Re(n,1),o=r[0];Gn(function(){if(e){var l=lK(document.body).width,s=sK();vl(`
573
- html body {
574
- overflow-y: hidden;
575
- `.concat(s?"width: calc(100% - ".concat(l,"px);"):"",`
576
- }`),o)}else Yh(o);return function(){Yh(o)}},[e,o])}var dK=!1;function fK(t){return dK}var SD=function(e){return e===!1?!1:!yo()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e},by=y.forwardRef(function(t,e){var n=t.open,r=t.autoLock,o=t.getContainer,l=t.debug,s=t.autoDestroy,u=s===void 0?!0:s,d=t.children,f=y.useState(n),m=Re(f,2),p=m[0],g=m[1],b=p||n;rn(yo()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),y.useEffect(function(){(u||n)&&g(n)},[n,u]);var S=y.useState(function(){return SD(o)}),x=Re(S,2),w=x[0],O=x[1];y.useEffect(function(){var W=SD(o);O(W??null)});var E=iK(b&&!w,l),M=Re(E,2),T=M[0],$=M[1],N=w??T;uK(r&&n&&yo()&&(N===T||N===document.body));var A=null;if(d&&As(d)&&e){var z=d;A=z.ref}var P=Ns(A,e);if(!b||!yo()||w===void 0)return null;var B=N===!1||fK(),L=d;return e&&(L=y.cloneElement(d,{ref:P})),y.createElement(mB.Provider,{value:$},B?L:yl.createPortal(L,N))});by.displayName="Portal";var pB=y.createContext({});function hK(){var t=re({},Vv);return t.useId}var CD=0,xD=hK();const Sy=xD?function(e){var n=xD();return e||n}:function(e){var n=y.useState("ssr-id"),r=Re(n,2),o=r[0],l=r[1];return y.useEffect(function(){var s=CD;CD+=1,l("rc_unique_".concat(s))},[]),e||o};function wD(t,e,n){var r=e;return!r&&n&&(r="".concat(t,"-").concat(n)),r}function ED(t,e){var n=t["page".concat(e?"Y":"X","Offset")],r="scroll".concat(e?"Top":"Left");if(typeof n!="number"){var o=t.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function mK(t){var e=t.getBoundingClientRect(),n={left:e.left,top:e.top},r=t.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=ED(o),n.top+=ED(o,!0),n}const pK=y.memo(function(t){var e=t.children;return e},function(t,e){var n=e.shouldUpdate;return!n});var gK={width:0,height:0,overflow:"hidden",outline:"none"},vK={outline:"none"},Hw=ee.forwardRef(function(t,e){var n=t.prefixCls,r=t.className,o=t.style,l=t.title,s=t.ariaId,u=t.footer,d=t.closable,f=t.closeIcon,m=t.onClose,p=t.children,g=t.bodyStyle,b=t.bodyProps,S=t.modalRender,x=t.onMouseDown,w=t.onMouseUp,O=t.holderRef,E=t.visible,M=t.forceRender,T=t.width,$=t.height,N=t.classNames,A=t.styles,z=ee.useContext(pB),P=z.panel,B=Ns(O,P),L=y.useRef(),W=y.useRef();ee.useImperativeHandle(e,function(){return{focus:function(){var ne;(ne=L.current)===null||ne===void 0||ne.focus({preventScroll:!0})},changeActive:function(ne){var ae=document,Q=ae.activeElement;ne&&Q===W.current?L.current.focus({preventScroll:!0}):!ne&&Q===L.current&&W.current.focus({preventScroll:!0})}}});var q={};T!==void 0&&(q.width=T),$!==void 0&&(q.height=$);var H=u?ee.createElement("div",{className:Se("".concat(n,"-footer"),N==null?void 0:N.footer),style:re({},A==null?void 0:A.footer)},u):null,J=l?ee.createElement("div",{className:Se("".concat(n,"-header"),N==null?void 0:N.header),style:re({},A==null?void 0:A.header)},ee.createElement("div",{className:"".concat(n,"-title"),id:s},l)):null,_=y.useMemo(function(){return Ht(d)==="object"&&d!==null?d:d?{closeIcon:f??ee.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[d,f,n]),j=Da(_,!0),V=Ht(d)==="object"&&d.disabled,G=d?ee.createElement("button",yt({type:"button",onClick:m,"aria-label":"Close"},j,{className:"".concat(n,"-close"),disabled:V}),_.closeIcon):null,K=ee.createElement("div",{className:Se("".concat(n,"-content"),N==null?void 0:N.content),style:A==null?void 0:A.content},G,J,ee.createElement("div",yt({className:Se("".concat(n,"-body"),N==null?void 0:N.body),style:re(re({},g),A==null?void 0:A.body)},b),p),H);return ee.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":l?s:null,"aria-modal":"true",ref:B,style:re(re({},o),q),className:Se(n,r),onMouseDown:x,onMouseUp:w},ee.createElement("div",{ref:L,tabIndex:0,style:vK},ee.createElement(pK,{shouldUpdate:E||M},S?S(K):K)),ee.createElement("div",{tabIndex:0,ref:W,style:gK}))});Hw.displayName="Panel";var gB=y.forwardRef(function(t,e){var n=t.prefixCls,r=t.title,o=t.style,l=t.className,s=t.visible,u=t.forceRender,d=t.destroyOnClose,f=t.motionName,m=t.ariaId,p=t.onVisibleChanged,g=t.mousePosition,b=y.useRef(),S=y.useState(),x=Re(S,2),w=x[0],O=x[1],E={};w&&(E.transformOrigin=w);function M(){var T=mK(b.current);O(g&&(g.x||g.y)?"".concat(g.x-T.left,"px ").concat(g.y-T.top,"px"):"")}return y.createElement(Pa,{visible:s,onVisibleChanged:p,onAppearPrepare:M,onEnterPrepare:M,forceRender:u,motionName:f,removeOnLeave:d,ref:b},function(T,$){var N=T.className,A=T.style;return y.createElement(Hw,yt({},t,{ref:e,title:r,ariaId:m,prefixCls:n,holderRef:$,style:re(re(re({},A),o),E),className:Se(l,N)}))})});gB.displayName="Content";var yK=function(e){var n=e.prefixCls,r=e.style,o=e.visible,l=e.maskProps,s=e.motionName,u=e.className;return y.createElement(Pa,{key:"mask",visible:o,motionName:s,leavedClassName:"".concat(n,"-mask-hidden")},function(d,f){var m=d.className,p=d.style;return y.createElement("div",yt({ref:f,style:re(re({},p),r),className:Se("".concat(n,"-mask"),m,u)},l))})},bK=function(e){var n=e.prefixCls,r=n===void 0?"rc-dialog":n,o=e.zIndex,l=e.visible,s=l===void 0?!1:l,u=e.keyboard,d=u===void 0?!0:u,f=e.focusTriggerAfterClose,m=f===void 0?!0:f,p=e.wrapStyle,g=e.wrapClassName,b=e.wrapProps,S=e.onClose,x=e.afterOpenChange,w=e.afterClose,O=e.transitionName,E=e.animation,M=e.closable,T=M===void 0?!0:M,$=e.mask,N=$===void 0?!0:$,A=e.maskTransitionName,z=e.maskAnimation,P=e.maskClosable,B=P===void 0?!0:P,L=e.maskStyle,W=e.maskProps,q=e.rootClassName,H=e.classNames,J=e.styles;["wrapStyle","bodyStyle","maskStyle"].forEach(function(we){Aa(!(we in e),"".concat(we," is deprecated, please use styles instead."))}),"wrapClassName"in e&&Aa(!1,"wrapClassName is deprecated, please use classNames instead.");var _=y.useRef(),j=y.useRef(),V=y.useRef(),G=y.useState(s),K=Re(G,2),Y=K[0],ne=K[1],ae=Sy();function Q(){$1(j.current,document.activeElement)||(_.current=document.activeElement)}function se(){if(!$1(j.current,document.activeElement)){var we;(we=V.current)===null||we===void 0||we.focus()}}function de(we){if(we)se();else{if(ne(!1),N&&_.current&&m){try{_.current.focus({preventScroll:!0})}catch{}_.current=null}Y&&(w==null||w())}x==null||x(we)}function xe(we){S==null||S(we)}var fe=y.useRef(!1),Me=y.useRef(),ze=function(){clearTimeout(Me.current),fe.current=!0},Oe=function(){Me.current=setTimeout(function(){fe.current=!1})},he=null;B&&(he=function($e){fe.current?fe.current=!1:j.current===$e.target&&xe($e)});function De(we){if(d&&we.keyCode===It.ESC){we.stopPropagation(),xe(we);return}s&&we.keyCode===It.TAB&&V.current.changeActive(!we.shiftKey)}y.useEffect(function(){s&&(ne(!0),Q())},[s]),y.useEffect(function(){return function(){clearTimeout(Me.current)}},[]);var pe=re(re(re({zIndex:o},p),J==null?void 0:J.wrapper),{},{display:Y?null:"none"});return y.createElement("div",yt({className:Se("".concat(r,"-root"),q)},Da(e,{data:!0})),y.createElement(yK,{prefixCls:r,visible:N&&s,motionName:wD(r,A,z),style:re(re({zIndex:o},L),J==null?void 0:J.mask),maskProps:W,className:H==null?void 0:H.mask}),y.createElement("div",yt({tabIndex:-1,onKeyDown:De,className:Se("".concat(r,"-wrap"),g,H==null?void 0:H.wrapper),ref:j,onClick:he,style:pe},b),y.createElement(gB,yt({},e,{onMouseDown:ze,onMouseUp:Oe,ref:V,closable:T,ariaId:ae,prefixCls:r,visible:s&&Y,onClose:xe,onVisibleChanged:de,motionName:wD(r,O,E)}))))},vB=function(e){var n=e.visible,r=e.getContainer,o=e.forceRender,l=e.destroyOnClose,s=l===void 0?!1:l,u=e.afterClose,d=e.panelRef,f=y.useState(n),m=Re(f,2),p=m[0],g=m[1],b=y.useMemo(function(){return{panel:d}},[d]);return y.useEffect(function(){n&&g(!0)},[n]),!o&&s&&!p?null:y.createElement(pB.Provider,{value:b},y.createElement(by,{open:n||o||p,autoDestroy:!1,getContainer:r,autoLock:n||p},y.createElement(bK,yt({},e,{destroyOnClose:s,afterClose:function(){u==null||u(),g(!1)}}))))};vB.displayName="Dialog";var Ac="RC_FORM_INTERNAL_HOOKS",Qn=function(){rn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},jd=y.createContext({getFieldValue:Qn,getFieldsValue:Qn,getFieldError:Qn,getFieldWarning:Qn,getFieldsError:Qn,isFieldsTouched:Qn,isFieldTouched:Qn,isFieldValidating:Qn,isFieldsValidating:Qn,resetFields:Qn,setFields:Qn,setFieldValue:Qn,setFieldsValue:Qn,validateFields:Qn,submit:Qn,getInternalHooks:function(){return Qn(),{dispatch:Qn,initEntityValue:Qn,registerField:Qn,useSubscribe:Qn,setInitialValues:Qn,destroyForm:Qn,setCallbacks:Qn,registerWatch:Qn,getFields:Qn,setValidateMessages:Qn,setPreserve:Qn,getInitialValue:Qn}}}),Nv=y.createContext(null);function sx(t){return t==null?[]:Array.isArray(t)?t:[t]}function SK(t){return t&&!!t._init}function cx(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var ux=cx();function CK(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch{return typeof t=="function"}}function xK(t,e,n){if(vw())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&qh(o,n.prototype),o}function dx(t){var e=typeof Map=="function"?new Map:void 0;return dx=function(r){if(r===null||!CK(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(r))return e.get(r);e.set(r,o)}function o(){return xK(r,arguments,Gh(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),qh(o,r)},dx(t)}var wK={},EK=/%[sdj%]/g,yB=function(){};typeof process<"u"&&wK&&typeof window<"u"&&typeof document<"u"&&(yB=function(e,n){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&n.every(function(r){return typeof r=="string"})&&console.warn(e,n)});function fx(t){if(!t||!t.length)return null;var e={};return t.forEach(function(n){var r=n.field;e[r]=e[r]||[],e[r].push(n)}),e}function li(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=0,l=n.length;if(typeof t=="function")return t.apply(null,n);if(typeof t=="string"){var s=t.replace(EK,function(u){if(u==="%%")return"%";if(o>=l)return u;switch(u){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return u}});return s}return t}function OK(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function jr(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||OK(e)&&typeof t=="string"&&!t)}function RK(t,e,n){var r=[],o=0,l=t.length;function s(u){r.push.apply(r,ht(u||[])),o++,o===l&&n(r)}t.forEach(function(u){e(u,s)})}function OD(t,e,n){var r=0,o=t.length;function l(s){if(s&&s.length){n(s);return}var u=r;r=r+1,u<o?e(t[u],l):n([])}l([])}function TK(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,ht(t[n]||[]))}),e}var RD=function(t){Sl(n,t);var e=Cl(n);function n(r,o){var l;return Er(this,n),l=e.call(this,"Async Validation Error"),te(En(l),"errors",void 0),te(En(l),"fields",void 0),l.errors=r,l.fields=o,l}return Or(n)}(dx(Error));function MK(t,e,n,r,o){if(e.first){var l=new Promise(function(g,b){var S=function(O){return r(O),O.length?b(new RD(O,fx(O))):g(o)},x=TK(t);OD(x,n,S)});return l.catch(function(g){return g}),l}var s=e.firstFields===!0?Object.keys(t):e.firstFields||[],u=Object.keys(t),d=u.length,f=0,m=[],p=new Promise(function(g,b){var S=function(w){if(m.push.apply(m,w),f++,f===d)return r(m),m.length?b(new RD(m,fx(m))):g(o)};u.length||(r(m),g(o)),u.forEach(function(x){var w=t[x];s.indexOf(x)!==-1?OD(w,n,S):RK(w,n,S)})});return p.catch(function(g){return g}),p}function $K(t){return!!(t&&t.message!==void 0)}function NK(t,e){for(var n=t,r=0;r<e.length;r++){if(n==null)return n;n=n[e[r]]}return n}function TD(t,e){return function(n){var r;return t.fullFields?r=NK(e,t.fullFields):r=e[n.field||t.fullField],$K(n)?(n.field=n.field||t.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||t.fullField}}}function MD(t,e){if(e){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];Ht(r)==="object"&&Ht(t[n])==="object"?t[n]=re(re({},t[n]),r):t[n]=r}}return t}var od="enum",AK=function(e,n,r,o,l){e[od]=Array.isArray(e[od])?e[od]:[],e[od].indexOf(n)===-1&&o.push(li(l.messages[od],e.fullField,e[od].join(", ")))},DK=function(e,n,r,o,l){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(n)||o.push(li(l.messages.pattern.mismatch,e.fullField,n,e.pattern));else if(typeof e.pattern=="string"){var s=new RegExp(e.pattern);s.test(n)||o.push(li(l.messages.pattern.mismatch,e.fullField,n,e.pattern))}}},IK=function(e,n,r,o,l){var s=typeof e.len=="number",u=typeof e.min=="number",d=typeof e.max=="number",f=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,m=n,p=null,g=typeof n=="number",b=typeof n=="string",S=Array.isArray(n);if(g?p="number":b?p="string":S&&(p="array"),!p)return!1;S&&(m=n.length),b&&(m=n.replace(f,"_").length),s?m!==e.len&&o.push(li(l.messages[p].len,e.fullField,e.len)):u&&!d&&m<e.min?o.push(li(l.messages[p].min,e.fullField,e.min)):d&&!u&&m>e.max?o.push(li(l.messages[p].max,e.fullField,e.max)):u&&d&&(m<e.min||m>e.max)&&o.push(li(l.messages[p].range,e.fullField,e.min,e.max))},bB=function(e,n,r,o,l,s){e.required&&(!r.hasOwnProperty(e.field)||jr(n,s||e.type))&&o.push(li(l.messages.required,e.fullField))},$g;const kK=function(){if($g)return $g;var t="[a-fA-F\\d:]",e=function(N){return N&&N.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(t,")|(?<=").concat(t,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],l="(?:%[0-9a-zA-Z]{1,})?",s="(?:".concat(o.join("|"),")").concat(l),u=new RegExp("(?:^".concat(n,"$)|(?:^").concat(s,"$)")),d=new RegExp("^".concat(n,"$")),f=new RegExp("^".concat(s,"$")),m=function(N){return N&&N.exact?u:new RegExp("(?:".concat(e(N)).concat(n).concat(e(N),")|(?:").concat(e(N)).concat(s).concat(e(N),")"),"g")};m.v4=function($){return $&&$.exact?d:new RegExp("".concat(e($)).concat(n).concat(e($)),"g")},m.v6=function($){return $&&$.exact?f:new RegExp("".concat(e($)).concat(s).concat(e($)),"g")};var p="(?:(?:[a-z]+:)?//)",g="(?:\\S+(?::\\S*)?@)?",b=m.v4().source,S=m.v6().source,x="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",w="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",O="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",E="(?::\\d{2,5})?",M='(?:[/?#][^\\s"]*)?',T="(?:".concat(p,"|www\\.)").concat(g,"(?:localhost|").concat(b,"|").concat(S,"|").concat(x).concat(w).concat(O,")").concat(E).concat(M);return $g=new RegExp("(?:^".concat(T,"$)"),"i"),$g};var $D={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Th={integer:function(e){return Th.number(e)&&parseInt(e,10)===e},float:function(e){return Th.number(e)&&!Th.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return Ht(e)==="object"&&!Th.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match($D.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(kK())},hex:function(e){return typeof e=="string"&&!!e.match($D.hex)}},PK=function(e,n,r,o,l){if(e.required&&n===void 0){bB(e,n,r,o,l);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],u=e.type;s.indexOf(u)>-1?Th[u](n)||o.push(li(l.messages.types[u],e.fullField,e.type)):u&&Ht(n)!==e.type&&o.push(li(l.messages.types[u],e.fullField,e.type))},zK=function(e,n,r,o,l){(/^\s+$/.test(n)||n==="")&&o.push(li(l.messages.whitespace,e.fullField))};const $n={required:bB,whitespace:zK,type:PK,range:IK,enum:AK,pattern:DK};var _K=function(e,n,r,o,l){var s=[],u=e.required||!e.required&&o.hasOwnProperty(e.field);if(u){if(jr(n)&&!e.required)return r();$n.required(e,n,o,s,l)}r(s)},BK=function(e,n,r,o,l){var s=[],u=e.required||!e.required&&o.hasOwnProperty(e.field);if(u){if(n==null&&!e.required)return r();$n.required(e,n,o,s,l,"array"),n!=null&&($n.type(e,n,o,s,l),$n.range(e,n,o,s,l))}r(s)},HK=function(e,n,r,o,l){var s=[],u=e.required||!e.required&&o.hasOwnProperty(e.field);if(u){if(jr(n)&&!e.required)return r();$n.required(e,n,o,s,l),n!==void 0&&$n.type(e,n,o,s,l)}r(s)},jK=function(e,n,r,o,l){var s=[],u=e.required||!e.required&&o.hasOwnProperty(e.field);if(u){if(jr(n,"date")&&!e.required)return r();if($n.required(e,n,o,s,l),!jr(n,"date")){var d;n instanceof Date?d=n:d=new Date(n),$n.type(e,d,o,s,l),d&&$n.range(e,d.getTime(),o,s,l)}}r(s)},LK="enum",VK=function(e,n,r,o,l){var s=[],u=e.required||!e.required&&o.hasOwnProperty(e.field);if(u){if(jr(n)&&!e.required)return r();$n.required(e,n,o,s,l),n!==void 0&&$n[LK](e,n,o,s,l)}r(s)},FK=function(e,n,r,o,l){var s=[],u=e.required||!e.required&&o.hasOwnProperty(e.field);if(u){if(jr(n)&&!e.required)return r();$n.required(e,n,o,s,l),n!==void 0&&($n.type(e,n,o,s,l),$n.range(e,n,o,s,l))}r(s)},UK=function(e,n,r,o,l){var s=[],u=e.required||!e.required&&o.hasOwnProperty(e.field);if(u){if(jr(n)&&!e.required)return r();$n.required(e,n,o,s,l),n!==void 0&&($n.type(e,n,o,s,l),$n.range(e,n,o,s,l))}r(s)},WK=function(e,n,r,o,l){var s=[],u=e.required||!e.required&&o.hasOwnProperty(e.field);if(u){if(jr(n)&&!e.required)return r();$n.required(e,n,o,s,l),n!==void 0&&$n.type(e,n,o,s,l)}r(s)},qK=function(e,n,r,o,l){var s=[],u=e.required||!e.required&&o.hasOwnProperty(e.field);if(u){if(n===""&&(n=void 0),jr(n)&&!e.required)return r();$n.required(e,n,o,s,l),n!==void 0&&($n.type(e,n,o,s,l),$n.range(e,n,o,s,l))}r(s)},GK=function(e,n,r,o,l){var s=[],u=e.required||!e.required&&o.hasOwnProperty(e.field);if(u){if(jr(n)&&!e.required)return r();$n.required(e,n,o,s,l),n!==void 0&&$n.type(e,n,o,s,l)}r(s)},KK=function(e,n,r,o,l){var s=[],u=e.required||!e.required&&o.hasOwnProperty(e.field);if(u){if(jr(n,"string")&&!e.required)return r();$n.required(e,n,o,s,l),jr(n,"string")||$n.pattern(e,n,o,s,l)}r(s)},YK=function(e,n,r,o,l){var s=[],u=e.required||!e.required&&o.hasOwnProperty(e.field);if(u){if(jr(n)&&!e.required)return r();$n.required(e,n,o,s,l),jr(n)||$n.type(e,n,o,s,l)}r(s)},XK=function(e,n,r,o,l){var s=[],u=Array.isArray(n)?"array":Ht(n);$n.required(e,n,o,s,l,u),r(s)},QK=function(e,n,r,o,l){var s=[],u=e.required||!e.required&&o.hasOwnProperty(e.field);if(u){if(jr(n,"string")&&!e.required)return r();$n.required(e,n,o,s,l,"string"),jr(n,"string")||($n.type(e,n,o,s,l),$n.range(e,n,o,s,l),$n.pattern(e,n,o,s,l),e.whitespace===!0&&$n.whitespace(e,n,o,s,l))}r(s)},_C=function(e,n,r,o,l){var s=e.type,u=[],d=e.required||!e.required&&o.hasOwnProperty(e.field);if(d){if(jr(n,s)&&!e.required)return r();$n.required(e,n,o,u,l,s),jr(n,s)||$n.type(e,n,o,u,l)}r(u)};const Ph={string:QK,method:WK,number:qK,boolean:HK,regexp:YK,integer:UK,float:FK,array:BK,object:GK,enum:VK,pattern:KK,date:jK,url:_C,hex:_C,email:_C,required:XK,any:_K};var ym=function(){function t(e){Er(this,t),te(this,"rules",null),te(this,"_messages",ux),this.define(e)}return Or(t,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Ht(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var l=n[o];r.rules[o]=Array.isArray(l)?l:[l]})}},{key:"messages",value:function(n){return n&&(this._messages=MD(cx(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},s=n,u=o,d=l;if(typeof u=="function"&&(d=u,u={}),!this.rules||Object.keys(this.rules).length===0)return d&&d(null,s),Promise.resolve(s);function f(S){var x=[],w={};function O(M){if(Array.isArray(M)){var T;x=(T=x).concat.apply(T,ht(M))}else x.push(M)}for(var E=0;E<S.length;E++)O(S[E]);x.length?(w=fx(x),d(x,w)):d(null,s)}if(u.messages){var m=this.messages();m===ux&&(m=cx()),MD(m,u.messages),u.messages=m}else u.messages=this.messages();var p={},g=u.keys||Object.keys(this.rules);g.forEach(function(S){var x=r.rules[S],w=s[S];x.forEach(function(O){var E=O;typeof E.transform=="function"&&(s===n&&(s=re({},s)),w=s[S]=E.transform(w),w!=null&&(E.type=E.type||(Array.isArray(w)?"array":Ht(w)))),typeof E=="function"?E={validator:E}:E=re({},E),E.validator=r.getValidationMethod(E),E.validator&&(E.field=S,E.fullField=E.fullField||S,E.type=r.getType(E),p[S]=p[S]||[],p[S].push({rule:E,value:w,source:s,field:S}))})});var b={};return MK(p,u,function(S,x){var w=S.rule,O=(w.type==="object"||w.type==="array")&&(Ht(w.fields)==="object"||Ht(w.defaultField)==="object");O=O&&(w.required||!w.required&&S.value),w.field=S.field;function E(A,z){return re(re({},z),{},{fullField:"".concat(w.fullField,".").concat(A),fullFields:w.fullFields?[].concat(ht(w.fullFields),[A]):[A]})}function M(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],z=Array.isArray(A)?A:[A];!u.suppressWarning&&z.length&&t.warning("async-validator:",z),z.length&&w.message!==void 0&&(z=[].concat(w.message));var P=z.map(TD(w,s));if(u.first&&P.length)return b[w.field]=1,x(P);if(!O)x(P);else{if(w.required&&!S.value)return w.message!==void 0?P=[].concat(w.message).map(TD(w,s)):u.error&&(P=[u.error(w,li(u.messages.required,w.field))]),x(P);var B={};w.defaultField&&Object.keys(S.value).map(function(q){B[q]=w.defaultField}),B=re(re({},B),S.rule.fields);var L={};Object.keys(B).forEach(function(q){var H=B[q],J=Array.isArray(H)?H:[H];L[q]=J.map(E.bind(null,q))});var W=new t(L);W.messages(u.messages),S.rule.options&&(S.rule.options.messages=u.messages,S.rule.options.error=u.error),W.validate(S.value,S.rule.options||u,function(q){var H=[];P&&P.length&&H.push.apply(H,ht(P)),q&&q.length&&H.push.apply(H,ht(q)),x(H.length?H:null)})}}var T;if(w.asyncValidator)T=w.asyncValidator(w,S.value,M,S.source,u);else if(w.validator){try{T=w.validator(w,S.value,M,S.source,u)}catch(A){var $,N;($=(N=console).error)===null||$===void 0||$.call(N,A),u.suppressValidatorError||setTimeout(function(){throw A},0),M(A.message)}T===!0?M():T===!1?M(typeof w.message=="function"?w.message(w.fullField||w.field):w.message||"".concat(w.fullField||w.field," fails")):T instanceof Array?M(T):T instanceof Error&&M(T.message)}T&&T.then&&T.then(function(){return M()},function(A){return M(A)})},function(S){f(S)},s)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Ph.hasOwnProperty(n.type))throw new Error(li("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),o=r.indexOf("message");return o!==-1&&r.splice(o,1),r.length===1&&r[0]==="required"?Ph.required:Ph[this.getType(n)]||void 0}}]),t}();te(ym,"register",function(e,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Ph[e]=n});te(ym,"warning",yB);te(ym,"messages",ux);te(ym,"validators",Ph);var ti="'${name}' is not a valid ${type}",SB={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:ti,method:ti,array:ti,object:ti,number:ti,date:ti,boolean:ti,integer:ti,float:ti,regexp:ti,email:ti,url:ti,hex:ti},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},ND=ym;function ZK(t,e){return t.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return e[r]})}var AD="CODE_LOGIC_ERROR";function hx(t,e,n,r,o){return mx.apply(this,arguments)}function mx(){return mx=tu(ko().mark(function t(e,n,r,o,l){var s,u,d,f,m,p,g,b,S;return ko().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return s=re({},r),delete s.ruleIndex,ND.warning=function(){},s.validator&&(u=s.validator,s.validator=function(){try{return u.apply(void 0,arguments)}catch(O){return console.error(O),Promise.reject(AD)}}),d=null,s&&s.type==="array"&&s.defaultField&&(d=s.defaultField,delete s.defaultField),f=new ND(te({},e,[s])),m=gd(SB,o.validateMessages),f.messages(m),p=[],w.prev=10,w.next=13,Promise.resolve(f.validate(te({},e,n),re({},o)));case 13:w.next=18;break;case 15:w.prev=15,w.t0=w.catch(10),w.t0.errors&&(p=w.t0.errors.map(function(O,E){var M=O.message,T=M===AD?m.default:M;return y.isValidElement(T)?y.cloneElement(T,{key:"error_".concat(E)}):T}));case 18:if(!(!p.length&&d)){w.next=23;break}return w.next=21,Promise.all(n.map(function(O,E){return hx("".concat(e,".").concat(E),O,d,o,l)}));case 21:return g=w.sent,w.abrupt("return",g.reduce(function(O,E){return[].concat(ht(O),ht(E))},[]));case 23:return b=re(re({},r),{},{name:e,enum:(r.enum||[]).join(", ")},l),S=p.map(function(O){return typeof O=="string"?ZK(O,b):O}),w.abrupt("return",S);case 26:case"end":return w.stop()}},t,null,[[10,15]])})),mx.apply(this,arguments)}function JK(t,e,n,r,o,l){var s=t.join("."),u=n.map(function(m,p){var g=m.validator,b=re(re({},m),{},{ruleIndex:p});return g&&(b.validator=function(S,x,w){var O=!1,E=function(){for(var $=arguments.length,N=new Array($),A=0;A<$;A++)N[A]=arguments[A];Promise.resolve().then(function(){rn(!O,"Your validator function has already return a promise. `callback` will be ignored."),O||w.apply(void 0,N)})},M=g(S,x,E);O=M&&typeof M.then=="function"&&typeof M.catch=="function",rn(O,"`callback` is deprecated. Please return a promise instead."),O&&M.then(function(){w()}).catch(function(T){w(T||" ")})}),b}).sort(function(m,p){var g=m.warningOnly,b=m.ruleIndex,S=p.warningOnly,x=p.ruleIndex;return!!g==!!S?b-x:g?1:-1}),d;if(o===!0)d=new Promise(function(){var m=tu(ko().mark(function p(g,b){var S,x,w;return ko().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:S=0;case 1:if(!(S<u.length)){E.next=12;break}return x=u[S],E.next=5,hx(s,e,x,r,l);case 5:if(w=E.sent,!w.length){E.next=9;break}return b([{errors:w,rule:x}]),E.abrupt("return");case 9:S+=1,E.next=1;break;case 12:g([]);case 13:case"end":return E.stop()}},p)}));return function(p,g){return m.apply(this,arguments)}}());else{var f=u.map(function(m){return hx(s,e,m,r,l).then(function(p){return{errors:p,rule:m}})});d=(o?tY(f):eY(f)).then(function(m){return Promise.reject(m)})}return d.catch(function(m){return m}),d}function eY(t){return px.apply(this,arguments)}function px(){return px=tu(ko().mark(function t(e){return ko().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(e).then(function(o){var l,s=(l=[]).concat.apply(l,ht(o));return s}));case 1:case"end":return r.stop()}},t)})),px.apply(this,arguments)}function tY(t){return gx.apply(this,arguments)}function gx(){return gx=tu(ko().mark(function t(e){var n;return ko().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(l){e.forEach(function(s){s.then(function(u){u.errors.length&&l([u]),n+=1,n===e.length&&l([])})})}));case 2:case"end":return o.stop()}},t)})),gx.apply(this,arguments)}function $r(t){return sx(t)}function DD(t,e){var n={};return e.forEach(function(r){var o=Ta(t,r);n=Ki(n,r,o)}),n}function wd(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return t&&t.some(function(r){return CB(e,r,n)})}function CB(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!t||!e||!n&&t.length!==e.length?!1:e.every(function(r,o){return t[o]===r})}function nY(t,e){if(t===e)return!0;if(!t&&e||t&&!e||!t||!e||Ht(t)!=="object"||Ht(e)!=="object")return!1;var n=Object.keys(t),r=Object.keys(e),o=new Set([].concat(n,r));return ht(o).every(function(l){var s=t[l],u=e[l];return typeof s=="function"&&typeof u=="function"?!0:s===u})}function rY(t){var e=arguments.length<=1?void 0:arguments[1];return e&&e.target&&Ht(e.target)==="object"&&t in e.target?e.target[t]:e}function ID(t,e,n){var r=t.length;if(e<0||e>=r||n<0||n>=r)return t;var o=t[e],l=e-n;return l>0?[].concat(ht(t.slice(0,n)),[o],ht(t.slice(n,e)),ht(t.slice(e+1,r))):l<0?[].concat(ht(t.slice(0,e)),ht(t.slice(e+1,n+1)),[o],ht(t.slice(n+1,r))):t}var oY=["name"],$i=[];function BC(t,e,n,r,o,l){return typeof t=="function"?t(e,n,"source"in l?{source:l.source}:{}):r!==o}var jw=function(t){Sl(n,t);var e=Cl(n);function n(r){var o;if(Er(this,n),o=e.call(this,r),te(En(o),"state",{resetCount:0}),te(En(o),"cancelRegisterFunc",null),te(En(o),"mounted",!1),te(En(o),"touched",!1),te(En(o),"dirty",!1),te(En(o),"validatePromise",void 0),te(En(o),"prevValidating",void 0),te(En(o),"errors",$i),te(En(o),"warnings",$i),te(En(o),"cancelRegister",function(){var d=o.props,f=d.preserve,m=d.isListField,p=d.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(m,f,$r(p)),o.cancelRegisterFunc=null}),te(En(o),"getNamePath",function(){var d=o.props,f=d.name,m=d.fieldContext,p=m.prefixName,g=p===void 0?[]:p;return f!==void 0?[].concat(ht(g),ht(f)):[]}),te(En(o),"getRules",function(){var d=o.props,f=d.rules,m=f===void 0?[]:f,p=d.fieldContext;return m.map(function(g){return typeof g=="function"?g(p):g})}),te(En(o),"refresh",function(){o.mounted&&o.setState(function(d){var f=d.resetCount;return{resetCount:f+1}})}),te(En(o),"metaCache",null),te(En(o),"triggerMetaEvent",function(d){var f=o.props.onMetaChange;if(f){var m=re(re({},o.getMeta()),{},{destroy:d});Dd(o.metaCache,m)||f(m),o.metaCache=m}else o.metaCache=null}),te(En(o),"onStoreChange",function(d,f,m){var p=o.props,g=p.shouldUpdate,b=p.dependencies,S=b===void 0?[]:b,x=p.onReset,w=m.store,O=o.getNamePath(),E=o.getValue(d),M=o.getValue(w),T=f&&wd(f,O);switch(m.type==="valueUpdate"&&m.source==="external"&&!Dd(E,M)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=$i,o.warnings=$i,o.triggerMetaEvent()),m.type){case"reset":if(!f||T){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=$i,o.warnings=$i,o.triggerMetaEvent(),x==null||x(),o.refresh();return}break;case"remove":{if(g&&BC(g,d,w,E,M,m)){o.reRender();return}break}case"setField":{var $=m.data;if(T){"touched"in $&&(o.touched=$.touched),"validating"in $&&!("originRCField"in $)&&(o.validatePromise=$.validating?Promise.resolve([]):null),"errors"in $&&(o.errors=$.errors||$i),"warnings"in $&&(o.warnings=$.warnings||$i),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in $&&wd(f,O,!0)){o.reRender();return}if(g&&!O.length&&BC(g,d,w,E,M,m)){o.reRender();return}break}case"dependenciesUpdate":{var N=S.map($r);if(N.some(function(A){return wd(m.relatedFields,A)})){o.reRender();return}break}default:if(T||(!S.length||O.length||g)&&BC(g,d,w,E,M,m)){o.reRender();return}break}g===!0&&o.reRender()}),te(En(o),"validateRules",function(d){var f=o.getNamePath(),m=o.getValue(),p=d||{},g=p.triggerName,b=p.validateOnly,S=b===void 0?!1:b,x=Promise.resolve().then(tu(ko().mark(function w(){var O,E,M,T,$,N,A;return ko().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(o.mounted){P.next=2;break}return P.abrupt("return",[]);case 2:if(O=o.props,E=O.validateFirst,M=E===void 0?!1:E,T=O.messageVariables,$=O.validateDebounce,N=o.getRules(),g&&(N=N.filter(function(B){return B}).filter(function(B){var L=B.validateTrigger;if(!L)return!0;var W=sx(L);return W.includes(g)})),!($&&g)){P.next=10;break}return P.next=8,new Promise(function(B){setTimeout(B,$)});case 8:if(o.validatePromise===x){P.next=10;break}return P.abrupt("return",[]);case 10:return A=JK(f,m,N,d,M,T),A.catch(function(B){return B}).then(function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$i;if(o.validatePromise===x){var L;o.validatePromise=null;var W=[],q=[];(L=B.forEach)===null||L===void 0||L.call(B,function(H){var J=H.rule.warningOnly,_=H.errors,j=_===void 0?$i:_;J?q.push.apply(q,ht(j)):W.push.apply(W,ht(j))}),o.errors=W,o.warnings=q,o.triggerMetaEvent(),o.reRender()}}),P.abrupt("return",A);case 13:case"end":return P.stop()}},w)})));return S||(o.validatePromise=x,o.dirty=!0,o.errors=$i,o.warnings=$i,o.triggerMetaEvent(),o.reRender()),x}),te(En(o),"isFieldValidating",function(){return!!o.validatePromise}),te(En(o),"isFieldTouched",function(){return o.touched}),te(En(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var d=o.props.fieldContext,f=d.getInternalHooks(Ac),m=f.getInitialValue;return m(o.getNamePath())!==void 0}),te(En(o),"getErrors",function(){return o.errors}),te(En(o),"getWarnings",function(){return o.warnings}),te(En(o),"isListField",function(){return o.props.isListField}),te(En(o),"isList",function(){return o.props.isList}),te(En(o),"isPreserve",function(){return o.props.preserve}),te(En(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var d={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return d}),te(En(o),"getOnlyChild",function(d){if(typeof d=="function"){var f=o.getMeta();return re(re({},o.getOnlyChild(d(o.getControlled(),f,o.props.fieldContext))),{},{isFunction:!0})}var m=ci(d);return m.length!==1||!y.isValidElement(m[0])?{child:m,isFunction:!1}:{child:m[0],isFunction:!1}}),te(En(o),"getValue",function(d){var f=o.props.fieldContext.getFieldsValue,m=o.getNamePath();return Ta(d||f(!0),m)}),te(En(o),"getControlled",function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=o.props,m=f.name,p=f.trigger,g=f.validateTrigger,b=f.getValueFromEvent,S=f.normalize,x=f.valuePropName,w=f.getValueProps,O=f.fieldContext,E=g!==void 0?g:O.validateTrigger,M=o.getNamePath(),T=O.getInternalHooks,$=O.getFieldsValue,N=T(Ac),A=N.dispatch,z=o.getValue(),P=w||function(H){return te({},x,H)},B=d[p],L=m!==void 0?P(z):{};L&&Object.keys(L).forEach(function(H){rn(typeof L[H]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(H,")"))});var W=re(re({},d),L);W[p]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var H,J=arguments.length,_=new Array(J),j=0;j<J;j++)_[j]=arguments[j];b?H=b.apply(void 0,_):H=rY.apply(void 0,[x].concat(_)),S&&(H=S(H,z,$(!0))),H!==z&&A({type:"updateValue",namePath:M,value:H}),B&&B.apply(void 0,_)};var q=sx(E||[]);return q.forEach(function(H){var J=W[H];W[H]=function(){J&&J.apply(void 0,arguments);var _=o.props.rules;_&&_.length&&A({type:"validateField",namePath:M,triggerName:H})}}),W}),r.fieldContext){var l=r.fieldContext.getInternalHooks,s=l(Ac),u=s.initEntityValue;u(En(o))}return o}return Or(n,[{key:"componentDidMount",value:function(){var o=this.props,l=o.shouldUpdate,s=o.fieldContext;if(this.mounted=!0,s){var u=s.getInternalHooks,d=u(Ac),f=d.registerField;this.cancelRegisterFunc=f(this)}l===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,l=this.props.children,s=this.getOnlyChild(l),u=s.child,d=s.isFunction,f;return d?f=u:y.isValidElement(u)?f=y.cloneElement(u,this.getControlled(u.props)):(rn(!u,"`children` of Field is not validate ReactElement."),f=u),y.createElement(y.Fragment,{key:o},f)}}]),n}(y.Component);te(jw,"contextType",jd);te(jw,"defaultProps",{trigger:"onChange",valuePropName:"value"});function xB(t){var e,n=t.name,r=an(t,oY),o=y.useContext(jd),l=y.useContext(Nv),s=n!==void 0?$r(n):void 0,u=(e=r.isListField)!==null&&e!==void 0?e:!!l,d="keep";return u||(d="_".concat((s||[]).join("_"))),r.preserve===!1&&u&&s.length<=1&&rn(!1,"`preserve` should not apply on Form.List fields."),y.createElement(jw,yt({key:d,name:s,isListField:u},r,{fieldContext:o}))}function iY(t){var e=t.name,n=t.initialValue,r=t.children,o=t.rules,l=t.validateTrigger,s=t.isListField,u=y.useContext(jd),d=y.useContext(Nv),f=y.useRef({keys:[],id:0}),m=f.current,p=y.useMemo(function(){var x=$r(u.prefixName)||[];return[].concat(ht(x),ht($r(e)))},[u.prefixName,e]),g=y.useMemo(function(){return re(re({},u),{},{prefixName:p})},[u,p]),b=y.useMemo(function(){return{getKey:function(w){var O=p.length,E=w[O];return[m.keys[E],w.slice(O+1)]}}},[p]);if(typeof r!="function")return rn(!1,"Form.List only accepts function as children."),null;var S=function(w,O,E){var M=E.source;return M==="internal"?!1:w!==O};return y.createElement(Nv.Provider,{value:b},y.createElement(jd.Provider,{value:g},y.createElement(xB,{name:[],shouldUpdate:S,rules:o,validateTrigger:l,initialValue:n,isList:!0,isListField:s??!!d},function(x,w){var O=x.value,E=O===void 0?[]:O,M=x.onChange,T=u.getFieldValue,$=function(){var P=T(p||[]);return P||[]},N={add:function(P,B){var L=$();B>=0&&B<=L.length?(m.keys=[].concat(ht(m.keys.slice(0,B)),[m.id],ht(m.keys.slice(B))),M([].concat(ht(L.slice(0,B)),[P],ht(L.slice(B))))):((B<0||B>L.length)&&rn(!1,"The second parameter of the add function should be a valid positive number."),m.keys=[].concat(ht(m.keys),[m.id]),M([].concat(ht(L),[P]))),m.id+=1},remove:function(P){var B=$(),L=new Set(Array.isArray(P)?P:[P]);L.size<=0||(m.keys=m.keys.filter(function(W,q){return!L.has(q)}),M(B.filter(function(W,q){return!L.has(q)})))},move:function(P,B){if(P!==B){var L=$();P<0||P>=L.length||B<0||B>=L.length||(m.keys=ID(m.keys,P,B),M(ID(L,P,B)))}}},A=E||[];return Array.isArray(A)||(A=[],rn(!1,"Current value of '".concat(p.join(" > "),"' is not an array type."))),r(A.map(function(z,P){var B=m.keys[P];return B===void 0&&(m.keys[P]=m.id,B=m.keys[P],m.id+=1),{name:P,key:B,isListField:!0}}),N,w)})))}function aY(t){var e=!1,n=t.length,r=[];return t.length?new Promise(function(o,l){t.forEach(function(s,u){s.catch(function(d){return e=!0,d}).then(function(d){n-=1,r[u]=d,!(n>0)&&(e&&l(r),o(r))})})}):Promise.resolve([])}var wB="__@field_split__";function HC(t){return t.map(function(e){return"".concat(Ht(e),":").concat(e)}).join(wB)}var id=function(){function t(){Er(this,t),te(this,"kvs",new Map)}return Or(t,[{key:"set",value:function(n,r){this.kvs.set(HC(n),r)}},{key:"get",value:function(n){return this.kvs.get(HC(n))}},{key:"update",value:function(n,r){var o=this.get(n),l=r(o);l?this.set(n,l):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(HC(n))}},{key:"map",value:function(n){return ht(this.kvs.entries()).map(function(r){var o=Re(r,2),l=o[0],s=o[1],u=l.split(wB);return n({key:u.map(function(d){var f=d.match(/^([^:]*):(.*)$/),m=Re(f,3),p=m[1],g=m[2];return p==="number"?Number(g):g}),value:s})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,l=r.value;return n[o.join(".")]=l,null}),n}}]),t}(),lY=["name"],sY=Or(function t(e){var n=this;Er(this,t),te(this,"formHooked",!1),te(this,"forceRootUpdate",void 0),te(this,"subscribable",!0),te(this,"store",{}),te(this,"fieldEntities",[]),te(this,"initialValues",{}),te(this,"callbacks",{}),te(this,"validateMessages",null),te(this,"preserve",null),te(this,"lastValidatePromise",null),te(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),te(this,"getInternalHooks",function(r){return r===Ac?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(rn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),te(this,"useSubscribe",function(r){n.subscribable=r}),te(this,"prevWithoutPreserves",null),te(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var l,s=gd(r,n.store);(l=n.prevWithoutPreserves)===null||l===void 0||l.map(function(u){var d=u.key;s=Ki(s,d,Ta(r,d))}),n.prevWithoutPreserves=null,n.updateStore(s)}}),te(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new id;n.getFieldEntities(!0).forEach(function(l){n.isMergedPreserve(l.isPreserve())||o.set(l.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),te(this,"getInitialValue",function(r){var o=Ta(n.initialValues,r);return r.length?gd(o):o}),te(this,"setCallbacks",function(r){n.callbacks=r}),te(this,"setValidateMessages",function(r){n.validateMessages=r}),te(this,"setPreserve",function(r){n.preserve=r}),te(this,"watchList",[]),te(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),te(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),l=n.getFieldsValue(!0);n.watchList.forEach(function(s){s(o,l,r)})}}),te(this,"timeoutId",null),te(this,"warningUnhooked",function(){!n.timeoutId&&typeof window<"u"&&(n.timeoutId=setTimeout(function(){n.timeoutId=null,n.formHooked||rn(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),te(this,"updateStore",function(r){n.store=r}),te(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),te(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new id;return n.getFieldEntities(r).forEach(function(l){var s=l.getNamePath();o.set(s,l)}),o}),te(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(l){var s=$r(l);return o.get(s)||{INVALIDATE_NAME_PATH:$r(l)}})}),te(this,"getFieldsValue",function(r,o){n.warningUnhooked();var l,s,u;if(r===!0||Array.isArray(r)?(l=r,s=o):r&&Ht(r)==="object"&&(u=r.strict,s=r.filter),l===!0&&!s)return n.store;var d=n.getFieldEntitiesForNamePathList(Array.isArray(l)?l:null),f=[];return d.forEach(function(m){var p,g,b="INVALIDATE_NAME_PATH"in m?m.INVALIDATE_NAME_PATH:m.getNamePath();if(u){var S,x;if((S=(x=m).isList)!==null&&S!==void 0&&S.call(x))return}else if(!l&&(p=(g=m).isListField)!==null&&p!==void 0&&p.call(g))return;if(!s)f.push(b);else{var w="getMeta"in m?m.getMeta():null;s(w)&&f.push(b)}}),DD(n.store,f.map($r))}),te(this,"getFieldValue",function(r){n.warningUnhooked();var o=$r(r);return Ta(n.store,o)}),te(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(l,s){return l&&!("INVALIDATE_NAME_PATH"in l)?{name:l.getNamePath(),errors:l.getErrors(),warnings:l.getWarnings()}:{name:$r(r[s]),errors:[],warnings:[]}})}),te(this,"getFieldError",function(r){n.warningUnhooked();var o=$r(r),l=n.getFieldsError([o])[0];return l.errors}),te(this,"getFieldWarning",function(r){n.warningUnhooked();var o=$r(r),l=n.getFieldsError([o])[0];return l.warnings}),te(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),l=0;l<r;l++)o[l]=arguments[l];var s=o[0],u=o[1],d,f=!1;o.length===0?d=null:o.length===1?Array.isArray(s)?(d=s.map($r),f=!1):(d=null,f=s):(d=s.map($r),f=u);var m=n.getFieldEntities(!0),p=function(w){return w.isFieldTouched()};if(!d)return f?m.every(function(x){return p(x)||x.isList()}):m.some(p);var g=new id;d.forEach(function(x){g.set(x,[])}),m.forEach(function(x){var w=x.getNamePath();d.forEach(function(O){O.every(function(E,M){return w[M]===E})&&g.update(O,function(E){return[].concat(ht(E),[x])})})});var b=function(w){return w.some(p)},S=g.map(function(x){var w=x.value;return w});return f?S.every(b):S.some(b)}),te(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),te(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(s){return s.isFieldValidating()});var l=r.map($r);return o.some(function(s){var u=s.getNamePath();return wd(l,u)&&s.isFieldValidating()})}),te(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),te(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new id,l=n.getFieldEntities(!0);l.forEach(function(d){var f=d.props.initialValue,m=d.getNamePath();if(f!==void 0){var p=o.get(m)||new Set;p.add({entity:d,value:f}),o.set(m,p)}});var s=function(f){f.forEach(function(m){var p=m.props.initialValue;if(p!==void 0){var g=m.getNamePath(),b=n.getInitialValue(g);if(b!==void 0)rn(!1,"Form already set 'initialValues' with path '".concat(g.join("."),"'. Field can not overwrite it."));else{var S=o.get(g);if(S&&S.size>1)rn(!1,"Multiple Field with path '".concat(g.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(S){var x=n.getFieldValue(g),w=m.isListField();!w&&(!r.skipExist||x===void 0)&&n.updateStore(Ki(n.store,g,ht(S)[0].value))}}}})},u;r.entities?u=r.entities:r.namePathList?(u=[],r.namePathList.forEach(function(d){var f=o.get(d);if(f){var m;(m=u).push.apply(m,ht(ht(f).map(function(p){return p.entity})))}})):u=l,s(u)}),te(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(gd(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var l=r.map($r);l.forEach(function(s){var u=n.getInitialValue(s);n.updateStore(Ki(n.store,s,u))}),n.resetWithFieldInitialValue({namePathList:l}),n.notifyObservers(o,l,{type:"reset"}),n.notifyWatch(l)}),te(this,"setFields",function(r){n.warningUnhooked();var o=n.store,l=[];r.forEach(function(s){var u=s.name,d=an(s,lY),f=$r(u);l.push(f),"value"in d&&n.updateStore(Ki(n.store,f,d.value)),n.notifyObservers(o,[f],{type:"setField",data:s})}),n.notifyWatch(l)}),te(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(l){var s=l.getNamePath(),u=l.getMeta(),d=re(re({},u),{},{name:s,value:n.getFieldValue(s)});return Object.defineProperty(d,"originRCField",{value:!0}),d});return o}),te(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var l=r.getNamePath(),s=Ta(n.store,l);s===void 0&&n.updateStore(Ki(n.store,l,o))}}),te(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),te(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var l=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(l,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(s,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(p){return p!==r}),!n.isMergedPreserve(u)&&(!s||d.length>1)){var f=s?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==f&&n.fieldEntities.every(function(p){return!CB(p.getNamePath(),o)})){var m=n.store;n.updateStore(Ki(m,o,f,!0)),n.notifyObservers(m,[o],{type:"remove"}),n.triggerDependenciesUpdate(m,o)}}n.notifyWatch([o])}}),te(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,l=r.value;n.updateValue(o,l);break}case"validateField":{var s=r.namePath,u=r.triggerName;n.validateFields([s],{triggerName:u});break}}}),te(this,"notifyObservers",function(r,o,l){if(n.subscribable){var s=re(re({},l),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(u){var d=u.onStoreChange;d(r,o,s)})}else n.forceRootUpdate()}),te(this,"triggerDependenciesUpdate",function(r,o){var l=n.getDependencyChildrenFields(o);return l.length&&n.validateFields(l),n.notifyObservers(r,l,{type:"dependenciesUpdate",relatedFields:[o].concat(ht(l))}),l}),te(this,"updateValue",function(r,o){var l=$r(r),s=n.store;n.updateStore(Ki(n.store,l,o)),n.notifyObservers(s,[l],{type:"valueUpdate",source:"internal"}),n.notifyWatch([l]);var u=n.triggerDependenciesUpdate(s,l),d=n.callbacks.onValuesChange;if(d){var f=DD(n.store,[l]);d(f,n.getFieldsValue())}n.triggerOnFieldsChange([l].concat(ht(u)))}),te(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var l=gd(n.store,r);n.updateStore(l)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),te(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o,errors:[],warnings:[]}])}),te(this,"getDependencyChildrenFields",function(r){var o=new Set,l=[],s=new id;n.getFieldEntities().forEach(function(d){var f=d.props.dependencies;(f||[]).forEach(function(m){var p=$r(m);s.update(p,function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return g.add(d),g})})});var u=function d(f){var m=s.get(f)||new Set;m.forEach(function(p){if(!o.has(p)){o.add(p);var g=p.getNamePath();p.isFieldDirty()&&g.length&&(l.push(g),d(g))}})};return u(r),l}),te(this,"triggerOnFieldsChange",function(r,o){var l=n.callbacks.onFieldsChange;if(l){var s=n.getFields();if(o){var u=new id;o.forEach(function(f){var m=f.name,p=f.errors;u.set(m,p)}),s.forEach(function(f){f.errors=u.get(f.name)||f.errors})}var d=s.filter(function(f){var m=f.name;return wd(r,m)});d.length&&l(d,s)}}),te(this,"validateFields",function(r,o){n.warningUnhooked();var l,s;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(l=r,s=o):s=r;var u=!!l,d=u?l.map($r):[],f=[],m=String(Date.now()),p=new Set,g=s||{},b=g.recursive,S=g.dirty;n.getFieldEntities(!0).forEach(function(E){if(u||d.push(E.getNamePath()),!(!E.props.rules||!E.props.rules.length)&&!(S&&!E.isFieldDirty())){var M=E.getNamePath();if(p.add(M.join(m)),!u||wd(d,M,b)){var T=E.validateRules(re({validateMessages:re(re({},SB),n.validateMessages)},s));f.push(T.then(function(){return{name:M,errors:[],warnings:[]}}).catch(function($){var N,A=[],z=[];return(N=$.forEach)===null||N===void 0||N.call($,function(P){var B=P.rule.warningOnly,L=P.errors;B?z.push.apply(z,ht(L)):A.push.apply(A,ht(L))}),A.length?Promise.reject({name:M,errors:A,warnings:z}):{name:M,errors:A,warnings:z}}))}}});var x=aY(f);n.lastValidatePromise=x,x.catch(function(E){return E}).then(function(E){var M=E.map(function(T){var $=T.name;return $});n.notifyObservers(n.store,M,{type:"validateFinish"}),n.triggerOnFieldsChange(M,E)});var w=x.then(function(){return n.lastValidatePromise===x?Promise.resolve(n.getFieldsValue(d)):Promise.reject([])}).catch(function(E){var M=E.filter(function(T){return T&&T.errors.length});return Promise.reject({values:n.getFieldsValue(d),errorFields:M,outOfDate:n.lastValidatePromise!==x})});w.catch(function(E){return E});var O=d.filter(function(E){return p.has(E.join(m))});return n.triggerOnFieldsChange(O),w}),te(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(l){console.error(l)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=e});function EB(t){var e=y.useRef(),n=y.useState({}),r=Re(n,2),o=r[1];if(!e.current)if(t)e.current=t;else{var l=function(){o({})},s=new sY(l);e.current=s.getForm()}return[e.current]}var vx=y.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),cY=function(e){var n=e.validateMessages,r=e.onFormChange,o=e.onFormFinish,l=e.children,s=y.useContext(vx),u=y.useRef({});return y.createElement(vx.Provider,{value:re(re({},s),{},{validateMessages:re(re({},s.validateMessages),n),triggerFormChange:function(f,m){r&&r(f,{changedFields:m,forms:u.current}),s.triggerFormChange(f,m)},triggerFormFinish:function(f,m){o&&o(f,{values:m,forms:u.current}),s.triggerFormFinish(f,m)},registerForm:function(f,m){f&&(u.current=re(re({},u.current),{},te({},f,m))),s.registerForm(f,m)},unregisterForm:function(f){var m=re({},u.current);delete m[f],u.current=m,s.unregisterForm(f)}})},l)},uY=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],dY=function(e,n){var r=e.name,o=e.initialValues,l=e.fields,s=e.form,u=e.preserve,d=e.children,f=e.component,m=f===void 0?"form":f,p=e.validateMessages,g=e.validateTrigger,b=g===void 0?"onChange":g,S=e.onValuesChange,x=e.onFieldsChange,w=e.onFinish,O=e.onFinishFailed,E=e.clearOnDestroy,M=an(e,uY),T=y.useRef(null),$=y.useContext(vx),N=EB(s),A=Re(N,1),z=A[0],P=z.getInternalHooks(Ac),B=P.useSubscribe,L=P.setInitialValues,W=P.setCallbacks,q=P.setValidateMessages,H=P.setPreserve,J=P.destroyForm;y.useImperativeHandle(n,function(){return re(re({},z),{},{nativeElement:T.current})}),y.useEffect(function(){return $.registerForm(r,z),function(){$.unregisterForm(r)}},[$,z,r]),q(re(re({},$.validateMessages),p)),W({onValuesChange:S,onFieldsChange:function(Q){if($.triggerFormChange(r,Q),x){for(var se=arguments.length,de=new Array(se>1?se-1:0),xe=1;xe<se;xe++)de[xe-1]=arguments[xe];x.apply(void 0,[Q].concat(de))}},onFinish:function(Q){$.triggerFormFinish(r,Q),w&&w(Q)},onFinishFailed:O}),H(u);var _=y.useRef(null);L(o,!_.current),_.current||(_.current=!0),y.useEffect(function(){return function(){return J(E)}},[]);var j,V=typeof d=="function";if(V){var G=z.getFieldsValue(!0);j=d(G,z)}else j=d;B(!V);var K=y.useRef();y.useEffect(function(){nY(K.current||[],l||[])||z.setFields(l||[]),K.current=l},[l,z]);var Y=y.useMemo(function(){return re(re({},z),{},{validateTrigger:b})},[z,b]),ne=y.createElement(Nv.Provider,{value:null},y.createElement(jd.Provider,{value:Y},j));return m===!1?ne:y.createElement(m,yt({},M,{ref:T,onSubmit:function(Q){Q.preventDefault(),Q.stopPropagation(),z.submit()},onReset:function(Q){var se;Q.preventDefault(),z.resetFields(),(se=M.onReset)===null||se===void 0||se.call(M,Q)}}),ne)};function kD(t){try{return JSON.stringify(t)}catch{return Math.random()}}var fY=function(t){var e=t.join("__RC_FIELD_FORM_SPLIT__"),n=y.useRef(e);rn(n.current===e,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")};function hY(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],o=e[1],l=o===void 0?{}:o,s=SK(l)?{form:l}:l,u=s.form,d=y.useState(),f=Re(d,2),m=f[0],p=f[1],g=y.useMemo(function(){return kD(m)},[m]),b=y.useRef(g);b.current=g;var S=y.useContext(jd),x=u||S,w=x&&x._init;rn(e.length===2?u?w:!0:w,"useWatch requires a form instance since it can not auto detect from context.");var O=$r(r),E=y.useRef(O);return E.current=O,fY(O),y.useEffect(function(){if(w){var M=x.getFieldsValue,T=x.getInternalHooks,$=T(Ac),N=$.registerWatch,A=function(L,W){var q=s.preserve?W:L;return typeof r=="function"?r(q):Ta(q,E.current)},z=N(function(B,L){var W=A(B,L),q=kD(W);b.current!==q&&(b.current=q,p(W))}),P=A(M(),M(!0));return m!==P&&p(P),z}},[w]),m}var mY=y.forwardRef(dY),bm=mY;bm.FormProvider=cY;bm.Field=xB;bm.List=iY;bm.useForm=EB;bm.useWatch=hY;const zi=y.createContext({});zi.displayName="FormItemInputContext";const pY=t=>{let{children:e,status:n,override:r}=t;const o=y.useContext(zi),l=y.useMemo(()=>{const s=Object.assign({},o);return r&&delete s.isFormItemInput,n&&(delete s.status,delete s.hasFeedback,delete s.feedbackIcon),s},[n,r,o]);return y.createElement(zi.Provider,{value:l},e)},gY=y.createContext(void 0),Es=t=>{const{space:e,form:n,children:r}=t;if(r==null)return null;let o=r;return n&&(o=ee.createElement(pY,{override:!0,status:!0},o)),e&&(o=ee.createElement(mq,null,o)),o};function PD(t){if(t)return{closable:t.closable,closeIcon:t.closeIcon}}function zD(t){const{closable:e,closeIcon:n}=t||{};return ee.useMemo(()=>{if(!e&&(e===!1||n===!1||n===null))return!1;if(e===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return e&&typeof e=="object"&&(r=Object.assign(Object.assign({},r),e)),r},[e,n])}function _D(){const t={};for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.forEach(o=>{o&&Object.keys(o).forEach(l=>{o[l]!==void 0&&(t[l]=o[l])})}),t}const vY={};function yY(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:vY;const r=zD(t),o=zD(e),l=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,s=ee.useMemo(()=>Object.assign({closeIcon:ee.createElement(dm,null)},n),[n]),u=ee.useMemo(()=>r===!1?!1:r?_D(s,o,r):o===!1?!1:o?_D(s,o):s.closable?s:!1,[r,o,s]);return ee.useMemo(()=>{if(u===!1)return[!1,null,l];const{closeIconRender:d}=s,{closeIcon:f}=u;let m=f;if(m!=null){d&&(m=d(f));const p=Da(u,!0);Object.keys(p).length&&(m=ee.isValidElement(m)?ee.cloneElement(m,p):ee.createElement("span",Object.assign({},p),m))}return[!0,m,l]},[u,s])}const bY=()=>yo()&&window.document.documentElement,Cy=t=>{const{prefixCls:e,className:n,style:r,size:o,shape:l}=t,s=Se({[`${e}-lg`]:o==="large",[`${e}-sm`]:o==="small"}),u=Se({[`${e}-circle`]:l==="circle",[`${e}-square`]:l==="square",[`${e}-round`]:l==="round"}),d=y.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return y.createElement("span",{className:Se(e,s,u,n),style:Object.assign(Object.assign({},d),r)})},SY=new jn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),xy=t=>({height:t,lineHeight:Ee(t)}),Ed=t=>Object.assign({width:t},xy(t)),CY=t=>({background:t.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:SY,animationDuration:t.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),jC=(t,e)=>Object.assign({width:e(t).mul(5).equal(),minWidth:e(t).mul(5).equal()},xy(t)),xY=t=>{const{skeletonAvatarCls:e,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:l}=t;return{[e]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Ed(r)),[`${e}${e}-circle`]:{borderRadius:"50%"},[`${e}${e}-lg`]:Object.assign({},Ed(o)),[`${e}${e}-sm`]:Object.assign({},Ed(l))}},wY=t=>{const{controlHeight:e,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:l,gradientFromColor:s,calc:u}=t;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:s,borderRadius:n},jC(e,u)),[`${r}-lg`]:Object.assign({},jC(o,u)),[`${r}-sm`]:Object.assign({},jC(l,u))}},BD=t=>Object.assign({width:t},xy(t)),EY=t=>{const{skeletonImageCls:e,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:l}=t;return{[e]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},BD(l(n).mul(2).equal())),{[`${e}-path`]:{fill:"#bfbfbf"},[`${e}-svg`]:Object.assign(Object.assign({},BD(n)),{maxWidth:l(n).mul(4).equal(),maxHeight:l(n).mul(4).equal()}),[`${e}-svg${e}-svg-circle`]:{borderRadius:"50%"}}),[`${e}${e}-circle`]:{borderRadius:"50%"}}},LC=(t,e,n)=>{const{skeletonButtonCls:r}=t;return{[`${n}${r}-circle`]:{width:e,minWidth:e,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:e}}},VC=(t,e)=>Object.assign({width:e(t).mul(2).equal(),minWidth:e(t).mul(2).equal()},xy(t)),OY=t=>{const{borderRadiusSM:e,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:l,gradientFromColor:s,calc:u}=t;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:s,borderRadius:e,width:u(r).mul(2).equal(),minWidth:u(r).mul(2).equal()},VC(r,u))},LC(t,r,n)),{[`${n}-lg`]:Object.assign({},VC(o,u))}),LC(t,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},VC(l,u))}),LC(t,l,`${n}-sm`))},RY=t=>{const{componentCls:e,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:l,skeletonInputCls:s,skeletonImageCls:u,controlHeight:d,controlHeightLG:f,controlHeightSM:m,gradientFromColor:p,padding:g,marginSM:b,borderRadius:S,titleHeight:x,blockRadius:w,paragraphLiHeight:O,controlHeightXS:E,paragraphMarginTop:M}=t;return{[e]:{display:"table",width:"100%",[`${e}-header`]:{display:"table-cell",paddingInlineEnd:g,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:p},Ed(d)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Ed(f)),[`${n}-sm`]:Object.assign({},Ed(m))},[`${e}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:x,background:p,borderRadius:w,[`+ ${o}`]:{marginBlockStart:m}},[o]:{padding:0,"> li":{width:"100%",height:O,listStyle:"none",background:p,borderRadius:w,"+ li":{marginBlockStart:E}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${e}-content`]:{[`${r}, ${o} > li`]:{borderRadius:S}}},[`${e}-with-avatar ${e}-content`]:{[r]:{marginBlockStart:b,[`+ ${o}`]:{marginBlockStart:M}}},[`${e}${e}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},OY(t)),xY(t)),wY(t)),EY(t)),[`${e}${e}-block`]:{width:"100%",[l]:{width:"100%"},[s]:{width:"100%"}},[`${e}${e}-active`]:{[`
577
- ${r},
578
- ${o} > li,
579
- ${n},
580
- ${l},
581
- ${s},
582
- ${u}
583
- `]:Object.assign({},CY(t))}}},TY=t=>{const{colorFillContent:e,colorFill:n}=t,r=e,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:t.controlHeight/2,blockRadius:t.borderRadiusSM,paragraphMarginTop:t.marginLG+t.marginXXS,paragraphLiHeight:t.controlHeight/2}},Ud=pr("Skeleton",t=>{const{componentCls:e,calc:n}=t,r=In(t,{skeletonAvatarCls:`${e}-avatar`,skeletonTitleCls:`${e}-title`,skeletonParagraphCls:`${e}-paragraph`,skeletonButtonCls:`${e}-button`,skeletonInputCls:`${e}-input`,skeletonImageCls:`${e}-image`,imageSizeBase:n(t.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${t.gradientFromColor} 25%, ${t.gradientToColor} 37%, ${t.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[RY(r)]},TY,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),MY=t=>{const{prefixCls:e,className:n,rootClassName:r,active:o,shape:l="circle",size:s="default"}=t,{getPrefixCls:u}=y.useContext(Tn),d=u("skeleton",e),[f,m,p]=Ud(d),g=Hr(t,["prefixCls","className"]),b=Se(d,`${d}-element`,{[`${d}-active`]:o},n,r,m,p);return f(y.createElement("div",{className:b},y.createElement(Cy,Object.assign({prefixCls:`${d}-avatar`,shape:l,size:s},g))))},$Y=t=>{const{prefixCls:e,className:n,rootClassName:r,active:o,block:l=!1,size:s="default"}=t,{getPrefixCls:u}=y.useContext(Tn),d=u("skeleton",e),[f,m,p]=Ud(d),g=Hr(t,["prefixCls"]),b=Se(d,`${d}-element`,{[`${d}-active`]:o,[`${d}-block`]:l},n,r,m,p);return f(y.createElement("div",{className:b},y.createElement(Cy,Object.assign({prefixCls:`${d}-button`,size:s},g))))},NY="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",AY=t=>{const{prefixCls:e,className:n,rootClassName:r,style:o,active:l}=t,{getPrefixCls:s}=y.useContext(Tn),u=s("skeleton",e),[d,f,m]=Ud(u),p=Se(u,`${u}-element`,{[`${u}-active`]:l},n,r,f,m);return d(y.createElement("div",{className:p},y.createElement("div",{className:Se(`${u}-image`,n),style:o},y.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${u}-image-svg`},y.createElement("title",null,"Image placeholder"),y.createElement("path",{d:NY,className:`${u}-image-path`})))))},DY=t=>{const{prefixCls:e,className:n,rootClassName:r,active:o,block:l,size:s="default"}=t,{getPrefixCls:u}=y.useContext(Tn),d=u("skeleton",e),[f,m,p]=Ud(d),g=Hr(t,["prefixCls"]),b=Se(d,`${d}-element`,{[`${d}-active`]:o,[`${d}-block`]:l},n,r,m,p);return f(y.createElement("div",{className:b},y.createElement(Cy,Object.assign({prefixCls:`${d}-input`,size:s},g))))},IY=t=>{const{prefixCls:e,className:n,rootClassName:r,style:o,active:l,children:s}=t,{getPrefixCls:u}=y.useContext(Tn),d=u("skeleton",e),[f,m,p]=Ud(d),g=Se(d,`${d}-element`,{[`${d}-active`]:l},m,n,r,p);return f(y.createElement("div",{className:g},y.createElement("div",{className:Se(`${d}-image`,n),style:o},s)))},kY=(t,e)=>{const{width:n,rows:r=2}=e;if(Array.isArray(n))return n[t];if(r-1===t)return n},PY=t=>{const{prefixCls:e,className:n,style:r,rows:o=0}=t,l=Array.from({length:o}).map((s,u)=>y.createElement("li",{key:u,style:{width:kY(u,t)}}));return y.createElement("ul",{className:Se(e,n),style:r},l)},zY=t=>{let{prefixCls:e,className:n,width:r,style:o}=t;return y.createElement("h3",{className:Se(e,n),style:Object.assign({width:r},o)})};function FC(t){return t&&typeof t=="object"?t:{}}function _Y(t,e){return t&&!e?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function BY(t,e){return!t&&e?{width:"38%"}:t&&e?{width:"50%"}:{}}function HY(t,e){const n={};return(!t||!e)&&(n.width="61%"),!t&&e?n.rows=3:n.rows=2,n}const nu=t=>{const{prefixCls:e,loading:n,className:r,rootClassName:o,style:l,children:s,avatar:u=!1,title:d=!0,paragraph:f=!0,active:m,round:p}=t,{getPrefixCls:g,direction:b,className:S,style:x}=di("skeleton"),w=g("skeleton",e),[O,E,M]=Ud(w);if(n||!("loading"in t)){const T=!!u,$=!!d,N=!!f;let A;if(T){const B=Object.assign(Object.assign({prefixCls:`${w}-avatar`},_Y($,N)),FC(u));A=y.createElement("div",{className:`${w}-header`},y.createElement(Cy,Object.assign({},B)))}let z;if($||N){let B;if($){const W=Object.assign(Object.assign({prefixCls:`${w}-title`},BY(T,N)),FC(d));B=y.createElement(zY,Object.assign({},W))}let L;if(N){const W=Object.assign(Object.assign({prefixCls:`${w}-paragraph`},HY(T,$)),FC(f));L=y.createElement(PY,Object.assign({},W))}z=y.createElement("div",{className:`${w}-content`},B,L)}const P=Se(w,{[`${w}-with-avatar`]:T,[`${w}-active`]:m,[`${w}-rtl`]:b==="rtl",[`${w}-round`]:p},S,r,o,E,M);return O(y.createElement("div",{className:P,style:Object.assign(Object.assign({},x),l)},A,z))}return s??null};nu.Button=$Y;nu.Avatar=MY;nu.Input=DY;nu.Image=AY;nu.Node=IY;nu.displayName="Skeleton";function HD(){}const jY=y.createContext({add:HD,remove:HD});function LY(t){const e=y.useContext(jY),n=y.useRef(null);return Hn(o=>{if(o){const l=t?o.querySelector(t):o;e.add(l),n.current=l}else e.remove(n.current)})}const jD=()=>{const{cancelButtonProps:t,cancelTextLocale:e,onCancel:n}=y.useContext(vm);return ee.createElement(bl,Object.assign({onClick:n},t),e)},LD=()=>{const{confirmLoading:t,okButtonProps:e,okType:n,okTextLocale:r,onOk:o}=y.useContext(vm);return ee.createElement(bl,Object.assign({},Y_(n),{loading:t,onClick:o},e),r)};function OB(t,e){return ee.createElement("span",{className:`${t}-close-x`},e||ee.createElement(dm,{className:`${t}-close-icon`}))}const RB=t=>{const{okText:e,okType:n="primary",cancelText:r,confirmLoading:o,onOk:l,onCancel:s,okButtonProps:u,cancelButtonProps:d,footer:f}=t,[m]=wl("Modal",n_()),p=e||(m==null?void 0:m.okText),g=r||(m==null?void 0:m.cancelText),b={confirmLoading:o,okButtonProps:u,cancelButtonProps:d,okTextLocale:p,cancelTextLocale:g,okType:n,onOk:l,onCancel:s},S=ee.useMemo(()=>b,ht(Object.values(b)));let x;return typeof f=="function"||typeof f>"u"?(x=ee.createElement(ee.Fragment,null,ee.createElement(jD,null),ee.createElement(LD,null)),typeof f=="function"&&(x=f(x,{OkBtn:LD,CancelBtn:jD})),x=ee.createElement(hB,{value:S},x)):x=f,ee.createElement(u_,{disabled:!1},x)},VY=t=>{const{componentCls:e}=t;return{[e]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},FY=t=>{const{componentCls:e}=t;return{[e]:{position:"relative",maxWidth:"100%",minHeight:1}}},UY=(t,e)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=t,l={};for(let s=o;s>=0;s--)s===0?(l[`${r}${e}-${s}`]={display:"none"},l[`${r}-push-${s}`]={insetInlineStart:"auto"},l[`${r}-pull-${s}`]={insetInlineEnd:"auto"},l[`${r}${e}-push-${s}`]={insetInlineStart:"auto"},l[`${r}${e}-pull-${s}`]={insetInlineEnd:"auto"},l[`${r}${e}-offset-${s}`]={marginInlineStart:0},l[`${r}${e}-order-${s}`]={order:0}):(l[`${r}${e}-${s}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${s/o*100}%`,maxWidth:`${s/o*100}%`}],l[`${r}${e}-push-${s}`]={insetInlineStart:`${s/o*100}%`},l[`${r}${e}-pull-${s}`]={insetInlineEnd:`${s/o*100}%`},l[`${r}${e}-offset-${s}`]={marginInlineStart:`${s/o*100}%`},l[`${r}${e}-order-${s}`]={order:s});return l[`${r}${e}-flex`]={flex:`var(--${n}${e}-flex)`},l},yx=(t,e)=>UY(t,e),WY=(t,e,n)=>({[`@media (min-width: ${Ee(e)})`]:Object.assign({},yx(t,n))}),qY=()=>({}),GY=()=>({});pr("Grid",VY,qY);const TB=t=>({xs:t.screenXSMin,sm:t.screenSMMin,md:t.screenMDMin,lg:t.screenLGMin,xl:t.screenXLMin,xxl:t.screenXXLMin});pr("Grid",t=>{const e=In(t,{gridColumns:24}),n=TB(e);return delete n.xs,[FY(e),yx(e,""),yx(e,"-xs"),Object.keys(n).map(r=>WY(e,n[r],`-${r}`)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},GY);function VD(t){return{position:t,inset:0}}const KY=t=>{const{componentCls:e,antCls:n}=t;return[{[`${e}-root`]:{[`${e}${n}-zoom-enter, ${e}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:t.motionDurationSlow,userSelect:"none"},[`${e}${n}-zoom-leave ${e}-content`]:{pointerEvents:"none"},[`${e}-mask`]:Object.assign(Object.assign({},VD("fixed")),{zIndex:t.zIndexPopupBase,height:"100%",backgroundColor:t.colorBgMask,pointerEvents:"none",[`${e}-hidden`]:{display:"none"}}),[`${e}-wrap`]:Object.assign(Object.assign({},VD("fixed")),{zIndex:t.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${e}-root`]:Xq(t)}]},YY=t=>{const{componentCls:e}=t;return[{[`${e}-root`]:{[`${e}-wrap-rtl`]:{direction:"rtl"},[`${e}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[e]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${t.screenSMMax}px)`]:{[e]:{maxWidth:"calc(100vw - 16px)",margin:`${Ee(t.marginXS)} auto`},[`${e}-centered`]:{[e]:{flex:1}}}}},{[e]:Object.assign(Object.assign({},ao(t)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Ee(t.calc(t.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:t.paddingLG,[`${e}-title`]:{margin:0,color:t.titleColor,fontWeight:t.fontWeightStrong,fontSize:t.titleFontSize,lineHeight:t.titleLineHeight,wordWrap:"break-word"},[`${e}-content`]:{position:"relative",backgroundColor:t.contentBg,backgroundClip:"padding-box",border:0,borderRadius:t.borderRadiusLG,boxShadow:t.boxShadow,pointerEvents:"auto",padding:t.contentPadding},[`${e}-close`]:Object.assign({position:"absolute",top:t.calc(t.modalHeaderHeight).sub(t.modalCloseBtnSize).div(2).equal(),insetInlineEnd:t.calc(t.modalHeaderHeight).sub(t.modalCloseBtnSize).div(2).equal(),zIndex:t.calc(t.zIndexPopupBase).add(10).equal(),padding:0,color:t.modalCloseIconColor,fontWeight:t.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:t.borderRadiusSM,width:t.modalCloseBtnSize,height:t.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${t.motionDurationMid}, background-color ${t.motionDurationMid}`,"&-x":{display:"flex",fontSize:t.fontSizeLG,fontStyle:"normal",lineHeight:Ee(t.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:t.modalCloseIconHoverColor,backgroundColor:t.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:t.colorBgTextActive}},Bd(t)),[`${e}-header`]:{color:t.colorText,background:t.headerBg,borderRadius:`${Ee(t.borderRadiusLG)} ${Ee(t.borderRadiusLG)} 0 0`,marginBottom:t.headerMarginBottom,padding:t.headerPadding,borderBottom:t.headerBorderBottom},[`${e}-body`]:{fontSize:t.fontSize,lineHeight:t.lineHeight,wordWrap:"break-word",padding:t.bodyPadding,[`${e}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${Ee(t.margin)} auto`}},[`${e}-footer`]:{textAlign:"end",background:t.footerBg,marginTop:t.footerMarginTop,padding:t.footerPadding,borderTop:t.footerBorderTop,borderRadius:t.footerBorderRadius,[`> ${t.antCls}-btn + ${t.antCls}-btn`]:{marginInlineStart:t.marginXS}},[`${e}-open`]:{overflow:"hidden"}})},{[`${e}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${e}-content,
584
- ${e}-body,
585
- ${e}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${e}-confirm-body`]:{marginBottom:"auto"}}}]},XY=t=>{const{componentCls:e}=t;return{[`${e}-root`]:{[`${e}-wrap-rtl`]:{direction:"rtl",[`${e}-confirm-body`]:{direction:"rtl"}}}}},QY=t=>{const{componentCls:e}=t,n=TB(t);delete n.xs;const r=Object.keys(n).map(o=>({[`@media (min-width: ${Ee(n[o])})`]:{width:`var(--${e.replace(".","")}-${o}-width)`}}));return{[`${e}-root`]:{[e]:[{width:`var(--${e.replace(".","")}-xs-width)`}].concat(ht(r))}}},MB=t=>{const e=t.padding,n=t.fontSizeHeading5,r=t.lineHeightHeading5;return In(t,{modalHeaderHeight:t.calc(t.calc(r).mul(n).equal()).add(t.calc(e).mul(2).equal()).equal(),modalFooterBorderColorSplit:t.colorSplit,modalFooterBorderStyle:t.lineType,modalFooterBorderWidth:t.lineWidth,modalCloseIconColor:t.colorIcon,modalCloseIconHoverColor:t.colorIconHover,modalCloseBtnSize:t.controlHeight,modalConfirmIconSize:t.fontHeight,modalTitleHeight:t.calc(t.titleFontSize).mul(t.titleLineHeight).equal()})},$B=t=>({footerBg:"transparent",headerBg:t.colorBgElevated,titleLineHeight:t.lineHeightHeading5,titleFontSize:t.fontSizeHeading5,contentBg:t.colorBgElevated,titleColor:t.colorTextHeading,contentPadding:t.wireframe?0:`${Ee(t.paddingMD)} ${Ee(t.paddingContentHorizontalLG)}`,headerPadding:t.wireframe?`${Ee(t.padding)} ${Ee(t.paddingLG)}`:0,headerBorderBottom:t.wireframe?`${Ee(t.lineWidth)} ${t.lineType} ${t.colorSplit}`:"none",headerMarginBottom:t.wireframe?0:t.marginXS,bodyPadding:t.wireframe?t.paddingLG:0,footerPadding:t.wireframe?`${Ee(t.paddingXS)} ${Ee(t.padding)}`:0,footerBorderTop:t.wireframe?`${Ee(t.lineWidth)} ${t.lineType} ${t.colorSplit}`:"none",footerBorderRadius:t.wireframe?`0 0 ${Ee(t.borderRadiusLG)} ${Ee(t.borderRadiusLG)}`:0,footerMarginTop:t.wireframe?0:t.marginSM,confirmBodyPadding:t.wireframe?`${Ee(t.padding*2)} ${Ee(t.padding*2)} ${Ee(t.paddingLG)}`:0,confirmIconMarginInlineEnd:t.wireframe?t.margin:t.marginSM,confirmBtnsMarginTop:t.wireframe?t.marginLG:t.marginSM}),NB=pr("Modal",t=>{const e=MB(t);return[YY(e),XY(e),KY(e),pm(e,"zoom"),QY(e)]},$B,{unitless:{titleLineHeight:!0}});var ZY=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};let bx;const JY=t=>{bx={x:t.pageX,y:t.pageY},setTimeout(()=>{bx=null},100)};bY()&&document.documentElement.addEventListener("click",JY,!0);const AB=t=>{var e;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:l}=y.useContext(Tn),s=de=>{const{onCancel:xe}=t;xe==null||xe(de)},u=de=>{const{onOk:xe}=t;xe==null||xe(de)};{const de=rr("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach(xe=>{let[fe,Me]=xe;de.deprecated(!(fe in t),fe,Me)})}const{prefixCls:d,className:f,rootClassName:m,open:p,wrapClassName:g,centered:b,getContainer:S,focusTriggerAfterClose:x=!0,style:w,visible:O,width:E=520,footer:M,classNames:T,styles:$,children:N,loading:A}=t,z=ZY(t,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),P=r("modal",d),B=r(),L=El(P),[W,q,H]=NB(P,L),J=Se(g,{[`${P}-centered`]:b??(l==null?void 0:l.centered),[`${P}-wrap-rtl`]:o==="rtl"}),_=M!==null&&!A?y.createElement(RB,Object.assign({},t,{onOk:u,onCancel:s})):null,[j,V,G]=yY(PD(t),PD(l),{closable:!0,closeIcon:y.createElement(dm,{className:`${P}-close-icon`}),closeIconRender:de=>OB(P,de)}),K=LY(`.${P}-content`),[Y,ne]=hm("Modal",z.zIndex),[ae,Q]=y.useMemo(()=>E&&typeof E=="object"?[void 0,E]:[E,void 0],[E]),se=y.useMemo(()=>{const de={};return Q&&Object.keys(Q).forEach(xe=>{const fe=Q[xe];fe!==void 0&&(de[`--${P}-${xe}-width`]=typeof fe=="number"?`${fe}px`:fe)}),de},[Q]);return W(y.createElement(Es,{form:!0,space:!0},y.createElement(fm.Provider,{value:ne},y.createElement(vB,Object.assign({width:ae},z,{zIndex:Y,getContainer:S===void 0?n:S,prefixCls:P,rootClassName:Se(q,m,H,L),footer:_,visible:p??O,mousePosition:(e=z.mousePosition)!==null&&e!==void 0?e:bx,onClose:s,closable:j&&{disabled:G,closeIcon:V},closeIcon:V,focusTriggerAfterClose:x,transitionName:Kc(B,"zoom",t.transitionName),maskTransitionName:Kc(B,"fade",t.maskTransitionName),className:Se(q,f,l==null?void 0:l.className),style:Object.assign(Object.assign(Object.assign({},l==null?void 0:l.style),w),se),classNames:Object.assign(Object.assign(Object.assign({},l==null?void 0:l.classNames),T),{wrapper:Se(J,T==null?void 0:T.wrapper)}),styles:Object.assign(Object.assign({},l==null?void 0:l.styles),$),panelRef:K}),A?y.createElement(nu,{active:!0,title:!1,paragraph:{rows:4},className:`${P}-body-skeleton`}):N))))},eX=t=>{const{componentCls:e,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:l,lineHeight:s,modalTitleHeight:u,fontHeight:d,confirmBodyPadding:f}=t,m=`${e}-confirm`;return{[m]:{"&-rtl":{direction:"rtl"},[`${t.antCls}-modal-header`]:{display:"none"},[`${m}-body-wrapper`]:Object.assign({},Ov()),[`&${e} ${e}-body`]:{padding:f},[`${m}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:t.confirmIconMarginInlineEnd,marginTop:t.calc(t.calc(d).sub(o).equal()).div(2).equal()},[`&-has-title > ${t.iconCls}`]:{marginTop:t.calc(t.calc(u).sub(o).equal()).div(2).equal()}},[`${m}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:t.marginXS,maxWidth:`calc(100% - ${Ee(t.marginSM)})`},[`${t.iconCls} + ${m}-paragraph`]:{maxWidth:`calc(100% - ${Ee(t.calc(t.modalConfirmIconSize).add(t.marginSM).equal())})`},[`${m}-title`]:{color:t.colorTextHeading,fontWeight:t.fontWeightStrong,fontSize:n,lineHeight:r},[`${m}-content`]:{color:t.colorText,fontSize:l,lineHeight:s},[`${m}-btns`]:{textAlign:"end",marginTop:t.confirmBtnsMarginTop,[`${t.antCls}-btn + ${t.antCls}-btn`]:{marginBottom:0,marginInlineStart:t.marginXS}}},[`${m}-error ${m}-body > ${t.iconCls}`]:{color:t.colorError},[`${m}-warning ${m}-body > ${t.iconCls},
586
- ${m}-confirm ${m}-body > ${t.iconCls}`]:{color:t.colorWarning},[`${m}-info ${m}-body > ${t.iconCls}`]:{color:t.colorInfo},[`${m}-success ${m}-body > ${t.iconCls}`]:{color:t.colorSuccess}}},tX=v_(["Modal","confirm"],t=>{const e=MB(t);return[eX(e)]},$B,{order:-1e3});var nX=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};function DB(t){const{prefixCls:e,icon:n,okText:r,cancelText:o,confirmPrefixCls:l,type:s,okCancel:u,footer:d,locale:f}=t,m=nX(t,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);rr("Modal")(!(typeof n=="string"&&n.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${n}\` at https://ant.design/components/icon`);let p=n;if(!n&&n!==null)switch(s){case"info":p=y.createElement(B_,null);break;case"success":p=y.createElement(z_,null);break;case"error":p=y.createElement(cy,null);break;default:p=y.createElement(__,null)}const g=u??s==="confirm",b=t.autoFocusButton===null?!1:t.autoFocusButton||"ok",[S]=wl("Modal"),x=f||S,w=r||(g?x==null?void 0:x.okText:x==null?void 0:x.justOkText),O=o||(x==null?void 0:x.cancelText),E=Object.assign({autoFocusButton:b,cancelTextLocale:O,okTextLocale:w,mergedOkCancel:g},m),M=y.useMemo(()=>E,ht(Object.values(E))),T=y.createElement(y.Fragment,null,y.createElement(gD,null),y.createElement(vD,null)),$=t.title!==void 0&&t.title!==null,N=`${l}-body`;return y.createElement("div",{className:`${l}-body-wrapper`},y.createElement("div",{className:Se(N,{[`${N}-has-title`]:$})},p,y.createElement("div",{className:`${l}-paragraph`},$&&y.createElement("span",{className:`${l}-title`},t.title),y.createElement("div",{className:`${l}-content`},t.content))),d===void 0||typeof d=="function"?y.createElement(hB,{value:M},y.createElement("div",{className:`${l}-btns`},typeof d=="function"?d(T,{OkBtn:vD,CancelBtn:gD}):T)):d,y.createElement(tX,{prefixCls:e}))}const IB=t=>{const{close:e,zIndex:n,maskStyle:r,direction:o,prefixCls:l,wrapClassName:s,rootPrefixCls:u,bodyStyle:d,closable:f=!1,onConfirm:m,styles:p}=t;{const T=rr("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach($=>{let[N,A]=$;T.deprecated(!(N in t),N,A)})}const g=`${l}-confirm`,b=t.width||416,S=t.style||{},x=t.mask===void 0?!0:t.mask,w=t.maskClosable===void 0?!1:t.maskClosable,O=Se(g,`${g}-${t.type}`,{[`${g}-rtl`]:o==="rtl"},t.className),[,E]=Uo(),M=y.useMemo(()=>n!==void 0?n:E.zIndexPopupBase+j_,[n,E]);return y.createElement(AB,Object.assign({},t,{className:O,wrapClassName:Se({[`${g}-centered`]:!!t.centered},s),onCancel:()=>{e==null||e({triggerCancel:!0}),m==null||m(!1)},title:"",footer:null,transitionName:Kc(u||"","zoom",t.transitionName),maskTransitionName:Kc(u||"","fade",t.maskTransitionName),mask:x,maskClosable:w,style:S,styles:Object.assign({body:d,mask:r},p),width:b,zIndex:M,closable:f}),y.createElement(DB,Object.assign({},t,{confirmPrefixCls:g})))},Lw=t=>{const{rootPrefixCls:e,iconPrefixCls:n,direction:r,theme:o}=t;return y.createElement(za,{prefixCls:e,iconPrefixCls:n,direction:r,theme:o},y.createElement(IB,Object.assign({},t)))};IB.displayName="ConfirmDialog",Lw.displayName="ConfirmDialogWrapper";const Dc=[];let kB="";function PB(){return kB}const rX=t=>{var e,n;const{prefixCls:r,getContainer:o,direction:l}=t,s=n_(),u=y.useContext(Tn),d=PB()||u.getPrefixCls(),f=r||`${d}-modal`;let m=o;return m===!1&&(m=void 0,Jc(!1,"Modal","Static method not support `getContainer` to be `false` since it do not have context env.")),ee.createElement(Lw,Object.assign({},t,{rootPrefixCls:d,prefixCls:f,iconPrefixCls:u.iconPrefixCls,theme:u.theme,direction:l??u.direction,locale:(n=(e=u.locale)===null||e===void 0?void 0:e.Modal)!==null&&n!==void 0?n:s,getContainer:m}))};function Sm(t){const e=fW();e.holderRender||lW("Modal");const n=document.createDocumentFragment();let r=Object.assign(Object.assign({},t),{close:d,open:!0}),o,l;function s(){for(var m,p=arguments.length,g=new Array(p),b=0;b<p;b++)g[b]=arguments[b];if(g.some(w=>w==null?void 0:w.triggerCancel)){var x;(m=t.onCancel)===null||m===void 0||(x=m).call.apply(x,[t,()=>{}].concat(ht(g.slice(1))))}for(let w=0;w<Dc.length;w++)if(Dc[w]===d){Dc.splice(w,1);break}l()}function u(m){clearTimeout(o),o=setTimeout(()=>{const p=e.getPrefixCls(void 0,PB()),g=e.getIconPrefixCls(),b=e.getTheme(),S=ee.createElement(rX,Object.assign({},m));l=V_()(ee.createElement(za,{prefixCls:p,iconPrefixCls:g,theme:b},e.holderRender?e.holderRender(S):S),n)})}function d(){for(var m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof t.afterClose=="function"&&t.afterClose(),s.apply(this,p)}}),r.visible&&delete r.visible,u(r)}function f(m){typeof m=="function"?r=m(r):r=Object.assign(Object.assign({},r),m),u(r)}return u(r),Dc.push(d),{destroy:d,update:f}}function zB(t){return Object.assign(Object.assign({},t),{type:"warning"})}function _B(t){return Object.assign(Object.assign({},t),{type:"info"})}function BB(t){return Object.assign(Object.assign({},t),{type:"success"})}function HB(t){return Object.assign(Object.assign({},t),{type:"error"})}function jB(t){return Object.assign(Object.assign({},t),{type:"confirm"})}function oX(t){let{rootPrefixCls:e}=t;Jc(!1,"Modal","Modal.config is deprecated. Please use ConfigProvider.config instead."),kB=e}var iX=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};const aX=(t,e)=>{var n,{afterClose:r,config:o}=t,l=iX(t,["afterClose","config"]);const[s,u]=y.useState(!0),[d,f]=y.useState(o),{direction:m,getPrefixCls:p}=y.useContext(Tn),g=p("modal"),b=p(),S=()=>{var E;r(),(E=d.afterClose)===null||E===void 0||E.call(d)},x=function(){var E;u(!1);for(var M=arguments.length,T=new Array(M),$=0;$<M;$++)T[$]=arguments[$];if(T.some(z=>z==null?void 0:z.triggerCancel)){var A;(E=d.onCancel)===null||E===void 0||(A=E).call.apply(A,[d,()=>{}].concat(ht(T.slice(1))))}};y.useImperativeHandle(e,()=>({destroy:x,update:E=>{f(M=>Object.assign(Object.assign({},M),E))}}));const w=(n=d.okCancel)!==null&&n!==void 0?n:d.type==="confirm",[O]=wl("Modal",Gc.Modal);return y.createElement(Lw,Object.assign({prefixCls:g,rootPrefixCls:b},d,{close:x,open:s,afterClose:S,okText:d.okText||(w?O==null?void 0:O.okText:O==null?void 0:O.justOkText),direction:d.direction||m,cancelText:d.cancelText||(O==null?void 0:O.cancelText)},l))},lX=y.forwardRef(aX);let FD=0;const sX=y.memo(y.forwardRef((t,e)=>{const[n,r]=qW();return y.useImperativeHandle(e,()=>({patchElement:r}),[]),y.createElement(y.Fragment,null,n)}));function cX(){const t=y.useRef(null),[e,n]=y.useState([]);y.useEffect(()=>{e.length&&(ht(e).forEach(s=>{s()}),n([]))},[e]);const r=y.useCallback(l=>function(u){var d;FD+=1;const f=y.createRef();let m;const p=new Promise(w=>{m=w});let g=!1,b;const S=y.createElement(lX,{key:`modal-${FD}`,config:l(u),ref:f,afterClose:()=>{b==null||b()},isSilent:()=>g,onConfirm:w=>{m(w)}});return b=(d=t.current)===null||d===void 0?void 0:d.patchElement(S),b&&Dc.push(b),{destroy:()=>{function w(){var O;(O=f.current)===null||O===void 0||O.destroy()}f.current?w():n(O=>[].concat(ht(O),[w]))},update:w=>{function O(){var E;(E=f.current)===null||E===void 0||E.update(w)}f.current?O():n(E=>[].concat(ht(E),[O]))},then:w=>(g=!0,p.then(w))}},[]);return[y.useMemo(()=>({info:r(_B),success:r(BB),error:r(HB),warning:r(zB),confirm:r(jB)}),[]),y.createElement(sX,{key:"modal-holder",ref:t})]}function LB(t){return e=>y.createElement(za,{theme:{token:{motion:!1,zIndexPopupBase:0}}},y.createElement(t,Object.assign({},e)))}const Vw=(t,e,n,r,o)=>LB(s=>{const{prefixCls:u,style:d}=s,f=y.useRef(null),[m,p]=y.useState(0),[g,b]=y.useState(0),[S,x]=vr(!1,{value:s.open}),{getPrefixCls:w}=y.useContext(Tn),O=w(r||"select",u);y.useEffect(()=>{if(x(!0),typeof ResizeObserver<"u"){const T=new ResizeObserver(N=>{const A=N[0].target;p(A.offsetHeight+8),b(A.offsetWidth)}),$=setInterval(()=>{var N;const A=o?`.${o(O)}`:`.${O}-dropdown`,z=(N=f.current)===null||N===void 0?void 0:N.querySelector(A);z&&(clearInterval($),T.observe(z))},10);return()=>{clearInterval($),T.disconnect()}}},[]);let E=Object.assign(Object.assign({},s),{style:Object.assign(Object.assign({},d),{margin:0}),open:S,visible:S,getPopupContainer:()=>f.current});n&&(E=n(E)),e&&Object.assign(E,{[e]:{overflow:{adjustX:!1,adjustY:!1}}});const M={paddingBottom:m,position:"relative",minWidth:g};return y.createElement("div",{ref:f,style:M},y.createElement(t,Object.assign({},E)))}),Fw=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var t=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(t==null?void 0:t.substr(0,4))};var wy=function(e){var n=e.className,r=e.customizeIcon,o=e.customizeIconProps,l=e.children,s=e.onMouseDown,u=e.onClick,d=typeof r=="function"?r(o):r;return y.createElement("span",{className:n,onMouseDown:function(m){m.preventDefault(),s==null||s(m)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:u,"aria-hidden":!0},d!==void 0?d:y.createElement("span",{className:Se(n.split(/\s+/).map(function(f){return"".concat(f,"-icon")}))},l))},uX=function(e,n,r,o,l){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,u=arguments.length>6?arguments[6]:void 0,d=arguments.length>7?arguments[7]:void 0,f=ee.useMemo(function(){if(Ht(o)==="object")return o.clearIcon;if(l)return l},[o,l]),m=ee.useMemo(function(){return!!(!s&&o&&(r.length||u)&&!(d==="combobox"&&u===""))},[o,s,r.length,u,d]);return{allowClear:m,clearIcon:ee.createElement(wy,{className:"".concat(e,"-clear"),onMouseDown:n,customizeIcon:f},"×")}},VB=y.createContext(null);function dX(){return y.useContext(VB)}function fX(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,e=y.useState(!1),n=Re(e,2),r=n[0],o=n[1],l=y.useRef(null),s=function(){window.clearTimeout(l.current)};y.useEffect(function(){return s},[]);var u=function(f,m){s(),l.current=window.setTimeout(function(){o(f),m&&m()},t)};return[r,u,s]}function FB(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,e=y.useRef(null),n=y.useRef(null);y.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(o){(o||e.current===null)&&(e.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){e.current=null},t)}return[function(){return e.current},r]}function hX(t,e,n,r){var o=y.useRef(null);o.current={open:e,triggerOpen:n,customizedTrigger:r},y.useEffect(function(){function l(s){var u;if(!((u=o.current)!==null&&u!==void 0&&u.customizedTrigger)){var d=s.target;d.shadowRoot&&s.composed&&(d=s.composedPath()[0]||d),o.current.open&&t().filter(function(f){return f}).every(function(f){return!f.contains(d)&&f!==d})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",l),function(){return window.removeEventListener("mousedown",l)}},[])}function mX(t){return t&&![It.ESC,It.SHIFT,It.BACKSPACE,It.TAB,It.WIN_KEY,It.ALT,It.META,It.WIN_KEY_RIGHT,It.CTRL,It.SEMICOLON,It.EQUALS,It.CAPS_LOCK,It.CONTEXT_MENU,It.F1,It.F2,It.F3,It.F4,It.F5,It.F6,It.F7,It.F8,It.F9,It.F10,It.F11,It.F12].includes(t)}var pX=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ad=void 0;function gX(t,e){var n=t.prefixCls,r=t.invalidate,o=t.item,l=t.renderItem,s=t.responsive,u=t.responsiveDisabled,d=t.registerSize,f=t.itemKey,m=t.className,p=t.style,g=t.children,b=t.display,S=t.order,x=t.component,w=x===void 0?"div":x,O=an(t,pX),E=s&&!b;function M(z){d(f,z)}y.useEffect(function(){return function(){M(null)}},[]);var T=l&&o!==ad?l(o,{index:S}):g,$;r||($={opacity:E?0:1,height:E?0:ad,overflowY:E?"hidden":ad,order:s?S:ad,pointerEvents:E?"none":ad,position:E?"absolute":ad});var N={};E&&(N["aria-hidden"]=!0);var A=y.createElement(w,yt({className:Se(!r&&n,m),style:re(re({},$),p)},N,O,{ref:e}),T);return s&&(A=y.createElement(xl,{onResize:function(P){var B=P.offsetWidth;M(B)},disabled:u},A)),A}var zh=y.forwardRef(gX);zh.displayName="Item";function vX(t){if(typeof MessageChannel>"u")Mn(t);else{var e=new MessageChannel;e.port1.onmessage=function(){return t()},e.port2.postMessage(void 0)}}function yX(){var t=y.useRef(null),e=function(r){t.current||(t.current=[],vX(function(){yl.unstable_batchedUpdates(function(){t.current.forEach(function(o){o()}),t.current=null})})),t.current.push(r)};return e}function vh(t,e){var n=y.useState(e),r=Re(n,2),o=r[0],l=r[1],s=Hn(function(u){t(function(){l(u)})});return[o,s]}var Av=ee.createContext(null),bX=["component"],SX=["className"],CX=["className"],xX=function(e,n){var r=y.useContext(Av);if(!r){var o=e.component,l=o===void 0?"div":o,s=an(e,bX);return y.createElement(l,yt({},s,{ref:n}))}var u=r.className,d=an(r,SX),f=e.className,m=an(e,CX);return y.createElement(Av.Provider,{value:null},y.createElement(zh,yt({ref:n,className:Se(u,f)},d,m)))},UB=y.forwardRef(xX);UB.displayName="RawItem";var wX=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],WB="responsive",qB="invalidate";function EX(t){return"+ ".concat(t.length," ...")}function OX(t,e){var n=t.prefixCls,r=n===void 0?"rc-overflow":n,o=t.data,l=o===void 0?[]:o,s=t.renderItem,u=t.renderRawItem,d=t.itemKey,f=t.itemWidth,m=f===void 0?10:f,p=t.ssr,g=t.style,b=t.className,S=t.maxCount,x=t.renderRest,w=t.renderRawRest,O=t.suffix,E=t.component,M=E===void 0?"div":E,T=t.itemComponent,$=t.onVisibleChange,N=an(t,wX),A=p==="full",z=yX(),P=vh(z,null),B=Re(P,2),L=B[0],W=B[1],q=L||0,H=vh(z,new Map),J=Re(H,2),_=J[0],j=J[1],V=vh(z,0),G=Re(V,2),K=G[0],Y=G[1],ne=vh(z,0),ae=Re(ne,2),Q=ae[0],se=ae[1],de=vh(z,0),xe=Re(de,2),fe=xe[0],Me=xe[1],ze=y.useState(null),Oe=Re(ze,2),he=Oe[0],De=Oe[1],pe=y.useState(null),we=Re(pe,2),$e=we[0],Pe=we[1],Ze=y.useMemo(function(){return $e===null&&A?Number.MAX_SAFE_INTEGER:$e||0},[$e,L]),We=y.useState(!1),ut=Re(We,2),I=ut[0],me=ut[1],oe="".concat(r,"-item"),ge=Math.max(K,Q),Ue=S===WB,Fe=l.length&&Ue,Te=S===qB,_e=Fe||typeof S=="number"&&l.length>S,it=y.useMemo(function(){var wt=l;return Fe?L===null&&A?wt=l:wt=l.slice(0,Math.min(l.length,q/m)):typeof S=="number"&&(wt=l.slice(0,S)),wt},[l,m,L,S,Fe]),Xe=y.useMemo(function(){return Fe?l.slice(Ze+1):l.slice(it.length)},[l,it,Fe,Ze]),dt=y.useCallback(function(wt,lt){var St;return typeof d=="function"?d(wt):(St=d&&(wt==null?void 0:wt[d]))!==null&&St!==void 0?St:lt},[d]),vt=y.useCallback(s||function(wt){return wt},[s]);function et(wt,lt,St){$e===wt&&(lt===void 0||lt===he)||(Pe(wt),St||(me(wt<l.length-1),$==null||$(wt)),lt!==void 0&&De(lt))}function st(wt,lt){W(lt.clientWidth)}function at(wt,lt){j(function(St){var Kt=new Map(St);return lt===null?Kt.delete(wt):Kt.set(wt,lt),Kt})}function Ct(wt,lt){se(lt),Y(Q)}function $t(wt,lt){Me(lt)}function Ut(wt){return _.get(dt(it[wt],wt))}Gn(function(){if(q&&typeof ge=="number"&&it){var wt=fe,lt=it.length,St=lt-1;if(!lt){et(0,null);return}for(var Kt=0;Kt<lt;Kt+=1){var tn=Ut(Kt);if(A&&(tn=tn||0),tn===void 0){et(Kt-1,void 0,!0);break}if(wt+=tn,St===0&&wt<=q||Kt===St-1&&wt+Ut(St)<=q){et(St,null);break}else if(wt+ge>q){et(Kt-1,wt-tn-fe+Q);break}}O&&Ut(0)+fe>q&&De(null)}},[q,_,Q,fe,dt,it]);var sn=I&&!!Xe.length,un={};he!==null&&Fe&&(un={position:"absolute",left:he,top:0});var kn={prefixCls:oe,responsive:Fe,component:T,invalidate:Te},Rt=u?function(wt,lt){var St=dt(wt,lt);return y.createElement(Av.Provider,{key:St,value:re(re({},kn),{},{order:lt,item:wt,itemKey:St,registerSize:at,display:lt<=Ze})},u(wt,lt))}:function(wt,lt){var St=dt(wt,lt);return y.createElement(zh,yt({},kn,{order:lt,key:St,item:wt,renderItem:vt,itemKey:St,registerSize:at,display:lt<=Ze}))},bt={order:sn?Ze:Number.MAX_SAFE_INTEGER,className:"".concat(oe,"-rest"),registerSize:Ct,display:sn},kt=x||EX,Dt=w?y.createElement(Av.Provider,{value:re(re({},kn),bt)},w(Xe)):y.createElement(zh,yt({},kn,bt),typeof kt=="function"?kt(Xe):kt),jt=y.createElement(M,yt({className:Se(!Te&&r,b),style:g,ref:e},N),it.map(Rt),_e?Dt:null,O&&y.createElement(zh,yt({},kn,{responsive:Ue,responsiveDisabled:!Fe,order:Ze,className:"".concat(oe,"-suffix"),registerSize:$t,display:!0,style:un}),O));return Ue?y.createElement(xl,{onResize:st,disabled:!Fe},jt):jt}var Ma=y.forwardRef(OX);Ma.displayName="Overflow";Ma.Item=UB;Ma.RESPONSIVE=WB;Ma.INVALIDATE=qB;var RX=function(e,n){var r,o=e.prefixCls,l=e.id,s=e.inputElement,u=e.disabled,d=e.tabIndex,f=e.autoFocus,m=e.autoComplete,p=e.editable,g=e.activeDescendantId,b=e.value,S=e.maxLength,x=e.onKeyDown,w=e.onMouseDown,O=e.onChange,E=e.onPaste,M=e.onCompositionStart,T=e.onCompositionEnd,$=e.onBlur,N=e.open,A=e.attrs,z=s||y.createElement("input",null),P=z,B=P.ref,L=P.props,W=L.onKeyDown,q=L.onChange,H=L.onMouseDown,J=L.onCompositionStart,_=L.onCompositionEnd,j=L.onBlur,V=L.style;return Aa(!("maxLength"in z.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),z=y.cloneElement(z,re(re(re({type:"search"},L),{},{id:l,ref:Fo(n,B),disabled:u,tabIndex:d,autoComplete:m||"off",autoFocus:f,className:Se("".concat(o,"-selection-search-input"),(r=z)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":N||!1,"aria-haspopup":"listbox","aria-owns":"".concat(l,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(l,"_list"),"aria-activedescendant":N?g:void 0},A),{},{value:p?b:"",maxLength:S,readOnly:!p,unselectable:p?null:"on",style:re(re({},V),{},{opacity:p?null:0}),onKeyDown:function(K){x(K),W&&W(K)},onMouseDown:function(K){w(K),H&&H(K)},onChange:function(K){O(K),q&&q(K)},onCompositionStart:function(K){M(K),J&&J(K)},onCompositionEnd:function(K){T(K),_&&_(K)},onPaste:E,onBlur:function(K){$(K),j&&j(K)}})),z},Uw=y.forwardRef(RX);Uw.displayName="Input";function Ww(t){return Array.isArray(t)?t:t!==void 0?[t]:[]}var TX=typeof window<"u"&&window.document&&window.document.documentElement,MX=TX;function $X(t){return t!=null}function NX(t){return!t&&t!==0}function UD(t){return["string","number"].includes(Ht(t))}function GB(t){var e=void 0;return t&&(UD(t.title)?e=t.title.toString():UD(t.label)&&(e=t.label.toString())),e}function AX(t,e){MX?y.useLayoutEffect(t,e):y.useEffect(t,e)}function DX(t){var e;return(e=t.key)!==null&&e!==void 0?e:t.value}var WD=function(e){e.preventDefault(),e.stopPropagation()},IX=function(e){var n=e.id,r=e.prefixCls,o=e.values,l=e.open,s=e.searchValue,u=e.autoClearSearchValue,d=e.inputRef,f=e.placeholder,m=e.disabled,p=e.mode,g=e.showSearch,b=e.autoFocus,S=e.autoComplete,x=e.activeDescendantId,w=e.tabIndex,O=e.removeIcon,E=e.maxTagCount,M=e.maxTagTextLength,T=e.maxTagPlaceholder,$=T===void 0?function(pe){return"+ ".concat(pe.length," ...")}:T,N=e.tagRender,A=e.onToggleOpen,z=e.onRemove,P=e.onInputChange,B=e.onInputPaste,L=e.onInputKeyDown,W=e.onInputMouseDown,q=e.onInputCompositionStart,H=e.onInputCompositionEnd,J=e.onInputBlur,_=y.useRef(null),j=y.useState(0),V=Re(j,2),G=V[0],K=V[1],Y=y.useState(!1),ne=Re(Y,2),ae=ne[0],Q=ne[1],se="".concat(r,"-selection"),de=l||p==="multiple"&&u===!1||p==="tags"?s:"",xe=p==="tags"||p==="multiple"&&u===!1||g&&(l||ae);AX(function(){K(_.current.scrollWidth)},[de]);var fe=function(we,$e,Pe,Ze,We){return y.createElement("span",{title:GB(we),className:Se("".concat(se,"-item"),te({},"".concat(se,"-item-disabled"),Pe))},y.createElement("span",{className:"".concat(se,"-item-content")},$e),Ze&&y.createElement(wy,{className:"".concat(se,"-item-remove"),onMouseDown:WD,onClick:We,customizeIcon:O},"×"))},Me=function(we,$e,Pe,Ze,We,ut){var I=function(oe){WD(oe),A(!l)};return y.createElement("span",{onMouseDown:I},N({label:$e,value:we,disabled:Pe,closable:Ze,onClose:We,isMaxTag:!!ut}))},ze=function(we){var $e=we.disabled,Pe=we.label,Ze=we.value,We=!m&&!$e,ut=Pe;if(typeof M=="number"&&(typeof Pe=="string"||typeof Pe=="number")){var I=String(ut);I.length>M&&(ut="".concat(I.slice(0,M),"..."))}var me=function(ge){ge&&ge.stopPropagation(),z(we)};return typeof N=="function"?Me(Ze,ut,$e,We,me):fe(we,ut,$e,We,me)},Oe=function(we){if(!o.length)return null;var $e=typeof $=="function"?$(we):$;return typeof N=="function"?Me(void 0,$e,!1,!1,void 0,!0):fe({title:$e},$e,!1)},he=y.createElement("div",{className:"".concat(se,"-search"),style:{width:G},onFocus:function(){Q(!0)},onBlur:function(){Q(!1)}},y.createElement(Uw,{ref:d,open:l,prefixCls:r,id:n,inputElement:null,disabled:m,autoFocus:b,autoComplete:S,editable:xe,activeDescendantId:x,value:de,onKeyDown:L,onMouseDown:W,onChange:P,onPaste:B,onCompositionStart:q,onCompositionEnd:H,onBlur:J,tabIndex:w,attrs:Da(e,!0)}),y.createElement("span",{ref:_,className:"".concat(se,"-search-mirror"),"aria-hidden":!0},de," ")),De=y.createElement(Ma,{prefixCls:"".concat(se,"-overflow"),data:o,renderItem:ze,renderRest:Oe,suffix:he,itemKey:DX,maxCount:E});return y.createElement("span",{className:"".concat(se,"-wrap")},De,!o.length&&!de&&y.createElement("span",{className:"".concat(se,"-placeholder")},f))},kX=function(e){var n=e.inputElement,r=e.prefixCls,o=e.id,l=e.inputRef,s=e.disabled,u=e.autoFocus,d=e.autoComplete,f=e.activeDescendantId,m=e.mode,p=e.open,g=e.values,b=e.placeholder,S=e.tabIndex,x=e.showSearch,w=e.searchValue,O=e.activeValue,E=e.maxLength,M=e.onInputKeyDown,T=e.onInputMouseDown,$=e.onInputChange,N=e.onInputPaste,A=e.onInputCompositionStart,z=e.onInputCompositionEnd,P=e.onInputBlur,B=e.title,L=y.useState(!1),W=Re(L,2),q=W[0],H=W[1],J=m==="combobox",_=J||x,j=g[0],V=w||"";J&&O&&!q&&(V=O),y.useEffect(function(){J&&H(!1)},[J,O]);var G=m!=="combobox"&&!p&&!x?!1:!!V,K=B===void 0?GB(j):B,Y=y.useMemo(function(){return j?null:y.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:G?{visibility:"hidden"}:void 0},b)},[j,G,b,r]);return y.createElement("span",{className:"".concat(r,"-selection-wrap")},y.createElement("span",{className:"".concat(r,"-selection-search")},y.createElement(Uw,{ref:l,prefixCls:r,id:o,open:p,inputElement:n,disabled:s,autoFocus:u,autoComplete:d,editable:_,activeDescendantId:f,value:V,onKeyDown:M,onMouseDown:T,onChange:function(ae){H(!0),$(ae)},onPaste:N,onCompositionStart:A,onCompositionEnd:z,onBlur:P,tabIndex:S,attrs:Da(e,!0),maxLength:J?E:void 0})),!J&&j?y.createElement("span",{className:"".concat(r,"-selection-item"),title:K,style:G?{visibility:"hidden"}:void 0},j.label):null,Y)},PX=function(e,n){var r=y.useRef(null),o=y.useRef(!1),l=e.prefixCls,s=e.open,u=e.mode,d=e.showSearch,f=e.tokenWithEnter,m=e.disabled,p=e.prefix,g=e.autoClearSearchValue,b=e.onSearch,S=e.onSearchSubmit,x=e.onToggleOpen,w=e.onInputKeyDown,O=e.onInputBlur,E=e.domRef;y.useImperativeHandle(n,function(){return{focus:function(K){r.current.focus(K)},blur:function(){r.current.blur()}}});var M=FB(0),T=Re(M,2),$=T[0],N=T[1],A=function(K){var Y=K.which,ne=r.current instanceof HTMLTextAreaElement;!ne&&s&&(Y===It.UP||Y===It.DOWN)&&K.preventDefault(),w&&w(K),Y===It.ENTER&&u==="tags"&&!o.current&&!s&&(S==null||S(K.target.value)),!(ne&&!s&&~[It.UP,It.DOWN,It.LEFT,It.RIGHT].indexOf(Y))&&mX(Y)&&x(!0)},z=function(){N(!0)},P=y.useRef(null),B=function(K){b(K,!0,o.current)!==!1&&x(!0)},L=function(){o.current=!0},W=function(K){o.current=!1,u!=="combobox"&&B(K.target.value)},q=function(K){var Y=K.target.value;if(f&&P.current&&/[\r\n]/.test(P.current)){var ne=P.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Y=Y.replace(ne,P.current)}P.current=null,B(Y)},H=function(K){var Y=K.clipboardData,ne=Y==null?void 0:Y.getData("text");P.current=ne||""},J=function(K){var Y=K.target;if(Y!==r.current){var ne=document.body.style.msTouchAction!==void 0;ne?setTimeout(function(){r.current.focus()}):r.current.focus()}},_=function(K){var Y=$();K.target!==r.current&&!Y&&!(u==="combobox"&&m)&&K.preventDefault(),(u!=="combobox"&&(!d||!Y)||!s)&&(s&&g!==!1&&b("",!0,!1),x())},j={inputRef:r,onInputKeyDown:A,onInputMouseDown:z,onInputChange:q,onInputPaste:H,onInputCompositionStart:L,onInputCompositionEnd:W,onInputBlur:O},V=u==="multiple"||u==="tags"?y.createElement(IX,yt({},e,j)):y.createElement(kX,yt({},e,j));return y.createElement("div",{ref:E,className:"".concat(l,"-selector"),onClick:J,onMouseDown:_},p&&y.createElement("div",{className:"".concat(l,"-prefix")},p),V)},KB=y.forwardRef(PX);KB.displayName="Selector";function zX(t){var e=t.prefixCls,n=t.align,r=t.arrow,o=t.arrowPos,l=r||{},s=l.className,u=l.content,d=o.x,f=d===void 0?0:d,m=o.y,p=m===void 0?0:m,g=y.useRef();if(!n||!n.points)return null;var b={position:"absolute"};if(n.autoArrow!==!1){var S=n.points[0],x=n.points[1],w=S[0],O=S[1],E=x[0],M=x[1];w===E||!["t","b"].includes(w)?b.top=p:w==="t"?b.top=0:b.bottom=0,O===M||!["l","r"].includes(O)?b.left=f:O==="l"?b.left=0:b.right=0}return y.createElement("div",{ref:g,className:Se("".concat(e,"-arrow"),s),style:b},u)}function _X(t){var e=t.prefixCls,n=t.open,r=t.zIndex,o=t.mask,l=t.motion;return o?y.createElement(Pa,yt({},l,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(s){var u=s.className;return y.createElement("div",{style:{zIndex:r},className:Se("".concat(e,"-mask"),u)})}):null}var YB=y.memo(function(t){var e=t.children;return e},function(t,e){return e.cache});YB.displayName="PopupContent";var XB=y.forwardRef(function(t,e){var n=t.popup,r=t.className,o=t.prefixCls,l=t.style,s=t.target,u=t.onVisibleChanged,d=t.open,f=t.keepDom,m=t.fresh,p=t.onClick,g=t.mask,b=t.arrow,S=t.arrowPos,x=t.align,w=t.motion,O=t.maskMotion,E=t.forceRender,M=t.getPopupContainer,T=t.autoDestroy,$=t.portal,N=t.zIndex,A=t.onMouseEnter,z=t.onMouseLeave,P=t.onPointerEnter,B=t.onPointerDownCapture,L=t.ready,W=t.offsetX,q=t.offsetY,H=t.offsetR,J=t.offsetB,_=t.onAlign,j=t.onPrepare,V=t.stretch,G=t.targetWidth,K=t.targetHeight,Y=typeof n=="function"?n():n,ne=d||f,ae=(M==null?void 0:M.length)>0,Q=y.useState(!M||!ae),se=Re(Q,2),de=se[0],xe=se[1];if(Gn(function(){!de&&ae&&s&&xe(!0)},[de,ae,s]),!de)return null;var fe="auto",Me={left:"-1000vw",top:"-1000vh",right:fe,bottom:fe};if(L||!d){var ze,Oe=x.points,he=x.dynamicInset||((ze=x._experimental)===null||ze===void 0?void 0:ze.dynamicInset),De=he&&Oe[0][1]==="r",pe=he&&Oe[0][0]==="b";De?(Me.right=H,Me.left=fe):(Me.left=W,Me.right=fe),pe?(Me.bottom=J,Me.top=fe):(Me.top=q,Me.bottom=fe)}var we={};return V&&(V.includes("height")&&K?we.height=K:V.includes("minHeight")&&K&&(we.minHeight=K),V.includes("width")&&G?we.width=G:V.includes("minWidth")&&G&&(we.minWidth=G)),d||(we.pointerEvents="none"),y.createElement($,{open:E||ne,getContainer:M&&function(){return M(s)},autoDestroy:T},y.createElement(_X,{prefixCls:o,open:d,zIndex:N,mask:g,motion:O}),y.createElement(xl,{onResize:_,disabled:!d},function($e){return y.createElement(Pa,yt({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:E,leavedClassName:"".concat(o,"-hidden")},w,{onAppearPrepare:j,onEnterPrepare:j,visible:d,onVisibleChanged:function(Ze){var We;w==null||(We=w.onVisibleChanged)===null||We===void 0||We.call(w,Ze),u(Ze)}}),function(Pe,Ze){var We=Pe.className,ut=Pe.style,I=Se(o,We,r);return y.createElement("div",{ref:Fo($e,e,Ze),className:I,style:re(re(re(re({"--arrow-x":"".concat(S.x||0,"px"),"--arrow-y":"".concat(S.y||0,"px")},Me),we),ut),{},{boxSizing:"border-box",zIndex:N},l),onMouseEnter:A,onMouseLeave:z,onPointerEnter:P,onClick:p,onPointerDownCapture:B},b&&y.createElement(zX,{prefixCls:o,arrow:b,arrowPos:S,align:x}),y.createElement(YB,{cache:!d&&!m},Y))})}))});XB.displayName="Popup";var QB=y.forwardRef(function(t,e){var n=t.children,r=t.getTriggerDOMNode,o=As(n),l=y.useCallback(function(u){pw(e,r?r(u):u)},[r]),s=Ns(l,Zc(n));return o?y.cloneElement(n,{ref:s}):n});QB.displayName="TriggerWrapper";var qD=y.createContext(null);function GD(t){return t?Array.isArray(t)?t:[t]:[]}function BX(t,e,n,r){return y.useMemo(function(){var o=GD(n??e),l=GD(r??e),s=new Set(o),u=new Set(l);return t&&(s.has("hover")&&(s.delete("hover"),s.add("click")),u.has("hover")&&(u.delete("hover"),u.add("click"))),[s,u]},[t,e,n,r])}function HX(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}function jX(t,e,n,r){for(var o=n.points,l=Object.keys(t),s=0;s<l.length;s+=1){var u,d=l[s];if(HX((u=t[d])===null||u===void 0?void 0:u.points,o,r))return"".concat(e,"-placement-").concat(d)}return""}function KD(t,e,n,r){return e||(n?{motionName:"".concat(t,"-").concat(n)}:r?{motionName:r}:null)}function Cm(t){return t.ownerDocument.defaultView}function Sx(t){for(var e=[],n=t==null?void 0:t.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Cm(n).getComputedStyle(n),l=o.overflowX,s=o.overflowY,u=o.overflow;[l,s,u].some(function(d){return r.includes(d)})&&e.push(n),n=n.parentElement}return e}function nm(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(t)?e:t}function yh(t){return nm(parseFloat(t),0)}function YD(t,e){var n=re({},t);return(e||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=Cm(r).getComputedStyle(r),l=o.overflow,s=o.overflowClipMargin,u=o.borderTopWidth,d=o.borderBottomWidth,f=o.borderLeftWidth,m=o.borderRightWidth,p=r.getBoundingClientRect(),g=r.offsetHeight,b=r.clientHeight,S=r.offsetWidth,x=r.clientWidth,w=yh(u),O=yh(d),E=yh(f),M=yh(m),T=nm(Math.round(p.width/S*1e3)/1e3),$=nm(Math.round(p.height/g*1e3)/1e3),N=(S-x-E-M)*T,A=(g-b-w-O)*$,z=w*$,P=O*$,B=E*T,L=M*T,W=0,q=0;if(l==="clip"){var H=yh(s);W=H*T,q=H*$}var J=p.x+B-W,_=p.y+z-q,j=J+p.width+2*W-B-L-N,V=_+p.height+2*q-z-P-A;n.left=Math.max(n.left,J),n.top=Math.max(n.top,_),n.right=Math.min(n.right,j),n.bottom=Math.min(n.bottom,V)}}),n}function XD(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(e),r=n.match(/^(.*)\%$/);return r?t*(parseFloat(r[1])/100):parseFloat(n)}function QD(t,e){var n=e||[],r=Re(n,2),o=r[0],l=r[1];return[XD(t.width,o),XD(t.height,l)]}function ZD(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[t[0],t[1]]}function ld(t,e){var n=e[0],r=e[1],o,l;return n==="t"?l=t.y:n==="b"?l=t.y+t.height:l=t.y+t.height/2,r==="l"?o=t.x:r==="r"?o=t.x+t.width:o=t.x+t.width/2,{x:o,y:l}}function ns(t,e){var n={t:"b",b:"t",l:"r",r:"l"};return t.map(function(r,o){return o===e?n[r]||"c":r}).join("")}function LX(t,e,n,r,o,l,s){var u=y.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),d=Re(u,2),f=d[0],m=d[1],p=y.useRef(0),g=y.useMemo(function(){return e?Sx(e):[]},[e]),b=y.useRef({}),S=function(){b.current={}};t||S();var x=Hn(function(){if(e&&n&&t){let Pr=function(Bi,Po){var aa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ge,Is=Q.x+Bi,ks=Q.y+Po,Ha=Is+De,Bt=ks+he,Qt=Math.max(Is,aa.left),Wn=Math.max(ks,aa.top),fr=Math.min(Ha,aa.right),xn=Math.min(Bt,aa.bottom);return Math.max(0,(fr-Qt)*(xn-Wn))},ia=function(){mt=Q.y+St,rt=mt+he,Wt=Q.x+lt,Yt=Wt+De};var Ba=Pr,Kd=ia,E,M,T,$,N=e,A=N.ownerDocument,z=Cm(N),P=z.getComputedStyle(N),B=P.width,L=P.height,W=P.position,q=N.style.left,H=N.style.top,J=N.style.right,_=N.style.bottom,j=N.style.overflow,V=re(re({},o[r]),l),G=A.createElement("div");(E=N.parentElement)===null||E===void 0||E.appendChild(G),G.style.left="".concat(N.offsetLeft,"px"),G.style.top="".concat(N.offsetTop,"px"),G.style.position=W,G.style.height="".concat(N.offsetHeight,"px"),G.style.width="".concat(N.offsetWidth,"px"),N.style.left="0",N.style.top="0",N.style.right="auto",N.style.bottom="auto",N.style.overflow="hidden";var K;if(Array.isArray(n))K={x:n[0],y:n[1],width:0,height:0};else{var Y,ne,ae=n.getBoundingClientRect();ae.x=(Y=ae.x)!==null&&Y!==void 0?Y:ae.left,ae.y=(ne=ae.y)!==null&&ne!==void 0?ne:ae.top,K={x:ae.x,y:ae.y,width:ae.width,height:ae.height}}var Q=N.getBoundingClientRect();Q.x=(M=Q.x)!==null&&M!==void 0?M:Q.left,Q.y=(T=Q.y)!==null&&T!==void 0?T:Q.top;var se=A.documentElement,de=se.clientWidth,xe=se.clientHeight,fe=se.scrollWidth,Me=se.scrollHeight,ze=se.scrollTop,Oe=se.scrollLeft,he=Q.height,De=Q.width,pe=K.height,we=K.width,$e={left:0,top:0,right:de,bottom:xe},Pe={left:-Oe,top:-ze,right:fe-Oe,bottom:Me-ze},Ze=V.htmlRegion,We="visible",ut="visibleFirst";Ze!=="scroll"&&Ze!==ut&&(Ze=We);var I=Ze===ut,me=YD(Pe,g),oe=YD($e,g),ge=Ze===We?oe:me,Ue=I?oe:ge;N.style.left="auto",N.style.top="auto",N.style.right="0",N.style.bottom="0";var Fe=N.getBoundingClientRect();N.style.left=q,N.style.top=H,N.style.right=J,N.style.bottom=_,N.style.overflow=j,($=N.parentElement)===null||$===void 0||$.removeChild(G);var Te=nm(Math.round(De/parseFloat(B)*1e3)/1e3),_e=nm(Math.round(he/parseFloat(L)*1e3)/1e3);if(Te===0||_e===0||Wh(n)&&!Nw(n))return;var it=V.offset,Xe=V.targetOffset,dt=QD(Q,it),vt=Re(dt,2),et=vt[0],st=vt[1],at=QD(K,Xe),Ct=Re(at,2),$t=Ct[0],Ut=Ct[1];K.x-=$t,K.y-=Ut;var sn=V.points||[],un=Re(sn,2),kn=un[0],Rt=un[1],bt=ZD(Rt),kt=ZD(kn),Dt=ld(K,bt),jt=ld(Q,kt),wt=re({},V),lt=Dt.x-jt.x+et,St=Dt.y-jt.y+st,Kt=Pr(lt,St),tn=Pr(lt,St,oe),Tt=ld(K,["t","l"]),gt=ld(Q,["t","l"]),Nt=ld(K,["b","r"]),zt=ld(Q,["b","r"]),Et=V.overflow||{},D=Et.adjustX,ce=Et.adjustY,ke=Et.shiftX,Qe=Et.shiftY,ot=function(Po){return typeof Po=="boolean"?Po:Po>=0},mt,rt,Wt,Yt;ia();var Xt=ot(ce),cn=kt[0]===bt[0];if(Xt&&kt[0]==="t"&&(rt>Ue.bottom||b.current.bt)){var ct=St;cn?ct-=he-pe:ct=Tt.y-zt.y-st;var Ot=Pr(lt,ct),xt=Pr(lt,ct,oe);Ot>Kt||Ot===Kt&&(!I||xt>=tn)?(b.current.bt=!0,St=ct,st=-st,wt.points=[ns(kt,0),ns(bt,0)]):b.current.bt=!1}if(Xt&&kt[0]==="b"&&(mt<Ue.top||b.current.tb)){var nt=St;cn?nt+=he-pe:nt=Nt.y-gt.y-st;var qt=Pr(lt,nt),on=Pr(lt,nt,oe);qt>Kt||qt===Kt&&(!I||on>=tn)?(b.current.tb=!0,St=nt,st=-st,wt.points=[ns(kt,0),ns(bt,0)]):b.current.tb=!1}var dn=ot(D),Fn=kt[1]===bt[1];if(dn&&kt[1]==="l"&&(Yt>Ue.right||b.current.rl)){var gn=lt;Fn?gn-=De-we:gn=Tt.x-zt.x-et;var _n=Pr(gn,St),Dn=Pr(gn,St,oe);_n>Kt||_n===Kt&&(!I||Dn>=tn)?(b.current.rl=!0,lt=gn,et=-et,wt.points=[ns(kt,1),ns(bt,1)]):b.current.rl=!1}if(dn&&kt[1]==="r"&&(Wt<Ue.left||b.current.lr)){var Ln=lt;Fn?Ln+=De-we:Ln=Nt.x-gt.x-et;var Jn=Pr(Ln,St),dr=Pr(Ln,St,oe);Jn>Kt||Jn===Kt&&(!I||dr>=tn)?(b.current.lr=!0,lt=Ln,et=-et,wt.points=[ns(kt,1),ns(bt,1)]):b.current.lr=!1}ia();var F=ke===!0?0:ke;typeof F=="number"&&(Wt<oe.left&&(lt-=Wt-oe.left-et,K.x+we<oe.left+F&&(lt+=K.x-oe.left+we-F)),Yt>oe.right&&(lt-=Yt-oe.right-et,K.x>oe.right-F&&(lt+=K.x-oe.right+F)));var ie=Qe===!0?0:Qe;typeof ie=="number"&&(mt<oe.top&&(St-=mt-oe.top-st,K.y+pe<oe.top+ie&&(St+=K.y-oe.top+pe-ie)),rt>oe.bottom&&(St-=rt-oe.bottom-st,K.y>oe.bottom-ie&&(St+=K.y-oe.bottom+ie)));var Z=Q.x+lt,be=Z+De,Ce=Q.y+St,ve=Ce+he,qe=K.x,Be=qe+we,Ne=K.y,je=Ne+pe,Ge=Math.max(Z,qe),ft=Math.min(be,Be),Pt=(Ge+ft)/2,Jt=Pt-Z,en=Math.max(Ce,Ne),bn=Math.min(ve,je),vn=(en+bn)/2,Un=vn-Ce;s==null||s(e,wt);var lr=Fe.right-Q.x-(lt+Q.width),or=Fe.bottom-Q.y-(St+Q.height);Te===1&&(lt=Math.round(lt),lr=Math.round(lr)),_e===1&&(St=Math.round(St),or=Math.round(or));var Wo={ready:!0,offsetX:lt/Te,offsetY:St/_e,offsetR:lr/Te,offsetB:or/_e,arrowX:Jt/Te,arrowY:Un/_e,scaleX:Te,scaleY:_e,align:wt};m(Wo)}}),w=function(){p.current+=1;var M=p.current;Promise.resolve().then(function(){p.current===M&&x()})},O=function(){m(function(M){return re(re({},M),{},{ready:!1})})};return Gn(O,[r]),Gn(function(){t||O()},[t]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,w]}function VX(t,e,n,r,o){Gn(function(){if(t&&e&&n){let g=function(){r(),o()};var p=g,l=e,s=n,u=Sx(l),d=Sx(s),f=Cm(s),m=new Set([f].concat(ht(u),ht(d)));return m.forEach(function(b){b.addEventListener("scroll",g,{passive:!0})}),f.addEventListener("resize",g,{passive:!0}),r(),function(){m.forEach(function(b){b.removeEventListener("scroll",g),f.removeEventListener("resize",g)})}}},[t,e,n])}function FX(t,e,n,r,o,l,s,u){var d=y.useRef(t);d.current=t;var f=y.useRef(!1);y.useEffect(function(){if(e&&r&&(!o||l)){var p=function(){f.current=!1},g=function(T){var $;d.current&&!s((($=T.composedPath)===null||$===void 0||($=$.call(T))===null||$===void 0?void 0:$[0])||T.target)&&!f.current&&u(!1)},b=Cm(r);b.addEventListener("pointerdown",p,!0),b.addEventListener("mousedown",g,!0),b.addEventListener("contextmenu",g,!0);var S=Tv(n);S&&(S.addEventListener("mousedown",g,!0),S.addEventListener("contextmenu",g,!0));{var x,w,O=n==null||(x=n.getRootNode)===null||x===void 0?void 0:x.call(n),E=(w=r.getRootNode)===null||w===void 0?void 0:w.call(r);Aa(O===E,"trigger element and popup element should in same shadow root.")}return function(){b.removeEventListener("pointerdown",p,!0),b.removeEventListener("mousedown",g,!0),b.removeEventListener("contextmenu",g,!0),S&&(S.removeEventListener("mousedown",g,!0),S.removeEventListener("contextmenu",g,!0))}}},[e,n,r,o,l]);function m(){f.current=!0}return m}var UX=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function WX(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:by,e=y.forwardRef(function(n,r){var o=n.prefixCls,l=o===void 0?"rc-trigger-popup":o,s=n.children,u=n.action,d=u===void 0?"hover":u,f=n.showAction,m=n.hideAction,p=n.popupVisible,g=n.defaultPopupVisible,b=n.onPopupVisibleChange,S=n.afterPopupVisibleChange,x=n.mouseEnterDelay,w=n.mouseLeaveDelay,O=w===void 0?.1:w,E=n.focusDelay,M=n.blurDelay,T=n.mask,$=n.maskClosable,N=$===void 0?!0:$,A=n.getPopupContainer,z=n.forceRender,P=n.autoDestroy,B=n.destroyPopupOnHide,L=n.popup,W=n.popupClassName,q=n.popupStyle,H=n.popupPlacement,J=n.builtinPlacements,_=J===void 0?{}:J,j=n.popupAlign,V=n.zIndex,G=n.stretch,K=n.getPopupClassNameFromAlign,Y=n.fresh,ne=n.alignPoint,ae=n.onPopupClick,Q=n.onPopupAlign,se=n.arrow,de=n.popupMotion,xe=n.maskMotion,fe=n.popupTransitionName,Me=n.popupAnimation,ze=n.maskTransitionName,Oe=n.maskAnimation,he=n.className,De=n.getTriggerDOMNode,pe=an(n,UX),we=P||B||!1,$e=y.useState(!1),Pe=Re($e,2),Ze=Pe[0],We=Pe[1];Gn(function(){We(Fw())},[]);var ut=y.useRef({}),I=y.useContext(qD),me=y.useMemo(function(){return{registerSubPopup:function(Qt,Wn){ut.current[Qt]=Wn,I==null||I.registerSubPopup(Qt,Wn)}}},[I]),oe=Sy(),ge=y.useState(null),Ue=Re(ge,2),Fe=Ue[0],Te=Ue[1],_e=y.useRef(null),it=Hn(function(Bt){_e.current=Bt,Wh(Bt)&&Fe!==Bt&&Te(Bt),I==null||I.registerSubPopup(oe,Bt)}),Xe=y.useState(null),dt=Re(Xe,2),vt=dt[0],et=dt[1],st=y.useRef(null),at=Hn(function(Bt){Wh(Bt)&&vt!==Bt&&(et(Bt),st.current=Bt)}),Ct=y.Children.only(s),$t=(Ct==null?void 0:Ct.props)||{},Ut={},sn=Hn(function(Bt){var Qt,Wn,fr=vt;return(fr==null?void 0:fr.contains(Bt))||((Qt=Tv(fr))===null||Qt===void 0?void 0:Qt.host)===Bt||Bt===fr||(Fe==null?void 0:Fe.contains(Bt))||((Wn=Tv(Fe))===null||Wn===void 0?void 0:Wn.host)===Bt||Bt===Fe||Object.values(ut.current).some(function(xn){return(xn==null?void 0:xn.contains(Bt))||Bt===xn})}),un=KD(l,de,Me,fe),kn=KD(l,xe,Oe,ze),Rt=y.useState(g||!1),bt=Re(Rt,2),kt=bt[0],Dt=bt[1],jt=p??kt,wt=Hn(function(Bt){p===void 0&&Dt(Bt)});Gn(function(){Dt(p||!1)},[p]);var lt=y.useRef(jt);lt.current=jt;var St=y.useRef([]);St.current=[];var Kt=Hn(function(Bt){var Qt;wt(Bt),((Qt=St.current[St.current.length-1])!==null&&Qt!==void 0?Qt:jt)!==Bt&&(St.current.push(Bt),b==null||b(Bt))}),tn=y.useRef(),Tt=function(){clearTimeout(tn.current)},gt=function(Qt){var Wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Tt(),Wn===0?Kt(Qt):tn.current=setTimeout(function(){Kt(Qt)},Wn*1e3)};y.useEffect(function(){return Tt},[]);var Nt=y.useState(!1),zt=Re(Nt,2),Et=zt[0],D=zt[1];Gn(function(Bt){(!Bt||jt)&&D(!0)},[jt]);var ce=y.useState(null),ke=Re(ce,2),Qe=ke[0],ot=ke[1],mt=y.useState(null),rt=Re(mt,2),Wt=rt[0],Yt=rt[1],Xt=function(Qt){Yt([Qt.clientX,Qt.clientY])},cn=LX(jt,Fe,ne&&Wt!==null?Wt:vt,H,_,j,Q),ct=Re(cn,11),Ot=ct[0],xt=ct[1],nt=ct[2],qt=ct[3],on=ct[4],dn=ct[5],Fn=ct[6],gn=ct[7],_n=ct[8],Dn=ct[9],Ln=ct[10],Jn=BX(Ze,d,f,m),dr=Re(Jn,2),F=dr[0],ie=dr[1],Z=F.has("click"),be=ie.has("click")||ie.has("contextMenu"),Ce=Hn(function(){Et||Ln()}),ve=function(){lt.current&&ne&&be&&gt(!1)};VX(jt,vt,Fe,Ce,ve),Gn(function(){Ce()},[Wt,H]),Gn(function(){jt&&!(_!=null&&_[H])&&Ce()},[JSON.stringify(j)]);var qe=y.useMemo(function(){var Bt=jX(_,l,Dn,ne);return Se(Bt,K==null?void 0:K(Dn))},[Dn,K,_,l,ne]);y.useImperativeHandle(r,function(){return{nativeElement:st.current,popupElement:_e.current,forceAlign:Ce}});var Be=y.useState(0),Ne=Re(Be,2),je=Ne[0],Ge=Ne[1],ft=y.useState(0),Pt=Re(ft,2),Jt=Pt[0],en=Pt[1],bn=function(){if(G&&vt){var Qt=vt.getBoundingClientRect();Ge(Qt.width),en(Qt.height)}},vn=function(){bn(),Ce()},Un=function(Qt){D(!1),Ln(),S==null||S(Qt)},lr=function(){return new Promise(function(Qt){bn(),ot(function(){return Qt})})};Gn(function(){Qe&&(Ln(),Qe(),ot(null))},[Qe]);function or(Bt,Qt,Wn,fr){Ut[Bt]=function(xn){var ou;fr==null||fr(xn),gt(Qt,Wn);for(var Ps=arguments.length,Yd=new Array(Ps>1?Ps-1:0),zs=1;zs<Ps;zs++)Yd[zs-1]=arguments[zs];(ou=$t[Bt])===null||ou===void 0||ou.call.apply(ou,[$t,xn].concat(Yd))}}(Z||be)&&(Ut.onClick=function(Bt){var Qt;lt.current&&be?gt(!1):!lt.current&&Z&&(Xt(Bt),gt(!0));for(var Wn=arguments.length,fr=new Array(Wn>1?Wn-1:0),xn=1;xn<Wn;xn++)fr[xn-1]=arguments[xn];(Qt=$t.onClick)===null||Qt===void 0||Qt.call.apply(Qt,[$t,Bt].concat(fr))});var Wo=FX(jt,be,vt,Fe,T,N,sn,gt),Ba=F.has("hover"),Kd=ie.has("hover"),Pr,ia;Ba&&(or("onMouseEnter",!0,x,function(Bt){Xt(Bt)}),or("onPointerEnter",!0,x,function(Bt){Xt(Bt)}),Pr=function(Qt){(jt||Et)&&Fe!==null&&Fe!==void 0&&Fe.contains(Qt.target)&&gt(!0,x)},ne&&(Ut.onMouseMove=function(Bt){var Qt;(Qt=$t.onMouseMove)===null||Qt===void 0||Qt.call($t,Bt)})),Kd&&(or("onMouseLeave",!1,O),or("onPointerLeave",!1,O),ia=function(){gt(!1,O)}),F.has("focus")&&or("onFocus",!0,E),ie.has("focus")&&or("onBlur",!1,M),F.has("contextMenu")&&(Ut.onContextMenu=function(Bt){var Qt;lt.current&&ie.has("contextMenu")?gt(!1):(Xt(Bt),gt(!0)),Bt.preventDefault();for(var Wn=arguments.length,fr=new Array(Wn>1?Wn-1:0),xn=1;xn<Wn;xn++)fr[xn-1]=arguments[xn];(Qt=$t.onContextMenu)===null||Qt===void 0||Qt.call.apply(Qt,[$t,Bt].concat(fr))}),he&&(Ut.className=Se($t.className,he));var Bi=re(re({},$t),Ut),Po={},aa=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];aa.forEach(function(Bt){pe[Bt]&&(Po[Bt]=function(){for(var Qt,Wn=arguments.length,fr=new Array(Wn),xn=0;xn<Wn;xn++)fr[xn]=arguments[xn];(Qt=Bi[Bt])===null||Qt===void 0||Qt.call.apply(Qt,[Bi].concat(fr)),pe[Bt].apply(pe,fr)})});var Is=y.cloneElement(Ct,re(re({},Bi),Po)),ks={x:dn,y:Fn},Ha=se?re({},se!==!0?se:{}):null;return y.createElement(y.Fragment,null,y.createElement(xl,{disabled:!jt,ref:at,onResize:vn},y.createElement(QB,{getTriggerDOMNode:De},Is)),y.createElement(qD.Provider,{value:me},y.createElement(XB,{portal:t,ref:it,prefixCls:l,popup:L,className:Se(W,qe),style:q,target:vt,onMouseEnter:Pr,onMouseLeave:ia,onPointerEnter:Pr,zIndex:V,open:jt,keepDom:Et,fresh:Y,onClick:ae,onPointerDownCapture:Wo,mask:T,motion:un,maskMotion:kn,onVisibleChanged:Un,onPrepare:lr,forceRender:z,autoDestroy:we,getPopupContainer:A,align:Dn,arrow:Ha,arrowPos:ks,ready:Ot,offsetX:xt,offsetY:nt,offsetR:qt,offsetB:on,onAlign:Ce,stretch:G,targetWidth:je/gn,targetHeight:Jt/_n})))});return e.displayName="Trigger",e}const Ey=WX(by);var qX=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],GX=function(e){var n=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},KX=function(e,n){var r=e.prefixCls;e.disabled;var o=e.visible,l=e.children,s=e.popupElement,u=e.animation,d=e.transitionName,f=e.dropdownStyle,m=e.dropdownClassName,p=e.direction,g=p===void 0?"ltr":p,b=e.placement,S=e.builtinPlacements,x=e.dropdownMatchSelectWidth,w=e.dropdownRender,O=e.dropdownAlign,E=e.getPopupContainer,M=e.empty,T=e.getTriggerDOMNode,$=e.onPopupVisibleChange,N=e.onPopupMouseEnter,A=an(e,qX),z="".concat(r,"-dropdown"),P=s;w&&(P=w(s));var B=y.useMemo(function(){return S||GX(x)},[S,x]),L=u?"".concat(z,"-").concat(u):d,W=typeof x=="number",q=y.useMemo(function(){return W?null:x===!1?"minWidth":"width"},[x,W]),H=f;W&&(H=re(re({},H),{},{width:x}));var J=y.useRef(null);return y.useImperativeHandle(n,function(){return{getPopupElement:function(){var j;return(j=J.current)===null||j===void 0?void 0:j.popupElement}}}),y.createElement(Ey,yt({},A,{showAction:$?["click"]:[],hideAction:$?["click"]:[],popupPlacement:b||(g==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:B,prefixCls:z,popupTransitionName:L,popup:y.createElement("div",{onMouseEnter:N},P),ref:J,stretch:q,popupAlign:O,popupVisible:o,getPopupContainer:E,popupClassName:Se(m,te({},"".concat(z,"-empty"),M)),popupStyle:H,getTriggerDOMNode:T,onPopupVisibleChange:$}),l)},ZB=y.forwardRef(KX);ZB.displayName="SelectTrigger";function JD(t,e){var n=t.key,r;return"value"in t&&(r=t.value),n??(r!==void 0?r:"rc-index-key-".concat(e))}function Cx(t){return typeof t<"u"&&!Number.isNaN(t)}function JB(t,e){var n=t||{},r=n.label,o=n.value,l=n.options,s=n.groupLabel,u=r||(e?"children":"label");return{label:u,value:o||"value",options:l||"options",groupLabel:s||u}}function YX(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.fieldNames,r=e.childrenAsData,o=[],l=JB(n,!1),s=l.label,u=l.value,d=l.options,f=l.groupLabel;function m(p,g){Array.isArray(p)&&p.forEach(function(b){if(g||!(d in b)){var S=b[u];o.push({key:JD(b,o.length),groupOption:g,data:b,label:b[s],value:S})}else{var x=b[f];x===void 0&&r&&(x=b.label),o.push({key:JD(b,o.length),group:!0,data:b,label:x}),m(b[d],!0)}})}return m(t,!1),o}function xx(t){var e=re({},t);return"props"in e||Object.defineProperty(e,"props",{get:function(){return rn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),e}}),e}var XX=function(e,n,r){if(!n||!n.length)return null;var o=!1,l=function u(d,f){var m=Zz(f),p=m[0],g=m.slice(1);if(!p)return[d];var b=d.split(p);return o=o||b.length>1,b.reduce(function(S,x){return[].concat(ht(S),ht(u(x,g)))},[]).filter(Boolean)},s=l(e,n);return o?typeof r<"u"?s.slice(0,r):s:null},qw=y.createContext(null);function QX(t){var e=t.visible,n=t.values;if(!e)return null;var r=50;return y.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(o){var l=o.label,s=o.value;return["number","string"].includes(Ht(l))?l:s}).join(", ")),n.length>r?", ...":null)}var ZX=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],JX=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Dv=function(e){return e==="tags"||e==="multiple"},eH=y.forwardRef(function(t,e){var n,r=t.id,o=t.prefixCls,l=t.className,s=t.showSearch,u=t.tagRender,d=t.direction,f=t.omitDomProps,m=t.displayValues,p=t.onDisplayValuesChange,g=t.emptyOptions,b=t.notFoundContent,S=b===void 0?"Not Found":b,x=t.onClear,w=t.mode,O=t.disabled,E=t.loading,M=t.getInputElement,T=t.getRawInputElement,$=t.open,N=t.defaultOpen,A=t.onDropdownVisibleChange,z=t.activeValue,P=t.onActiveValueChange,B=t.activeDescendantId,L=t.searchValue,W=t.autoClearSearchValue,q=t.onSearch,H=t.onSearchSplit,J=t.tokenSeparators,_=t.allowClear,j=t.prefix,V=t.suffixIcon,G=t.clearIcon,K=t.OptionList,Y=t.animation,ne=t.transitionName,ae=t.dropdownStyle,Q=t.dropdownClassName,se=t.dropdownMatchSelectWidth,de=t.dropdownRender,xe=t.dropdownAlign,fe=t.placement,Me=t.builtinPlacements,ze=t.getPopupContainer,Oe=t.showAction,he=Oe===void 0?[]:Oe,De=t.onFocus,pe=t.onBlur,we=t.onKeyUp,$e=t.onKeyDown,Pe=t.onMouseDown,Ze=an(t,ZX),We=Dv(w),ut=(s!==void 0?s:We)||w==="combobox",I=re({},Ze);JX.forEach(function(Be){delete I[Be]}),f==null||f.forEach(function(Be){delete I[Be]});var me=y.useState(!1),oe=Re(me,2),ge=oe[0],Ue=oe[1];y.useEffect(function(){Ue(Fw())},[]);var Fe=y.useRef(null),Te=y.useRef(null),_e=y.useRef(null),it=y.useRef(null),Xe=y.useRef(null),dt=y.useRef(!1),vt=fX(),et=Re(vt,3),st=et[0],at=et[1],Ct=et[2];y.useImperativeHandle(e,function(){var Be,Ne;return{focus:(Be=it.current)===null||Be===void 0?void 0:Be.focus,blur:(Ne=it.current)===null||Ne===void 0?void 0:Ne.blur,scrollTo:function(Ge){var ft;return(ft=Xe.current)===null||ft===void 0?void 0:ft.scrollTo(Ge)},nativeElement:Fe.current||Te.current}});var $t=y.useMemo(function(){var Be;if(w!=="combobox")return L;var Ne=(Be=m[0])===null||Be===void 0?void 0:Be.value;return typeof Ne=="string"||typeof Ne=="number"?String(Ne):""},[L,w,m]),Ut=w==="combobox"&&typeof M=="function"&&M()||null,sn=typeof T=="function"&&T(),un=Ns(Te,sn==null||(n=sn.props)===null||n===void 0?void 0:n.ref),kn=y.useState(!1),Rt=Re(kn,2),bt=Rt[0],kt=Rt[1];Gn(function(){kt(!0)},[]);var Dt=vr(!1,{defaultValue:N,value:$}),jt=Re(Dt,2),wt=jt[0],lt=jt[1],St=bt?wt:!1,Kt=!S&&g;(O||Kt&&St&&w==="combobox")&&(St=!1);var tn=Kt?!1:St,Tt=y.useCallback(function(Be){var Ne=Be!==void 0?Be:!St;O||(lt(Ne),St!==Ne&&(A==null||A(Ne)))},[O,St,lt,A]),gt=y.useMemo(function(){return(J||[]).some(function(Be){return[`
587
- `,`\r
588
- `].includes(Be)})},[J]),Nt=y.useContext(qw)||{},zt=Nt.maxCount,Et=Nt.rawValues,D=function(Ne,je,Ge){if(!(We&&Cx(zt)&&(Et==null?void 0:Et.size)>=zt)){var ft=!0,Pt=Ne;P==null||P(null);var Jt=XX(Ne,J,Cx(zt)?zt-Et.size:void 0),en=Ge?null:Jt;return w!=="combobox"&&en&&(Pt="",H==null||H(en),Tt(!1),ft=!1),q&&$t!==Pt&&q(Pt,{source:je?"typing":"effect"}),ft}},ce=function(Ne){!Ne||!Ne.trim()||q(Ne,{source:"submit"})};y.useEffect(function(){!St&&!We&&w!=="combobox"&&D("",!1,!1)},[St]),y.useEffect(function(){wt&&O&&lt(!1),O&&!dt.current&&at(!1)},[O]);var ke=FB(),Qe=Re(ke,2),ot=Qe[0],mt=Qe[1],rt=y.useRef(!1),Wt=function(Ne){var je=ot(),Ge=Ne.key,ft=Ge==="Enter";if(ft&&(w!=="combobox"&&Ne.preventDefault(),St||Tt(!0)),mt(!!$t),Ge==="Backspace"&&!je&&We&&!$t&&m.length){for(var Pt=ht(m),Jt=null,en=Pt.length-1;en>=0;en-=1){var bn=Pt[en];if(!bn.disabled){Pt.splice(en,1),Jt=bn;break}}Jt&&p(Pt,{type:"remove",values:[Jt]})}for(var vn=arguments.length,Un=new Array(vn>1?vn-1:0),lr=1;lr<vn;lr++)Un[lr-1]=arguments[lr];if(St&&(!ft||!rt.current)){var or;ft&&(rt.current=!0),(or=Xe.current)===null||or===void 0||or.onKeyDown.apply(or,[Ne].concat(Un))}$e==null||$e.apply(void 0,[Ne].concat(Un))},Yt=function(Ne){for(var je=arguments.length,Ge=new Array(je>1?je-1:0),ft=1;ft<je;ft++)Ge[ft-1]=arguments[ft];if(St){var Pt;(Pt=Xe.current)===null||Pt===void 0||Pt.onKeyUp.apply(Pt,[Ne].concat(Ge))}Ne.key==="Enter"&&(rt.current=!1),we==null||we.apply(void 0,[Ne].concat(Ge))},Xt=function(Ne){var je=m.filter(function(Ge){return Ge!==Ne});p(je,{type:"remove",values:[Ne]})},cn=function(){rt.current=!1},ct=y.useRef(!1),Ot=function(){at(!0),O||(De&&!ct.current&&De.apply(void 0,arguments),he.includes("focus")&&Tt(!0)),ct.current=!0},xt=function(){dt.current=!0,at(!1,function(){ct.current=!1,dt.current=!1,Tt(!1)}),!O&&($t&&(w==="tags"?q($t,{source:"submit"}):w==="multiple"&&q("",{source:"blur"})),pe&&pe.apply(void 0,arguments))},nt=[];y.useEffect(function(){return function(){nt.forEach(function(Be){return clearTimeout(Be)}),nt.splice(0,nt.length)}},[]);var qt=function(Ne){var je,Ge=Ne.target,ft=(je=_e.current)===null||je===void 0?void 0:je.getPopupElement();if(ft&&ft.contains(Ge)){var Pt=setTimeout(function(){var vn=nt.indexOf(Pt);if(vn!==-1&&nt.splice(vn,1),Ct(),!ge&&!ft.contains(document.activeElement)){var Un;(Un=it.current)===null||Un===void 0||Un.focus()}});nt.push(Pt)}for(var Jt=arguments.length,en=new Array(Jt>1?Jt-1:0),bn=1;bn<Jt;bn++)en[bn-1]=arguments[bn];Pe==null||Pe.apply(void 0,[Ne].concat(en))},on=y.useState({}),dn=Re(on,2),Fn=dn[1];function gn(){Fn({})}var _n;sn&&(_n=function(Ne){Tt(Ne)}),hX(function(){var Be;return[Fe.current,(Be=_e.current)===null||Be===void 0?void 0:Be.getPopupElement()]},tn,Tt,!!sn);var Dn=y.useMemo(function(){return re(re({},t),{},{notFoundContent:S,open:St,triggerOpen:tn,id:r,showSearch:ut,multiple:We,toggleOpen:Tt})},[t,S,tn,St,r,ut,We,Tt]),Ln=!!V||E,Jn;Ln&&(Jn=y.createElement(wy,{className:Se("".concat(o,"-arrow"),te({},"".concat(o,"-arrow-loading"),E)),customizeIcon:V,customizeIconProps:{loading:E,searchValue:$t,open:St,focused:st,showSearch:ut}}));var dr=function(){var Ne;x==null||x(),(Ne=it.current)===null||Ne===void 0||Ne.focus(),p([],{type:"clear",values:m}),D("",!1,!1)},F=uX(o,dr,m,_,G,O,$t,w),ie=F.allowClear,Z=F.clearIcon,be=y.createElement(K,{ref:Xe}),Ce=Se(o,l,te(te(te(te(te(te(te(te(te(te({},"".concat(o,"-focused"),st),"".concat(o,"-multiple"),We),"".concat(o,"-single"),!We),"".concat(o,"-allow-clear"),_),"".concat(o,"-show-arrow"),Ln),"".concat(o,"-disabled"),O),"".concat(o,"-loading"),E),"".concat(o,"-open"),St),"".concat(o,"-customize-input"),Ut),"".concat(o,"-show-search"),ut)),ve=y.createElement(ZB,{ref:_e,disabled:O,prefixCls:o,visible:tn,popupElement:be,animation:Y,transitionName:ne,dropdownStyle:ae,dropdownClassName:Q,direction:d,dropdownMatchSelectWidth:se,dropdownRender:de,dropdownAlign:xe,placement:fe,builtinPlacements:Me,getPopupContainer:ze,empty:g,getTriggerDOMNode:function(Ne){return Te.current||Ne},onPopupVisibleChange:_n,onPopupMouseEnter:gn},sn?y.cloneElement(sn,{ref:un}):y.createElement(KB,yt({},t,{domRef:Te,prefixCls:o,inputElement:Ut,ref:it,id:r,prefix:j,showSearch:ut,autoClearSearchValue:W,mode:w,activeDescendantId:B,tagRender:u,values:m,open:St,onToggleOpen:Tt,activeValue:z,searchValue:$t,onSearch:D,onSearchSubmit:ce,onRemove:Xt,tokenWithEnter:gt,onInputBlur:cn}))),qe;return sn?qe=ve:qe=y.createElement("div",yt({className:Ce},I,{ref:Fe,onMouseDown:qt,onKeyDown:Wt,onKeyUp:Yt,onFocus:Ot,onBlur:xt}),y.createElement(QX,{visible:st&&!St,values:m}),ve,Jn,ie&&Z),y.createElement(VB.Provider,{value:Dn},qe)});eH.displayName="BaseSelect";var Gw=function(){return null};Gw.isSelectOptGroup=!0;var Kw=function(){return null};Kw.isSelectOption=!0;var tH=y.forwardRef(function(t,e){var n=t.height,r=t.offsetY,o=t.offsetX,l=t.children,s=t.prefixCls,u=t.onInnerResize,d=t.innerProps,f=t.rtl,m=t.extra,p={},g={display:"flex",flexDirection:"column"};return r!==void 0&&(p={height:n,position:"relative",overflow:"hidden"},g=re(re({},g),{},te(te(te(te(te({transform:"translateY(".concat(r,"px)")},f?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),y.createElement("div",{style:p},y.createElement(xl,{onResize:function(S){var x=S.offsetHeight;x&&u&&u()}},y.createElement("div",yt({style:g,className:Se(te({},"".concat(s,"-holder-inner"),s)),ref:e},d),l,m)))});tH.displayName="Filler";function eQ(t){var e=t.children,n=t.setRef,r=y.useCallback(function(o){n(o)},[]);return y.cloneElement(e,{ref:r})}function tQ(t,e,n,r,o,l,s,u){var d=u.getKey;return t.slice(e,n+1).map(function(f,m){var p=e+m,g=s(f,p,{style:{width:r},offsetX:o}),b=d(f);return y.createElement(eQ,{key:b,setRef:function(x){return l(f,x)}},g)})}function nQ(t,e,n){var r=t.length,o=e.length,l,s;if(r===0&&o===0)return null;r<o?(l=t,s=e):(l=e,s=t);var u={__EMPTY_ITEM__:!0};function d(S){return S!==void 0?n(S):u}for(var f=null,m=Math.abs(r-o)!==1,p=0;p<s.length;p+=1){var g=d(l[p]),b=d(s[p]);if(g!==b){f=p,m=m||g!==d(s[p+1]);break}}return f===null?null:{index:f,multiple:m}}function rQ(t,e,n){var r=y.useState(t),o=Re(r,2),l=o[0],s=o[1],u=y.useState(null),d=Re(u,2),f=d[0],m=d[1];return y.useEffect(function(){var p=nQ(l||[],t||[],e);(p==null?void 0:p.index)!==void 0&&m(t[p.index]),s(t)},[t]),[f]}var eI=(typeof navigator>"u"?"undefined":Ht(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const nH=function(t,e,n,r){var o=y.useRef(!1),l=y.useRef(null);function s(){clearTimeout(l.current),o.current=!0,l.current=setTimeout(function(){o.current=!1},50)}var u=y.useRef({top:t,bottom:e,left:n,right:r});return u.current.top=t,u.current.bottom=e,u.current.left=n,u.current.right=r,function(d,f){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,p=d?f<0&&u.current.left||f>0&&u.current.right:f<0&&u.current.top||f>0&&u.current.bottom;return m&&p?(clearTimeout(l.current),o.current=!1):(!p||o.current)&&s(),!o.current&&p}};function oQ(t,e,n,r,o,l,s){var u=y.useRef(0),d=y.useRef(null),f=y.useRef(null),m=y.useRef(!1),p=nH(e,n,r,o);function g(E,M){if(Mn.cancel(d.current),!p(!1,M)){var T=E;if(!T._virtualHandled)T._virtualHandled=!0;else return;u.current+=M,f.current=M,eI||T.preventDefault(),d.current=Mn(function(){var $=m.current?10:1;s(u.current*$,!1),u.current=0})}}function b(E,M){s(M,!0),eI||E.preventDefault()}var S=y.useRef(null),x=y.useRef(null);function w(E){if(t){Mn.cancel(x.current),x.current=Mn(function(){S.current=null},2);var M=E.deltaX,T=E.deltaY,$=E.shiftKey,N=M,A=T;(S.current==="sx"||!S.current&&$&&T&&!M)&&(N=T,A=0,S.current="sx");var z=Math.abs(N),P=Math.abs(A);S.current===null&&(S.current=l&&z>P?"x":"y"),S.current==="y"?g(E,A):b(E,N)}}function O(E){t&&(m.current=E.detail===f.current)}return[w,O]}function iQ(t,e,n,r){var o=y.useMemo(function(){return[new Map,[]]},[t,n.id,r]),l=Re(o,2),s=l[0],u=l[1],d=function(m){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:m,g=s.get(m),b=s.get(p);if(g===void 0||b===void 0)for(var S=t.length,x=u.length;x<S;x+=1){var w,O=t[x],E=e(O);s.set(E,x);var M=(w=n.get(E))!==null&&w!==void 0?w:r;if(u[x]=(u[x-1]||0)+M,E===m&&(g=x),E===p&&(b=x),g!==void 0&&b!==void 0)break}return{top:u[g-1]||0,bottom:u[b]}};return d}var aQ=function(){function t(){Er(this,t),te(this,"maps",void 0),te(this,"id",0),te(this,"diffKeys",new Set),this.maps=Object.create(null)}return Or(t,[{key:"set",value:function(n,r){this.maps[n]=r,this.id+=1,this.diffKeys.add(n)}},{key:"get",value:function(n){return this.maps[n]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),t}();function tI(t){var e=parseFloat(t);return isNaN(e)?0:e}function lQ(t,e,n){var r=y.useState(0),o=Re(r,2),l=o[0],s=o[1],u=y.useRef(new Map),d=y.useRef(new aQ),f=y.useRef(0);function m(){f.current+=1}function p(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;m();var S=function(){var O=!1;u.current.forEach(function(E,M){if(E&&E.offsetParent){var T=E.offsetHeight,$=getComputedStyle(E),N=$.marginTop,A=$.marginBottom,z=tI(N),P=tI(A),B=T+z+P;d.current.get(M)!==B&&(d.current.set(M,B),O=!0)}}),O&&s(function(E){return E+1})};if(b)S();else{f.current+=1;var x=f.current;Promise.resolve().then(function(){x===f.current&&S()})}}function g(b,S){var x=t(b);u.current.get(x),S?(u.current.set(x,S),p()):u.current.delete(x)}return y.useEffect(function(){return m},[]),[g,p,d.current,l]}var nI=14/15;function sQ(t,e,n){var r=y.useRef(!1),o=y.useRef(0),l=y.useRef(0),s=y.useRef(null),u=y.useRef(null),d,f=function(b){if(r.current){var S=Math.ceil(b.touches[0].pageX),x=Math.ceil(b.touches[0].pageY),w=o.current-S,O=l.current-x,E=Math.abs(w)>Math.abs(O);E?o.current=S:l.current=x;var M=n(E,E?w:O,!1,b);M&&b.preventDefault(),clearInterval(u.current),M&&(u.current=setInterval(function(){E?w*=nI:O*=nI;var T=Math.floor(E?w:O);(!n(E,T,!0)||Math.abs(T)<=.1)&&clearInterval(u.current)},16))}},m=function(){r.current=!1,d()},p=function(b){d(),b.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(b.touches[0].pageX),l.current=Math.ceil(b.touches[0].pageY),s.current=b.target,s.current.addEventListener("touchmove",f,{passive:!1}),s.current.addEventListener("touchend",m,{passive:!0}))};d=function(){s.current&&(s.current.removeEventListener("touchmove",f),s.current.removeEventListener("touchend",m))},Gn(function(){return t&&e.current.addEventListener("touchstart",p,{passive:!0}),function(){var g;(g=e.current)===null||g===void 0||g.removeEventListener("touchstart",p),d(),clearInterval(u.current)}},[t])}function rI(t){return Math.floor(Math.pow(t,.5))}function wx(t,e){var n="touches"in t?t.touches[0]:t;return n[e?"pageX":"pageY"]-window[e?"scrollX":"scrollY"]}function cQ(t,e,n){y.useEffect(function(){var r=e.current;if(t&&r){var o=!1,l,s,u=function(){Mn.cancel(l)},d=function g(){u(),l=Mn(function(){n(s),g()})},f=function(b){if(!(b.target.draggable||b.button!==0)){var S=b;S._virtualHandled||(S._virtualHandled=!0,o=!0)}},m=function(){o=!1,u()},p=function(b){if(o){var S=wx(b,!1),x=r.getBoundingClientRect(),w=x.top,O=x.bottom;if(S<=w){var E=w-S;s=-rI(E),d()}else if(S>=O){var M=S-O;s=rI(M),d()}else u()}};return r.addEventListener("mousedown",f),r.ownerDocument.addEventListener("mouseup",m),r.ownerDocument.addEventListener("mousemove",p),function(){r.removeEventListener("mousedown",f),r.ownerDocument.removeEventListener("mouseup",m),r.ownerDocument.removeEventListener("mousemove",p),u()}}},[t])}var oI=10;function uQ(t,e,n,r,o,l,s,u){var d=y.useRef(),f=y.useState(null),m=Re(f,2),p=m[0],g=m[1];return Gn(function(){if(p&&p.times<oI){if(!t.current){g(function(G){return re({},G)});return}l();var b=p.targetAlign,S=p.originAlign,x=p.index,w=p.offset,O=t.current.clientHeight,E=!1,M=b,T=null;if(O){for(var $=b||S,N=0,A=0,z=0,P=Math.min(e.length-1,x),B=0;B<=P;B+=1){var L=o(e[B]);A=N;var W=n.get(L);z=A+(W===void 0?r:W),N=z}for(var q=$==="top"?w:O-w,H=P;H>=0;H-=1){var J=o(e[H]),_=n.get(J);if(_===void 0){E=!0;break}if(q-=_,q<=0)break}switch($){case"top":T=A-w;break;case"bottom":T=z-O+w;break;default:{var j=t.current.scrollTop,V=j+O;A<j?M="top":z>V&&(M="bottom")}}T!==null&&s(T),T!==p.lastTop&&(E=!0)}E&&g(re(re({},p),{},{times:p.times+1,targetAlign:M,lastTop:T}))}else(p==null?void 0:p.times)===oI&&rn(!1,"Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.")},[p,t.current]),function(b){if(b==null){u();return}if(Mn.cancel(d.current),typeof b=="number")s(b);else if(b&&Ht(b)==="object"){var S,x=b.align;"index"in b?S=b.index:S=e.findIndex(function(E){return o(E)===b.key});var w=b.offset,O=w===void 0?0:w;g({times:0,index:S,offset:O,originAlign:x})}}}var Ex=y.forwardRef(function(t,e){var n=t.prefixCls,r=t.rtl,o=t.scrollOffset,l=t.scrollRange,s=t.onStartMove,u=t.onStopMove,d=t.onScroll,f=t.horizontal,m=t.spinSize,p=t.containerSize,g=t.style,b=t.thumbStyle,S=t.showScrollBar,x=y.useState(!1),w=Re(x,2),O=w[0],E=w[1],M=y.useState(null),T=Re(M,2),$=T[0],N=T[1],A=y.useState(null),z=Re(A,2),P=z[0],B=z[1],L=!r,W=y.useRef(),q=y.useRef(),H=y.useState(S),J=Re(H,2),_=J[0],j=J[1],V=y.useRef(),G=function(){S===!0||S===!1||(clearTimeout(V.current),j(!0),V.current=setTimeout(function(){j(!1)},3e3))},K=l-p||0,Y=p-m||0,ne=y.useMemo(function(){if(o===0||K===0)return 0;var Oe=o/K;return Oe*Y},[o,K,Y]),ae=function(he){he.stopPropagation(),he.preventDefault()},Q=y.useRef({top:ne,dragging:O,pageY:$,startTop:P});Q.current={top:ne,dragging:O,pageY:$,startTop:P};var se=function(he){E(!0),N(wx(he,f)),B(Q.current.top),s(),he.stopPropagation(),he.preventDefault()};y.useEffect(function(){var Oe=function(we){we.preventDefault()},he=W.current,De=q.current;return he.addEventListener("touchstart",Oe,{passive:!1}),De.addEventListener("touchstart",se,{passive:!1}),function(){he.removeEventListener("touchstart",Oe),De.removeEventListener("touchstart",se)}},[]);var de=y.useRef();de.current=K;var xe=y.useRef();xe.current=Y,y.useEffect(function(){if(O){var Oe,he=function(we){var $e=Q.current,Pe=$e.dragging,Ze=$e.pageY,We=$e.startTop;Mn.cancel(Oe);var ut=W.current.getBoundingClientRect(),I=p/(f?ut.width:ut.height);if(Pe){var me=(wx(we,f)-Ze)*I,oe=We;!L&&f?oe-=me:oe+=me;var ge=de.current,Ue=xe.current,Fe=Ue?oe/Ue:0,Te=Math.ceil(Fe*ge);Te=Math.max(Te,0),Te=Math.min(Te,ge),Oe=Mn(function(){d(Te,f)})}},De=function(){E(!1),u()};return window.addEventListener("mousemove",he,{passive:!0}),window.addEventListener("touchmove",he,{passive:!0}),window.addEventListener("mouseup",De,{passive:!0}),window.addEventListener("touchend",De,{passive:!0}),function(){window.removeEventListener("mousemove",he),window.removeEventListener("touchmove",he),window.removeEventListener("mouseup",De),window.removeEventListener("touchend",De),Mn.cancel(Oe)}}},[O]),y.useEffect(function(){return G(),function(){clearTimeout(V.current)}},[o]),y.useImperativeHandle(e,function(){return{delayHidden:G}});var fe="".concat(n,"-scrollbar"),Me={position:"absolute",visibility:_?null:"hidden"},ze={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return f?(Me.height=8,Me.left=0,Me.right=0,Me.bottom=0,ze.height="100%",ze.width=m,L?ze.left=ne:ze.right=ne):(Me.width=8,Me.top=0,Me.bottom=0,L?Me.right=0:Me.left=0,ze.width="100%",ze.height=m,ze.top=ne),y.createElement("div",{ref:W,className:Se(fe,te(te(te({},"".concat(fe,"-horizontal"),f),"".concat(fe,"-vertical"),!f),"".concat(fe,"-visible"),_)),style:re(re({},Me),g),onMouseDown:ae,onMouseMove:G},y.createElement("div",{ref:q,className:Se("".concat(fe,"-thumb"),te({},"".concat(fe,"-thumb-moving"),O)),style:re(re({},ze),b),onMouseDown:se}))});Ex.displayName="ScrollBar";var dQ=20;function iI(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=t/e*t;return isNaN(n)&&(n=0),n=Math.max(n,dQ),Math.floor(n)}var fQ=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],hQ=[],mQ={overflowY:"auto",overflowAnchor:"none"};function pQ(t,e){var n=t.prefixCls,r=n===void 0?"rc-virtual-list":n,o=t.className,l=t.height,s=t.itemHeight,u=t.fullHeight,d=u===void 0?!0:u,f=t.style,m=t.data,p=t.children,g=t.itemKey,b=t.virtual,S=t.direction,x=t.scrollWidth,w=t.component,O=w===void 0?"div":w,E=t.onScroll,M=t.onVirtualScroll,T=t.onVisibleChange,$=t.innerProps,N=t.extraRender,A=t.styles,z=t.showScrollBar,P=z===void 0?"optional":z,B=an(t,fQ),L=y.useCallback(function(ct){return typeof g=="function"?g(ct):ct==null?void 0:ct[g]},[g]),W=lQ(L),q=Re(W,4),H=q[0],J=q[1],_=q[2],j=q[3],V=!!(b!==!1&&l&&s),G=y.useMemo(function(){return Object.values(_.maps).reduce(function(ct,Ot){return ct+Ot},0)},[_.id,_.maps]),K=V&&m&&(Math.max(s*m.length,G)>l||!!x),Y=S==="rtl",ne=Se(r,te({},"".concat(r,"-rtl"),Y),o),ae=m||hQ,Q=y.useRef(),se=y.useRef(),de=y.useRef(),xe=y.useState(0),fe=Re(xe,2),Me=fe[0],ze=fe[1],Oe=y.useState(0),he=Re(Oe,2),De=he[0],pe=he[1],we=y.useState(!1),$e=Re(we,2),Pe=$e[0],Ze=$e[1],We=function(){Ze(!0)},ut=function(){Ze(!1)},I={getKey:L};function me(ct){ze(function(Ot){var xt;typeof ct=="function"?xt=ct(Ot):xt=ct;var nt=kt(xt);return Q.current.scrollTop=nt,nt})}var oe=y.useRef({start:0,end:ae.length}),ge=y.useRef(),Ue=rQ(ae,L),Fe=Re(Ue,1),Te=Fe[0];ge.current=Te;var _e=y.useMemo(function(){if(!V)return{scrollHeight:void 0,start:0,end:ae.length-1,offset:void 0};if(!K){var ct;return{scrollHeight:((ct=se.current)===null||ct===void 0?void 0:ct.offsetHeight)||0,start:0,end:ae.length-1,offset:void 0}}for(var Ot=0,xt,nt,qt,on=ae.length,dn=0;dn<on;dn+=1){var Fn=ae[dn],gn=L(Fn),_n=_.get(gn),Dn=Ot+(_n===void 0?s:_n);Dn>=Me&&xt===void 0&&(xt=dn,nt=Ot),Dn>Me+l&&qt===void 0&&(qt=dn),Ot=Dn}return xt===void 0&&(xt=0,nt=0,qt=Math.ceil(l/s)),qt===void 0&&(qt=ae.length-1),qt=Math.min(qt+1,ae.length-1),{scrollHeight:Ot,start:xt,end:qt,offset:nt}},[K,V,Me,ae,j,l]),it=_e.scrollHeight,Xe=_e.start,dt=_e.end,vt=_e.offset;oe.current.start=Xe,oe.current.end=dt,y.useLayoutEffect(function(){var ct=_.getRecord();if(ct.size===1){var Ot=Array.from(ct)[0],xt=ae[Xe];if(xt){var nt=L(xt);if(nt===Ot){var qt=_.get(Ot),on=qt-s;me(function(dn){return dn+on})}}}_.resetRecord()},[it]);var et=y.useState({width:0,height:l}),st=Re(et,2),at=st[0],Ct=st[1],$t=function(Ot){Ct({width:Ot.offsetWidth,height:Ot.offsetHeight})},Ut=y.useRef(),sn=y.useRef(),un=y.useMemo(function(){return iI(at.width,x)},[at.width,x]),kn=y.useMemo(function(){return iI(at.height,it)},[at.height,it]),Rt=it-l,bt=y.useRef(Rt);bt.current=Rt;function kt(ct){var Ot=ct;return Number.isNaN(bt.current)||(Ot=Math.min(Ot,bt.current)),Ot=Math.max(Ot,0),Ot}var Dt=Me<=0,jt=Me>=Rt,wt=De<=0,lt=De>=x,St=nH(Dt,jt,wt,lt),Kt=function(){return{x:Y?-De:De,y:Me}},tn=y.useRef(Kt()),Tt=Hn(function(ct){if(M){var Ot=re(re({},Kt()),ct);(tn.current.x!==Ot.x||tn.current.y!==Ot.y)&&(M(Ot),tn.current=Ot)}});function gt(ct,Ot){var xt=ct;Ot?(yl.flushSync(function(){pe(xt)}),Tt()):me(xt)}function Nt(ct){var Ot=ct.currentTarget.scrollTop;Ot!==Me&&me(Ot),E==null||E(ct),Tt()}var zt=function(Ot){var xt=Ot,nt=x?x-at.width:0;return xt=Math.max(xt,0),xt=Math.min(xt,nt),xt},Et=Hn(function(ct,Ot){Ot?(yl.flushSync(function(){pe(function(xt){var nt=xt+(Y?-ct:ct);return zt(nt)})}),Tt()):me(function(xt){var nt=xt+ct;return nt})}),D=oQ(V,Dt,jt,wt,lt,!!x,Et),ce=Re(D,2),ke=ce[0],Qe=ce[1];sQ(V,Q,function(ct,Ot,xt,nt){var qt=nt;return St(ct,Ot,xt)?!1:!qt||!qt._virtualHandled?(qt&&(qt._virtualHandled=!0),ke({preventDefault:function(){},deltaX:ct?Ot:0,deltaY:ct?0:Ot}),!0):!1}),cQ(K,Q,function(ct){me(function(Ot){return Ot+ct})}),Gn(function(){function ct(xt){var nt=Dt&&xt.detail<0,qt=jt&&xt.detail>0;V&&!nt&&!qt&&xt.preventDefault()}var Ot=Q.current;return Ot.addEventListener("wheel",ke,{passive:!1}),Ot.addEventListener("DOMMouseScroll",Qe,{passive:!0}),Ot.addEventListener("MozMousePixelScroll",ct,{passive:!1}),function(){Ot.removeEventListener("wheel",ke),Ot.removeEventListener("DOMMouseScroll",Qe),Ot.removeEventListener("MozMousePixelScroll",ct)}},[V,Dt,jt]),Gn(function(){if(x){var ct=zt(De);pe(ct),Tt({x:ct})}},[at.width,x]);var ot=function(){var Ot,xt;(Ot=Ut.current)===null||Ot===void 0||Ot.delayHidden(),(xt=sn.current)===null||xt===void 0||xt.delayHidden()},mt=uQ(Q,ae,_,s,L,function(){return J(!0)},me,ot);y.useImperativeHandle(e,function(){return{nativeElement:de.current,getScrollInfo:Kt,scrollTo:function(Ot){function xt(nt){return nt&&Ht(nt)==="object"&&("left"in nt||"top"in nt)}xt(Ot)?(Ot.left!==void 0&&pe(zt(Ot.left)),mt(Ot.top)):mt(Ot)}}}),Gn(function(){if(T){var ct=ae.slice(Xe,dt+1);T(ct,ae)}},[Xe,dt,ae]);var rt=iQ(ae,L,_,s),Wt=N==null?void 0:N({start:Xe,end:dt,virtual:K,offsetX:De,offsetY:vt,rtl:Y,getSize:rt}),Yt=tQ(ae,Xe,dt,x,De,H,p,I),Xt=null;l&&(Xt=re(te({},d?"height":"maxHeight",l),mQ),V&&(Xt.overflowY="hidden",x&&(Xt.overflowX="hidden"),Pe&&(Xt.pointerEvents="none")));var cn={};return Y&&(cn.dir="rtl"),y.createElement("div",yt({ref:de,style:re(re({},f),{},{position:"relative"}),className:ne},cn,B),y.createElement(xl,{onResize:$t},y.createElement(O,{className:"".concat(r,"-holder"),style:Xt,ref:Q,onScroll:Nt,onMouseEnter:ot},y.createElement(tH,{prefixCls:r,height:it,offsetX:De,offsetY:vt,scrollWidth:x,onInnerResize:J,ref:se,innerProps:$,rtl:Y,extra:Wt},Yt))),K&&it>l&&y.createElement(Ex,{ref:Ut,prefixCls:r,scrollOffset:Me,scrollRange:it,rtl:Y,onScroll:gt,onStartMove:We,onStopMove:ut,spinSize:kn,containerSize:at.height,style:A==null?void 0:A.verticalScrollBar,thumbStyle:A==null?void 0:A.verticalScrollBarThumb,showScrollBar:P}),K&&x>at.width&&y.createElement(Ex,{ref:sn,prefixCls:r,scrollOffset:De,scrollRange:x,rtl:Y,onScroll:gt,onStartMove:We,onStopMove:ut,spinSize:un,containerSize:at.width,horizontal:!0,style:A==null?void 0:A.horizontalScrollBar,thumbStyle:A==null?void 0:A.horizontalScrollBarThumb,showScrollBar:P}))}var rH=y.forwardRef(pQ);rH.displayName="List";function gQ(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var vQ=["disabled","title","children","style","className"];function aI(t){return typeof t=="string"||typeof t=="number"}var yQ=function(e,n){var r=dX(),o=r.prefixCls,l=r.id,s=r.open,u=r.multiple,d=r.mode,f=r.searchValue,m=r.toggleOpen,p=r.notFoundContent,g=r.onPopupScroll,b=y.useContext(qw),S=b.maxCount,x=b.flattenOptions,w=b.onActiveValue,O=b.defaultActiveFirstOption,E=b.onSelect,M=b.menuItemSelectedIcon,T=b.rawValues,$=b.fieldNames,N=b.virtual,A=b.direction,z=b.listHeight,P=b.listItemHeight,B=b.optionRender,L="".concat(o,"-item"),W=cm(function(){return x},[s,x],function(Oe,he){return he[0]&&Oe[1]!==he[1]}),q=y.useRef(null),H=y.useMemo(function(){return u&&Cx(S)&&(T==null?void 0:T.size)>=S},[u,S,T==null?void 0:T.size]),J=function(he){he.preventDefault()},_=function(he){var De;(De=q.current)===null||De===void 0||De.scrollTo(typeof he=="number"?{index:he}:he)},j=y.useCallback(function(Oe){return d==="combobox"?!1:T.has(Oe)},[d,ht(T).toString(),T.size]),V=function(he){for(var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,pe=W.length,we=0;we<pe;we+=1){var $e=(he+we*De+pe)%pe,Pe=W[$e]||{},Ze=Pe.group,We=Pe.data;if(!Ze&&!(We!=null&&We.disabled)&&(j(We.value)||!H))return $e}return-1},G=y.useState(function(){return V(0)}),K=Re(G,2),Y=K[0],ne=K[1],ae=function(he){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ne(he);var pe={source:De?"keyboard":"mouse"},we=W[he];if(!we){w(null,-1,pe);return}w(we.value,he,pe)};y.useEffect(function(){ae(O!==!1?V(0):-1)},[W.length,f]);var Q=y.useCallback(function(Oe){return d==="combobox"?String(Oe).toLowerCase()===f.toLowerCase():T.has(Oe)},[d,f,ht(T).toString(),T.size]);y.useEffect(function(){var Oe=setTimeout(function(){if(!u&&s&&T.size===1){var De=Array.from(T)[0],pe=W.findIndex(function(we){var $e=we.data;return $e.value===De});pe!==-1&&(ae(pe),_(pe))}});if(s){var he;(he=q.current)===null||he===void 0||he.scrollTo(void 0)}return function(){return clearTimeout(Oe)}},[s,f]);var se=function(he){he!==void 0&&E(he,{selected:!T.has(he)}),u||m(!1)};if(y.useImperativeHandle(n,function(){return{onKeyDown:function(he){var De=he.which,pe=he.ctrlKey;switch(De){case It.N:case It.P:case It.UP:case It.DOWN:{var we=0;if(De===It.UP?we=-1:De===It.DOWN?we=1:gQ()&&pe&&(De===It.N?we=1:De===It.P&&(we=-1)),we!==0){var $e=V(Y+we,we);_($e),ae($e,!0)}break}case It.TAB:case It.ENTER:{var Pe,Ze=W[Y];Ze&&!(Ze!=null&&(Pe=Ze.data)!==null&&Pe!==void 0&&Pe.disabled)&&!H?se(Ze.value):se(void 0),s&&he.preventDefault();break}case It.ESC:m(!1),s&&he.stopPropagation()}},onKeyUp:function(){},scrollTo:function(he){_(he)}}}),W.length===0)return y.createElement("div",{role:"listbox",id:"".concat(l,"_list"),className:"".concat(L,"-empty"),onMouseDown:J},p);var de=Object.keys($).map(function(Oe){return $[Oe]}),xe=function(he){return he.label};function fe(Oe,he){var De=Oe.group;return{role:De?"presentation":"option",id:"".concat(l,"_list_").concat(he)}}var Me=function(he){var De=W[he];if(!De)return null;var pe=De.data||{},we=pe.value,$e=De.group,Pe=Da(pe,!0),Ze=xe(De);return De?y.createElement("div",yt({"aria-label":typeof Ze=="string"&&!$e?Ze:null},Pe,{key:he},fe(De,he),{"aria-selected":Q(we)}),we):null},ze={role:"listbox",id:"".concat(l,"_list")};return y.createElement(y.Fragment,null,N&&y.createElement("div",yt({},ze,{style:{height:0,width:0,overflow:"hidden"}}),Me(Y-1),Me(Y),Me(Y+1)),y.createElement(rH,{itemKey:"key",ref:q,data:W,height:z,itemHeight:P,fullHeight:!1,onMouseDown:J,onScroll:g,virtual:N,direction:A,innerProps:N?null:ze},function(Oe,he){var De=Oe.group,pe=Oe.groupOption,we=Oe.data,$e=Oe.label,Pe=Oe.value,Ze=we.key;if(De){var We,ut=(We=we.title)!==null&&We!==void 0?We:aI($e)?$e.toString():void 0;return y.createElement("div",{className:Se(L,"".concat(L,"-group"),we.className),title:ut},$e!==void 0?$e:Ze)}var I=we.disabled,me=we.title;we.children;var oe=we.style,ge=we.className,Ue=an(we,vQ),Fe=Hr(Ue,de),Te=j(Pe),_e=I||!Te&&H,it="".concat(L,"-option"),Xe=Se(L,it,ge,te(te(te(te({},"".concat(it,"-grouped"),pe),"".concat(it,"-active"),Y===he&&!_e),"".concat(it,"-disabled"),_e),"".concat(it,"-selected"),Te)),dt=xe(Oe),vt=!M||typeof M=="function"||Te,et=typeof dt=="number"?dt:dt||Pe,st=aI(et)?et.toString():void 0;return me!==void 0&&(st=me),y.createElement("div",yt({},Da(Fe),N?{}:fe(Oe,he),{"aria-selected":Q(Pe),className:Xe,title:st,onMouseMove:function(){Y===he||_e||ae(he)},onClick:function(){_e||se(Pe)},style:oe}),y.createElement("div",{className:"".concat(it,"-content")},typeof B=="function"?B(Oe,{index:he}):et),y.isValidElement(M)||Te,vt&&y.createElement(wy,{className:"".concat(L,"-option-state"),customizeIcon:M,customizeIconProps:{value:Pe,disabled:_e,isSelected:Te}},Te?"✓":null))}))},oH=y.forwardRef(yQ);oH.displayName="OptionList";const bQ=function(t,e){var n=y.useRef({values:new Map,options:new Map}),r=y.useMemo(function(){var l=n.current,s=l.values,u=l.options,d=t.map(function(p){if(p.label===void 0){var g;return re(re({},p),{},{label:(g=s.get(p.value))===null||g===void 0?void 0:g.label})}return p}),f=new Map,m=new Map;return d.forEach(function(p){f.set(p.value,p),m.set(p.value,e.get(p.value)||u.get(p.value))}),n.current.values=f,n.current.options=m,d},[t,e]),o=y.useCallback(function(l){return e.get(l)||n.current.options.get(l)},[e]);return[r,o]};function UC(t,e){return Ww(t).join("").toUpperCase().includes(e)}const SQ=function(t,e,n,r,o){return y.useMemo(function(){if(!n||r===!1)return t;var l=e.options,s=e.label,u=e.value,d=[],f=typeof r=="function",m=n.toUpperCase(),p=f?r:function(b,S){return o?UC(S[o],m):S[l]?UC(S[s!=="children"?s:"label"],m):UC(S[u],m)},g=f?function(b){return xx(b)}:function(b){return b};return t.forEach(function(b){if(b[l]){var S=p(n,g(b));if(S)d.push(b);else{var x=b[l].filter(function(w){return p(n,g(w))});x.length&&d.push(re(re({},b),{},te({},l,x)))}return}p(n,g(b))&&d.push(b)}),d},[t,r,o,n,e])};var lI=0,CQ=yo();function xQ(){var t;return CQ?(t=lI,lI+=1):t="TEST_OR_SSR",t}function wQ(t){var e=y.useState(),n=Re(e,2),r=n[0],o=n[1];return y.useEffect(function(){o("rc_select_".concat(xQ()))},[]),t||r}var EQ=["children","value"],OQ=["children"];function RQ(t){var e=t,n=e.key,r=e.props,o=r.children,l=r.value,s=an(r,EQ);return re({key:n,value:l!==void 0?l:n,children:o},s)}function Yw(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ci(t).map(function(n,r){if(!y.isValidElement(n)||!n.type)return null;var o=n,l=o.type.isSelectOptGroup,s=o.key,u=o.props,d=u.children,f=an(u,OQ);return e||!l?RQ(n):re(re({key:"__RC_SELECT_GRP__".concat(s===null?r:s,"__"),label:s},f),{},{options:Yw(d)})}).filter(function(n){return n})}var TQ=function(e,n,r,o,l){return y.useMemo(function(){var s=e,u=!e;u&&(s=Yw(n));var d=new Map,f=new Map,m=function(b,S,x){x&&typeof x=="string"&&b.set(S[x],S)},p=function g(b){for(var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x=0;x<b.length;x+=1){var w=b[x];!w[r.options]||S?(d.set(w[r.value],w),m(f,w,r.label),m(f,w,o),m(f,w,l)):g(w[r.options],!0)}};return p(s),{options:s,valueOptions:d,labelOptions:f}},[e,n,r,o,l])};function sI(t){var e=y.useRef();e.current=t;var n=y.useCallback(function(){return e.current.apply(e,arguments)},[]);return n}function MQ(t){var e=t.mode,n=t.options,r=t.children,o=t.backfill,l=t.allowClear,s=t.placeholder,u=t.getInputElement,d=t.showSearch,f=t.onSearch,m=t.defaultOpen,p=t.autoFocus,g=t.labelInValue,b=t.value,S=t.inputValue,x=t.optionLabelProp,w=Dv(e),O=d!==void 0?d:w||e==="combobox",E=n||Yw(r);if(rn(e!=="tags"||E.every(function(N){return!N.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),e==="tags"||e==="combobox"){var M=E.some(function(N){return N.options?N.options.some(function(A){return typeof("value"in A?A.value:A.key)=="number"}):typeof("value"in N?N.value:N.key)=="number"});rn(!M,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(rn(e!=="combobox"||!x,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),rn(e==="combobox"||!o,"`backfill` only works with `combobox` mode."),rn(e==="combobox"||!u,"`getInputElement` only work with `combobox` mode."),O1(e!=="combobox"||!u||!l||!s,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),f&&!O&&e!=="combobox"&&e!=="tags"&&rn(!1,"`onSearch` should work with `showSearch` instead of use alone."),O1(!m||p,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),b!=null){var T=Ww(b);rn(!g||T.every(function(N){return Ht(N)==="object"&&("key"in N||"value"in N)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),rn(!w||Array.isArray(b),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){var $=null;ci(r).some(function(N){if(!y.isValidElement(N)||!N.type)return!1;var A=N,z=A.type;if(z.isSelectOption)return!1;if(z.isSelectOptGroup){var P=ci(N.props.children).every(function(B){return!y.isValidElement(B)||!N.type||B.type.isSelectOption?!0:($=B.type,!1)});return!P}return $=z,!0}),$&&rn(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat($.displayName||$.name||$,"`.")),rn(S===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function $Q(t,e){if(t){var n=function r(o){for(var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=0;s<o.length;s++){var u=o[s];if(u[e==null?void 0:e.value]===null)return rn(!1,"`value` in Select options should not be `null`."),!0;if(!l&&Array.isArray(u[e==null?void 0:e.options])&&r(u[e==null?void 0:e.options],!0))break}};n(t)}}var NQ=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],AQ=["inputValue"];function DQ(t){return!t||Ht(t)!=="object"}var iH=y.forwardRef(function(t,e){var n=t.id,r=t.mode,o=t.prefixCls,l=o===void 0?"rc-select":o,s=t.backfill,u=t.fieldNames,d=t.inputValue,f=t.searchValue,m=t.onSearch,p=t.autoClearSearchValue,g=p===void 0?!0:p,b=t.onSelect,S=t.onDeselect,x=t.dropdownMatchSelectWidth,w=x===void 0?!0:x,O=t.filterOption,E=t.filterSort,M=t.optionFilterProp,T=t.optionLabelProp,$=t.options,N=t.optionRender,A=t.children,z=t.defaultActiveFirstOption,P=t.menuItemSelectedIcon,B=t.virtual,L=t.direction,W=t.listHeight,q=W===void 0?200:W,H=t.listItemHeight,J=H===void 0?20:H,_=t.labelRender,j=t.value,V=t.defaultValue,G=t.labelInValue,K=t.onChange,Y=t.maxCount,ne=an(t,NQ),ae=wQ(n),Q=Dv(r),se=!!(!$&&A),de=y.useMemo(function(){return O===void 0&&r==="combobox"?!1:O},[O,r]),xe=y.useMemo(function(){return JB(u,se)},[JSON.stringify(u),se]),fe=vr("",{value:f!==void 0?f:d,postState:function(gt){return gt||""}}),Me=Re(fe,2),ze=Me[0],Oe=Me[1],he=TQ($,A,xe,M,T),De=he.valueOptions,pe=he.labelOptions,we=he.options,$e=y.useCallback(function(Tt){var gt=Ww(Tt);return gt.map(function(Nt){var zt,Et,D,ce,ke;if(DQ(Nt))zt=Nt;else{var Qe;D=Nt.key,Et=Nt.label,zt=(Qe=Nt.value)!==null&&Qe!==void 0?Qe:D}var ot=De.get(zt);if(ot){var mt;if(Et===void 0&&(Et=ot==null?void 0:ot[T||xe.label]),D===void 0&&(D=(mt=ot==null?void 0:ot.key)!==null&&mt!==void 0?mt:zt),ce=ot==null?void 0:ot.disabled,ke=ot==null?void 0:ot.title,!T){var rt=ot==null?void 0:ot[xe.label];rt!==void 0&&!y.isValidElement(rt)&&!y.isValidElement(Et)&&rt!==Et&&rn(!1,"`label` of `value` is not same as `label` in Select options.")}}return{label:Et,value:zt,key:D,disabled:ce,title:ke}})},[xe,T,De]),Pe=vr(V,{value:j}),Ze=Re(Pe,2),We=Ze[0],ut=Ze[1],I=y.useMemo(function(){var Tt,gt=Q&&We===null?[]:We,Nt=$e(gt);return r==="combobox"&&NX((Tt=Nt[0])===null||Tt===void 0?void 0:Tt.value)?[]:Nt},[We,$e,r,Q]),me=bQ(I,De),oe=Re(me,2),ge=oe[0],Ue=oe[1],Fe=y.useMemo(function(){if(!r&&ge.length===1){var Tt=ge[0];if(Tt.value===null&&(Tt.label===null||Tt.label===void 0))return[]}return ge.map(function(gt){var Nt;return re(re({},gt),{},{label:(Nt=typeof _=="function"?_(gt):gt.label)!==null&&Nt!==void 0?Nt:gt.value})})},[r,ge,_]),Te=y.useMemo(function(){return new Set(ge.map(function(Tt){return Tt.value}))},[ge]);y.useEffect(function(){if(r==="combobox"){var Tt,gt=(Tt=ge[0])===null||Tt===void 0?void 0:Tt.value;Oe($X(gt)?String(gt):"")}},[ge]);var _e=sI(function(Tt,gt){var Nt=gt??Tt;return te(te({},xe.value,Tt),xe.label,Nt)}),it=y.useMemo(function(){if(r!=="tags")return we;var Tt=ht(we),gt=function(zt){return De.has(zt)};return ht(ge).sort(function(Nt,zt){return Nt.value<zt.value?-1:1}).forEach(function(Nt){var zt=Nt.value;gt(zt)||Tt.push(_e(zt,Nt.label))}),Tt},[_e,we,De,ge,r]),Xe=SQ(it,xe,ze,de,M),dt=y.useMemo(function(){return r!=="tags"||!ze||Xe.some(function(Tt){return Tt[M||"value"]===ze})||Xe.some(function(Tt){return Tt[xe.value]===ze})?Xe:[_e(ze)].concat(ht(Xe))},[_e,M,r,Xe,ze,xe]),vt=function Tt(gt){var Nt=ht(gt).sort(function(zt,Et){return E(zt,Et,{searchValue:ze})});return Nt.map(function(zt){return Array.isArray(zt.options)?re(re({},zt),{},{options:zt.options.length>0?Tt(zt.options):zt.options}):zt})},et=y.useMemo(function(){return E?vt(dt):dt},[dt,E,ze]),st=y.useMemo(function(){return YX(et,{fieldNames:xe,childrenAsData:se})},[et,xe,se]),at=function(gt){var Nt=$e(gt);if(ut(Nt),K&&(Nt.length!==ge.length||Nt.some(function(D,ce){var ke;return((ke=ge[ce])===null||ke===void 0?void 0:ke.value)!==(D==null?void 0:D.value)}))){var zt=G?Nt:Nt.map(function(D){return D.value}),Et=Nt.map(function(D){return xx(Ue(D.value))});K(Q?zt:zt[0],Q?Et:Et[0])}},Ct=y.useState(null),$t=Re(Ct,2),Ut=$t[0],sn=$t[1],un=y.useState(0),kn=Re(un,2),Rt=kn[0],bt=kn[1],kt=z!==void 0?z:r!=="combobox",Dt=y.useCallback(function(Tt,gt){var Nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},zt=Nt.source,Et=zt===void 0?"keyboard":zt;bt(gt),s&&r==="combobox"&&Tt!==null&&Et==="keyboard"&&sn(String(Tt))},[s,r]),jt=function(gt,Nt,zt){var Et=function(){var Xt,cn=Ue(gt);return[G?{label:cn==null?void 0:cn[xe.label],value:gt,key:(Xt=cn==null?void 0:cn.key)!==null&&Xt!==void 0?Xt:gt}:gt,xx(cn)]};if(Nt&&b){var D=Et(),ce=Re(D,2),ke=ce[0],Qe=ce[1];b(ke,Qe)}else if(!Nt&&S&&zt!=="clear"){var ot=Et(),mt=Re(ot,2),rt=mt[0],Wt=mt[1];S(rt,Wt)}},wt=sI(function(Tt,gt){var Nt,zt=Q?gt.selected:!0;zt?Nt=Q?[].concat(ht(ge),[Tt]):[Tt]:Nt=ge.filter(function(Et){return Et.value!==Tt}),at(Nt),jt(Tt,zt),r==="combobox"?sn(""):(!Dv||g)&&(Oe(""),sn(""))}),lt=function(gt,Nt){at(gt);var zt=Nt.type,Et=Nt.values;(zt==="remove"||zt==="clear")&&Et.forEach(function(D){jt(D.value,!1,zt)})},St=function(gt,Nt){if(Oe(gt),sn(null),Nt.source==="submit"){var zt=(gt||"").trim();if(zt){var Et=Array.from(new Set([].concat(ht(Te),[zt])));at(Et),jt(zt,!0),Oe("")}return}Nt.source!=="blur"&&(r==="combobox"&&at(gt),m==null||m(gt))},Kt=function(gt){var Nt=gt;r!=="tags"&&(Nt=gt.map(function(Et){var D=pe.get(Et);return D==null?void 0:D.value}).filter(function(Et){return Et!==void 0}));var zt=Array.from(new Set([].concat(ht(Te),ht(Nt))));at(zt),zt.forEach(function(Et){jt(Et,!0)})},tn=y.useMemo(function(){var Tt=B!==!1&&w!==!1;return re(re({},he),{},{flattenOptions:st,onActiveValue:Dt,defaultActiveFirstOption:kt,onSelect:wt,menuItemSelectedIcon:P,rawValues:Te,fieldNames:xe,virtual:Tt,direction:L,listHeight:q,listItemHeight:J,childrenAsData:se,maxCount:Y,optionRender:N})},[Y,he,st,Dt,kt,wt,P,Te,xe,B,w,L,q,J,se,N]);return MQ(t),$Q(we,xe),y.createElement(qw.Provider,{value:tn},y.createElement(eH,yt({},ne,{id:ae,prefixCls:l,ref:e,omitDomProps:AQ,mode:r,displayValues:Fe,onDisplayValuesChange:lt,direction:L,searchValue:ze,onSearch:St,autoClearSearchValue:g,onSearchSplit:Kt,dropdownMatchSelectWidth:w,OptionList:oH,emptyOptions:!st.length,activeValue:Ut,activeDescendantId:"".concat(ae,"_list_").concat(Rt)})))});iH.displayName="Select";var Xw=iH;Xw.Option=Kw;Xw.OptGroup=Gw;function Yc(t,e,n){return Se({[`${t}-status-success`]:e==="success",[`${t}-status-warning`]:e==="warning",[`${t}-status-error`]:e==="error",[`${t}-status-validating`]:e==="validating",[`${t}-has-feedback`]:n})}const xm=(t,e)=>e||t,aH=()=>{const[,t]=Uo(),[e]=wl("Empty"),r=new zn(t.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return y.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},y.createElement("title",null,(e==null?void 0:e.description)||"Empty"),y.createElement("g",{fill:"none",fillRule:"evenodd"},y.createElement("g",{transform:"translate(24 31.67)"},y.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),y.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),y.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),y.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),y.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),y.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),y.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},y.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),y.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};aH.displayName="EmptyImage";const lH=()=>{const[,t]=Uo(),[e]=wl("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:l}=t,{borderColor:s,shadowColor:u,contentColor:d}=y.useMemo(()=>({borderColor:new zn(n).onBackground(l).toHexString(),shadowColor:new zn(r).onBackground(l).toHexString(),contentColor:new zn(o).onBackground(l).toHexString()}),[n,r,o,l]);return y.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},y.createElement("title",null,(e==null?void 0:e.description)||"Empty"),y.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},y.createElement("ellipse",{fill:u,cx:"32",cy:"33",rx:"32",ry:"7"}),y.createElement("g",{fillRule:"nonzero",stroke:s},y.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),y.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:d}))))};lH.displayName="SimpleImage";const IQ=t=>{const{componentCls:e,margin:n,marginXS:r,marginXL:o,fontSize:l,lineHeight:s}=t;return{[e]:{marginInline:r,fontSize:l,lineHeight:s,textAlign:"center",[`${e}-image`]:{height:t.emptyImgHeight,marginBottom:r,opacity:t.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${e}-description`]:{color:t.colorTextDescription},[`${e}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:t.colorTextDescription,[`${e}-description`]:{color:t.colorTextDescription},[`${e}-image`]:{height:t.emptyImgHeightMD}},"&-small":{marginBlock:r,color:t.colorTextDescription,[`${e}-image`]:{height:t.emptyImgHeightSM}}}}},kQ=pr("Empty",t=>{const{componentCls:e,controlHeightLG:n,calc:r}=t,o=In(t,{emptyImgCls:`${e}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[IQ(o)]});var PQ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};const sH=y.createElement(aH,null),cH=y.createElement(lH,null),cs=t=>{const{className:e,rootClassName:n,prefixCls:r,image:o=sH,description:l,children:s,imageStyle:u,style:d,classNames:f,styles:m}=t,p=PQ(t,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:g,direction:b,className:S,style:x,classNames:w,styles:O}=di("empty"),E=g("empty",r),[M,T,$]=kQ(E),[N]=wl("Empty"),A=typeof l<"u"?l:N==null?void 0:N.description,z=typeof A=="string"?A:"empty";let P=null;typeof o=="string"?P=y.createElement("img",{alt:z,src:o}):P=o;{const B=rr("Empty");[["imageStyle","styles: { image: {} }"]].forEach(L=>{let[W,q]=L;B.deprecated(!(W in t),W,q)})}return M(y.createElement("div",Object.assign({className:Se(T,$,E,S,{[`${E}-normal`]:o===cH,[`${E}-rtl`]:b==="rtl"},e,n,w.root,f==null?void 0:f.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},O.root),x),m==null?void 0:m.root),d)},p),y.createElement("div",{className:Se(`${E}-image`,w.image,f==null?void 0:f.image),style:Object.assign(Object.assign(Object.assign({},u),O.image),m==null?void 0:m.image)},P),A&&y.createElement("div",{className:Se(`${E}-description`,w.description,f==null?void 0:f.description),style:Object.assign(Object.assign({},O.description),m==null?void 0:m.description)},A),s&&y.createElement("div",{className:Se(`${E}-footer`,w.footer,f==null?void 0:f.footer),style:Object.assign(Object.assign({},O.footer),m==null?void 0:m.footer)},s)))};cs.PRESENTED_IMAGE_DEFAULT=sH;cs.PRESENTED_IMAGE_SIMPLE=cH;cs.displayName="Empty";const zQ=t=>{const{componentName:e}=t,{getPrefixCls:n}=y.useContext(Tn),r=n("empty");switch(e){case"Table":case"List":return ee.createElement(cs,{image:cs.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ee.createElement(cs,{image:cs.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return ee.createElement(cs,null)}},Oy=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,o;const{variant:l,[t]:s}=y.useContext(Tn),u=y.useContext(gY),d=s==null?void 0:s.variant;let f;typeof e<"u"?f=e:n===!1?f="borderless":f=(o=(r=u??d)!==null&&r!==void 0?r:l)!==null&&o!==void 0?o:"outlined";const m=iU.includes(f);return[f,m]},_Q=t=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:t==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function BQ(t,e){return t||_Q(e)}const cI=t=>{const{optionHeight:e,optionFontSize:n,optionLineHeight:r,optionPadding:o}=t;return{position:"relative",display:"block",minHeight:e,padding:o,color:t.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},HQ=t=>{const{antCls:e,componentCls:n}=t,r=`${n}-item`,o=`&${e}-slide-up-enter${e}-slide-up-enter-active`,l=`&${e}-slide-up-appear${e}-slide-up-appear-active`,s=`&${e}-slide-up-leave${e}-slide-up-leave-active`,u=`${n}-dropdown-placement-`,d=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},ao(t)),{position:"absolute",top:-9999,zIndex:t.zIndexPopup,boxSizing:"border-box",padding:t.paddingXXS,overflow:"hidden",fontSize:t.fontSize,fontVariant:"initial",backgroundColor:t.colorBgElevated,borderRadius:t.borderRadiusLG,outline:"none",boxShadow:t.boxShadowSecondary,[`
589
- ${o}${u}bottomLeft,
590
- ${l}${u}bottomLeft
591
- `]:{animationName:Iw},[`
592
- ${o}${u}topLeft,
593
- ${l}${u}topLeft,
594
- ${o}${u}topRight,
595
- ${l}${u}topRight
596
- `]:{animationName:Pw},[`${s}${u}bottomLeft`]:{animationName:kw},[`
597
- ${s}${u}topLeft,
598
- ${s}${u}topRight
599
- `]:{animationName:zw},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},cI(t)),{cursor:"pointer",transition:`background ${t.motionDurationSlow} ease`,borderRadius:t.borderRadiusSM,"&-group":{color:t.colorTextDescription,fontSize:t.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},em),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:t.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:t.optionSelectedColor,fontWeight:t.optionSelectedFontWeight,backgroundColor:t.optionSelectedBg,[`${r}-option-state`]:{color:t.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:t.colorBgContainerDisabled},color:t.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:t.calc(t.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},cI(t)),{color:t.colorTextDisabled})}),[`${d}:has(+ ${d})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${d}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Hd(t,"slide-up"),Hd(t,"slide-down"),$v(t,"move-up"),$v(t,"move-down")]},jQ=t=>{const{multipleSelectItemHeight:e,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=t,l=t.max(t.calc(n).sub(r).equal(),0),s=t.max(t.calc(l).sub(o).equal(),0);return{basePadding:l,containerPadding:s,itemHeight:Ee(e),itemLineHeight:Ee(t.calc(e).sub(t.calc(t.lineWidth).mul(2)).equal())}},LQ=t=>{const{multipleSelectItemHeight:e,selectHeight:n,lineWidth:r}=t;return t.calc(n).sub(e).div(2).sub(r).equal()},VQ=t=>{const{componentCls:e,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:l,multipleItemColorDisabled:s,multipleItemBorderColorDisabled:u,colorIcon:d,colorIconHover:f,INTERNAL_FIXED_ITEM_MARGIN:m}=t;return{[`${e}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${e}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:m,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:t.calc(m).mul(2).equal(),paddingInlineStart:l,paddingInlineEnd:t.calc(l).div(2).equal(),[`${e}-disabled&`]:{color:s,borderColor:u,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:t.calc(l).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},eu()),{display:"inline-flex",alignItems:"center",color:d,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:f}})}}}},FQ=(t,e)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=t,o=`${n}-selection-overflow`,l=t.multipleSelectItemHeight,s=LQ(t),u=e?`${n}-${e}`:"",d=jQ(t);return{[`${n}-multiple${u}`]:Object.assign(Object.assign({},VQ(t)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:d.basePadding,paddingBlock:d.containerPadding,borderRadius:t.borderRadius,[`${n}-disabled&`]:{background:t.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Ee(r)} 0`,lineHeight:Ee(l),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:d.itemHeight,lineHeight:Ee(d.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:Ee(l),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:t.calc(t.inputPaddingHorizontalBase).sub(d.basePadding).equal()},[`${o}-item + ${o}-item,
600
- ${n}-prefix + ${n}-selection-wrap
601
- `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:d.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:t.calc(t.inputPaddingHorizontalBase).sub(s).equal(),"\n &-input,\n &-mirror\n ":{height:l,fontFamily:t.fontFamily,lineHeight:Ee(l),transition:`all ${t.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:t.calc(t.inputPaddingHorizontalBase).sub(d.basePadding).equal(),insetInlineEnd:t.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${t.motionDurationSlow}`}})}};function WC(t,e){const{componentCls:n}=t,r=e?`${n}-${e}`:"",o={[`${n}-multiple${r}`]:{fontSize:t.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
602
- &${n}-show-arrow ${n}-selector,
603
- &${n}-allow-clear ${n}-selector
604
- `]:{paddingInlineEnd:t.calc(t.fontSizeIcon).add(t.controlPaddingHorizontal).equal()}}};return[FQ(t,e),o]}const UQ=t=>{const{componentCls:e}=t,n=In(t,{selectHeight:t.controlHeightSM,multipleSelectItemHeight:t.multipleItemHeightSM,borderRadius:t.borderRadiusSM,borderRadiusSM:t.borderRadiusXS}),r=In(t,{fontSize:t.fontSizeLG,selectHeight:t.controlHeightLG,multipleSelectItemHeight:t.multipleItemHeightLG,borderRadius:t.borderRadiusLG,borderRadiusSM:t.borderRadius});return[WC(t),WC(n,"sm"),{[`${e}-multiple${e}-sm`]:{[`${e}-selection-placeholder`]:{insetInline:t.calc(t.controlPaddingHorizontalSM).sub(t.lineWidth).equal()},[`${e}-selection-search`]:{marginInlineStart:2}}},WC(r,"lg")]};function qC(t,e){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=t,l=t.calc(t.controlHeight).sub(t.calc(t.lineWidth).mul(2)).equal(),s=e?`${n}-${e}`:"";return{[`${n}-single${s}`]:{fontSize:t.fontSize,height:t.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},ao(t,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:Ee(l)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
605
- ${n}-selection-item,
606
- ${n}-selection-placeholder
607
- `]:{display:"block",padding:0,lineHeight:Ee(l),transition:`all ${t.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
608
- &${n}-show-arrow ${n}-selection-item,
609
- &${n}-show-arrow ${n}-selection-search,
610
- &${n}-show-arrow ${n}-selection-placeholder
611
- `]:{paddingInlineEnd:t.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:t.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${Ee(r)}`,[`${n}-selection-search-input`]:{height:l,fontSize:t.fontSize},"&:after":{lineHeight:Ee(l)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Ee(r)}`,"&:after":{display:"none"}}}}}}}function WQ(t){const{componentCls:e}=t,n=t.calc(t.controlPaddingHorizontalSM).sub(t.lineWidth).equal();return[qC(t),qC(In(t,{controlHeight:t.controlHeightSM,borderRadius:t.borderRadiusSM}),"sm"),{[`${e}-single${e}-sm`]:{[`&:not(${e}-customize-input)`]:{[`${e}-selector`]:{padding:`0 ${Ee(n)}`},[`&${e}-show-arrow ${e}-selection-search`]:{insetInlineEnd:t.calc(n).add(t.calc(t.fontSize).mul(1.5)).equal()},[`
612
- &${e}-show-arrow ${e}-selection-item,
613
- &${e}-show-arrow ${e}-selection-placeholder
614
- `]:{paddingInlineEnd:t.calc(t.fontSize).mul(1.5).equal()}}}},qC(In(t,{controlHeight:t.singleItemHeightLG,fontSize:t.fontSizeLG,borderRadius:t.borderRadiusLG}),"lg")]}const qQ=t=>{const{fontSize:e,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:l,controlHeightLG:s,paddingXXS:u,controlPaddingHorizontal:d,zIndexPopupBase:f,colorText:m,fontWeightStrong:p,controlItemBgActive:g,controlItemBgHover:b,colorBgContainer:S,colorFillSecondary:x,colorBgContainerDisabled:w,colorTextDisabled:O,colorPrimaryHover:E,colorPrimary:M,controlOutline:T}=t,$=u*2,N=r*2,A=Math.min(o-$,o-N),z=Math.min(l-$,l-N),P=Math.min(s-$,s-N);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(u/2),zIndexPopup:f+50,optionSelectedColor:m,optionSelectedFontWeight:p,optionSelectedBg:g,optionActiveBg:b,optionPadding:`${(o-e*n)/2}px ${d}px`,optionFontSize:e,optionLineHeight:n,optionHeight:o,selectorBg:S,clearBg:S,singleItemHeightLG:s,multipleItemBg:x,multipleItemBorderColor:"transparent",multipleItemHeight:A,multipleItemHeightSM:z,multipleItemHeightLG:P,multipleSelectorBgDisabled:w,multipleItemColorDisabled:O,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(t.fontSize*1.25),hoverBorderColor:E,activeBorderColor:M,activeOutlineColor:T,selectAffixPadding:u}},uH=(t,e)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=t;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Ee(t.lineWidth)} ${t.lineType} ${e.borderColor}`,background:t.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:e.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:e.activeBorderColor,boxShadow:`0 0 0 ${Ee(o)} ${e.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:e.color}}}},uI=(t,e)=>({[`&${t.componentCls}-status-${e.status}`]:Object.assign({},uH(t,e))}),GQ=t=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},uH(t,{borderColor:t.colorBorder,hoverBorderHover:t.hoverBorderColor,activeBorderColor:t.activeBorderColor,activeOutlineColor:t.activeOutlineColor,color:t.colorText})),uI(t,{status:"error",borderColor:t.colorError,hoverBorderHover:t.colorErrorHover,activeBorderColor:t.colorError,activeOutlineColor:t.colorErrorOutline,color:t.colorError})),uI(t,{status:"warning",borderColor:t.colorWarning,hoverBorderHover:t.colorWarningHover,activeBorderColor:t.colorWarning,activeOutlineColor:t.colorWarningOutline,color:t.colorWarning})),{[`&${t.componentCls}-disabled`]:{[`&:not(${t.componentCls}-customize-input) ${t.componentCls}-selector`]:{background:t.colorBgContainerDisabled,color:t.colorTextDisabled}},[`&${t.componentCls}-multiple ${t.componentCls}-selection-item`]:{background:t.multipleItemBg,border:`${Ee(t.lineWidth)} ${t.lineType} ${t.multipleItemBorderColor}`}})}),dH=(t,e)=>{const{componentCls:n,antCls:r}=t;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:e.bg,border:`${Ee(t.lineWidth)} ${t.lineType} transparent`,color:e.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:e.hoverBg},[`${n}-focused& ${n}-selector`]:{background:t.selectorBg,borderColor:e.activeBorderColor,outline:0}}}},dI=(t,e)=>({[`&${t.componentCls}-status-${e.status}`]:Object.assign({},dH(t,e))}),KQ=t=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},dH(t,{bg:t.colorFillTertiary,hoverBg:t.colorFillSecondary,activeBorderColor:t.activeBorderColor,color:t.colorText})),dI(t,{status:"error",bg:t.colorErrorBg,hoverBg:t.colorErrorBgHover,activeBorderColor:t.colorError,color:t.colorError})),dI(t,{status:"warning",bg:t.colorWarningBg,hoverBg:t.colorWarningBgHover,activeBorderColor:t.colorWarning,color:t.colorWarning})),{[`&${t.componentCls}-disabled`]:{[`&:not(${t.componentCls}-customize-input) ${t.componentCls}-selector`]:{borderColor:t.colorBorder,background:t.colorBgContainerDisabled,color:t.colorTextDisabled}},[`&${t.componentCls}-multiple ${t.componentCls}-selection-item`]:{background:t.colorBgContainer,border:`${Ee(t.lineWidth)} ${t.lineType} ${t.colorSplit}`}})}),YQ=t=>({"&-borderless":{[`${t.componentCls}-selector`]:{background:"transparent",border:`${Ee(t.lineWidth)} ${t.lineType} transparent`},[`&${t.componentCls}-disabled`]:{[`&:not(${t.componentCls}-customize-input) ${t.componentCls}-selector`]:{color:t.colorTextDisabled}},[`&${t.componentCls}-multiple ${t.componentCls}-selection-item`]:{background:t.multipleItemBg,border:`${Ee(t.lineWidth)} ${t.lineType} ${t.multipleItemBorderColor}`},[`&${t.componentCls}-status-error`]:{[`${t.componentCls}-prefix, ${t.componentCls}-selection-item`]:{color:t.colorError}},[`&${t.componentCls}-status-warning`]:{[`${t.componentCls}-prefix, ${t.componentCls}-selection-item`]:{color:t.colorWarning}}}}),fH=(t,e)=>{const{componentCls:n,antCls:r}=t;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`0 0 ${Ee(t.lineWidth)} 0`,borderStyle:`none none ${t.lineType} none`,borderColor:e.borderColor,background:t.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:e.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:e.activeBorderColor,outline:0},[`${n}-prefix`]:{color:e.color}}}},fI=(t,e)=>({[`&${t.componentCls}-status-${e.status}`]:Object.assign({},fH(t,e))}),XQ=t=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},fH(t,{borderColor:t.colorBorder,hoverBorderHover:t.hoverBorderColor,activeBorderColor:t.activeBorderColor,activeOutlineColor:t.activeOutlineColor,color:t.colorText})),fI(t,{status:"error",borderColor:t.colorError,hoverBorderHover:t.colorErrorHover,activeBorderColor:t.colorError,activeOutlineColor:t.colorErrorOutline,color:t.colorError})),fI(t,{status:"warning",borderColor:t.colorWarning,hoverBorderHover:t.colorWarningHover,activeBorderColor:t.colorWarning,activeOutlineColor:t.colorWarningOutline,color:t.colorWarning})),{[`&${t.componentCls}-disabled`]:{[`&:not(${t.componentCls}-customize-input) ${t.componentCls}-selector`]:{color:t.colorTextDisabled}},[`&${t.componentCls}-multiple ${t.componentCls}-selection-item`]:{background:t.multipleItemBg,border:`${Ee(t.lineWidth)} ${t.lineType} ${t.multipleItemBorderColor}`}})}),QQ=t=>({[t.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},GQ(t)),KQ(t)),YQ(t)),XQ(t))}),ZQ=t=>{const{componentCls:e}=t;return{position:"relative",transition:`all ${t.motionDurationMid} ${t.motionEaseInOut}`,input:{cursor:"pointer"},[`${e}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${e}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},JQ=t=>{const{componentCls:e}=t;return{[`${e}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},eZ=t=>{const{antCls:e,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=t;return{[n]:Object.assign(Object.assign({},ao(t)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},ZQ(t)),JQ(t)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},em),{[`> ${e}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},em),{flex:1,color:t.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},eu()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:t.fontSizeIcon,marginTop:t.calc(t.fontSizeIcon).mul(-1).div(2).equal(),color:t.colorTextQuaternary,fontSize:t.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${t.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${t.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:t.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:t.fontSizeIcon,height:t.fontSizeIcon,marginTop:t.calc(t.fontSizeIcon).mul(-1).div(2).equal(),color:t.colorTextQuaternary,fontSize:t.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${t.motionDurationMid} ease, opacity ${t.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:t.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:t.colorBgBase,borderRadius:"50%"}}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:t.calc(r).add(t.fontSize).add(t.paddingXS).equal()}}}}}},tZ=t=>{const{componentCls:e}=t;return[{[e]:{[`&${e}-in-form-item`]:{width:"100%"}}},eZ(t),WQ(t),UQ(t),HQ(t),{[`${e}-rtl`]:{direction:"rtl"}},gm(t,{borderElCls:`${e}-selector`,focusElCls:`${e}-focused`})]},nZ=pr("Select",(t,e)=>{let{rootPrefixCls:n}=e;const r=In(t,{rootPrefixCls:n,inputPaddingHorizontalBase:t.calc(t.paddingSM).sub(1).equal(),multipleSelectItemHeight:t.multipleItemHeight,selectHeight:t.controlHeight});return[tZ(r),QQ(r)]},qQ,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var rZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},oZ=function(e,n){return y.createElement(Lr,yt({},e,{ref:n,icon:rZ}))},hH=y.forwardRef(oZ);hH.displayName="CheckOutlined";var iZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},aZ=function(e,n){return y.createElement(Lr,yt({},e,{ref:n,icon:iZ}))},Qw=y.forwardRef(aZ);Qw.displayName="DownOutlined";var lZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},sZ=function(e,n){return y.createElement(Lr,yt({},e,{ref:n,icon:lZ}))},Zw=y.forwardRef(sZ);Zw.displayName="SearchOutlined";function cZ(t){let{suffixIcon:e,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:l,multiple:s,hasFeedback:u,prefixCls:d,showSuffixIcon:f,feedbackIcon:m,showArrow:p,componentName:g}=t;rr(g).deprecated(!n,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const b=n??y.createElement(cy,null),S=E=>e===null&&!u&&!p?null:y.createElement(y.Fragment,null,f!==!1&&E,u&&m);let x=null;if(e!==void 0)x=S(e);else if(l)x=S(y.createElement($w,{spin:!0}));else{const E=`${d}-suffix`;x=M=>{let{open:T,showSearch:$}=M;return S(T&&$?y.createElement(Zw,{className:E}):y.createElement(Qw,{className:E}))}}let w=null;r!==void 0?w=r:s?w=y.createElement(hH,null):w=null;let O=null;return o!==void 0?O=o:O=y.createElement(dm,null),{clearIcon:b,suffixIcon:x,itemIcon:w,removeIcon:O}}function uZ(t,e){return e!==void 0?e:t!==null}var dZ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};const mH="SECRET_COMBOBOX_MODE_DO_NOT_USE",pH=(t,e)=>{var n;const{prefixCls:r,bordered:o,className:l,rootClassName:s,getPopupContainer:u,popupClassName:d,dropdownClassName:f,listHeight:m=256,placement:p,listItemHeight:g,size:b,disabled:S,notFoundContent:x,status:w,builtinPlacements:O,dropdownMatchSelectWidth:E,popupMatchSelectWidth:M,direction:T,style:$,allowClear:N,variant:A,dropdownStyle:z,transitionName:P,tagRender:B,maxCount:L,prefix:W}=t,q=dZ(t,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:H,getPrefixCls:J,renderEmpty:_,direction:j,virtual:V,popupMatchSelectWidth:G,popupOverflow:K}=y.useContext(Tn),Y=di("select"),[,ne]=Uo(),ae=g??(ne==null?void 0:ne.controlHeight),Q=J("select",r),se=J(),de=T??j,{compactSize:xe,compactItemClassnames:fe}=Ds(Q,de),[Me,ze]=Oy("select",A,o),Oe=El(Q),[he,De,pe]=nZ(Q,Oe),we=y.useMemo(()=>{const{mode:Ut}=t;if(Ut!=="combobox")return Ut===mH?"combobox":Ut},[t.mode]),$e=we==="multiple"||we==="tags",Pe=uZ(t.suffixIcon,t.showArrow),Ze=(n=M??E)!==null&&n!==void 0?n:G,{status:We,hasFeedback:ut,isFormItemInput:I,feedbackIcon:me}=y.useContext(zi),oe=xm(We,w);let ge;x!==void 0?ge=x:we==="combobox"?ge=null:ge=(_==null?void 0:_("Select"))||y.createElement(zQ,{componentName:"Select"});const{suffixIcon:Ue,itemIcon:Fe,removeIcon:Te,clearIcon:_e}=cZ(Object.assign(Object.assign({},q),{multiple:$e,hasFeedback:ut,feedbackIcon:me,showSuffixIcon:Pe,prefixCls:Q,componentName:"Select"})),it=N===!0?{clearIcon:_e}:N,Xe=Hr(q,["suffixIcon","itemIcon"]),dt=Se(d||f,{[`${Q}-dropdown-${de}`]:de==="rtl"},s,pe,Oe,De),vt=ra(Ut=>{var sn;return(sn=b??xe)!==null&&sn!==void 0?sn:Ut}),et=y.useContext(ea),st=S??et,at=Se({[`${Q}-lg`]:vt==="large",[`${Q}-sm`]:vt==="small",[`${Q}-rtl`]:de==="rtl",[`${Q}-${Me}`]:ze,[`${Q}-in-form-item`]:I},Yc(Q,oe,ut),fe,Y.className,l,s,pe,Oe,De),Ct=y.useMemo(()=>p!==void 0?p:de==="rtl"?"bottomRight":"bottomLeft",[p,de]);{const Ut=rr("Select");Ut.deprecated(!f,"dropdownClassName","popupClassName"),Ut.deprecated(E===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),Ut(!("showArrow"in t),"deprecated","`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."),Ut.deprecated(!("bordered"in t),"bordered","variant"),Ut(!(typeof L<"u"&&!$e),"usage","`maxCount` only works with mode `multiple` or `tags`")}const[$t]=hm("SelectLike",z==null?void 0:z.zIndex);return he(y.createElement(Xw,Object.assign({ref:e,virtual:V,showSearch:Y.showSearch},Xe,{style:Object.assign(Object.assign({},Y.style),$),dropdownMatchSelectWidth:Ze,transitionName:Kc(se,"slide-up",P),builtinPlacements:BQ(O,K),listHeight:m,listItemHeight:ae,mode:we,prefixCls:Q,placement:Ct,direction:de,prefix:W,suffixIcon:Ue,menuItemSelectedIcon:Fe,removeIcon:Te,allowClear:it,notFoundContent:ge,className:at,getPopupContainer:u||H,dropdownClassName:dt,disabled:st,dropdownStyle:Object.assign(Object.assign({},z),{zIndex:$t}),maxCount:$e?L:void 0,tagRender:$e?B:void 0})))};pH.displayName="Select";const ri=y.forwardRef(pH),fZ=Vw(ri,"dropdownAlign");ri.SECRET_COMBOBOX_MODE_DO_NOT_USE=mH;ri.Option=Kw;ri.OptGroup=Gw;ri._InternalPanelDoNotUseOrYouWillBeFired=fZ;ri.displayName="Select";const Iv=t=>t?typeof t=="function"?t():t:null;function Jw(t){var e=t.children,n=t.prefixCls,r=t.id,o=t.overlayInnerStyle,l=t.bodyClassName,s=t.className,u=t.style;return y.createElement("div",{className:Se("".concat(n,"-content"),s),style:u},y.createElement("div",{className:Se("".concat(n,"-inner"),l),id:r,role:"tooltip",style:o},typeof e=="function"?e():e))}var sd={shiftX:64,adjustY:1},cd={adjustX:1,shiftY:!0},Ni=[0,0],hZ={left:{points:["cr","cl"],overflow:cd,offset:[-4,0],targetOffset:Ni},right:{points:["cl","cr"],overflow:cd,offset:[4,0],targetOffset:Ni},top:{points:["bc","tc"],overflow:sd,offset:[0,-4],targetOffset:Ni},bottom:{points:["tc","bc"],overflow:sd,offset:[0,4],targetOffset:Ni},topLeft:{points:["bl","tl"],overflow:sd,offset:[0,-4],targetOffset:Ni},leftTop:{points:["tr","tl"],overflow:cd,offset:[-4,0],targetOffset:Ni},topRight:{points:["br","tr"],overflow:sd,offset:[0,-4],targetOffset:Ni},rightTop:{points:["tl","tr"],overflow:cd,offset:[4,0],targetOffset:Ni},bottomRight:{points:["tr","br"],overflow:sd,offset:[0,4],targetOffset:Ni},rightBottom:{points:["bl","br"],overflow:cd,offset:[4,0],targetOffset:Ni},bottomLeft:{points:["tl","bl"],overflow:sd,offset:[0,4],targetOffset:Ni},leftBottom:{points:["br","bl"],overflow:cd,offset:[-4,0],targetOffset:Ni}},mZ=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],pZ=function(e,n){var r=e.overlayClassName,o=e.trigger,l=o===void 0?["hover"]:o,s=e.mouseEnterDelay,u=s===void 0?0:s,d=e.mouseLeaveDelay,f=d===void 0?.1:d,m=e.overlayStyle,p=e.prefixCls,g=p===void 0?"rc-tooltip":p,b=e.children,S=e.onVisibleChange,x=e.afterVisibleChange,w=e.transitionName,O=e.animation,E=e.motion,M=e.placement,T=M===void 0?"right":M,$=e.align,N=$===void 0?{}:$,A=e.destroyTooltipOnHide,z=A===void 0?!1:A,P=e.defaultVisible,B=e.getTooltipContainer,L=e.overlayInnerStyle;e.arrowContent;var W=e.overlay,q=e.id,H=e.showArrow,J=H===void 0?!0:H,_=e.classNames,j=e.styles,V=an(e,mZ),G=Sy(q),K=y.useRef(null);y.useImperativeHandle(n,function(){return K.current});var Y=re({},V);"visible"in e&&(Y.popupVisible=e.visible);var ne=function(){return y.createElement(Jw,{key:"content",prefixCls:g,id:G,bodyClassName:_==null?void 0:_.body,overlayInnerStyle:re(re({},L),j==null?void 0:j.body)},W)},ae=function(){var se=y.Children.only(b),de=(se==null?void 0:se.props)||{},xe=re(re({},de),{},{"aria-describedby":W?G:null});return y.cloneElement(b,xe)};return y.createElement(Ey,yt({popupClassName:Se(r,_==null?void 0:_.root),prefixCls:g,popup:ne,action:l,builtinPlacements:hZ,popupPlacement:T,ref:K,popupAlign:N,getPopupContainer:B,onPopupVisibleChange:S,afterPopupVisibleChange:x,popupTransitionName:w,popupAnimation:O,popupMotion:E,defaultPopupVisible:P,autoDestroy:z,mouseLeaveDelay:f,popupStyle:re(re({},m),j==null?void 0:j.root),mouseEnterDelay:u,arrow:J},Y),ae())};const gZ=y.forwardRef(pZ);function eE(t){const{sizePopupArrow:e,borderRadiusXS:n,borderRadiusOuter:r}=t,o=e/2,l=0,s=o,u=r*1/Math.sqrt(2),d=o-r*(1-1/Math.sqrt(2)),f=o-n*(1/Math.sqrt(2)),m=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),p=2*o-f,g=m,b=2*o-u,S=d,x=2*o-l,w=s,O=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),E=r*(Math.sqrt(2)-1),M=`polygon(${E}px 100%, 50% ${E}px, ${2*o-E}px 100%, ${E}px 100%)`,T=`path('M ${l} ${s} A ${r} ${r} 0 0 0 ${u} ${d} L ${f} ${m} A ${n} ${n} 0 0 1 ${p} ${g} L ${b} ${S} A ${r} ${r} 0 0 0 ${x} ${w} Z')`;return{arrowShadowWidth:O,arrowPath:T,arrowPolygon:M}}const vZ=(t,e,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:l,arrowShadowWidth:s,borderRadiusXS:u,calc:d}=t;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:d(r).div(2).equal(),background:e,clipPath:{_multi_value_:!0,value:[o,l]},content:'""'},"&::after":{content:'""',position:"absolute",width:s,height:s,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Ee(u)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},gH=8;function Ry(t){const{contentRadius:e,limitVerticalRadius:n}=t,r=e>12?e+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?gH:r}}function Ng(t,e){return t?e:{}}function tE(t,e,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:l,arrowOffsetHorizontal:s}=t,{arrowDistance:u=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},vZ(t,e,o)),{"&:before":{background:e}})]},Ng(!!d.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":s,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Ee(s)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),Ng(!!d.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":s,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Ee(s)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),Ng(!!d.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:l},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:l}})),Ng(!!d.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:l},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:l}}))}}function yZ(t,e,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},l={};switch(t){case"top":case"bottom":l.shiftX=e.arrowOffsetHorizontal*2+n,l.shiftY=!0,l.adjustY=!0;break;case"left":case"right":l.shiftY=e.arrowOffsetVertical*2+n,l.shiftX=!0,l.adjustX=!0;break}const s=Object.assign(Object.assign({},l),o);return s.shiftX||(s.adjustX=!0),s.shiftY||(s.adjustY=!0),s}const hI={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},bZ={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},SZ=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function vH(t){const{arrowWidth:e,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:l,visibleFirst:s}=t,u=e/2,d={};return Object.keys(hI).forEach(f=>{const m=r&&bZ[f]||hI[f],p=Object.assign(Object.assign({},m),{offset:[0,0],dynamicInset:!0});switch(d[f]=p,SZ.has(f)&&(p.autoArrow=!1),f){case"top":case"topLeft":case"topRight":p.offset[1]=-u-o;break;case"bottom":case"bottomLeft":case"bottomRight":p.offset[1]=u+o;break;case"left":case"leftTop":case"leftBottom":p.offset[0]=-u-o;break;case"right":case"rightTop":case"rightBottom":p.offset[0]=u+o;break}const g=Ry({contentRadius:l,limitVerticalRadius:!0});if(r)switch(f){case"topLeft":case"bottomLeft":p.offset[0]=-g.arrowOffsetHorizontal-u;break;case"topRight":case"bottomRight":p.offset[0]=g.arrowOffsetHorizontal+u;break;case"leftTop":case"rightTop":p.offset[1]=-g.arrowOffsetHorizontal*2+u;break;case"leftBottom":case"rightBottom":p.offset[1]=g.arrowOffsetHorizontal*2-u;break}p.overflow=yZ(f,g,e,n),s&&(p.htmlRegion="visibleFirst")}),d}const CZ=t=>{const{calc:e,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:l,tooltipBorderRadius:s,zIndexPopup:u,controlHeight:d,boxShadowSecondary:f,paddingSM:m,paddingXS:p,arrowOffsetHorizontal:g,sizePopupArrow:b}=t,S=e(s).add(b).add(g).equal(),x=e(s).mul(2).add(b).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},ao(t)),{position:"absolute",zIndex:u,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":l,[`${n}-inner`]:{minWidth:x,minHeight:d,padding:`${Ee(t.calc(m).div(2).equal())} ${Ee(p)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:l,borderRadius:s,boxShadow:f,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:S},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:t.min(s,gH)}},[`${n}-content`]:{position:"relative"}}),AU(t,(w,O)=>{let{darkColor:E}=O;return{[`&${n}-${w}`]:{[`${n}-inner`]:{backgroundColor:E},[`${n}-arrow`]:{"--antd-arrow-background-color":E}}}})),{"&-rtl":{direction:"rtl"}})},tE(t,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:t.sizePopupArrow}}]},xZ=t=>Object.assign(Object.assign({zIndexPopup:t.zIndexPopupBase+70},Ry({contentRadius:t.borderRadius,limitVerticalRadius:!0})),eE(In(t,{borderRadiusOuter:Math.min(t.borderRadiusOuter,4)}))),yH=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return pr("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:l,colorBgSpotlight:s}=r,u=In(r,{tooltipMaxWidth:250,tooltipColor:l,tooltipBorderRadius:o,tooltipBg:s});return[CZ(u),pm(r,"zoom-big-fast")]},xZ,{resetStyle:!1,injectStyle:e})(t)},wZ=ws.map(t=>`${t}-inverse`);function EZ(t){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(ht(wZ),ht(ws)).includes(t):ws.includes(t)}function bH(t,e){const n=EZ(e),r=Se({[`${t}-${e}`]:e&&n}),o={},l={};return e&&!n&&(o.background=e,l["--antd-arrow-background-color"]=e),{className:r,overlayStyle:o,arrowStyle:l}}const OZ=t=>{const{prefixCls:e,className:n,placement:r="top",title:o,color:l,overlayInnerStyle:s}=t,{getPrefixCls:u}=y.useContext(Tn),d=u("tooltip",e),[f,m,p]=yH(d),g=bH(d,l),b=g.arrowStyle,S=Object.assign(Object.assign({},s),g.overlayStyle),x=Se(m,p,d,`${d}-pure`,`${d}-placement-${r}`,n,g.className);return f(y.createElement("div",{className:x,style:b},y.createElement("div",{className:`${d}-arrow`}),y.createElement(Jw,Object.assign({},t,{className:m,prefixCls:d,overlayInnerStyle:S}),o)))};var RZ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};const TZ=y.forwardRef((t,e)=>{var n,r;const{prefixCls:o,openClassName:l,getTooltipContainer:s,color:u,overlayInnerStyle:d,children:f,afterOpenChange:m,afterVisibleChange:p,destroyTooltipOnHide:g,arrow:b=!0,title:S,overlay:x,builtinPlacements:w,arrowPointAtCenter:O=!1,autoAdjustOverflow:E=!0,motion:M,getPopupContainer:T,placement:$="top",mouseEnterDelay:N=.1,mouseLeaveDelay:A=.1,overlayStyle:z,rootClassName:P,overlayClassName:B,styles:L,classNames:W}=t,q=RZ(t,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),H=!!b,[,J]=Uo(),{getPopupContainer:_,getPrefixCls:j,direction:V,className:G,style:K,classNames:Y,styles:ne}=di("tooltip"),ae=rr("Tooltip"),Q=y.useRef(null),se=()=>{var Xe;(Xe=Q.current)===null||Xe===void 0||Xe.forceAlign()};y.useImperativeHandle(e,()=>{var Xe,dt;return{forceAlign:se,forcePopupAlign:()=>{ae.deprecated(!1,"forcePopupAlign","forceAlign"),se()},nativeElement:(Xe=Q.current)===null||Xe===void 0?void 0:Xe.nativeElement,popupElement:(dt=Q.current)===null||dt===void 0?void 0:dt.popupElement}}),[["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"],["overlayStyle","styles={{ root: {} }}"],["overlayInnerStyle","styles={{ body: {} }}"],["overlayClassName",'classNames={{ root: "" }}']].forEach(Xe=>{let[dt,vt]=Xe;ae.deprecated(!(dt in t),dt,vt)}),ae(!g||typeof g=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),ae(!b||typeof b=="boolean"||!("arrowPointAtCenter"in b),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead.");const[de,xe]=vr(!1,{value:(n=t.open)!==null&&n!==void 0?n:t.visible,defaultValue:(r=t.defaultOpen)!==null&&r!==void 0?r:t.defaultVisible}),fe=!S&&!x&&S!==0,Me=Xe=>{var dt,vt;xe(fe?!1:Xe),fe||((dt=t.onOpenChange)===null||dt===void 0||dt.call(t,Xe),(vt=t.onVisibleChange)===null||vt===void 0||vt.call(t,Xe))},ze=y.useMemo(()=>{var Xe,dt;let vt=O;return typeof b=="object"&&(vt=(dt=(Xe=b.pointAtCenter)!==null&&Xe!==void 0?Xe:b.arrowPointAtCenter)!==null&&dt!==void 0?dt:O),w||vH({arrowPointAtCenter:vt,autoAdjustOverflow:E,arrowWidth:H?J.sizePopupArrow:0,borderRadius:J.borderRadius,offset:J.marginXXS,visibleFirst:!0})},[O,b,w,J]),Oe=y.useMemo(()=>S===0?S:x||S||"",[x,S]),he=y.createElement(Es,{space:!0},typeof Oe=="function"?Oe():Oe),De=j("tooltip",o),pe=j(),we=t["data-popover-inject"];let $e=de;!("open"in t)&&!("visible"in t)&&fe&&($e=!1);const Pe=y.isValidElement(f)&&!H_(f)?f:y.createElement("span",null,f),Ze=Pe.props,We=!Ze.className||typeof Ze.className=="string"?Se(Ze.className,l||`${De}-open`):Ze.className,[ut,I,me]=yH(De,!we),oe=bH(De,u),ge=oe.arrowStyle,Ue=Se(B,{[`${De}-rtl`]:V==="rtl"},oe.className,P,I,me,G,Y.root,W==null?void 0:W.root),Fe=Se(Y.body,W==null?void 0:W.body),[Te,_e]=hm("Tooltip",q.zIndex),it=y.createElement(gZ,Object.assign({},q,{zIndex:Te,showArrow:H,placement:$,mouseEnterDelay:N,mouseLeaveDelay:A,prefixCls:De,classNames:{root:Ue,body:Fe},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ge),ne.root),K),z),L==null?void 0:L.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},ne.body),d),L==null?void 0:L.body),oe.overlayStyle)},getTooltipContainer:T||s||_,ref:Q,builtinPlacements:ze,overlay:he,visible:$e,onVisibleChange:Me,afterVisibleChange:m??p,arrowContent:y.createElement("span",{className:`${De}-arrow-content`}),motion:{motionName:Kc(pe,"zoom-big-fast",t.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),$e?Pi(Pe,{className:We}):Pe);return ut(y.createElement(fm.Provider,{value:_e},it))}),Os=TZ;Os.displayName="Tooltip";Os._InternalPanelDoNotUseOrYouWillBeFired=OZ;const MZ=t=>{const{componentCls:e,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:l,boxShadowSecondary:s,colorTextHeading:u,borderRadiusLG:d,zIndexPopup:f,titleMarginBottom:m,colorBgElevated:p,popoverBg:g,titleBorderBottom:b,innerContentPadding:S,titlePadding:x}=t;return[{[e]:Object.assign(Object.assign({},ao(t)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:f,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":p,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${e}-content`]:{position:"relative"},[`${e}-inner`]:{backgroundColor:g,backgroundClip:"padding-box",borderRadius:d,boxShadow:s,padding:l},[`${e}-title`]:{minWidth:r,marginBottom:m,color:u,fontWeight:o,borderBottom:b,padding:x},[`${e}-inner-content`]:{color:n,padding:S}})},tE(t,"var(--antd-arrow-background-color)"),{[`${e}-pure`]:{position:"relative",maxWidth:"none",margin:t.sizePopupArrow,display:"inline-block",[`${e}-content`]:{display:"inline-block"}}}]},$Z=t=>{const{componentCls:e}=t;return{[e]:ws.map(n=>{const r=t[`${n}6`];return{[`&${e}-${n}`]:{"--antd-arrow-background-color":r,[`${e}-inner`]:{backgroundColor:r},[`${e}-arrow`]:{background:"transparent"}}}})}},NZ=t=>{const{lineWidth:e,controlHeight:n,fontHeight:r,padding:o,wireframe:l,zIndexPopupBase:s,borderRadiusLG:u,marginXS:d,lineType:f,colorSplit:m,paddingSM:p}=t,g=n-r,b=g/2,S=g/2-e,x=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:s+30},eE(t)),Ry({contentRadius:u,limitVerticalRadius:!0})),{innerPadding:l?0:12,titleMarginBottom:l?0:d,titlePadding:l?`${b}px ${x}px ${S}px`:0,titleBorderBottom:l?`${e}px ${f} ${m}`:"none",innerContentPadding:l?`${p}px ${x}px`:0})},SH=pr("Popover",t=>{const{colorBgElevated:e,colorText:n}=t,r=In(t,{popoverBg:e,popoverColor:n});return[MZ(r),$Z(r),pm(r,"zoom-big")]},NZ,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var AZ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};const CH=t=>{let{title:e,content:n,prefixCls:r}=t;return!e&&!n?null:y.createElement(y.Fragment,null,e&&y.createElement("div",{className:`${r}-title`},e),n&&y.createElement("div",{className:`${r}-inner-content`},n))},DZ=t=>{const{hashId:e,prefixCls:n,className:r,style:o,placement:l="top",title:s,content:u,children:d}=t,f=Iv(s),m=Iv(u),p=Se(e,n,`${n}-pure`,`${n}-placement-${l}`,r);return y.createElement("div",{className:p,style:o},y.createElement("div",{className:`${n}-arrow`}),y.createElement(Jw,Object.assign({},t,{className:e,prefixCls:n}),d||y.createElement(CH,{prefixCls:n,title:f,content:m})))},IZ=t=>{const{prefixCls:e,className:n}=t,r=AZ(t,["prefixCls","className"]),{getPrefixCls:o}=y.useContext(Tn),l=o("popover",e),[s,u,d]=SH(l);return s(y.createElement(DZ,Object.assign({},r,{prefixCls:l,hashId:u,className:Se(n,d)})))};var kZ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};const PZ=y.forwardRef((t,e)=>{var n,r;const{prefixCls:o,title:l,content:s,overlayClassName:u,placement:d="top",trigger:f="hover",children:m,mouseEnterDelay:p=.1,mouseLeaveDelay:g=.1,onOpenChange:b,overlayStyle:S={},styles:x,classNames:w}=t,O=kZ(t,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:E,className:M,style:T,classNames:$,styles:N}=di("popover"),A=E("popover",o),[z,P,B]=SH(A),L=E(),W=Se(u,P,B,M,$.root,w==null?void 0:w.root),q=Se($.body,w==null?void 0:w.body),[H,J]=vr(!1,{value:(n=t.open)!==null&&n!==void 0?n:t.visible,defaultValue:(r=t.defaultOpen)!==null&&r!==void 0?r:t.defaultVisible}),_=(Y,ne)=>{J(Y,!0),b==null||b(Y,ne)},j=Y=>{Y.keyCode===It.ESC&&_(!1,Y)},V=Y=>{_(Y)},G=Iv(l),K=Iv(s);return z(y.createElement(Os,Object.assign({placement:d,trigger:f,mouseEnterDelay:p,mouseLeaveDelay:g},O,{prefixCls:A,classNames:{root:W,body:q},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},N.root),T),S),x==null?void 0:x.root),body:Object.assign(Object.assign({},N.body),x==null?void 0:x.body)},ref:e,open:H,onOpenChange:V,overlay:G||K?y.createElement(CH,{prefixCls:A,title:G,content:K}):null,transitionName:Kc(L,"zoom-big",O.transitionName),"data-popover-inject":!0}),Pi(m,{onKeyDown:Y=>{var ne,ae;y.isValidElement(m)&&((ae=m==null?void 0:(ne=m.props).onKeyDown)===null||ae===void 0||ae.call(ne,Y)),j(Y)}})))}),nE=PZ;nE._InternalPanelDoNotUseOrYouWillBeFired=IZ;nE.displayName="Popover";var zZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},_Z=function(e,n){return y.createElement(Lr,yt({},e,{ref:n,icon:zZ}))},kv=y.forwardRef(_Z);kv.displayName="LeftOutlined";var BZ=It.ESC,HZ=It.TAB;function jZ(t){var e=t.visible,n=t.triggerRef,r=t.onVisibleChange,o=t.autoFocus,l=t.overlayRef,s=y.useRef(!1),u=function(){if(e){var p,g;(p=n.current)===null||p===void 0||(g=p.focus)===null||g===void 0||g.call(p),r==null||r(!1)}},d=function(){var p;return(p=l.current)!==null&&p!==void 0&&p.focus?(l.current.focus(),s.current=!0,!0):!1},f=function(p){switch(p.keyCode){case BZ:u();break;case HZ:{var g=!1;s.current||(g=d()),g?p.preventDefault():u();break}}};y.useEffect(function(){return e?(window.addEventListener("keydown",f),o&&Mn(d,3),function(){window.removeEventListener("keydown",f),s.current=!1}):function(){s.current=!1}},[e])}var LZ=y.forwardRef(function(t,e){var n=t.overlay,r=t.arrow,o=t.prefixCls,l=y.useMemo(function(){var u;return typeof n=="function"?u=n():u=n,u},[n]),s=Fo(e,Zc(l));return ee.createElement(ee.Fragment,null,r&&ee.createElement("div",{className:"".concat(o,"-arrow")}),ee.cloneElement(l,{ref:As(l)?s:void 0}))}),ud={adjustX:1,adjustY:1},dd=[0,0],VZ={topLeft:{points:["bl","tl"],overflow:ud,offset:[0,-4],targetOffset:dd},top:{points:["bc","tc"],overflow:ud,offset:[0,-4],targetOffset:dd},topRight:{points:["br","tr"],overflow:ud,offset:[0,-4],targetOffset:dd},bottomLeft:{points:["tl","bl"],overflow:ud,offset:[0,4],targetOffset:dd},bottom:{points:["tc","bc"],overflow:ud,offset:[0,4],targetOffset:dd},bottomRight:{points:["tr","br"],overflow:ud,offset:[0,4],targetOffset:dd}},FZ=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function UZ(t,e){var n,r=t.arrow,o=r===void 0?!1:r,l=t.prefixCls,s=l===void 0?"rc-dropdown":l,u=t.transitionName,d=t.animation,f=t.align,m=t.placement,p=m===void 0?"bottomLeft":m,g=t.placements,b=g===void 0?VZ:g,S=t.getPopupContainer,x=t.showAction,w=t.hideAction,O=t.overlayClassName,E=t.overlayStyle,M=t.visible,T=t.trigger,$=T===void 0?["hover"]:T,N=t.autoFocus,A=t.overlay,z=t.children,P=t.onVisibleChange,B=an(t,FZ),L=ee.useState(),W=Re(L,2),q=W[0],H=W[1],J="visible"in t?M:q,_=ee.useRef(null),j=ee.useRef(null),V=ee.useRef(null);ee.useImperativeHandle(e,function(){return _.current});var G=function(fe){H(fe),P==null||P(fe)};jZ({visible:J,triggerRef:V,onVisibleChange:G,autoFocus:N,overlayRef:j});var K=function(fe){var Me=t.onOverlayClick;H(!1),Me&&Me(fe)},Y=function(){return ee.createElement(LZ,{ref:j,overlay:A,prefixCls:s,arrow:o})},ne=function(){return typeof A=="function"?Y:Y()},ae=function(){var fe=t.minOverlayWidthMatchTrigger,Me=t.alignPoint;return"minOverlayWidthMatchTrigger"in t?fe:!Me},Q=function(){var fe=t.openClassName;return fe!==void 0?fe:"".concat(s,"-open")},se=ee.cloneElement(z,{className:Se((n=z.props)===null||n===void 0?void 0:n.className,J&&Q()),ref:As(z)?Fo(V,Zc(z)):void 0}),de=w;return!de&&$.indexOf("contextMenu")!==-1&&(de=["click"]),ee.createElement(Ey,yt({builtinPlacements:b},B,{prefixCls:s,ref:_,popupClassName:Se(O,te({},"".concat(s,"-show-arrow"),o)),popupStyle:E,action:$,showAction:x,hideAction:de,popupPlacement:p,popupAlign:f,popupTransitionName:u,popupAnimation:d,popupVisible:J,stretch:ae()?"minWidth":"",popup:ne(),onPopupVisibleChange:G,onPopupClick:K,getPopupContainer:S}),se)}const WZ=ee.forwardRef(UZ),qZ=t=>typeof t!="object"&&typeof t!="function"||t===null;var xH=y.createContext(null);function wH(t,e){return t===void 0?null:"".concat(t,"-").concat(e)}function EH(t){var e=y.useContext(xH);return wH(e,t)}var GZ=["children","locked"],na=y.createContext(null);function KZ(t,e){var n=re({},t);return Object.keys(e).forEach(function(r){var o=e[r];o!==void 0&&(n[r]=o)}),n}function rm(t){var e=t.children,n=t.locked,r=an(t,GZ),o=y.useContext(na),l=cm(function(){return KZ(o,r)},[o,r],function(s,u){return!n&&(s[0]!==u[0]||!Dd(s[1],u[1],!0))});return y.createElement(na.Provider,{value:l},e)}var YZ=[],OH=y.createContext(null);function Ty(){return y.useContext(OH)}var RH=y.createContext(YZ);function Wd(t){var e=y.useContext(RH);return y.useMemo(function(){return t!==void 0?[].concat(ht(e),[t]):e},[e,t])}var TH=y.createContext(null),rE=y.createContext({});function mI(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Nw(t)){var n=t.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||t.isContentEditable||n==="a"&&!!t.getAttribute("href"),o=t.getAttribute("tabindex"),l=Number(o),s=null;return o&&!Number.isNaN(l)?s=l:r&&s===null&&(s=0),r&&t.disabled&&(s=null),s!==null&&(s>=0||e&&s<0)}return!1}function XZ(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ht(t.querySelectorAll("*")).filter(function(r){return mI(r,e)});return mI(t,e)&&n.unshift(t),n}var Ox=It.LEFT,Rx=It.RIGHT,Tx=It.UP,Jg=It.DOWN,ev=It.ENTER,MH=It.ESC,bh=It.HOME,Sh=It.END,pI=[Tx,Jg,Ox,Rx];function QZ(t,e,n,r){var o,l="prev",s="next",u="children",d="parent";if(t==="inline"&&r===ev)return{inlineTrigger:!0};var f=te(te({},Tx,l),Jg,s),m=te(te(te(te({},Ox,n?s:l),Rx,n?l:s),Jg,u),ev,u),p=te(te(te(te(te(te({},Tx,l),Jg,s),ev,u),MH,d),Ox,n?u:d),Rx,n?d:u),g={inline:f,horizontal:m,vertical:p,inlineSub:f,horizontalSub:p,verticalSub:p},b=(o=g["".concat(t).concat(e?"":"Sub")])===null||o===void 0?void 0:o[r];switch(b){case l:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}function ZZ(t){for(var e=t;e;){if(e.getAttribute("data-menu-list"))return e;e=e.parentElement}return null}function JZ(t,e){for(var n=t||document.activeElement;n;){if(e.has(n))return n;n=n.parentElement}return null}function oE(t,e){var n=XZ(t,!0);return n.filter(function(r){return e.has(r)})}function gI(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!t)return null;var o=oE(t,e),l=o.length,s=o.findIndex(function(u){return n===u});return r<0?s===-1?s=l-1:s-=1:r>0&&(s+=1),s=(s+l)%l,o[s]}var Mx=function(e,n){var r=new Set,o=new Map,l=new Map;return e.forEach(function(s){var u=document.querySelector("[data-menu-id='".concat(wH(n,s),"']"));u&&(r.add(u),l.set(u,s),o.set(s,u))}),{elements:r,key2element:o,element2key:l}};function eJ(t,e,n,r,o,l,s,u,d,f){var m=y.useRef(),p=y.useRef();p.current=e;var g=function(){Mn.cancel(m.current)};return y.useEffect(function(){return function(){g()}},[]),function(b){var S=b.which;if([].concat(pI,[ev,MH,bh,Sh]).includes(S)){var x=l(),w=Mx(x,r),O=w,E=O.elements,M=O.key2element,T=O.element2key,$=M.get(e),N=JZ($,E),A=T.get(N),z=QZ(t,s(A,!0).length===1,n,S);if(!z&&S!==bh&&S!==Sh)return;(pI.includes(S)||[bh,Sh].includes(S))&&b.preventDefault();var P=function(j){if(j){var V=j,G=j.querySelector("a");G!=null&&G.getAttribute("href")&&(V=G);var K=T.get(j);u(K),g(),m.current=Mn(function(){p.current===K&&V.focus()})}};if([bh,Sh].includes(S)||z.sibling||!N){var B;!N||t==="inline"?B=o.current:B=ZZ(N);var L,W=oE(B,E);S===bh?L=W[0]:S===Sh?L=W[W.length-1]:L=gI(B,E,N,z.offset),P(L)}else if(z.inlineTrigger)d(A);else if(z.offset>0)d(A,!0),g(),m.current=Mn(function(){w=Mx(x,r);var _=N.getAttribute("aria-controls"),j=document.getElementById(_),V=gI(j,w.elements);P(V)},5);else if(z.offset<0){var q=s(A,!0),H=q[q.length-2],J=M.get(H);d(H,!1),P(J)}}f==null||f(b)}}function tJ(t){Promise.resolve().then(t)}var iE="__RC_UTIL_PATH_SPLIT__",vI=function(e){return e.join(iE)},nJ=function(e){return e.split(iE)},$x="rc-menu-more";function rJ(){var t=y.useState({}),e=Re(t,2),n=e[1],r=y.useRef(new Map),o=y.useRef(new Map),l=y.useState([]),s=Re(l,2),u=s[0],d=s[1],f=y.useRef(0),m=y.useRef(!1),p=function(){m.current||n({})},g=y.useCallback(function(M,T){rn(!r.current.has(M),"Duplicated key '".concat(M,"' used in Menu by path [").concat(T.join(" > "),"]"));var $=vI(T);o.current.set($,M),r.current.set(M,$),f.current+=1;var N=f.current;tJ(function(){N===f.current&&p()})},[]),b=y.useCallback(function(M,T){var $=vI(T);o.current.delete($),r.current.delete(M)},[]),S=y.useCallback(function(M){d(M)},[]),x=y.useCallback(function(M,T){var $=r.current.get(M)||"",N=nJ($);return T&&u.includes(N[0])&&N.unshift($x),N},[u]),w=y.useCallback(function(M,T){return M.filter(function($){return $!==void 0}).some(function($){var N=x($,!0);return N.includes(T)})},[x]),O=function(){var T=ht(r.current.keys());return u.length&&T.push($x),T},E=y.useCallback(function(M){var T="".concat(r.current.get(M)).concat(iE),$=new Set;return ht(o.current.keys()).forEach(function(N){N.startsWith(T)&&$.add(o.current.get(N))}),$},[]);return y.useEffect(function(){return function(){m.current=!0}},[]),{registerPath:g,unregisterPath:b,refreshOverflowKeys:S,isSubPathKey:w,getKeyPath:x,getKeys:O,getSubPathKeys:E}}function Mh(t){var e=y.useRef(t);e.current=t;var n=y.useCallback(function(){for(var r,o=arguments.length,l=new Array(o),s=0;s<o;s++)l[s]=arguments[s];return(r=e.current)===null||r===void 0?void 0:r.call.apply(r,[e].concat(l))},[]);return t?n:void 0}var oJ=Math.random().toFixed(5).toString().slice(2),yI=0;function iJ(t){var e=vr(t,{value:t}),n=Re(e,2),r=n[0],o=n[1];return y.useEffect(function(){yI+=1;var l="".concat(oJ,"-").concat(yI);o("rc-menu-uuid-".concat(l))},[]),r}function $H(t,e,n,r){var o=y.useContext(na),l=o.activeKey,s=o.onActive,u=o.onInactive,d={active:l===t};return e||(d.onMouseEnter=function(f){n==null||n({key:t,domEvent:f}),s(t)},d.onMouseLeave=function(f){r==null||r({key:t,domEvent:f}),u(t)}),d}function NH(t){var e=y.useContext(na),n=e.mode,r=e.rtl,o=e.inlineIndent;if(n!=="inline")return null;var l=t;return r?{paddingRight:l*o}:{paddingLeft:l*o}}function AH(t){var e=t.icon,n=t.props,r=t.children,o;return e===null||e===!1?null:(typeof e=="function"?o=y.createElement(e,re({},n)):typeof e!="boolean"&&(o=e),o||r||null)}var aJ=["item"];function Pv(t){var e=t.item,n=an(t,aJ);return Object.defineProperty(n,"item",{get:function(){return rn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e}}),n}var lJ=["title","attribute","elementRef"],sJ=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],cJ=["active"],uJ=function(t){Sl(n,t);var e=Cl(n);function n(){return Er(this,n),e.apply(this,arguments)}return Or(n,[{key:"render",value:function(){var o=this.props,l=o.title,s=o.attribute,u=o.elementRef,d=an(o,lJ),f=Hr(d,["eventKey","popupClassName","popupOffset","onTitleClick"]);return rn(!s,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),y.createElement(Ma.Item,yt({},s,{title:typeof l=="string"?l:void 0},f,{ref:u}))}}]),n}(y.Component),dJ=y.forwardRef(function(t,e){var n=t.style,r=t.className,o=t.eventKey,l=t.warnKey,s=t.disabled,u=t.itemIcon,d=t.children,f=t.role,m=t.onMouseEnter,p=t.onMouseLeave,g=t.onClick,b=t.onKeyDown,S=t.onFocus,x=an(t,sJ),w=EH(o),O=y.useContext(na),E=O.prefixCls,M=O.onItemClick,T=O.disabled,$=O.overflowDisabled,N=O.itemIcon,A=O.selectedKeys,z=O.onActive,P=y.useContext(rE),B=P._internalRenderMenuItem,L="".concat(E,"-item"),W=y.useRef(),q=y.useRef(),H=T||s,J=Ns(e,q),_=Wd(o);l&&rn(!1,"MenuItem should not leave undefined `key`.");var j=function(ze){return{key:o,keyPath:ht(_).reverse(),item:W.current,domEvent:ze}},V=u||N,G=$H(o,H,m,p),K=G.active,Y=an(G,cJ),ne=A.includes(o),ae=NH(_.length),Q=function(ze){if(!H){var Oe=j(ze);g==null||g(Pv(Oe)),M(Oe)}},se=function(ze){if(b==null||b(ze),ze.which===It.ENTER){var Oe=j(ze);g==null||g(Pv(Oe)),M(Oe)}},de=function(ze){z(o),S==null||S(ze)},xe={};t.role==="option"&&(xe["aria-selected"]=ne);var fe=y.createElement(uJ,yt({ref:W,elementRef:J,role:f===null?"none":f||"menuitem",tabIndex:s?null:-1,"data-menu-id":$&&w?null:w},Hr(x,["extra"]),Y,xe,{component:"li","aria-disabled":s,style:re(re({},ae),n),className:Se(L,te(te(te({},"".concat(L,"-active"),K),"".concat(L,"-selected"),ne),"".concat(L,"-disabled"),H),r),onClick:Q,onKeyDown:se,onFocus:de}),d,y.createElement(AH,{props:re(re({},t),{},{isSelected:ne}),icon:V}));return B&&(fe=B(fe,t,{selected:ne})),fe});function fJ(t,e){var n=t.eventKey,r=Ty(),o=Wd(n);return y.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:y.createElement(dJ,yt({},t,{ref:e}))}const My=y.forwardRef(fJ);var hJ=["className","children"],mJ=function(e,n){var r=e.className,o=e.children,l=an(e,hJ),s=y.useContext(na),u=s.prefixCls,d=s.mode,f=s.rtl;return y.createElement("ul",yt({className:Se(u,f&&"".concat(u,"-rtl"),"".concat(u,"-sub"),"".concat(u,"-").concat(d==="inline"?"inline":"vertical"),r),role:"menu"},l,{"data-menu-list":!0,ref:n}),o)},aE=y.forwardRef(mJ);aE.displayName="SubMenuList";function lE(t,e){return ci(t).map(function(n,r){if(y.isValidElement(n)){var o,l,s=n.key,u=(o=(l=n.props)===null||l===void 0?void 0:l.eventKey)!==null&&o!==void 0?o:s,d=u==null;d&&(u="tmp_key-".concat([].concat(ht(e),[r]).join("-")));var f={key:u,eventKey:u};return d&&(f.warnKey=!0),y.cloneElement(n,f)}return n})}var go={adjustX:1,adjustY:1},pJ={topLeft:{points:["bl","tl"],overflow:go},topRight:{points:["br","tr"],overflow:go},bottomLeft:{points:["tl","bl"],overflow:go},bottomRight:{points:["tr","br"],overflow:go},leftTop:{points:["tr","tl"],overflow:go},leftBottom:{points:["br","bl"],overflow:go},rightTop:{points:["tl","tr"],overflow:go},rightBottom:{points:["bl","br"],overflow:go}},gJ={topLeft:{points:["bl","tl"],overflow:go},topRight:{points:["br","tr"],overflow:go},bottomLeft:{points:["tl","bl"],overflow:go},bottomRight:{points:["tr","br"],overflow:go},rightTop:{points:["tr","tl"],overflow:go},rightBottom:{points:["br","bl"],overflow:go},leftTop:{points:["tl","tr"],overflow:go},leftBottom:{points:["bl","br"],overflow:go}};function DH(t,e,n){if(e)return e;if(n)return n[t]||n.other}var vJ={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function yJ(t){var e=t.prefixCls,n=t.visible,r=t.children,o=t.popup,l=t.popupStyle,s=t.popupClassName,u=t.popupOffset,d=t.disabled,f=t.mode,m=t.onVisibleChange,p=y.useContext(na),g=p.getPopupContainer,b=p.rtl,S=p.subMenuOpenDelay,x=p.subMenuCloseDelay,w=p.builtinPlacements,O=p.triggerSubMenuAction,E=p.forceSubMenuRender,M=p.rootClassName,T=p.motion,$=p.defaultMotions,N=y.useState(!1),A=Re(N,2),z=A[0],P=A[1],B=re(b?re({},gJ):re({},pJ),w),L=vJ[f],W=DH(f,T,$),q=y.useRef(W);f!=="inline"&&(q.current=W);var H=re(re({},q.current),{},{leavedClassName:"".concat(e,"-hidden"),removeOnLeave:!1,motionAppear:!0}),J=y.useRef();return y.useEffect(function(){return J.current=Mn(function(){P(n)}),function(){Mn.cancel(J.current)}},[n]),y.createElement(Ey,{prefixCls:e,popupClassName:Se("".concat(e,"-popup"),te({},"".concat(e,"-rtl"),b),s,M),stretch:f==="horizontal"?"minWidth":null,getPopupContainer:g,builtinPlacements:B,popupPlacement:L,popupVisible:z,popup:o,popupStyle:l,popupAlign:u&&{offset:u},action:d?[]:[O],mouseEnterDelay:S,mouseLeaveDelay:x,onPopupVisibleChange:m,forceRender:E,popupMotion:H,fresh:!0},r)}function bJ(t){var e=t.id,n=t.open,r=t.keyPath,o=t.children,l="inline",s=y.useContext(na),u=s.prefixCls,d=s.forceSubMenuRender,f=s.motion,m=s.defaultMotions,p=s.mode,g=y.useRef(!1);g.current=p===l;var b=y.useState(!g.current),S=Re(b,2),x=S[0],w=S[1],O=g.current?n:!1;y.useEffect(function(){g.current&&w(!1)},[p]);var E=re({},DH(l,f,m));r.length>1&&(E.motionAppear=!1);var M=E.onVisibleChanged;return E.onVisibleChanged=function(T){return!g.current&&!T&&w(!0),M==null?void 0:M(T)},x?null:y.createElement(rm,{mode:l,locked:!g.current},y.createElement(Pa,yt({visible:O},E,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(u,"-hidden")}),function(T){var $=T.className,N=T.style;return y.createElement(aE,{id:e,className:$,style:N},o)}))}var SJ=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],CJ=["active"],xJ=y.forwardRef(function(t,e){var n=t.style,r=t.className,o=t.title,l=t.eventKey,s=t.warnKey,u=t.disabled,d=t.internalPopupClose,f=t.children,m=t.itemIcon,p=t.expandIcon,g=t.popupClassName,b=t.popupOffset,S=t.popupStyle,x=t.onClick,w=t.onMouseEnter,O=t.onMouseLeave,E=t.onTitleClick,M=t.onTitleMouseEnter,T=t.onTitleMouseLeave,$=an(t,SJ),N=EH(l),A=y.useContext(na),z=A.prefixCls,P=A.mode,B=A.openKeys,L=A.disabled,W=A.overflowDisabled,q=A.activeKey,H=A.selectedKeys,J=A.itemIcon,_=A.expandIcon,j=A.onItemClick,V=A.onOpenChange,G=A.onActive,K=y.useContext(rE),Y=K._internalRenderSubMenuItem,ne=y.useContext(TH),ae=ne.isSubPathKey,Q=Wd(),se="".concat(z,"-submenu"),de=L||u,xe=y.useRef(),fe=y.useRef();s&&rn(!1,"SubMenu should not leave undefined `key`.");var Me=m??J,ze=p??_,Oe=B.includes(l),he=!W&&Oe,De=ae(H,l),pe=$H(l,de,M,T),we=pe.active,$e=an(pe,CJ),Pe=y.useState(!1),Ze=Re(Pe,2),We=Ze[0],ut=Ze[1],I=function($t){de||ut($t)},me=function($t){I(!0),w==null||w({key:l,domEvent:$t})},oe=function($t){I(!1),O==null||O({key:l,domEvent:$t})},ge=y.useMemo(function(){return we||(P!=="inline"?We||ae([q],l):!1)},[P,we,q,We,l,ae]),Ue=NH(Q.length),Fe=function($t){de||(E==null||E({key:l,domEvent:$t}),P==="inline"&&V(l,!Oe))},Te=Mh(function(Ct){x==null||x(Pv(Ct)),j(Ct)}),_e=function($t){P!=="inline"&&V(l,$t)},it=function(){G(l)},Xe=N&&"".concat(N,"-popup"),dt=y.useMemo(function(){return y.createElement(AH,{icon:P!=="horizontal"?ze:void 0,props:re(re({},t),{},{isOpen:he,isSubMenu:!0})},y.createElement("i",{className:"".concat(se,"-arrow")}))},[P,ze,t,he,se]),vt=y.createElement("div",yt({role:"menuitem",style:Ue,className:"".concat(se,"-title"),tabIndex:de?null:-1,ref:xe,title:typeof o=="string"?o:null,"data-menu-id":W&&N?null:N,"aria-expanded":he,"aria-haspopup":!0,"aria-controls":Xe,"aria-disabled":de,onClick:Fe,onFocus:it},$e),o,dt),et=y.useRef(P);if(P!=="inline"&&Q.length>1?et.current="vertical":et.current=P,!W){var st=et.current;vt=y.createElement(yJ,{mode:st,prefixCls:se,visible:!d&&he&&P!=="inline",popupClassName:g,popupOffset:b,popupStyle:S,popup:y.createElement(rm,{mode:st==="horizontal"?"vertical":st},y.createElement(aE,{id:Xe,ref:fe},f)),disabled:de,onVisibleChange:_e},vt)}var at=y.createElement(Ma.Item,yt({ref:e,role:"none"},$,{component:"li",style:n,className:Se(se,"".concat(se,"-").concat(P),r,te(te(te(te({},"".concat(se,"-open"),he),"".concat(se,"-active"),ge),"".concat(se,"-selected"),De),"".concat(se,"-disabled"),de)),onMouseEnter:me,onMouseLeave:oe}),vt,!W&&y.createElement(bJ,{id:Xe,open:he,keyPath:Q},f));return Y&&(at=Y(at,t,{selected:De,active:ge,open:he,disabled:de})),y.createElement(rm,{onItemClick:Te,mode:P==="horizontal"?"vertical":P,itemIcon:Me,expandIcon:ze},at)}),wm=y.forwardRef(function(t,e){var n=t.eventKey,r=t.children,o=Wd(n),l=lE(r,o),s=Ty();y.useEffect(function(){if(s)return s.registerPath(n,o),function(){s.unregisterPath(n,o)}},[o]);var u;return s?u=l:u=y.createElement(xJ,yt({ref:e},t),l),y.createElement(RH.Provider,{value:o},u)});wm.displayName="SubMenu";function sE(t){var e=t.className,n=t.style,r=y.useContext(na),o=r.prefixCls,l=Ty();return l?null:y.createElement("li",{role:"separator",className:Se("".concat(o,"-item-divider"),e),style:n})}var wJ=["className","title","eventKey","children"],EJ=y.forwardRef(function(t,e){var n=t.className,r=t.title;t.eventKey;var o=t.children,l=an(t,wJ),s=y.useContext(na),u=s.prefixCls,d="".concat(u,"-item-group");return y.createElement("li",yt({ref:e,role:"presentation"},l,{onClick:function(m){return m.stopPropagation()},className:Se(d,n)}),y.createElement("div",{role:"presentation",className:"".concat(d,"-title"),title:typeof r=="string"?r:void 0},r),y.createElement("ul",{role:"group",className:"".concat(d,"-list")},o))}),$y=y.forwardRef(function(t,e){var n=t.eventKey,r=t.children,o=Wd(n),l=lE(r,o),s=Ty();return s?l:y.createElement(EJ,yt({ref:e},Hr(t,["warnKey"])),l)});$y.displayName="MenuItemGroup";var OJ=["label","children","key","type","extra"];function Nx(t,e,n){var r=e.item,o=e.group,l=e.submenu,s=e.divider;return(t||[]).map(function(u,d){if(u&&Ht(u)==="object"){var f=u,m=f.label,p=f.children,g=f.key,b=f.type,S=f.extra,x=an(f,OJ),w=g??"tmp-".concat(d);return p||b==="group"?b==="group"?y.createElement(o,yt({key:w},x,{title:m}),Nx(p,e,n)):y.createElement(l,yt({key:w},x,{title:m}),Nx(p,e,n)):b==="divider"?y.createElement(s,yt({key:w},x)):y.createElement(r,yt({key:w},x,{extra:S}),m,(!!S||S===0)&&y.createElement("span",{className:"".concat(n,"-item-extra")},S))}return null}).filter(function(u){return u})}function bI(t,e,n,r,o){var l=t,s=re({divider:sE,item:My,group:$y,submenu:wm},r);return e&&(l=Nx(e,s,o)),lE(l,n)}var RJ=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],wc=[],TJ=y.forwardRef(function(t,e){var n,r=t,o=r.prefixCls,l=o===void 0?"rc-menu":o,s=r.rootClassName,u=r.style,d=r.className,f=r.tabIndex,m=f===void 0?0:f,p=r.items,g=r.children,b=r.direction,S=r.id,x=r.mode,w=x===void 0?"vertical":x,O=r.inlineCollapsed,E=r.disabled,M=r.disabledOverflow,T=r.subMenuOpenDelay,$=T===void 0?.1:T,N=r.subMenuCloseDelay,A=N===void 0?.1:N,z=r.forceSubMenuRender,P=r.defaultOpenKeys,B=r.openKeys,L=r.activeKey,W=r.defaultActiveFirst,q=r.selectable,H=q===void 0?!0:q,J=r.multiple,_=J===void 0?!1:J,j=r.defaultSelectedKeys,V=r.selectedKeys,G=r.onSelect,K=r.onDeselect,Y=r.inlineIndent,ne=Y===void 0?24:Y,ae=r.motion,Q=r.defaultMotions,se=r.triggerSubMenuAction,de=se===void 0?"hover":se,xe=r.builtinPlacements,fe=r.itemIcon,Me=r.expandIcon,ze=r.overflowedIndicator,Oe=ze===void 0?"...":ze,he=r.overflowedIndicatorPopupClassName,De=r.getPopupContainer,pe=r.onClick,we=r.onOpenChange,$e=r.onKeyDown,Pe=r.openAnimation,Ze=r.openTransitionName,We=r._internalRenderMenuItem,ut=r._internalRenderSubMenuItem,I=r._internalComponents,me=an(r,RJ),oe=y.useMemo(function(){return[bI(g,p,wc,I,l),bI(g,p,wc,{},l)]},[g,p,I]),ge=Re(oe,2),Ue=ge[0],Fe=ge[1],Te=y.useState(!1),_e=Re(Te,2),it=_e[0],Xe=_e[1],dt=y.useRef(),vt=iJ(S),et=b==="rtl";rn(!Pe&&!Ze,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var st=vr(P,{value:B,postState:function(je){return je||wc}}),at=Re(st,2),Ct=at[0],$t=at[1],Ut=function(je){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function ft(){$t(je),we==null||we(je)}Ge?yl.flushSync(ft):ft()},sn=y.useState(Ct),un=Re(sn,2),kn=un[0],Rt=un[1],bt=y.useRef(!1),kt=y.useMemo(function(){return(w==="inline"||w==="vertical")&&O?["vertical",O]:[w,!1]},[w,O]),Dt=Re(kt,2),jt=Dt[0],wt=Dt[1],lt=jt==="inline",St=y.useState(jt),Kt=Re(St,2),tn=Kt[0],Tt=Kt[1],gt=y.useState(wt),Nt=Re(gt,2),zt=Nt[0],Et=Nt[1];y.useEffect(function(){Tt(jt),Et(wt),bt.current&&(lt?$t(kn):Ut(wc))},[jt,wt]);var D=y.useState(0),ce=Re(D,2),ke=ce[0],Qe=ce[1],ot=ke>=Ue.length-1||tn!=="horizontal"||M;y.useEffect(function(){lt&&Rt(Ct)},[Ct]),y.useEffect(function(){return bt.current=!0,function(){bt.current=!1}},[]);var mt=rJ(),rt=mt.registerPath,Wt=mt.unregisterPath,Yt=mt.refreshOverflowKeys,Xt=mt.isSubPathKey,cn=mt.getKeyPath,ct=mt.getKeys,Ot=mt.getSubPathKeys,xt=y.useMemo(function(){return{registerPath:rt,unregisterPath:Wt}},[rt,Wt]),nt=y.useMemo(function(){return{isSubPathKey:Xt}},[Xt]);y.useEffect(function(){Yt(ot?wc:Ue.slice(ke+1).map(function(Ne){return Ne.key}))},[ke,ot]);var qt=vr(L||W&&((n=Ue[0])===null||n===void 0?void 0:n.key),{value:L}),on=Re(qt,2),dn=on[0],Fn=on[1],gn=Mh(function(Ne){Fn(Ne)}),_n=Mh(function(){Fn(void 0)});y.useImperativeHandle(e,function(){return{list:dt.current,focus:function(je){var Ge,ft=ct(),Pt=Mx(ft,vt),Jt=Pt.elements,en=Pt.key2element,bn=Pt.element2key,vn=oE(dt.current,Jt),Un=dn??(vn[0]?bn.get(vn[0]):(Ge=Ue.find(function(Wo){return!Wo.props.disabled}))===null||Ge===void 0?void 0:Ge.key),lr=en.get(Un);if(Un&&lr){var or;lr==null||(or=lr.focus)===null||or===void 0||or.call(lr,je)}}}});var Dn=vr(j||[],{value:V,postState:function(je){return Array.isArray(je)?je:je==null?wc:[je]}}),Ln=Re(Dn,2),Jn=Ln[0],dr=Ln[1],F=function(je){if(H){var Ge=je.key,ft=Jn.includes(Ge),Pt;_?ft?Pt=Jn.filter(function(en){return en!==Ge}):Pt=[].concat(ht(Jn),[Ge]):Pt=[Ge],dr(Pt);var Jt=re(re({},je),{},{selectedKeys:Pt});ft?K==null||K(Jt):G==null||G(Jt)}!_&&Ct.length&&tn!=="inline"&&Ut(wc)},ie=Mh(function(Ne){pe==null||pe(Pv(Ne)),F(Ne)}),Z=Mh(function(Ne,je){var Ge=Ct.filter(function(Pt){return Pt!==Ne});if(je)Ge.push(Ne);else if(tn!=="inline"){var ft=Ot(Ne);Ge=Ge.filter(function(Pt){return!ft.has(Pt)})}Dd(Ct,Ge,!0)||Ut(Ge,!0)}),be=function(je,Ge){var ft=Ge??!Ct.includes(je);Z(je,ft)},Ce=eJ(tn,dn,et,vt,dt,ct,cn,Fn,be,$e);y.useEffect(function(){Xe(!0)},[]);var ve=y.useMemo(function(){return{_internalRenderMenuItem:We,_internalRenderSubMenuItem:ut}},[We,ut]),qe=tn!=="horizontal"||M?Ue:Ue.map(function(Ne,je){return y.createElement(rm,{key:Ne.key,overflowDisabled:je>ke},Ne)}),Be=y.createElement(Ma,yt({id:S,ref:dt,prefixCls:"".concat(l,"-overflow"),component:"ul",itemComponent:My,className:Se(l,"".concat(l,"-root"),"".concat(l,"-").concat(tn),d,te(te({},"".concat(l,"-inline-collapsed"),zt),"".concat(l,"-rtl"),et),s),dir:b,style:u,role:"menu",tabIndex:m,data:qe,renderRawItem:function(je){return je},renderRawRest:function(je){var Ge=je.length,ft=Ge?Ue.slice(-Ge):null;return y.createElement(wm,{eventKey:$x,title:Oe,disabled:ot,internalPopupClose:Ge===0,popupClassName:he},ft)},maxCount:tn!=="horizontal"||M?Ma.INVALIDATE:Ma.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(je){Qe(je)},onKeyDown:Ce},me));return y.createElement(rE.Provider,{value:ve},y.createElement(xH.Provider,{value:vt},y.createElement(rm,{prefixCls:l,rootClassName:s,mode:tn,openKeys:Ct,rtl:et,disabled:E,motion:it?ae:null,defaultMotions:it?Q:null,activeKey:dn,onActive:gn,onInactive:_n,selectedKeys:Jn,inlineIndent:ne,subMenuOpenDelay:$,subMenuCloseDelay:A,forceSubMenuRender:z,builtinPlacements:xe,triggerSubMenuAction:de,getPopupContainer:De,itemIcon:fe,expandIcon:Me,onItemClick:ie,onOpenChange:Z},y.createElement(TH.Provider,{value:nt},Be),y.createElement("div",{style:{display:"none"},"aria-hidden":!0},y.createElement(OH.Provider,{value:xt},Fe)))))}),Em=TJ;Em.Item=My;Em.SubMenu=wm;Em.ItemGroup=$y;Em.Divider=sE;var MJ={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},$J=function(e,n){return y.createElement(Lr,yt({},e,{ref:n,icon:MJ}))},IH=y.forwardRef($J);IH.displayName="BarsOutlined";const NJ=y.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),AJ=t=>{const{antCls:e,componentCls:n,colorText:r,footerBg:o,headerHeight:l,headerPadding:s,headerColor:u,footerPadding:d,fontSize:f,bodyBg:m,headerBg:p}=t;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:m,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:l,padding:s,color:u,lineHeight:Ee(l),background:p,[`${e}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:r,fontSize:f,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},kH=t=>{const{colorBgLayout:e,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:l,marginXXS:s,colorTextLightSolid:u,colorBgContainer:d}=t,f=r*1.25;return{colorBgHeader:"#001529",colorBgBody:e,colorBgTrigger:"#002140",bodyBg:e,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${f}px`,headerColor:o,footerPadding:`${l}px ${f}px`,footerBg:e,siderBg:"#001529",triggerHeight:r+s*2,triggerBg:"#002140",triggerColor:u,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:d,lightTriggerBg:d,lightTriggerColor:o}},PH=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];pr("Layout",t=>[AJ(t)],kH,{deprecatedTokens:PH});const DJ=t=>{const{componentCls:e,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:l,triggerHeight:s,triggerColor:u,triggerBg:d,headerHeight:f,zeroTriggerWidth:m,zeroTriggerHeight:p,borderRadiusLG:g,lightSiderBg:b,lightTriggerColor:S,lightTriggerBg:x,bodyBg:w}=t;return{[e]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:s},"&-right":{order:1},[`${e}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${l}-menu${l}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${e}-children`]:{overflow:"hidden"},[`${e}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:s,color:u,lineHeight:Ee(s),textAlign:"center",background:d,cursor:"pointer",transition:`all ${r}`},[`${e}-zero-width-trigger`]:{position:"absolute",top:f,insetInlineEnd:t.calc(m).mul(-1).equal(),zIndex:1,width:m,height:p,color:u,fontSize:t.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${Ee(g)} ${Ee(g)} 0`,cursor:"pointer",transition:`background ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${o}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:t.calc(m).mul(-1).equal(),borderRadius:`${Ee(g)} 0 0 ${Ee(g)}`}},"&-light":{background:b,[`${e}-trigger`]:{color:S,background:x},[`${e}-zero-width-trigger`]:{color:S,background:x,border:`1px solid ${w}`,borderInlineStart:0}}}}},IJ=pr(["Layout","Sider"],t=>[DJ(t)],kH,{deprecatedTokens:PH});var kJ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};const SI={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},PJ=t=>!Number.isNaN(Number.parseFloat(t))&&isFinite(t),cE=y.createContext({}),zJ=(()=>{let t=0;return function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return t+=1,`${e}${t}`}})(),_J=y.forwardRef((t,e)=>{const{prefixCls:n,className:r,trigger:o,children:l,defaultCollapsed:s=!1,theme:u="dark",style:d={},collapsible:f=!1,reverseArrow:m=!1,width:p=200,collapsedWidth:g=80,zeroWidthTriggerStyle:b,breakpoint:S,onCollapse:x,onBreakpoint:w}=t,O=kJ(t,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:E}=y.useContext(NJ),[M,T]=y.useState("collapsed"in t?t.collapsed:s),[$,N]=y.useState(!1);y.useEffect(()=>{"collapsed"in t&&T(t.collapsed)},[t.collapsed]);const A=(fe,Me)=>{"collapsed"in t||T(fe),x==null||x(fe,Me)},{getPrefixCls:z,direction:P}=y.useContext(Tn),B=z("layout-sider",n),[L,W,q]=IJ(B),H=y.useRef(null);H.current=fe=>{N(fe.matches),w==null||w(fe.matches),M!==fe.matches&&A(fe.matches,"responsive")},y.useEffect(()=>{function fe(ze){return H.current(ze)}let Me;if(typeof window<"u"){const{matchMedia:ze}=window;if(ze&&S&&S in SI){Me=ze(`screen and (max-width: ${SI[S]})`);try{Me.addEventListener("change",fe)}catch{Me.addListener(fe)}fe(Me)}}return()=>{try{Me==null||Me.removeEventListener("change",fe)}catch{Me==null||Me.removeListener(fe)}}},[S]),y.useEffect(()=>{const fe=zJ("ant-sider-");return E.addSider(fe),()=>E.removeSider(fe)},[]);const J=()=>{A(!M,"clickTrigger")},_=Hr(O,["collapsed"]),j=M?g:p,V=PJ(j)?`${j}px`:String(j),G=parseFloat(String(g||0))===0?y.createElement("span",{onClick:J,className:Se(`${B}-zero-width-trigger`,`${B}-zero-width-trigger-${m?"right":"left"}`),style:b},o||y.createElement(IH,null)):null,K=P==="rtl"==!m,ae={expanded:K?y.createElement(tm,null):y.createElement(kv,null),collapsed:K?y.createElement(kv,null):y.createElement(tm,null)}[M?"collapsed":"expanded"],Q=o!==null?G||y.createElement("div",{className:`${B}-trigger`,onClick:J,style:{width:V}},o||ae):null,se=Object.assign(Object.assign({},d),{flex:`0 0 ${V}`,maxWidth:V,minWidth:V,width:V}),de=Se(B,`${B}-${u}`,{[`${B}-collapsed`]:!!M,[`${B}-has-trigger`]:f&&o!==null&&!G,[`${B}-below`]:!!$,[`${B}-zero-width`]:parseFloat(V)===0},r,W,q),xe=y.useMemo(()=>({siderCollapsed:M}),[M]);return L(y.createElement(cE.Provider,{value:xe},y.createElement("aside",Object.assign({className:de},_,{style:se,ref:e}),y.createElement("div",{className:`${B}-children`},l),f||$&&G?Q:null)))});_J.displayName="Sider";var BJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},HJ=function(e,n){return y.createElement(Lr,yt({},e,{ref:n,icon:BJ}))},uE=y.forwardRef(HJ);uE.displayName="EllipsisOutlined";const zv=y.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var jJ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};const zH=t=>{const{prefixCls:e,className:n,dashed:r}=t,o=jJ(t,["prefixCls","className","dashed"]),{getPrefixCls:l}=y.useContext(Tn),s=l("menu",e),u=Se({[`${s}-item-divider-dashed`]:!!r},n);return y.createElement(sE,Object.assign({className:u},o))},_H=t=>{var e;const{className:n,children:r,icon:o,title:l,danger:s,extra:u}=t,{prefixCls:d,firstLevel:f,direction:m,disableMenuItemTitleTooltip:p,inlineCollapsed:g}=y.useContext(zv),b=M=>{const T=r==null?void 0:r[0],$=y.createElement("span",{className:Se(`${d}-title-content`,{[`${d}-title-content-with-extra`]:!!u||u===0})},r);return(!o||y.isValidElement(r)&&r.type==="span")&&r&&M&&f&&typeof T=="string"?y.createElement("div",{className:`${d}-inline-collapsed-noicon`},T.charAt(0)):$},{siderCollapsed:S}=y.useContext(cE);let x=l;typeof l>"u"?x=f?r:"":l===!1&&(x="");const w={title:x};!S&&!g&&(w.title=null,w.open=!1);const O=ci(r).length;let E=y.createElement(My,Object.assign({},Hr(t,["title","icon","danger"]),{className:Se({[`${d}-item-danger`]:s,[`${d}-item-only-child`]:(o?O+1:O)===1},n),title:typeof l=="string"?l:void 0}),Pi(o,{className:Se(y.isValidElement(o)?(e=o.props)===null||e===void 0?void 0:e.className:"",`${d}-item-icon`)}),b(g));return p||(E=y.createElement(Os,Object.assign({},w,{placement:m==="rtl"?"left":"right",classNames:{root:`${d}-inline-collapsed-tooltip`}}),E)),E};var LJ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};const _v=y.createContext(null),VJ=y.forwardRef((t,e)=>{const{children:n}=t,r=LJ(t,["children"]),o=y.useContext(_v),l=y.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),s=J7(n),u=Ns(e,s?Zc(n):null);return y.createElement(_v.Provider,{value:l},y.createElement(Es,{space:!0},s?y.cloneElement(n,{ref:u}):n))}),FJ=t=>{const{componentCls:e,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:l,lineType:s,itemPaddingInline:u}=t;return{[`${e}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${Ee(l)} ${s} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${e}-item, ${e}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:u},[`> ${e}-item:hover,
615
- > ${e}-item-active,
616
- > ${e}-submenu ${e}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${e}-item, ${e}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${e}-submenu-arrow`]:{display:"none"}}}},UJ=t=>{let{componentCls:e,menuArrowOffset:n,calc:r}=t;return{[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
617
- ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Ee(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Ee(n)})`}}}}},CI=t=>Object.assign({},Tw(t)),xI=(t,e)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:l,groupTitleColor:s,itemBg:u,subMenuItemBg:d,itemSelectedBg:f,activeBarHeight:m,activeBarWidth:p,activeBarBorderWidth:g,motionDurationSlow:b,motionEaseInOut:S,motionEaseOut:x,itemPaddingInline:w,motionDurationMid:O,itemHoverColor:E,lineType:M,colorSplit:T,itemDisabledColor:$,dangerItemColor:N,dangerItemHoverColor:A,dangerItemSelectedColor:z,dangerItemActiveBg:P,dangerItemSelectedBg:B,popupBg:L,itemHoverBg:W,itemActiveBg:q,menuSubMenuBg:H,horizontalItemSelectedColor:J,horizontalItemSelectedBg:_,horizontalItemBorderRadius:j,horizontalItemHoverBg:V}=t;return{[`${n}-${e}, ${n}-${e} > ${n}`]:{color:r,background:u,[`&${n}-root:focus-visible`]:Object.assign({},CI(t)),[`${n}-item`]:{"&-group-title, &-extra":{color:s}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:l},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},CI(t))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${$} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:E}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:W},"&:active":{backgroundColor:q}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:W},"&:active":{backgroundColor:q}}},[`${n}-item-danger`]:{color:N,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:A}},[`&${n}-item:active`]:{background:P}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:z},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:f,[`&${n}-item-danger`]:{backgroundColor:B}},[`&${n}-submenu > ${n}`]:{backgroundColor:H},[`&${n}-popup > ${n}`]:{backgroundColor:L},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:L},[`&${n}-horizontal`]:Object.assign(Object.assign({},e==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:g,marginTop:t.calc(g).mul(-1).equal(),marginBottom:0,borderRadius:j,"&::after":{position:"absolute",insetInline:w,bottom:0,borderBottom:`${Ee(m)} solid transparent`,transition:`border-color ${b} ${S}`,content:'""'},"&:hover, &-active, &-open":{background:V,"&::after":{borderBottomWidth:m,borderBottomColor:J}},"&-selected":{color:J,backgroundColor:_,"&:hover":{backgroundColor:_},"&::after":{borderBottomWidth:m,borderBottomColor:J}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Ee(g)} ${M} ${T}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:d},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Ee(p)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${O} ${x}`,`opacity ${O} ${x}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:z}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${O} ${S}`,`opacity ${O} ${S}`].join(",")}}}}}},wI=t=>{const{componentCls:e,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:l,marginXS:s,itemMarginBlock:u,itemWidth:d,itemPaddingInline:f}=t,m=t.calc(l).add(o).add(s).equal();return{[`${e}-item`]:{position:"relative",overflow:"hidden"},[`${e}-item, ${e}-submenu-title`]:{height:n,lineHeight:Ee(n),paddingInline:f,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:u,width:d},[`> ${e}-item,
618
- > ${e}-submenu > ${e}-submenu-title`]:{height:n,lineHeight:Ee(n)},[`${e}-item-group-list ${e}-submenu-title,
619
- ${e}-submenu-title`]:{paddingInlineEnd:m}}},WJ=t=>{const{componentCls:e,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:l,controlHeightLG:s,motionEaseOut:u,paddingXL:d,itemMarginInline:f,fontSizeLG:m,motionDurationFast:p,motionDurationSlow:g,paddingXS:b,boxShadowSecondary:S,collapsedWidth:x,collapsedIconSize:w}=t,O={height:r,lineHeight:Ee(r),listStylePosition:"inside",listStyleType:"disc"};return[{[e]:{"&-inline, &-vertical":Object.assign({[`&${e}-root`]:{boxShadow:"none"}},wI(t))},[`${e}-submenu-popup`]:{[`${e}-vertical`]:Object.assign(Object.assign({},wI(t)),{boxShadow:S})}},{[`${e}-submenu-popup ${e}-vertical${e}-sub`]:{minWidth:l,maxHeight:`calc(100vh - ${Ee(t.calc(s).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${e}-inline`]:{width:"100%",[`&${e}-root`]:{[`${e}-item, ${e}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${g}`,`background ${g}`,`padding ${p} ${u}`].join(","),[`> ${e}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${e}-sub${e}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${e}-submenu > ${e}-submenu-title`]:O,[`& ${e}-item-group-title`]:{paddingInlineStart:d}},[`${e}-item`]:O}},{[`${e}-inline-collapsed`]:{width:x,[`&${e}-root`]:{[`${e}-item, ${e}-submenu ${e}-submenu-title`]:{[`> ${e}-inline-collapsed-noicon`]:{fontSize:m,textAlign:"center"}}},[`> ${e}-item,
620
- > ${e}-item-group > ${e}-item-group-list > ${e}-item,
621
- > ${e}-item-group > ${e}-item-group-list > ${e}-submenu > ${e}-submenu-title,
622
- > ${e}-submenu > ${e}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ee(t.calc(w).div(2).equal())} - ${Ee(f)})`,textOverflow:"clip",[`
623
- ${e}-submenu-arrow,
624
- ${e}-submenu-expand-icon
625
- `]:{opacity:0},[`${e}-item-icon, ${n}`]:{margin:0,fontSize:w,lineHeight:Ee(r),"+ span":{display:"inline-block",opacity:0}}},[`${e}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${e}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${e}-item-group-title`]:Object.assign(Object.assign({},em),{paddingInline:b})}}]},EI=t=>{const{componentCls:e,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:l,iconCls:s,iconSize:u,iconMarginInlineEnd:d}=t;return{[`${e}-item, ${e}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${o}`].join(","),[`${e}-item-icon, ${s}`]:{minWidth:u,fontSize:u,transition:[`font-size ${r} ${l}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:d,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${e}-item-icon`]:Object.assign({},eu()),[`&${e}-item-only-child`]:{[`> ${s}, > ${e}-item-icon`]:{marginInlineEnd:0}}},[`${e}-item-disabled, ${e}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${e}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},OI=t=>{const{componentCls:e,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:l,menuArrowOffset:s}=t;return{[`${e}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:t.margin,width:l,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:t.calc(l).mul(.6).equal(),height:t.calc(l).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Ee(t.calc(s).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Ee(s)})`}}}}},qJ=t=>{const{antCls:e,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:l,motionEaseInOut:s,paddingXS:u,padding:d,colorSplit:f,lineWidth:m,zIndexPopup:p,borderRadiusLG:g,subMenuItemBorderRadius:b,menuArrowSize:S,menuArrowOffset:x,lineType:w,groupTitleLineHeight:O,groupTitleFontSize:E}=t;return[{"":{[n]:Object.assign(Object.assign({},Ov()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ao(t)),Ov()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:t.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${Ee(u)} ${Ee(d)}`,fontSize:E,lineHeight:O,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${s}`,`background ${o} ${s}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${s}`,`background ${o} ${s}`,`padding ${l} ${s}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${s}`,`padding ${o} ${s}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${e}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:t.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:f,borderStyle:w,borderWidth:0,borderTopWidth:m,marginBlock:m,padding:0,"&-dashed":{borderStyle:"dashed"}}}),EI(t)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Ee(t.calc(r).mul(2).equal())} ${Ee(d)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:p,borderRadius:g,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:g},EI(t)),OI(t)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:b},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${s}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:t.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:t.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:t.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:t.paddingXS}}}),OI(t)),{[`&-inline-collapsed ${n}-submenu-arrow,
626
- &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ee(x)})`},"&::after":{transform:`rotate(45deg) translateX(${Ee(t.calc(x).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Ee(t.calc(S).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Ee(t.calc(x).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Ee(x)})`}}})},{[`${e}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},GJ=t=>{var e,n,r;const{colorPrimary:o,colorError:l,colorTextDisabled:s,colorErrorBg:u,colorText:d,colorTextDescription:f,colorBgContainer:m,colorFillAlter:p,colorFillContent:g,lineWidth:b,lineWidthBold:S,controlItemBgActive:x,colorBgTextHover:w,controlHeightLG:O,lineHeight:E,colorBgElevated:M,marginXXS:T,padding:$,fontSize:N,controlHeightSM:A,fontSizeLG:z,colorTextLightSolid:P,colorErrorHover:B}=t,L=(e=t.activeBarWidth)!==null&&e!==void 0?e:0,W=(n=t.activeBarBorderWidth)!==null&&n!==void 0?n:b,q=(r=t.itemMarginInline)!==null&&r!==void 0?r:t.marginXXS,H=new zn(P).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:t.zIndexPopupBase+50,radiusItem:t.borderRadiusLG,itemBorderRadius:t.borderRadiusLG,radiusSubMenuItem:t.borderRadiusSM,subMenuItemBorderRadius:t.borderRadiusSM,colorItemText:d,itemColor:d,colorItemTextHover:d,itemHoverColor:d,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:f,groupTitleColor:f,colorItemTextSelected:o,itemSelectedColor:o,subMenuItemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:m,itemBg:m,colorItemBgHover:w,itemHoverBg:w,colorItemBgActive:g,itemActiveBg:x,colorSubItemBg:p,subMenuItemBg:p,colorItemBgSelected:x,itemSelectedBg:x,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:L,colorActiveBarHeight:S,activeBarHeight:S,colorActiveBarBorderSize:b,activeBarBorderWidth:W,colorItemTextDisabled:s,itemDisabledColor:s,colorDangerItemText:l,dangerItemColor:l,colorDangerItemTextHover:l,dangerItemHoverColor:l,colorDangerItemTextSelected:l,dangerItemSelectedColor:l,colorDangerItemBgActive:u,dangerItemActiveBg:u,colorDangerItemBgSelected:u,dangerItemSelectedBg:u,itemMarginInline:q,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:O,groupTitleLineHeight:E,collapsedWidth:O*2,popupBg:M,itemMarginBlock:T,itemPaddingInline:$,horizontalLineHeight:`${O*1.15}px`,iconSize:N,iconMarginInlineEnd:A-N,collapsedIconSize:z,groupTitleFontSize:N,darkItemDisabledColor:new zn(P).setA(.25).toRgbString(),darkItemColor:H,darkDangerItemColor:l,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:P,darkItemSelectedBg:o,darkDangerItemSelectedBg:l,darkItemHoverBg:"transparent",darkGroupTitleColor:H,darkItemHoverColor:P,darkDangerItemHoverColor:B,darkDangerItemSelectedColor:P,darkDangerItemActiveBg:l,itemWidth:L?`calc(100% + ${W}px)`:`calc(100% - ${q*2}px)`}},KJ=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return pr("Menu",o=>{const{colorBgElevated:l,controlHeightLG:s,fontSize:u,darkItemColor:d,darkDangerItemColor:f,darkItemBg:m,darkSubMenuItemBg:p,darkItemSelectedColor:g,darkItemSelectedBg:b,darkDangerItemSelectedBg:S,darkItemHoverBg:x,darkGroupTitleColor:w,darkItemHoverColor:O,darkItemDisabledColor:E,darkDangerItemHoverColor:M,darkDangerItemSelectedColor:T,darkDangerItemActiveBg:$,popupBg:N,darkPopupBg:A}=o,z=o.calc(u).div(7).mul(5).equal(),P=In(o,{menuArrowSize:z,menuHorizontalHeight:o.calc(s).mul(1.15).equal(),menuArrowOffset:o.calc(z).mul(.25).equal(),menuSubMenuBg:l,calc:o.calc,popupBg:N}),B=In(P,{itemColor:d,itemHoverColor:O,groupTitleColor:w,itemSelectedColor:g,subMenuItemSelectedColor:g,itemBg:m,popupBg:A,subMenuItemBg:p,itemActiveBg:"transparent",itemSelectedBg:b,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:x,itemDisabledColor:E,dangerItemColor:f,dangerItemHoverColor:M,dangerItemSelectedColor:T,dangerItemActiveBg:$,dangerItemSelectedBg:S,menuSubMenuBg:p,horizontalItemSelectedColor:g,horizontalItemSelectedBg:b});return[qJ(P),FJ(P),WJ(P),xI(P,"light"),xI(B,"dark"),UJ(P),iB(P),Hd(P,"slide-up"),Hd(P,"slide-down"),pm(P,"zoom-big")]},GJ,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(t,e)},BH=t=>{var e;const{popupClassName:n,icon:r,title:o,theme:l}=t,s=y.useContext(zv),{prefixCls:u,inlineCollapsed:d,theme:f}=s,m=Wd();let p;if(!r)p=d&&!m.length&&o&&typeof o=="string"?y.createElement("div",{className:`${u}-inline-collapsed-noicon`},o.charAt(0)):y.createElement("span",{className:`${u}-title-content`},o);else{const S=y.isValidElement(o)&&o.type==="span";p=y.createElement(y.Fragment,null,Pi(r,{className:Se(y.isValidElement(r)?(e=r.props)===null||e===void 0?void 0:e.className:"",`${u}-item-icon`)}),S?o:y.createElement("span",{className:`${u}-title-content`},o))}const g=y.useMemo(()=>Object.assign(Object.assign({},s),{firstLevel:!1}),[s]),[b]=hm("Menu");return y.createElement(zv.Provider,{value:g},y.createElement(wm,Object.assign({},Hr(t,["icon"]),{title:p,popupClassName:Se(u,n,`${u}-${l||f}`),popupStyle:Object.assign({zIndex:b},t.popupStyle)})))};var YJ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};function GC(t){return t===null||t===!1}const XJ={item:_H,submenu:BH,divider:zH},QJ=y.forwardRef((t,e)=>{var n;const r=y.useContext(_v),o=r||{},{getPrefixCls:l,getPopupContainer:s,direction:u,menu:d}=y.useContext(Tn),f=l(),{prefixCls:m,className:p,style:g,theme:b="light",expandIcon:S,_internalDisableMenuItemTitleTooltip:x,inlineCollapsed:w,siderCollapsed:O,rootClassName:E,mode:M,selectable:T,onClick:$,overflowedIndicatorPopupClassName:N}=t,A=YJ(t,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),z=Hr(A,["collapsedWidth"]);{const ne=rr("Menu");ne(!("inlineCollapsed"in t&&M!=="inline"),"usage","`inlineCollapsed` should only be used when `mode` is inline."),ne.deprecated("items"in t&&!t.children,"children","items")}(n=o.validator)===null||n===void 0||n.call(o,{mode:M});const P=Hn(function(){var ne;$==null||$.apply(void 0,arguments),(ne=o.onClick)===null||ne===void 0||ne.call(o)}),B=o.mode||M,L=T??o.selectable,W=w??O,q={horizontal:{motionName:`${f}-slide-up`},inline:F_(f),other:{motionName:`${f}-zoom-big`}},H=l("menu",m||o.prefixCls),J=El(H),[_,j,V]=KJ(H,J,!r),G=Se(`${H}-${b}`,d==null?void 0:d.className,p),K=y.useMemo(()=>{var ne,ae;if(typeof S=="function"||GC(S))return S||null;if(typeof o.expandIcon=="function"||GC(o.expandIcon))return o.expandIcon||null;if(typeof(d==null?void 0:d.expandIcon)=="function"||GC(d==null?void 0:d.expandIcon))return(d==null?void 0:d.expandIcon)||null;const Q=(ne=S??(o==null?void 0:o.expandIcon))!==null&&ne!==void 0?ne:d==null?void 0:d.expandIcon;return Pi(Q,{className:Se(`${H}-submenu-expand-icon`,y.isValidElement(Q)?(ae=Q.props)===null||ae===void 0?void 0:ae.className:void 0)})},[S,o==null?void 0:o.expandIcon,d==null?void 0:d.expandIcon,H]),Y=y.useMemo(()=>({prefixCls:H,inlineCollapsed:W||!1,direction:u,firstLevel:!0,theme:b,mode:B,disableMenuItemTitleTooltip:x}),[H,W,u,x,b]);return _(y.createElement(_v.Provider,{value:null},y.createElement(zv.Provider,{value:Y},y.createElement(Em,Object.assign({getPopupContainer:s,overflowedIndicator:y.createElement(uE,null),overflowedIndicatorPopupClassName:Se(H,`${H}-${b}`,N),mode:B,selectable:L,onClick:P},z,{inlineCollapsed:W,style:Object.assign(Object.assign({},d==null?void 0:d.style),g),className:G,prefixCls:H,direction:u,defaultMotions:q,expandIcon:K,ref:e,rootClassName:Se(E,j,o.rootClassName,V,J),_internalComponents:XJ})))))}),Rs=y.forwardRef((t,e)=>{const n=y.useRef(null),r=y.useContext(cE);return y.useImperativeHandle(e,()=>({menu:n.current,focus:o=>{var l;(l=n.current)===null||l===void 0||l.focus(o)}})),y.createElement(QJ,Object.assign({ref:n},t,r))});Rs.Item=_H;Rs.SubMenu=BH;Rs.Divider=zH;Rs.ItemGroup=$y;Rs.displayName="Menu";const ZJ=t=>{const{componentCls:e,menuCls:n,colorError:r,colorTextLightSolid:o}=t,l=`${n}-item`;return{[`${e}, ${e}-menu-submenu`]:{[`${n} ${l}`]:{[`&${l}-danger:not(${l}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},JJ=t=>{const{componentCls:e,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:l,antCls:s,iconCls:u,motionDurationMid:d,paddingBlock:f,fontSize:m,dropdownEdgeChildPadding:p,colorTextDisabled:g,fontSizeIcon:b,controlPaddingHorizontal:S,colorBgElevated:x}=t;return[{[e]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:t.calc(l).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${s}-btn`]:{[`& > ${u}-down, & > ${s}-btn-icon > ${u}-down`]:{fontSize:b}},[`${e}-wrap`]:{position:"relative",[`${s}-btn > ${u}-down`]:{fontSize:b},[`${u}-down::before`]:{transition:`transform ${d}`}},[`${e}-wrap-open`]:{[`${u}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${s}-slide-down-enter${s}-slide-down-enter-active${e}-placement-bottomLeft,
627
- &${s}-slide-down-appear${s}-slide-down-appear-active${e}-placement-bottomLeft,
628
- &${s}-slide-down-enter${s}-slide-down-enter-active${e}-placement-bottom,
629
- &${s}-slide-down-appear${s}-slide-down-appear-active${e}-placement-bottom,
630
- &${s}-slide-down-enter${s}-slide-down-enter-active${e}-placement-bottomRight,
631
- &${s}-slide-down-appear${s}-slide-down-appear-active${e}-placement-bottomRight`]:{animationName:Iw},[`&${s}-slide-up-enter${s}-slide-up-enter-active${e}-placement-topLeft,
632
- &${s}-slide-up-appear${s}-slide-up-appear-active${e}-placement-topLeft,
633
- &${s}-slide-up-enter${s}-slide-up-enter-active${e}-placement-top,
634
- &${s}-slide-up-appear${s}-slide-up-appear-active${e}-placement-top,
635
- &${s}-slide-up-enter${s}-slide-up-enter-active${e}-placement-topRight,
636
- &${s}-slide-up-appear${s}-slide-up-appear-active${e}-placement-topRight`]:{animationName:Pw},[`&${s}-slide-down-leave${s}-slide-down-leave-active${e}-placement-bottomLeft,
637
- &${s}-slide-down-leave${s}-slide-down-leave-active${e}-placement-bottom,
638
- &${s}-slide-down-leave${s}-slide-down-leave-active${e}-placement-bottomRight`]:{animationName:kw},[`&${s}-slide-up-leave${s}-slide-up-leave-active${e}-placement-topLeft,
639
- &${s}-slide-up-leave${s}-slide-up-leave-active${e}-placement-top,
640
- &${s}-slide-up-leave${s}-slide-up-leave-active${e}-placement-topRight`]:{animationName:zw}}},tE(t,x,{arrowPlacement:{top:!0,bottom:!0}}),{[`${e} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${e}, ${e}-menu-submenu`]:Object.assign(Object.assign({},ao(t)),{[n]:Object.assign(Object.assign({padding:p,listStyleType:"none",backgroundColor:x,backgroundClip:"padding-box",borderRadius:t.borderRadiusLG,outline:"none",boxShadow:t.boxShadowSecondary},Bd(t)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${Ee(f)} ${Ee(S)}`,color:t.colorTextDescription,transition:`all ${d}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:m,marginInlineEnd:t.marginXS,fontSize:t.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${d}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:t.padding,marginInlineStart:"auto",fontSize:t.fontSizeSM,color:t.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${Ee(f)} ${Ee(S)}`,color:t.colorText,fontWeight:"normal",fontSize:m,lineHeight:t.lineHeight,cursor:"pointer",transition:`all ${d}`,borderRadius:t.borderRadiusSM,"&:hover, &-active":{backgroundColor:t.controlItemBgHover}},Bd(t)),{"&-selected":{color:t.colorPrimary,backgroundColor:t.controlItemBgActive,"&:hover, &-active":{backgroundColor:t.controlItemBgActiveHover}},"&-disabled":{color:g,cursor:"not-allowed","&:hover":{color:g,backgroundColor:x,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ee(t.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:t.colorSplit},[`${e}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:t.paddingXS,[`${e}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:t.colorTextDescription,fontSize:b,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${Ee(t.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:t.calc(S).add(t.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${e}-menu-submenu-title`]:{[`&, ${e}-menu-submenu-arrow-icon`]:{color:g,backgroundColor:x,cursor:"not-allowed"}},[`${n}-submenu-selected ${e}-menu-submenu-title`]:{color:t.colorPrimary}})})},[Hd(t,"slide-up"),Hd(t,"slide-down"),$v(t,"move-up"),$v(t,"move-down"),pm(t,"zoom-big")]]},eee=t=>Object.assign(Object.assign({zIndexPopup:t.zIndexPopupBase+50,paddingBlock:(t.controlHeight-t.fontSize*t.lineHeight)/2},Ry({contentRadius:t.borderRadiusLG,limitVerticalRadius:!0})),eE(t)),tee=pr("Dropdown",t=>{const{marginXXS:e,sizePopupArrow:n,paddingXXS:r,componentCls:o}=t,l=In(t,{menuCls:`${o}-menu`,dropdownArrowDistance:t.calc(n).div(2).add(e).equal(),dropdownEdgeChildPadding:r});return[JJ(l),ZJ(l)]},eee,{resetStyle:!1}),Om=t=>{var e;const{menu:n,arrow:r,prefixCls:o,children:l,trigger:s,disabled:u,dropdownRender:d,getPopupContainer:f,overlayClassName:m,rootClassName:p,overlayStyle:g,open:b,onOpenChange:S,visible:x,onVisibleChange:w,mouseEnterDelay:O=.15,mouseLeaveDelay:E=.1,autoAdjustOverflow:M=!0,placement:T="",overlay:$,transitionName:N}=t,{getPopupContainer:A,getPrefixCls:z,direction:P,dropdown:B}=y.useContext(Tn),L=rr("Dropdown");[["visible","open"],["onVisibleChange","onOpenChange"]].forEach(pe=>{let[we,$e]=pe;L.deprecated(!(we in t),we,$e)}),L.deprecated(!("overlay"in t),"overlay","menu");const W=y.useMemo(()=>{const pe=z();return N!==void 0?N:T.includes("top")?`${pe}-slide-down`:`${pe}-slide-up`},[z,T,N]),q=y.useMemo(()=>T?T.includes("Center")?T.slice(0,T.indexOf("Center")):T:P==="rtl"?"bottomRight":"bottomLeft",[T,P]);{if(T.includes("Center")){const pe=T.slice(0,T.indexOf("Center"));L(!T.includes("Center"),"deprecated",`You are using '${T}' placement in Dropdown, which is deprecated. Try to use '${pe}' instead.`)}[["visible","open"],["onVisibleChange","onOpenChange"]].forEach(pe=>{let[we,$e]=pe;L.deprecated(!(we in t),we,$e)})}const H=z("dropdown",o),J=El(H),[_,j,V]=tee(H,J),[,G]=Uo(),K=y.Children.only(qZ(l)?y.createElement("span",null,l):l),Y=Pi(K,{className:Se(`${H}-trigger`,{[`${H}-rtl`]:P==="rtl"},K.props.className),disabled:(e=K.props.disabled)!==null&&e!==void 0?e:u}),ne=u?[]:s,ae=!!(ne!=null&&ne.includes("contextMenu")),[Q,se]=vr(!1,{value:b??x}),de=Hn(pe=>{S==null||S(pe,{source:"trigger"}),w==null||w(pe),se(pe)}),xe=Se(m,p,j,V,J,B==null?void 0:B.className,{[`${H}-rtl`]:P==="rtl"}),fe=vH({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:M,offset:G.marginXXS,arrowWidth:r?G.sizePopupArrow:0,borderRadius:G.borderRadius}),Me=y.useCallback(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(S==null||S(!1,{source:"menu"}),se(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),ze=()=>{let pe;return n!=null&&n.items?pe=y.createElement(Rs,Object.assign({},n)):typeof $=="function"?pe=$():pe=$,d&&(pe=d(pe)),pe=y.Children.only(typeof pe=="string"?y.createElement("span",null,pe):pe),y.createElement(VJ,{prefixCls:`${H}-menu`,rootClassName:Se(V,J),expandIcon:y.createElement("span",{className:`${H}-menu-submenu-arrow`},P==="rtl"?y.createElement(kv,{className:`${H}-menu-submenu-arrow-icon`}):y.createElement(tm,{className:`${H}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Me,validator:we=>{let{mode:$e}=we;L(!$e||$e==="vertical","usage",`mode="${$e}" is not supported for Dropdown's Menu.`)}},pe)},[Oe,he]=hm("Dropdown",g==null?void 0:g.zIndex);let De=y.createElement(WZ,Object.assign({alignPoint:ae},Hr(t,["rootClassName"]),{mouseEnterDelay:O,mouseLeaveDelay:E,visible:Q,builtinPlacements:fe,arrow:!!r,overlayClassName:xe,prefixCls:H,getPopupContainer:f||A,transitionName:W,trigger:ne,overlay:ze,placement:q,onVisibleChange:de,overlayStyle:Object.assign(Object.assign(Object.assign({},B==null?void 0:B.style),g),{zIndex:Oe})}),Y);return Oe&&(De=y.createElement(fm.Provider,{value:he},De)),_(De)},nee=Vw(Om,"align",void 0,"dropdown",t=>t),ree=t=>y.createElement(nee,Object.assign({},t),y.createElement("span",null));Om._InternalPanelDoNotUseOrYouWillBeFired=ree;Om.displayName="Dropdown";function Rm(t){return In(t,{inputAffixPadding:t.paddingXXS})}const Tm=t=>{const{controlHeight:e,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:l,controlHeightLG:s,fontSizeLG:u,lineHeightLG:d,paddingSM:f,controlPaddingHorizontalSM:m,controlPaddingHorizontal:p,colorFillAlter:g,colorPrimaryHover:b,colorPrimary:S,controlOutlineWidth:x,controlOutline:w,colorErrorOutline:O,colorWarningOutline:E,colorBgContainer:M,inputFontSize:T,inputFontSizeLG:$,inputFontSizeSM:N}=t,A=T||n,z=N||A,P=$||u,B=Math.round((e-A*r)/2*10)/10-o,L=Math.round((l-z*r)/2*10)/10-o,W=Math.ceil((s-P*d)/2*10)/10-o;return{paddingBlock:Math.max(B,0),paddingBlockSM:Math.max(L,0),paddingBlockLG:Math.max(W,0),paddingInline:f-o,paddingInlineSM:m-o,paddingInlineLG:p-o,addonBg:g,activeBorderColor:S,hoverBorderColor:b,activeShadow:`0 0 0 ${x}px ${w}`,errorActiveShadow:`0 0 0 ${x}px ${O}`,warningActiveShadow:`0 0 0 ${x}px ${E}`,hoverBg:M,activeBg:M,inputFontSize:A,inputFontSizeLG:P,inputFontSizeSM:z}},oee=t=>({borderColor:t.hoverBorderColor,backgroundColor:t.hoverBg}),dE=t=>({color:t.colorTextDisabled,backgroundColor:t.colorBgContainerDisabled,borderColor:t.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},oee(In(t,{hoverBorderColor:t.colorBorder,hoverBg:t.colorBgContainerDisabled})))}),HH=(t,e)=>({background:t.colorBgContainer,borderWidth:t.lineWidth,borderStyle:t.lineType,borderColor:e.borderColor,"&:hover":{borderColor:e.hoverBorderColor,backgroundColor:t.hoverBg},"&:focus, &:focus-within":{borderColor:e.activeBorderColor,boxShadow:e.activeShadow,outline:0,backgroundColor:t.activeBg}}),RI=(t,e)=>({[`&${t.componentCls}-status-${e.status}:not(${t.componentCls}-disabled)`]:Object.assign(Object.assign({},HH(t,e)),{[`${t.componentCls}-prefix, ${t.componentCls}-suffix`]:{color:e.affixColor}}),[`&${t.componentCls}-status-${e.status}${t.componentCls}-disabled`]:{borderColor:e.borderColor}}),jH=(t,e)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},HH(t,{borderColor:t.colorBorder,hoverBorderColor:t.hoverBorderColor,activeBorderColor:t.activeBorderColor,activeShadow:t.activeShadow})),{[`&${t.componentCls}-disabled, &[disabled]`]:Object.assign({},dE(t))}),RI(t,{status:"error",borderColor:t.colorError,hoverBorderColor:t.colorErrorBorderHover,activeBorderColor:t.colorError,activeShadow:t.errorActiveShadow,affixColor:t.colorError})),RI(t,{status:"warning",borderColor:t.colorWarning,hoverBorderColor:t.colorWarningBorderHover,activeBorderColor:t.colorWarning,activeShadow:t.warningActiveShadow,affixColor:t.colorWarning})),e)}),TI=(t,e)=>({[`&${t.componentCls}-group-wrapper-status-${e.status}`]:{[`${t.componentCls}-group-addon`]:{borderColor:e.addonBorderColor,color:e.addonColor}}}),LH=t=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${t.componentCls}-group`]:{"&-addon":{background:t.addonBg,border:`${Ee(t.lineWidth)} ${t.lineType} ${t.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},TI(t,{status:"error",addonBorderColor:t.colorError,addonColor:t.colorErrorText})),TI(t,{status:"warning",addonBorderColor:t.colorWarning,addonColor:t.colorWarningText})),{[`&${t.componentCls}-group-wrapper-disabled`]:{[`${t.componentCls}-group-addon`]:Object.assign({},dE(t))}})}),VH=(t,e)=>{const{componentCls:n}=t;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:t.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:t.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:t.colorWarning}}},e)}},FH=(t,e)=>{var n;return{background:e.bg,borderWidth:t.lineWidth,borderStyle:t.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=e==null?void 0:e.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:e.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:e.activeBorderColor,backgroundColor:t.activeBg}}},MI=(t,e)=>({[`&${t.componentCls}-status-${e.status}:not(${t.componentCls}-disabled)`]:Object.assign(Object.assign({},FH(t,e)),{[`${t.componentCls}-prefix, ${t.componentCls}-suffix`]:{color:e.affixColor}})}),UH=(t,e)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},FH(t,{bg:t.colorFillTertiary,hoverBg:t.colorFillSecondary,activeBorderColor:t.activeBorderColor})),{[`&${t.componentCls}-disabled, &[disabled]`]:Object.assign({},dE(t))}),MI(t,{status:"error",bg:t.colorErrorBg,hoverBg:t.colorErrorBgHover,activeBorderColor:t.colorError,inputColor:t.colorErrorText,affixColor:t.colorError})),MI(t,{status:"warning",bg:t.colorWarningBg,hoverBg:t.colorWarningBgHover,activeBorderColor:t.colorWarning,inputColor:t.colorWarningText,affixColor:t.colorWarning})),e)}),$I=(t,e)=>({[`&${t.componentCls}-group-wrapper-status-${e.status}`]:{[`${t.componentCls}-group-addon`]:{background:e.addonBg,color:e.addonColor}}}),WH=t=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${t.componentCls}-group`]:{"&-addon":{background:t.colorFillTertiary},[`${t.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${Ee(t.lineWidth)} ${t.lineType} ${t.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Ee(t.lineWidth)} ${t.lineType} ${t.colorSplit}`}}}},$I(t,{status:"error",addonBg:t.colorErrorBg,addonColor:t.colorErrorText})),$I(t,{status:"warning",addonBg:t.colorWarningBg,addonColor:t.colorWarningText})),{[`&${t.componentCls}-group-wrapper-disabled`]:{[`${t.componentCls}-group`]:{"&-addon":{background:t.colorFillTertiary,color:t.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Ee(t.lineWidth)} ${t.lineType} ${t.colorBorder}`,borderTop:`${Ee(t.lineWidth)} ${t.lineType} ${t.colorBorder}`,borderBottom:`${Ee(t.lineWidth)} ${t.lineType} ${t.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Ee(t.lineWidth)} ${t.lineType} ${t.colorBorder}`,borderTop:`${Ee(t.lineWidth)} ${t.lineType} ${t.colorBorder}`,borderBottom:`${Ee(t.lineWidth)} ${t.lineType} ${t.colorBorder}`}}}})}),qH=(t,e)=>({background:t.colorBgContainer,borderWidth:`${Ee(t.lineWidth)} 0`,borderStyle:`${t.lineType} none`,borderColor:`transparent transparent ${e.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${e.borderColor} transparent`,backgroundColor:t.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${e.borderColor} transparent`,outline:0,backgroundColor:t.activeBg}}),NI=(t,e)=>({[`&${t.componentCls}-status-${e.status}:not(${t.componentCls}-disabled)`]:Object.assign(Object.assign({},qH(t,e)),{[`${t.componentCls}-prefix, ${t.componentCls}-suffix`]:{color:e.affixColor}}),[`&${t.componentCls}-status-${e.status}${t.componentCls}-disabled`]:{borderColor:`transparent transparent ${e.borderColor} transparent`}}),GH=(t,e)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},qH(t,{borderColor:t.colorBorder,hoverBorderColor:t.hoverBorderColor,activeBorderColor:t.activeBorderColor,activeShadow:t.activeShadow})),{[`&${t.componentCls}-disabled, &[disabled]`]:{color:t.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${t.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),NI(t,{status:"error",borderColor:t.colorError,hoverBorderColor:t.colorErrorBorderHover,activeBorderColor:t.colorError,activeShadow:t.errorActiveShadow,affixColor:t.colorError})),NI(t,{status:"warning",borderColor:t.colorWarning,hoverBorderColor:t.colorWarningBorderHover,activeBorderColor:t.colorWarning,activeShadow:t.warningActiveShadow,affixColor:t.colorWarning})),e)}),KH=t=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:t,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),YH=t=>{const{paddingBlockLG:e,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=t;return{padding:`${Ee(e)} ${Ee(o)}`,fontSize:t.inputFontSizeLG,lineHeight:n,borderRadius:r}},XH=t=>({padding:`${Ee(t.paddingBlockSM)} ${Ee(t.paddingInlineSM)}`,fontSize:t.inputFontSizeSM,borderRadius:t.borderRadiusSM}),Ny=t=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Ee(t.paddingBlock)} ${Ee(t.paddingInline)}`,color:t.colorText,fontSize:t.inputFontSize,lineHeight:t.lineHeight,borderRadius:t.borderRadius,transition:`all ${t.motionDurationMid}`},KH(t.colorTextPlaceholder)),{"&-lg":Object.assign({},YH(t)),"&-sm":Object.assign({},XH(t)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),QH=t=>{const{componentCls:e,antCls:n}=t;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:t.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${e}, &-lg > ${e}-group-addon`]:Object.assign({},YH(t)),[`&-sm ${e}, &-sm > ${e}-group-addon`]:Object.assign({},XH(t)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:t.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:t.controlHeightSM},[`> ${e}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${e}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Ee(t.paddingInline)}`,color:t.colorText,fontWeight:"normal",fontSize:t.inputFontSize,textAlign:"center",borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Ee(t.calc(t.paddingBlock).add(1).mul(-1).equal())} ${Ee(t.calc(t.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Ee(t.lineWidth)} ${t.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${Ee(t.calc(t.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[e]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${e}-search-with-button &`]:{zIndex:0}}},[`> ${e}:first-child, ${e}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${e}-affix-wrapper`]:{[`&:not(:first-child) ${e}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${e}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${e}:last-child, ${e}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${e}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${e}-search &`]:{borderStartStartRadius:t.borderRadius,borderEndStartRadius:t.borderRadius}},[`&:not(:first-child), ${e}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${e}-group-compact`]:Object.assign(Object.assign({display:"block"},Ov()),{[`${e}-group-addon, ${e}-group-wrap, > ${e}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:t.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
641
- & > ${e}-affix-wrapper,
642
- & > ${e}-number-affix-wrapper,
643
- & > ${n}-picker-range
644
- `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:t.calc(t.lineWidth).mul(-1).equal(),borderInlineEndWidth:t.lineWidth},[e]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
645
- & > ${n}-select-auto-complete ${e},
646
- & > ${n}-cascader-picker ${e},
647
- & > ${e}-group-wrapper ${e}`]:{borderInlineEndWidth:t.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
648
- & > ${n}-select:first-child > ${n}-select-selector,
649
- & > ${n}-select-auto-complete:first-child ${e},
650
- & > ${n}-cascader-picker:first-child ${e}`]:{borderStartStartRadius:t.borderRadius,borderEndStartRadius:t.borderRadius},[`& > *:last-child,
651
- & > ${n}-select:last-child > ${n}-select-selector,
652
- & > ${n}-cascader-picker:last-child ${e},
653
- & > ${n}-cascader-picker-focused:last-child ${e}`]:{borderInlineEndWidth:t.lineWidth,borderStartEndRadius:t.borderRadius,borderEndEndRadius:t.borderRadius},[`& > ${n}-select-auto-complete ${e}`]:{verticalAlign:"top"},[`${e}-group-wrapper + ${e}-group-wrapper`]:{marginInlineStart:t.calc(t.lineWidth).mul(-1).equal(),[`${e}-affix-wrapper`]:{borderRadius:0}},[`${e}-group-wrapper:not(:last-child)`]:{[`&${e}-search > ${e}-group`]:{[`& > ${e}-group-addon > ${e}-search-button`]:{borderRadius:0},[`& > ${e}`]:{borderStartStartRadius:t.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:t.borderRadius}}}})}},iee=t=>{const{componentCls:e,controlHeightSM:n,lineWidth:r,calc:o}=t,s=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[e]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ao(t)),Ny(t)),jH(t)),UH(t)),VH(t)),GH(t)),{'&[type="color"]':{height:t.controlHeight,[`&${e}-lg`]:{height:t.controlHeightLG},[`&${e}-sm`]:{height:n,paddingTop:s,paddingBottom:s}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},aee=t=>{const{componentCls:e}=t;return{[`${e}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:t.colorTextQuaternary,fontSize:t.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${t.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:t.colorTextTertiary},"&:active":{color:t.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Ee(t.inputAffixPadding)}`}}}},lee=t=>{const{componentCls:e,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:l,colorIconHover:s,iconCls:u}=t,d=`${e}-affix-wrapper`,f=`${e}-affix-wrapper-disabled`;return{[d]:Object.assign(Object.assign(Object.assign(Object.assign({},Ny(t)),{display:"inline-flex",[`&:not(${e}-disabled):hover`]:{zIndex:1,[`${e}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${e}`]:{padding:0},[`> input${e}, > textarea${e}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[e]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:t.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:t.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),aee(t)),{[`${u}${e}-password-icon`]:{color:l,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:s}}}),[`${e}-underlined`]:{borderRadius:0},[f]:{[`${u}${e}-password-icon`]:{color:l,cursor:"not-allowed","&:hover":{color:l}}}}},see=t=>{const{componentCls:e,borderRadiusLG:n,borderRadiusSM:r}=t;return{[`${e}-group`]:Object.assign(Object.assign(Object.assign({},ao(t)),QH(t)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${e}-group-addon`]:{borderRadius:n,fontSize:t.inputFontSizeLG}},"&-sm":{[`${e}-group-addon`]:{borderRadius:r}}},LH(t)),WH(t)),{[`&:not(${e}-compact-first-item):not(${e}-compact-last-item)${e}-compact-item`]:{[`${e}, ${e}-group-addon`]:{borderRadius:0}},[`&:not(${e}-compact-last-item)${e}-compact-first-item`]:{[`${e}, ${e}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${e}-compact-first-item)${e}-compact-last-item`]:{[`${e}, ${e}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${e}-compact-last-item)${e}-compact-item`]:{[`${e}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${e}-compact-first-item)${e}-compact-item`]:{[`${e}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},cee=t=>{const{componentCls:e,antCls:n}=t,r=`${e}-search`;return{[r]:{[e]:{"&:hover, &:focus":{[`+ ${e}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:t.colorPrimaryHover}}},[`${e}-affix-wrapper`]:{height:t.controlHeight,borderRadius:0},[`${e}-lg`]:{lineHeight:t.calc(t.lineHeightLG).sub(2e-4).equal()},[`> ${e}-group`]:{[`> ${e}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:t.colorTextDescription,"&:hover":{color:t.colorPrimaryHover},"&:active":{color:t.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:t.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${e}-affix-wrapper, ${r}-button`]:{height:t.controlHeightLG}},"&-small":{[`${e}-affix-wrapper, ${r}-button`]:{height:t.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${e}-compact-item`]:{[`&:not(${e}-compact-last-item)`]:{[`${e}-group-addon`]:{[`${e}-search-button`]:{marginInlineEnd:t.calc(t.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${e}-compact-first-item)`]:{[`${e},${e}-affix-wrapper`]:{borderRadius:0}},[`> ${e}-group-addon ${e}-search-button,
654
- > ${e},
655
- ${e}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${e}-affix-wrapper-focused`]:{zIndex:2}}}}},uee=t=>{const{componentCls:e}=t;return{[`${e}-out-of-range`]:{[`&, & input, & textarea, ${e}-show-count-suffix, ${e}-data-count`]:{color:t.colorError}}}},ZH=pr(["Input","Shared"],t=>{const e=In(t,Rm(t));return[iee(e),lee(e)]},Tm,{resetFont:!1}),JH=pr(["Input","Component"],t=>{const e=In(t,Rm(t));return[see(e),cee(e),uee(e),gm(e)]},Tm,{resetFont:!1}),dee=t=>{const{componentCls:e,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:l,orientationMargin:s,verticalMarginInline:u}=t;return{[e]:Object.assign(Object.assign({},ao(t)),{borderBlockStart:`${Ee(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:u,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Ee(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Ee(t.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${e}-with-text`]:{display:"flex",alignItems:"center",margin:`${Ee(t.dividerHorizontalWithTextGutterMargin)} 0`,color:t.colorTextHeading,fontWeight:500,fontSize:t.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${Ee(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${e}-with-text-start`]:{"&::before":{width:`calc(${s} * 100%)`},"&::after":{width:`calc(100% - ${s} * 100%)`}},[`&-horizontal${e}-with-text-end`]:{"&::before":{width:`calc(100% - ${s} * 100%)`},"&::after":{width:`calc(${s} * 100%)`}},[`${e}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:l},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${Ee(o)} 0 0`},[`&-horizontal${e}-with-text${e}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${e}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${Ee(o)} 0 0`},[`&-horizontal${e}-with-text${e}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${e}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${e}-with-text`]:{color:t.colorText,fontWeight:"normal",fontSize:t.fontSize},[`&-horizontal${e}-with-text-start${e}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${e}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${e}-with-text-end${e}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${e}-inner-text`]:{paddingInlineEnd:n}}})}},fee=t=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:t.marginXS}),hee=pr("Divider",t=>{const e=In(t,{dividerHorizontalWithTextGutterMargin:t.margin,dividerHorizontalGutterMargin:t.marginLG,sizePaddingEdgeHorizontal:0});return[dee(e)]},fee,{unitless:{orientationMargin:!0}});var mee=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};const ej=t=>{const{getPrefixCls:e,direction:n,className:r,style:o}=di("divider"),{prefixCls:l,type:s="horizontal",orientation:u="center",orientationMargin:d,className:f,rootClassName:m,children:p,dashed:g,variant:b="solid",plain:S,style:x}=t,w=mee(t,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),O=e("divider",l),[E,M,T]=hee(O),$=!!p,N=y.useMemo(()=>u==="left"?n==="rtl"?"end":"start":u==="right"?n==="rtl"?"start":"end":u,[n,u]),A=N==="start"&&d!=null,z=N==="end"&&d!=null,P=Se(O,r,M,T,`${O}-${s}`,{[`${O}-with-text`]:$,[`${O}-with-text-${N}`]:$,[`${O}-dashed`]:!!g,[`${O}-${b}`]:b!=="solid",[`${O}-plain`]:!!S,[`${O}-rtl`]:n==="rtl",[`${O}-no-default-orientation-margin-start`]:A,[`${O}-no-default-orientation-margin-end`]:z},f,m),B=y.useMemo(()=>typeof d=="number"?d:/^\d+$/.test(d)?Number(d):d,[d]),L={marginInlineStart:A?B:void 0,marginInlineEnd:z?B:void 0};return rr("Divider")(!p||s!=="vertical","usage","`children` not working in `vertical` mode."),E(y.createElement("div",Object.assign({className:P,style:Object.assign(Object.assign({},o),x)},w,{role:"separator"}),p&&s!=="vertical"&&y.createElement("span",{className:`${O}-inner-text`,style:L},p)))};ej.displayName="Divider";var AI=function(e,n){if(!e)return null;var r={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return n?{left:0,right:0,width:0,top:r.top,bottom:r.bottom,height:r.height}:{left:r.left,right:r.right,width:r.width,top:0,bottom:0,height:0}},wa=function(e){return e!==void 0?"".concat(e,"px"):void 0};function pee(t){var e=t.prefixCls,n=t.containerRef,r=t.value,o=t.getValueIndex,l=t.motionName,s=t.onMotionStart,u=t.onMotionEnd,d=t.direction,f=t.vertical,m=f===void 0?!1:f,p=y.useRef(null),g=y.useState(r),b=Re(g,2),S=b[0],x=b[1],w=function(J){var _,j=o(J),V=(_=n.current)===null||_===void 0?void 0:_.querySelectorAll(".".concat(e,"-item"))[j];return(V==null?void 0:V.offsetParent)&&V},O=y.useState(null),E=Re(O,2),M=E[0],T=E[1],$=y.useState(null),N=Re($,2),A=N[0],z=N[1];Gn(function(){if(S!==r){var H=w(S),J=w(r),_=AI(H,m),j=AI(J,m);x(r),T(_),z(j),H&&J?s():u()}},[r]);var P=y.useMemo(function(){if(m){var H;return wa((H=M==null?void 0:M.top)!==null&&H!==void 0?H:0)}return wa(d==="rtl"?-(M==null?void 0:M.right):M==null?void 0:M.left)},[m,d,M]),B=y.useMemo(function(){if(m){var H;return wa((H=A==null?void 0:A.top)!==null&&H!==void 0?H:0)}return wa(d==="rtl"?-(A==null?void 0:A.right):A==null?void 0:A.left)},[m,d,A]),L=function(){return m?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},W=function(){return m?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},q=function(){T(null),z(null),u()};return!M||!A?null:y.createElement(Pa,{visible:!0,motionName:l,motionAppear:!0,onAppearStart:L,onAppearActive:W,onVisibleChanged:q},function(H,J){var _=H.className,j=H.style,V=re(re({},j),{},{"--thumb-start-left":P,"--thumb-start-width":wa(M==null?void 0:M.width),"--thumb-active-left":B,"--thumb-active-width":wa(A==null?void 0:A.width),"--thumb-start-top":P,"--thumb-start-height":wa(M==null?void 0:M.height),"--thumb-active-top":B,"--thumb-active-height":wa(A==null?void 0:A.height)}),G={ref:Fo(p,J),style:V,className:Se("".concat(e,"-thumb"),_)};return y.createElement("div",G)})}var gee=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function vee(t){if(typeof t.title<"u")return t.title;if(Ht(t.label)!=="object"){var e;return(e=t.label)===null||e===void 0?void 0:e.toString()}}function yee(t){return t.map(function(e){if(Ht(e)==="object"&&e!==null){var n=vee(e);return re(re({},e),{},{title:n})}return{label:e==null?void 0:e.toString(),title:e==null?void 0:e.toString(),value:e}})}var bee=function(e){var n=e.prefixCls,r=e.className,o=e.disabled,l=e.checked,s=e.label,u=e.title,d=e.value,f=e.name,m=e.onChange,p=e.onFocus,g=e.onBlur,b=e.onKeyDown,S=e.onKeyUp,x=e.onMouseDown,w=function(E){o||m(E,d)};return y.createElement("label",{className:Se(r,te({},"".concat(n,"-item-disabled"),o)),onMouseDown:x},y.createElement("input",{name:f,className:"".concat(n,"-item-input"),type:"radio",disabled:o,checked:l,onChange:w,onFocus:p,onBlur:g,onKeyDown:b,onKeyUp:S}),y.createElement("div",{className:"".concat(n,"-item-label"),title:u,"aria-selected":l},s))},tj=y.forwardRef(function(t,e){var n,r,o=t.prefixCls,l=o===void 0?"rc-segmented":o,s=t.direction,u=t.vertical,d=t.options,f=d===void 0?[]:d,m=t.disabled,p=t.defaultValue,g=t.value,b=t.name,S=t.onChange,x=t.className,w=x===void 0?"":x,O=t.motionName,E=O===void 0?"thumb-motion":O,M=an(t,gee),T=y.useRef(null),$=y.useMemo(function(){return Fo(T,e)},[T,e]),N=y.useMemo(function(){return yee(f)},[f]),A=vr((n=N[0])===null||n===void 0?void 0:n.value,{value:g,defaultValue:p}),z=Re(A,2),P=z[0],B=z[1],L=y.useState(!1),W=Re(L,2),q=W[0],H=W[1],J=function(he,De){B(De),S==null||S(De)},_=Hr(M,["children"]),j=y.useState(!1),V=Re(j,2),G=V[0],K=V[1],Y=y.useState(!1),ne=Re(Y,2),ae=ne[0],Q=ne[1],se=function(){Q(!0)},de=function(){Q(!1)},xe=function(){K(!1)},fe=function(he){he.key==="Tab"&&K(!0)},Me=function(he){var De=N.findIndex(function(Pe){return Pe.value===P}),pe=N.length,we=(De+he+pe)%pe,$e=N[we];$e&&(B($e.value),S==null||S($e.value))},ze=function(he){switch(he.key){case"ArrowLeft":case"ArrowUp":Me(-1);break;case"ArrowRight":case"ArrowDown":Me(1);break}};return y.createElement("div",yt({role:"radiogroup","aria-label":"segmented control",tabIndex:m?void 0:0},_,{className:Se(l,(r={},te(r,"".concat(l,"-rtl"),s==="rtl"),te(r,"".concat(l,"-disabled"),m),te(r,"".concat(l,"-vertical"),u),r),w),ref:$}),y.createElement("div",{className:"".concat(l,"-group")},y.createElement(pee,{vertical:u,prefixCls:l,value:P,containerRef:T,motionName:"".concat(l,"-").concat(E),direction:s,getValueIndex:function(he){return N.findIndex(function(De){return De.value===he})},onMotionStart:function(){H(!0)},onMotionEnd:function(){H(!1)}}),N.map(function(Oe){var he;return y.createElement(bee,yt({},Oe,{name:b,key:Oe.value,prefixCls:l,className:Se(Oe.className,"".concat(l,"-item"),(he={},te(he,"".concat(l,"-item-selected"),Oe.value===P&&!q),te(he,"".concat(l,"-item-focused"),ae&&G&&Oe.value===P),he)),checked:Oe.value===P,onChange:J,onFocus:se,onBlur:de,onKeyDown:ze,onKeyUp:fe,onMouseDown:xe,disabled:!!m||!!Oe.disabled}))})))});tj.displayName="Segmented";var See=tj;function DI(t,e){return{[`${t}, ${t}:hover, ${t}:focus`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}}function II(t){return{backgroundColor:t.itemSelectedBg,boxShadow:t.boxShadowTertiary}}const Cee=Object.assign({overflow:"hidden"},em),xee=t=>{const{componentCls:e}=t,n=t.calc(t.controlHeight).sub(t.calc(t.trackPadding).mul(2)).equal(),r=t.calc(t.controlHeightLG).sub(t.calc(t.trackPadding).mul(2)).equal(),o=t.calc(t.controlHeightSM).sub(t.calc(t.trackPadding).mul(2)).equal();return{[e]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ao(t)),{display:"inline-block",padding:t.trackPadding,color:t.itemColor,background:t.trackBg,borderRadius:t.borderRadius,transition:`all ${t.motionDurationMid} ${t.motionEaseInOut}`}),Bd(t)),{[`${e}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${e}-rtl`]:{direction:"rtl"},[`&${e}-vertical`]:{[`${e}-group`]:{flexDirection:"column"},[`${e}-thumb`]:{width:"100%",height:0,padding:`0 ${Ee(t.paddingXXS)}`}},[`&${e}-block`]:{display:"flex"},[`&${e}-block ${e}-item`]:{flex:1,minWidth:0},[`${e}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${t.motionDurationMid} ${t.motionEaseInOut}`,borderRadius:t.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},II(t)),{color:t.itemSelectedColor}),"&-focused":Object.assign({},Tw(t)),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,transition:`opacity ${t.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${e}-item-selected):not(${e}-item-disabled)`]:{color:t.itemHoverColor,"&::after":{opacity:1,backgroundColor:t.itemHoverBg}},[`&:active:not(${e}-item-selected):not(${e}-item-disabled)`]:{color:t.itemHoverColor,"&::after":{opacity:1,backgroundColor:t.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:Ee(n),padding:`0 ${Ee(t.segmentedPaddingHorizontal)}`},Cee),"&-icon + *":{marginInlineStart:t.calc(t.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${e}-thumb`]:Object.assign(Object.assign({},II(t)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${Ee(t.paddingXXS)} 0`,borderRadius:t.borderRadiusSM,transition:`transform ${t.motionDurationSlow} ${t.motionEaseInOut}, height ${t.motionDurationSlow} ${t.motionEaseInOut}`,[`& ~ ${e}-item:not(${e}-item-selected):not(${e}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${e}-lg`]:{borderRadius:t.borderRadiusLG,[`${e}-item-label`]:{minHeight:r,lineHeight:Ee(r),padding:`0 ${Ee(t.segmentedPaddingHorizontal)}`,fontSize:t.fontSizeLG},[`${e}-item, ${e}-thumb`]:{borderRadius:t.borderRadius}},[`&${e}-sm`]:{borderRadius:t.borderRadiusSM,[`${e}-item-label`]:{minHeight:o,lineHeight:Ee(o),padding:`0 ${Ee(t.segmentedPaddingHorizontalSM)}`},[`${e}-item, ${e}-thumb`]:{borderRadius:t.borderRadiusXS}}}),DI(`&-disabled ${e}-item`,t)),DI(`${e}-item-disabled`,t)),{[`${e}-thumb-motion-appear-active`]:{transition:`transform ${t.motionDurationSlow} ${t.motionEaseInOut}, width ${t.motionDurationSlow} ${t.motionEaseInOut}`,willChange:"transform, width"},[`&${e}-shape-round`]:{borderRadius:9999,[`${e}-item, ${e}-thumb`]:{borderRadius:9999}}})}},wee=t=>{const{colorTextLabel:e,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:l,lineWidthBold:s,colorBgLayout:u}=t;return{trackPadding:s,trackBg:u,itemColor:e,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:l,itemSelectedColor:n}},Eee=pr("Segmented",t=>{const{lineWidth:e,calc:n}=t,r=In(t,{segmentedPaddingHorizontal:n(t.controlPaddingHorizontal).sub(e).equal(),segmentedPaddingHorizontalSM:n(t.controlPaddingHorizontalSM).sub(e).equal()});return[xee(r)]},wee);var kI=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};function Oee(t){return typeof t=="object"&&!!(t!=null&&t.icon)}const Ree=y.forwardRef((t,e)=>{const n=Sy(),{prefixCls:r,className:o,rootClassName:l,block:s,options:u=[],size:d="middle",style:f,vertical:m,shape:p="default",name:g=n}=t,b=kI(t,["prefixCls","className","rootClassName","block","options","size","style","vertical","shape","name"]),{getPrefixCls:S,direction:x,className:w,style:O}=di("segmented"),E=S("segmented",r),[M,T,$]=Eee(E),N=ra(d),A=y.useMemo(()=>u.map(B=>{if(Oee(B)){const{icon:L,label:W}=B,q=kI(B,["icon","label"]);return Object.assign(Object.assign({},q),{label:y.createElement(y.Fragment,null,y.createElement("span",{className:`${E}-item-icon`},L),W&&y.createElement("span",null,W))})}return B}),[u,E]),z=Se(o,l,w,{[`${E}-block`]:s,[`${E}-sm`]:N==="small",[`${E}-lg`]:N==="large",[`${E}-vertical`]:m,[`${E}-shape-${p}`]:p==="round"},T,$),P=Object.assign(Object.assign({},O),f);return M(y.createElement(See,Object.assign({},b,{name:g,className:z,style:P,options:A,ref:e,prefixCls:E,direction:x,vertical:m})))}),nj=Ree;nj.displayName="Segmented";const rj=ee.createContext({}),oj=ee.createContext({}),ij=t=>{let{prefixCls:e,value:n,onChange:r}=t;const o=()=>{if(r&&n&&!n.cleared){const l=n.toHsb();l.a=0;const s=bo(l);s.cleared=!0,r(s)}};return ee.createElement("div",{className:`${e}-clear`,onClick:o})},aj="hex",lj="rgb",sj="hsb";var Tee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},Mee=function(e,n){return y.createElement(Lr,yt({},e,{ref:n,icon:Tee}))},cj=y.forwardRef(Mee);cj.displayName="UpOutlined";function Ax(){return typeof BigInt=="function"}function uj(t){return!t&&t!==0&&!Number.isNaN(t)||!String(t).trim()}function Hc(t){var e=t.trim(),n=e.startsWith("-");n&&(e=e.slice(1)),e=e.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),e.startsWith(".")&&(e="0".concat(e));var r=e||"0",o=r.split("."),l=o[0]||"0",s=o[1]||"0";l==="0"&&s==="0"&&(n=!1);var u=n?"-":"";return{negative:n,negativeStr:u,trimStr:r,integerStr:l,decimalStr:s,fullStr:"".concat(u).concat(r)}}function fE(t){var e=String(t);return!Number.isNaN(Number(e))&&e.includes("e")}function Ic(t){var e=String(t);if(fE(t)){var n=Number(e.slice(e.indexOf("e-")+2)),r=e.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return e.includes(".")&&hE(e)?e.length-e.indexOf(".")-1:0}function Ay(t){var e=String(t);if(fE(t)){if(t>Number.MAX_SAFE_INTEGER)return String(Ax()?BigInt(t).toString():Number.MAX_SAFE_INTEGER);if(t<Number.MIN_SAFE_INTEGER)return String(Ax()?BigInt(t).toString():Number.MIN_SAFE_INTEGER);e=t.toFixed(Ic(e))}return Hc(e).fullStr}function hE(t){return typeof t=="number"?!Number.isNaN(t):t?/^\s*-?\d+(\.\d+)?\s*$/.test(t)||/^\s*-?\d+\.\s*$/.test(t)||/^\s*-?\.\d+\s*$/.test(t):!1}var $ee=function(){function t(e){if(Er(this,t),te(this,"origin",""),te(this,"negative",void 0),te(this,"integer",void 0),te(this,"decimal",void 0),te(this,"decimalLen",void 0),te(this,"empty",void 0),te(this,"nan",void 0),uj(e)){this.empty=!0;return}if(this.origin=String(e),e==="-"||Number.isNaN(e)){this.nan=!0;return}var n=e;if(fE(n)&&(n=Number(n)),n=typeof n=="string"?n:Ay(n),hE(n)){var r=Hc(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var l=o[1]||"0";this.decimal=BigInt(l),this.decimalLen=l.length}else this.nan=!0}return Or(t,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new t(this.toString());return n.negative=!n.negative,n}},{key:"cal",value:function(n,r,o){var l=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),s=this.alignDecimal(l),u=n.alignDecimal(l),d=r(s,u).toString(),f=o(l),m=Hc(d),p=m.negativeStr,g=m.trimStr,b="".concat(p).concat(g.padStart(f+1,"0"));return new t("".concat(b.slice(0,-f),".").concat(b.slice(-f)))}},{key:"add",value:function(n){if(this.isInvalidate())return new t(n);var r=new t(n);return r.isInvalidate()?this:this.cal(r,function(o,l){return o+l},function(o){return o})}},{key:"multi",value:function(n){var r=new t(n);return this.isInvalidate()||r.isInvalidate()?new t(NaN):this.cal(r,function(o,l){return o*l},function(o){return o*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Hc("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),t}(),Nee=function(){function t(e){if(Er(this,t),te(this,"origin",""),te(this,"number",void 0),te(this,"empty",void 0),uj(e)){this.empty=!0;return}this.origin=String(e),this.number=Number(e)}return Or(t,[{key:"negate",value:function(){return new t(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new t(n);var r=Number(n);if(Number.isNaN(r))return this;var o=this.number+r;if(o>Number.MAX_SAFE_INTEGER)return new t(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new t(Number.MIN_SAFE_INTEGER);var l=Math.max(Ic(this.number),Ic(r));return new t(o.toFixed(l))}},{key:"multi",value:function(n){var r=Number(n);if(this.isInvalidate()||Number.isNaN(r))return new t(NaN);var o=this.number*r;if(o>Number.MAX_SAFE_INTEGER)return new t(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new t(Number.MIN_SAFE_INTEGER);var l=Math.max(Ic(this.number),Ic(r));return new t(o.toFixed(l))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toNumber()===(n==null?void 0:n.toNumber())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Ay(this.number):this.origin}}]),t}();function Gi(t){return Ax()?new $ee(t):new Nee(t)}function tv(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(t==="")return"";var o=Hc(t),l=o.negativeStr,s=o.integerStr,u=o.decimalStr,d="".concat(e).concat(u),f="".concat(l).concat(s);if(n>=0){var m=Number(u[n]);if(m>=5&&!r){var p=Gi(t).add("".concat(l,"0.").concat("0".repeat(n)).concat(10-m));return tv(p.toString(),e,n,r)}return n===0?f:"".concat(f).concat(e).concat(u.padEnd(n,"0").slice(0,n))}return d===".0"?f:"".concat(f).concat(d)}function Aee(t){return!!(t.addonBefore||t.addonAfter)}function Dee(t){return!!(t.prefix||t.suffix||t.allowClear)}function PI(t,e,n){var r=e.cloneNode(!0),o=Object.create(t,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof e.selectionStart=="number"&&typeof e.selectionEnd=="number"&&(r.selectionStart=e.selectionStart,r.selectionEnd=e.selectionEnd),r.setSelectionRange=function(){e.setSelectionRange.apply(e,arguments)},o}function Bv(t,e,n,r){if(n){var o=e;if(e.type==="click"){o=PI(e,t,""),n(o);return}if(t.type!=="file"&&r!==void 0){o=PI(e,t,r),n(o);return}n(o)}}function mE(t,e){if(t){t.focus(e);var n=e||{},r=n.cursor;if(r){var o=t.value.length;switch(r){case"start":t.setSelectionRange(0,0);break;case"end":t.setSelectionRange(o,o);break;default:t.setSelectionRange(0,o)}}}}var pE=ee.forwardRef(function(t,e){var n,r,o,l=t.inputElement,s=t.children,u=t.prefixCls,d=t.prefix,f=t.suffix,m=t.addonBefore,p=t.addonAfter,g=t.className,b=t.style,S=t.disabled,x=t.readOnly,w=t.focused,O=t.triggerFocus,E=t.allowClear,M=t.value,T=t.handleReset,$=t.hidden,N=t.classes,A=t.classNames,z=t.dataAttrs,P=t.styles,B=t.components,L=t.onClear,W=s??l,q=(B==null?void 0:B.affixWrapper)||"span",H=(B==null?void 0:B.groupWrapper)||"span",J=(B==null?void 0:B.wrapper)||"span",_=(B==null?void 0:B.groupAddon)||"span",j=y.useRef(null),V=function(we){var $e;($e=j.current)!==null&&$e!==void 0&&$e.contains(we.target)&&(O==null||O())},G=Dee(t),K=y.cloneElement(W,{value:M,className:Se((n=W.props)===null||n===void 0?void 0:n.className,!G&&(A==null?void 0:A.variant))||null}),Y=y.useRef(null);if(ee.useImperativeHandle(e,function(){return{nativeElement:Y.current||j.current}}),G){var ne=null;if(E){var ae=!S&&!x&&M,Q="".concat(u,"-clear-icon"),se=Ht(E)==="object"&&E!==null&&E!==void 0&&E.clearIcon?E.clearIcon:"✖";ne=ee.createElement("button",{type:"button",tabIndex:-1,onClick:function(we){T==null||T(we),L==null||L()},onMouseDown:function(we){return we.preventDefault()},className:Se(Q,te(te({},"".concat(Q,"-hidden"),!ae),"".concat(Q,"-has-suffix"),!!f))},se)}var de="".concat(u,"-affix-wrapper"),xe=Se(de,te(te(te(te(te({},"".concat(u,"-disabled"),S),"".concat(de,"-disabled"),S),"".concat(de,"-focused"),w),"".concat(de,"-readonly"),x),"".concat(de,"-input-with-clear-btn"),f&&E&&M),N==null?void 0:N.affixWrapper,A==null?void 0:A.affixWrapper,A==null?void 0:A.variant),fe=(f||E)&&ee.createElement("span",{className:Se("".concat(u,"-suffix"),A==null?void 0:A.suffix),style:P==null?void 0:P.suffix},ne,f);K=ee.createElement(q,yt({className:xe,style:P==null?void 0:P.affixWrapper,onClick:V},z==null?void 0:z.affixWrapper,{ref:j}),d&&ee.createElement("span",{className:Se("".concat(u,"-prefix"),A==null?void 0:A.prefix),style:P==null?void 0:P.prefix},d),K,fe)}if(Aee(t)){var Me="".concat(u,"-group"),ze="".concat(Me,"-addon"),Oe="".concat(Me,"-wrapper"),he=Se("".concat(u,"-wrapper"),Me,N==null?void 0:N.wrapper,A==null?void 0:A.wrapper),De=Se(Oe,te({},"".concat(Oe,"-disabled"),S),N==null?void 0:N.group,A==null?void 0:A.groupWrapper);K=ee.createElement(H,{className:De,ref:Y},ee.createElement(J,{className:he},m&&ee.createElement(_,{className:ze},m),K,p&&ee.createElement(_,{className:ze},p)))}return ee.cloneElement(K,{className:Se((r=K.props)===null||r===void 0?void 0:r.className,g)||null,style:re(re({},(o=K.props)===null||o===void 0?void 0:o.style),b),hidden:$})}),Iee=["show"];function dj(t,e){return y.useMemo(function(){var n={};e&&(n.show=Ht(e)==="object"&&e.formatter?e.formatter:!!e),n=re(re({},n),t);var r=n,o=r.show,l=an(r,Iee);return re(re({},l),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:l.strategy||function(s){return s.length}})},[t,e])}var kee=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Pee=y.forwardRef(function(t,e){var n=t.autoComplete,r=t.onChange,o=t.onFocus,l=t.onBlur,s=t.onPressEnter,u=t.onKeyDown,d=t.onKeyUp,f=t.prefixCls,m=f===void 0?"rc-input":f,p=t.disabled,g=t.htmlSize,b=t.className,S=t.maxLength,x=t.suffix,w=t.showCount,O=t.count,E=t.type,M=E===void 0?"text":E,T=t.classes,$=t.classNames,N=t.styles,A=t.onCompositionStart,z=t.onCompositionEnd,P=an(t,kee),B=y.useState(!1),L=Re(B,2),W=L[0],q=L[1],H=y.useRef(!1),J=y.useRef(!1),_=y.useRef(null),j=y.useRef(null),V=function(ge){_.current&&mE(_.current,ge)},G=vr(t.defaultValue,{value:t.value}),K=Re(G,2),Y=K[0],ne=K[1],ae=Y==null?"":String(Y),Q=y.useState(null),se=Re(Q,2),de=se[0],xe=se[1],fe=dj(O,w),Me=fe.max||S,ze=fe.strategy(ae),Oe=!!Me&&ze>Me;y.useImperativeHandle(e,function(){var oe;return{focus:V,blur:function(){var Ue;(Ue=_.current)===null||Ue===void 0||Ue.blur()},setSelectionRange:function(Ue,Fe,Te){var _e;(_e=_.current)===null||_e===void 0||_e.setSelectionRange(Ue,Fe,Te)},select:function(){var Ue;(Ue=_.current)===null||Ue===void 0||Ue.select()},input:_.current,nativeElement:((oe=j.current)===null||oe===void 0?void 0:oe.nativeElement)||_.current}}),y.useEffect(function(){J.current&&(J.current=!1),q(function(oe){return oe&&p?!1:oe})},[p]);var he=function(ge,Ue,Fe){var Te=Ue;if(!H.current&&fe.exceedFormatter&&fe.max&&fe.strategy(Ue)>fe.max){if(Te=fe.exceedFormatter(Ue,{max:fe.max}),Ue!==Te){var _e,it;xe([((_e=_.current)===null||_e===void 0?void 0:_e.selectionStart)||0,((it=_.current)===null||it===void 0?void 0:it.selectionEnd)||0])}}else if(Fe.source==="compositionEnd")return;ne(Te),_.current&&Bv(_.current,ge,r,Te)};y.useEffect(function(){if(de){var oe;(oe=_.current)===null||oe===void 0||oe.setSelectionRange.apply(oe,ht(de))}},[de]);var De=function(ge){he(ge,ge.target.value,{source:"change"})},pe=function(ge){H.current=!1,he(ge,ge.currentTarget.value,{source:"compositionEnd"}),z==null||z(ge)},we=function(ge){s&&ge.key==="Enter"&&!J.current&&(J.current=!0,s(ge)),u==null||u(ge)},$e=function(ge){ge.key==="Enter"&&(J.current=!1),d==null||d(ge)},Pe=function(ge){q(!0),o==null||o(ge)},Ze=function(ge){J.current&&(J.current=!1),q(!1),l==null||l(ge)},We=function(ge){ne(""),V(),_.current&&Bv(_.current,ge,r)},ut=Oe&&"".concat(m,"-out-of-range"),I=function(){var ge=Hr(t,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return ee.createElement("input",yt({autoComplete:n},ge,{onChange:De,onFocus:Pe,onBlur:Ze,onKeyDown:we,onKeyUp:$e,className:Se(m,te({},"".concat(m,"-disabled"),p),$==null?void 0:$.input),style:N==null?void 0:N.input,ref:_,size:g,type:M,onCompositionStart:function(Fe){H.current=!0,A==null||A(Fe)},onCompositionEnd:pe}))},me=function(){var ge=Number(Me)>0;if(x||fe.show){var Ue=fe.showFormatter?fe.showFormatter({value:ae,count:ze,maxLength:Me}):"".concat(ze).concat(ge?" / ".concat(Me):"");return ee.createElement(ee.Fragment,null,fe.show&&ee.createElement("span",{className:Se("".concat(m,"-show-count-suffix"),te({},"".concat(m,"-show-count-has-suffix"),!!x),$==null?void 0:$.count),style:re({},N==null?void 0:N.count)},Ue),x)}return null};return ee.createElement(pE,yt({},P,{prefixCls:m,className:Se(b,ut),handleReset:We,value:ae,focused:W,triggerFocus:V,suffix:me(),disabled:p,classes:T,classNames:$,styles:N}),I())});function zee(t,e){return typeof Proxy<"u"&&t?new Proxy(t,{get:function(r,o){if(e[o])return e[o];var l=r[o];return typeof l=="function"?l.bind(r):l}}):t}function _ee(t,e){var n=y.useRef(null);function r(){try{var l=t.selectionStart,s=t.selectionEnd,u=t.value,d=u.substring(0,l),f=u.substring(s);n.current={start:l,end:s,value:u,beforeTxt:d,afterTxt:f}}catch{}}function o(){if(t&&n.current&&e)try{var l=t.value,s=n.current,u=s.beforeTxt,d=s.afterTxt,f=s.start,m=l.length;if(l.startsWith(u))m=u.length;else if(l.endsWith(d))m=l.length-n.current.afterTxt.length;else{var p=u[f-1],g=l.indexOf(p,f-1);g!==-1&&(m=g+1)}t.setSelectionRange(m,m)}catch(b){rn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(b.message))}}return[r,o]}var Bee=function(){var e=y.useState(!1),n=Re(e,2),r=n[0],o=n[1];return Gn(function(){o(Fw())},[]),r},Hee=200,jee=600;function Lee(t){var e=t.prefixCls,n=t.upNode,r=t.downNode,o=t.upDisabled,l=t.downDisabled,s=t.onStep,u=y.useRef(),d=y.useRef([]),f=y.useRef();f.current=s;var m=function(){clearTimeout(u.current)},p=function(M,T){M.preventDefault(),m(),f.current(T);function $(){f.current(T),u.current=setTimeout($,Hee)}u.current=setTimeout($,jee)};y.useEffect(function(){return function(){m(),d.current.forEach(function(E){return Mn.cancel(E)})}},[]);var g=Bee();if(g)return null;var b="".concat(e,"-handler"),S=Se(b,"".concat(b,"-up"),te({},"".concat(b,"-up-disabled"),o)),x=Se(b,"".concat(b,"-down"),te({},"".concat(b,"-down-disabled"),l)),w=function(){return d.current.push(Mn(m))},O={unselectable:"on",role:"button",onMouseUp:w,onMouseLeave:w};return y.createElement("div",{className:"".concat(b,"-wrap")},y.createElement("span",yt({},O,{onMouseDown:function(M){p(M,!0)},"aria-label":"Increase Value","aria-disabled":o,className:S}),n||y.createElement("span",{unselectable:"on",className:"".concat(e,"-handler-up-inner")})),y.createElement("span",yt({},O,{onMouseDown:function(M){p(M,!1)},"aria-label":"Decrease Value","aria-disabled":l,className:x}),r||y.createElement("span",{unselectable:"on",className:"".concat(e,"-handler-down-inner")})))}function zI(t){var e=typeof t=="number"?Ay(t):Hc(t).fullStr,n=e.includes(".");return n?Hc(e.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:t+"0"}const Vee=function(){var t=y.useRef(0),e=function(){Mn.cancel(t.current)};return y.useEffect(function(){return e},[]),function(n){e(),t.current=Mn(function(){n()})}};var Fee=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],Uee=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],_I=function(e,n){return e||n.isEmpty()?n.toString():n.toNumber()},BI=function(e){var n=Gi(e);return n.isInvalidate()?null:n},Wee=y.forwardRef(function(t,e){var n=t.prefixCls,r=t.className,o=t.style,l=t.min,s=t.max,u=t.step,d=u===void 0?1:u,f=t.defaultValue,m=t.value,p=t.disabled,g=t.readOnly,b=t.upHandler,S=t.downHandler,x=t.keyboard,w=t.changeOnWheel,O=w===void 0?!1:w,E=t.controls,M=E===void 0?!0:E;t.classNames;var T=t.stringMode,$=t.parser,N=t.formatter,A=t.precision,z=t.decimalSeparator,P=t.onChange,B=t.onInput,L=t.onPressEnter,W=t.onStep,q=t.changeOnBlur,H=q===void 0?!0:q,J=t.domRef,_=an(t,Fee),j="".concat(n,"-input"),V=y.useRef(null),G=y.useState(!1),K=Re(G,2),Y=K[0],ne=K[1],ae=y.useRef(!1),Q=y.useRef(!1),se=y.useRef(!1),de=y.useState(function(){return Gi(m??f)}),xe=Re(de,2),fe=xe[0],Me=xe[1];function ze(Rt){m===void 0&&Me(Rt)}var Oe=y.useCallback(function(Rt,bt){if(!bt)return A>=0?A:Math.max(Ic(Rt),Ic(d))},[A,d]),he=y.useCallback(function(Rt){var bt=String(Rt);if($)return $(bt);var kt=bt;return z&&(kt=kt.replace(z,".")),kt.replace(/[^\w.-]+/g,"")},[$,z]),De=y.useRef(""),pe=y.useCallback(function(Rt,bt){if(N)return N(Rt,{userTyping:bt,input:String(De.current)});var kt=typeof Rt=="number"?Ay(Rt):Rt;if(!bt){var Dt=Oe(kt,bt);if(hE(kt)&&(z||Dt>=0)){var jt=z||".";kt=tv(kt,jt,Dt)}}return kt},[N,Oe,z]),we=y.useState(function(){var Rt=f??m;return fe.isInvalidate()&&["string","number"].includes(Ht(Rt))?Number.isNaN(Rt)?"":Rt:pe(fe.toString(),!1)}),$e=Re(we,2),Pe=$e[0],Ze=$e[1];De.current=Pe;function We(Rt,bt){Ze(pe(Rt.isInvalidate()?Rt.toString(!1):Rt.toString(!bt),bt))}var ut=y.useMemo(function(){return BI(s)},[s,A]),I=y.useMemo(function(){return BI(l)},[l,A]),me=y.useMemo(function(){return!ut||!fe||fe.isInvalidate()?!1:ut.lessEquals(fe)},[ut,fe]),oe=y.useMemo(function(){return!I||!fe||fe.isInvalidate()?!1:fe.lessEquals(I)},[I,fe]),ge=_ee(V.current,Y),Ue=Re(ge,2),Fe=Ue[0],Te=Ue[1],_e=function(bt){return ut&&!bt.lessEquals(ut)?ut:I&&!I.lessEquals(bt)?I:null},it=function(bt){return!_e(bt)},Xe=function(bt,kt){var Dt=bt,jt=it(Dt)||Dt.isEmpty();if(!Dt.isEmpty()&&!kt&&(Dt=_e(Dt)||Dt,jt=!0),!g&&!p&&jt){var wt=Dt.toString(),lt=Oe(wt,kt);return lt>=0&&(Dt=Gi(tv(wt,".",lt)),it(Dt)||(Dt=Gi(tv(wt,".",lt,!0)))),Dt.equals(fe)||(ze(Dt),P==null||P(Dt.isEmpty()?null:_I(T,Dt)),m===void 0&&We(Dt,kt)),Dt}return fe},dt=Vee(),vt=function Rt(bt){if(Fe(),De.current=bt,Ze(bt),!Q.current){var kt=he(bt),Dt=Gi(kt);Dt.isNaN()||Xe(Dt,!0)}B==null||B(bt),dt(function(){var jt=bt;$||(jt=bt.replace(/。/g,".")),jt!==bt&&Rt(jt)})},et=function(){Q.current=!0},st=function(){Q.current=!1,vt(V.current.value)},at=function(bt){vt(bt.target.value)},Ct=function(bt){var kt;if(!(bt&&me||!bt&&oe)){ae.current=!1;var Dt=Gi(se.current?zI(d):d);bt||(Dt=Dt.negate());var jt=(fe||Gi(0)).add(Dt.toString()),wt=Xe(jt,!1);W==null||W(_I(T,wt),{offset:se.current?zI(d):d,type:bt?"up":"down"}),(kt=V.current)===null||kt===void 0||kt.focus()}},$t=function(bt){var kt=Gi(he(Pe)),Dt;kt.isNaN()?Dt=Xe(fe,bt):Dt=Xe(kt,bt),m!==void 0?We(fe,!1):Dt.isNaN()||We(Dt,!1)},Ut=function(){ae.current=!0},sn=function(bt){var kt=bt.key,Dt=bt.shiftKey;ae.current=!0,se.current=Dt,kt==="Enter"&&(Q.current||(ae.current=!1),$t(!1),L==null||L(bt)),x!==!1&&!Q.current&&["Up","ArrowUp","Down","ArrowDown"].includes(kt)&&(Ct(kt==="Up"||kt==="ArrowUp"),bt.preventDefault())},un=function(){ae.current=!1,se.current=!1};y.useEffect(function(){if(O&&Y){var Rt=function(Dt){Ct(Dt.deltaY<0),Dt.preventDefault()},bt=V.current;if(bt)return bt.addEventListener("wheel",Rt,{passive:!1}),function(){return bt.removeEventListener("wheel",Rt)}}});var kn=function(){H&&$t(!1),ne(!1),ae.current=!1};return Ih(function(){fe.isInvalidate()||We(fe,!1)},[A,N]),Ih(function(){var Rt=Gi(m);Me(Rt);var bt=Gi(he(Pe));(!Rt.equals(bt)||!ae.current||N)&&We(Rt,ae.current)},[m]),Ih(function(){N&&Te()},[Pe]),y.createElement("div",{ref:J,className:Se(n,r,te(te(te(te(te({},"".concat(n,"-focused"),Y),"".concat(n,"-disabled"),p),"".concat(n,"-readonly"),g),"".concat(n,"-not-a-number"),fe.isNaN()),"".concat(n,"-out-of-range"),!fe.isInvalidate()&&!it(fe))),style:o,onFocus:function(){ne(!0)},onBlur:kn,onKeyDown:sn,onKeyUp:un,onCompositionStart:et,onCompositionEnd:st,onBeforeInput:Ut},M&&y.createElement(Lee,{prefixCls:n,upNode:b,downNode:S,upDisabled:me,downDisabled:oe,onStep:Ct}),y.createElement("div",{className:"".concat(j,"-wrap")},y.createElement("input",yt({autoComplete:"off",role:"spinbutton","aria-valuemin":l,"aria-valuemax":s,"aria-valuenow":fe.isInvalidate()?null:fe.toString(),step:d},_,{ref:Fo(V,e),className:j,value:Pe,onChange:at,disabled:p,readOnly:g}))))}),fj=y.forwardRef(function(t,e){var n=t.disabled,r=t.style,o=t.prefixCls,l=o===void 0?"rc-input-number":o,s=t.value,u=t.prefix,d=t.suffix,f=t.addonBefore,m=t.addonAfter,p=t.className,g=t.classNames,b=an(t,Uee),S=y.useRef(null),x=y.useRef(null),w=y.useRef(null),O=function(M){w.current&&mE(w.current,M)};return y.useImperativeHandle(e,function(){return zee(w.current,{focus:O,nativeElement:S.current.nativeElement||x.current})}),y.createElement(pE,{className:p,triggerFocus:O,prefixCls:l,value:s,disabled:n,style:r,prefix:u,suffix:d,addonAfter:m,addonBefore:f,classNames:g,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:S},y.createElement(Wee,yt({prefixCls:l,disabled:n,ref:w,domRef:x,className:g==null?void 0:g.input},b)))});fj.displayName="InputNumber";const qee=t=>{var e;const n=(e=t.handleVisible)!==null&&e!==void 0?e:"auto",r=t.controlHeightSM-t.lineWidth*2;return Object.assign(Object.assign({},Tm(t)),{controlWidth:90,handleWidth:r,handleFontSize:t.fontSize/2,handleVisible:n,handleActiveBg:t.colorFillAlter,handleBg:t.colorBgContainer,filledHandleBg:new zn(t.colorFillSecondary).onBackground(t.colorBgContainer).toHexString(),handleHoverColor:t.colorPrimary,handleBorderColor:t.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},HI=(t,e)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=t;const l=e==="lg"?o:r;return{[`&-${e}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:l,borderEndEndRadius:l},[`${n}-handler-up`]:{borderStartEndRadius:l},[`${n}-handler-down`]:{borderEndEndRadius:l}}}},Gee=t=>{const{componentCls:e,lineWidth:n,lineType:r,borderRadius:o,inputFontSizeSM:l,inputFontSizeLG:s,controlHeightLG:u,controlHeightSM:d,colorError:f,paddingInlineSM:m,paddingBlockSM:p,paddingBlockLG:g,paddingInlineLG:b,colorTextDescription:S,motionDurationMid:x,handleHoverColor:w,handleOpacity:O,paddingInline:E,paddingBlock:M,handleBg:T,handleActiveBg:$,colorTextDisabled:N,borderRadiusSM:A,borderRadiusLG:z,controlWidth:P,handleBorderColor:B,filledHandleBg:L,lineHeightLG:W,calc:q}=t;return[{[e]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ao(t)),Ny(t)),{display:"inline-block",width:P,margin:0,padding:0,borderRadius:o}),jH(t,{[`${e}-handler-wrap`]:{background:T,[`${e}-handler-down`]:{borderBlockStart:`${Ee(n)} ${r} ${B}`}}})),UH(t,{[`${e}-handler-wrap`]:{background:L,[`${e}-handler-down`]:{borderBlockStart:`${Ee(n)} ${r} ${B}`}},"&:focus-within":{[`${e}-handler-wrap`]:{background:T}}})),GH(t,{[`${e}-handler-wrap`]:{background:T,[`${e}-handler-down`]:{borderBlockStart:`${Ee(n)} ${r} ${B}`}}})),VH(t)),{"&-rtl":{direction:"rtl",[`${e}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:s,lineHeight:W,borderRadius:z,[`input${e}-input`]:{height:q(u).sub(q(n).mul(2)).equal(),padding:`${Ee(g)} ${Ee(b)}`}},"&-sm":{padding:0,fontSize:l,borderRadius:A,[`input${e}-input`]:{height:q(d).sub(q(n).mul(2)).equal(),padding:`${Ee(p)} ${Ee(m)}`}},"&-out-of-range":{[`${e}-input-wrap`]:{input:{color:f}}},"&-group":Object.assign(Object.assign(Object.assign({},ao(t)),QH(t)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${e}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${e}-group-addon`]:{borderRadius:z,fontSize:t.fontSizeLG}},"&-sm":{[`${e}-group-addon`]:{borderRadius:A}}},LH(t)),WH(t)),{[`&:not(${e}-compact-first-item):not(${e}-compact-last-item)${e}-compact-item`]:{[`${e}, ${e}-group-addon`]:{borderRadius:0}},[`&:not(${e}-compact-last-item)${e}-compact-first-item`]:{[`${e}, ${e}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${e}-compact-first-item)${e}-compact-last-item`]:{[`${e}, ${e}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${e}-input`]:{cursor:"not-allowed"},[e]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},ao(t)),{width:"100%",padding:`${Ee(M)} ${Ee(E)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${x} linear`,appearance:"textfield",fontSize:"inherit"}),KH(t.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${e}-handler-wrap, &-focused ${e}-handler-wrap`]:{width:t.handleWidth,opacity:1}})},{[e]:Object.assign(Object.assign(Object.assign({[`${e}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:t.handleVisibleWidth,opacity:O,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${x}`,overflow:"hidden",[`${e}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
656
- ${e}-handler-up-inner,
657
- ${e}-handler-down-inner
658
- `]:{marginInlineEnd:0,fontSize:t.handleFontSize}}},[`${e}-handler`]:{height:"50%",overflow:"hidden",color:S,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Ee(n)} ${r} ${B}`,transition:`all ${x} linear`,"&:active":{background:$},"&:hover":{height:"60%",[`
659
- ${e}-handler-up-inner,
660
- ${e}-handler-down-inner
661
- `]:{color:w}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},eu()),{color:S,transition:`all ${x} linear`,userSelect:"none"})},[`${e}-handler-up`]:{borderStartEndRadius:o},[`${e}-handler-down`]:{borderEndEndRadius:o}},HI(t,"lg")),HI(t,"sm")),{"&-disabled, &-readonly":{[`${e}-handler-wrap`]:{display:"none"},[`${e}-input`]:{color:"inherit"}},[`
662
- ${e}-handler-up-disabled,
663
- ${e}-handler-down-disabled
664
- `]:{cursor:"not-allowed"},[`
665
- ${e}-handler-up-disabled:hover &-handler-up-inner,
666
- ${e}-handler-down-disabled:hover &-handler-down-inner
667
- `]:{color:N}})}]},Kee=t=>{const{componentCls:e,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:l,borderRadiusLG:s,borderRadiusSM:u,paddingInlineLG:d,paddingInlineSM:f,paddingBlockLG:m,paddingBlockSM:p,motionDurationMid:g}=t;return{[`${e}-affix-wrapper`]:Object.assign(Object.assign({[`input${e}-input`]:{padding:`${Ee(n)} 0`}},Ny(t)),{position:"relative",display:"inline-flex",alignItems:"center",width:l,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:s,paddingInlineStart:d,[`input${e}-input`]:{padding:`${Ee(m)} 0`}},"&-sm":{borderRadius:u,paddingInlineStart:f,[`input${e}-input`]:{padding:`${Ee(p)} 0`}},[`&:not(${e}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${e}-disabled`]:{background:"transparent"},[`> div${e}`]:{width:"100%",border:"none",outline:"none",[`&${e}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${e}-handler-wrap`]:{zIndex:2},[e]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:o,transition:`margin ${g}`}},[`&:hover ${e}-handler-wrap, &-focused ${e}-handler-wrap`]:{width:t.handleWidth,opacity:1},[`&:not(${e}-affix-wrapper-without-controls):hover ${e}-suffix`]:{marginInlineEnd:t.calc(t.handleWidth).add(r).equal()}})}},Yee=pr("InputNumber",t=>{const e=In(t,Rm(t));return[Gee(e),Kee(e),gm(e)]},qee,{unitless:{handleOpacity:!0}});var Xee=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};const hj=y.forwardRef((t,e)=>{{const fe=rr("InputNumber");fe.deprecated(!("bordered"in t),"bordered","variant"),fe(!(t.type==="number"&&t.changeOnWheel),"usage","When `type=number` is used together with `changeOnWheel`, changeOnWheel may not work properly. Please delete `type=number` if it is not necessary.")}const{getPrefixCls:n,direction:r}=y.useContext(Tn),o=y.useRef(null);y.useImperativeHandle(e,()=>o.current);const{className:l,rootClassName:s,size:u,disabled:d,prefixCls:f,addonBefore:m,addonAfter:p,prefix:g,suffix:b,bordered:S,readOnly:x,status:w,controls:O,variant:E}=t,M=Xee(t,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),T=n("input-number",f),$=El(T),[N,A,z]=Yee(T,$),{compactSize:P,compactItemClassnames:B}=Ds(T,r);let L=y.createElement(cj,{className:`${T}-handler-up-inner`}),W=y.createElement(Qw,{className:`${T}-handler-down-inner`});const q=typeof O=="boolean"?O:void 0;typeof O=="object"&&(L=typeof O.upIcon>"u"?L:y.createElement("span",{className:`${T}-handler-up-inner`},O.upIcon),W=typeof O.downIcon>"u"?W:y.createElement("span",{className:`${T}-handler-down-inner`},O.downIcon));const{hasFeedback:H,status:J,isFormItemInput:_,feedbackIcon:j}=y.useContext(zi),V=xm(J,w),G=ra(fe=>{var Me;return(Me=u??P)!==null&&Me!==void 0?Me:fe}),K=y.useContext(ea),Y=d??K,[ne,ae]=Oy("inputNumber",E,S),Q=H&&y.createElement(y.Fragment,null,j),se=Se({[`${T}-lg`]:G==="large",[`${T}-sm`]:G==="small",[`${T}-rtl`]:r==="rtl",[`${T}-in-form-item`]:_},A),de=`${T}-group`,xe=y.createElement(fj,Object.assign({ref:o,disabled:Y,className:Se(z,$,l,s,B),upHandler:L,downHandler:W,prefixCls:T,readOnly:x,controls:q,prefix:g,suffix:Q||b,addonBefore:m&&y.createElement(Es,{form:!0,space:!0},m),addonAfter:p&&y.createElement(Es,{form:!0,space:!0},p),classNames:{input:se,variant:Se({[`${T}-${ne}`]:ae},Yc(T,V,H)),affixWrapper:Se({[`${T}-affix-wrapper-sm`]:G==="small",[`${T}-affix-wrapper-lg`]:G==="large",[`${T}-affix-wrapper-rtl`]:r==="rtl",[`${T}-affix-wrapper-without-controls`]:O===!1||Y},A),wrapper:Se({[`${de}-rtl`]:r==="rtl"},A),groupWrapper:Se({[`${T}-group-wrapper-sm`]:G==="small",[`${T}-group-wrapper-lg`]:G==="large",[`${T}-group-wrapper-rtl`]:r==="rtl",[`${T}-group-wrapper-${ne}`]:ae},Yc(`${T}-group-wrapper`,V,H),A)}},M));return N(xe)}),gE=hj,Qee=t=>y.createElement(za,{theme:{components:{InputNumber:{handleVisible:!0}}}},y.createElement(hj,Object.assign({},t)));gE.displayName="InputNumber";gE._InternalPanelDoNotUseOrYouWillBeFired=Qee;const jc=t=>{let{prefixCls:e,min:n=0,max:r=100,value:o,onChange:l,className:s,formatter:u}=t;const d=`${e}-steppers`,[f,m]=y.useState(o);return y.useEffect(()=>{Number.isNaN(o)||m(o)},[o]),ee.createElement(gE,{className:Se(d,s),min:n,max:r,value:f,formatter:u,size:"small",onChange:p=>{o||m(p||0),l==null||l(p)}})},Zee=t=>{let{prefixCls:e,value:n,onChange:r}=t;const o=`${e}-alpha-input`,[l,s]=y.useState(bo(n||"#000"));y.useEffect(()=>{n&&s(n)},[n]);const u=d=>{const f=l.toHsb();f.a=(d||0)/100;const m=bo(f);n||s(m),r==null||r(m)};return ee.createElement(jc,{value:_w(l),prefixCls:e,formatter:d=>`${d}%`,className:o,onChange:u})},mj=t=>{let e;return typeof t=="object"&&(t!=null&&t.clearIcon)?e=t:t&&(e={clearIcon:ee.createElement(cy,null)}),e};function pj(t,e){const n=y.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,l,s,u;!((o=t.current)===null||o===void 0)&&o.input&&((l=t.current)===null||l===void 0?void 0:l.input.getAttribute("type"))==="password"&&(!((s=t.current)===null||s===void 0)&&s.input.hasAttribute("value"))&&((u=t.current)===null||u===void 0||u.input.removeAttribute("value"))}))};return y.useEffect(()=>(e&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function Jee(t){return!!(t.prefix||t.suffix||t.allowClear||t.showCount)}var ete=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};const qd=y.forwardRef((t,e)=>{const{prefixCls:n,bordered:r=!0,status:o,size:l,disabled:s,onBlur:u,onFocus:d,suffix:f,allowClear:m,addonAfter:p,addonBefore:g,className:b,style:S,styles:x,rootClassName:w,onChange:O,classNames:E,variant:M}=t,T=ete(t,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);{const{deprecated:We}=rr("Input");We(!("bordered"in t),"bordered","variant")}const{getPrefixCls:$,direction:N,allowClear:A,autoComplete:z,className:P,style:B,classNames:L,styles:W}=di("input"),q=$("input",n),H=y.useRef(null),J=El(q),[_,j,V]=ZH(q,w),[G]=JH(q,J),{compactSize:K,compactItemClassnames:Y}=Ds(q,N),ne=ra(We=>{var ut;return(ut=l??K)!==null&&ut!==void 0?ut:We}),ae=ee.useContext(ea),Q=s??ae,{status:se,hasFeedback:de,feedbackIcon:xe}=y.useContext(zi),fe=xm(se,o),Me=Jee(t)||!!de,ze=y.useRef(Me);{const We=rr("Input");y.useEffect(()=>{var ut;Me&&!ze.current&&We(document.activeElement===((ut=H.current)===null||ut===void 0?void 0:ut.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),ze.current=Me},[Me])}const Oe=pj(H,!0),he=We=>{Oe(),u==null||u(We)},De=We=>{Oe(),d==null||d(We)},pe=We=>{Oe(),O==null||O(We)},we=(de||f)&&ee.createElement(ee.Fragment,null,f,de&&xe),$e=mj(m??A),[Pe,Ze]=Oy("input",M,r);return _(G(ee.createElement(Pee,Object.assign({ref:Fo(e,H),prefixCls:q,autoComplete:z},T,{disabled:Q,onBlur:he,onFocus:De,style:Object.assign(Object.assign({},B),S),styles:Object.assign(Object.assign({},W),x),suffix:we,allowClear:$e,className:Se(b,w,V,J,Y,P),onChange:pe,addonBefore:g&&ee.createElement(Es,{form:!0,space:!0},g),addonAfter:p&&ee.createElement(Es,{form:!0,space:!0},p),classNames:Object.assign(Object.assign(Object.assign({},E),L),{input:Se({[`${q}-sm`]:ne==="small",[`${q}-lg`]:ne==="large",[`${q}-rtl`]:N==="rtl"},E==null?void 0:E.input,L.input,j),variant:Se({[`${q}-${Pe}`]:Ze},Yc(q,fe)),affixWrapper:Se({[`${q}-affix-wrapper-sm`]:ne==="small",[`${q}-affix-wrapper-lg`]:ne==="large",[`${q}-affix-wrapper-rtl`]:N==="rtl"},j),wrapper:Se({[`${q}-group-rtl`]:N==="rtl"},j),groupWrapper:Se({[`${q}-group-wrapper-sm`]:ne==="small",[`${q}-group-wrapper-lg`]:ne==="large",[`${q}-group-wrapper-rtl`]:N==="rtl",[`${q}-group-wrapper-${Pe}`]:Ze},Yc(`${q}-group-wrapper`,fe,de),j)})}))))});qd.displayName="Input";const tte=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,nte=t=>tte.test(`#${t}`),rte=t=>{let{prefixCls:e,value:n,onChange:r}=t;const o=`${e}-hex-input`,[l,s]=y.useState(()=>n?Rh(n.toHexString()):void 0);y.useEffect(()=>{n&&s(Rh(n.toHexString()))},[n]);const u=d=>{const f=d.target.value;s(Rh(f)),nte(Rh(f,!0))&&(r==null||r(bo(f)))};return ee.createElement(qd,{className:o,value:l,prefix:"#",onChange:u,size:"small"})},ote=t=>{let{prefixCls:e,value:n,onChange:r}=t;const o=`${e}-hsb-input`,[l,s]=y.useState(bo(n||"#000"));y.useEffect(()=>{n&&s(n)},[n]);const u=(d,f)=>{const m=l.toHsb();m[f]=f==="h"?d:(d||0)/100;const p=bo(m);n||s(p),r==null||r(p)};return ee.createElement("div",{className:o},ee.createElement(jc,{max:360,min:0,value:Number(l.toHsb().h),prefixCls:e,className:o,formatter:d=>Qg(d||0).toString(),onChange:d=>u(Number(d),"h")}),ee.createElement(jc,{max:100,min:0,value:Number(l.toHsb().s)*100,prefixCls:e,className:o,formatter:d=>`${Qg(d||0)}%`,onChange:d=>u(Number(d),"s")}),ee.createElement(jc,{max:100,min:0,value:Number(l.toHsb().b)*100,prefixCls:e,className:o,formatter:d=>`${Qg(d||0)}%`,onChange:d=>u(Number(d),"b")}))},ite=t=>{let{prefixCls:e,value:n,onChange:r}=t;const o=`${e}-rgb-input`,[l,s]=y.useState(bo(n||"#000"));y.useEffect(()=>{n&&s(n)},[n]);const u=(d,f)=>{const m=l.toRgb();m[f]=d||0;const p=bo(m);n||s(p),r==null||r(p)};return ee.createElement("div",{className:o},ee.createElement(jc,{max:255,min:0,value:Number(l.toRgb().r),prefixCls:e,className:o,onChange:d=>u(Number(d),"r")}),ee.createElement(jc,{max:255,min:0,value:Number(l.toRgb().g),prefixCls:e,className:o,onChange:d=>u(Number(d),"g")}),ee.createElement(jc,{max:255,min:0,value:Number(l.toRgb().b),prefixCls:e,className:o,onChange:d=>u(Number(d),"b")}))},ate=[aj,sj,lj].map(t=>({value:t,label:t.toUpperCase()})),lte=t=>{const{prefixCls:e,format:n,value:r,disabledAlpha:o,onFormatChange:l,onChange:s,disabledFormat:u}=t,[d,f]=vr(aj,{value:n,onChange:l}),m=`${e}-input`,p=b=>{f(b)},g=y.useMemo(()=>{const b={value:r,prefixCls:e,onChange:s};switch(d){case sj:return ee.createElement(ote,Object.assign({},b));case lj:return ee.createElement(ite,Object.assign({},b));default:return ee.createElement(rte,Object.assign({},b))}},[d,e,r,s]);return ee.createElement("div",{className:`${m}-container`},!u&&ee.createElement(ri,{value:d,variant:"borderless",getPopupContainer:b=>b,popupMatchSelectWidth:68,placement:"bottomRight",onChange:p,className:`${e}-format-select`,size:"small",options:ate}),ee.createElement("div",{className:m},g),!o&&ee.createElement(Zee,{prefixCls:e,value:r,onChange:s}))};function Dx(t,e,n){return(t-e)/(n-e)}function vE(t,e,n,r){var o=Dx(e,n,r),l={};switch(t){case"rtl":l.right="".concat(o*100,"%"),l.transform="translateX(50%)";break;case"btt":l.bottom="".concat(o*100,"%"),l.transform="translateY(50%)";break;case"ttb":l.top="".concat(o*100,"%"),l.transform="translateY(-50%)";break;default:l.left="".concat(o*100,"%"),l.transform="translateX(-50%)";break}return l}function Tc(t,e){return Array.isArray(t)?t[e]:t}var ru=y.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),gj=y.createContext({}),ste=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],Ix=y.forwardRef(function(t,e){var n=t.prefixCls,r=t.value,o=t.valueIndex,l=t.onStartMove,s=t.onDelete,u=t.style,d=t.render,f=t.dragging,m=t.draggingDelete,p=t.onOffsetChange,g=t.onChangeComplete,b=t.onFocus,S=t.onMouseEnter,x=an(t,ste),w=y.useContext(ru),O=w.min,E=w.max,M=w.direction,T=w.disabled,$=w.keyboard,N=w.range,A=w.tabIndex,z=w.ariaLabelForHandle,P=w.ariaLabelledByForHandle,B=w.ariaRequired,L=w.ariaValueTextFormatterForHandle,W=w.styles,q=w.classNames,H="".concat(n,"-handle"),J=function(se){T||l(se,o)},_=function(se){b==null||b(se,o)},j=function(se){S(se,o)},V=function(se){if(!T&&$){var de=null;switch(se.which||se.keyCode){case It.LEFT:de=M==="ltr"||M==="btt"?-1:1;break;case It.RIGHT:de=M==="ltr"||M==="btt"?1:-1;break;case It.UP:de=M!=="ttb"?1:-1;break;case It.DOWN:de=M!=="ttb"?-1:1;break;case It.HOME:de="min";break;case It.END:de="max";break;case It.PAGE_UP:de=2;break;case It.PAGE_DOWN:de=-2;break;case It.BACKSPACE:case It.DELETE:s(o);break}de!==null&&(se.preventDefault(),p(de,o))}},G=function(se){switch(se.which||se.keyCode){case It.LEFT:case It.RIGHT:case It.UP:case It.DOWN:case It.HOME:case It.END:case It.PAGE_UP:case It.PAGE_DOWN:g==null||g();break}},K=vE(M,r,O,E),Y={};if(o!==null){var ne;Y={tabIndex:T?null:Tc(A,o),role:"slider","aria-valuemin":O,"aria-valuemax":E,"aria-valuenow":r,"aria-disabled":T,"aria-label":Tc(z,o),"aria-labelledby":Tc(P,o),"aria-required":Tc(B,o),"aria-valuetext":(ne=Tc(L,o))===null||ne===void 0?void 0:ne(r),"aria-orientation":M==="ltr"||M==="rtl"?"horizontal":"vertical",onMouseDown:J,onTouchStart:J,onFocus:_,onMouseEnter:j,onKeyDown:V,onKeyUp:G}}var ae=y.createElement("div",yt({ref:e,className:Se(H,te(te(te({},"".concat(H,"-").concat(o+1),o!==null&&N),"".concat(H,"-dragging"),f),"".concat(H,"-dragging-delete"),m),q.handle),style:re(re(re({},K),u),W.handle)},Y,x));return d&&(ae=d(ae,{index:o,prefixCls:n,value:r,dragging:f,draggingDelete:m})),ae});Ix.displayName="Handle";var cte=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],vj=y.forwardRef(function(t,e){var n=t.prefixCls,r=t.style,o=t.onStartMove,l=t.onOffsetChange,s=t.values,u=t.handleRender,d=t.activeHandleRender,f=t.draggingIndex,m=t.draggingDelete,p=t.onFocus,g=an(t,cte),b=y.useRef({}),S=y.useState(!1),x=Re(S,2),w=x[0],O=x[1],E=y.useState(-1),M=Re(E,2),T=M[0],$=M[1],N=function(L){$(L),O(!0)},A=function(L,W){N(W),p==null||p(L)},z=function(L,W){N(W)};y.useImperativeHandle(e,function(){return{focus:function(L){var W;(W=b.current[L])===null||W===void 0||W.focus()},hideHelp:function(){yl.flushSync(function(){O(!1)})}}});var P=re({prefixCls:n,onStartMove:o,onOffsetChange:l,render:u,onFocus:A,onMouseEnter:z},g);return y.createElement(y.Fragment,null,s.map(function(B,L){var W=f===L;return y.createElement(Ix,yt({ref:function(H){H?b.current[L]=H:delete b.current[L]},dragging:W,draggingDelete:W&&m,style:Tc(r,L),key:L,value:B,valueIndex:L},P))}),d&&w&&y.createElement(Ix,yt({key:"a11y"},P,{value:s[T],valueIndex:null,dragging:f!==-1,draggingDelete:m,render:d,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))});vj.displayName="Handles";var ute=function(e){var n=e.prefixCls,r=e.style,o=e.children,l=e.value,s=e.onClick,u=y.useContext(ru),d=u.min,f=u.max,m=u.direction,p=u.includedStart,g=u.includedEnd,b=u.included,S="".concat(n,"-text"),x=vE(m,l,d,f);return y.createElement("span",{className:Se(S,te({},"".concat(S,"-active"),b&&p<=l&&l<=g)),style:re(re({},x),r),onMouseDown:function(O){O.stopPropagation()},onClick:function(){s(l)}},o)},dte=function(e){var n=e.prefixCls,r=e.marks,o=e.onClick,l="".concat(n,"-mark");return r.length?y.createElement("div",{className:l},r.map(function(s){var u=s.value,d=s.style,f=s.label;return y.createElement(ute,{key:u,prefixCls:l,style:d,value:u,onClick:o},f)})):null},fte=function(e){var n=e.prefixCls,r=e.value,o=e.style,l=e.activeStyle,s=y.useContext(ru),u=s.min,d=s.max,f=s.direction,m=s.included,p=s.includedStart,g=s.includedEnd,b="".concat(n,"-dot"),S=m&&p<=r&&r<=g,x=re(re({},vE(f,r,u,d)),typeof o=="function"?o(r):o);return S&&(x=re(re({},x),typeof l=="function"?l(r):l)),y.createElement("span",{className:Se(b,te({},"".concat(b,"-active"),S)),style:x})},hte=function(e){var n=e.prefixCls,r=e.marks,o=e.dots,l=e.style,s=e.activeStyle,u=y.useContext(ru),d=u.min,f=u.max,m=u.step,p=y.useMemo(function(){var g=new Set;if(r.forEach(function(S){g.add(S.value)}),o&&m!==null)for(var b=d;b<=f;)g.add(b),b+=m;return Array.from(g)},[d,f,m,o,r]);return y.createElement("div",{className:"".concat(n,"-step")},p.map(function(g){return y.createElement(fte,{prefixCls:n,key:g,value:g,style:l,activeStyle:s})}))},jI=function(e){var n=e.prefixCls,r=e.style,o=e.start,l=e.end,s=e.index,u=e.onStartMove,d=e.replaceCls,f=y.useContext(ru),m=f.direction,p=f.min,g=f.max,b=f.disabled,S=f.range,x=f.classNames,w="".concat(n,"-track"),O=Dx(o,p,g),E=Dx(l,p,g),M=function(A){!b&&u&&u(A,-1)},T={};switch(m){case"rtl":T.right="".concat(O*100,"%"),T.width="".concat(E*100-O*100,"%");break;case"btt":T.bottom="".concat(O*100,"%"),T.height="".concat(E*100-O*100,"%");break;case"ttb":T.top="".concat(O*100,"%"),T.height="".concat(E*100-O*100,"%");break;default:T.left="".concat(O*100,"%"),T.width="".concat(E*100-O*100,"%")}var $=d||Se(w,te(te({},"".concat(w,"-").concat(s+1),s!==null&&S),"".concat(n,"-track-draggable"),u),x.track);return y.createElement("div",{className:$,style:re(re({},T),r),onMouseDown:M,onTouchStart:M})},mte=function(e){var n=e.prefixCls,r=e.style,o=e.values,l=e.startPoint,s=e.onStartMove,u=y.useContext(ru),d=u.included,f=u.range,m=u.min,p=u.styles,g=u.classNames,b=y.useMemo(function(){if(!f){if(o.length===0)return[];var x=l??m,w=o[0];return[{start:Math.min(x,w),end:Math.max(x,w)}]}for(var O=[],E=0;E<o.length-1;E+=1)O.push({start:o[E],end:o[E+1]});return O},[o,f,l,m]);if(!d)return null;var S=b!=null&&b.length&&(g.tracks||p.tracks)?y.createElement(jI,{index:null,prefixCls:n,start:b[0].start,end:b[b.length-1].end,replaceCls:Se(g.tracks,"".concat(n,"-tracks")),style:p.tracks}):null;return y.createElement(y.Fragment,null,S,b.map(function(x,w){var O=x.start,E=x.end;return y.createElement(jI,{index:w,prefixCls:n,style:re(re({},Tc(r,w)),p.track),start:O,end:E,key:w,onStartMove:s})}))},pte=130;function LI(t){var e="targetTouches"in t?t.targetTouches[0]:t;return{pageX:e.pageX,pageY:e.pageY}}function gte(t,e,n,r,o,l,s,u,d,f,m){var p=y.useState(null),g=Re(p,2),b=g[0],S=g[1],x=y.useState(-1),w=Re(x,2),O=w[0],E=w[1],M=y.useState(!1),T=Re(M,2),$=T[0],N=T[1],A=y.useState(n),z=Re(A,2),P=z[0],B=z[1],L=y.useState(n),W=Re(L,2),q=W[0],H=W[1],J=y.useRef(null),_=y.useRef(null),j=y.useRef(null),V=y.useContext(gj),G=V.onDragStart,K=V.onDragChange;Gn(function(){O===-1&&B(n)},[n,O]),y.useEffect(function(){return function(){document.removeEventListener("mousemove",J.current),document.removeEventListener("mouseup",_.current),j.current&&(j.current.removeEventListener("touchmove",J.current),j.current.removeEventListener("touchend",_.current))}},[]);var Y=function(de,xe,fe){xe!==void 0&&S(xe),B(de);var Me=de;fe&&(Me=de.filter(function(ze,Oe){return Oe!==O})),s(Me),K&&K({rawValues:de,deleteIndex:fe?O:-1,draggingIndex:O,draggingValue:xe})},ne=Hn(function(se,de,xe){if(se===-1){var fe=q[0],Me=q[q.length-1],ze=r-fe,Oe=o-Me,he=de*(o-r);he=Math.max(he,ze),he=Math.min(he,Oe);var De=l(fe+he);he=De-fe;var pe=q.map(function(Ze){return Ze+he});Y(pe)}else{var we=(o-r)*de,$e=ht(P);$e[se]=q[se];var Pe=d($e,we,se,"dist");Y(Pe.values,Pe.value,xe)}}),ae=function(de,xe,fe){de.stopPropagation();var Me=fe||n,ze=Me[xe];E(xe),S(ze),H(Me),B(Me),N(!1);var Oe=LI(de),he=Oe.pageX,De=Oe.pageY,pe=!1;G&&G({rawValues:Me,draggingIndex:xe,draggingValue:ze});var we=function(Ze){Ze.preventDefault();var We=LI(Ze),ut=We.pageX,I=We.pageY,me=ut-he,oe=I-De,ge=t.current.getBoundingClientRect(),Ue=ge.width,Fe=ge.height,Te,_e;switch(e){case"btt":Te=-oe/Fe,_e=me;break;case"ttb":Te=oe/Fe,_e=me;break;case"rtl":Te=-me/Ue,_e=oe;break;default:Te=me/Ue,_e=oe}pe=f?Math.abs(_e)>pte&&m<P.length:!1,N(pe),ne(xe,Te,pe)},$e=function Pe(Ze){Ze.preventDefault(),document.removeEventListener("mouseup",Pe),document.removeEventListener("mousemove",we),j.current&&(j.current.removeEventListener("touchmove",J.current),j.current.removeEventListener("touchend",_.current)),J.current=null,_.current=null,j.current=null,u(pe),E(-1),N(!1)};document.addEventListener("mouseup",$e),document.addEventListener("mousemove",we),de.currentTarget.addEventListener("touchend",$e),de.currentTarget.addEventListener("touchmove",we),J.current=we,_.current=$e,j.current=de.currentTarget},Q=y.useMemo(function(){var se=ht(n).sort(function(ze,Oe){return ze-Oe}),de=ht(P).sort(function(ze,Oe){return ze-Oe}),xe={};de.forEach(function(ze){xe[ze]=(xe[ze]||0)+1}),se.forEach(function(ze){xe[ze]=(xe[ze]||0)-1});var fe=f?1:0,Me=Object.values(xe).reduce(function(ze,Oe){return ze+Math.abs(Oe)},0);return Me<=fe?P:n},[n,P,f]);return[O,b,$,Q,ae]}function vte(t,e,n,r,o,l){var s=y.useCallback(function(b){return Math.max(t,Math.min(e,b))},[t,e]),u=y.useCallback(function(b){if(n!==null){var S=t+Math.round((s(b)-t)/n)*n,x=function(M){return(String(M).split(".")[1]||"").length},w=Math.max(x(n),x(e),x(t)),O=Number(S.toFixed(w));return t<=O&&O<=e?O:null}return null},[n,t,e,s]),d=y.useCallback(function(b){var S=s(b),x=r.map(function(E){return E.value});n!==null&&x.push(u(b)),x.push(t,e);var w=x[0],O=e-t;return x.forEach(function(E){var M=Math.abs(S-E);M<=O&&(w=E,O=M)}),w},[t,e,r,n,s,u]),f=function b(S,x,w){var O=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof x=="number"){var E,M=S[w],T=M+x,$=[];r.forEach(function(B){$.push(B.value)}),$.push(t,e),$.push(u(M));var N=x>0?1:-1;O==="unit"?$.push(u(M+N*n)):$.push(u(T)),$=$.filter(function(B){return B!==null}).filter(function(B){return x<0?B<=M:B>=M}),O==="unit"&&($=$.filter(function(B){return B!==M}));var A=O==="unit"?M:T;E=$[0];var z=Math.abs(E-A);if($.forEach(function(B){var L=Math.abs(B-A);L<z&&(E=B,z=L)}),E===void 0)return x<0?t:e;if(O==="dist")return E;if(Math.abs(x)>1){var P=ht(S);return P[w]=E,b(P,x-N,w,O)}return E}else{if(x==="min")return t;if(x==="max")return e}},m=function(S,x,w){var O=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",E=S[w],M=f(S,x,w,O);return{value:M,changed:M!==E}},p=function(S){return l===null&&S===0||typeof l=="number"&&S<l},g=function(S,x,w){var O=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",E=S.map(d),M=E[w],T=f(E,x,w,O);if(E[w]=T,o===!1){var $=l||0;w>0&&E[w-1]!==M&&(E[w]=Math.max(E[w],E[w-1]+$)),w<E.length-1&&E[w+1]!==M&&(E[w]=Math.min(E[w],E[w+1]-$))}else if(typeof l=="number"||l===null){for(var N=w+1;N<E.length;N+=1)for(var A=!0;p(E[N]-E[N-1])&&A;){var z=m(E,1,N);E[N]=z.value,A=z.changed}for(var P=w;P>0;P-=1)for(var B=!0;p(E[P]-E[P-1])&&B;){var L=m(E,-1,P-1);E[P-1]=L.value,B=L.changed}for(var W=E.length-1;W>0;W-=1)for(var q=!0;p(E[W]-E[W-1])&&q;){var H=m(E,-1,W-1);E[W-1]=H.value,q=H.changed}for(var J=0;J<E.length-1;J+=1)for(var _=!0;p(E[J+1]-E[J])&&_;){var j=m(E,1,J+1);E[J+1]=j.value,_=j.changed}}return{value:E[w],values:E}};return[d,g]}function yte(t){return y.useMemo(function(){if(t===!0||!t)return[!!t,!1,!1,0];var e=t.editable,n=t.draggableTrack,r=t.minCount,o=t.maxCount;return Aa(!e||!n,"`editable` can not work with `draggableTrack`."),[!0,e,!e&&n,r||0,o]},[t])}var yj=y.forwardRef(function(t,e){var n=t.prefixCls,r=n===void 0?"rc-slider":n,o=t.className,l=t.style,s=t.classNames,u=t.styles,d=t.id,f=t.disabled,m=f===void 0?!1:f,p=t.keyboard,g=p===void 0?!0:p,b=t.autoFocus,S=t.onFocus,x=t.onBlur,w=t.min,O=w===void 0?0:w,E=t.max,M=E===void 0?100:E,T=t.step,$=T===void 0?1:T,N=t.value,A=t.defaultValue,z=t.range,P=t.count,B=t.onChange,L=t.onBeforeChange,W=t.onAfterChange,q=t.onChangeComplete,H=t.allowCross,J=H===void 0?!0:H,_=t.pushable,j=_===void 0?!1:_,V=t.reverse,G=t.vertical,K=t.included,Y=K===void 0?!0:K,ne=t.startPoint,ae=t.trackStyle,Q=t.handleStyle,se=t.railStyle,de=t.dotStyle,xe=t.activeDotStyle,fe=t.marks,Me=t.dots,ze=t.handleRender,Oe=t.activeHandleRender,he=t.track,De=t.tabIndex,pe=De===void 0?0:De,we=t.ariaLabelForHandle,$e=t.ariaLabelledByForHandle,Pe=t.ariaRequired,Ze=t.ariaValueTextFormatterForHandle,We=y.useRef(null),ut=y.useRef(null),I=y.useMemo(function(){return G?V?"ttb":"btt":V?"rtl":"ltr"},[V,G]),me=yte(z),oe=Re(me,5),ge=oe[0],Ue=oe[1],Fe=oe[2],Te=oe[3],_e=oe[4],it=y.useMemo(function(){return isFinite(O)?O:0},[O]),Xe=y.useMemo(function(){return isFinite(M)?M:100},[M]),dt=y.useMemo(function(){return $!==null&&$<=0?1:$},[$]),vt=y.useMemo(function(){return typeof j=="boolean"?j?dt:!1:j>=0?j:!1},[j,dt]),et=y.useMemo(function(){return Object.keys(fe||{}).map(function(xt){var nt=fe[xt],qt={value:Number(xt)};return nt&&Ht(nt)==="object"&&!y.isValidElement(nt)&&("label"in nt||"style"in nt)?(qt.style=nt.style,qt.label=nt.label):qt.label=nt,qt}).filter(function(xt){var nt=xt.label;return nt||typeof nt=="number"}).sort(function(xt,nt){return xt.value-nt.value})},[fe]),st=vte(it,Xe,dt,et,J,vt),at=Re(st,2),Ct=at[0],$t=at[1],Ut=vr(A,{value:N}),sn=Re(Ut,2),un=sn[0],kn=sn[1],Rt=y.useMemo(function(){var xt=un==null?[]:Array.isArray(un)?un:[un],nt=Re(xt,1),qt=nt[0],on=qt===void 0?it:qt,dn=un===null?[]:[on];if(ge){if(dn=ht(xt),P||un===void 0){var Fn=P>=0?P+1:2;for(dn=dn.slice(0,Fn);dn.length<Fn;){var gn;dn.push((gn=dn[dn.length-1])!==null&&gn!==void 0?gn:it)}}dn.sort(function(_n,Dn){return _n-Dn})}return dn.forEach(function(_n,Dn){dn[Dn]=Ct(_n)}),dn},[un,ge,it,P,Ct]),bt=function(nt){return ge?nt:nt[0]},kt=Hn(function(xt){var nt=ht(xt).sort(function(qt,on){return qt-on});B&&!Dd(nt,Rt,!0)&&B(bt(nt)),kn(nt)}),Dt=Hn(function(xt){xt&&We.current.hideHelp();var nt=bt(Rt);W==null||W(nt),rn(!W,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),q==null||q(nt)}),jt=function(nt){if(!(m||!Ue||Rt.length<=Te)){var qt=ht(Rt);qt.splice(nt,1),L==null||L(bt(qt)),kt(qt);var on=Math.max(0,nt-1);We.current.hideHelp(),We.current.focus(on)}},wt=gte(ut,I,Rt,it,Xe,Ct,kt,Dt,$t,Ue,Te),lt=Re(wt,5),St=lt[0],Kt=lt[1],tn=lt[2],Tt=lt[3],gt=lt[4],Nt=function(nt,qt){if(!m){var on=ht(Rt),dn=0,Fn=0,gn=Xe-it;Rt.forEach(function(dr,F){var ie=Math.abs(nt-dr);ie<=gn&&(gn=ie,dn=F),dr<nt&&(Fn=F)});var _n=dn;Ue&&gn!==0&&(!_e||Rt.length<_e)?(on.splice(Fn+1,0,nt),_n=Fn+1):on[dn]=nt,ge&&!Rt.length&&P===void 0&&on.push(nt);var Dn=bt(on);if(L==null||L(Dn),kt(on),qt){var Ln,Jn;(Ln=document.activeElement)===null||Ln===void 0||(Jn=Ln.blur)===null||Jn===void 0||Jn.call(Ln),We.current.focus(_n),gt(qt,_n,on)}else W==null||W(Dn),rn(!W,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),q==null||q(Dn)}},zt=function(nt){nt.preventDefault();var qt=ut.current.getBoundingClientRect(),on=qt.width,dn=qt.height,Fn=qt.left,gn=qt.top,_n=qt.bottom,Dn=qt.right,Ln=nt.clientX,Jn=nt.clientY,dr;switch(I){case"btt":dr=(_n-Jn)/dn;break;case"ttb":dr=(Jn-gn)/dn;break;case"rtl":dr=(Dn-Ln)/on;break;default:dr=(Ln-Fn)/on}var F=it+dr*(Xe-it);Nt(Ct(F),nt)},Et=y.useState(null),D=Re(Et,2),ce=D[0],ke=D[1],Qe=function(nt,qt){if(!m){var on=$t(Rt,nt,qt);L==null||L(bt(Rt)),kt(on.values),ke(on.value)}};y.useEffect(function(){if(ce!==null){var xt=Rt.indexOf(ce);xt>=0&&We.current.focus(xt)}ke(null)},[ce]);var ot=y.useMemo(function(){return Fe&&dt===null?(rn(!1,"`draggableTrack` is not supported when `step` is `null`."),!1):Fe},[Fe,dt]),mt=Hn(function(xt,nt){gt(xt,nt),L==null||L(bt(Rt))}),rt=St!==-1;y.useEffect(function(){if(!rt){var xt=Rt.lastIndexOf(Kt);We.current.focus(xt)}},[rt]);var Wt=y.useMemo(function(){return ht(Tt).sort(function(xt,nt){return xt-nt})},[Tt]),Yt=y.useMemo(function(){return ge?[Wt[0],Wt[Wt.length-1]]:[it,Wt[0]]},[Wt,ge,it]),Xt=Re(Yt,2),cn=Xt[0],ct=Xt[1];y.useImperativeHandle(e,function(){return{focus:function(){We.current.focus(0)},blur:function(){var nt,qt=document,on=qt.activeElement;(nt=ut.current)!==null&&nt!==void 0&&nt.contains(on)&&(on==null||on.blur())}}}),y.useEffect(function(){b&&We.current.focus(0)},[]);var Ot=y.useMemo(function(){return{min:it,max:Xe,direction:I,disabled:m,keyboard:g,step:dt,included:Y,includedStart:cn,includedEnd:ct,range:ge,tabIndex:pe,ariaLabelForHandle:we,ariaLabelledByForHandle:$e,ariaRequired:Pe,ariaValueTextFormatterForHandle:Ze,styles:u||{},classNames:s||{}}},[it,Xe,I,m,g,dt,Y,cn,ct,ge,pe,we,$e,Pe,Ze,u,s]);return y.createElement(ru.Provider,{value:Ot},y.createElement("div",{ref:ut,className:Se(r,o,te(te(te(te({},"".concat(r,"-disabled"),m),"".concat(r,"-vertical"),G),"".concat(r,"-horizontal"),!G),"".concat(r,"-with-marks"),et.length)),style:l,onMouseDown:zt,id:d},y.createElement("div",{className:Se("".concat(r,"-rail"),s==null?void 0:s.rail),style:re(re({},se),u==null?void 0:u.rail)}),he!==!1&&y.createElement(mte,{prefixCls:r,style:ae,values:Rt,startPoint:ne,onStartMove:ot?mt:void 0}),y.createElement(hte,{prefixCls:r,marks:et,dots:Me,style:de,activeStyle:xe}),y.createElement(vj,{ref:We,prefixCls:r,style:Q,values:Tt,draggingIndex:St,draggingDelete:tn,onStartMove:mt,onOffsetChange:Qe,onFocus:S,onBlur:x,handleRender:ze,activeHandleRender:Oe,onChangeComplete:Dt,onDelete:Ue?jt:void 0}),y.createElement(dte,{prefixCls:r,marks:et,onClick:Nt})))});yj.displayName="Slider";const bj=y.createContext({}),kx=y.forwardRef((t,e)=>{const{open:n,draggingDelete:r}=t,o=y.useRef(null),l=n&&!r,s=y.useRef(null);function u(){Mn.cancel(s.current),s.current=null}function d(){s.current=Mn(()=>{var f;(f=o.current)===null||f===void 0||f.forceAlign(),s.current=null})}return y.useEffect(()=>(l?d():u(),u),[l,t.title]),y.createElement(Os,Object.assign({ref:Fo(o,e)},t,{open:l}))});kx.displayName="SliderTooltip";const bte=t=>{const{componentCls:e,antCls:n,controlSize:r,dotSize:o,marginFull:l,marginPart:s,colorFillContentHover:u,handleColorDisabled:d,calc:f,handleSize:m,handleSizeHover:p,handleActiveColor:g,handleActiveOutlineColor:b,handleLineWidth:S,handleLineWidthHover:x,motionDurationMid:w}=t;return{[e]:Object.assign(Object.assign({},ao(t)),{position:"relative",height:r,margin:`${Ee(s)} ${Ee(l)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${Ee(l)} ${Ee(s)}`},[`${e}-rail`]:{position:"absolute",backgroundColor:t.railBg,borderRadius:t.borderRadiusXS,transition:`background-color ${w}`},[`${e}-track,${e}-tracks`]:{position:"absolute",transition:`background-color ${w}`},[`${e}-track`]:{backgroundColor:t.trackBg,borderRadius:t.borderRadiusXS},[`${e}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${e}-rail`]:{backgroundColor:t.railHoverBg},[`${e}-track`]:{backgroundColor:t.trackHoverBg},[`${e}-dot`]:{borderColor:u},[`${e}-handle::after`]:{boxShadow:`0 0 0 ${Ee(S)} ${t.colorPrimaryBorderHover}`},[`${e}-dot-active`]:{borderColor:t.dotActiveBorderColor}},[`${e}-handle`]:{position:"absolute",width:m,height:m,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:f(S).mul(-1).equal(),insetBlockStart:f(S).mul(-1).equal(),width:f(m).add(f(S).mul(2)).equal(),height:f(m).add(f(S).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:m,height:m,backgroundColor:t.colorBgElevated,boxShadow:`0 0 0 ${Ee(S)} ${t.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
668
- inset-inline-start ${w},
669
- inset-block-start ${w},
670
- width ${w},
671
- height ${w},
672
- box-shadow ${w},
673
- outline ${w}
674
- `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:f(p).sub(m).div(2).add(x).mul(-1).equal(),insetBlockStart:f(p).sub(m).div(2).add(x).mul(-1).equal(),width:f(p).add(f(x).mul(2)).equal(),height:f(p).add(f(x).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${Ee(x)} ${g}`,outline:`6px solid ${b}`,width:p,height:p,insetInlineStart:t.calc(m).sub(p).div(2).equal(),insetBlockStart:t.calc(m).sub(p).div(2).equal()}}},[`&-lock ${e}-handle`]:{"&::before, &::after":{transition:"none"}},[`${e}-mark`]:{position:"absolute",fontSize:t.fontSize},[`${e}-mark-text`]:{position:"absolute",display:"inline-block",color:t.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:t.colorText}},[`${e}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${e}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:t.colorBgElevated,border:`${Ee(S)} solid ${t.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${t.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:t.dotActiveBorderColor}},[`&${e}-disabled`]:{cursor:"not-allowed",[`${e}-rail`]:{backgroundColor:`${t.railBg} !important`},[`${e}-track`]:{backgroundColor:`${t.trackBgDisabled} !important`},[`
675
- ${e}-dot
676
- `]:{backgroundColor:t.colorBgElevated,borderColor:t.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${e}-handle::after`]:{backgroundColor:t.colorBgElevated,cursor:"not-allowed",width:m,height:m,boxShadow:`0 0 0 ${Ee(S)} ${d}`,insetInlineStart:0,insetBlockStart:0},[`
677
- ${e}-mark-text,
678
- ${e}-dot
679
- `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},Sj=(t,e)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:l,marginFull:s,calc:u}=t,d=e?"paddingBlock":"paddingInline",f=e?"width":"height",m=e?"height":"width",p=e?"insetBlockStart":"insetInlineStart",g=e?"top":"insetInlineStart",b=u(r).mul(3).sub(o).div(2).equal(),S=u(o).sub(r).div(2).equal(),x=e?{borderWidth:`${Ee(S)} 0`,transform:`translateY(${Ee(u(S).mul(-1).equal())})`}:{borderWidth:`0 ${Ee(S)}`,transform:`translateX(${Ee(t.calc(S).mul(-1).equal())})`};return{[d]:r,[m]:u(r).mul(3).equal(),[`${n}-rail`]:{[f]:"100%",[m]:r},[`${n}-track,${n}-tracks`]:{[m]:r},[`${n}-track-draggable`]:Object.assign({},x),[`${n}-handle`]:{[p]:b},[`${n}-mark`]:{insetInlineStart:0,top:0,[g]:u(r).mul(3).add(e?0:s).equal(),[f]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[g]:r,[f]:"100%",[m]:r},[`${n}-dot`]:{position:"absolute",[p]:u(r).sub(l).div(2).equal()}}},Ste=t=>{const{componentCls:e,marginPartWithMark:n}=t;return{[`${e}-horizontal`]:Object.assign(Object.assign({},Sj(t,!0)),{[`&${e}-with-marks`]:{marginBottom:n}})}},Cte=t=>{const{componentCls:e}=t;return{[`${e}-vertical`]:Object.assign(Object.assign({},Sj(t,!1)),{height:"100%"})}},xte=t=>{const n=t.controlHeightLG/4,r=t.controlHeightSM/2,o=t.lineWidth+1,l=t.lineWidth+1*1.5,s=t.colorPrimary,u=new zn(s).setA(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:o,handleLineWidthHover:l,railBg:t.colorFillTertiary,railHoverBg:t.colorFillSecondary,trackBg:t.colorPrimaryBorder,trackHoverBg:t.colorPrimaryBorderHover,handleColor:t.colorPrimaryBorder,handleActiveColor:s,handleActiveOutlineColor:u,handleColorDisabled:new zn(t.colorTextDisabled).onBackground(t.colorBgContainer).toHexString(),dotBorderColor:t.colorBorderSecondary,dotActiveBorderColor:t.colorPrimaryBorder,trackBgDisabled:t.colorBgContainerDisabled}},wte=pr("Slider",t=>{const e=In(t,{marginPart:t.calc(t.controlHeight).sub(t.controlSize).div(2).equal(),marginFull:t.calc(t.controlSize).div(2).equal(),marginPartWithMark:t.calc(t.controlHeightLG).sub(t.controlSize).equal()});return[bte(e),Ste(e),Cte(e)]},xte);function KC(){const[t,e]=y.useState(!1),n=y.useRef(null),r=()=>{Mn.cancel(n.current)},o=l=>{r(),l?e(l):n.current=Mn(()=>{e(l)})};return y.useEffect(()=>r,[]),[t,o]}var Ete=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};function Ote(t,e){return t||t===null?t:e||e===null?e:n=>typeof n=="number"?n.toString():""}const Cj=ee.forwardRef((t,e)=>{const{prefixCls:n,range:r,className:o,rootClassName:l,style:s,disabled:u,tooltipPrefixCls:d,tipFormatter:f,tooltipVisible:m,getTooltipPopupContainer:p,tooltipPlacement:g,tooltip:b={},onChangeComplete:S,classNames:x,styles:w}=t,O=Ete(t,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:E}=t,{getPrefixCls:M,direction:T,className:$,style:N,classNames:A,styles:z,getPopupContainer:P}=di("slider"),B=ee.useContext(ea),L=u??B,{handleRender:W,direction:q}=ee.useContext(bj),J=(q||T)==="rtl",[_,j]=KC(),[V,G]=KC(),K=Object.assign({},b),{open:Y,placement:ne,getPopupContainer:ae,prefixCls:Q,formatter:se}=K,de=Y??m,xe=(_||V)&&de!==!1,fe=Ote(se,f),[Me,ze]=KC(),Oe=ge=>{S==null||S(ge),ze(!1)},he=(ge,Ue)=>ge||(Ue?J?"left":"right":"top"),De=M("slider",n),[pe,we,$e]=wte(De),Pe=Se(o,$,A.root,x==null?void 0:x.root,l,{[`${De}-rtl`]:J,[`${De}-lock`]:Me},we,$e);J&&!O.vertical&&(O.reverse=!O.reverse);{const ge=rr("Slider");[["tooltipPrefixCls","prefixCls"],["getTooltipPopupContainer","getPopupContainer"],["tipFormatter","formatter"],["tooltipPlacement","placement"],["tooltipVisible","open"]].forEach(Ue=>{let[Fe,Te]=Ue;ge.deprecated(!(Fe in t),Fe,`tooltip.${Te}`)})}ee.useEffect(()=>{const ge=()=>{Mn(()=>{G(!1)},1)};return document.addEventListener("mouseup",ge),()=>{document.removeEventListener("mouseup",ge)}},[]);const Ze=r&&!de,We=W||((ge,Ue)=>{const{index:Fe}=Ue,Te=ge.props;function _e(vt,et,st){var at,Ct,$t,Ut;st&&((Ct=(at=O)[vt])===null||Ct===void 0||Ct.call(at,et)),(Ut=($t=Te)[vt])===null||Ut===void 0||Ut.call($t,et)}const it=Object.assign(Object.assign({},Te),{onMouseEnter:vt=>{j(!0),_e("onMouseEnter",vt)},onMouseLeave:vt=>{j(!1),_e("onMouseLeave",vt)},onMouseDown:vt=>{G(!0),ze(!0),_e("onMouseDown",vt)},onFocus:vt=>{var et;G(!0),(et=O.onFocus)===null||et===void 0||et.call(O,vt),_e("onFocus",vt,!0)},onBlur:vt=>{var et;G(!1),(et=O.onBlur)===null||et===void 0||et.call(O,vt),_e("onBlur",vt,!0)}}),Xe=ee.cloneElement(ge,it),dt=(!!de||xe)&&fe!==null;return Ze?Xe:ee.createElement(kx,Object.assign({},K,{prefixCls:M("tooltip",Q??d),title:fe?fe(Ue.value):"",open:dt,placement:he(ne??g,E),key:Fe,classNames:{root:`${De}-tooltip`},getPopupContainer:ae||p||P}),Xe)}),ut=Ze?(ge,Ue)=>{const Fe=ee.cloneElement(ge,{style:Object.assign(Object.assign({},ge.props.style),{visibility:"hidden"})});return ee.createElement(kx,Object.assign({},K,{prefixCls:M("tooltip",Q??d),title:fe?fe(Ue.value):"",open:fe!==null&&xe,placement:he(ne??g,E),key:"tooltip",classNames:{root:`${De}-tooltip`},getPopupContainer:ae||p||P,draggingDelete:Ue.draggingDelete}),Fe)}:void 0,I=Object.assign(Object.assign(Object.assign(Object.assign({},z.root),N),w==null?void 0:w.root),s),me=Object.assign(Object.assign({},z.tracks),w==null?void 0:w.tracks),oe=Se(A.tracks,x==null?void 0:x.tracks);return pe(ee.createElement(yj,Object.assign({},O,{classNames:Object.assign({handle:Se(A.handle,x==null?void 0:x.handle),rail:Se(A.rail,x==null?void 0:x.rail),track:Se(A.track,x==null?void 0:x.track)},oe?{tracks:oe}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},z.handle),w==null?void 0:w.handle),rail:Object.assign(Object.assign({},z.rail),w==null?void 0:w.rail),track:Object.assign(Object.assign({},z.track),w==null?void 0:w.track)},Object.keys(me).length?{tracks:me}:{}),step:O.step,range:r,className:Pe,style:I,disabled:L,ref:e,prefixCls:De,handleRender:We,activeHandleRender:ut,onChangeComplete:Oe})))});Cj.displayName="Slider";var Rte=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};const xj=t=>{const{prefixCls:e,colors:n,type:r,color:o,range:l=!1,className:s,activeIndex:u,onActive:d,onDragStart:f,onDragChange:m,onKeyDelete:p}=t,g=Rte(t,["prefixCls","colors","type","color","range","className","activeIndex","onActive","onDragStart","onDragChange","onKeyDelete"]),b=Object.assign(Object.assign({},g),{track:!1}),S=y.useMemo(()=>`linear-gradient(90deg, ${n.map(N=>`${N.color} ${N.percent}%`).join(", ")})`,[n]),x=y.useMemo(()=>!o||!r?null:r==="alpha"?o.toRgbString():`hsl(${o.toHsb().h}, 100%, 50%)`,[o,r]),w=Hn(f),O=Hn(m),E=y.useMemo(()=>({onDragStart:w,onDragChange:O}),[]),M=Hn(($,N)=>{const{onFocus:A,style:z,className:P,onKeyDown:B}=$.props,L=Object.assign({},z);return r==="gradient"&&(L.background=lB(n,N.value)),y.cloneElement($,{onFocus:W=>{d==null||d(N.index),A==null||A(W)},style:L,className:Se(P,{[`${e}-slider-handle-active`]:u===N.index}),onKeyDown:W=>{(W.key==="Delete"||W.key==="Backspace")&&p&&p(N.index),B==null||B(W)}})}),T=y.useMemo(()=>({direction:"ltr",handleRender:M}),[]);return y.createElement(bj.Provider,{value:T},y.createElement(gj.Provider,{value:E},y.createElement(Cj,Object.assign({},b,{className:Se(s,`${e}-slider`),tooltip:{open:!1},range:{editable:l,minCount:2},styles:{rail:{background:S},handle:x?{background:x}:{}},classNames:{rail:`${e}-slider-rail`,handle:`${e}-slider-handle`}}))))},Tte=t=>{const{value:e,onChange:n,onChangeComplete:r}=t,o=s=>n(s[0]),l=s=>r(s[0]);return y.createElement(xj,Object.assign({},t,{value:[e],onChange:o,onChangeComplete:l}))};function VI(t){return ht(t).sort((e,n)=>e.percent-n.percent)}const Mte=t=>{const{prefixCls:e,mode:n,onChange:r,onChangeComplete:o,onActive:l,activeIndex:s,onGradientDragging:u,colors:d}=t,f=n==="gradient",m=y.useMemo(()=>d.map(O=>({percent:O.percent,color:O.color.toRgbString()})),[d]),p=y.useMemo(()=>m.map(O=>O.percent),[m]),g=y.useRef(m),b=O=>{let{rawValues:E,draggingIndex:M,draggingValue:T}=O;if(E.length>m.length){const $=lB(m,T),N=ht(m);N.splice(M,0,{percent:T,color:$}),g.current=N}else g.current=m;u(!0),r(new ai(VI(g.current)),!0)},S=O=>{let{deleteIndex:E,draggingIndex:M,draggingValue:T}=O,$=ht(g.current);E!==-1?$.splice(E,1):($[M]=Object.assign(Object.assign({},$[M]),{percent:T}),$=VI($)),r(new ai($),!0)},x=O=>{const E=ht(m);E.splice(O,1);const M=new ai(E);r(M),o(M)},w=O=>{o(new ai(m)),s>=O.length&&l(O.length-1),u(!1)};return f?y.createElement(xj,{min:0,max:100,prefixCls:e,className:`${e}-gradient-slider`,colors:m,color:null,value:p,range:!0,onChangeComplete:w,disabled:!1,type:"gradient",activeIndex:s,onActive:l,onDragStart:b,onDragChange:S,onKeyDelete:x}):null},$te=y.memo(Mte);var Nte=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};const Ate={slider:Tte},FI=()=>{const t=y.useContext(rj),{mode:e,onModeChange:n,modeOptions:r,prefixCls:o,allowClear:l,value:s,disabledAlpha:u,onChange:d,onClear:f,onChangeComplete:m,activeIndex:p,gradientDragging:g}=t,b=Nte(t,["mode","onModeChange","modeOptions","prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete","activeIndex","gradientDragging"]),S=ee.useMemo(()=>s.cleared?[{percent:0,color:new ai("")},{percent:100,color:new ai("")}]:s.getColors(),[s]),x=!s.isGradient(),[w,O]=ee.useState(s);Gn(()=>{var H;x||O((H=S[p])===null||H===void 0?void 0:H.color)},[g,p]);const E=ee.useMemo(()=>{var H;return x?s:g?w:(H=S[p])===null||H===void 0?void 0:H.color},[s,p,x,w,g]),[M,T]=ee.useState(E),[$,N]=ee.useState(0),A=M!=null&&M.equals(E)?E:M;Gn(()=>{T(E)},[$,E==null?void 0:E.toHexString()]);const z=(H,J)=>{let _=bo(H);if(s.cleared){const V=_.toRgb();if(!V.r&&!V.g&&!V.b&&J){const{type:G,value:K=0}=J;_=new ai({h:G==="hue"?K:0,s:1,b:1,a:G==="alpha"?K/100:1})}else _=Zg(_)}if(e==="single")return _;const j=ht(S);return j[p]=Object.assign(Object.assign({},j[p]),{color:_}),new ai(j)},P=(H,J,_)=>{const j=z(H,_);T(j.isGradient()?j.getColors()[p].color:j),d(j,J)},B=(H,J)=>{m(z(H,J)),N(_=>_+1)},L=H=>{d(z(H))};let W=null;const q=r.length>1;return(l||q)&&(W=ee.createElement("div",{className:`${o}-operation`},q&&ee.createElement(nj,{size:"small",options:r,value:e,onChange:n}),ee.createElement(ij,Object.assign({prefixCls:o,value:s,onChange:H=>{d(H),f==null||f()}},b)))),ee.createElement(ee.Fragment,null,W,ee.createElement($te,Object.assign({},t,{colors:S})),ee.createElement(nB,{prefixCls:o,value:A==null?void 0:A.toHsb(),disabledAlpha:u,onChange:(H,J)=>{P(H,!0,J)},onChangeComplete:(H,J)=>{B(H,J)},components:Ate}),ee.createElement(lte,Object.assign({value:E,onChange:L,prefixCls:o,disabledAlpha:u},b)))},UI=()=>{const{prefixCls:t,value:e,presets:n,onChange:r}=y.useContext(oj);return Array.isArray(n)?ee.createElement($G,{value:e,presets:n,prefixCls:t,onChange:r}):null},wj=t=>{const{prefixCls:e,presets:n,panelRender:r,value:o,onChange:l,onClear:s,allowClear:u,disabledAlpha:d,mode:f,onModeChange:m,modeOptions:p,onChangeComplete:g,activeIndex:b,onActive:S,format:x,onFormatChange:w,gradientDragging:O,onGradientDragging:E,disabledFormat:M}=t,T=`${e}-inner`,$=ee.useMemo(()=>({prefixCls:e,value:o,onChange:l,onClear:s,allowClear:u,disabledAlpha:d,mode:f,onModeChange:m,modeOptions:p,onChangeComplete:g,activeIndex:b,onActive:S,format:x,onFormatChange:w,gradientDragging:O,onGradientDragging:E,disabledFormat:M}),[e,o,l,s,u,d,f,m,p,g,b,S,x,w,O,E,M]),N=ee.useMemo(()=>({prefixCls:e,value:o,presets:n,onChange:l}),[e,o,n,l]),A=ee.createElement("div",{className:`${T}-content`},ee.createElement(FI,null),Array.isArray(n)&&ee.createElement(ej,null),ee.createElement(UI,null));return ee.createElement(rj.Provider,{value:$},ee.createElement(oj.Provider,{value:N},ee.createElement("div",{className:T},typeof r=="function"?r(A,{components:{Picker:FI,Presets:UI}}):A)))};wj.displayName="ColorPickerPanel";var Dte=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};const Ite=y.forwardRef((t,e)=>{const{color:n,prefixCls:r,open:o,disabled:l,format:s,className:u,showText:d,activeIndex:f}=t,m=Dte(t,["color","prefixCls","open","disabled","format","className","showText","activeIndex"]),p=`${r}-trigger`,g=`${p}-text`,b=`${g}-cell`,[S]=wl("ColorPicker"),x=ee.useMemo(()=>{if(!d)return"";if(typeof d=="function")return d(n);if(n.cleared)return S.transparent;if(n.isGradient())return n.getColors().map((M,T)=>{const $=f!==-1&&f!==T;return ee.createElement("span",{key:T,className:Se(b,$&&`${b}-inactive`)},M.color.toRgbString()," ",M.percent,"%")});const O=n.toHexString().toUpperCase(),E=_w(n);switch(s){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();default:return E<100?`${O.slice(0,7)},${E}%`:O}},[n,s,d,f]),w=y.useMemo(()=>n.cleared?ee.createElement(ij,{prefixCls:r}):ee.createElement(Aw,{prefixCls:r,color:n.toCssString()}),[n,r]);return ee.createElement("div",Object.assign({ref:e,className:Se(p,u,{[`${p}-active`]:o,[`${p}-disabled`]:l})},Da(m)),w,d&&ee.createElement("div",{className:g},x))});function kte(t,e,n){const[r]=wl("ColorPicker"),[o,l]=vr(t,{value:e}),[s,u]=y.useState("single"),[d,f]=y.useMemo(()=>{const x=(Array.isArray(n)?n:[n]).filter(M=>M);x.length||x.push("single");const w=new Set(x),O=[],E=(M,T)=>{w.has(M)&&O.push({label:T,value:M})};return E("single",r.singleColor),E("gradient",r.gradientColor),[O,w]},[n]),[m,p]=y.useState(null),g=Hn(x=>{p(x),l(x)}),b=y.useMemo(()=>{const x=bo(o||"");return x.equals(m)?m:x},[o,m]),S=y.useMemo(()=>{var x;return f.has(s)?s:(x=d[0])===null||x===void 0?void 0:x.value},[f,s,d]);return y.useEffect(()=>{u(b.isGradient()?"gradient":"single")},[b]),[b,g,S,u,d]}const Ej=(t,e)=>({backgroundImage:`conic-gradient(${e} 25%, transparent 25% 50%, ${e} 50% 75%, transparent 75% 100%)`,backgroundSize:`${t} ${t}`}),WI=(t,e)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:o,lineWidth:l,colorFillSecondary:s}=t;return{[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:e,height:e,boxShadow:o,flex:"none"},Ej("50%",t.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${Ee(l)} ${s}`,borderRadius:"inherit"}})}},Pte=t=>{const{componentCls:e,antCls:n,fontSizeSM:r,lineHeightSM:o,colorPickerAlphaInputWidth:l,marginXXS:s,paddingXXS:u,controlHeightSM:d,marginXS:f,fontSizeIcon:m,paddingXS:p,colorTextPlaceholder:g,colorPickerInputNumberHandleWidth:b,lineWidth:S}=t;return{[`${e}-input-container`]:{display:"flex",[`${e}-steppers${n}-input-number`]:{fontSize:r,lineHeight:o,[`${n}-input-number-input`]:{paddingInlineStart:u,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:b}},[`${e}-steppers${e}-alpha-input`]:{flex:`0 0 ${Ee(l)}`,marginInlineStart:s},[`${e}-format-select${n}-select`]:{marginInlineEnd:f,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:t.calc(m).add(s).equal(),fontSize:r,lineHeight:Ee(d)},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:o},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${e}-input`]:{gap:s,alignItems:"center",flex:1,width:0,[`${e}-hsb-input,${e}-rgb-input`]:{display:"flex",gap:s,alignItems:"center"},[`${e}-steppers`]:{flex:1},[`${e}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${Ee(p)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:Ee(t.calc(d).sub(t.calc(S).mul(2)).equal())},[`${n}-input-prefix`]:{color:g}}}}}},zte=t=>{const{componentCls:e,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:l,colorBgElevated:s,colorFillSecondary:u,lineWidthBold:d,colorPickerHandlerSize:f}=t;return{userSelect:"none",[`${e}-select`]:{[`${e}-palette`]:{minHeight:t.calc(n).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${e}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:o,inset:0},marginBottom:l},[`${e}-handler`]:{width:f,height:f,border:`${Ee(d)} solid ${s}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${u}`}}},_te=t=>{const{componentCls:e,antCls:n,colorTextQuaternary:r,paddingXXS:o,colorPickerPresetColorSize:l,fontSizeSM:s,colorText:u,lineHeightSM:d,lineWidth:f,borderRadius:m,colorFill:p,colorWhite:g,marginXXS:b,paddingXS:S,fontHeightSM:x}=t;return{[`${e}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:x,color:r,paddingInlineEnd:o}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:b},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${Ee(S)} 0`},"&-label":{fontSize:s,color:u,lineHeight:d},"&-items":{display:"flex",flexWrap:"wrap",gap:t.calc(b).mul(1.5).equal(),[`${e}-presets-color`]:{position:"relative",cursor:"pointer",width:l,height:l,"&::before":{content:'""',pointerEvents:"none",width:t.calc(l).add(t.calc(f).mul(4)).equal(),height:t.calc(l).add(t.calc(f).mul(4)).equal(),position:"absolute",top:t.calc(f).mul(-2).equal(),insetInlineStart:t.calc(f).mul(-2).equal(),borderRadius:m,border:`${Ee(f)} solid transparent`,transition:`border-color ${t.motionDurationMid} ${t.motionEaseInBack}`},"&:hover::before":{borderColor:p},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:t.calc(l).div(13).mul(5).equal(),height:t.calc(l).div(13).mul(8).equal(),border:`${Ee(t.lineWidthBold)} solid ${t.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${t.motionDurationFast} ${t.motionEaseInBack}, opacity ${t.motionDurationFast}`},[`&${e}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:g,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${t.motionDurationMid} ${t.motionEaseOutBack} ${t.motionDurationFast}`},[`&${e}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:s,color:r}}}},Bte=t=>{const{componentCls:e,colorPickerInsetShadow:n,colorBgElevated:r,colorFillSecondary:o,lineWidthBold:l,colorPickerHandlerSizeSM:s,colorPickerSliderHeight:u,marginSM:d,marginXS:f}=t,m=t.calc(s).sub(t.calc(l).mul(2).equal()).equal(),p=t.calc(s).add(t.calc(l).mul(2).equal()).equal(),g={"&:after":{transform:"scale(1)",boxShadow:`${n}, 0 0 0 1px ${t.colorPrimaryActive}`}};return{[`${e}-slider`]:[Ej(Ee(u),t.colorFillSecondary),{margin:0,padding:0,height:u,borderRadius:t.calc(u).div(2).equal(),"&-rail":{height:u,borderRadius:t.calc(u).div(2).equal(),boxShadow:n},[`& ${e}-slider-handle`]:{width:m,height:m,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:p,height:p,borderRadius:"100%"},"&:after":{width:s,height:s,border:`${Ee(l)} solid ${r}`,boxShadow:`${n}, 0 0 0 1px ${o}`,outline:"none",insetInlineStart:t.calc(l).mul(-1).equal(),top:t.calc(l).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":g}}],[`${e}-slider-container`]:{display:"flex",gap:d,marginBottom:d,[`${e}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${e}-gradient-slider`]:{marginBottom:f,[`& ${e}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":g}}}},Px=(t,e,n)=>({borderInlineEndWidth:t.lineWidth,borderColor:e,boxShadow:`0 0 0 ${Ee(t.controlOutlineWidth)} ${n}`,outline:0}),Hte=t=>{const{componentCls:e}=t;return{"&-rtl":{[`${e}-presets-color`]:{"&::after":{direction:"ltr"}},[`${e}-clear`]:{"&::after":{direction:"ltr"}}}}},qI=(t,e,n)=>{const{componentCls:r,borderRadiusSM:o,lineWidth:l,colorSplit:s,colorBorder:u,red6:d}=t;return{[`${r}-clear`]:Object.assign(Object.assign({width:e,height:e,borderRadius:o,border:`${Ee(l)} solid ${s}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${t.motionDurationFast}`},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:t.calc(l).mul(-1).equal(),top:t.calc(l).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:d},"&:hover":{borderColor:u}})}},jte=t=>{const{componentCls:e,colorError:n,colorWarning:r,colorErrorHover:o,colorWarningHover:l,colorErrorOutline:s,colorWarningOutline:u}=t;return{[`&${e}-status-error`]:{borderColor:n,"&:hover":{borderColor:o},[`&${e}-trigger-active`]:Object.assign({},Px(t,n,s))},[`&${e}-status-warning`]:{borderColor:r,"&:hover":{borderColor:l},[`&${e}-trigger-active`]:Object.assign({},Px(t,r,u))}}},Lte=t=>{const{componentCls:e,controlHeightLG:n,controlHeightSM:r,controlHeight:o,controlHeightXS:l,borderRadius:s,borderRadiusSM:u,borderRadiusXS:d,borderRadiusLG:f,fontSizeLG:m}=t;return{[`&${e}-lg`]:{minWidth:n,minHeight:n,borderRadius:f,[`${e}-color-block, ${e}-clear`]:{width:o,height:o,borderRadius:s},[`${e}-trigger-text`]:{fontSize:m}},[`&${e}-sm`]:{minWidth:r,minHeight:r,borderRadius:u,[`${e}-color-block, ${e}-clear`]:{width:l,height:l,borderRadius:d},[`${e}-trigger-text`]:{lineHeight:Ee(l)}}}},Vte=t=>{const{antCls:e,componentCls:n,colorPickerWidth:r,colorPrimary:o,motionDurationMid:l,colorBgElevated:s,colorTextDisabled:u,colorText:d,colorBgContainerDisabled:f,borderRadius:m,marginXS:p,marginSM:g,controlHeight:b,controlHeightSM:S,colorBgTextActive:x,colorPickerPresetColorSize:w,colorPickerPreviewSize:O,lineWidth:E,colorBorder:M,paddingXXS:T,fontSize:$,colorPrimaryHover:N,controlOutline:A}=t;return[{[n]:Object.assign({[`${n}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${e}-divider`]:{margin:`${Ee(g)} 0 ${Ee(p)}`}},[`${n}-panel`]:Object.assign({},zte(t))},Bte(t)),WI(t,O)),Pte(t)),_te(t)),qI(t,w,{marginInlineStart:"auto"})),{[`${n}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:p}}),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:b,minHeight:b,borderRadius:m,border:`${Ee(E)} solid ${M}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${l}`,background:s,padding:t.calc(T).sub(E).equal(),[`${n}-trigger-text`]:{marginInlineStart:p,marginInlineEnd:t.calc(p).sub(t.calc(T).sub(E)).equal(),fontSize:$,color:d,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:u}}},"&:hover":{borderColor:N},[`&${n}-trigger-active`]:Object.assign({},Px(t,o,A)),"&-disabled":{color:u,background:f,cursor:"not-allowed","&:hover":{borderColor:x},[`${n}-trigger-text`]:{color:u}}},qI(t,S)),WI(t,S)),jte(t)),Lte(t))},Hte(t))},gm(t,{focusElCls:`${n}-trigger-active`})]},Fte=pr("ColorPicker",t=>{const{colorTextQuaternary:e,marginSM:n}=t,r=8,o=In(t,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${e}`,colorPickerSliderHeight:r,colorPickerPreviewSize:t.calc(r).mul(2).add(n).equal()});return[Vte(o)]});var Ute=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};const Dy=t=>{const{mode:e,value:n,defaultValue:r,format:o,defaultFormat:l,allowClear:s=!1,presets:u,children:d,trigger:f="click",open:m,disabled:p,placement:g="bottomLeft",arrow:b=!0,panelRender:S,showText:x,style:w,className:O,size:E,rootClassName:M,prefixCls:T,styles:$,disabledAlpha:N=!1,onFormatChange:A,onChange:z,onClear:P,onOpenChange:B,onChangeComplete:L,getPopupContainer:W,autoAdjustOverflow:q=!0,destroyTooltipOnHide:H,disabledFormat:J}=t,_=Ute(t,["mode","value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide","disabledFormat"]),{getPrefixCls:j,direction:V,colorPicker:G}=y.useContext(Tn),K=y.useContext(ea),Y=p??K,[ne,ae]=vr(!1,{value:m,postState:Ct=>!Y&&Ct,onChange:B}),[Q,se]=vr(o,{value:o,defaultValue:l,onChange:A}),de=j("color-picker",T),[xe,fe,Me,ze,Oe]=kte(r,n,e),he=y.useMemo(()=>_w(xe)<100,[xe]),[De,pe]=ee.useState(null),we=Ct=>{if(L){let $t=bo(Ct);N&&he&&($t=Zg(Ct)),L($t)}},$e=(Ct,$t)=>{let Ut=bo(Ct);N&&he&&(Ut=Zg(Ut)),fe(Ut),pe(null),z&&z(Ut,Ut.toCssString()),$t||we(Ut)},[Pe,Ze]=ee.useState(0),[We,ut]=ee.useState(!1),I=Ct=>{if(ze(Ct),Ct==="single"&&xe.isGradient())Ze(0),$e(new ai(xe.getColors()[0].color)),pe(xe);else if(Ct==="gradient"&&!xe.isGradient()){const $t=he?Zg(xe):xe;$e(new ai(De||[{percent:0,color:$t},{percent:100,color:$t}]))}},{status:me}=ee.useContext(zi),{compactSize:oe,compactItemClassnames:ge}=Ds(de,V),Ue=ra(Ct=>{var $t;return($t=E??oe)!==null&&$t!==void 0?$t:Ct}),Fe=El(de),[Te,_e,it]=Fte(de,Fe),Xe={[`${de}-rtl`]:V},dt=Se(M,it,Fe,Xe),vt=Se(Yc(de,me),{[`${de}-sm`]:Ue==="small",[`${de}-lg`]:Ue==="large"},ge,G==null?void 0:G.className,dt,O,_e),et=Se(de,dt);rr("ColorPicker")(!(N&&he),"usage","`disabledAlpha` will make the alpha to be 100% when use alpha color.");const st={open:ne,trigger:f,placement:g,arrow:b,rootClassName:M,getPopupContainer:W,autoAdjustOverflow:q,destroyTooltipOnHide:H},at=Object.assign(Object.assign({},G==null?void 0:G.style),w);return Te(ee.createElement(nE,Object.assign({style:$==null?void 0:$.popup,styles:{body:$==null?void 0:$.popupOverlayInner},onOpenChange:Ct=>{(!Ct||!Y)&&ae(Ct)},content:ee.createElement(Es,{form:!0},ee.createElement(wj,{mode:Me,onModeChange:I,modeOptions:Oe,prefixCls:de,value:xe,allowClear:s,disabled:Y,disabledAlpha:N,presets:u,panelRender:S,format:Q,onFormatChange:se,onChange:$e,onChangeComplete:we,onClear:P,activeIndex:Pe,onActive:Ze,gradientDragging:We,onGradientDragging:ut,disabledFormat:J})),classNames:{root:et}},st),d||ee.createElement(Ite,Object.assign({activeIndex:ne?Pe:-1,open:ne,className:vt,style:at,prefixCls:de,disabled:Y,showText:x,format:Q},_,{color:xe}))))};Dy.displayName="ColorPicker";const Wte=Vw(Dy,void 0,t=>Object.assign(Object.assign({},t),{placement:"bottom",autoAdjustOverflow:!1}),"color-picker",t=>t);Dy._InternalPanelDoNotUseOrYouWillBeFired=Wte;function GI(t){return["small","middle","large"].includes(t)}function KI(t){return t?typeof t=="number"&&!Number.isNaN(t):!1}const Oj=ee.createContext({latestIndex:0}),qte=Oj.Provider,Gte=t=>{let{className:e,index:n,children:r,split:o,style:l}=t;const{latestIndex:s}=y.useContext(Oj);return r==null?null:y.createElement(y.Fragment,null,y.createElement("div",{className:e,style:l},r),n<s&&o&&y.createElement("span",{className:`${e}-split`},o))};var Kte=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};const Yte=y.forwardRef((t,e)=>{var n;const{getPrefixCls:r,direction:o,size:l,className:s,style:u,classNames:d,styles:f}=di("space"),{size:m=l??"small",align:p,className:g,rootClassName:b,children:S,direction:x="horizontal",prefixCls:w,split:O,style:E,wrap:M=!1,classNames:T,styles:$}=t,N=Kte(t,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[A,z]=Array.isArray(m)?m:[m,m],P=GI(z),B=GI(A),L=KI(z),W=KI(A),q=ci(S,{keepEmpty:!0}),H=p===void 0&&x==="horizontal"?"center":p,J=r("space",w),[_,j,V]=q_(J),G=Se(J,s,j,`${J}-${x}`,{[`${J}-rtl`]:o==="rtl",[`${J}-align-${H}`]:H,[`${J}-gap-row-${z}`]:P,[`${J}-gap-col-${A}`]:B},g,b,V),K=Se(`${J}-item`,(n=T==null?void 0:T.item)!==null&&n!==void 0?n:d.item);let Y=0;const ne=q.map((se,de)=>{var xe;se!=null&&(Y=de);const fe=(se==null?void 0:se.key)||`${K}-${de}`;return y.createElement(Gte,{className:K,key:fe,index:de,split:O,style:(xe=$==null?void 0:$.item)!==null&&xe!==void 0?xe:f.item},se)}),ae=y.useMemo(()=>({latestIndex:Y}),[Y]);if(q.length===0)return null;const Q={};return M&&(Q.flexWrap="wrap"),!B&&W&&(Q.columnGap=A),!P&&L&&(Q.rowGap=z),_(y.createElement("div",Object.assign({ref:e,className:G,style:Object.assign(Object.assign(Object.assign({},Q),u),E)},N),y.createElement(qte,{value:ae},ne)))}),yE=Yte;yE.Compact=gq;yE.displayName="Space";var Xte=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};const Rj=t=>{const{getPopupContainer:e,getPrefixCls:n,direction:r}=y.useContext(Tn),{prefixCls:o,type:l="default",danger:s,disabled:u,loading:d,onClick:f,htmlType:m,children:p,className:g,menu:b,arrow:S,autoFocus:x,overlay:w,trigger:O,align:E,open:M,onOpenChange:T,placement:$,getPopupContainer:N,href:A,icon:z=y.createElement(uE,null),title:P,buttonsRender:B=fe=>fe,mouseEnterDelay:L,mouseLeaveDelay:W,overlayClassName:q,overlayStyle:H,destroyPopupOnHide:J,dropdownRender:_}=t,j=Xte(t,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),V=n("dropdown",o),G=`${V}-button`,K={menu:b,arrow:S,autoFocus:x,align:E,disabled:u,trigger:u?[]:O,onOpenChange:T,getPopupContainer:N||e,mouseEnterDelay:L,mouseLeaveDelay:W,overlayClassName:q,overlayStyle:H,destroyPopupOnHide:J,dropdownRender:_},{compactSize:Y,compactItemClassnames:ne}=Ds(V,r),ae=Se(G,ne,g);"overlay"in t&&(K.overlay=w),"open"in t&&(K.open=M),"placement"in t?K.placement=$:K.placement=r==="rtl"?"bottomLeft":"bottomRight";const Q=y.createElement(bl,{type:l,danger:s,disabled:u,loading:d,onClick:f,htmlType:m,href:A,title:P},p),se=y.createElement(bl,{type:l,danger:s,icon:z}),[de,xe]=B([Q,se]);return y.createElement(yE.Compact,Object.assign({className:ae,size:Y,block:!0},j),de,y.createElement(Om,Object.assign({},K),xe))};Rj.__ANT_BUTTON=!0;const Iy=Om;Iy.Button=Rj;var Qte={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},Zte=function(e,n){return y.createElement(Lr,yt({},e,{ref:n,icon:Qte}))},Tj=y.forwardRef(Zte);Tj.displayName="EyeOutlined";const Jte=t=>{const{getPrefixCls:e,direction:n}=y.useContext(Tn),{prefixCls:r,className:o}=t,l=e("input-group",r),s=e("input"),[u,d,f]=JH(s),m=Se(l,f,{[`${l}-lg`]:t.size==="large",[`${l}-sm`]:t.size==="small",[`${l}-compact`]:t.compact,[`${l}-rtl`]:n==="rtl"},d,o),p=y.useContext(zi),g=y.useMemo(()=>Object.assign(Object.assign({},p),{isFormItemInput:!1}),[p]);return rr("Input.Group").deprecated(!1,"Input.Group","Space.Compact"),u(y.createElement("span",{className:m,style:t.style,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onFocus:t.onFocus,onBlur:t.onBlur},y.createElement(zi.Provider,{value:g},t.children)))},ene=t=>{const{componentCls:e,paddingXS:n}=t;return{[e]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${e}-input`]:{textAlign:"center",paddingInline:t.paddingXXS},[`&${e}-sm ${e}-input`]:{paddingInline:t.calc(t.paddingXXS).div(2).equal()},[`&${e}-lg ${e}-input`]:{paddingInline:t.paddingXS}}}},tne=pr(["Input","OTP"],t=>{const e=In(t,Rm(t));return[ene(e)]},Tm);var nne=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};const rne=y.forwardRef((t,e)=>{const{value:n,onChange:r,onActiveChange:o,index:l,mask:s}=t,u=nne(t,["value","onChange","onActiveChange","index","mask"]),d=n&&typeof s=="string"?s:n,f=S=>{r(l,S.target.value)},m=y.useRef(null);y.useImperativeHandle(e,()=>m.current);const p=()=>{Mn(()=>{var S;const x=(S=m.current)===null||S===void 0?void 0:S.input;document.activeElement===x&&x&&x.select()})},g=S=>{const{key:x,ctrlKey:w,metaKey:O}=S;x==="ArrowLeft"?o(l-1):x==="ArrowRight"?o(l+1):x==="z"&&(w||O)&&S.preventDefault(),p()},b=S=>{S.key==="Backspace"&&!n&&o(l-1),p()};return y.createElement(qd,Object.assign({type:s===!0?"password":"text"},u,{ref:m,value:d,onInput:f,onFocus:p,onKeyDown:g,onKeyUp:b,onMouseDown:p,onMouseUp:p}))});var one=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};function Ag(t){return(t||"").split("")}const ine=t=>{const{index:e,prefixCls:n,separator:r}=t,o=typeof r=="function"?r(e):r;return o?y.createElement("span",{className:`${n}-separator`},o):null},ane=y.forwardRef((t,e)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:l,value:s,onChange:u,formatter:d,separator:f,variant:m,disabled:p,status:g,autoFocus:b,mask:S,type:x,onInput:w,inputMode:O}=t,E=one(t,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]);rr("Input.OTP")(!(typeof S=="string"&&S.length>1),"usage","`mask` prop should be a single character.");const{getPrefixCls:M,direction:T}=y.useContext(Tn),$=M("otp",n),N=Da(E,{aria:!0,data:!0,attr:!0}),[A,z,P]=tne($),B=ra(Q=>o??Q),L=y.useContext(zi),W=xm(L.status,g),q=y.useMemo(()=>Object.assign(Object.assign({},L),{status:W,hasFeedback:!1,feedbackIcon:null}),[L,W]),H=y.useRef(null),J=y.useRef({});y.useImperativeHandle(e,()=>({focus:()=>{var Q;(Q=J.current[0])===null||Q===void 0||Q.focus()},blur:()=>{var Q;for(let se=0;se<r;se+=1)(Q=J.current[se])===null||Q===void 0||Q.blur()},nativeElement:H.current}));const _=Q=>d?d(Q):Q,[j,V]=y.useState(()=>Ag(_(l||"")));y.useEffect(()=>{s!==void 0&&V(Ag(s))},[s]);const G=Hn(Q=>{V(Q),w&&w(Q),u&&Q.length===r&&Q.every(se=>se)&&Q.some((se,de)=>j[de]!==se)&&u(Q.join(""))}),K=Hn((Q,se)=>{let de=ht(j);for(let fe=0;fe<Q;fe+=1)de[fe]||(de[fe]="");se.length<=1?de[Q]=se:de=de.slice(0,Q).concat(Ag(se)),de=de.slice(0,r);for(let fe=de.length-1;fe>=0&&!de[fe];fe-=1)de.pop();const xe=_(de.map(fe=>fe||" ").join(""));return de=Ag(xe).map((fe,Me)=>fe===" "&&!de[Me]?de[Me]:fe),de}),Y=(Q,se)=>{var de;const xe=K(Q,se),fe=Math.min(Q+se.length,r-1);fe!==Q&&xe[Q]!==void 0&&((de=J.current[fe])===null||de===void 0||de.focus()),G(xe)},ne=Q=>{var se;(se=J.current[Q])===null||se===void 0||se.focus()},ae={variant:m,disabled:p,status:W,mask:S,type:x,inputMode:O};return A(y.createElement("div",Object.assign({},N,{ref:H,className:Se($,{[`${$}-sm`]:B==="small",[`${$}-lg`]:B==="large",[`${$}-rtl`]:T==="rtl"},P,z)}),y.createElement(zi.Provider,{value:q},Array.from({length:r}).map((Q,se)=>{const de=`otp-${se}`,xe=j[se]||"";return y.createElement(y.Fragment,{key:de},y.createElement(rne,Object.assign({ref:fe=>{J.current[se]=fe},index:se,size:B,htmlSize:1,className:`${$}-input`,onChange:Y,value:xe,onActiveChange:ne,autoFocus:se===0&&b},ae)),se<r-1&&y.createElement(ine,{separator:f,index:se,prefixCls:$}))}))))});var lne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},sne=function(e,n){return y.createElement(Lr,yt({},e,{ref:n,icon:lne}))},Mj=y.forwardRef(sne);Mj.displayName="EyeInvisibleOutlined";var cne=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};const une=t=>t?y.createElement(Tj,null):y.createElement(Mj,null),dne={click:"onClick",hover:"onMouseOver"},$j=y.forwardRef((t,e)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:l=une}=t,s=y.useContext(ea),u=n??s,d=typeof o=="object"&&o.visible!==void 0,[f,m]=y.useState(()=>d?o.visible:!1),p=y.useRef(null);y.useEffect(()=>{d&&m(o.visible)},[d,o]);const g=pj(p),b=()=>{var B;if(u)return;f&&g();const L=!f;m(L),typeof o=="object"&&((B=o.onVisibleChange)===null||B===void 0||B.call(o,L))},S=B=>{const L=dne[r]||"",W=l(f),q={[L]:b,className:`${B}-icon`,key:"passwordIcon",onMouseDown:H=>{H.preventDefault()},onMouseUp:H=>{H.preventDefault()}};return y.cloneElement(y.isValidElement(W)?W:y.createElement("span",null,W),q)},{className:x,prefixCls:w,inputPrefixCls:O,size:E}=t,M=cne(t,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:T}=y.useContext(Tn),$=T("input",O),N=T("input-password",w),A=o&&S(N),z=Se(N,x,{[`${N}-${E}`]:!!E}),P=Object.assign(Object.assign({},Hr(M,["suffix","iconRender","visibilityToggle"])),{type:f?"text":"password",className:z,prefixCls:$,suffix:A});return E&&(P.size=E),y.createElement(qd,Object.assign({ref:Fo(e,p)},P))});$j.displayName="Input.Password";var fne=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};const Nj=y.forwardRef((t,e)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:l,suffix:s,enterButton:u=!1,addonAfter:d,loading:f,disabled:m,onSearch:p,onChange:g,onCompositionStart:b,onCompositionEnd:S}=t,x=fne(t,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:w,direction:O}=y.useContext(Tn),E=y.useRef(!1),M=w("input-search",n),T=w("input",r),{compactSize:$}=Ds(M,O),N=ra(Y=>{var ne;return(ne=l??$)!==null&&ne!==void 0?ne:Y}),A=y.useRef(null),z=Y=>{Y!=null&&Y.target&&Y.type==="click"&&p&&p(Y.target.value,Y,{source:"clear"}),g==null||g(Y)},P=Y=>{var ne;document.activeElement===((ne=A.current)===null||ne===void 0?void 0:ne.input)&&Y.preventDefault()},B=Y=>{var ne,ae;p&&p((ae=(ne=A.current)===null||ne===void 0?void 0:ne.input)===null||ae===void 0?void 0:ae.value,Y,{source:"input"})},L=Y=>{E.current||f||B(Y)},W=typeof u=="boolean"?y.createElement(Zw,null):null,q=`${M}-button`;let H;const J=u||{},_=J.type&&J.type.__ANT_BUTTON===!0;_||J.type==="button"?H=Pi(J,Object.assign({onMouseDown:P,onClick:Y=>{var ne,ae;(ae=(ne=J==null?void 0:J.props)===null||ne===void 0?void 0:ne.onClick)===null||ae===void 0||ae.call(ne,Y),B(Y)},key:"enterButton"},_?{className:q,size:N}:{})):H=y.createElement(bl,{className:q,type:u?"primary":void 0,size:N,disabled:m,key:"enterButton",onMouseDown:P,onClick:B,loading:f,icon:W},u),d&&(H=[H,Pi(d,{key:"addonAfter"})]);const j=Se(M,{[`${M}-rtl`]:O==="rtl",[`${M}-${N}`]:!!N,[`${M}-with-button`]:!!u},o),V=Object.assign(Object.assign({},x),{className:j,prefixCls:T,type:"search"}),G=Y=>{E.current=!0,b==null||b(Y)},K=Y=>{E.current=!1,S==null||S(Y)};return y.createElement(qd,Object.assign({ref:Fo(A,e),onPressEnter:L},V,{size:N,onCompositionStart:G,onCompositionEnd:K,addonAfter:H,suffix:s,onChange:z,disabled:m}))});Nj.displayName="Search";var hne=`
680
- min-height:0 !important;
681
- max-height:none !important;
682
- height:0 !important;
683
- visibility:hidden !important;
684
- overflow:hidden !important;
685
- position:absolute !important;
686
- z-index:-1000 !important;
687
- top:0 !important;
688
- right:0 !important;
689
- pointer-events: none !important;
690
- `,mne=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],YC={},ni;function pne(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=t.getAttribute("id")||t.getAttribute("data-reactid")||t.getAttribute("name");if(e&&YC[n])return YC[n];var r=window.getComputedStyle(t),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),l=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),s=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),u=mne.map(function(f){return"".concat(f,":").concat(r.getPropertyValue(f))}).join(";"),d={sizingStyle:u,paddingSize:l,borderSize:s,boxSizing:o};return e&&n&&(YC[n]=d),d}function gne(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ni||(ni=document.createElement("textarea"),ni.setAttribute("tab-index","-1"),ni.setAttribute("aria-hidden","true"),ni.setAttribute("name","hiddenTextarea"),document.body.appendChild(ni)),t.getAttribute("wrap")?ni.setAttribute("wrap",t.getAttribute("wrap")):ni.removeAttribute("wrap");var o=pne(t,e),l=o.paddingSize,s=o.borderSize,u=o.boxSizing,d=o.sizingStyle;ni.setAttribute("style","".concat(d,";").concat(hne)),ni.value=t.value||t.placeholder||"";var f=void 0,m=void 0,p,g=ni.scrollHeight;if(u==="border-box"?g+=s:u==="content-box"&&(g-=l),n!==null||r!==null){ni.value=" ";var b=ni.scrollHeight-l;n!==null&&(f=b*n,u==="border-box"&&(f=f+l+s),g=Math.max(f,g)),r!==null&&(m=b*r,u==="border-box"&&(m=m+l+s),p=g>m?"":"hidden",g=Math.min(m,g))}var S={height:g,overflowY:p,resize:"none"};return f&&(S.minHeight=f),m&&(S.maxHeight=m),S}var vne=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],XC=0,QC=1,ZC=2,yne=y.forwardRef(function(t,e){var n=t,r=n.prefixCls,o=n.defaultValue,l=n.value,s=n.autoSize,u=n.onResize,d=n.className,f=n.style,m=n.disabled,p=n.onChange;n.onInternalAutoSize;var g=an(n,vne),b=vr(o,{value:l,postState:function(Q){return Q??""}}),S=Re(b,2),x=S[0],w=S[1],O=function(Q){w(Q.target.value),p==null||p(Q)},E=y.useRef();y.useImperativeHandle(e,function(){return{textArea:E.current}});var M=y.useMemo(function(){return s&&Ht(s)==="object"?[s.minRows,s.maxRows]:[]},[s]),T=Re(M,2),$=T[0],N=T[1],A=!!s,z=function(){try{if(document.activeElement===E.current){var Q=E.current,se=Q.selectionStart,de=Q.selectionEnd,xe=Q.scrollTop;E.current.setSelectionRange(se,de),E.current.scrollTop=xe}}catch{}},P=y.useState(ZC),B=Re(P,2),L=B[0],W=B[1],q=y.useState(),H=Re(q,2),J=H[0],_=H[1],j=function(){W(XC)};Gn(function(){A&&j()},[l,$,N,A]),Gn(function(){if(L===XC)W(QC);else if(L===QC){var ae=gne(E.current,!1,$,N);W(ZC),_(ae)}else z()},[L]);var V=y.useRef(),G=function(){Mn.cancel(V.current)},K=function(Q){L===ZC&&(u==null||u(Q),s&&(G(),V.current=Mn(function(){j()})))};y.useEffect(function(){return G},[]);var Y=A?J:null,ne=re(re({},f),Y);return(L===XC||L===QC)&&(ne.overflowY="hidden",ne.overflowX="hidden"),y.createElement(xl,{onResize:K,disabled:!(s||u)},y.createElement("textarea",yt({},g,{ref:E,style:ne,className:Se(r,d,te({},"".concat(r,"-disabled"),m)),disabled:m,value:x,onChange:O})))}),bne=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Sne=ee.forwardRef(function(t,e){var n,r=t.defaultValue,o=t.value,l=t.onFocus,s=t.onBlur,u=t.onChange,d=t.allowClear,f=t.maxLength,m=t.onCompositionStart,p=t.onCompositionEnd,g=t.suffix,b=t.prefixCls,S=b===void 0?"rc-textarea":b,x=t.showCount,w=t.count,O=t.className,E=t.style,M=t.disabled,T=t.hidden,$=t.classNames,N=t.styles,A=t.onResize,z=t.onClear,P=t.onPressEnter,B=t.readOnly,L=t.autoSize,W=t.onKeyDown,q=an(t,bne),H=vr(r,{value:o,defaultValue:r}),J=Re(H,2),_=J[0],j=J[1],V=_==null?"":String(_),G=ee.useState(!1),K=Re(G,2),Y=K[0],ne=K[1],ae=ee.useRef(!1),Q=ee.useState(null),se=Re(Q,2),de=se[0],xe=se[1],fe=y.useRef(null),Me=y.useRef(null),ze=function(){var st;return(st=Me.current)===null||st===void 0?void 0:st.textArea},Oe=function(){ze().focus()};y.useImperativeHandle(e,function(){var et;return{resizableTextArea:Me.current,focus:Oe,blur:function(){ze().blur()},nativeElement:((et=fe.current)===null||et===void 0?void 0:et.nativeElement)||ze()}}),y.useEffect(function(){ne(function(et){return!M&&et})},[M]);var he=ee.useState(null),De=Re(he,2),pe=De[0],we=De[1];ee.useEffect(function(){if(pe){var et;(et=ze()).setSelectionRange.apply(et,ht(pe))}},[pe]);var $e=dj(w,x),Pe=(n=$e.max)!==null&&n!==void 0?n:f,Ze=Number(Pe)>0,We=$e.strategy(V),ut=!!Pe&&We>Pe,I=function(st,at){var Ct=at;!ae.current&&$e.exceedFormatter&&$e.max&&$e.strategy(at)>$e.max&&(Ct=$e.exceedFormatter(at,{max:$e.max}),at!==Ct&&we([ze().selectionStart||0,ze().selectionEnd||0])),j(Ct),Bv(st.currentTarget,st,u,Ct)},me=function(st){ae.current=!0,m==null||m(st)},oe=function(st){ae.current=!1,I(st,st.currentTarget.value),p==null||p(st)},ge=function(st){I(st,st.target.value)},Ue=function(st){st.key==="Enter"&&P&&P(st),W==null||W(st)},Fe=function(st){ne(!0),l==null||l(st)},Te=function(st){ne(!1),s==null||s(st)},_e=function(st){j(""),Oe(),Bv(ze(),st,u)},it=g,Xe;$e.show&&($e.showFormatter?Xe=$e.showFormatter({value:V,count:We,maxLength:Pe}):Xe="".concat(We).concat(Ze?" / ".concat(Pe):""),it=ee.createElement(ee.Fragment,null,it,ee.createElement("span",{className:Se("".concat(S,"-data-count"),$==null?void 0:$.count),style:N==null?void 0:N.count},Xe)));var dt=function(st){var at;A==null||A(st),(at=ze())!==null&&at!==void 0&&at.style.height&&xe(!0)},vt=!L&&!x&&!d;return ee.createElement(pE,{ref:fe,value:V,allowClear:d,handleReset:_e,suffix:it,prefixCls:S,classNames:re(re({},$),{},{affixWrapper:Se($==null?void 0:$.affixWrapper,te(te({},"".concat(S,"-show-count"),x),"".concat(S,"-textarea-allow-clear"),d))}),disabled:M,focused:Y,className:Se(O,ut&&"".concat(S,"-out-of-range")),style:re(re({},E),de&&!vt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Xe=="string"?Xe:void 0}},hidden:T,readOnly:B,onClear:z},ee.createElement(yne,yt({},q,{autoSize:L,maxLength:f,onKeyDown:Ue,onChange:ge,onFocus:Fe,onBlur:Te,onCompositionStart:me,onCompositionEnd:oe,className:Se($==null?void 0:$.textarea),style:re(re({},N==null?void 0:N.textarea),{},{resize:E==null?void 0:E.resize}),disabled:M,prefixCls:S,onResize:dt,ref:Me,readOnly:B})))});const Cne=t=>{const{componentCls:e,paddingLG:n}=t,r=`${e}-textarea`;return{[`textarea${e}`]:{maxWidth:"100%",height:"auto",minHeight:t.controlHeight,lineHeight:t.lineHeight,verticalAlign:"bottom",transition:`all ${t.motionDurationSlow}`,resize:"vertical",[`&${e}-mouse-active`]:{transition:`all ${t.motionDurationSlow}, height 0s, width 0s`}},[`${e}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`> ${e}`]:{height:"100%"},[`${e}-data-count`]:{position:"absolute",bottom:t.calc(t.fontSize).mul(t.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:t.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
691
- &-allow-clear > ${e},
692
- &-affix-wrapper${r}-has-feedback ${e}
693
- `]:{paddingInlineEnd:n},[`&-affix-wrapper${e}-affix-wrapper`]:{padding:0,[`> textarea${e}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:t.calc(t.controlHeight).sub(t.calc(t.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${e}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${e}-clear-icon`]:{position:"absolute",insetInlineEnd:t.paddingInline,insetBlockStart:t.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:t.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${e}-affix-wrapper-sm`]:{[`${e}-suffix`]:{[`${e}-clear-icon`]:{insetInlineEnd:t.paddingInlineSM}}}}}},xne=pr(["Input","TextArea"],t=>{const e=In(t,Rm(t));return[Cne(e)]},Tm,{resetFont:!1});var wne=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};const Ene=y.forwardRef((t,e)=>{var n;const{prefixCls:r,bordered:o=!0,size:l,disabled:s,status:u,allowClear:d,classNames:f,rootClassName:m,className:p,style:g,styles:b,variant:S,showCount:x,onMouseDown:w,onResize:O}=t,E=wne(t,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]);{const{deprecated:$e}=rr("TextArea");$e(!("bordered"in t),"bordered","variant")}const{getPrefixCls:M,direction:T,allowClear:$,autoComplete:N,className:A,style:z,classNames:P,styles:B}=di("textArea"),L=y.useContext(ea),W=s??L,{status:q,hasFeedback:H,feedbackIcon:J}=y.useContext(zi),_=xm(q,u),j=y.useRef(null);y.useImperativeHandle(e,()=>{var $e;return{resizableTextArea:($e=j.current)===null||$e===void 0?void 0:$e.resizableTextArea,focus:Pe=>{var Ze,We;mE((We=(Ze=j.current)===null||Ze===void 0?void 0:Ze.resizableTextArea)===null||We===void 0?void 0:We.textArea,Pe)},blur:()=>{var Pe;return(Pe=j.current)===null||Pe===void 0?void 0:Pe.blur()}}});const V=M("input",r),G=El(V),[K,Y,ne]=ZH(V,m),[ae]=xne(V,G),{compactSize:Q,compactItemClassnames:se}=Ds(V,T),de=ra($e=>{var Pe;return(Pe=l??Q)!==null&&Pe!==void 0?Pe:$e}),[xe,fe]=Oy("textArea",S,o),Me=mj(d??$),[ze,Oe]=y.useState(!1),[he,De]=y.useState(!1),pe=$e=>{Oe(!0),w==null||w($e);const Pe=()=>{Oe(!1),document.removeEventListener("mouseup",Pe)};document.addEventListener("mouseup",Pe)},we=$e=>{var Pe,Ze;if(O==null||O($e),ze&&typeof getComputedStyle=="function"){const We=(Ze=(Pe=j.current)===null||Pe===void 0?void 0:Pe.nativeElement)===null||Ze===void 0?void 0:Ze.querySelector("textarea");We&&getComputedStyle(We).resize==="both"&&De(!0)}};return K(ae(y.createElement(Sne,Object.assign({autoComplete:N},E,{style:Object.assign(Object.assign({},z),g),styles:Object.assign(Object.assign({},B),b),disabled:W,allowClear:Me,className:Se(ne,G,p,m,se,A,he&&`${V}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},f),P),{textarea:Se({[`${V}-sm`]:de==="small",[`${V}-lg`]:de==="large"},Y,f==null?void 0:f.textarea,P.textarea,ze&&`${V}-mouse-active`),variant:Se({[`${V}-${xe}`]:fe},Yc(V,_)),affixWrapper:Se(`${V}-textarea-affix-wrapper`,{[`${V}-affix-wrapper-rtl`]:T==="rtl",[`${V}-affix-wrapper-sm`]:de==="small",[`${V}-affix-wrapper-lg`]:de==="large",[`${V}-textarea-show-count`]:x||((n=t.count)===null||n===void 0?void 0:n.show)},Y)}),prefixCls:V,suffix:H&&y.createElement("span",{className:`${V}-textarea-suffix`},J),showCount:x,ref:j,onResize:we,onMouseDown:pe}))))}),ml=qd;ml.Group=Jte;ml.Search=Nj;ml.TextArea=Ene;ml.Password=$j;ml.OTP=ane;var One=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};const Rne=t=>{const{prefixCls:e,className:n,closeIcon:r,closable:o,type:l,title:s,children:u,footer:d}=t,f=One(t,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:m}=y.useContext(Tn),p=m(),g=e||m("modal"),b=El(p),[S,x,w]=NB(g,b),O=`${g}-confirm`;let E={};return l?E={closable:o??!1,title:"",footer:"",children:y.createElement(DB,Object.assign({},t,{prefixCls:g,confirmPrefixCls:O,rootPrefixCls:p,content:u}))}:E={closable:o??!0,title:s,footer:d!==null&&y.createElement(RB,Object.assign({},t)),children:u},S(y.createElement(Hw,Object.assign({prefixCls:g,className:Se(x,`${g}-pure-panel`,l&&O,l&&`${O}-${l}`,n,w,b)},f,{closeIcon:OB(g,r),closable:o},E)))},Tne=LB(Rne);function Aj(t){return Sm(zB(t))}const _i=AB;_i.useModal=cX;_i.info=function(e){return Sm(_B(e))};_i.success=function(e){return Sm(BB(e))};_i.error=function(e){return Sm(HB(e))};_i.warning=Aj;_i.warn=Aj;_i.confirm=function(e){return Sm(jB(e))};_i.destroyAll=function(){for(;Dc.length;){const e=Dc.pop();e&&e()}};_i.config=oX;_i._InternalPanelDoNotUseOrYouWillBeFired=Tne;_i.displayName="Modal";/**
694
- * @license lucide-react v0.484.0 - ISC
695
- *
696
- * This source code is licensed under the ISC license.
697
- * See the LICENSE file in the root directory of this source tree.
698
- */const Mne=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),$ne=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,n,r)=>r?r.toUpperCase():n.toLowerCase()),YI=t=>{const e=$ne(t);return e.charAt(0).toUpperCase()+e.slice(1)},Dj=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim();/**
699
- * @license lucide-react v0.484.0 - ISC
700
- *
701
- * This source code is licensed under the ISC license.
702
- * See the LICENSE file in the root directory of this source tree.
703
- */var Nne={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
704
- * @license lucide-react v0.484.0 - ISC
705
- *
706
- * This source code is licensed under the ISC license.
707
- * See the LICENSE file in the root directory of this source tree.
708
- */const Ane=y.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:l,iconNode:s,...u},d)=>y.createElement("svg",{ref:d,...Nne,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:Dj("lucide",o),...u},[...s.map(([f,m])=>y.createElement(f,m)),...Array.isArray(l)?l:[l]]));/**
709
- * @license lucide-react v0.484.0 - ISC
710
- *
711
- * This source code is licensed under the ISC license.
712
- * See the LICENSE file in the root directory of this source tree.
713
- */const Pn=(t,e)=>{const n=y.forwardRef(({className:r,...o},l)=>y.createElement(Ane,{ref:l,iconNode:e,className:Dj(`lucide-${Mne(YI(t))}`,`lucide-${t}`,r),...o}));return n.displayName=YI(t),n};/**
714
- * @license lucide-react v0.484.0 - ISC
715
- *
716
- * This source code is licensed under the ISC license.
717
- * See the LICENSE file in the root directory of this source tree.
718
- */const Dne=[["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 18H5",key:"18s9l3"}],["path",{d:"M21 6H3",key:"1jwq7v"}]],Ine=Pn("align-center",Dne);/**
719
- * @license lucide-react v0.484.0 - ISC
720
- *
721
- * This source code is licensed under the ISC license.
722
- * See the LICENSE file in the root directory of this source tree.
723
- */const kne=[["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 18h18",key:"1h113x"}],["path",{d:"M3 6h18",key:"d0wm0j"}]],Pne=Pn("align-justify",kne);/**
724
- * @license lucide-react v0.484.0 - ISC
725
- *
726
- * This source code is licensed under the ISC license.
727
- * See the LICENSE file in the root directory of this source tree.
728
- */const zne=[["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 18H3",key:"1amg6g"}],["path",{d:"M21 6H3",key:"1jwq7v"}]],_ne=Pn("align-left",zne);/**
729
- * @license lucide-react v0.484.0 - ISC
730
- *
731
- * This source code is licensed under the ISC license.
732
- * See the LICENSE file in the root directory of this source tree.
733
- */const Bne=[["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 18H7",key:"1ygte8"}],["path",{d:"M21 6H3",key:"1jwq7v"}]],Hne=Pn("align-right",Bne);/**
734
- * @license lucide-react v0.484.0 - ISC
735
- *
736
- * This source code is licensed under the ISC license.
737
- * See the LICENSE file in the root directory of this source tree.
738
- */const jne=[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]],Lne=Pn("bold",jne);/**
739
- * @license lucide-react v0.484.0 - ISC
740
- *
741
- * This source code is licensed under the ISC license.
742
- * See the LICENSE file in the root directory of this source tree.
743
- */const Vne=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Fne=Pn("chevron-down",Vne);/**
744
- * @license lucide-react v0.484.0 - ISC
745
- *
746
- * This source code is licensed under the ISC license.
747
- * See the LICENSE file in the root directory of this source tree.
748
- */const Une=[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]],Wne=Pn("code",Une);/**
749
- * @license lucide-react v0.484.0 - ISC
750
- *
751
- * This source code is licensed under the ISC license.
752
- * See the LICENSE file in the root directory of this source tree.
753
- */const qne=[["polyline",{points:"15 10 20 15 15 20",key:"1q7qjw"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]],Gne=Pn("corner-down-right",qne);/**
754
- * @license lucide-react v0.484.0 - ISC
755
- *
756
- * This source code is licensed under the ISC license.
757
- * See the LICENSE file in the root directory of this source tree.
758
- */const Kne=[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"m17 12 3-2v8",key:"1hhhft"}]],JC=Pn("heading-1",Kne);/**
759
- * @license lucide-react v0.484.0 - ISC
760
- *
761
- * This source code is licensed under the ISC license.
762
- * See the LICENSE file in the root directory of this source tree.
763
- */const Yne=[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1",key:"9jr5yi"}]],XI=Pn("heading-2",Yne);/**
764
- * @license lucide-react v0.484.0 - ISC
765
- *
766
- * This source code is licensed under the ISC license.
767
- * See the LICENSE file in the root directory of this source tree.
768
- */const Xne=[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2",key:"68ncm8"}],["path",{d:"M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2",key:"1ejuhz"}]],QI=Pn("heading-3",Xne);/**
769
- * @license lucide-react v0.484.0 - ISC
770
- *
771
- * This source code is licensed under the ISC license.
772
- * See the LICENSE file in the root directory of this source tree.
773
- */const Qne=[["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M17 10v3a1 1 0 0 0 1 1h3",key:"tj5zdr"}],["path",{d:"M21 10v8",key:"1kdml4"}],["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}]],ZI=Pn("heading-4",Qne);/**
774
- * @license lucide-react v0.484.0 - ISC
775
- *
776
- * This source code is licensed under the ISC license.
777
- * See the LICENSE file in the root directory of this source tree.
778
- */const Zne=[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M17 13v-3h4",key:"1nvgqp"}],["path",{d:"M17 17.7c.4.2.8.3 1.3.3 1.5 0 2.7-1.1 2.7-2.5S19.8 13 18.3 13H17",key:"2nebdn"}]],JI=Pn("heading-5",Zne);/**
779
- * @license lucide-react v0.484.0 - ISC
780
- *
781
- * This source code is licensed under the ISC license.
782
- * See the LICENSE file in the root directory of this source tree.
783
- */const Jne=[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["circle",{cx:"19",cy:"16",r:"2",key:"15mx69"}],["path",{d:"M20 10c-2 2-3 3.5-3 6",key:"f35dl0"}]],ek=Pn("heading-6",Jne);/**
784
- * @license lucide-react v0.484.0 - ISC
785
- *
786
- * This source code is licensed under the ISC license.
787
- * See the LICENSE file in the root directory of this source tree.
788
- */const ere=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],tre=Pn("image",ere);/**
789
- * @license lucide-react v0.484.0 - ISC
790
- *
791
- * This source code is licensed under the ISC license.
792
- * See the LICENSE file in the root directory of this source tree.
793
- */const nre=[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]],rre=Pn("italic",nre);/**
794
- * @license lucide-react v0.484.0 - ISC
795
- *
796
- * This source code is licensed under the ISC license.
797
- * See the LICENSE file in the root directory of this source tree.
798
- */const ore=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],ire=Pn("layers",ore);/**
799
- * @license lucide-react v0.484.0 - ISC
800
- *
801
- * This source code is licensed under the ISC license.
802
- * See the LICENSE file in the root directory of this source tree.
803
- */const are=[["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]],lre=Pn("list-ordered",are);/**
804
- * @license lucide-react v0.484.0 - ISC
805
- *
806
- * This source code is licensed under the ISC license.
807
- * See the LICENSE file in the root directory of this source tree.
808
- */const sre=[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]],cre=Pn("list",sre);/**
809
- * @license lucide-react v0.484.0 - ISC
810
- *
811
- * This source code is licensed under the ISC license.
812
- * See the LICENSE file in the root directory of this source tree.
813
- */const ure=[["path",{d:"M5 12h14",key:"1ays0h"}]],dre=Pn("minus",ure);/**
814
- * @license lucide-react v0.484.0 - ISC
815
- *
816
- * This source code is licensed under the ISC license.
817
- * See the LICENSE file in the root directory of this source tree.
818
- */const fre=[["path",{d:"m19 11-8-8-8.6 8.6a2 2 0 0 0 0 2.8l5.2 5.2c.8.8 2 .8 2.8 0L19 11Z",key:"irua1i"}],["path",{d:"m5 2 5 5",key:"1lls2c"}],["path",{d:"M2 13h15",key:"1hkzvu"}],["path",{d:"M22 20a2 2 0 1 1-4 0c0-1.6 1.7-2.4 2-4 .3 1.6 2 2.4 2 4Z",key:"xk76lq"}]],hre=Pn("paint-bucket",fre);/**
819
- * @license lucide-react v0.484.0 - ISC
820
- *
821
- * This source code is licensed under the ISC license.
822
- * See the LICENSE file in the root directory of this source tree.
823
- */const mre=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],pre=Pn("plus",mre);/**
824
- * @license lucide-react v0.484.0 - ISC
825
- *
826
- * This source code is licensed under the ISC license.
827
- * See the LICENSE file in the root directory of this source tree.
828
- */const gre=[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]],vre=Pn("quote",gre);/**
829
- * @license lucide-react v0.484.0 - ISC
830
- *
831
- * This source code is licensed under the ISC license.
832
- * See the LICENSE file in the root directory of this source tree.
833
- */const yre=[["path",{d:"M21 7v6h-6",key:"3ptur4"}],["path",{d:"M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7",key:"1kgawr"}]],bre=Pn("redo",yre);/**
834
- * @license lucide-react v0.484.0 - ISC
835
- *
836
- * This source code is licensed under the ISC license.
837
- * See the LICENSE file in the root directory of this source tree.
838
- */const Sre=[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Cre=Pn("square-check-big",Sre);/**
839
- * @license lucide-react v0.484.0 - ISC
840
- *
841
- * This source code is licensed under the ISC license.
842
- * See the LICENSE file in the root directory of this source tree.
843
- */const xre=[["path",{d:"M16 4H9a3 3 0 0 0-2.83 4",key:"43sutm"}],["path",{d:"M14 12a4 4 0 0 1 0 8H6",key:"nlfj13"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}]],wre=Pn("strikethrough",xre);/**
844
- * @license lucide-react v0.484.0 - ISC
845
- *
846
- * This source code is licensed under the ISC license.
847
- * See the LICENSE file in the root directory of this source tree.
848
- */const Ere=[["path",{d:"m4 5 8 8",key:"1eunvl"}],["path",{d:"m12 5-8 8",key:"1ah0jp"}],["path",{d:"M20 19h-4c0-1.5.44-2 1.5-2.5S20 15.33 20 14c0-.47-.17-.93-.48-1.29a2.11 2.11 0 0 0-2.62-.44c-.42.24-.74.62-.9 1.07",key:"e8ta8j"}]],Ore=Pn("subscript",Ere);/**
849
- * @license lucide-react v0.484.0 - ISC
850
- *
851
- * This source code is licensed under the ISC license.
852
- * See the LICENSE file in the root directory of this source tree.
853
- */const Rre=[["path",{d:"m4 19 8-8",key:"hr47gm"}],["path",{d:"m12 19-8-8",key:"1dhhmo"}],["path",{d:"M20 12h-4c0-1.5.442-2 1.5-2.5S20 8.334 20 7.002c0-.472-.17-.93-.484-1.29a2.105 2.105 0 0 0-2.617-.436c-.42.239-.738.614-.899 1.06",key:"1dfcux"}]],Tre=Pn("superscript",Rre);/**
854
- * @license lucide-react v0.484.0 - ISC
855
- *
856
- * This source code is licensed under the ISC license.
857
- * See the LICENSE file in the root directory of this source tree.
858
- */const Mre=[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]],$re=Pn("table",Mre);/**
859
- * @license lucide-react v0.484.0 - ISC
860
- *
861
- * This source code is licensed under the ISC license.
862
- * See the LICENSE file in the root directory of this source tree.
863
- */const Nre=[["path",{d:"M17 22h-1a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4h1",key:"uvaxm9"}],["path",{d:"M7 22h1a4 4 0 0 0 4-4v-1",key:"11xy8d"}],["path",{d:"M7 2h1a4 4 0 0 1 4 4v1",key:"1uw06m"}]],Are=Pn("text-cursor",Nre);/**
864
- * @license lucide-react v0.484.0 - ISC
865
- *
866
- * This source code is licensed under the ISC license.
867
- * See the LICENSE file in the root directory of this source tree.
868
- */const Dre=[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]],Ire=Pn("underline",Dre);/**
869
- * @license lucide-react v0.484.0 - ISC
870
- *
871
- * This source code is licensed under the ISC license.
872
- * See the LICENSE file in the root directory of this source tree.
873
- */const kre=[["path",{d:"M3 7v6h6",key:"1v2h90"}],["path",{d:"M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13",key:"1r6uu6"}]],Pre=Pn("undo",kre);/**
874
- * @license lucide-react v0.484.0 - ISC
875
- *
876
- * This source code is licensed under the ISC license.
877
- * See the LICENSE file in the root directory of this source tree.
878
- */const zre=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],_re=Pn("x",zre);function Hv({value:t,onChange:e}){return He.jsxDEV(Dy,{value:t,onChange:e,presets:[{label:"Recommended",colors:["#1677ff","#52c41a","#faad14","#ff4d4f","#722ed1","#13c2c2","#ffffff","#000000"]}]},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/shared/components/color-picker/color-picker.component.tsx",lineNumber:7,columnNumber:9},this)}function Bre({editor:t}){const[e,n]=y.useState("#1677ff"),[r,o]=y.useState("#ffffff"),l=d=>{const f=d.toHexString();n(f),t.chain().focus().setColor(f).run()},s=d=>{const f=d.toHexString();o(f),t.chain().focus().setHighlight({color:f}).run()},u=d=>{d.preventDefault()};return He.jsxDEV("div",{className:"flex items-center gap-4",children:[He.jsxDEV(Os,{title:"Text Color",children:He.jsxDEV("div",{className:"flex items-center gap-2",onMouseDown:u,children:[He.jsxDEV(Are,{size:20,color:"black"},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/color-picker/color-picker.component.tsx",lineNumber:36,columnNumber:21},this),He.jsxDEV(Hv,{value:e,onChange:l},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/color-picker/color-picker.component.tsx",lineNumber:37,columnNumber:21},this)]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/modules/color-picker/color-picker.component.tsx",lineNumber:35,columnNumber:17},this)},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/color-picker/color-picker.component.tsx",lineNumber:34,columnNumber:13},this),He.jsxDEV(Os,{title:"Highlight Color",children:He.jsxDEV("div",{className:"flex items-center gap-2",onMouseDown:u,children:[He.jsxDEV(hre,{size:20,color:"black"},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/color-picker/color-picker.component.tsx",lineNumber:44,columnNumber:21},this),He.jsxDEV(Hv,{value:r,onChange:s},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/color-picker/color-picker.component.tsx",lineNumber:45,columnNumber:21},this)]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/modules/color-picker/color-picker.component.tsx",lineNumber:43,columnNumber:17},this)},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/color-picker/color-picker.component.tsx",lineNumber:42,columnNumber:13},this)]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/modules/color-picker/color-picker.component.tsx",lineNumber:32,columnNumber:9},this)}function Hre({editor:t}){if(!t)return null;const e=()=>{for(let r=1;r<=6;r++)if(t.isActive("heading",{level:r}))switch(r){case 1:return He.jsxDEV(JC,{size:16},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/heading/heading.component.tsx",lineNumber:26,columnNumber:36},this);case 2:return He.jsxDEV(XI,{size:16},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/heading/heading.component.tsx",lineNumber:27,columnNumber:36},this);case 3:return He.jsxDEV(QI,{size:16},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/heading/heading.component.tsx",lineNumber:28,columnNumber:36},this);case 4:return He.jsxDEV(ZI,{size:16},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/heading/heading.component.tsx",lineNumber:29,columnNumber:36},this);case 5:return He.jsxDEV(JI,{size:16},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/heading/heading.component.tsx",lineNumber:30,columnNumber:36},this);case 6:return He.jsxDEV(ek,{size:16},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/heading/heading.component.tsx",lineNumber:31,columnNumber:36},this)}return He.jsxDEV(JC,{size:16},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/heading/heading.component.tsx",lineNumber:35,columnNumber:16},this)},n=[...Array.from({length:6},(r,o)=>({key:`${o+1}`,label:He.jsxDEV("div",{className:"flex items-center gap-2",onClick:()=>t.chain().focus().toggleHeading({level:o+1}).run(),children:[ee.createElement([JC,XI,QI,ZI,JI,ek][o],{size:16}),He.jsxDEV("span",{children:["Heading",o+1]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/modules/heading/heading.component.tsx",lineNumber:44,columnNumber:21},this)]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/modules/heading/heading.component.tsx",lineNumber:42,columnNumber:17},this),className:t.isActive("heading",{level:o+1})?"ant-dropdown-menu-item-active":""}))];return He.jsxDEV(Iy,{menu:{items:n},trigger:["hover"],placement:"bottomLeft",children:He.jsxDEV("button",{className:"flex items-center gap-1 p-2 rounded-md hover:bg-blue-100 hover:text-blue-600",type:"button",children:e()},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/heading/heading.component.tsx",lineNumber:56,columnNumber:13},this)},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/heading/heading.component.tsx",lineNumber:55,columnNumber:9},this)}const jre=8,Lre=8;function Vre({editor:t,buttonClass:e,activeClass:n}){const[r,o]=y.useState({rows:0,cols:0}),[l,s]=y.useState(!1),u=y.useCallback((d,f)=>{t&&(t.chain().focus().insertTable({rows:d,cols:f,withHeaderRow:!0}).run(),s(!1))},[t]);return He.jsxDEV(Iy,{open:l,onOpenChange:d=>s(d),trigger:["hover"],dropdownRender:()=>He.jsxDEV("div",{className:"w-56 p-4 bg-white border border-gray-300 rounded-lg shadow-xl",children:[He.jsxDEV("div",{className:"grid grid-cols-8 gap-1",children:Array.from({length:jre}).map((d,f)=>Array.from({length:Lre}).map((m,p)=>{const g=f<r.rows&&p<r.cols;return He.jsxDEV("div",{className:`w-5 h-5 border rounded-sm cursor-pointer transition-all duration-200 ${g?"bg-blue-400 border-white scale-110":"bg-gray-200 hover:bg-gray-300"}`,onMouseEnter:()=>o({rows:f+1,cols:p+1}),onClick:b=>{b.stopPropagation(),u(f+1,p+1)}},`${f}-${p}`,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/table/table.component.tsx",lineNumber:47,columnNumber:41},this)}))},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/table/table.component.tsx",lineNumber:39,columnNumber:21},this),He.jsxDEV("div",{className:"mt-3 text-sm font-medium text-center text-gray-700",children:r.rows>0&&r.cols>0?`${r.rows} × ${r.cols} Table`:"Insert Table"},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/table/table.component.tsx",lineNumber:73,columnNumber:21},this)]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/modules/table/table.component.tsx",lineNumber:38,columnNumber:17},this),children:He.jsxDEV("button",{type:"button",className:`${e} ${l?n:""} transition-all`,onClick:d=>{d.preventDefault(),s(!l)},children:He.jsxDEV($re,{className:"w-5 h-5"},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/table/table.component.tsx",lineNumber:91,columnNumber:17},this)},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/table/table.component.tsx",lineNumber:81,columnNumber:13},this)},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/table/table.component.tsx",lineNumber:33,columnNumber:9},this)}function Fre({editor:t}){const[e,n]=y.useState(!1);return He.jsxDEV("div",{className:"relative",children:[He.jsxDEV("button",{type:"button",className:`p-1 text-black transition-all duration-300 rounded-md shadow-lg hover:bg-blue-100 hover:text-blue-600 ${e?"bg-blue-100 text-blue-600":""}`,onClick:r=>{r.preventDefault(),r.stopPropagation(),n(!e)},children:e?He.jsxDEV(_re,{size:24},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/custom.tsx",lineNumber:20,columnNumber:25},this):He.jsxDEV(ire,{size:24},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/custom.tsx",lineNumber:20,columnNumber:43},this)},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/custom.tsx",lineNumber:9,columnNumber:13},this),e&&He.jsxDEV("div",{className:"fixed z-40 w-64 p-4 bg-white border border-gray-200 rounded-lg shadow-xl bottom-20 right-4 animate-slide-up",children:He.jsxDEV("div",{className:"space-y-2",children:[He.jsxDEV("h3",{className:"mb-3 font-bold text-center text-gray-700",children:"Custom Extensions"},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/custom.tsx",lineNumber:26,columnNumber:25},this),He.jsxDEV("button",{type:"button",onClick:()=>{t.chain().focus().insertContent({type:"accordion",content:[{type:"paragraph",content:[{type:"text",text:"Accordion content"}]}]}).run()},className:"flex items-center justify-center w-full gap-2 px-3 py-1 text-blue-600 duration-300 rounded-md bg-blue-50 hover:bg-blue-100 hover:text-blue-700",children:[He.jsxDEV(pre,{size:16},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/custom.tsx",lineNumber:54,columnNumber:29},this)," Accordion"]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/custom.tsx",lineNumber:30,columnNumber:25},this)]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/custom.tsx",lineNumber:25,columnNumber:21},this)},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/custom.tsx",lineNumber:24,columnNumber:17},this)]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/custom.tsx",lineNumber:8,columnNumber:9},this)}function Ure({editor:t}){if(!t)return null;const e="p-2 rounded-md transition-all duration-200 hover:bg-blue-100 hover:text-blue-600",n="bg-blue-100 text-blue-600",r=(o,l,s,u,d)=>He.jsxDEV(Os,{title:d,children:He.jsxDEV("button",{type:"button",onClick:l,disabled:u,className:`
879
- ${e}
880
- ${s?n:""}
881
- ${u?"opacity-50 cursor-not-allowed":""}
882
- `,children:o},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:46,columnNumber:13},this)},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:45,columnNumber:9},this);return He.jsxDEV("div",{className:"flex flex-wrap items-center gap-2 p-2 border-b border-gray-200 rounded-t-lg bg-gray-50",children:[He.jsxDEV("div",{className:"flex items-center gap-1",children:[r(He.jsxDEV(Lne,{size:16},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:66,columnNumber:21},this),()=>t.chain().focus().toggleBold().run(),t.isActive("bold"),!1,"Bold"),r(He.jsxDEV(rre,{size:16},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:73,columnNumber:21},this),()=>t.chain().focus().toggleItalic().run(),t.isActive("italic"),!1,"Italic"),r(He.jsxDEV(Ire,{size:16},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:80,columnNumber:21},this),()=>t.chain().focus().toggleUnderline().run(),t.isActive("underline"),!1,"Underline"),r(He.jsxDEV(wre,{size:16},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:87,columnNumber:21},this),()=>t.chain().focus().toggleStrike().run(),t.isActive("strike"),!1,"Strikethrough"),r(He.jsxDEV(Wne,{size:16},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:94,columnNumber:21},this),()=>t.chain().focus().toggleCode().run(),t.isActive("code"),!1,"Code"),r(He.jsxDEV(Ore,{size:16},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:101,columnNumber:21},this),()=>t.chain().focus().toggleSubscript().run(),t.isActive("subscript"),!1,"Subscript"),r(He.jsxDEV(Tre,{size:16},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:108,columnNumber:21},this),()=>t.chain().focus().toggleSuperscript().run(),t.isActive("superscript"),!1,"Superscript")]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:64,columnNumber:13},this),He.jsxDEV("div",{className:"h-5 w-[1px] bg-gray-300 mx-2"},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:116,columnNumber:13},this),He.jsxDEV(Hre,{editor:t},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:119,columnNumber:13},this),He.jsxDEV("div",{className:"h-5 w-[1px] bg-gray-300 mx-2"},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:121,columnNumber:13},this),He.jsxDEV("div",{className:"flex items-center gap-1",children:[r(He.jsxDEV(_ne,{size:16},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:126,columnNumber:21},this),()=>t.chain().focus().setTextAlign("left").run(),t.isActive({textAlign:"left"}),!1,"Align Left"),r(He.jsxDEV(Ine,{size:16},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:133,columnNumber:21},this),()=>t.chain().focus().setTextAlign("center").run(),t.isActive({textAlign:"center"}),!1,"Align Center"),r(He.jsxDEV(Hne,{size:16},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:140,columnNumber:21},this),()=>t.chain().focus().setTextAlign("right").run(),t.isActive({textAlign:"right"}),!1,"Align Right"),r(He.jsxDEV(Pne,{size:16},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:147,columnNumber:21},this),()=>t.chain().focus().setTextAlign("justify").run(),t.isActive({textAlign:"justify"}),!1,"Align Justify")]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:124,columnNumber:13},this),He.jsxDEV("div",{className:"h-5 w-[1px] bg-gray-300 mx-2"},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:155,columnNumber:13},this),He.jsxDEV("div",{className:"flex items-center gap-1",children:[r(He.jsxDEV(cre,{size:16},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:160,columnNumber:21},this),()=>t.chain().focus().toggleBulletList().run(),t.isActive("bulletList"),!1,"Bullet List"),r(He.jsxDEV(lre,{size:16},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:167,columnNumber:21},this),()=>t.chain().focus().toggleOrderedList().run(),t.isActive("orderedList"),!1,"Ordered List"),r(He.jsxDEV(Cre,{size:16},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:174,columnNumber:21},this),()=>t.chain().focus().toggleTaskList().run(),t.isActive("taskList"),!1,"Task List")]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:158,columnNumber:13},this),He.jsxDEV("div",{className:"h-5 w-[1px] bg-gray-300 mx-2"},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:182,columnNumber:13},this),He.jsxDEV("div",{className:"flex items-center gap-1",children:[r(He.jsxDEV(vre,{size:16},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:187,columnNumber:21},this),()=>t.chain().focus().toggleBlockquote().run(),t.isActive("blockquote"),!1,"Blockquote"),He.jsxDEV(Vre,{editor:t,buttonClass:e,activeClass:n},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:193,columnNumber:17},this),r(He.jsxDEV(dre,{size:16},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:195,columnNumber:21},this),()=>t.chain().focus().setHorizontalRule().run(),!1,!1,"Horizontal Rule"),r(He.jsxDEV(Gne,{size:16},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:202,columnNumber:21},this),()=>t.chain().focus().setHardBreak().run(),!1,!1,"Line Break")]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:185,columnNumber:13},this),He.jsxDEV("div",{className:"h-5 w-[1px] bg-gray-300 mx-2"},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:210,columnNumber:13},this),He.jsxDEV("div",{className:"flex items-center gap-1",children:[r(He.jsxDEV(Pre,{size:16},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:215,columnNumber:21},this),()=>t.chain().focus().undo().run(),!1,!t.can().chain().focus().undo().run()),r(He.jsxDEV(bre,{size:16},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:221,columnNumber:21},this),()=>t.chain().focus().redo().run(),!1,!t.can().chain().focus().redo().run())]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:213,columnNumber:13},this),He.jsxDEV("div",{className:"h-5 w-[1px] bg-gray-300 mx-2"},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:228,columnNumber:13},this),r(He.jsxDEV(tre,{size:16},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:231,columnNumber:17},this),()=>{const o=prompt("Enter the image URL");o&&t.chain().focus().insertContent({type:"image",attrs:{src:o,width:50,height:50,marginLeft:0,marginRight:0}}).run()},!1,!1,"Insert Image"),He.jsxDEV("div",{className:"h-5 w-[1px] bg-gray-300 mx-2"},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:252,columnNumber:13},this),He.jsxDEV(Bre,{editor:t},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:255,columnNumber:13},this),He.jsxDEV("div",{className:"h-5 w-[1px] bg-gray-300 mx-2"},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:257,columnNumber:13},this),He.jsxDEV(Fre,{editor:t},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:258,columnNumber:13},this)]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/modules/toolbar/index.tsx",lineNumber:62,columnNumber:9},this)}const Wre=t=>{if(!t.children.length)return;const e=t.querySelectorAll("span");e&&e.forEach(n=>{var r,o;const l=n.getAttribute("style"),s=(o=(r=n.parentElement)===null||r===void 0?void 0:r.closest("span"))===null||o===void 0?void 0:o.getAttribute("style");n.setAttribute("style",`${s};${l}`)})},tk=ka.create({name:"textStyle",priority:101,addOptions(){return{HTMLAttributes:{},mergeNestedSpanStyles:!1}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?(this.options.mergeNestedSpanStyles&&Wre(t),{}):!1}]},renderHTML({HTMLAttributes:t}){return["span",Zn(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({tr:t})=>{const{selection:e}=t;return t.doc.nodesBetween(e.from,e.to,(n,r)=>{if(n.isTextblock)return!0;n.marks.filter(o=>o.type===this.type).some(o=>Object.values(o.attrs).some(l=>!!l))||t.removeMark(r,r+n.nodeSize,this.type)}),!0}}}}),qre=lo.create({name:"color",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:t=>{var e;return(e=t.style.color)===null||e===void 0?void 0:e.replace(/['"]+/g,"")},renderHTML:t=>t.color?{style:`color: ${t.color}`}:{}}}}]},addCommands(){return{setColor:t=>({chain:e})=>e().setMark("textStyle",{color:t}).run(),unsetColor:()=>({chain:t})=>t().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()}}}),Gre=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,Kre=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,Yre=ka.create({name:"highlight",addOptions(){return{multicolor:!1,HTMLAttributes:{}}},addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:t=>t.getAttribute("data-color")||t.style.backgroundColor,renderHTML:t=>t.color?{"data-color":t.color,style:`background-color: ${t.color}; color: inherit`}:{}}}:{}},parseHTML(){return[{tag:"mark"}]},renderHTML({HTMLAttributes:t}){return["mark",Zn(this.options.HTMLAttributes,t),0]},addCommands(){return{setHighlight:t=>({commands:e})=>e.setMark(this.name,t),toggleHighlight:t=>({commands:e})=>e.toggleMark(this.name,t),unsetHighlight:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[Wc({find:Gre,type:this.type})]},addPasteRules(){return[qc({find:Kre,type:this.type})]}}),Ij=wr.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",Zn(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),Xre=ka.create({name:"subscript",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"sub"},{style:"vertical-align",getAttrs(t){return t!=="sub"?!1:null}}]},renderHTML({HTMLAttributes:t}){return["sub",Zn(this.options.HTMLAttributes,t),0]},addCommands(){return{setSubscript:()=>({commands:t})=>t.setMark(this.name),toggleSubscript:()=>({commands:t})=>t.toggleMark(this.name),unsetSubscript:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-,":()=>this.editor.commands.toggleSubscript()}}}),Qre=ka.create({name:"superscript",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"sup"},{style:"vertical-align",getAttrs(t){return t!=="super"?!1:null}}]},renderHTML({HTMLAttributes:t}){return["sup",Zn(this.options.HTMLAttributes,t),0]},addCommands(){return{setSuperscript:()=>({commands:t})=>t.setMark(this.name),toggleSuperscript:()=>({commands:t})=>t.toggleMark(this.name),unsetSuperscript:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-.":()=>this.editor.commands.toggleSuperscript()}}});var zx,_x;if(typeof WeakMap<"u"){let t=new WeakMap;zx=e=>t.get(e),_x=(e,n)=>(t.set(e,n),n)}else{const t=[];let n=0;zx=r=>{for(let o=0;o<t.length;o+=2)if(t[o]==r)return t[o+1]},_x=(r,o)=>(n==10&&(n=0),t[n++]=r,t[n++]=o)}var xr=class{constructor(t,e,n,r){this.width=t,this.height=e,this.map=n,this.problems=r}findCell(t){for(let e=0;e<this.map.length;e++){const n=this.map[e];if(n!=t)continue;const r=e%this.width,o=e/this.width|0;let l=r+1,s=o+1;for(let u=1;l<this.width&&this.map[e+u]==n;u++)l++;for(let u=1;s<this.height&&this.map[e+this.width*u]==n;u++)s++;return{left:r,top:o,right:l,bottom:s}}throw new RangeError(`No cell with offset ${t} found`)}colCount(t){for(let e=0;e<this.map.length;e++)if(this.map[e]==t)return e%this.width;throw new RangeError(`No cell with offset ${t} found`)}nextCell(t,e,n){const{left:r,right:o,top:l,bottom:s}=this.findCell(t);return e=="horiz"?(n<0?r==0:o==this.width)?null:this.map[l*this.width+(n<0?r-1:o)]:(n<0?l==0:s==this.height)?null:this.map[r+this.width*(n<0?l-1:s)]}rectBetween(t,e){const{left:n,right:r,top:o,bottom:l}=this.findCell(t),{left:s,right:u,top:d,bottom:f}=this.findCell(e);return{left:Math.min(n,s),top:Math.min(o,d),right:Math.max(r,u),bottom:Math.max(l,f)}}cellsInRect(t){const e=[],n={};for(let r=t.top;r<t.bottom;r++)for(let o=t.left;o<t.right;o++){const l=r*this.width+o,s=this.map[l];n[s]||(n[s]=!0,!(o==t.left&&o&&this.map[l-1]==s||r==t.top&&r&&this.map[l-this.width]==s)&&e.push(s))}return e}positionAt(t,e,n){for(let r=0,o=0;;r++){const l=o+n.child(r).nodeSize;if(r==t){let s=e+t*this.width;const u=(t+1)*this.width;for(;s<u&&this.map[s]<o;)s++;return s==u?l-1:this.map[s]}o=l}}static get(t){return zx(t)||_x(t,Zre(t))}};function Zre(t){if(t.type.spec.tableRole!="table")throw new RangeError("Not a table node: "+t.type.name);const e=Jre(t),n=t.childCount,r=[];let o=0,l=null;const s=[];for(let f=0,m=e*n;f<m;f++)r[f]=0;for(let f=0,m=0;f<n;f++){const p=t.child(f);m++;for(let S=0;;S++){for(;o<r.length&&r[o]!=0;)o++;if(S==p.childCount)break;const x=p.child(S),{colspan:w,rowspan:O,colwidth:E}=x.attrs;for(let M=0;M<O;M++){if(M+f>=n){(l||(l=[])).push({type:"overlong_rowspan",pos:m,n:O-M});break}const T=o+M*e;for(let $=0;$<w;$++){r[T+$]==0?r[T+$]=m:(l||(l=[])).push({type:"collision",row:f,pos:m,n:w-$});const N=E&&E[$];if(N){const A=(T+$)%e*2,z=s[A];z==null||z!=N&&s[A+1]==1?(s[A]=N,s[A+1]=1):z==N&&s[A+1]++}}}o+=w,m+=x.nodeSize}const g=(f+1)*e;let b=0;for(;o<g;)r[o++]==0&&b++;b&&(l||(l=[])).push({type:"missing",row:f,n:b}),m++}(e===0||n===0)&&(l||(l=[])).push({type:"zero_sized"});const u=new xr(e,n,r,l);let d=!1;for(let f=0;!d&&f<s.length;f+=2)s[f]!=null&&s[f+1]<n&&(d=!0);return d&&eoe(u,s,t),u}function Jre(t){let e=-1,n=!1;for(let r=0;r<t.childCount;r++){const o=t.child(r);let l=0;if(n)for(let s=0;s<r;s++){const u=t.child(s);for(let d=0;d<u.childCount;d++){const f=u.child(d);s+f.attrs.rowspan>r&&(l+=f.attrs.colspan)}}for(let s=0;s<o.childCount;s++){const u=o.child(s);l+=u.attrs.colspan,u.attrs.rowspan>1&&(n=!0)}e==-1?e=l:e!=l&&(e=Math.max(e,l))}return e}function eoe(t,e,n){t.problems||(t.problems=[]);const r={};for(let o=0;o<t.map.length;o++){const l=t.map[o];if(r[l])continue;r[l]=!0;const s=n.nodeAt(l);if(!s)throw new RangeError(`No cell with offset ${l} found`);let u=null;const d=s.attrs;for(let f=0;f<d.colspan;f++){const m=(o+f)%t.width,p=e[m*2];p!=null&&(!d.colwidth||d.colwidth[f]!=p)&&((u||(u=toe(d)))[f]=p)}u&&t.problems.unshift({type:"colwidth mismatch",pos:l,colwidth:u})}}function toe(t){if(t.colwidth)return t.colwidth.slice();const e=[];for(let n=0;n<t.colspan;n++)e.push(0);return e}function So(t){let e=t.cached.tableNodeTypes;if(!e){e=t.cached.tableNodeTypes={};for(const n in t.nodes){const r=t.nodes[n],o=r.spec.tableRole;o&&(e[o]=r)}}return e}var us=new ui("selectingCells");function Gd(t){for(let e=t.depth-1;e>0;e--)if(t.node(e).type.spec.tableRole=="row")return t.node(0).resolve(t.before(e+1));return null}function noe(t){for(let e=t.depth;e>0;e--){const n=t.node(e).type.spec.tableRole;if(n==="cell"||n==="header_cell")return t.node(e)}return null}function oa(t){const e=t.selection.$head;for(let n=e.depth;n>0;n--)if(e.node(n).type.spec.tableRole=="row")return!0;return!1}function ky(t){const e=t.selection;if("$anchorCell"in e&&e.$anchorCell)return e.$anchorCell.pos>e.$headCell.pos?e.$anchorCell:e.$headCell;if("node"in e&&e.node&&e.node.type.spec.tableRole=="cell")return e.$anchor;const n=Gd(e.$head)||roe(e.$head);if(n)return n;throw new RangeError(`No cell found around position ${e.head}`)}function roe(t){for(let e=t.nodeAfter,n=t.pos;e;e=e.firstChild,n++){const r=e.type.spec.tableRole;if(r=="cell"||r=="header_cell")return t.doc.resolve(n)}for(let e=t.nodeBefore,n=t.pos;e;e=e.lastChild,n--){const r=e.type.spec.tableRole;if(r=="cell"||r=="header_cell")return t.doc.resolve(n-e.nodeSize)}}function Bx(t){return t.parent.type.spec.tableRole=="row"&&!!t.nodeAfter}function ooe(t){return t.node(0).resolve(t.pos+t.nodeAfter.nodeSize)}function bE(t,e){return t.depth==e.depth&&t.pos>=e.start(-1)&&t.pos<=e.end(-1)}function kj(t,e,n){const r=t.node(-1),o=xr.get(r),l=t.start(-1),s=o.nextCell(t.pos-l,e,n);return s==null?null:t.node(0).resolve(l+s)}function Xc(t,e,n=1){const r={...t,colspan:t.colspan-n};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(e,n),r.colwidth.some(o=>o>0)||(r.colwidth=null)),r}function Pj(t,e,n=1){const r={...t,colspan:t.colspan+n};if(r.colwidth){r.colwidth=r.colwidth.slice();for(let o=0;o<n;o++)r.colwidth.splice(e,0,0)}return r}function ioe(t,e,n){const r=So(e.type.schema).header_cell;for(let o=0;o<t.height;o++)if(e.nodeAt(t.map[n+o*t.width]).type!=r)return!1;return!0}var ar=class ul extends nn{constructor(e,n=e){const r=e.node(-1),o=xr.get(r),l=e.start(-1),s=o.rectBetween(e.pos-l,n.pos-l),u=e.node(0),d=o.cellsInRect(s).filter(m=>m!=n.pos-l);d.unshift(n.pos-l);const f=d.map(m=>{const p=r.nodeAt(m);if(!p)throw RangeError(`No cell with offset ${m} found`);const g=l+m+1;return new nP(u.resolve(g),u.resolve(g+p.content.size))});super(f[0].$from,f[0].$to,f),this.$anchorCell=e,this.$headCell=n}map(e,n){const r=e.resolve(n.map(this.$anchorCell.pos)),o=e.resolve(n.map(this.$headCell.pos));if(Bx(r)&&Bx(o)&&bE(r,o)){const l=this.$anchorCell.node(-1)!=r.node(-1);return l&&this.isRowSelection()?ul.rowSelection(r,o):l&&this.isColSelection()?ul.colSelection(r,o):new ul(r,o)}return Zt.between(r,o)}content(){const e=this.$anchorCell.node(-1),n=xr.get(e),r=this.$anchorCell.start(-1),o=n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r),l={},s=[];for(let d=o.top;d<o.bottom;d++){const f=[];for(let m=d*n.width+o.left,p=o.left;p<o.right;p++,m++){const g=n.map[m];if(l[g])continue;l[g]=!0;const b=n.findCell(g);let S=e.nodeAt(g);if(!S)throw RangeError(`No cell with offset ${g} found`);const x=o.left-b.left,w=b.right-o.right;if(x>0||w>0){let O=S.attrs;if(x>0&&(O=Xc(O,0,x)),w>0&&(O=Xc(O,O.colspan-w,w)),b.left<o.left){if(S=S.type.createAndFill(O),!S)throw RangeError(`Could not create cell with attrs ${JSON.stringify(O)}`)}else S=S.type.create(O,S.content)}if(b.top<o.top||b.bottom>o.bottom){const O={...S.attrs,rowspan:Math.min(b.bottom,o.bottom)-Math.max(b.top,o.top)};b.top<o.top?S=S.type.createAndFill(O):S=S.type.create(O,S.content)}f.push(S)}s.push(e.child(d).copy(tt.from(f)))}const u=this.isColSelection()&&this.isRowSelection()?e:s;return new At(tt.from(u),1,1)}replace(e,n=At.empty){const r=e.steps.length,o=this.ranges;for(let s=0;s<o.length;s++){const{$from:u,$to:d}=o[s],f=e.mapping.slice(r);e.replace(f.map(u.pos),f.map(d.pos),s?At.empty:n)}const l=nn.findFrom(e.doc.resolve(e.mapping.slice(r).map(this.to)),-1);l&&e.setSelection(l)}replaceWith(e,n){this.replace(e,new At(tt.from(n),0,0))}forEachCell(e){const n=this.$anchorCell.node(-1),r=xr.get(n),o=this.$anchorCell.start(-1),l=r.cellsInRect(r.rectBetween(this.$anchorCell.pos-o,this.$headCell.pos-o));for(let s=0;s<l.length;s++)e(n.nodeAt(l[s]),o+l[s])}isColSelection(){const e=this.$anchorCell.index(-1),n=this.$headCell.index(-1);if(Math.min(e,n)>0)return!1;const r=e+this.$anchorCell.nodeAfter.attrs.rowspan,o=n+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(r,o)==this.$headCell.node(-1).childCount}static colSelection(e,n=e){const r=e.node(-1),o=xr.get(r),l=e.start(-1),s=o.findCell(e.pos-l),u=o.findCell(n.pos-l),d=e.node(0);return s.top<=u.top?(s.top>0&&(e=d.resolve(l+o.map[s.left])),u.bottom<o.height&&(n=d.resolve(l+o.map[o.width*(o.height-1)+u.right-1]))):(u.top>0&&(n=d.resolve(l+o.map[u.left])),s.bottom<o.height&&(e=d.resolve(l+o.map[o.width*(o.height-1)+s.right-1]))),new ul(e,n)}isRowSelection(){const e=this.$anchorCell.node(-1),n=xr.get(e),r=this.$anchorCell.start(-1),o=n.colCount(this.$anchorCell.pos-r),l=n.colCount(this.$headCell.pos-r);if(Math.min(o,l)>0)return!1;const s=o+this.$anchorCell.nodeAfter.attrs.colspan,u=l+this.$headCell.nodeAfter.attrs.colspan;return Math.max(s,u)==n.width}eq(e){return e instanceof ul&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos}static rowSelection(e,n=e){const r=e.node(-1),o=xr.get(r),l=e.start(-1),s=o.findCell(e.pos-l),u=o.findCell(n.pos-l),d=e.node(0);return s.left<=u.left?(s.left>0&&(e=d.resolve(l+o.map[s.top*o.width])),u.right<o.width&&(n=d.resolve(l+o.map[o.width*(u.top+1)-1]))):(u.left>0&&(n=d.resolve(l+o.map[u.top*o.width])),s.right<o.width&&(e=d.resolve(l+o.map[o.width*(s.top+1)-1]))),new ul(e,n)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(e,n){return new ul(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,r=n){return new ul(e.resolve(n),e.resolve(r))}getBookmark(){return new aoe(this.$anchorCell.pos,this.$headCell.pos)}};ar.prototype.visible=!1;nn.jsonID("cell",ar);var aoe=class zj{constructor(e,n){this.anchor=e,this.head=n}map(e){return new zj(e.map(this.anchor),e.map(this.head))}resolve(e){const n=e.resolve(this.anchor),r=e.resolve(this.head);return n.parent.type.spec.tableRole=="row"&&r.parent.type.spec.tableRole=="row"&&n.index()<n.parent.childCount&&r.index()<r.parent.childCount&&bE(n,r)?new ar(n,r):nn.near(r,1)}};function loe(t){if(!(t.selection instanceof ar))return null;const e=[];return t.selection.forEachCell((n,r)=>{e.push(No.node(r,r+n.nodeSize,{class:"selectedCell"}))}),Sr.create(t.doc,e)}function soe({$from:t,$to:e}){if(t.pos==e.pos||t.pos<e.pos-6)return!1;let n=t.pos,r=e.pos,o=t.depth;for(;o>=0&&!(t.after(o+1)<t.end(o));o--,n++);for(let l=e.depth;l>=0&&!(e.before(l+1)>e.start(l));l--,r--);return n==r&&/row|table/.test(t.node(o).type.spec.tableRole)}function coe({$from:t,$to:e}){let n,r;for(let o=t.depth;o>0;o--){const l=t.node(o);if(l.type.spec.tableRole==="cell"||l.type.spec.tableRole==="header_cell"){n=l;break}}for(let o=e.depth;o>0;o--){const l=e.node(o);if(l.type.spec.tableRole==="cell"||l.type.spec.tableRole==="header_cell"){r=l;break}}return n!==r&&e.parentOffset===0}function uoe(t,e,n){const r=(e||t).selection,o=(e||t).doc;let l,s;if(r instanceof Gt&&(s=r.node.type.spec.tableRole)){if(s=="cell"||s=="header_cell")l=ar.create(o,r.from);else if(s=="row"){const u=o.resolve(r.from+1);l=ar.rowSelection(u,u)}else if(!n){const u=xr.get(r.node),d=r.from+1,f=d+u.map[u.width*u.height-1];l=ar.create(o,d+1,f)}}else r instanceof Zt&&soe(r)?l=Zt.create(o,r.from):r instanceof Zt&&coe(r)&&(l=Zt.create(o,r.$from.start(),r.$from.end()));return l&&(e||(e=t.tr)).setSelection(l),e}var doe=new ui("fix-tables");function _j(t,e,n,r){const o=t.childCount,l=e.childCount;e:for(let s=0,u=0;s<l;s++){const d=e.child(s);for(let f=u,m=Math.min(o,s+3);f<m;f++)if(t.child(f)==d){u=f+1,n+=d.nodeSize;continue e}r(d,n),u<o&&t.child(u).sameMarkup(d)?_j(t.child(u),d,n+1,r):d.nodesBetween(0,d.content.size,r,n+1),n+=d.nodeSize}}function Bj(t,e){let n;const r=(o,l)=>{o.type.spec.tableRole=="table"&&(n=foe(t,o,l,n))};return e?e.doc!=t.doc&&_j(e.doc,t.doc,0,r):t.doc.descendants(r),n}function foe(t,e,n,r){const o=xr.get(e);if(!o.problems)return r;r||(r=t.tr);const l=[];for(let d=0;d<o.height;d++)l.push(0);for(let d=0;d<o.problems.length;d++){const f=o.problems[d];if(f.type=="collision"){const m=e.nodeAt(f.pos);if(!m)continue;const p=m.attrs;for(let g=0;g<p.rowspan;g++)l[f.row+g]+=f.n;r.setNodeMarkup(r.mapping.map(n+1+f.pos),null,Xc(p,p.colspan-f.n,f.n))}else if(f.type=="missing")l[f.row]+=f.n;else if(f.type=="overlong_rowspan"){const m=e.nodeAt(f.pos);if(!m)continue;r.setNodeMarkup(r.mapping.map(n+1+f.pos),null,{...m.attrs,rowspan:m.attrs.rowspan-f.n})}else if(f.type=="colwidth mismatch"){const m=e.nodeAt(f.pos);if(!m)continue;r.setNodeMarkup(r.mapping.map(n+1+f.pos),null,{...m.attrs,colwidth:f.colwidth})}else if(f.type=="zero_sized"){const m=r.mapping.map(n);r.delete(m,m+e.nodeSize)}}let s,u;for(let d=0;d<l.length;d++)l[d]&&(s==null&&(s=d),u=d);for(let d=0,f=n+1;d<o.height;d++){const m=e.child(d),p=f+m.nodeSize,g=l[d];if(g>0){let b="cell";m.firstChild&&(b=m.firstChild.type.spec.tableRole);const S=[];for(let w=0;w<g;w++){const O=So(t.schema)[b].createAndFill();O&&S.push(O)}const x=(d==0||s==d-1)&&u==d?f+1:p-1;r.insert(r.mapping.map(x),S)}f=p}return r.setMeta(doe,{fixTables:!0})}function _a(t){const e=t.selection,n=ky(t),r=n.node(-1),o=n.start(-1),l=xr.get(r);return{...e instanceof ar?l.rectBetween(e.$anchorCell.pos-o,e.$headCell.pos-o):l.findCell(n.pos-o),tableStart:o,map:l,table:r}}function Hj(t,{map:e,tableStart:n,table:r},o){let l=o>0?-1:0;ioe(e,r,o+l)&&(l=o==0||o==e.width?null:0);for(let s=0;s<e.height;s++){const u=s*e.width+o;if(o>0&&o<e.width&&e.map[u-1]==e.map[u]){const d=e.map[u],f=r.nodeAt(d);t.setNodeMarkup(t.mapping.map(n+d),null,Pj(f.attrs,o-e.colCount(d))),s+=f.attrs.rowspan-1}else{const d=l==null?So(r.type.schema).cell:r.nodeAt(e.map[u+l]).type,f=e.positionAt(s,o,r);t.insert(t.mapping.map(n+f),d.createAndFill())}}return t}function hoe(t,e){if(!oa(t))return!1;if(e){const n=_a(t);e(Hj(t.tr,n,n.left))}return!0}function moe(t,e){if(!oa(t))return!1;if(e){const n=_a(t);e(Hj(t.tr,n,n.right))}return!0}function poe(t,{map:e,table:n,tableStart:r},o){const l=t.mapping.maps.length;for(let s=0;s<e.height;){const u=s*e.width+o,d=e.map[u],f=n.nodeAt(d),m=f.attrs;if(o>0&&e.map[u-1]==d||o<e.width-1&&e.map[u+1]==d)t.setNodeMarkup(t.mapping.slice(l).map(r+d),null,Xc(m,o-e.colCount(d)));else{const p=t.mapping.slice(l).map(r+d);t.delete(p,p+f.nodeSize)}s+=m.rowspan}}function goe(t,e){if(!oa(t))return!1;if(e){const n=_a(t),r=t.tr;if(n.left==0&&n.right==n.map.width)return!1;for(let o=n.right-1;poe(r,n,o),o!=n.left;o--){const l=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!l)throw RangeError("No table found");n.table=l,n.map=xr.get(l)}e(r)}return!0}function voe(t,e,n){var r;const o=So(e.type.schema).header_cell;for(let l=0;l<t.width;l++)if(((r=e.nodeAt(t.map[l+n*t.width]))==null?void 0:r.type)!=o)return!1;return!0}function jj(t,{map:e,tableStart:n,table:r},o){var l;let s=n;for(let f=0;f<o;f++)s+=r.child(f).nodeSize;const u=[];let d=o>0?-1:0;voe(e,r,o+d)&&(d=o==0||o==e.height?null:0);for(let f=0,m=e.width*o;f<e.width;f++,m++)if(o>0&&o<e.height&&e.map[m]==e.map[m-e.width]){const p=e.map[m],g=r.nodeAt(p).attrs;t.setNodeMarkup(n+p,null,{...g,rowspan:g.rowspan+1}),f+=g.colspan-1}else{const p=d==null?So(r.type.schema).cell:(l=r.nodeAt(e.map[m+d*e.width]))==null?void 0:l.type,g=p==null?void 0:p.createAndFill();g&&u.push(g)}return t.insert(s,So(r.type.schema).row.create(null,u)),t}function yoe(t,e){if(!oa(t))return!1;if(e){const n=_a(t);e(jj(t.tr,n,n.top))}return!0}function boe(t,e){if(!oa(t))return!1;if(e){const n=_a(t);e(jj(t.tr,n,n.bottom))}return!0}function Soe(t,{map:e,table:n,tableStart:r},o){let l=0;for(let f=0;f<o;f++)l+=n.child(f).nodeSize;const s=l+n.child(o).nodeSize,u=t.mapping.maps.length;t.delete(l+r,s+r);const d=new Set;for(let f=0,m=o*e.width;f<e.width;f++,m++){const p=e.map[m];if(!d.has(p)){if(d.add(p),o>0&&p==e.map[m-e.width]){const g=n.nodeAt(p).attrs;t.setNodeMarkup(t.mapping.slice(u).map(p+r),null,{...g,rowspan:g.rowspan-1}),f+=g.colspan-1}else if(o<e.height&&p==e.map[m+e.width]){const g=n.nodeAt(p),b=g.attrs,S=g.type.create({...b,rowspan:g.attrs.rowspan-1},g.content),x=e.positionAt(o+1,f,n);t.insert(t.mapping.slice(u).map(r+x),S),f+=b.colspan-1}}}}function Coe(t,e){if(!oa(t))return!1;if(e){const n=_a(t),r=t.tr;if(n.top==0&&n.bottom==n.map.height)return!1;for(let o=n.bottom-1;Soe(r,n,o),o!=n.top;o--){const l=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!l)throw RangeError("No table found");n.table=l,n.map=xr.get(n.table)}e(r)}return!0}function nk(t){const e=t.content;return e.childCount==1&&e.child(0).isTextblock&&e.child(0).childCount==0}function xoe({width:t,height:e,map:n},r){let o=r.top*t+r.left,l=o,s=(r.bottom-1)*t+r.left,u=o+(r.right-r.left-1);for(let d=r.top;d<r.bottom;d++){if(r.left>0&&n[l]==n[l-1]||r.right<t&&n[u]==n[u+1])return!0;l+=t,u+=t}for(let d=r.left;d<r.right;d++){if(r.top>0&&n[o]==n[o-t]||r.bottom<e&&n[s]==n[s+t])return!0;o++,s++}return!1}function rk(t,e){const n=t.selection;if(!(n instanceof ar)||n.$anchorCell.pos==n.$headCell.pos)return!1;const r=_a(t),{map:o}=r;if(xoe(o,r))return!1;if(e){const l=t.tr,s={};let u=tt.empty,d,f;for(let m=r.top;m<r.bottom;m++)for(let p=r.left;p<r.right;p++){const g=o.map[m*o.width+p],b=r.table.nodeAt(g);if(!(s[g]||!b))if(s[g]=!0,d==null)d=g,f=b;else{nk(b)||(u=u.append(b.content));const S=l.mapping.map(g+r.tableStart);l.delete(S,S+b.nodeSize)}}if(d==null||f==null)return!0;if(l.setNodeMarkup(d+r.tableStart,null,{...Pj(f.attrs,f.attrs.colspan,r.right-r.left-f.attrs.colspan),rowspan:r.bottom-r.top}),u.size){const m=d+1+f.content.size,p=nk(f)?d+1:m;l.replaceWith(p+r.tableStart,m+r.tableStart,u)}l.setSelection(new ar(l.doc.resolve(d+r.tableStart))),e(l)}return!0}function ok(t,e){const n=So(t.schema);return woe(({node:r})=>n[r.type.spec.tableRole])(t,e)}function woe(t){return(e,n)=>{var r;const o=e.selection;let l,s;if(o instanceof ar){if(o.$anchorCell.pos!=o.$headCell.pos)return!1;l=o.$anchorCell.nodeAfter,s=o.$anchorCell.pos}else{if(l=noe(o.$from),!l)return!1;s=(r=Gd(o.$from))==null?void 0:r.pos}if(l==null||s==null||l.attrs.colspan==1&&l.attrs.rowspan==1)return!1;if(n){let u=l.attrs;const d=[],f=u.colwidth;u.rowspan>1&&(u={...u,rowspan:1}),u.colspan>1&&(u={...u,colspan:1});const m=_a(e),p=e.tr;for(let b=0;b<m.right-m.left;b++)d.push(f?{...u,colwidth:f&&f[b]?[f[b]]:null}:u);let g;for(let b=m.top;b<m.bottom;b++){let S=m.map.positionAt(b,m.left,m.table);b==m.top&&(S+=l.nodeSize);for(let x=m.left,w=0;x<m.right;x++,w++)x==m.left&&b==m.top||p.insert(g=p.mapping.map(S+m.tableStart,1),t({node:l,row:b,col:x}).createAndFill(d[w]))}p.setNodeMarkup(s,t({node:l,row:m.top,col:m.left}),d[0]),o instanceof ar&&p.setSelection(new ar(p.doc.resolve(o.$anchorCell.pos),g?p.doc.resolve(g):void 0)),n(p)}return!0}}function Eoe(t,e){return function(n,r){if(!oa(n))return!1;const o=ky(n);if(o.nodeAfter.attrs[t]===e)return!1;if(r){const l=n.tr;n.selection instanceof ar?n.selection.forEachCell((s,u)=>{s.attrs[t]!==e&&l.setNodeMarkup(u,null,{...s.attrs,[t]:e})}):l.setNodeMarkup(o.pos,null,{...o.nodeAfter.attrs,[t]:e}),r(l)}return!0}}function Ooe(t){return function(e,n){if(!oa(e))return!1;if(n){const r=So(e.schema),o=_a(e),l=e.tr,s=o.map.cellsInRect(t=="column"?{left:o.left,top:0,right:o.right,bottom:o.map.height}:t=="row"?{left:0,top:o.top,right:o.map.width,bottom:o.bottom}:o),u=s.map(d=>o.table.nodeAt(d));for(let d=0;d<s.length;d++)u[d].type==r.header_cell&&l.setNodeMarkup(o.tableStart+s[d],r.cell,u[d].attrs);if(l.steps.length==0)for(let d=0;d<s.length;d++)l.setNodeMarkup(o.tableStart+s[d],r.header_cell,u[d].attrs);n(l)}return!0}}function ik(t,e,n){const r=e.map.cellsInRect({left:0,top:0,right:t=="row"?e.map.width:1,bottom:t=="column"?e.map.height:1});for(let o=0;o<r.length;o++){const l=e.table.nodeAt(r[o]);if(l&&l.type!==n.header_cell)return!1}return!0}function om(t,e){return e=e||{useDeprecatedLogic:!1},e.useDeprecatedLogic?Ooe(t):function(n,r){if(!oa(n))return!1;if(r){const o=So(n.schema),l=_a(n),s=n.tr,u=ik("row",l,o),d=ik("column",l,o),m=(t==="column"?u:t==="row"?d:!1)?1:0,p=t=="column"?{left:0,top:m,right:1,bottom:l.map.height}:t=="row"?{left:m,top:0,right:l.map.width,bottom:1}:l,g=t=="column"?d?o.cell:o.header_cell:t=="row"?u?o.cell:o.header_cell:o.cell;l.map.cellsInRect(p).forEach(b=>{const S=b+l.tableStart,x=s.doc.nodeAt(S);x&&s.setNodeMarkup(S,g,x.attrs)}),r(s)}return!0}}om("row",{useDeprecatedLogic:!0});om("column",{useDeprecatedLogic:!0});var Roe=om("cell",{useDeprecatedLogic:!0});function Toe(t,e){if(e<0){const n=t.nodeBefore;if(n)return t.pos-n.nodeSize;for(let r=t.index(-1)-1,o=t.before();r>=0;r--){const l=t.node(-1).child(r),s=l.lastChild;if(s)return o-1-s.nodeSize;o-=l.nodeSize}}else{if(t.index()<t.parent.childCount-1)return t.pos+t.nodeAfter.nodeSize;const n=t.node(-1);for(let r=t.indexAfter(-1),o=t.after();r<n.childCount;r++){const l=n.child(r);if(l.childCount)return o+1;o+=l.nodeSize}}return null}function ak(t){return function(e,n){if(!oa(e))return!1;const r=Toe(ky(e),t);if(r==null)return!1;if(n){const o=e.doc.resolve(r);n(e.tr.setSelection(Zt.between(o,ooe(o))).scrollIntoView())}return!0}}function Moe(t,e){const n=t.selection.$anchor;for(let r=n.depth;r>0;r--)if(n.node(r).type.spec.tableRole=="table")return e&&e(t.tr.delete(n.before(r),n.after(r)).scrollIntoView()),!0;return!1}function Dg(t,e){const n=t.selection;if(!(n instanceof ar))return!1;if(e){const r=t.tr,o=So(t.schema).cell.createAndFill().content;n.forEachCell((l,s)=>{l.content.eq(o)||r.replace(r.mapping.map(s+1),r.mapping.map(s+l.nodeSize-1),new At(o,0,0))}),r.docChanged&&e(r)}return!0}function $oe(t){if(!t.size)return null;let{content:e,openStart:n,openEnd:r}=t;for(;e.childCount==1&&(n>0&&r>0||e.child(0).type.spec.tableRole=="table");)n--,r--,e=e.child(0).content;const o=e.child(0),l=o.type.spec.tableRole,s=o.type.schema,u=[];if(l=="row")for(let d=0;d<e.childCount;d++){let f=e.child(d).content;const m=d?0:Math.max(0,n-1),p=d<e.childCount-1?0:Math.max(0,r-1);(m||p)&&(f=Hx(So(s).row,new At(f,m,p)).content),u.push(f)}else if(l=="cell"||l=="header_cell")u.push(n||r?Hx(So(s).row,new At(e,n,r)).content:e);else return null;return Noe(s,u)}function Noe(t,e){const n=[];for(let o=0;o<e.length;o++){const l=e[o];for(let s=l.childCount-1;s>=0;s--){const{rowspan:u,colspan:d}=l.child(s).attrs;for(let f=o;f<o+u;f++)n[f]=(n[f]||0)+d}}let r=0;for(let o=0;o<n.length;o++)r=Math.max(r,n[o]);for(let o=0;o<n.length;o++)if(o>=e.length&&e.push(tt.empty),n[o]<r){const l=So(t).cell.createAndFill(),s=[];for(let u=n[o];u<r;u++)s.push(l);e[o]=e[o].append(tt.from(s))}return{height:e.length,width:r,rows:e}}function Hx(t,e){const n=t.createAndFill();return new tP(n).replace(0,n.content.size,e).doc}function Aoe({width:t,height:e,rows:n},r,o){if(t!=r){const l=[],s=[];for(let u=0;u<n.length;u++){const d=n[u],f=[];for(let m=l[u]||0,p=0;m<r;p++){let g=d.child(p%d.childCount);m+g.attrs.colspan>r&&(g=g.type.createChecked(Xc(g.attrs,g.attrs.colspan,m+g.attrs.colspan-r),g.content)),f.push(g),m+=g.attrs.colspan;for(let b=1;b<g.attrs.rowspan;b++)l[u+b]=(l[u+b]||0)+g.attrs.colspan}s.push(tt.from(f))}n=s,t=r}if(e!=o){const l=[];for(let s=0,u=0;s<o;s++,u++){const d=[],f=n[u%e];for(let m=0;m<f.childCount;m++){let p=f.child(m);s+p.attrs.rowspan>o&&(p=p.type.create({...p.attrs,rowspan:Math.max(1,o-p.attrs.rowspan)},p.content)),d.push(p)}l.push(tt.from(d))}n=l,e=o}return{width:t,height:e,rows:n}}function Doe(t,e,n,r,o,l,s){const u=t.doc.type.schema,d=So(u);let f,m;if(o>e.width)for(let p=0,g=0;p<e.height;p++){const b=n.child(p);g+=b.nodeSize;const S=[];let x;b.lastChild==null||b.lastChild.type==d.cell?x=f||(f=d.cell.createAndFill()):x=m||(m=d.header_cell.createAndFill());for(let w=e.width;w<o;w++)S.push(x);t.insert(t.mapping.slice(s).map(g-1+r),S)}if(l>e.height){const p=[];for(let S=0,x=(e.height-1)*e.width;S<Math.max(e.width,o);S++){const w=S>=e.width?!1:n.nodeAt(e.map[x+S]).type==d.header_cell;p.push(w?m||(m=d.header_cell.createAndFill()):f||(f=d.cell.createAndFill()))}const g=d.row.create(null,tt.from(p)),b=[];for(let S=e.height;S<l;S++)b.push(g);t.insert(t.mapping.slice(s).map(r+n.nodeSize-2),b)}return!!(f||m)}function lk(t,e,n,r,o,l,s,u){if(s==0||s==e.height)return!1;let d=!1;for(let f=o;f<l;f++){const m=s*e.width+f,p=e.map[m];if(e.map[m-e.width]==p){d=!0;const g=n.nodeAt(p),{top:b,left:S}=e.findCell(p);t.setNodeMarkup(t.mapping.slice(u).map(p+r),null,{...g.attrs,rowspan:s-b}),t.insert(t.mapping.slice(u).map(e.positionAt(s,S,n)),g.type.createAndFill({...g.attrs,rowspan:b+g.attrs.rowspan-s})),f+=g.attrs.colspan-1}}return d}function sk(t,e,n,r,o,l,s,u){if(s==0||s==e.width)return!1;let d=!1;for(let f=o;f<l;f++){const m=f*e.width+s,p=e.map[m];if(e.map[m-1]==p){d=!0;const g=n.nodeAt(p),b=e.colCount(p),S=t.mapping.slice(u).map(p+r);t.setNodeMarkup(S,null,Xc(g.attrs,s-b,g.attrs.colspan-(s-b))),t.insert(S+g.nodeSize,g.type.createAndFill(Xc(g.attrs,0,s-b))),f+=g.attrs.rowspan-1}}return d}function ck(t,e,n,r,o){let l=n?t.doc.nodeAt(n-1):t.doc;if(!l)throw new Error("No table found");let s=xr.get(l);const{top:u,left:d}=r,f=d+o.width,m=u+o.height,p=t.tr;let g=0;function b(){if(l=n?p.doc.nodeAt(n-1):p.doc,!l)throw new Error("No table found");s=xr.get(l),g=p.mapping.maps.length}Doe(p,s,l,n,f,m,g)&&b(),lk(p,s,l,n,d,f,u,g)&&b(),lk(p,s,l,n,d,f,m,g)&&b(),sk(p,s,l,n,u,m,d,g)&&b(),sk(p,s,l,n,u,m,f,g)&&b();for(let S=u;S<m;S++){const x=s.positionAt(S,d,l),w=s.positionAt(S,f,l);p.replace(p.mapping.slice(g).map(x+n),p.mapping.slice(g).map(w+n),new At(o.rows[S-u],0,0))}b(),p.setSelection(new ar(p.doc.resolve(n+s.positionAt(u,d,l)),p.doc.resolve(n+s.positionAt(m-1,f-1,l)))),e(p)}var Ioe=tw({ArrowLeft:Ig("horiz",-1),ArrowRight:Ig("horiz",1),ArrowUp:Ig("vert",-1),ArrowDown:Ig("vert",1),"Shift-ArrowLeft":kg("horiz",-1),"Shift-ArrowRight":kg("horiz",1),"Shift-ArrowUp":kg("vert",-1),"Shift-ArrowDown":kg("vert",1),Backspace:Dg,"Mod-Backspace":Dg,Delete:Dg,"Mod-Delete":Dg});function nv(t,e,n){return n.eq(t.selection)?!1:(e&&e(t.tr.setSelection(n).scrollIntoView()),!0)}function Ig(t,e){return(n,r,o)=>{if(!o)return!1;const l=n.selection;if(l instanceof ar)return nv(n,r,nn.near(l.$headCell,e));if(t!="horiz"&&!l.empty)return!1;const s=Lj(o,t,e);if(s==null)return!1;if(t=="horiz")return nv(n,r,nn.near(n.doc.resolve(l.head+e),e));{const u=n.doc.resolve(s),d=kj(u,t,e);let f;return d?f=nn.near(d,1):e<0?f=nn.near(n.doc.resolve(u.before(-1)),-1):f=nn.near(n.doc.resolve(u.after(-1)),1),nv(n,r,f)}}}function kg(t,e){return(n,r,o)=>{if(!o)return!1;const l=n.selection;let s;if(l instanceof ar)s=l;else{const d=Lj(o,t,e);if(d==null)return!1;s=new ar(n.doc.resolve(d))}const u=kj(s.$headCell,t,e);return u?nv(n,r,new ar(s.$anchorCell,u)):!1}}function koe(t,e){const n=t.state.doc,r=Gd(n.resolve(e));return r?(t.dispatch(t.state.tr.setSelection(new ar(r))),!0):!1}function Poe(t,e,n){if(!oa(t.state))return!1;let r=$oe(n);const o=t.state.selection;if(o instanceof ar){r||(r={width:1,height:1,rows:[tt.from(Hx(So(t.state.schema).cell,n))]});const l=o.$anchorCell.node(-1),s=o.$anchorCell.start(-1),u=xr.get(l).rectBetween(o.$anchorCell.pos-s,o.$headCell.pos-s);return r=Aoe(r,u.right-u.left,u.bottom-u.top),ck(t.state,t.dispatch,s,u,r),!0}else if(r){const l=ky(t.state),s=l.start(-1);return ck(t.state,t.dispatch,s,xr.get(l.node(-1)).findCell(l.pos-s),r),!0}else return!1}function zoe(t,e){var n;if(e.ctrlKey||e.metaKey)return;const r=uk(t,e.target);let o;if(e.shiftKey&&t.state.selection instanceof ar)l(t.state.selection.$anchorCell,e),e.preventDefault();else if(e.shiftKey&&r&&(o=Gd(t.state.selection.$anchor))!=null&&((n=e1(t,e))==null?void 0:n.pos)!=o.pos)l(o,e),e.preventDefault();else if(!r)return;function l(d,f){let m=e1(t,f);const p=us.getState(t.state)==null;if(!m||!bE(d,m))if(p)m=d;else return;const g=new ar(d,m);if(p||!t.state.selection.eq(g)){const b=t.state.tr.setSelection(g);p&&b.setMeta(us,d.pos),t.dispatch(b)}}function s(){t.root.removeEventListener("mouseup",s),t.root.removeEventListener("dragstart",s),t.root.removeEventListener("mousemove",u),us.getState(t.state)!=null&&t.dispatch(t.state.tr.setMeta(us,-1))}function u(d){const f=d,m=us.getState(t.state);let p;if(m!=null)p=t.state.doc.resolve(m);else if(uk(t,f.target)!=r&&(p=e1(t,e),!p))return s();p&&l(p,f)}t.root.addEventListener("mouseup",s),t.root.addEventListener("dragstart",s),t.root.addEventListener("mousemove",u)}function Lj(t,e,n){if(!(t.state.selection instanceof Zt))return null;const{$head:r}=t.state.selection;for(let o=r.depth-1;o>=0;o--){const l=r.node(o);if((n<0?r.index(o):r.indexAfter(o))!=(n<0?0:l.childCount))return null;if(l.type.spec.tableRole=="cell"||l.type.spec.tableRole=="header_cell"){const u=r.before(o),d=e=="vert"?n>0?"down":"up":n>0?"right":"left";return t.endOfTextblock(d)?u:null}}return null}function uk(t,e){for(;e&&e!=t.dom;e=e.parentNode)if(e.nodeName=="TD"||e.nodeName=="TH")return e;return null}function e1(t,e){const n=t.posAtCoords({left:e.clientX,top:e.clientY});return n&&n?Gd(t.state.doc.resolve(n.pos)):null}var _oe=class{constructor(e,n){this.node=e,this.defaultCellMinWidth=n,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.table.style.setProperty("--default-cell-min-width",`${n}px`),this.colgroup=this.table.appendChild(document.createElement("colgroup")),jx(e,this.colgroup,this.table,n),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type!=this.node.type?!1:(this.node=e,jx(e,this.colgroup,this.table,this.defaultCellMinWidth),!0)}ignoreMutation(e){return e.type=="attributes"&&(e.target==this.table||this.colgroup.contains(e.target))}};function jx(t,e,n,r,o,l){var s;let u=0,d=!0,f=e.firstChild;const m=t.firstChild;if(m){for(let p=0,g=0;p<m.childCount;p++){const{colspan:b,colwidth:S}=m.child(p).attrs;for(let x=0;x<b;x++,g++){const w=o==g?l:S&&S[x],O=w?w+"px":"";if(u+=w||r,w||(d=!1),f)f.style.width!=O&&(f.style.width=O),f=f.nextSibling;else{const E=document.createElement("col");E.style.width=O,e.appendChild(E)}}}for(;f;){const p=f.nextSibling;(s=f.parentNode)==null||s.removeChild(f),f=p}d?(n.style.width=u+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=u+"px")}}var ii=new ui("tableColumnResizing");function Boe({handleWidth:t=5,cellMinWidth:e=25,defaultCellMinWidth:n=100,View:r=_oe,lastColumnResizable:o=!0}={}){const l=new xo({key:ii,state:{init(s,u){var d,f;const m=(f=(d=l.spec)==null?void 0:d.props)==null?void 0:f.nodeViews,p=So(u.schema).table.name;return r&&m&&(m[p]=(g,b)=>new r(g,n,b)),new Hoe(-1,!1)},apply(s,u){return u.apply(s)}},props:{attributes:s=>{const u=ii.getState(s);return u&&u.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(s,u)=>{joe(s,u,t,o)},mouseleave:s=>{Loe(s)},mousedown:(s,u)=>{Voe(s,u,e,n)}},decorations:s=>{const u=ii.getState(s);if(u&&u.activeHandle>-1)return Goe(s,u.activeHandle)},nodeViews:{}}});return l}var Hoe=class rv{constructor(e,n){this.activeHandle=e,this.dragging=n}apply(e){const n=this,r=e.getMeta(ii);if(r&&r.setHandle!=null)return new rv(r.setHandle,!1);if(r&&r.setDragging!==void 0)return new rv(n.activeHandle,r.setDragging);if(n.activeHandle>-1&&e.docChanged){let o=e.mapping.map(n.activeHandle,-1);return Bx(e.doc.resolve(o))||(o=-1),new rv(o,n.dragging)}return n}};function joe(t,e,n,r){if(!t.editable)return;const o=ii.getState(t.state);if(o&&!o.dragging){const l=Uoe(e.target);let s=-1;if(l){const{left:u,right:d}=l.getBoundingClientRect();e.clientX-u<=n?s=dk(t,e,"left",n):d-e.clientX<=n&&(s=dk(t,e,"right",n))}if(s!=o.activeHandle){if(!r&&s!==-1){const u=t.state.doc.resolve(s),d=u.node(-1),f=xr.get(d),m=u.start(-1);if(f.colCount(u.pos-m)+u.nodeAfter.attrs.colspan-1==f.width-1)return}Vj(t,s)}}}function Loe(t){if(!t.editable)return;const e=ii.getState(t.state);e&&e.activeHandle>-1&&!e.dragging&&Vj(t,-1)}function Voe(t,e,n,r){var o;if(!t.editable)return!1;const l=(o=t.dom.ownerDocument.defaultView)!=null?o:window,s=ii.getState(t.state);if(!s||s.activeHandle==-1||s.dragging)return!1;const u=t.state.doc.nodeAt(s.activeHandle),d=Foe(t,s.activeHandle,u.attrs);t.dispatch(t.state.tr.setMeta(ii,{setDragging:{startX:e.clientX,startWidth:d}}));function f(p){l.removeEventListener("mouseup",f),l.removeEventListener("mousemove",m);const g=ii.getState(t.state);g!=null&&g.dragging&&(Woe(t,g.activeHandle,fk(g.dragging,p,n)),t.dispatch(t.state.tr.setMeta(ii,{setDragging:null})))}function m(p){if(!p.which)return f(p);const g=ii.getState(t.state);if(g&&g.dragging){const b=fk(g.dragging,p,n);hk(t,g.activeHandle,b,r)}}return hk(t,s.activeHandle,d,r),l.addEventListener("mouseup",f),l.addEventListener("mousemove",m),e.preventDefault(),!0}function Foe(t,e,{colspan:n,colwidth:r}){const o=r&&r[r.length-1];if(o)return o;const l=t.domAtPos(e);let u=l.node.childNodes[l.offset].offsetWidth,d=n;if(r)for(let f=0;f<n;f++)r[f]&&(u-=r[f],d--);return u/d}function Uoe(t){for(;t&&t.nodeName!="TD"&&t.nodeName!="TH";)t=t.classList&&t.classList.contains("ProseMirror")?null:t.parentNode;return t}function dk(t,e,n,r){const o=n=="right"?-r:r,l=t.posAtCoords({left:e.clientX+o,top:e.clientY});if(!l)return-1;const{pos:s}=l,u=Gd(t.state.doc.resolve(s));if(!u)return-1;if(n=="right")return u.pos;const d=xr.get(u.node(-1)),f=u.start(-1),m=d.map.indexOf(u.pos-f);return m%d.width==0?-1:f+d.map[m-1]}function fk(t,e,n){const r=e.clientX-t.startX;return Math.max(n,t.startWidth+r)}function Vj(t,e){t.dispatch(t.state.tr.setMeta(ii,{setHandle:e}))}function Woe(t,e,n){const r=t.state.doc.resolve(e),o=r.node(-1),l=xr.get(o),s=r.start(-1),u=l.colCount(r.pos-s)+r.nodeAfter.attrs.colspan-1,d=t.state.tr;for(let f=0;f<l.height;f++){const m=f*l.width+u;if(f&&l.map[m]==l.map[m-l.width])continue;const p=l.map[m],g=o.nodeAt(p).attrs,b=g.colspan==1?0:u-l.colCount(p);if(g.colwidth&&g.colwidth[b]==n)continue;const S=g.colwidth?g.colwidth.slice():qoe(g.colspan);S[b]=n,d.setNodeMarkup(s+p,null,{...g,colwidth:S})}d.docChanged&&t.dispatch(d)}function hk(t,e,n,r){const o=t.state.doc.resolve(e),l=o.node(-1),s=o.start(-1),u=xr.get(l).colCount(o.pos-s)+o.nodeAfter.attrs.colspan-1;let d=t.domAtPos(o.start(-1)).node;for(;d&&d.nodeName!="TABLE";)d=d.parentNode;d&&jx(l,d.firstChild,d,r,u,n)}function qoe(t){return Array(t).fill(0)}function Goe(t,e){var n;const r=[],o=t.doc.resolve(e),l=o.node(-1);if(!l)return Sr.empty;const s=xr.get(l),u=o.start(-1),d=s.colCount(o.pos-u)+o.nodeAfter.attrs.colspan-1;for(let f=0;f<s.height;f++){const m=d+f*s.width;if((d==s.width-1||s.map[m]!=s.map[m+1])&&(f==0||s.map[m]!=s.map[m-s.width])){const p=s.map[m],g=u+p+l.nodeAt(p).nodeSize-1,b=document.createElement("div");b.className="column-resize-handle",(n=ii.getState(t))!=null&&n.dragging&&r.push(No.node(u+p,u+p+l.nodeAt(p).nodeSize,{class:"column-resize-dragging"})),r.push(No.widget(g,b))}}return Sr.create(t.doc,r)}function Koe({allowTableNodeSelection:t=!1}={}){return new xo({key:us,state:{init(){return null},apply(e,n){const r=e.getMeta(us);if(r!=null)return r==-1?null:r;if(n==null||!e.docChanged)return n;const{deleted:o,pos:l}=e.mapping.mapResult(n);return o?null:l}},props:{decorations:loe,handleDOMEvents:{mousedown:zoe},createSelectionBetween(e){return us.getState(e.state)!=null?e.state.selection:null},handleTripleClick:koe,handleKeyDown:Ioe,handlePaste:Poe},appendTransaction(e,n,r){return uoe(r,Bj(r,n),t)}})}function Lx(t,e){return e?["width",`${Math.max(e,t)}px`]:["min-width",`${t}px`]}function mk(t,e,n,r,o,l){var s;let u=0,d=!0,f=e.firstChild;const m=t.firstChild;if(m!==null)for(let p=0,g=0;p<m.childCount;p+=1){const{colspan:b,colwidth:S}=m.child(p).attrs;for(let x=0;x<b;x+=1,g+=1){const w=o===g?l:S&&S[x],O=w?`${w}px`:"";if(u+=w||r,w||(d=!1),f){if(f.style.width!==O){const[E,M]=Lx(r,w);f.style.setProperty(E,M)}f=f.nextSibling}else{const E=document.createElement("col"),[M,T]=Lx(r,w);E.style.setProperty(M,T),e.appendChild(E)}}}for(;f;){const p=f.nextSibling;(s=f.parentNode)===null||s===void 0||s.removeChild(f),f=p}d?(n.style.width=`${u}px`,n.style.minWidth=""):(n.style.width="",n.style.minWidth=`${u}px`)}class Yoe{constructor(e,n){this.node=e,this.cellMinWidth=n,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),mk(e,this.colgroup,this.table,n),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type!==this.node.type?!1:(this.node=e,mk(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){return e.type==="attributes"&&(e.target===this.table||this.colgroup.contains(e.target))}}function Xoe(t,e,n,r){let o=0,l=!0;const s=[],u=t.firstChild;if(!u)return{};for(let p=0,g=0;p<u.childCount;p+=1){const{colspan:b,colwidth:S}=u.child(p).attrs;for(let x=0;x<b;x+=1,g+=1){const w=n===g?r:S&&S[x];o+=w||e,w||(l=!1);const[O,E]=Lx(e,w);s.push(["col",{style:`${O}: ${E}`}])}}const d=l?`${o}px`:"",f=l?"":`${o}px`;return{colgroup:["colgroup",{},...s],tableWidth:d,tableMinWidth:f}}function pk(t,e){return t.createAndFill()}function Qoe(t){if(t.cached.tableNodeTypes)return t.cached.tableNodeTypes;const e={};return Object.keys(t.nodes).forEach(n=>{const r=t.nodes[n];r.spec.tableRole&&(e[r.spec.tableRole]=r)}),t.cached.tableNodeTypes=e,e}function Zoe(t,e,n,r,o){const l=Qoe(t),s=[],u=[];for(let f=0;f<n;f+=1){const m=pk(l.cell);if(m&&u.push(m),r){const p=pk(l.header_cell);p&&s.push(p)}}const d=[];for(let f=0;f<e;f+=1)d.push(l.row.createChecked(null,r&&f===0?s:u));return l.table.createChecked(null,d)}function Joe(t){return t instanceof ar}const Pg=({editor:t})=>{const{selection:e}=t.state;if(!Joe(e))return!1;let n=0;const r=lz(e.ranges[0].$from,l=>l.type.name==="table");return r==null||r.node.descendants(l=>{if(l.type.name==="table")return!1;["tableCell","tableHeader"].includes(l.type.name)&&(n+=1)}),n===e.ranges.length?(t.commands.deleteTable(),!0):!1},eie=wr.create({name:"table",addOptions(){return{HTMLAttributes:{},resizable:!1,handleWidth:5,cellMinWidth:25,View:Yoe,lastColumnResizable:!0,allowTableNodeSelection:!1}},content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML(){return[{tag:"table"}]},renderHTML({node:t,HTMLAttributes:e}){const{colgroup:n,tableWidth:r,tableMinWidth:o}=Xoe(t,this.options.cellMinWidth);return["table",Zn(this.options.HTMLAttributes,e,{style:r?`width: ${r}`:`min-width: ${o}`}),n,["tbody",0]]},addCommands(){return{insertTable:({rows:t=3,cols:e=3,withHeaderRow:n=!0}={})=>({tr:r,dispatch:o,editor:l})=>{const s=Zoe(l.schema,t,e,n);if(o){const u=r.selection.from+1;r.replaceSelectionWith(s).scrollIntoView().setSelection(Zt.near(r.doc.resolve(u)))}return!0},addColumnBefore:()=>({state:t,dispatch:e})=>hoe(t,e),addColumnAfter:()=>({state:t,dispatch:e})=>moe(t,e),deleteColumn:()=>({state:t,dispatch:e})=>goe(t,e),addRowBefore:()=>({state:t,dispatch:e})=>yoe(t,e),addRowAfter:()=>({state:t,dispatch:e})=>boe(t,e),deleteRow:()=>({state:t,dispatch:e})=>Coe(t,e),deleteTable:()=>({state:t,dispatch:e})=>Moe(t,e),mergeCells:()=>({state:t,dispatch:e})=>rk(t,e),splitCell:()=>({state:t,dispatch:e})=>ok(t,e),toggleHeaderColumn:()=>({state:t,dispatch:e})=>om("column")(t,e),toggleHeaderRow:()=>({state:t,dispatch:e})=>om("row")(t,e),toggleHeaderCell:()=>({state:t,dispatch:e})=>Roe(t,e),mergeOrSplit:()=>({state:t,dispatch:e})=>rk(t,e)?!0:ok(t,e),setCellAttribute:(t,e)=>({state:n,dispatch:r})=>Eoe(t,e)(n,r),goToNextCell:()=>({state:t,dispatch:e})=>ak(1)(t,e),goToPreviousCell:()=>({state:t,dispatch:e})=>ak(-1)(t,e),fixTables:()=>({state:t,dispatch:e})=>(e&&Bj(t),!0),setCellSelection:t=>({tr:e,dispatch:n})=>{if(n){const r=ar.create(e.doc,t.anchorCell,t.headCell);e.setSelection(r)}return!0}}},addKeyboardShortcuts(){return{Tab:()=>this.editor.commands.goToNextCell()?!0:this.editor.can().addRowAfter()?this.editor.chain().addRowAfter().goToNextCell().run():!1,"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:Pg,"Mod-Backspace":Pg,Delete:Pg,"Mod-Delete":Pg}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[Boe({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,defaultCellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],Koe({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(t){const e={name:t.name,options:t.options,storage:t.storage};return{tableRole:Cn(Vt(t,"tableRole",e))}}}),tie=wr.create({name:"tableCell",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:t=>{const e=t.getAttribute("colwidth");return e?e.split(",").map(r=>parseInt(r,10)):null}}}},tableRole:"cell",isolating:!0,parseHTML(){return[{tag:"td"}]},renderHTML({HTMLAttributes:t}){return["td",Zn(this.options.HTMLAttributes,t),0]}}),nie=wr.create({name:"tableHeader",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:t=>{const e=t.getAttribute("colwidth");return e?e.split(",").map(r=>parseInt(r,10)):null}}}},tableRole:"header_cell",isolating:!0,parseHTML(){return[{tag:"th"}]},renderHTML({HTMLAttributes:t}){return["th",Zn(this.options.HTMLAttributes,t),0]}}),rie=wr.create({name:"tableRow",addOptions(){return{HTMLAttributes:{}}},content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML(){return[{tag:"tr"}]},renderHTML({HTMLAttributes:t}){return["tr",Zn(this.options.HTMLAttributes,t),0]}}),oie=/^\s*(\[([( |x])?\])\s$/,iie=wr.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList"}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:t=>{const e=t.getAttribute("data-checked");return e===""||e==="true"},renderHTML:t=>({"data-checked":t.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:t,HTMLAttributes:e}){return["li",Zn(this.options.HTMLAttributes,e,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:t.attrs.checked?"checked":null}],["span"]],["div",0]]},addKeyboardShortcuts(){const t={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...t,Tab:()=>this.editor.commands.sinkListItem(this.name)}:t},addNodeView(){return({node:t,HTMLAttributes:e,getPos:n,editor:r})=>{const o=document.createElement("li"),l=document.createElement("label"),s=document.createElement("span"),u=document.createElement("input"),d=document.createElement("div");return l.contentEditable="false",u.type="checkbox",u.addEventListener("mousedown",f=>f.preventDefault()),u.addEventListener("change",f=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){u.checked=!u.checked;return}const{checked:m}=f.target;r.isEditable&&typeof n=="function"&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:p})=>{const g=n();if(typeof g!="number")return!1;const b=p.doc.nodeAt(g);return p.setNodeMarkup(g,void 0,{...b==null?void 0:b.attrs,checked:m}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(t,m)||(u.checked=!u.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([f,m])=>{o.setAttribute(f,m)}),o.dataset.checked=t.attrs.checked,u.checked=t.attrs.checked,l.append(u,s),o.append(l,d),Object.entries(e).forEach(([f,m])=>{o.setAttribute(f,m)}),{dom:o,contentDOM:d,update:f=>f.type!==this.type?!1:(o.dataset.checked=f.attrs.checked,u.checked=f.attrs.checked,!0)}}},addInputRules(){return[Nd({find:oie,type:this.type,getAttributes:t=>({checked:t[t.length-1]==="x"})})]}}),aie=wr.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:t}){return["ul",Zn(this.options.HTMLAttributes,t,{"data-type":this.name}),0]},addCommands(){return{toggleTaskList:()=>({commands:t})=>t.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}}),lie=lo.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:null}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:t=>{const e=t.style.textAlign;return this.options.alignments.includes(e)?e:this.options.defaultAlignment},renderHTML:t=>t.textAlign?{style:`text-align: ${t.textAlign}`}:{}}}}]},addCommands(){return{setTextAlign:t=>({commands:e})=>this.options.alignments.includes(t)?this.options.types.map(n=>e.updateAttributes(n,{textAlign:t})).every(n=>n):!1,unsetTextAlign:()=>({commands:t})=>this.options.types.map(e=>t.resetAttributes(e,"textAlign")).every(e=>e)}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),sie=ka.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["u",Zn(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnderline:()=>({commands:t})=>t.setMark(this.name),toggleUnderline:()=>({commands:t})=>t.toggleMark(this.name),unsetUnderline:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),cie=/^\s*>\s$/,uie=wr.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return["blockquote",Zn(this.options.HTMLAttributes,t),0]},addCommands(){return{setBlockquote:()=>({commands:t})=>t.wrapIn(this.name),toggleBlockquote:()=>({commands:t})=>t.toggleWrap(this.name),unsetBlockquote:()=>({commands:t})=>t.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[Nd({find:cie,type:this.type})]}}),die=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,fie=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,hie=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,mie=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,pie=ka.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:t=>t.type.name===this.name},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return["strong",Zn(this.options.HTMLAttributes,t),0]},addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[Wc({find:die,type:this.type}),Wc({find:hie,type:this.type})]},addPasteRules(){return[qc({find:fie,type:this.type}),qc({find:mie,type:this.type})]}}),gie="listItem",gk="textStyle",vk=/^\s*([-+*])\s$/,vie=wr.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:t}){return["ul",Zn(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(gie,this.editor.getAttributes(gk)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=Nd({find:vk,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Nd({find:vk,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(gk),editor:this.editor})),[t]}}),yie=/(^|[^`])`([^`]+)`(?!`)/,bie=/(^|[^`])`([^`]+)`(?!`)/g,Sie=ka.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:t}){return["code",Zn(this.options.HTMLAttributes,t),0]},addCommands(){return{setCode:()=>({commands:t})=>t.setMark(this.name),toggleCode:()=>({commands:t})=>t.toggleMark(this.name),unsetCode:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[Wc({find:yie,type:this.type})]},addPasteRules(){return[qc({find:bie,type:this.type})]}}),Cie=/^```([a-z]+)?[\s\n]$/,xie=/^~~~([a-z]+)?[\s\n]$/,wie=wr.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:t=>{var e;const{languageClassPrefix:n}=this.options,l=[...((e=t.firstElementChild)===null||e===void 0?void 0:e.classList)||[]].filter(s=>s.startsWith(n)).map(s=>s.replace(n,""))[0];return l||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:t,HTMLAttributes:e}){return["pre",Zn(this.options.HTMLAttributes,e),["code",{class:t.attrs.language?this.options.languageClassPrefix+t.attrs.language:null},0]]},addCommands(){return{setCodeBlock:t=>({commands:e})=>e.setNode(this.name,t),toggleCodeBlock:t=>({commands:e})=>e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:t,$anchor:e}=this.editor.state.selection,n=e.pos===1;return!t||e.parent.type.name!==this.name?!1:n||!e.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:t})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=t,{selection:n}=e,{$from:r,empty:o}=n;if(!o||r.parent.type!==this.type)return!1;const l=r.parentOffset===r.parent.nodeSize-2,s=r.parent.textContent.endsWith(`
883
-
884
- `);return!l||!s?!1:t.chain().command(({tr:u})=>(u.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:t})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=t,{selection:n,doc:r}=e,{$from:o,empty:l}=n;if(!l||o.parent.type!==this.type||!(o.parentOffset===o.parent.nodeSize-2))return!1;const u=o.after();return u===void 0?!1:r.nodeAt(u)?t.commands.command(({tr:f})=>(f.setSelection(nn.near(r.resolve(u))),!0)):t.commands.exitCode()}}},addInputRules(){return[x1({find:Cie,type:this.type,getAttributes:t=>({language:t[1]})}),x1({find:xie,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new xo({key:new ui("codeBlockVSCodeHandler"),props:{handlePaste:(t,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;const n=e.clipboardData.getData("text/plain"),r=e.clipboardData.getData("vscode-editor-data"),o=r?JSON.parse(r):void 0,l=o==null?void 0:o.mode;if(!n||!l)return!1;const{tr:s,schema:u}=t.state,d=u.text(n.replace(/\r\n?/g,`
885
- `));return s.replaceSelectionWith(this.type.create({language:l},d)),s.selection.$from.parent.type!==this.type&&s.setSelection(Zt.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.setMeta("paste",!0),t.dispatch(s),!0}}})]}}),Eie=wr.create({name:"doc",topNode:!0,content:"block+"});function Oie(t={}){return new xo({view(e){return new Rie(e,t)}})}class Rie{constructor(e,n){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(o=>{let l=s=>{this[o](s)};return e.dom.addEventListener(o,l),{name:o,handler:l}})}destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){this.cursorPos!=null&&n.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent,r;if(n){let u=e.nodeBefore,d=e.nodeAfter;if(u||d){let f=this.editorView.nodeDOM(this.cursorPos-(u?u.nodeSize:0));if(f){let m=f.getBoundingClientRect(),p=u?m.bottom:m.top;u&&d&&(p=(p+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),r={left:m.left,right:m.right,top:p-this.width/2,bottom:p+this.width/2}}}}if(!r){let u=this.editorView.coordsAtPos(this.cursorPos);r={left:u.left-this.width/2,right:u.left+this.width/2,top:u.top,bottom:u.bottom}}let o=this.editorView.dom.offsetParent;this.element||(this.element=o.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let l,s;if(!o||o==document.body&&getComputedStyle(o).position=="static")l=-pageXOffset,s=-pageYOffset;else{let u=o.getBoundingClientRect();l=u.left-o.scrollLeft,s=u.top-o.scrollTop}this.element.style.left=r.left-l+"px",this.element.style.top=r.top-s+"px",this.element.style.width=r.right-r.left+"px",this.element.style.height=r.bottom-r.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),o=r&&r.type.spec.disableDropCursor,l=typeof o=="function"?o(this.editorView,n,e):o;if(n&&!l){let s=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let u=Xk(this.editorView.state.doc,s,this.editorView.dragging.slice);u!=null&&(s=u)}this.setCursor(s),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){(e.target==this.editorView.dom||!this.editorView.dom.contains(e.relatedTarget))&&this.setCursor(null)}}const Tie=lo.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[Oie(this.options)]}});class Cr extends nn{constructor(e){super(e,e)}map(e,n){let r=e.resolve(n.map(this.head));return Cr.valid(r)?new Cr(r):nn.near(r)}content(){return At.empty}eq(e){return e instanceof Cr&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new Cr(e.resolve(n.pos))}getBookmark(){return new SE(this.anchor)}static valid(e){let n=e.parent;if(n.isTextblock||!Mie(e)||!$ie(e))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let o=n.contentMatchAt(e.index()).defaultType;return o&&o.isTextblock}static findGapCursorFrom(e,n,r=!1){e:for(;;){if(!r&&Cr.valid(e))return e;let o=e.pos,l=null;for(let s=e.depth;;s--){let u=e.node(s);if(n>0?e.indexAfter(s)<u.childCount:e.index(s)>0){l=u.child(n>0?e.indexAfter(s):e.index(s)-1);break}else if(s==0)return null;o+=n;let d=e.doc.resolve(o);if(Cr.valid(d))return d}for(;;){let s=n>0?l.firstChild:l.lastChild;if(!s){if(l.isAtom&&!l.isText&&!Gt.isSelectable(l)){e=e.doc.resolve(o+l.nodeSize*n),r=!1;continue e}break}l=s,o+=n;let u=e.doc.resolve(o);if(Cr.valid(u))return u}return null}}}Cr.prototype.visible=!1;Cr.findFrom=Cr.findGapCursorFrom;nn.jsonID("gapcursor",Cr);class SE{constructor(e){this.pos=e}map(e){return new SE(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return Cr.valid(n)?new Cr(n):nn.near(n)}}function Mie(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),r=t.node(e);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(n-1);;o=o.lastChild){if(o.childCount==0&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}function $ie(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),r=t.node(e);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(n);;o=o.firstChild){if(o.childCount==0&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}function Nie(){return new xo({props:{decorations:kie,createSelectionBetween(t,e,n){return e.pos==n.pos&&Cr.valid(n)?new Cr(n):null},handleClick:Die,handleKeyDown:Aie,handleDOMEvents:{beforeinput:Iie}}})}const Aie=tw({ArrowLeft:zg("horiz",-1),ArrowRight:zg("horiz",1),ArrowUp:zg("vert",-1),ArrowDown:zg("vert",1)});function zg(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(r,o,l){let s=r.selection,u=e>0?s.$to:s.$from,d=s.empty;if(s instanceof Zt){if(!l.endOfTextblock(n)||u.depth==0)return!1;d=!1,u=r.doc.resolve(e>0?u.after():u.before())}let f=Cr.findGapCursorFrom(u,e,d);return f?(o&&o(r.tr.setSelection(new Cr(f))),!0):!1}}function Die(t,e,n){if(!t||!t.editable)return!1;let r=t.state.doc.resolve(e);if(!Cr.valid(r))return!1;let o=t.posAtCoords({left:n.clientX,top:n.clientY});return o&&o.inside>-1&&Gt.isSelectable(t.state.doc.nodeAt(o.inside))?!1:(t.dispatch(t.state.tr.setSelection(new Cr(r))),!0)}function Iie(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof Cr))return!1;let{$from:n}=t.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!r)return!1;let o=tt.empty;for(let s=r.length-1;s>=0;s--)o=tt.from(r[s].createAndFill(null,o));let l=t.state.tr.replace(n.pos,n.pos,new At(o,0,0));return l.setSelection(Zt.near(l.doc.resolve(n.pos+1))),t.dispatch(l),!1}function kie(t){if(!(t.selection instanceof Cr))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",Sr.create(t.doc,[No.widget(t.selection.head,e,{key:"gapcursor"})])}const Pie=lo.create({name:"gapCursor",addProseMirrorPlugins(){return[Nie()]},extendNodeSchema(t){var e;const n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=Cn(Vt(t,"allowGapCursor",n)))!==null&&e!==void 0?e:null}}}),zie=wr.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",Zn(this.options.HTMLAttributes,t)]},renderText(){return`
886
- `},addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:r})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:o,storedMarks:l}=n;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:u}=r.extensionManager,d=l||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:f,dispatch:m})=>{if(m&&d&&s){const p=d.filter(g=>u.includes(g.type.name));f.ensureMarks(p)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),_ie=wr.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(t=>({tag:`h${t}`,attrs:{level:t}}))},renderHTML({node:t,HTMLAttributes:e}){return[`h${this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0]}`,Zn(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.setNode(this.name,t):!1,toggleHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.toggleNode(this.name,"paragraph",t):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((t,e)=>({...t,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})}),{})},addInputRules(){return this.options.levels.map(t=>x1({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${t}})\\s$`),type:this.type,getAttributes:{level:t}}))}});var jv=200,Kr=function(){};Kr.prototype.append=function(e){return e.length?(e=Kr.from(e),!this.length&&e||e.length<jv&&this.leafAppend(e)||this.length<jv&&e.leafPrepend(this)||this.appendInner(e)):this};Kr.prototype.prepend=function(e){return e.length?Kr.from(e).append(this):this};Kr.prototype.appendInner=function(e){return new Bie(this,e)};Kr.prototype.slice=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=this.length),e>=n?Kr.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))};Kr.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};Kr.prototype.forEach=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(e,n,r,0):this.forEachInvertedInner(e,n,r,0)};Kr.prototype.map=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var o=[];return this.forEach(function(l,s){return o.push(e(l,s))},n,r),o};Kr.from=function(e){return e instanceof Kr?e:e&&e.length?new Fj(e):Kr.empty};var Fj=function(t){function e(r){t.call(this),this.values=r}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(o,l){return o==0&&l==this.length?this:new e(this.values.slice(o,l))},e.prototype.getInner=function(o){return this.values[o]},e.prototype.forEachInner=function(o,l,s,u){for(var d=l;d<s;d++)if(o(this.values[d],u+d)===!1)return!1},e.prototype.forEachInvertedInner=function(o,l,s,u){for(var d=l-1;d>=s;d--)if(o(this.values[d],u+d)===!1)return!1},e.prototype.leafAppend=function(o){if(this.length+o.length<=jv)return new e(this.values.concat(o.flatten()))},e.prototype.leafPrepend=function(o){if(this.length+o.length<=jv)return new e(o.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}(Kr);Kr.empty=new Fj([]);var Bie=function(t){function e(n,r){t.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(r){return r<this.left.length?this.left.get(r):this.right.get(r-this.left.length)},e.prototype.forEachInner=function(r,o,l,s){var u=this.left.length;if(o<u&&this.left.forEachInner(r,o,Math.min(l,u),s)===!1||l>u&&this.right.forEachInner(r,Math.max(o-u,0),Math.min(this.length,l)-u,s+u)===!1)return!1},e.prototype.forEachInvertedInner=function(r,o,l,s){var u=this.left.length;if(o>u&&this.right.forEachInvertedInner(r,o-u,Math.max(l,u)-u,s+u)===!1||l<u&&this.left.forEachInvertedInner(r,Math.min(o,u),l,s)===!1)return!1},e.prototype.sliceInner=function(r,o){if(r==0&&o==this.length)return this;var l=this.left.length;return o<=l?this.left.slice(r,o):r>=l?this.right.slice(r-l,o-l):this.left.slice(r,l).append(this.right.slice(0,o-l))},e.prototype.leafAppend=function(r){var o=this.right.leafAppend(r);if(o)return new e(this.left,o)},e.prototype.leafPrepend=function(r){var o=this.left.leafPrepend(r);if(o)return new e(o,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e}(Kr);const Hie=500;class Xi{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let o,l;n&&(o=this.remapping(r,this.items.length),l=o.maps.length);let s=e.tr,u,d,f=[],m=[];return this.items.forEach((p,g)=>{if(!p.step){o||(o=this.remapping(r,g+1),l=o.maps.length),l--,m.push(p);return}if(o){m.push(new Ea(p.map));let b=p.step.map(o.slice(l)),S;b&&s.maybeStep(b).doc&&(S=s.mapping.maps[s.mapping.maps.length-1],f.push(new Ea(S,void 0,void 0,f.length+m.length))),l--,S&&o.appendMap(S,l)}else s.maybeStep(p.step);if(p.selection)return u=o?p.selection.map(o.slice(l)):p.selection,d=new Xi(this.items.slice(0,r).append(m.reverse().concat(f)),this.eventCount-1),!1},this.items.length,0),{remaining:d,transform:s,selection:u}}addTransform(e,n,r,o){let l=[],s=this.eventCount,u=this.items,d=!o&&u.length?u.get(u.length-1):null;for(let m=0;m<e.steps.length;m++){let p=e.steps[m].invert(e.docs[m]),g=new Ea(e.mapping.maps[m],p,n),b;(b=d&&d.merge(g))&&(g=b,m?l.pop():u=u.slice(0,u.length-1)),l.push(g),n&&(s++,n=void 0),o||(d=g)}let f=s-r.depth;return f>Lie&&(u=jie(u,f),s-=f),new Xi(u.append(l),s)}remapping(e,n){let r=new Hh;return this.items.forEach((o,l)=>{let s=o.mirrorOffset!=null&&l-o.mirrorOffset>=e?r.maps.length-o.mirrorOffset:void 0;r.appendMap(o.map,s)},e,n),r}addMaps(e){return this.eventCount==0?this:new Xi(this.items.append(e.map(n=>new Ea(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let r=[],o=Math.max(0,this.items.length-n),l=e.mapping,s=e.steps.length,u=this.eventCount;this.items.forEach(g=>{g.selection&&u--},o);let d=n;this.items.forEach(g=>{let b=l.getMirror(--d);if(b==null)return;s=Math.min(s,b);let S=l.maps[b];if(g.step){let x=e.steps[b].invert(e.docs[b]),w=g.selection&&g.selection.map(l.slice(d+1,b));w&&u++,r.push(new Ea(S,x,w))}else r.push(new Ea(S))},o);let f=[];for(let g=n;g<s;g++)f.push(new Ea(l.maps[g]));let m=this.items.slice(0,o).append(f).append(r),p=new Xi(m,u);return p.emptyItemCount()>Hie&&(p=p.compress(this.items.length-r.length)),p}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),r=n.maps.length,o=[],l=0;return this.items.forEach((s,u)=>{if(u>=e)o.push(s),s.selection&&l++;else if(s.step){let d=s.step.map(n.slice(r)),f=d&&d.getMap();if(r--,f&&n.appendMap(f,r),d){let m=s.selection&&s.selection.map(n.slice(r));m&&l++;let p=new Ea(f.invert(),d,m),g,b=o.length-1;(g=o.length&&o[b].merge(p))?o[b]=g:o.push(p)}}else s.map&&r--},this.items.length,0),new Xi(Kr.from(o.reverse()),l)}}Xi.empty=new Xi(Kr.empty,0);function jie(t,e){let n;return t.forEach((r,o)=>{if(r.selection&&e--==0)return n=o,!1}),t.slice(n)}class Ea{constructor(e,n,r,o){this.map=e,this.step=n,this.selection=r,this.mirrorOffset=o}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new Ea(n.getMap().invert(),n,this.selection)}}}class ls{constructor(e,n,r,o,l){this.done=e,this.undone=n,this.prevRanges=r,this.prevTime=o,this.prevComposition=l}}const Lie=20;function Vie(t,e,n,r){let o=n.getMeta(Lc),l;if(o)return o.historyState;n.getMeta(Wie)&&(t=new ls(t.done,t.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(s&&s.getMeta(Lc))return s.getMeta(Lc).redo?new ls(t.done.addTransform(n,void 0,r,ov(e)),t.undone,yk(n.mapping.maps),t.prevTime,t.prevComposition):new ls(t.done,t.undone.addTransform(n,void 0,r,ov(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(s&&s.getMeta("addToHistory")===!1)){let u=n.getMeta("composition"),d=t.prevTime==0||!s&&t.prevComposition!=u&&(t.prevTime<(n.time||0)-r.newGroupDelay||!Fie(n,t.prevRanges)),f=s?t1(t.prevRanges,n.mapping):yk(n.mapping.maps);return new ls(t.done.addTransform(n,d?e.selection.getBookmark():void 0,r,ov(e)),Xi.empty,f,n.time,u??t.prevComposition)}else return(l=n.getMeta("rebased"))?new ls(t.done.rebased(n,l),t.undone.rebased(n,l),t1(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new ls(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),t1(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function Fie(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((r,o)=>{for(let l=0;l<e.length;l+=2)r<=e[l+1]&&o>=e[l]&&(n=!0)}),n}function yk(t){let e=[];for(let n=t.length-1;n>=0&&e.length==0;n--)t[n].forEach((r,o,l,s)=>e.push(l,s));return e}function t1(t,e){if(!t)return null;let n=[];for(let r=0;r<t.length;r+=2){let o=e.map(t[r],1),l=e.map(t[r+1],-1);o<=l&&n.push(o,l)}return n}function Uie(t,e,n){let r=ov(e),o=Lc.get(e).spec.config,l=(n?t.undone:t.done).popEvent(e,r);if(!l)return null;let s=l.selection.resolve(l.transform.doc),u=(n?t.done:t.undone).addTransform(l.transform,e.selection.getBookmark(),o,r),d=new ls(n?u:l.remaining,n?l.remaining:u,null,0,-1);return l.transform.setSelection(s).setMeta(Lc,{redo:n,historyState:d})}let n1=!1,bk=null;function ov(t){let e=t.plugins;if(bk!=e){n1=!1,bk=e;for(let n=0;n<e.length;n++)if(e[n].spec.historyPreserveItems){n1=!0;break}}return n1}const Lc=new ui("history"),Wie=new ui("closeHistory");function qie(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new xo({key:Lc,state:{init(){return new ls(Xi.empty,Xi.empty,null,0,-1)},apply(e,n,r){return Vie(n,r,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,n){let r=n.inputType,o=r=="historyUndo"?Wj:r=="historyRedo"?qj:null;return o?(n.preventDefault(),o(e.state,e.dispatch)):!1}}}})}function Uj(t,e){return(n,r)=>{let o=Lc.getState(n);if(!o||(t?o.undone:o.done).eventCount==0)return!1;if(r){let l=Uie(o,n,t);l&&r(e?l.scrollIntoView():l)}return!0}}const Wj=Uj(!1,!0),qj=Uj(!0,!0),Gie=lo.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>Wj(t,e),redo:()=>({state:t,dispatch:e})=>qj(t,e)}},addProseMirrorPlugins(){return[qie(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),Kie=wr.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:t}){return["hr",Zn(this.options.HTMLAttributes,t)]},addCommands(){return{setHorizontalRule:()=>({chain:t,state:e})=>{const{selection:n}=e,{$from:r,$to:o}=n,l=t();return r.parentOffset===0?l.insertContentAt({from:Math.max(r.pos-1,0),to:o.pos},{type:this.name}):H8(n)?l.insertContentAt(o.pos,{type:this.name}):l.insertContent({type:this.name}),l.command(({tr:s,dispatch:u})=>{var d;if(u){const{$to:f}=s.selection,m=f.end();if(f.nodeAfter)f.nodeAfter.isTextblock?s.setSelection(Zt.create(s.doc,f.pos+1)):f.nodeAfter.isBlock?s.setSelection(Gt.create(s.doc,f.pos)):s.setSelection(Zt.create(s.doc,f.pos));else{const p=(d=f.parent.type.contentMatch.defaultType)===null||d===void 0?void 0:d.create();p&&(s.insert(m,p),s.setSelection(Zt.create(s.doc,m+1)))}s.scrollIntoView()}return!0}).run()}}},addInputRules(){return[g7({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),Yie=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,Xie=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,Qie=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,Zie=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,Jie=ka.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:t=>t.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",Zn(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[Wc({find:Yie,type:this.type}),Wc({find:Qie,type:this.type})]},addPasteRules(){return[qc({find:Xie,type:this.type}),qc({find:Zie,type:this.type})]}}),eae="listItem",Sk="textStyle",Ck=/^(\d+)\.\s$/,tae=wr.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1},type:{default:void 0,parseHTML:t=>t.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){const{start:e,...n}=t;return e===1?["ol",Zn(this.options.HTMLAttributes,n),0]:["ol",Zn(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(eae,this.editor.getAttributes(Sk)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=Nd({find:Ck,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Nd({find:Ck,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(Sk)}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1],editor:this.editor})),[t]}}),nae=wr.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",Zn(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),rae=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,oae=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,iae=ka.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["s",Zn(this.options.HTMLAttributes,t),0]},addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[Wc({find:rae,type:this.type})]},addPasteRules(){return[qc({find:oae,type:this.type})]}}),aae=wr.create({name:"text",group:"inline"}),lae=lo.create({name:"starterKit",addExtensions(){var t,e,n,r,o,l,s,u,d,f,m,p,g,b,S,x,w,O;const E=[];return this.options.bold!==!1&&E.push(pie.configure((t=this.options)===null||t===void 0?void 0:t.bold)),this.options.blockquote!==!1&&E.push(uie.configure((e=this.options)===null||e===void 0?void 0:e.blockquote)),this.options.bulletList!==!1&&E.push(vie.configure((n=this.options)===null||n===void 0?void 0:n.bulletList)),this.options.code!==!1&&E.push(Sie.configure((r=this.options)===null||r===void 0?void 0:r.code)),this.options.codeBlock!==!1&&E.push(wie.configure((o=this.options)===null||o===void 0?void 0:o.codeBlock)),this.options.document!==!1&&E.push(Eie.configure((l=this.options)===null||l===void 0?void 0:l.document)),this.options.dropcursor!==!1&&E.push(Tie.configure((s=this.options)===null||s===void 0?void 0:s.dropcursor)),this.options.gapcursor!==!1&&E.push(Pie.configure((u=this.options)===null||u===void 0?void 0:u.gapcursor)),this.options.hardBreak!==!1&&E.push(zie.configure((d=this.options)===null||d===void 0?void 0:d.hardBreak)),this.options.heading!==!1&&E.push(_ie.configure((f=this.options)===null||f===void 0?void 0:f.heading)),this.options.history!==!1&&E.push(Gie.configure((m=this.options)===null||m===void 0?void 0:m.history)),this.options.horizontalRule!==!1&&E.push(Kie.configure((p=this.options)===null||p===void 0?void 0:p.horizontalRule)),this.options.italic!==!1&&E.push(Jie.configure((g=this.options)===null||g===void 0?void 0:g.italic)),this.options.listItem!==!1&&E.push(Ij.configure((b=this.options)===null||b===void 0?void 0:b.listItem)),this.options.orderedList!==!1&&E.push(tae.configure((S=this.options)===null||S===void 0?void 0:S.orderedList)),this.options.paragraph!==!1&&E.push(nae.configure((x=this.options)===null||x===void 0?void 0:x.paragraph)),this.options.strike!==!1&&E.push(iae.configure((w=this.options)===null||w===void 0?void 0:w.strike)),this.options.text!==!1&&E.push(aae.configure((O=this.options)===null||O===void 0?void 0:O.text)),E}});function Gj({title:t,childrenContent:e,editable:n,childrenEdit:r}){const[o,l]=y.useState(!1),s=n?He.jsxDEV(Rs,{children:He.jsxDEV(Rs.Item,{onClick:()=>l(!0),children:"Edit"},"edit",!1,{fileName:"E:/CyberSkill/cyber-editor/src/shared/components/modal-edit/modal-edit.component.tsx",lineNumber:17,columnNumber:21},this)},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/shared/components/modal-edit/modal-edit.component.tsx",lineNumber:16,columnNumber:17},this):null;return He.jsxDEV("div",{children:[n&&s?He.jsxDEV(Iy,{dropdownRender:()=>s,trigger:["contextMenu"],children:e},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/shared/components/modal-edit/modal-edit.component.tsx",lineNumber:28,columnNumber:25},this):e,He.jsxDEV(_i,{title:`Edit ${t}`,open:o,onOk:()=>l(!1),onCancel:()=>l(!1),children:r},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/shared/components/modal-edit/modal-edit.component.tsx",lineNumber:36,columnNumber:13},this)]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/shared/components/modal-edit/modal-edit.component.tsx",lineNumber:25,columnNumber:9},this)}function sae({node:t,editor:e}){const[n,r]=y.useState(!1),[o,l]=y.useState(t.attrs.bgColor||"#f3f4f6"),[s,u]=y.useState(t.attrs.titleColor||"#000000"),d=p=>{p.preventDefault()},f=p=>{l(p.toHexString())},m=p=>{u(p.toHexString())};return He.jsxDEV(mz,{className:"accordion-wrapper",children:He.jsxDEV(Gj,{title:"Accordion",childrenContent:He.jsxDEV("div",{className:"my-4 transition-all duration-300 border rounded-lg shadow-sm",onContextMenu:d,children:[He.jsxDEV("div",{className:"flex items-center justify-between p-4 transition-colors accordion-header",style:{backgroundColor:o},onClick:()=>r(!n),children:[He.jsxDEV("input",{className:"w-full text-lg font-medium bg-transparent border-none outline-none",style:{color:s},defaultValue:t.attrs.title||"Accordion Title",disabled:!e.isEditable,suppressContentEditableWarning:!0,contentEditable:!0,placeholder:"Accordion title"},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/accordion/accordion-view.component.tsx",lineNumber:41,columnNumber:29},this),He.jsxDEV(Fne,{className:`transition-transform duration-300 ${n?"rotate-180":""}`,size:20},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/accordion/accordion-view.component.tsx",lineNumber:50,columnNumber:29},this)]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/modules/accordion/accordion-view.component.tsx",lineNumber:36,columnNumber:25},this),He.jsxDEV("div",{className:`overflow-hidden duration-300 ease-in-out ${n?"max-h-96 opacity-100":"max-h-0 opacity-0"} `,children:He.jsxDEV("div",{className:"p-4 border-t",children:He.jsxDEV(_7,{contentEditable:e.isEditable},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/accordion/accordion-view.component.tsx",lineNumber:60,columnNumber:33},this)},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/accordion/accordion-view.component.tsx",lineNumber:59,columnNumber:29},this)},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/accordion/accordion-view.component.tsx",lineNumber:56,columnNumber:25},this)]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/modules/accordion/accordion-view.component.tsx",lineNumber:32,columnNumber:21},this),editable:e.isEditable,childrenEdit:He.jsxDEV("div",{className:"px-6 py-4 space-y-6 rounded-lg bg-gray-50",children:[He.jsxDEV("div",{className:"grid grid-cols-1 gap-6",children:[He.jsxDEV("div",{className:"flex flex-col space-y-2",children:[He.jsxDEV("label",{className:"font-medium text-gray-700",children:"Background Color"},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/accordion/accordion-view.component.tsx",lineNumber:72,columnNumber:33},this),He.jsxDEV("div",{className:"flex items-center space-x-3",children:[He.jsxDEV("div",{className:"w-8 h-8 border rounded shadow",style:{backgroundColor:o}},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/accordion/accordion-view.component.tsx",lineNumber:74,columnNumber:37},this),He.jsxDEV(Hv,{value:o,onChange:f},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/accordion/accordion-view.component.tsx",lineNumber:78,columnNumber:37},this)]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/modules/accordion/accordion-view.component.tsx",lineNumber:73,columnNumber:33},this)]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/modules/accordion/accordion-view.component.tsx",lineNumber:71,columnNumber:29},this),He.jsxDEV("div",{className:"flex flex-col space-y-2",children:[He.jsxDEV("label",{className:"font-medium text-gray-700",children:"Title Color"},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/accordion/accordion-view.component.tsx",lineNumber:83,columnNumber:33},this),He.jsxDEV("div",{className:"flex items-center space-x-3",children:[He.jsxDEV("div",{className:"w-8 h-8 border rounded shadow",style:{backgroundColor:s}},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/accordion/accordion-view.component.tsx",lineNumber:85,columnNumber:37},this),He.jsxDEV(Hv,{value:s,onChange:m},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/accordion/accordion-view.component.tsx",lineNumber:89,columnNumber:37},this)]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/modules/accordion/accordion-view.component.tsx",lineNumber:84,columnNumber:33},this)]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/modules/accordion/accordion-view.component.tsx",lineNumber:82,columnNumber:29},this)]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/modules/accordion/accordion-view.component.tsx",lineNumber:70,columnNumber:25},this),He.jsxDEV("div",{className:"pt-4 border-t border-gray-200",children:He.jsxDEV("div",{className:"p-3 bg-white border rounded-md",children:[He.jsxDEV("div",{className:"text-sm text-gray-600",children:"Preview"},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/accordion/accordion-view.component.tsx",lineNumber:96,columnNumber:33},this),He.jsxDEV("div",{className:"p-2 mt-2 rounded",style:{backgroundColor:o},children:He.jsxDEV("span",{style:{color:s,fontWeight:500},children:"Accordion Title"},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/accordion/accordion-view.component.tsx",lineNumber:98,columnNumber:37},this)},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/accordion/accordion-view.component.tsx",lineNumber:97,columnNumber:33},this)]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/modules/accordion/accordion-view.component.tsx",lineNumber:95,columnNumber:29},this)},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/accordion/accordion-view.component.tsx",lineNumber:94,columnNumber:25},this)]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/modules/accordion/accordion-view.component.tsx",lineNumber:69,columnNumber:21},this)},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/accordion/accordion-view.component.tsx",lineNumber:29,columnNumber:13},this)},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/accordion/accordion-view.component.tsx",lineNumber:28,columnNumber:9},this)}const cae=wr.create({name:"accordion",group:"block",content:"block+",atom:!1,draggable:!0,selectable:!0,inline:!1,defining:!0,addAttributes(){return{title:{default:"Accordion Title"},bgColor:{default:"#f3f4f6"},titleColor:{default:"#000000"}}},parseHTML(){return[{tag:"accordion"}]},renderHTML({HTMLAttributes:t}){return["accordion",Zn(t)]},addNodeView(){return pz(sae)},addCommands(){return{setAccordion:t=>({chain:e})=>e().insertContent({type:"accordion",attrs:t,content:[{type:"paragraph",content:[{type:"text",text:"Accordion content"}]}]}).run()}}});function uae({node:t,updateAttributes:e,editor:n}){const[r,o]=y.useState({width:t.attrs.width??50,height:t.attrs.height??"auto"}),[l,s]=y.useState({left:t.attrs.marginLeft??"0%",right:t.attrs.marginRight??"0%"}),[u,d]=y.useState(t.attrs.src||""),f=y.useRef(null);y.useEffect(()=>{if(t.attrs.src&&f.current){const g=new Image;g.onload=()=>{t.attrs.width===void 0&&o({width:100,height:"auto"})},g.src=t.attrs.src}},[t.attrs.src,t.attrs.width,t.attrs.height]);const m=()=>{e({src:u,width:r.width,height:r.height,marginLeft:l.left,marginRight:l.right})},p=g=>{g.preventDefault()};return He.jsxDEV(mz,{className:"image-wrapper w-full",children:He.jsxDEV(Gj,{title:"Image",childrenContent:He.jsxDEV("div",{className:"relative w-full max-w-full overflow-hidden",style:{marginLeft:l.left+"%",marginRight:l.right+"%"},onContextMenu:p,children:He.jsxDEV("img",{ref:f,src:t.attrs.src,alt:"Uploaded",className:"w-full h-auto object-contain inline-block",style:{width:r.width+"%",height:r.height==="auto"?"auto":r.height+"%",maxWidth:"100%"},draggable:!1},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/image/image-view.component.tsx",lineNumber:68,columnNumber:25},this)},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/image/image-view.component.tsx",lineNumber:60,columnNumber:21},this),editable:n.isEditable,childrenEdit:He.jsxDEV("div",{className:"space-y-4",children:[He.jsxDEV("div",{children:[He.jsxDEV("label",{className:"block text-sm font-medium text-gray-700",children:"Image URL"},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/image/image-view.component.tsx",lineNumber:89,columnNumber:29},this),He.jsxDEV(ml,{type:"text",value:u,onChange:g=>d(g.target.value),className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50",disabled:!n.isEditable},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/image/image-view.component.tsx",lineNumber:92,columnNumber:29},this)]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/modules/image/image-view.component.tsx",lineNumber:88,columnNumber:25},this),He.jsxDEV("div",{className:"flex gap-4",children:[He.jsxDEV("div",{className:"flex-1",children:[He.jsxDEV("label",{className:"block text-sm font-medium text-gray-700",children:"Width (%)"},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/image/image-view.component.tsx",lineNumber:103,columnNumber:33},this),He.jsxDEV(ml,{type:"number",value:r.width,onChange:g=>o({...r,width:Number(g.target.value)}),className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50",disabled:!n.isEditable},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/image/image-view.component.tsx",lineNumber:106,columnNumber:33},this)]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/modules/image/image-view.component.tsx",lineNumber:102,columnNumber:29},this),He.jsxDEV("div",{className:"flex-1",children:[He.jsxDEV("label",{className:"block text-sm font-medium text-gray-700",children:"Height"},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/image/image-view.component.tsx",lineNumber:120,columnNumber:33},this),He.jsxDEV(ri,{value:r.height,onChange:g=>o({...r,height:g}),className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50",disabled:!n.isEditable,children:[He.jsxDEV(ri.Option,{value:"auto",children:"Auto"},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/image/image-view.component.tsx",lineNumber:134,columnNumber:37},this),He.jsxDEV(ri.Option,{value:"25",children:"25%"},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/image/image-view.component.tsx",lineNumber:137,columnNumber:37},this),He.jsxDEV(ri.Option,{value:"50",children:"50%"},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/image/image-view.component.tsx",lineNumber:140,columnNumber:37},this),He.jsxDEV(ri.Option,{value:"75",children:"75%"},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/image/image-view.component.tsx",lineNumber:143,columnNumber:37},this),He.jsxDEV(ri.Option,{value:"100",children:"100%"},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/image/image-view.component.tsx",lineNumber:146,columnNumber:37},this)]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/modules/image/image-view.component.tsx",lineNumber:123,columnNumber:33},this)]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/modules/image/image-view.component.tsx",lineNumber:119,columnNumber:29},this)]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/modules/image/image-view.component.tsx",lineNumber:101,columnNumber:25},this),He.jsxDEV("div",{className:"flex gap-4",children:[He.jsxDEV("div",{className:"flex-1",children:[He.jsxDEV("label",{className:"block text-sm font-medium text-gray-700",children:"Margin Left (%)"},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/image/image-view.component.tsx",lineNumber:155,columnNumber:33},this),He.jsxDEV(ml,{type:"number",value:l.left,onChange:g=>s({...l,left:String(Number(g.target.value))}),className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50",disabled:!n.isEditable},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/image/image-view.component.tsx",lineNumber:158,columnNumber:33},this)]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/modules/image/image-view.component.tsx",lineNumber:154,columnNumber:29},this),He.jsxDEV("div",{className:"flex-1",children:[He.jsxDEV("label",{className:"block text-sm font-medium text-gray-700",children:"Margin Right (%)"},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/image/image-view.component.tsx",lineNumber:174,columnNumber:33},this),He.jsxDEV(ml,{type:"number",value:l.right,onChange:g=>s({...l,right:String(Number(g.target.value))}),className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50",disabled:!n.isEditable},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/image/image-view.component.tsx",lineNumber:177,columnNumber:33},this)]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/modules/image/image-view.component.tsx",lineNumber:173,columnNumber:29},this)]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/modules/image/image-view.component.tsx",lineNumber:153,columnNumber:25},this),He.jsxDEV("button",{type:"button",onClick:m,className:"w-full py-2 px-4 bg-indigo-600 text-white rounded-md hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",disabled:!n.isEditable,children:"Update Image"},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/image/image-view.component.tsx",lineNumber:194,columnNumber:25},this)]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/modules/image/image-view.component.tsx",lineNumber:87,columnNumber:21},this)},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/image/image-view.component.tsx",lineNumber:57,columnNumber:13},this)},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/modules/image/image-view.component.tsx",lineNumber:56,columnNumber:9},this)}const dae=wr.create({name:"image",group:"block",content:"inline*",atom:!0,draggable:!0,selectable:!0,addAttributes(){return{src:{default:null},width:{default:50},height:{default:"auto"},marginLeft:{default:0},marginRight:{default:0}}},parseHTML(){return[{tag:"img",getAttrs:t=>t instanceof HTMLElement?{src:t.getAttribute("src"),width:t.getAttribute("width")?Number(t.getAttribute("width")):50,height:t.getAttribute("height")||"auto",marginLeft:t.getAttribute("marginleft")?Number(t.getAttribute("marginleft")):0,marginRight:t.getAttribute("marginright")?Number(t.getAttribute("marginright")):0}:null}]},renderHTML({HTMLAttributes:t}){return["img",Zn(t)]},addNodeView(){return pz(uae)},addCommands(){return{setImage:t=>({chain:e})=>e().insertContent({type:"image",attrs:{...t,width:(t==null?void 0:t.width)??50,height:(t==null?void 0:t.height)??"auto"}}).run()}}}),fae=[qre.configure({types:[tk.name,Ij.name]}),tk,Yre.configure({multicolor:!0}),lae.configure({bulletList:{keepMarks:!0,keepAttributes:!1},orderedList:{keepMarks:!0,keepAttributes:!1}}),sie,Xre,Qre,lie.configure({types:["heading","paragraph"]}),aie,iie,eie.configure({resizable:!0,lastColumnResizable:!0,allowTableNodeSelection:!0,HTMLAttributes:{class:"table-wrapper"}}),rie,nie,tie.configure({HTMLAttributes:{class:"table-cell"}}),dae,cae],hae={"cyber-editor":"_cyber-editor_q6ohd_1"};function mae({content:t="",slotBefore:e=!1,className:n="",editorClassName:r="",editable:o=!0,onChange:l}){const s=P7({extensions:fae,content:t,editable:o,onUpdate:({editor:u})=>{l==null||l(u.getHTML())}});return y.useEffect(()=>{s&&t!==s.getHTML()&&s.commands.setContent(t,!1)},[s,t]),s?He.jsxDEV("div",{className:Se(hae["cyber-editor"],n),children:[e&&He.jsxDEV(Ure,{editor:s},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/shared/providers/editor.tsx",lineNumber:42,columnNumber:28},this),He.jsxDEV(O7,{editor:s,className:r},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/shared/providers/editor.tsx",lineNumber:43,columnNumber:13},this)]},void 0,!0,{fileName:"E:/CyberSkill/cyber-editor/src/shared/providers/editor.tsx",lineNumber:41,columnNumber:9},this):He.jsxDEV(T5,{full:!0},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/shared/providers/editor.tsx",lineNumber:37,columnNumber:16},this)}function pae(){const[t,e]=y.useState(`
887
- <h1>Welcome to the Editor</h1>
888
- <img src="https://d1hjkbq40fs2x4.cloudfront.net/2017-08-21/files/landscape-photography_1645.jpg" width="50" height="50" marginleft="0" marginright="0">
889
- <p>This is a paragraph.</p>
890
- <accordion title="Accordion Title" bgcolor="#f3f4f6" titlecolor="#000000"></accordion>
891
- `),n=r=>{e(r)};return He.jsxDEV(mae,{content:t,onChange:n,slotBefore:!0},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/root.tsx",lineNumber:19,columnNumber:9},this)}function gae(){const t=document.getElementById("root");if(!t){console.error("Root element not found");return}u5.createRoot(t).render(He.jsxDEV(pae,{},void 0,!1,{fileName:"E:/CyberSkill/cyber-editor/src/index.tsx",lineNumber:14,columnNumber:17},this))}gae()});export default vae();